studyStudent.vue 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584
  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>识别码:{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  107. <!-- <span>识别码:{{ inviteCode }}</span> -->
  108. </div>
  109. </div>
  110. </div>
  111. <div class="cru_selectBox">
  112. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  113. <div class="stageChild" :class="{ navActive: item.isOpen }">
  114. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  115. <div
  116. class="navItem"
  117. :class="{
  118. openTaskActive:
  119. navIndex == taskCount &&
  120. nav.id == navId &&
  121. stageIndex == courseType,
  122. }"
  123. >
  124. <div v-if="nav.tool[0].tool != undefined">
  125. <div
  126. class="closeTri1"
  127. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  128. @click="openTask(stageIndex, navIndex, nav.id)"
  129. >
  130. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  131. </div>
  132. <div
  133. class="closeTri1"
  134. v-else
  135. @click="openTask(stageIndex, navIndex, nav.id)"
  136. >
  137. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  138. </div>
  139. </div>
  140. <div v-else class="noToolBlue"></div>
  141. <div
  142. @click="openTask(stageIndex, navIndex, nav.id)"
  143. class="navItemList"
  144. :class="{
  145. isItemList:
  146. navIndex == taskCount &&
  147. nav.id == navId &&
  148. stageIndex == courseType,
  149. }"
  150. >
  151. <div>任务{{ navIndex + 1 }}:</div>
  152. <el-tooltip
  153. effect="light"
  154. :content="nav.taskName"
  155. placement="top"
  156. >
  157. <div
  158. :style="{
  159. width:
  160. IsLookOpen && !nav.isLook
  161. ? 'calc(100% - 75px)'
  162. : 'auto',
  163. }"
  164. >
  165. {{ nav.taskName }}
  166. </div>
  167. </el-tooltip>
  168. </div>
  169. <div class="lockTaskIcon">
  170. <img
  171. src="../../assets/lock.png"
  172. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  173. courseDetail.course_teacher.indexOf(userid) ==-1"
  174. alt=""
  175. />
  176. </div>
  177. </div>
  178. <div
  179. v-if="nav.tool[0].tool != undefined"
  180. class="toolChild"
  181. :class="{ toolActive: nav.isOpen }"
  182. >
  183. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  184. <div
  185. class="gjCss"
  186. :class="{
  187. isGjCss: t.isTool,
  188. }"
  189. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  190. >
  191. <div>工具{{ toolIndex2 + 1 }}:</div>
  192. <div v-if="t.tool == 58">模拟驾驶</div>
  193. <div v-if="t.tool == 59">路径搜索</div>
  194. <div v-if="t.tool == 60">深度学习</div>
  195. <div v-if="t.tool == 10">倒计时</div>
  196. <div v-if="t.tool == 65">挑人</div>
  197. <div v-if="t.tool == 7">思维网格</div>
  198. <div v-if="t.tool == 1">电子白板</div>
  199. <div v-if="t.tool == 52">文档</div>
  200. <div v-if="t.tool == 3">思维导图</div>
  201. <div v-if="t.tool == 48">表格</div>
  202. <div v-if="t.tool == 49">学生分组</div>
  203. <div v-if="t.tool == 4">问卷调查</div>
  204. <div v-if="t.tool == 45">选择题</div>
  205. <div v-if="t.tool == 15">问答</div>
  206. <div v-if="t.tool == 16">作业提交</div>
  207. <div v-if="t.tool == 50">批量上传</div>
  208. <div v-if="t.tool == 41">选择匹配</div>
  209. <div v-if="t.tool == 47">排序</div>
  210. <div v-if="t.tool == 40">个人评价</div>
  211. <div v-if="t.tool == 18">训练平台</div>
  212. <div v-if="t.tool == 21">AIoT Blockly</div>
  213. <div v-if="t.tool == 23">AI Python</div>
  214. <div v-if="t.tool == 24">AI Blockly</div>
  215. <div v-if="t.tool == 32">源码编辑</div>
  216. <div v-if="t.tool == 57">CocoPi</div>
  217. <div v-if="t.tool == 63">海龟编程</div>
  218. <div v-if="t.tool == 28">翻译</div>
  219. <div v-if="t.tool == 31">数字画板</div>
  220. <div v-if="t.tool == 39">GeoGebra</div>
  221. <div v-if="t.tool == 66">公式编辑</div>
  222. <div v-if="t.tool == 67">分子结构</div>
  223. <div v-if="t.tool == 68">时间轴</div>
  224. <div v-if="t.tool == 69">英语写作</div>
  225. <div v-if="t.tool == 70">英语口语</div>
  226. <div v-if="t.tool == 25">目标管理</div>
  227. <div v-if="t.tool == 26">课程设计</div>
  228. <div v-if="t.tool == 62">交互视频</div>
  229. <div v-if="t.tool == 71">AI智能体</div>
  230. <div v-if="t.tool == 72">应用中心</div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  240. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  241. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  242. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  243. <div>任务{{ taskCount + 1 }}</div>
  244. <el-tooltip
  245. effect="light"
  246. :content="
  247. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  248. "
  249. placement="top"
  250. >
  251. <div>
  252. {{
  253. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  254. .task
  255. }}
  256. </div>
  257. </el-tooltip>
  258. </div>
  259. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  260. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  261. <div class="btnLeft">
  262. <el-tooltip effect="light" content="刷新" placement="top">
  263. <div class="reBtnIcon" @click="refreshCourse">
  264. <span>刷新</span>
  265. </div>
  266. </el-tooltip>
  267. <el-tooltip effect="light" content="评论" placement="top">
  268. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  269. <span>评论</span>
  270. </div>
  271. </el-tooltip>
  272. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  273. <el-tooltip effect="light" content="录制" placement="top">
  274. <div class="vedioIcon" @click="startRecording">
  275. <span>录制</span>
  276. </div>
  277. </el-tooltip>
  278. </div>
  279. <div v-else-if="tType == 1 || tType == 4">
  280. <el-tooltip effect="light" content="下载" placement="top">
  281. <div class="vedioIcon1" @click="stopRecording">
  282. <span>下载</span>
  283. </div>
  284. </el-tooltip>
  285. </div>
  286. </div>
  287. <div class="btnRight">
  288. <div
  289. class="last"
  290. @click="nextOrpreSteps(0)"
  291. v-if="!(IsFollow && tType == 2)"
  292. @mouseover="isHovered = true"
  293. @mouseout="isHovered = false"
  294. >
  295. <div class="lastImg">
  296. <img
  297. :src="
  298. isHovered
  299. ? require('../../assets/icon/newIcons/whiteLast.png')
  300. : require('../../assets/icon/newIcons/last.png')
  301. "
  302. alt=""
  303. />
  304. </div>
  305. <div class="lastText">上一步</div>
  306. </div>
  307. <div
  308. class="last"
  309. @click="nextOrpreSteps(1)"
  310. v-if="!(IsFollow && tType == 2)"
  311. @mouseover="isHovered1 = true"
  312. @mouseout="isHovered1 = false"
  313. >
  314. <div class="lastText">下一步</div>
  315. <div class="lastImg">
  316. <img
  317. :src="
  318. isHovered1
  319. ? require('../../assets/icon/newIcons/whiteNext.png')
  320. : require('../../assets/icon/newIcons/next.png')
  321. "
  322. alt=""
  323. />
  324. </div>
  325. </div>
  326. <div
  327. class="last"
  328. @click="juriVisible = true"
  329. v-if="tType == 1"
  330. @mouseover="isHovered2 = true"
  331. @mouseout="isHovered2 = false"
  332. >
  333. <div class="lastImg">
  334. <img
  335. :src="
  336. isHovered2
  337. ? require('../../assets/icon/newIcons/whiteLock.png')
  338. : require('../../assets/icon/newIcons/lock.png')
  339. "
  340. alt=""
  341. />
  342. </div>
  343. <div class="lastText">权限</div>
  344. </div>
  345. <div
  346. class="returnBtn1 returnIcon"
  347. @click.stop="
  348. goTo(
  349. '/courseDetail?userid=' +
  350. userid +
  351. '&oid=' +
  352. oid +
  353. '&org=' +
  354. org +
  355. '&cid=' +
  356. classId +
  357. '&courseId=' +
  358. id +
  359. '&tType=' +
  360. tType +
  361. '&screenType=' +
  362. screenType
  363. )
  364. "
  365. >
  366. <div class="lastImg">
  367. <img src="../../assets/icon/newIcon/return.png" alt="" />
  368. </div>
  369. <div class="lastText" style="color: #000">返回</div>
  370. </div>
  371. </div>
  372. <!-- <div
  373. class="returnBtn lockIcon"
  374. @click="juriVisible = true"
  375. v-if="tType == 1"
  376. >
  377. 权限
  378. </div>
  379. <div
  380. class="returnBtn vedioIcon"
  381. @click="startRecording"
  382. v-if="!videoStart && (tType == 1 || tType == 4)"
  383. >
  384. 录制
  385. </div>
  386. <div
  387. class="returnBtn"
  388. @click="stopRecording"
  389. v-else-if="tType == 1 || tType == 4"
  390. style="background: #ee5255"
  391. >
  392. 下载
  393. </div>
  394. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  395. 评论
  396. </div>
  397. <div
  398. class="returnBtn"
  399. @click="nextOrpreSteps(0)"
  400. v-if="!(IsFollow && tType == 2)"
  401. >
  402. 上一步
  403. </div>
  404. <div
  405. class="returnBtn"
  406. @click="nextOrpreSteps(1)"
  407. v-if="!(IsFollow && tType == 2)"
  408. >
  409. 下一步
  410. </div>
  411. <div class="returnBtn" @click="refreshCourse">刷新</div>
  412. <div
  413. class="returnBtn returnIcon"
  414. @click.stop="
  415. goTo(
  416. '/courseDetail?userid=' +
  417. userid +
  418. '&oid=' +
  419. oid +
  420. '&org=' +
  421. org +
  422. '&cid=' +
  423. classId +
  424. '&courseId=' +
  425. id +
  426. '&tType=' +
  427. tType +
  428. '&screenType=' +
  429. screenType
  430. )
  431. "
  432. >
  433. 返回
  434. </div> -->
  435. </div>
  436. </div>
  437. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  438. .taskDetail3 && -->
  439. <div
  440. class="isNoMessage"
  441. v-if="
  442. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  443. .chapterData.length == 0 &&
  444. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  445. .toolChoose[0].tool.length == 0 &&
  446. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  447. .taskDetail == '' &&
  448. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .eList &&
  450. !(
  451. courseDetail.userid == userid ||
  452. (courseDetail.course_teacher &&
  453. courseDetail.course_teacher.indexOf(userid) != -1)
  454. )
  455. "
  456. >
  457. <img src="../../assets/icon/isNoMessage.png" alt />
  458. </div>
  459. <div class="study_top" :style="tType=='2'?'width:calc(100% - 10px)':''" :class="{ pzClass: pzDialog }">
  460. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  461. .taskDetail3 || -->
  462. <div
  463. class="vedioBox"
  464. v-if="
  465. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  466. .taskDetail != '' ||
  467. vChapterData[0].length > 0 ||
  468. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  469. "
  470. style="border-radius: 0 0 20px 20px"
  471. >
  472. <!-- <div
  473. class="taskBox"
  474. v-if="
  475. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  476. .taskDetail3
  477. "
  478. >
  479. <div
  480. style="
  481. display: flex;
  482. flex-wrap: nowrap;
  483. flex-direction: column;
  484. position: relative;
  485. "
  486. >
  487. <div
  488. style="
  489. padding: 15px 0;
  490. line-height: 29px;
  491. font-size: 18px;
  492. color: #0e1e33;
  493. "
  494. class="cont"
  495. v-if="
  496. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  497. .taskDetail3 != ''
  498. "
  499. v-html="
  500. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  501. .taskDetail3
  502. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  503. taskCount
  504. ].taskDetail3)
  505. : '暂无描述'
  506. "
  507. ></div>
  508. </div>
  509. </div> -->
  510. <div
  511. class="taskBox"
  512. v-if="
  513. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  514. .taskDetail != ''
  515. "
  516. >
  517. <div
  518. style="
  519. display: flex;
  520. flex-wrap: nowrap;
  521. flex-direction: column;
  522. position: relative;
  523. "
  524. class="renderedFor"
  525. >
  526. <div
  527. style="
  528. padding: 15px 0;
  529. line-height: 29px;
  530. font-size: 18px;
  531. color: #0e1e33;
  532. "
  533. class="cont"
  534. v-if="
  535. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  536. .taskDetail != ''
  537. "
  538. v-html="
  539. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  540. .taskDetail
  541. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  542. taskCount
  543. ].taskDetail)
  544. : '暂无描述'
  545. "
  546. ></div>
  547. </div>
  548. </div>
  549. <div
  550. class="student_head"
  551. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  552. >
  553. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  554. <div
  555. :class="
  556. contentDialog == false
  557. ? 'box_course isContentCss'
  558. : 'box_course'
  559. "
  560. v-if="
  561. vChapterData.length > 0 &&
  562. vChapterData[0] &&
  563. showType !== ''
  564. "
  565. >
  566. <div class="wheel" style="height: auto" v-if="showType === 0">
  567. <div
  568. class="workd_media"
  569. style="height: 650px; width: calc(100% - 50px)"
  570. >
  571. <video-player
  572. class="video-player vjs-custom-skin notop"
  573. :class="contentDialog == false ? 'isAllWidth' : ''"
  574. :playsinline="true"
  575. :options="playerO[0]"
  576. @play="onPlayerPlay($event)"
  577. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  578. ></video-player>
  579. </div>
  580. </div>
  581. <div
  582. class="wheel"
  583. v-if="showType == 1"
  584. style="
  585. box-shadow: 0 0 6px 1px #f2f2f2;
  586. width: 95%;
  587. margin: 0 auto;
  588. background: #f1f1f1;
  589. "
  590. >
  591. <div class="title">查看文档</div>
  592. <el-form class="textBox">
  593. <el-form-item class="textTitle">
  594. <div style="font-size: 22px">
  595. {{ text.name }}
  596. </div>
  597. </el-form-item>
  598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  599. <div v-html="text.url" class="textContent cont"></div>
  600. </el-form>
  601. </div>
  602. <div
  603. class="wheel"
  604. v-if="
  605. pptImgUrl1.indexOf(
  606. 'https://view.officeapps.live.com/op/view.aspx?src='
  607. ) != -1 && showType == 2
  608. "
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. :src="pptImgUrl1"
  614. ></iframe>
  615. </div>
  616. <div
  617. class="wheel"
  618. v-else-if="showType == 2"
  619. style="width: 95%; margin: 0 auto"
  620. >
  621. <iframe
  622. style="width: 100%; height: 100%; border: none"
  623. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  624. :key="diffKey"
  625. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  626. :src="pptImgUrl1"
  627. ></iframe>
  628. <iframe
  629. style="width: 100%; height: 100%; border: none"
  630. security="restricted"
  631. v-else
  632. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType === 16"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <iframe
  642. style="width: 100%; height: 100%; border: none"
  643. :src="pptImgUrl1"
  644. ></iframe>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 3"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <pdf
  652. :pdfUrl="pptImgUrl1"
  653. style="width: 100%; height: 100%; overflow: auto"
  654. ></pdf>
  655. </div>
  656. <div
  657. class="wheel"
  658. v-if="showType == 4"
  659. style="width: 95%; margin: 0 auto"
  660. >
  661. <el-image
  662. :src="pptImgUrl1"
  663. fit="contain"
  664. style="width: 100%; height: 100%; cursor: pointer"
  665. @click="previewImg(pptImgUrl1)"
  666. ></el-image>
  667. </div>
  668. </div>
  669. <div
  670. class="pButton"
  671. style="position: absolute; right: 20px; top: 0; z-index: 998"
  672. v-if="!contentDialog"
  673. @click="setContent(true)"
  674. >
  675. <!-- 批 -->
  676. <img
  677. src="../../assets/icon/newIcons/isLeft.png"
  678. style="width: 45px"
  679. alt=""
  680. />
  681. </div>
  682. <div
  683. v-if="contentDialog == true"
  684. :style="{
  685. width:
  686. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  687. showType === ''
  688. ? 'calc(100%)'
  689. : '300px',
  690. margin:
  691. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  692. showType === ''
  693. ? '0 15px'
  694. : '0 15px 0 0',
  695. }"
  696. >
  697. <div
  698. class="vedioList"
  699. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  700. style="height: 650px"
  701. >
  702. <div class="navCorOpenBox">
  703. <div class="navTitile">内容列表:</div>
  704. <div class="navCorOpen" @click="setContent(false)">
  705. <img
  706. src="../../assets/icon/newIcons/isRight.png"
  707. alt=""
  708. />
  709. </div>
  710. </div>
  711. <div class="navBox">
  712. <div
  713. v-show="
  714. vChapterData[0].length > 0 || fileC[0].length > 0
  715. "
  716. style="padding: 10px 0 25px 0"
  717. >
  718. <div
  719. class="vedioTimeBox"
  720. v-for="(vitem, vindex) in vChapterData[0]"
  721. :key="vindex + '1'"
  722. >
  723. <div class="navListItem" v-if="vitem.type == 2">
  724. <div
  725. @click="lookVedio(vitem.url, vindex)"
  726. class="navText"
  727. :class="isClickNav == vindex ? 'isClickNav' : ''"
  728. >
  729. <span v-if="vitem.text">{{ vitem.text }}-</span
  730. >{{ vitem.name }}
  731. </div>
  732. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  733. <img
  734. src="../../assets/icon/newIcon/down.png"
  735. alt
  736. />
  737. </div> -->
  738. </div>
  739. <div class="navListItem" v-if="vitem.type == 6">
  740. <div
  741. @click="lookText(0, vindex)"
  742. class="navText"
  743. :class="isClickNav == vindex ? 'isClickNav' : ''"
  744. >
  745. {{ vitem.name }}.doc
  746. </div>
  747. <div
  748. class="downIcon"
  749. @click="checkFileFull1(vitem.type, vitem)"
  750. >
  751. <img
  752. src="../../assets/icon/newIcon/allScreen.png"
  753. alt
  754. />
  755. </div>
  756. </div>
  757. <div
  758. class="navListItem"
  759. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  760. >
  761. <div
  762. @click="doUrl(vitem.url, vindex)"
  763. class="navText"
  764. :class="isClickNav == vindex ? 'isClickNav' : ''"
  765. >
  766. {{ vitem.title ? vitem.title : vitem.url }}
  767. </div>
  768. <div
  769. class="downIcon"
  770. @click="checkFileFull1(vitem.type, vitem)"
  771. >
  772. <img
  773. src="../../assets/icon/newIcon/allScreen.png"
  774. alt
  775. />
  776. </div>
  777. </div>
  778. <div class="navListItem" v-if="vitem.type == 3">
  779. <div
  780. @click="downFile(vitem, vindex)"
  781. class="navText"
  782. :class="isClickNav == vindex ? 'isClickNav' : ''"
  783. >
  784. <span v-if="vitem.text">{{ vitem.text }}-</span
  785. >{{ vitem.name }}
  786. </div>
  787. <div
  788. class="downIcon"
  789. @click="checkFileFull1(vitem.type, vitem)"
  790. >
  791. <img
  792. src="../../assets/icon/newIcon/allScreen.png"
  793. alt
  794. />
  795. </div>
  796. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  797. <img
  798. src="../../assets/icon/newIcon/down.png"
  799. alt
  800. />
  801. </div> -->
  802. </div>
  803. <div class="navListItem" v-if="vitem.type == 12">
  804. <div class="navText" @click="downloadFile2(vitem)">
  805. <span v-if="vitem.text">{{ vitem.text }}-</span
  806. >{{ vitem.name }}
  807. </div>
  808. <div
  809. class="downIcon"
  810. @click="checkFileFull1(vitem.type, vitem)"
  811. >
  812. <img
  813. src="../../assets/icon/newIcon/allScreen.png"
  814. alt
  815. />
  816. </div>
  817. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  818. <img
  819. src="../../assets/icon/newIcon/down.png"
  820. alt
  821. />
  822. </div> -->
  823. </div>
  824. <div class="navListItem" v-if="vitem.type == 13">
  825. <div
  826. class="navText"
  827. @click="checkPhoto(vitem, vindex)"
  828. :class="isClickNav == vindex ? 'isClickNav' : ''"
  829. >
  830. {{ vitem.name }}
  831. </div>
  832. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  833. <img
  834. src="../../assets/icon/newIcon/down.png"
  835. alt
  836. />
  837. </div> -->
  838. </div>
  839. <div class="navListItem" v-if="vitem.type == 16">
  840. <div
  841. class="navText"
  842. @click="checkHtml(vitem, vindex)"
  843. :class="isClickNav == vindex ? 'isClickNav' : ''"
  844. >
  845. {{ vitem.name }}
  846. </div>
  847. <div
  848. class="downIcon"
  849. @click="checkFileFull1(vitem.type, vitem)"
  850. >
  851. <img
  852. src="../../assets/icon/newIcon/allScreen.png"
  853. alt
  854. />
  855. </div>
  856. </div>
  857. <div class="navListItem" v-if="vitem.type == 17">
  858. <div
  859. class="navText"
  860. @click="checkHtml(vitem, vindex)"
  861. :class="isClickNav == vindex ? 'isClickNav' : ''"
  862. >
  863. {{ vitem.name }}
  864. </div>
  865. <div
  866. class="downIcon"
  867. @click="checkFileFull1(vitem.type, vitem)"
  868. >
  869. <img
  870. src="../../assets/icon/newIcon/allScreen.png"
  871. alt
  872. />
  873. </div>
  874. </div>
  875. </div>
  876. <div class="fileC_box" v-if="fileC[0].length > 0">
  877. <div class="fileC_title">以下文件不支持预览</div>
  878. <div
  879. class="vedioTimeBox"
  880. v-for="(vitem, vindex) in fileC[0]"
  881. :key="vindex + '1'"
  882. >
  883. <div class="navListItem" v-if="vitem.type == 12">
  884. <div class="navText" style="color: #acb4bf">
  885. <span v-if="vitem.text">{{ vitem.text }}-</span
  886. >{{ vitem.name }}
  887. </div>
  888. <!-- <div
  889. class="downIcon"
  890. @click="downloadFile2(vitem)"
  891. >
  892. <img
  893. src="../../assets/icon/newIcon/down.png"
  894. alt
  895. />
  896. </div> -->
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div style="width: calc(100% - 315px)">
  906. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  907. <!-- <el-button
  908. type="primary"
  909. class="newButton"
  910. @click="checkFileFull(showType, pptImgUrl1)"
  911. >全屏查看</el-button
  912. >
  913. <el-button
  914. type="primary"
  915. class="newButton"
  916. @click="downloadFile(pptImgUrl1)"
  917. v-if="showType != 2"
  918. >文件下载</el-button
  919. > -->
  920. <el-button
  921. v-if="
  922. showType == 2 &&
  923. pptImgUrl1.indexOf(
  924. 'https://view.officeapps.live.com/op/view.aspx?src='
  925. ) == -1
  926. "
  927. type="primary"
  928. class="newButton"
  929. @click="openLine(pptImgUrl1)"
  930. >打开链接
  931. </el-button>
  932. </div>
  933. <!-- <div
  934. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  935. v-if="showType == 1"
  936. >
  937. <el-button
  938. type="primary"
  939. class="newButton"
  940. @click="checkFileFull(showType, text)"
  941. >全屏查看</el-button
  942. >
  943. </div> -->
  944. </div>
  945. </div>
  946. </div>
  947. <div class="student_body" v-resize="resize">
  948. <div
  949. class="vedioBox"
  950. :style="{
  951. borderRadius:
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .taskDetail == '' &&
  954. vChapterData[taskCount].length == 0 &&
  955. fileC[taskCount].length == 0
  956. ? '0 0 20px 20px'
  957. : '20px',
  958. }"
  959. v-if="
  960. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  961. .toolChoose[0].tool &&
  962. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  963. .toolChoose[0].tool.length > 0
  964. "
  965. >
  966. <div
  967. class="toolHeng2"
  968. style="position: relative"
  969. v-if="
  970. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  971. .toolChoose[0].tool &&
  972. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  973. .toolChoose[0].tool.length &&
  974. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  975. .toolChoose[0].tool.length > 0
  976. "
  977. >
  978. <div class="workNav">工作区</div>
  979. <div
  980. class="filebox"
  981. style="flex-wrap: nowrap"
  982. v-for="(tool, toolIndex) in chapInfoList[courseType]
  983. .chapterInfo[0].taskJson[taskCount].toolChoose"
  984. :key="toolIndex"
  985. >
  986. <div class="bzBox">
  987. <div class="yCss"></div>
  988. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  989. 工具{{ toolIndex + 1 }}
  990. </div>
  991. <div
  992. v-if="timeWorkList[toolIndex].length > 0"
  993. style="margin: 0 0 0 10px"
  994. >
  995. {{
  996. timeWorkList[toolIndex][0].time
  997. ? "时间:" + timeWorkList[toolIndex][0].time
  998. : ""
  999. }}
  1000. </div>
  1001. </div>
  1002. <div class="toolBox">
  1003. <div>
  1004. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1005. :key="indexTool"-->
  1006. <!-- <div class="iframeBox">
  1007. <div
  1008. class="addPoint isBorder"
  1009. v-for="(tooC, toolCIndex) in tool.tool"
  1010. :key="toolCIndex"
  1011. >
  1012. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1013. <div
  1014. class="iframeName"
  1015. >
  1016. 电子白板
  1017. </div>
  1018. <iframe
  1019. src="https://iwb.cocorobo.cn/"
  1020. ref="whiteBoard"
  1021. ></iframe>
  1022. </div>
  1023. </div>
  1024. </div>-->
  1025. <div class="noiframeBox">
  1026. <div
  1027. class="addPoint"
  1028. v-for="(tooC, toolCIndex) in tool.tool"
  1029. :key="toolCIndex"
  1030. >
  1031. <div v-if="tooC == 1">
  1032. <img
  1033. src="../../assets/icon/secondToolList/whiteBoard.png"
  1034. alt
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. />
  1037. <div style="margin: 5px 0">电子白板</div>
  1038. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1039. style="position: absolute;right: 33px;top: -30px;">
  1040. 分析
  1041. </div>
  1042. </div>
  1043. <div v-if="tooC == 3">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindMapping.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维导图</div>
  1050. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1051. style="position: absolute;right: 33px;top: -30px;">
  1052. 分析
  1053. </div>
  1054. </div>
  1055. <div v-if="tooC == 6">
  1056. <img
  1057. src="../../assets/icon/secondToolList/doc.png"
  1058. alt
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. />
  1061. <div style="margin: 5px 0">协同文档</div>
  1062. </div>
  1063. <div v-if="tooC == 7">
  1064. <img
  1065. src="../../assets/icon/secondToolList/mindNetwork.png"
  1066. alt
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. />
  1069. <div style="margin: 5px 0">思维网格</div>
  1070. <!-- && worksStudent[toolIndex].length>0 -->
  1071. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1072. style="position: absolute;right: 33px;top: -30px;">
  1073. 分析
  1074. </div>
  1075. </div>
  1076. <div v-if="tooC == 8">
  1077. <img
  1078. src="../../assets/icon/secondToolList/library.png"
  1079. alt
  1080. @click="addTools(tooC, toolIndex, taskCount)"
  1081. />
  1082. <div style="margin: 5px 0">素材库</div>
  1083. </div>
  1084. <div v-if="tooC == 17">
  1085. <img
  1086. src="../../assets/icon/secondToolList/library.png"
  1087. alt
  1088. @click="addTools(tooC, toolIndex, taskCount)"
  1089. />
  1090. <div style="margin: 5px 0">学习资料</div>
  1091. </div>
  1092. <div v-if="tooC == 2">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../assets/icon/secondToolList/note.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">便签</div>
  1099. </div>
  1100. <div v-if="tooC == 4">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../assets/icon/thirdToolList/ask.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">问卷调查</div>
  1107. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1108. style="position: absolute;right: 153px;top: -30px;">
  1109. 分析
  1110. </div>
  1111. <div
  1112. class="upload_toolBtn"
  1113. v-if="tType === '1'"
  1114. @click="
  1115. openStatisticalAnalysis(
  1116. tooC,
  1117. toolIndex,
  1118. taskCount,
  1119. 45
  1120. )
  1121. "
  1122. style="position: absolute;right: 33px;top: -30px;"
  1123. >
  1124. 统计分析
  1125. </div>
  1126. </div>
  1127. <div v-if="tooC == 45">
  1128. <img
  1129. @click="addTools(tooC, toolIndex, taskCount)"
  1130. src="../../assets/icon/thirdToolList/choose.png"
  1131. alt
  1132. />
  1133. <div style="margin: 5px 0">选择题</div>
  1134. <!-- &&worksStudent[toolIndex].length > 0 -->
  1135. <div
  1136. class="upload_toolBtn"
  1137. v-if="tType == 1"
  1138. @click="
  1139. openChoseWorksDetailDialog(
  1140. tooC,
  1141. toolIndex,
  1142. taskCount,45
  1143. )
  1144. "
  1145. style="position: absolute;right: 33px;top: -30px;"
  1146. >
  1147. 分析
  1148. </div>
  1149. </div>
  1150. <!-- <div v-if="tooC == 5">
  1151. <img
  1152. @click="addTools(tooC, toolIndex, taskCount)"
  1153. src="../../assets/icon/thirdToolList/score.png"
  1154. alt
  1155. />
  1156. <div style="margin: 5px 0">量规评分</div>
  1157. </div> -->
  1158. <div v-if="tooC == 10">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/time.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">倒计时</div>
  1165. </div>
  1166. <div v-if="tooC == 15">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/answer.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">问答</div>
  1173. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1174. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1175. 分析
  1176. </div>
  1177. </div>
  1178. <div v-if="tooC == 26">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/thirdToolList/courseDesign.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">课程设计</div>
  1185. </div>
  1186. <div v-if="tooC == 18">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">训练服务器</div>
  1193. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1194. style="position: absolute;right: 33px;top: -30px;">
  1195. 分析
  1196. </div>
  1197. </div>
  1198. <div v-if="tooC == 16">
  1199. <img
  1200. @click="addTools(tooC, toolIndex, taskCount)"
  1201. src="../../assets/icon/thirdToolList/work.png"
  1202. alt
  1203. />
  1204. <div style="margin: 5px 0">作业提交</div>
  1205. </div>
  1206. <div v-if="tooC == 50">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/thirdToolList/plwork.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">批量上传</div>
  1213. </div>
  1214. <div v-if="tooC == 21">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/program.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">AIoT Blockly</div>
  1221. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1222. style="position: absolute;right: 33px;top: -30px;">
  1223. 分析
  1224. </div>
  1225. </div>
  1226. <!-- <div v-if="tooC == 22">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../assets/icon/fourthToolList/program.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">AI体验</div>
  1233. </div> -->
  1234. <div v-if="tooC == 23">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">AI Python</div>
  1241. </div>
  1242. <div v-if="tooC == 24">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/fourthToolList/AIprogram.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">AI Blockly</div>
  1249. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1250. style="position: absolute;right: 33px;top: -30px;">
  1251. 分析
  1252. </div>
  1253. </div>
  1254. <div v-if="tooC == 25">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/thirdToolList/evalua.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">目标管理</div>
  1261. </div>
  1262. <div v-if="tooC == 31">
  1263. <img
  1264. @click="addTools(tooC, toolIndex, taskCount)"
  1265. src="../../assets/icon/secondToolList/networkPanel.png"
  1266. alt
  1267. />
  1268. <div style="margin: 5px 0">数学画板</div>
  1269. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1270. style="position: absolute;right: 33px;top: -30px;">
  1271. 分析
  1272. </div>
  1273. </div>
  1274. <div v-if="tooC == 28">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/secondToolList/translation.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">翻译</div>
  1281. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1282. style="position: absolute;right: 33px;top: -30px;">
  1283. 分析
  1284. </div>
  1285. </div>
  1286. <div v-if="tooC == 37">
  1287. <img
  1288. @click="addTools(tooC, toolIndex, taskCount)"
  1289. src="../../assets/icon/secondToolList/mohe.png"
  1290. alt
  1291. />
  1292. <div style="margin: 5px 0">魔盒识字</div>
  1293. </div>
  1294. <div v-if="tooC == 38">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/secondToolList/24game.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">24点</div>
  1301. </div>
  1302. <div v-if="tooC == 39">
  1303. <img
  1304. @click="addTools(tooC, toolIndex, taskCount)"
  1305. src="../../assets/icon/secondToolList/GeoGebra.png"
  1306. alt
  1307. />
  1308. <div style="margin: 5px 0">GeoGebra</div>
  1309. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1310. style="position: absolute;right: 33px;top: -30px;">
  1311. 分析
  1312. </div>
  1313. </div>
  1314. <div v-if="tooC == 32">
  1315. <img
  1316. @click="addTools(tooC, toolIndex, taskCount)"
  1317. src="../../assets/icon/thirdToolList/code.png"
  1318. alt
  1319. />
  1320. <div style="margin: 5px 0">源码编辑</div>
  1321. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1322. style="position: absolute;right: 153px;top: -42px;">
  1323. 分析
  1324. </div>
  1325. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1326. style="position: absolute;left: 110px;bottom: 30px;">
  1327. 上传文件
  1328. <input type="file" accept="*" style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)" />
  1330. </div> -->
  1331. </div>
  1332. <div v-if="tooC == 40">
  1333. <img
  1334. @click="addTools(tooC, toolIndex, taskCount)"
  1335. src="../../assets/icon/secondToolList/eval.png"
  1336. alt
  1337. />
  1338. <div style="margin: 5px 0">个人评价</div>
  1339. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1340. style="position: absolute;right: 33px;top: -30px;">
  1341. 分析
  1342. </div>
  1343. </div>
  1344. <div v-if="tooC == 41">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../../assets/icon/thirdToolList/select.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">选择匹配</div>
  1351. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. 分析
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 44">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/thirdToolList/hanClass.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">汉字宫</div>
  1363. </div>
  1364. <div v-if="tooC == 47">
  1365. <img
  1366. @click="addTools(tooC, toolIndex, taskCount)"
  1367. src="../../assets/icon/fourthToolList/conSentences.png"
  1368. alt
  1369. />
  1370. <div style="margin: 5px 0">排序</div>
  1371. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1372. style="position: absolute;right: 33px;top: -30px;">
  1373. 分析
  1374. </div>
  1375. </div>
  1376. <div v-if="tooC == 48">
  1377. <img
  1378. @click="addTools(tooC, toolIndex, taskCount)"
  1379. src="../../assets/icon/fourthToolList/table.png"
  1380. alt
  1381. />
  1382. <div style="margin: 5px 0">表格</div>
  1383. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1384. style="position: absolute;right: 33px;top: -30px;">
  1385. 分析
  1386. </div>
  1387. </div>
  1388. <div v-if="tooC == 52">
  1389. <img
  1390. @click="addTools(tooC, toolIndex, taskCount)"
  1391. src="../../assets/icon/fourthToolList/text.png"
  1392. alt
  1393. />
  1394. <div style="margin: 5px 0">文档</div>
  1395. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1396. style="position: absolute;right: 33px;top: -30px;">
  1397. 分析
  1398. </div>
  1399. </div>
  1400. <div v-if="tooC == 49">
  1401. <img
  1402. @click="addTools(tooC, toolIndex, taskCount)"
  1403. src="../../assets/icon/fourthToolList/group.png"
  1404. alt
  1405. />
  1406. <div style="margin: 5px 0">学生分组</div>
  1407. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1408. style="position: absolute;right: 33px;top: -30px;">
  1409. 分析
  1410. </div>
  1411. </div>
  1412. <div v-if="tooC == 57">
  1413. <img
  1414. @click="addTools(tooC, toolIndex, taskCount)"
  1415. src="../../assets/icon/fourthToolList/cocopi.png"
  1416. alt
  1417. />
  1418. <div style="margin: 5px 0">CocoPi</div>
  1419. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1420. style="position: absolute;right: 33px;top: -30px;">
  1421. 分析
  1422. </div>
  1423. </div>
  1424. <div v-if="tooC == 58">
  1425. <img
  1426. @click="addTools(tooC, toolIndex, taskCount)"
  1427. src="../../assets/icon/fourthToolList/car.png"
  1428. alt
  1429. />
  1430. <div style="margin: 5px 0">模拟驾驶</div>
  1431. </div>
  1432. <div v-if="tooC == 59">
  1433. <img
  1434. @click="addTools(tooC, toolIndex, taskCount)"
  1435. src="../../assets/icon/fourthToolList/lineSearch.png"
  1436. alt
  1437. />
  1438. <div style="margin: 5px 0">路径搜索</div>
  1439. </div>
  1440. <div v-if="tooC == 60">
  1441. <img
  1442. @click="addTools(tooC, toolIndex, taskCount)"
  1443. src="../../assets/icon/fourthToolList/deepLearning.png"
  1444. alt
  1445. />
  1446. <div style="margin: 5px 0">深度学习</div>
  1447. </div>
  1448. <div v-if="tooC == 61">
  1449. <img
  1450. @click="addTools(tooC, toolIndex, taskCount)"
  1451. src="../../assets/icon/fourthToolList/allHistory.png"
  1452. alt
  1453. />
  1454. <div style="margin: 5px 0">全历史</div>
  1455. </div>
  1456. <div v-if="tooC == 62">
  1457. <img
  1458. @click="addTools(tooC, toolIndex, taskCount)"
  1459. src="../../assets/icon/fourthToolList/interVideo.png"
  1460. alt
  1461. />
  1462. <div style="margin: 5px 0">交互视频</div>
  1463. </div>
  1464. <div v-if="tooC == 63">
  1465. <img
  1466. @click="addTools(tooC, toolIndex, taskCount)"
  1467. src="../../assets/icon/fourthToolList/Wood.png"
  1468. alt
  1469. />
  1470. <div style="margin: 5px 0">海龟编程</div>
  1471. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1472. style="position: absolute;right: 33px;top: -30px;">
  1473. 分析
  1474. </div>
  1475. </div>
  1476. <div v-if="tooC == 71">
  1477. <img
  1478. @click="addTools(tooC, toolIndex, taskCount)"
  1479. src="../../assets/icon/fourthToolList/chatgpt.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">AI智能体</div>
  1483. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1484. style="position: absolute;right: 33px;top: -30px;">
  1485. 分析
  1486. </div>
  1487. </div>
  1488. <div v-if="tooC == 72">
  1489. <img
  1490. style="height: 85px;object-fit: cover;"
  1491. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1492. @click="addTools(tooC, toolIndex, taskCount)"
  1493. :src="tool.appJson.json.icon"
  1494. alt
  1495. />
  1496. <img
  1497. v-else
  1498. @click="addTools(tooC, toolIndex, taskCount)"
  1499. src="../../assets/icon/firstToolList/appStore.png"
  1500. alt
  1501. />
  1502. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1503. <!-- content to trigger tooltip here -->
  1504. <div class="Ovh">
  1505. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1506. </div>
  1507. </el-tooltip>
  1508. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1509. style="position: absolute;right: 33px;top: -30px;">
  1510. 分析
  1511. </div>
  1512. </div>
  1513. <div v-if="tooC == 65">
  1514. <img
  1515. @click="addTools(tooC, toolIndex, taskCount)"
  1516. src="../../assets/icon/firstToolList/pickPeople.png"
  1517. alt
  1518. />
  1519. <div style="margin: 5px 0">挑人</div>
  1520. </div>
  1521. <div v-if="tooC == 66">
  1522. <img
  1523. @click="addTools(tooC, toolIndex, taskCount)"
  1524. src="../../assets/icon/secondToolList/formulaEdi.png"
  1525. alt
  1526. />
  1527. <div style="margin: 5px 0">公式编辑</div>
  1528. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1529. style="position: absolute;right: 33px;top: -30px;">
  1530. 分析
  1531. </div>
  1532. </div>
  1533. <div v-if="tooC == 67">
  1534. <img
  1535. @click="addTools(tooC, toolIndex, taskCount)"
  1536. src="../../assets/icon/secondToolList/molStr.png"
  1537. alt
  1538. />
  1539. <div style="margin: 5px 0">分子结构</div>
  1540. </div>
  1541. <div v-if="tooC == 68">
  1542. <img
  1543. @click="addTools(tooC, toolIndex, taskCount)"
  1544. src="../../assets/icon/secondToolList/timeAxis.png"
  1545. alt
  1546. />
  1547. <div style="margin: 5px 0">时间轴</div>
  1548. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1549. style="position: absolute;right: 33px;top: -30px;">
  1550. 分析
  1551. </div> -->
  1552. </div>
  1553. <div v-if="tooC == 69">
  1554. <img
  1555. @click="addTools(tooC, toolIndex, taskCount)"
  1556. src="../../assets/icon/secondToolList/english.png"
  1557. alt
  1558. />
  1559. <div style="margin: 5px 0">英语写作</div>
  1560. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1561. style="position: absolute;right: 33px;top: -30px;">
  1562. 分析
  1563. </div>
  1564. </div>
  1565. <div v-if="tooC == 70">
  1566. <img
  1567. @click="addTools(tooC, toolIndex, taskCount)"
  1568. src="../../assets/icon/thirdToolList/englishVoice.png"
  1569. alt
  1570. />
  1571. <div style="margin: 5px 0">英语口语</div>
  1572. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1573. style="position: absolute;right: 33px;top: -30px;">
  1574. 分析
  1575. </div>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. </div>
  1580. <div
  1581. class="tooldetail renderedFor"
  1582. v-if="tool.toolDetail != ''"
  1583. :class="{
  1584. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1585. }"
  1586. >
  1587. <!-- <div class="toolTitle">工具描述</div> -->
  1588. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1589. <div
  1590. style="height:100%;"
  1591. v-html="renderedFormula(tool.toolDetail)"
  1592. v-if="toolDetailIndex != toolIndex"
  1593. ></div>
  1594. <div v-else @click.stop="" style="height:100%;">
  1595. <textarea
  1596. @change="
  1597. () => {
  1598. $forceUpdate();
  1599. }
  1600. "
  1601. class="checkTextArea"
  1602. rows="3"
  1603. v-autoHeight="70"
  1604. type="text"
  1605. placeholder="请输入任务描述"
  1606. v-model="updateToolDetailInner"
  1607. ></textarea>
  1608. </div>
  1609. </div>
  1610. <el-button
  1611. type="primary"
  1612. v-if="tool.tool[0] == 32"
  1613. style="position: absolute; right: 30px; top: -45px"
  1614. @click="addImg($event)"
  1615. >上传作业<input
  1616. type="file"
  1617. accept="*"
  1618. style="display: none"
  1619. @change="beforeUpload1($event, 7, toolIndex)"
  1620. /></el-button>
  1621. <el-button
  1622. type="primary"
  1623. v-if="tool.tool[0] == 15"
  1624. style="position: absolute; right: 30px; top: -45px"
  1625. @click="openWordCloud(toolIndex)"
  1626. >生成词云</el-button
  1627. >
  1628. <el-button
  1629. type="primary"
  1630. v-if="
  1631. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1632. "
  1633. style="position: absolute; right: 30px; top: -45px"
  1634. @click="uploadWorks(toolIndex)"
  1635. >导出作业</el-button
  1636. >
  1637. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1638. position: absolute;
  1639. right: 30px;
  1640. transform: translateY(-130%);
  1641. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1642. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1643. </div>
  1644. <div
  1645. v-if="
  1646. tType &&
  1647. tType == 2 &&
  1648. !sIsOpen &&
  1649. tool.tool.indexOf(16) != -1
  1650. "
  1651. class="worksBox"
  1652. >
  1653. <div
  1654. class="zuoyeYulan"
  1655. v-if="workStudent[toolIndex].length > 0"
  1656. >
  1657. <span class="worksTitle">作业预览</span>
  1658. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1659. </div>
  1660. <div
  1661. class="worksDetailBox"
  1662. v-if="workStudent[toolIndex].length > 0"
  1663. >
  1664. <div
  1665. class="works"
  1666. style="
  1667. width: 200px;
  1668. height: 140px;
  1669. margin: 10px 10px 10px 0;
  1670. box-shadow: 0 0 6px 1px #dfdada;
  1671. "
  1672. v-for="(w, wIndex) in workStudent[toolIndex]"
  1673. :key="wIndex"
  1674. >
  1675. <div class="workImg" v-if="w.type == 0">
  1676. <img
  1677. :src="w.works"
  1678. @click="previewImg(w.works, w)"
  1679. alt
  1680. />
  1681. <div
  1682. class="answerScore"
  1683. v-if="w.score"
  1684. @click.stop="openScore(w)"
  1685. :class="{
  1686. rightW:
  1687. w.userid == userid || tType == 1 || tType == 4
  1688. }"
  1689. >
  1690. {{ JSON.parse(w.score).wScore }}分
  1691. </div>
  1692. <div
  1693. class="answerScore"
  1694. @click.stop="openScore(w)"
  1695. v-else-if="courseDetail.userid == userid"
  1696. :class="{
  1697. rightW:
  1698. w.userid == userid || tType == 1 || tType == 4
  1699. }"
  1700. >
  1701. 评分
  1702. </div>
  1703. <div
  1704. class="stuLookScore"
  1705. v-if="
  1706. w.userid == userid ||
  1707. (tType == 1 &&
  1708. courseDetail.state == 6 &&
  1709. ((chapInfoList[courseType].chapterInfo[0]
  1710. .taskJson[taskCount].eList &&
  1711. chapInfoList[courseType].chapterInfo[0]
  1712. .taskJson[taskCount].eList.length) ||
  1713. (tool.eList && tool.eList.length)))
  1714. "
  1715. >
  1716. <el-popover
  1717. placement="top"
  1718. width="318"
  1719. trigger="hover"
  1720. >
  1721. <markScore
  1722. :loading="AIloading[toolIndex][wIndex].loading"
  1723. :markScoreVisible="markScoreVisible"
  1724. :ref="`markSco${toolIndex}${wIndex}`"
  1725. @updateLoading="updateLoading"
  1726. @updateDocSco="updateDocSco"
  1727. @refreshOther="refreshOther"
  1728. @markScoreDig="markScoreDig"
  1729. :tool="tool"
  1730. :wIndex="wIndex"
  1731. :scoCon="w"
  1732. :toolIndex="toolIndex"
  1733. :key="refreshKey"
  1734. :stage="courseType"
  1735. :task="taskCount"
  1736. :scoTit="
  1737. chapInfoList[courseType].chapterInfo[0]
  1738. .taskJson[taskCount].eList
  1739. "
  1740. >
  1741. </markScore>
  1742. <div
  1743. @click="
  1744. markScoreDig2(
  1745. w.sName,
  1746. worksStudent,
  1747. w.userid,
  1748. toolIndex,
  1749. chapInfoList[courseType].chapterInfo[0]
  1750. .taskJson[taskCount].eList,
  1751. AIloading[toolIndex][wIndex].loading,
  1752. tool
  1753. )
  1754. "
  1755. slot="reference"
  1756. >
  1757. <span v-if="AIloading[toolIndex][wIndex].sco">
  1758. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1759. </span>
  1760. <span v-else>
  1761. 评分
  1762. </span>
  1763. </div>
  1764. </el-popover>
  1765. </div>
  1766. <img
  1767. class="deleteImg"
  1768. src="../../assets/deleteworks.png"
  1769. v-if="
  1770. w.userid == userid || tType == 1 || tType == 4
  1771. "
  1772. @click.stop="deleteWorks(w.wid)"
  1773. alt
  1774. />
  1775. </div>
  1776. <div class="workImg" v-if="w.type == 1">
  1777. <img :src="word" @click="openFile(w.works)" alt />
  1778. <div
  1779. class="answerScore"
  1780. v-if="w.score"
  1781. @click.stop="openScore(w)"
  1782. :class="{
  1783. rightW:
  1784. w.userid == userid || tType == 1 || tType == 4
  1785. }"
  1786. >
  1787. {{ JSON.parse(w.score).wScore }}分
  1788. </div>
  1789. <div
  1790. class="answerScore"
  1791. @click.stop="openScore(w)"
  1792. v-else-if="courseDetail.userid == userid"
  1793. :class="{
  1794. rightW:
  1795. w.userid == userid || tType == 1 || tType == 4
  1796. }"
  1797. >
  1798. 评分
  1799. </div>
  1800. <div
  1801. class="stuLookScore"
  1802. v-if="
  1803. w.userid == userid ||
  1804. (tType == 1 &&
  1805. courseDetail.state == 6 &&
  1806. ((chapInfoList[courseType].chapterInfo[0]
  1807. .taskJson[taskCount].eList &&
  1808. chapInfoList[courseType].chapterInfo[0]
  1809. .taskJson[taskCount].eList.length) ||
  1810. (tool.eList && tool.eList.length)))
  1811. "
  1812. >
  1813. <el-popover
  1814. placement="top"
  1815. width="318"
  1816. trigger="hover"
  1817. >
  1818. <markScore
  1819. :loading="AIloading[toolIndex][wIndex].loading"
  1820. :markScoreVisible="markScoreVisible"
  1821. :ref="`markSco${toolIndex}${wIndex}`"
  1822. @updateLoading="updateLoading"
  1823. @updateDocSco="updateDocSco"
  1824. @refreshOther="refreshOther"
  1825. @markScoreDig="markScoreDig"
  1826. :tool="tool"
  1827. :wIndex="wIndex"
  1828. :scoCon="w"
  1829. :toolIndex="toolIndex"
  1830. :key="refreshKey"
  1831. :stage="courseType"
  1832. :task="taskCount"
  1833. :scoTit="
  1834. chapInfoList[courseType].chapterInfo[0]
  1835. .taskJson[taskCount].eList
  1836. "
  1837. >
  1838. </markScore>
  1839. <div
  1840. @click="
  1841. markScoreDig2(
  1842. w.sName,
  1843. worksStudent,
  1844. w.userid,
  1845. toolIndex,
  1846. chapInfoList[courseType].chapterInfo[0]
  1847. .taskJson[taskCount].eList,
  1848. AIloading[toolIndex][wIndex].loading,
  1849. tool
  1850. )
  1851. "
  1852. slot="reference"
  1853. >
  1854. <span v-if="AIloading[toolIndex][wIndex].sco">
  1855. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1856. </span>
  1857. <span v-else>
  1858. 评分
  1859. </span>
  1860. </div>
  1861. </el-popover>
  1862. </div>
  1863. <img
  1864. class="deleteImg"
  1865. src="../../assets/deleteworks.png"
  1866. v-if="
  1867. w.userid == userid || tType == 1 || tType == 4
  1868. "
  1869. @click.stop="deleteWorks(w.wid)"
  1870. alt
  1871. />
  1872. </div>
  1873. <div class="workImg" v-if="w.type == 3">
  1874. <img
  1875. style="cursor: pointer"
  1876. :src="video"
  1877. @click="openVideo(w)"
  1878. alt
  1879. />
  1880. <div
  1881. class="answerScore"
  1882. v-if="w.score"
  1883. @click.stop="openScore(w)"
  1884. :class="{
  1885. rightW:
  1886. w.userid == userid || tType == 1 || tType == 4
  1887. }"
  1888. >
  1889. {{ JSON.parse(w.score).wScore }}分
  1890. </div>
  1891. <div
  1892. class="answerScore"
  1893. @click.stop="openScore(w)"
  1894. v-else-if="courseDetail.userid == userid"
  1895. :class="{
  1896. rightW:
  1897. w.userid == userid || tType == 1 || tType == 4
  1898. }"
  1899. >
  1900. 评分
  1901. </div>
  1902. <div
  1903. class="stuLookScore"
  1904. v-if="
  1905. w.userid == userid ||
  1906. (tType == 1 &&
  1907. courseDetail.state == 6 &&
  1908. ((chapInfoList[courseType].chapterInfo[0]
  1909. .taskJson[taskCount].eList &&
  1910. chapInfoList[courseType].chapterInfo[0]
  1911. .taskJson[taskCount].eList.length) ||
  1912. (tool.eList && tool.eList.length)))
  1913. "
  1914. >
  1915. <el-popover
  1916. placement="top"
  1917. width="318"
  1918. trigger="hover"
  1919. >
  1920. <markScore
  1921. :loading="AIloading[toolIndex][wIndex].loading"
  1922. :markScoreVisible="markScoreVisible"
  1923. :ref="`markSco${toolIndex}${wIndex}`"
  1924. @updateLoading="updateLoading"
  1925. @updateDocSco="updateDocSco"
  1926. @refreshOther="refreshOther"
  1927. @markScoreDig="markScoreDig"
  1928. :tool="tool"
  1929. :wIndex="wIndex"
  1930. :scoCon="w"
  1931. :toolIndex="toolIndex"
  1932. :key="refreshKey"
  1933. :stage="courseType"
  1934. :task="taskCount"
  1935. :scoTit="
  1936. chapInfoList[courseType].chapterInfo[0]
  1937. .taskJson[taskCount].eList
  1938. "
  1939. >
  1940. </markScore>
  1941. <div
  1942. @click="
  1943. markScoreDig2(
  1944. w.sName,
  1945. worksStudent,
  1946. w.userid,
  1947. toolIndex,
  1948. chapInfoList[courseType].chapterInfo[0]
  1949. .taskJson[taskCount].eList,
  1950. AIloading[toolIndex][wIndex].loading,
  1951. tool
  1952. )
  1953. "
  1954. slot="reference"
  1955. >
  1956. <span v-if="AIloading[toolIndex][wIndex].sco">
  1957. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1958. </span>
  1959. <span v-else>
  1960. 评分
  1961. </span>
  1962. </div>
  1963. </el-popover>
  1964. </div>
  1965. <img
  1966. class="deleteImg"
  1967. src="../../assets/deleteworks.png"
  1968. v-if="
  1969. w.userid == userid || tType == 1 || tType == 4
  1970. "
  1971. @click.stop="deleteWorks(w.wid)"
  1972. alt
  1973. />
  1974. </div>
  1975. <div class="workImg" v-if="w.type == 12">
  1976. <img
  1977. style="cursor: pointer"
  1978. :src="word2"
  1979. @click="downloadFile(w.works,w.userid)"
  1980. alt
  1981. />
  1982. <div
  1983. class="answerScore"
  1984. v-if="w.score"
  1985. @click.stop="openScore(w)"
  1986. :class="{
  1987. rightW:
  1988. w.userid == userid || tType == 1 || tType == 4
  1989. }"
  1990. >
  1991. {{ JSON.parse(w.score).wScore }}分
  1992. </div>
  1993. <div
  1994. class="answerScore"
  1995. @click.stop="openScore(w)"
  1996. v-else-if="courseDetail.userid == userid"
  1997. :class="{
  1998. rightW:
  1999. w.userid == userid || tType == 1 || tType == 4
  2000. }"
  2001. >
  2002. 评分
  2003. </div>
  2004. <div
  2005. class="stuLookScore"
  2006. v-if="
  2007. w.userid == userid ||
  2008. (tType == 1 &&
  2009. courseDetail.state == 6 &&
  2010. ((chapInfoList[courseType].chapterInfo[0]
  2011. .taskJson[taskCount].eList &&
  2012. chapInfoList[courseType].chapterInfo[0]
  2013. .taskJson[taskCount].eList.length) ||
  2014. (tool.eList && tool.eList.length)))
  2015. "
  2016. >
  2017. <el-popover
  2018. placement="top"
  2019. width="318"
  2020. trigger="hover"
  2021. >
  2022. <markScore
  2023. :loading="AIloading[toolIndex][wIndex].loading"
  2024. :markScoreVisible="markScoreVisible"
  2025. :ref="`markSco${toolIndex}${wIndex}`"
  2026. @updateLoading="updateLoading"
  2027. @updateDocSco="updateDocSco"
  2028. @refreshOther="refreshOther"
  2029. @markScoreDig="markScoreDig"
  2030. :tool="tool"
  2031. :wIndex="wIndex"
  2032. :scoCon="w"
  2033. :toolIndex="toolIndex"
  2034. :key="refreshKey"
  2035. :stage="courseType"
  2036. :task="taskCount"
  2037. :scoTit="
  2038. chapInfoList[courseType].chapterInfo[0]
  2039. .taskJson[taskCount].eList
  2040. "
  2041. >
  2042. </markScore>
  2043. <div
  2044. @click="
  2045. markScoreDig2(
  2046. w.sName,
  2047. worksStudent,
  2048. w.userid,
  2049. toolIndex,
  2050. chapInfoList[courseType].chapterInfo[0]
  2051. .taskJson[taskCount].eList,
  2052. AIloading[toolIndex][wIndex].loading,
  2053. tool
  2054. )
  2055. "
  2056. slot="reference"
  2057. >
  2058. <span v-if="AIloading[toolIndex][wIndex].sco">
  2059. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2060. </span>
  2061. <span v-else>
  2062. 评分
  2063. </span>
  2064. </div>
  2065. </el-popover>
  2066. </div>
  2067. <img
  2068. class="deleteImg"
  2069. src="../../assets/deleteworks.png"
  2070. v-if="
  2071. w.userid == userid || tType == 1 || tType == 4
  2072. "
  2073. @click.stop="deleteWorks(w.wid)"
  2074. alt
  2075. />
  2076. </div>
  2077. <div class="worksName">
  2078. <div>{{ w.sName }}</div>
  2079. </div>
  2080. </div>
  2081. </div>
  2082. </div>
  2083. <div
  2084. v-if="
  2085. tType &&
  2086. tType == 2 &&
  2087. !sIsOpen &&
  2088. tool.tool.indexOf(32) != -1
  2089. "
  2090. class="worksBox"
  2091. >
  2092. <div
  2093. class="zuoyeYulan"
  2094. v-if="workStudent[toolIndex].length > 0"
  2095. >
  2096. <span class="worksTitle">作业预览</span>
  2097. </div>
  2098. <div
  2099. class="worksDetailBox"
  2100. v-if="workStudent[toolIndex].length > 0"
  2101. >
  2102. <div
  2103. class="works"
  2104. style="
  2105. width: 200px;
  2106. height: 140px;
  2107. margin: 10px 10px 10px 0;
  2108. box-shadow: 0 0 6px 1px #dfdada;
  2109. "
  2110. v-for="(w, wIndex) in workStudent[toolIndex]"
  2111. :key="wIndex"
  2112. >
  2113. <div class="workImg">
  2114. <img
  2115. :src="word2"
  2116. @click="downloadFile(w.works,w.userid)"
  2117. alt
  2118. />
  2119. <div
  2120. class="answerScore"
  2121. v-if="w.score"
  2122. @click.stop="openScore(w)"
  2123. :class="{
  2124. rightW:
  2125. w.userid == userid || tType == 1 || tType == 4
  2126. }"
  2127. >
  2128. {{ JSON.parse(w.score).wScore }}分
  2129. </div>
  2130. <div
  2131. class="answerScore"
  2132. @click.stop="openScore(w)"
  2133. v-else-if="courseDetail.userid == userid"
  2134. :class="{
  2135. rightW:
  2136. w.userid == userid || tType == 1 || tType == 4
  2137. }"
  2138. >
  2139. 评分
  2140. </div>
  2141. <img
  2142. class="deleteImg"
  2143. src="../../assets/deleteworks.png"
  2144. v-if="
  2145. w.userid == userid || tType == 1 || tType == 4
  2146. "
  2147. @click.stop="deleteWorks(w.wid)"
  2148. alt
  2149. />
  2150. </div>
  2151. <div class="worksName">
  2152. <div>{{ w.sName }}</div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. </div>
  2157. <div
  2158. v-if="
  2159. tType &&
  2160. tType == 2 &&
  2161. !sIsOpen &&
  2162. tool.tool.indexOf(57) != -1
  2163. "
  2164. class="worksBox"
  2165. >
  2166. <div
  2167. class="zuoyeYulan"
  2168. v-if="workStudent[toolIndex].length > 0"
  2169. >
  2170. <span class="worksTitle">作业预览</span>
  2171. </div>
  2172. <div
  2173. class="worksDetailBox"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <div
  2177. class="works"
  2178. style="
  2179. width: 200px;
  2180. height: 140px;
  2181. margin: 10px 10px 10px 0;
  2182. box-shadow: 0 0 6px 1px #dfdada;
  2183. "
  2184. v-for="(w, wIndex) in workStudent[toolIndex]"
  2185. :key="wIndex"
  2186. >
  2187. <div class="workImg">
  2188. <img
  2189. :src="word2"
  2190. @click="downloadFile(w.works,w.userid)"
  2191. v-if="w.type == 12"
  2192. alt
  2193. />
  2194. <img
  2195. :src="word2"
  2196. @click="
  2197. openCocoPi(57, toolIndex, w.userid, w.sName)
  2198. "
  2199. v-else-if="w.type == 15"
  2200. alt
  2201. />
  2202. <div
  2203. class="answerScore"
  2204. v-if="w.score"
  2205. @click.stop="openScore(w)"
  2206. :class="{
  2207. rightW:
  2208. w.userid == userid || tType == 1 || tType == 4
  2209. }"
  2210. >
  2211. {{ JSON.parse(w.score).wScore }}分
  2212. </div>
  2213. <div
  2214. class="answerScore"
  2215. @click.stop="openScore(w)"
  2216. v-else-if="courseDetail.userid == userid"
  2217. :class="{
  2218. rightW:
  2219. w.userid == userid || tType == 1 || tType == 4
  2220. }"
  2221. >
  2222. 评分
  2223. </div>
  2224. <img
  2225. class="deleteImg"
  2226. src="../../assets/deleteworks.png"
  2227. v-if="
  2228. w.userid == userid || tType == 1 || tType == 4
  2229. "
  2230. @click.stop="deleteWorks(w.wid)"
  2231. alt
  2232. />
  2233. </div>
  2234. <div class="worksName">
  2235. <div>{{ w.sName }}</div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. </div>
  2240. <div
  2241. v-if="
  2242. tType &&
  2243. tType == 2 &&
  2244. !sIsOpen &&
  2245. tool.tool.indexOf(4) != -1
  2246. "
  2247. class="worksBox"
  2248. >
  2249. <div
  2250. class="zuoyeYulan"
  2251. v-if="workStudent[toolIndex].length > 0"
  2252. >
  2253. <span class="worksTitle">作业预览</span>
  2254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2255. </div>
  2256. <div
  2257. class="worksDetailBox"
  2258. v-if="workStudent[toolIndex].length > 0"
  2259. >
  2260. <div
  2261. class="isWorksName2"
  2262. v-for="(w, wIndex) in workStudent[toolIndex]"
  2263. :key="wIndex"
  2264. @click="
  2265. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2266. "
  2267. >
  2268. {{ w.sName }}
  2269. <img
  2270. class="deleteImg deleteImg2"
  2271. src="../../assets/deleteworks.png"
  2272. v-if="w.userid == userid || tType == 1 || tType == 4"
  2273. @click.stop="deleteWorks(w.wid)"
  2274. alt
  2275. />
  2276. </div>
  2277. <!-- <div
  2278. class="works"
  2279. style="
  2280. width: 200px;
  2281. height: 140px;
  2282. border-radius: 10px;
  2283. box-shadow: 0 0 6px 1px #dfdada;
  2284. overflow: hidden;
  2285. "
  2286. v-for="(w, wIndex) in workStudent[toolIndex]"
  2287. :key="wIndex"
  2288. >
  2289. <div class="workImg">
  2290. <img
  2291. src="../../assets/icon/works/noImg.png"
  2292. @click="
  2293. openTools(
  2294. 4,
  2295. toolIndex,
  2296. taskCount,
  2297. w.works,
  2298. w.sName
  2299. )
  2300. "
  2301. alt
  2302. />
  2303. </div>
  2304. <div class="worksName">
  2305. <div>{{ w.sName }}</div>
  2306. <div>{{ w.time }}</div>
  2307. </div>
  2308. </div> -->
  2309. </div>
  2310. </div>
  2311. <div
  2312. v-if="
  2313. tType &&
  2314. ((tType == 2 && sIsOpen == true) ||
  2315. tType == 1 ||
  2316. tType == 4) &&
  2317. tool.tool.indexOf(62) != -1
  2318. "
  2319. class="worksBox"
  2320. >
  2321. <div
  2322. class="zuoyeYulan"
  2323. v-if="
  2324. worksStudent.length &&
  2325. worksStudent[toolIndex].length > 0
  2326. "
  2327. >
  2328. <div class="worksTop">
  2329. <div>作业预览</div>
  2330. <div
  2331. class="corOpen"
  2332. @click="contract(toolIndex)"
  2333. v-if="
  2334. isCloseList[toolIndex].isCloseBoolean &&
  2335. isCloseList[toolIndex].isClose == 0
  2336. "
  2337. >
  2338. 折叠
  2339. </div>
  2340. <div
  2341. class="corOpen"
  2342. @click="contract(toolIndex)"
  2343. v-if="isCloseList[toolIndex].isClose == 1"
  2344. >
  2345. 展开
  2346. </div>
  2347. </div>
  2348. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2349. </div>
  2350. <div>
  2351. <div
  2352. :id="'tool-' + toolIndex"
  2353. :style="{
  2354. height:
  2355. isCloseList[toolIndex].isClose == 1
  2356. ? retrnToolHeight('tool-' + toolIndex)
  2357. : 'auto',
  2358. overflow:
  2359. isCloseList[toolIndex].isClose == 1
  2360. ? 'hidden'
  2361. : 'unset'
  2362. }"
  2363. class="worksDetailBox"
  2364. v-if="
  2365. worksStudent.length &&
  2366. worksStudent[toolIndex].length > 0
  2367. "
  2368. >
  2369. <div
  2370. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2371. :key="wIndex"
  2372. class="isWorksName2"
  2373. @click="
  2374. openTools(
  2375. 62,
  2376. toolIndex,
  2377. taskCount,
  2378. w.works,
  2379. w.sName
  2380. )
  2381. "
  2382. >
  2383. {{ w.sName }}
  2384. <img
  2385. class="deleteImg deleteImg2"
  2386. src="../../assets/deleteworks.png"
  2387. v-if="
  2388. w.userid == userid || tType == 1 || tType == 4
  2389. "
  2390. @click.stop="deleteWorks(w.wid)"
  2391. alt
  2392. />
  2393. </div>
  2394. </div>
  2395. </div>
  2396. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2397. 未提交
  2398. </div>
  2399. <div
  2400. class="noWorksS"
  2401. v-if="noWorksS && noWorksS[toolIndex].length"
  2402. >
  2403. <div
  2404. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2405. :key="sIndex"
  2406. class="noWorksName"
  2407. >
  2408. <el-tooltip
  2409. effect="dark"
  2410. :content="s.student"
  2411. placement="top"
  2412. >
  2413. <span>{{ s.student }}</span>
  2414. </el-tooltip>
  2415. </div>
  2416. </div>
  2417. </div>
  2418. <div
  2419. v-if="
  2420. tType &&
  2421. tType == 2 &&
  2422. !sIsOpen &&
  2423. tool.tool.indexOf(62) != -1
  2424. "
  2425. class="worksBox"
  2426. >
  2427. <div
  2428. class="zuoyeYulan"
  2429. v-if="workStudent[toolIndex].length > 0"
  2430. >
  2431. <span class="worksTitle">作业预览</span>
  2432. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2433. </div>
  2434. <div
  2435. class="worksDetailBox"
  2436. v-if="workStudent[toolIndex].length > 0"
  2437. >
  2438. <div
  2439. class="isWorksName2"
  2440. v-for="(w, wIndex) in workStudent[toolIndex]"
  2441. :key="wIndex"
  2442. @click="
  2443. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2444. "
  2445. >
  2446. {{ w.sName }}
  2447. <img
  2448. class="deleteImg deleteImg2"
  2449. src="../../assets/deleteworks.png"
  2450. v-if="w.userid == userid || tType == 1 || tType == 4"
  2451. @click.stop="deleteWorks(w.wid)"
  2452. alt
  2453. />
  2454. </div>
  2455. </div>
  2456. </div>
  2457. <div
  2458. v-if="
  2459. tType &&
  2460. tType == 2 &&
  2461. !sIsOpen &&
  2462. tool.tool.indexOf(45) != -1
  2463. "
  2464. class="worksBox"
  2465. >
  2466. <div
  2467. class="zuoyeYulan"
  2468. v-if="workStudent[toolIndex].length > 0"
  2469. >
  2470. <span class="worksTitle">作业预览</span>
  2471. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2472. </div>
  2473. <div
  2474. class="worksDetailBox"
  2475. v-if="workStudent[toolIndex].length > 0"
  2476. >
  2477. <div
  2478. class="isWorksName2"
  2479. v-for="(w, wIndex) in workStudent[toolIndex]"
  2480. :key="wIndex"
  2481. @click="
  2482. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2483. "
  2484. >
  2485. {{ w.sName }}
  2486. <img
  2487. class="deleteImg deleteImg2"
  2488. src="../../assets/deleteworks.png"
  2489. v-if="w.userid == userid || tType == 1 || tType == 4"
  2490. @click.stop="deleteWorks(w.wid)"
  2491. alt
  2492. />
  2493. </div>
  2494. </div>
  2495. </div>
  2496. <div
  2497. v-if="
  2498. tType &&
  2499. tType == 2 &&
  2500. !sIsOpen &&
  2501. tool.tool.indexOf(69) != -1
  2502. "
  2503. class="worksBox"
  2504. >
  2505. <div
  2506. class="zuoyeYulan"
  2507. v-if="workStudent[toolIndex].length > 0"
  2508. >
  2509. <span class="worksTitle">作业预览</span>
  2510. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2511. </div>
  2512. <div
  2513. class="worksDetailBox"
  2514. v-if="workStudent[toolIndex].length > 0"
  2515. >
  2516. <div
  2517. class="isWorksName2"
  2518. v-for="(w, wIndex) in workStudent[toolIndex]"
  2519. :key="wIndex"
  2520. @click="
  2521. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2522. "
  2523. >
  2524. {{ w.sName }}
  2525. <img
  2526. class="deleteImg deleteImg2"
  2527. src="../../assets/deleteworks.png"
  2528. v-if="w.userid == userid || tType == 1 || tType == 4"
  2529. @click.stop="deleteWorks(w.wid)"
  2530. alt
  2531. />
  2532. </div>
  2533. </div>
  2534. </div>
  2535. <div
  2536. v-if="
  2537. tType &&
  2538. tType == 2 &&
  2539. !sIsOpen &&
  2540. tool.tool.indexOf(15) != -1
  2541. "
  2542. class="worksBox"
  2543. >
  2544. <div
  2545. class="zuoyeYulan"
  2546. v-if="workStudent[toolIndex].length > 0"
  2547. >
  2548. <span class="worksTitle">作业预览</span>
  2549. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2550. </div>
  2551. <div
  2552. class="worksDetailBox"
  2553. v-if="workStudent[toolIndex].length > 0"
  2554. >
  2555. <div
  2556. class="works"
  2557. v-for="(w, wIndex) in workStudent[toolIndex]"
  2558. :key="wIndex"
  2559. >
  2560. <div class="workImg">
  2561. <!-- <img
  2562. src="../../assets/icon/works/noImg.png"
  2563. @click="openTools(15, toolIndex, taskCount, w.works)"
  2564. alt=""
  2565. />-->
  2566. <div class="answerBg">
  2567. <!-- <div>{{ w.sName }}</div> -->
  2568. <el-tooltip
  2569. class="item"
  2570. effect="light"
  2571. :content="JSON.parse(w.works)[0].answer"
  2572. placement="top"
  2573. >
  2574. <div class="answerContent">
  2575. {{ JSON.parse(w.works)[0].answer }}
  2576. </div>
  2577. </el-tooltip>
  2578. <div
  2579. class="answerScore"
  2580. v-if="w.score"
  2581. @click.stop="openScore(w)"
  2582. :class="{
  2583. rightW:
  2584. w.userid == userid || tType == 1 || tType == 4
  2585. }"
  2586. >
  2587. {{ JSON.parse(w.score).wScore }}分
  2588. </div>
  2589. <div
  2590. class="answerScore"
  2591. @click.stop="openScore(w)"
  2592. v-else-if="courseDetail.userid == userid"
  2593. :class="{
  2594. rightW:
  2595. w.userid == userid || tType == 1 || tType == 4
  2596. }"
  2597. >
  2598. 评分
  2599. </div>
  2600. <img
  2601. class="deleteImg"
  2602. src="../../assets/deleteworks.png"
  2603. v-if="
  2604. w.userid == userid || tType == 1 || tType == 4
  2605. "
  2606. @click.stop="deleteWorks(w.wid)"
  2607. alt
  2608. />
  2609. </div>
  2610. <div class="comment">
  2611. <div class="worksName">
  2612. <div>{{ w.sName }}</div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. </div>
  2619. <div
  2620. v-if="
  2621. tType &&
  2622. tType == 2 &&
  2623. !sIsOpen &&
  2624. tool.tool.indexOf(1) != -1
  2625. "
  2626. class="worksBox"
  2627. >
  2628. <div
  2629. class="zuoyeYulan"
  2630. v-if="workStudent[toolIndex].length > 0"
  2631. >
  2632. <span class="worksTitle">作业预览</span>
  2633. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2634. </div>
  2635. <div
  2636. class="worksDetailBox"
  2637. v-if="workStudent[toolIndex].length > 0"
  2638. >
  2639. <div
  2640. class="works"
  2641. style="
  2642. width: 200px;
  2643. height: 140px;
  2644. margin: 10px 10px 10px 0;
  2645. box-shadow: 0 0 6px 1px #dfdada;
  2646. "
  2647. v-for="(w, wIndex) in workStudent[toolIndex]"
  2648. :key="wIndex"
  2649. >
  2650. <div class="workImg">
  2651. <img
  2652. :src="w.works"
  2653. @click="previewImg(w.works, w)"
  2654. alt
  2655. />
  2656. <div
  2657. class="answerScore"
  2658. v-if="w.score"
  2659. @click.stop="openScore(w)"
  2660. :class="{
  2661. rightW:
  2662. w.userid == userid || tType == 1 || tType == 4
  2663. }"
  2664. >
  2665. {{ JSON.parse(w.score).wScore }}分
  2666. </div>
  2667. <div
  2668. class="answerScore"
  2669. @click.stop="openScore(w)"
  2670. v-else-if="courseDetail.userid == userid"
  2671. :class="{
  2672. rightW:
  2673. w.userid == userid || tType == 1 || tType == 4
  2674. }"
  2675. >
  2676. 评分
  2677. </div>
  2678. <div
  2679. class="stuLookScore"
  2680. v-if="
  2681. w.userid == userid ||
  2682. (tType == 1 &&
  2683. courseDetail.state == 6 &&
  2684. ((chapInfoList[courseType].chapterInfo[0]
  2685. .taskJson[taskCount].eList &&
  2686. chapInfoList[courseType].chapterInfo[0]
  2687. .taskJson[taskCount].eList.length) ||
  2688. (tool.eList && tool.eList.length)))
  2689. "
  2690. >
  2691. <el-popover
  2692. placement="top"
  2693. width="318"
  2694. trigger="hover"
  2695. >
  2696. <markScore
  2697. :loading="AIloading[toolIndex][wIndex].loading"
  2698. :markScoreVisible="markScoreVisible"
  2699. :ref="`markSco${toolIndex}${wIndex}`"
  2700. @updateLoading="updateLoading"
  2701. @updateDocSco="updateDocSco"
  2702. @refreshOther="refreshOther"
  2703. @markScoreDig="markScoreDig"
  2704. :tool="tool"
  2705. :wIndex="wIndex"
  2706. :scoCon="w"
  2707. :toolIndex="toolIndex"
  2708. :key="refreshKey"
  2709. :stage="courseType"
  2710. :task="taskCount"
  2711. :scoTit="
  2712. chapInfoList[courseType].chapterInfo[0]
  2713. .taskJson[taskCount].eList
  2714. "
  2715. >
  2716. </markScore>
  2717. <div
  2718. @click="
  2719. markScoreDig2(
  2720. w.sName,
  2721. worksStudent,
  2722. w.userid,
  2723. toolIndex,
  2724. chapInfoList[courseType].chapterInfo[0]
  2725. .taskJson[taskCount].eList,
  2726. AIloading[toolIndex][wIndex].loading,
  2727. tool
  2728. )
  2729. "
  2730. slot="reference"
  2731. >
  2732. <span v-if="AIloading[toolIndex][wIndex].sco">
  2733. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2734. </span>
  2735. <span v-else>
  2736. 评分
  2737. </span>
  2738. </div>
  2739. </el-popover>
  2740. </div>
  2741. <img
  2742. class="deleteImg"
  2743. src="../../assets/deleteworks.png"
  2744. v-if="
  2745. w.userid == userid || tType == 1 || tType == 4
  2746. "
  2747. @click.stop="deleteWorks(w.wid)"
  2748. alt
  2749. />
  2750. </div>
  2751. <div class="worksName">
  2752. <div>{{ w.sName }}</div>
  2753. </div>
  2754. </div>
  2755. </div>
  2756. </div>
  2757. <div
  2758. v-if="
  2759. tType &&
  2760. tType == 2 &&
  2761. !sIsOpen &&
  2762. tool.tool.indexOf(3) != -1
  2763. "
  2764. class="worksBox"
  2765. >
  2766. <div
  2767. class="zuoyeYulan"
  2768. v-if="workStudent[toolIndex].length > 0"
  2769. >
  2770. <span class="worksTitle">作业预览</span>
  2771. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2772. </div>
  2773. <div
  2774. class="worksDetailBox"
  2775. v-if="workStudent[toolIndex].length > 0"
  2776. >
  2777. <div
  2778. class="works"
  2779. style="
  2780. width: 200px;
  2781. height: 140px;
  2782. margin: 10px 10px 10px 0;
  2783. box-shadow: 0 0 6px 1px #dfdada;
  2784. "
  2785. v-for="(w, wIndex) in workStudent[toolIndex]"
  2786. :key="wIndex"
  2787. >
  2788. <div class="workImg">
  2789. <img
  2790. :src="w.works"
  2791. @click="previewImg(w.works, w)"
  2792. alt
  2793. />
  2794. <div
  2795. class="answerScore"
  2796. v-if="w.score"
  2797. @click.stop="openScore(w)"
  2798. :class="{
  2799. rightW:
  2800. w.userid == userid || tType == 1 || tType == 4
  2801. }"
  2802. >
  2803. {{ JSON.parse(w.score).wScore }}分
  2804. </div>
  2805. <div
  2806. class="answerScore"
  2807. @click.stop="openScore(w)"
  2808. v-else-if="courseDetail.userid == userid"
  2809. :class="{
  2810. rightW:
  2811. w.userid == userid || tType == 1 || tType == 4
  2812. }"
  2813. >
  2814. 评分
  2815. </div>
  2816. <div
  2817. class="stuLookScore"
  2818. v-if="
  2819. w.userid == userid ||
  2820. (tType == 1 &&
  2821. courseDetail.state == 6 &&
  2822. ((chapInfoList[courseType].chapterInfo[0]
  2823. .taskJson[taskCount].eList &&
  2824. chapInfoList[courseType].chapterInfo[0]
  2825. .taskJson[taskCount].eList.length) ||
  2826. (tool.eList && tool.eList.length)))
  2827. "
  2828. >
  2829. <el-popover
  2830. placement="top"
  2831. width="318"
  2832. trigger="hover"
  2833. >
  2834. <markScore
  2835. :loading="AIloading[toolIndex][wIndex].loading"
  2836. :markScoreVisible="markScoreVisible"
  2837. :ref="`markSco${toolIndex}${wIndex}`"
  2838. @updateLoading="updateLoading"
  2839. @updateDocSco="updateDocSco"
  2840. @refreshOther="refreshOther"
  2841. @markScoreDig="markScoreDig"
  2842. :tool="tool"
  2843. :wIndex="wIndex"
  2844. :scoCon="w"
  2845. :toolIndex="toolIndex"
  2846. :key="refreshKey"
  2847. :stage="courseType"
  2848. :task="taskCount"
  2849. :scoTit="
  2850. chapInfoList[courseType].chapterInfo[0]
  2851. .taskJson[taskCount].eList
  2852. "
  2853. >
  2854. </markScore>
  2855. <div
  2856. @click="
  2857. markScoreDig2(
  2858. w.sName,
  2859. worksStudent,
  2860. w.userid,
  2861. toolIndex,
  2862. chapInfoList[courseType].chapterInfo[0]
  2863. .taskJson[taskCount].eList,
  2864. AIloading[toolIndex][wIndex].loading,
  2865. tool
  2866. )
  2867. "
  2868. slot="reference"
  2869. >
  2870. <span v-if="AIloading[toolIndex][wIndex].sco">
  2871. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2872. </span>
  2873. <span v-else>
  2874. 评分
  2875. </span>
  2876. </div>
  2877. </el-popover>
  2878. </div>
  2879. <img
  2880. class="deleteImg"
  2881. src="../../assets/deleteworks.png"
  2882. v-if="
  2883. w.userid == userid || tType == 1 || tType == 4
  2884. "
  2885. @click.stop="deleteWorks(w.wid)"
  2886. alt
  2887. />
  2888. </div>
  2889. <div class="worksName">
  2890. <div>{{ w.sName }}</div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. </div>
  2895. <div
  2896. v-if="
  2897. tType &&
  2898. tType == 2 &&
  2899. !sIsOpen &&
  2900. tool.tool.indexOf(6) != -1
  2901. "
  2902. class="worksBox"
  2903. >
  2904. <div
  2905. class="zuoyeYulan"
  2906. v-if="workStudent[toolIndex].length > 0"
  2907. >
  2908. <span class="worksTitle">作业预览</span>
  2909. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2910. </div>
  2911. <div
  2912. class="worksDetailBox"
  2913. v-if="workStudent[toolIndex].length > 0"
  2914. >
  2915. <div
  2916. class="works"
  2917. style="
  2918. width: 200px;
  2919. height: 140px;
  2920. margin: 10px 10px 10px 0;
  2921. box-shadow: 0 0 6px 1px #dfdada;
  2922. "
  2923. v-for="(w, wIndex) in workStudent[toolIndex]"
  2924. :key="wIndex"
  2925. >
  2926. <div class="workImg">
  2927. <img
  2928. :src="w.works"
  2929. @click="previewImg(w.works, w)"
  2930. alt
  2931. />
  2932. <div
  2933. class="answerScore"
  2934. v-if="w.score"
  2935. @click.stop="openScore(w)"
  2936. :class="{
  2937. rightW:
  2938. w.userid == userid || tType == 1 || tType == 4
  2939. }"
  2940. >
  2941. {{ JSON.parse(w.score).wScore }}分
  2942. </div>
  2943. <div
  2944. class="answerScore"
  2945. @click.stop="openScore(w)"
  2946. v-else-if="courseDetail.userid == userid"
  2947. :class="{
  2948. rightW:
  2949. w.userid == userid || tType == 1 || tType == 4
  2950. }"
  2951. >
  2952. 评分
  2953. </div>
  2954. <img
  2955. class="deleteImg"
  2956. src="../../assets/deleteworks.png"
  2957. v-if="
  2958. w.userid == userid || tType == 1 || tType == 4
  2959. "
  2960. @click.stop="deleteWorks(w.wid)"
  2961. alt
  2962. />
  2963. </div>
  2964. <div class="worksName">
  2965. <div>{{ w.sName }}</div>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. </div>
  2970. <div
  2971. v-if="
  2972. tType &&
  2973. tType == 2 &&
  2974. !sIsOpen &&
  2975. tool.tool.indexOf(7) != -1
  2976. "
  2977. class="worksBox"
  2978. >
  2979. <div
  2980. class="zuoyeYulan"
  2981. v-if="workStudent[toolIndex].length > 0"
  2982. >
  2983. <span class="worksTitle">作业预览</span>
  2984. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2985. </div>
  2986. <div
  2987. class="worksDetailBox"
  2988. v-if="workStudent[toolIndex].length > 0"
  2989. >
  2990. <div
  2991. class="works"
  2992. style="
  2993. width: 200px;
  2994. height: 140px;
  2995. margin: 10px 10px 10px 0;
  2996. box-shadow: 0 0 6px 1px #dfdada;
  2997. "
  2998. v-for="(w, wIndex) in workStudent[toolIndex]"
  2999. :key="wIndex"
  3000. >
  3001. <div class="workImg">
  3002. <img
  3003. :src="w.works"
  3004. @click="previewImg(w.works, w)"
  3005. alt
  3006. />
  3007. <div
  3008. class="answerScore"
  3009. v-if="w.score"
  3010. @click.stop="openScore(w)"
  3011. :class="{
  3012. rightW:
  3013. w.userid == userid || tType == 1 || tType == 4
  3014. }"
  3015. >
  3016. {{ JSON.parse(w.score).wScore }}分
  3017. </div>
  3018. <div
  3019. class="answerScore"
  3020. @click.stop="openScore(w)"
  3021. v-else-if="courseDetail.userid == userid"
  3022. :class="{
  3023. rightW:
  3024. w.userid == userid || tType == 1 || tType == 4
  3025. }"
  3026. >
  3027. 评分
  3028. </div>
  3029. <div
  3030. class="stuLookScore"
  3031. v-if="
  3032. w.userid == userid ||
  3033. (tType == 1 &&
  3034. courseDetail.state == 6 &&
  3035. ((chapInfoList[courseType].chapterInfo[0]
  3036. .taskJson[taskCount].eList &&
  3037. chapInfoList[courseType].chapterInfo[0]
  3038. .taskJson[taskCount].eList.length) ||
  3039. (tool.eList && tool.eList.length)))
  3040. "
  3041. >
  3042. <el-popover
  3043. placement="top"
  3044. width="318"
  3045. trigger="hover"
  3046. >
  3047. <markScore
  3048. :loading="AIloading[toolIndex][wIndex].loading"
  3049. :markScoreVisible="markScoreVisible"
  3050. :ref="`markSco${toolIndex}${wIndex}`"
  3051. @updateLoading="updateLoading"
  3052. @updateDocSco="updateDocSco"
  3053. @refreshOther="refreshOther"
  3054. @markScoreDig="markScoreDig"
  3055. :tool="tool"
  3056. :wIndex="wIndex"
  3057. :scoCon="w"
  3058. :toolIndex="toolIndex"
  3059. :key="refreshKey"
  3060. :stage="courseType"
  3061. :task="taskCount"
  3062. :scoTit="
  3063. chapInfoList[courseType].chapterInfo[0]
  3064. .taskJson[taskCount].eList
  3065. "
  3066. >
  3067. </markScore>
  3068. <div
  3069. @click="
  3070. markScoreDig2(
  3071. w.sName,
  3072. worksStudent,
  3073. w.userid,
  3074. toolIndex,
  3075. chapInfoList[courseType].chapterInfo[0]
  3076. .taskJson[taskCount].eList,
  3077. AIloading[toolIndex][wIndex].loading,
  3078. tool
  3079. )
  3080. "
  3081. slot="reference"
  3082. >
  3083. <span v-if="AIloading[toolIndex][wIndex].sco">
  3084. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3085. </span>
  3086. <span v-else>
  3087. 评分
  3088. </span>
  3089. </div>
  3090. </el-popover>
  3091. </div>
  3092. <img
  3093. class="deleteImg"
  3094. src="../../assets/deleteworks.png"
  3095. v-if="
  3096. w.userid == userid || tType == 1 || tType == 4
  3097. "
  3098. @click.stop="deleteWorks(w.wid)"
  3099. alt
  3100. />
  3101. </div>
  3102. <div class="worksName">
  3103. <div>{{ w.sName }}</div>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. </div>
  3108. <div
  3109. v-if="
  3110. tType &&
  3111. tType == 2 &&
  3112. !sIsOpen &&
  3113. tool.tool.indexOf(26) != -1
  3114. "
  3115. class="worksBox"
  3116. >
  3117. <div
  3118. class="zuoyeYulan"
  3119. v-if="workStudent[toolIndex].length > 0"
  3120. >
  3121. <span class="worksTitle">作业预览</span>
  3122. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3123. </div>
  3124. <div
  3125. class="worksDetailBox"
  3126. v-if="workStudent[toolIndex].length > 0"
  3127. >
  3128. <div
  3129. class="works"
  3130. style="
  3131. width: 200px;
  3132. height: 140px;
  3133. margin: 10px 10px 10px 0;
  3134. box-shadow: 0 0 6px 1px #dfdada;
  3135. "
  3136. v-for="(w, wIndex) in workStudent[toolIndex]"
  3137. :key="wIndex"
  3138. >
  3139. <div class="workImg">
  3140. <img
  3141. :src="w.works"
  3142. @click="previewImg(w.works, w)"
  3143. alt
  3144. />
  3145. <img
  3146. class="deleteImg"
  3147. src="../../assets/deleteworks.png"
  3148. v-if="
  3149. w.userid == userid || tType == 1 || tType == 4
  3150. "
  3151. @click.stop="deleteWorks(w.wid)"
  3152. alt
  3153. />
  3154. </div>
  3155. <div class="worksName">
  3156. <div>{{ w.sName }}</div>
  3157. </div>
  3158. </div>
  3159. </div>
  3160. </div>
  3161. <div
  3162. v-if="
  3163. tType &&
  3164. ((tType == 2 && sIsOpen == true) ||
  3165. tType == 1 ||
  3166. tType == 4) &&
  3167. tool.tool.indexOf(16) != -1
  3168. "
  3169. class="worksBox"
  3170. >
  3171. <div
  3172. class="zuoyeYulan"
  3173. style="display: flex;justify-content: space-between;align-items: center;"
  3174. v-if="
  3175. (worksStudent.length &&
  3176. worksStudent[toolIndex].length > 0) ||
  3177. (courseGroup.group && courseGroup.group.length)
  3178. "
  3179. >
  3180. <div class="worksTop">
  3181. <div>作业预览</div>
  3182. <div
  3183. class="corOpen"
  3184. @click="contract(toolIndex)"
  3185. v-if="
  3186. isCloseList[toolIndex].isCloseBoolean &&
  3187. isCloseList[toolIndex].isClose == 0
  3188. "
  3189. >
  3190. 折叠
  3191. </div>
  3192. <div
  3193. class="corOpen"
  3194. @click="contract(toolIndex)"
  3195. v-if="isCloseList[toolIndex].isClose == 1"
  3196. >
  3197. 展开
  3198. </div>
  3199. </div>
  3200. <div
  3201. style="display: flex;"
  3202. v-if="
  3203. (courseDetail.userid == userid ||
  3204. (courseDetail.course_teacher &&
  3205. courseDetail.course_teacher.indexOf(userid) !=
  3206. -1)) &&
  3207. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3208. taskCount
  3209. ].eList &&
  3210. chapInfoList[courseType].chapterInfo[0].taskJson[
  3211. taskCount
  3212. ].eList.length) ||
  3213. (tool.eList && tool.eList.length)) &&
  3214. courseDetail.state == 6
  3215. "
  3216. >
  3217. <!-- <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"> -->
  3218. <div
  3219. style="margin-right:10px"
  3220. class="ScoreBtn"
  3221. @click="
  3222. resetLoopEva(
  3223. worksStudent[toolIndex],
  3224. chapInfoList[courseType].chapterInfo[0].taskJson[
  3225. taskCount
  3226. ].eList,
  3227. courseType,
  3228. taskCount,
  3229. toolIndex,
  3230. tool.toolDetail,
  3231. worksStudent
  3232. )
  3233. "
  3234. >
  3235. 一键重置
  3236. </div>
  3237. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3238. <img
  3239. src="../../assets/icon/newIcons/rootImg.png"
  3240. alt=""
  3241. />
  3242. AI评分
  3243. </div>
  3244. <div
  3245. class="ScoreBtn"
  3246. v-else-if="!loopLoading[toolIndex].loading"
  3247. @click="
  3248. loopEva(
  3249. worksStudent[toolIndex],
  3250. chapInfoList[courseType].chapterInfo[0].taskJson[
  3251. taskCount
  3252. ].eList,
  3253. courseType,
  3254. taskCount,
  3255. toolIndex,
  3256. tool.toolDetail,
  3257. chapInfoList[courseType].chapterInfo[0].taskJson[
  3258. taskCount
  3259. ].taskDetail,
  3260. tool
  3261. )
  3262. "
  3263. >
  3264. <img
  3265. src="../../assets/icon/newIcons/rootImg.png"
  3266. alt=""
  3267. />
  3268. AI评分
  3269. </div>
  3270. <div class="ScoreBtn" v-else>
  3271. <img
  3272. src="../../assets/icon/newIcons/rootImg.png"
  3273. alt=""
  3274. />
  3275. 正在评分
  3276. </div>
  3277. </div>
  3278. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3279. </div>
  3280. <div
  3281. class="group_workBox"
  3282. v-for="(g, gindex) in courseGroup.group"
  3283. :key="gindex"
  3284. >
  3285. <div class="group_box">
  3286. <div class="group_title">
  3287. <el-tooltip
  3288. class="item"
  3289. effect="light"
  3290. :content="g.name"
  3291. placement="top"
  3292. >
  3293. <div class="group_name">{{ g.name }}</div>
  3294. </el-tooltip>
  3295. </div>
  3296. <div
  3297. class="group_work"
  3298. v-if="
  3299. g.works &&
  3300. g.works.length &&
  3301. g.works[toolIndex].length
  3302. "
  3303. >
  3304. <div
  3305. class="works"
  3306. style="
  3307. width: 200px;
  3308. height: 140px;
  3309. margin: 10px 10px 10px 0;
  3310. border-radius: 15px;
  3311. box-shadow: 0 0 6px 1px #dfdada;
  3312. "
  3313. v-for="(w, wIndex) in g.works[toolIndex]"
  3314. :key="wIndex"
  3315. :class="w.type == 1 ? 'isTypeOne' : ''"
  3316. >
  3317. <div class="workImg" v-if="w.type == 0">
  3318. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3319. <img
  3320. :src="w.works"
  3321. @click="previewImg(w.works, w)"
  3322. alt
  3323. />
  3324. <div
  3325. class="answerScore"
  3326. v-if="w.score"
  3327. @click.stop="openScore(w)"
  3328. :class="{
  3329. rightW:
  3330. w.userid == userid ||
  3331. tType == 1 ||
  3332. tType == 4 ||
  3333. w.ateacher == userid
  3334. }"
  3335. >
  3336. {{ JSON.parse(w.score).wScore }}分
  3337. </div>
  3338. <div
  3339. class="answerScore"
  3340. @click.stop="openScore(w)"
  3341. v-else-if="courseDetail.userid == userid"
  3342. :class="{
  3343. rightW:
  3344. w.userid == userid ||
  3345. tType == 1 ||
  3346. tType == 4 ||
  3347. w.ateacher == userid
  3348. }"
  3349. >
  3350. 评分
  3351. </div>
  3352. <img
  3353. class="deleteImg"
  3354. src="../../assets/deleteworks.png"
  3355. v-if="
  3356. w.userid == userid || tType == 1 || tType == 4
  3357. "
  3358. @click.stop="deleteWorks(w.wid)"
  3359. alt
  3360. />
  3361. </div>
  3362. <div class="workImg" v-if="w.type == 1">
  3363. <img :src="word" @click="openFile(w.works)" alt />
  3364. <!-- @click="openFile(w.works)" -->
  3365. <div
  3366. class="answerScore"
  3367. v-if="w.score"
  3368. @click.stop="openScore(w)"
  3369. :class="{
  3370. rightW:
  3371. w.userid == userid ||
  3372. tType == 1 ||
  3373. tType == 4 ||
  3374. w.ateacher == userid
  3375. }"
  3376. >
  3377. {{ JSON.parse(w.score).wScore }}分
  3378. </div>
  3379. <div
  3380. class="answerScore"
  3381. @click.stop="openScore(w)"
  3382. v-else-if="courseDetail.userid == userid"
  3383. :class="{
  3384. rightW:
  3385. w.userid == userid ||
  3386. tType == 1 ||
  3387. tType == 4 ||
  3388. w.ateacher == userid
  3389. }"
  3390. >
  3391. 评分
  3392. </div>
  3393. <img
  3394. class="deleteImg"
  3395. src="../../assets/deleteworks.png"
  3396. v-if="
  3397. w.userid == userid || tType == 1 || tType == 4
  3398. "
  3399. @click.stop="deleteWorks(w.wid)"
  3400. alt
  3401. />
  3402. </div>
  3403. <div class="workImg" v-if="w.type == 3">
  3404. <img
  3405. style="cursor: pointer"
  3406. :src="video"
  3407. @click="openVideo(w)"
  3408. alt
  3409. />
  3410. <!-- @click="openVideo(w.works)" -->
  3411. <div
  3412. class="answerScore"
  3413. v-if="w.score"
  3414. @click.stop="openScore(w)"
  3415. :class="{
  3416. rightW:
  3417. w.userid == userid ||
  3418. tType == 1 ||
  3419. tType == 4 ||
  3420. w.ateacher == userid
  3421. }"
  3422. >
  3423. {{ JSON.parse(w.score).wScore }}分
  3424. </div>
  3425. <div
  3426. class="answerScore"
  3427. @click.stop="openScore(w)"
  3428. v-else-if="courseDetail.userid == userid"
  3429. :class="{
  3430. rightW:
  3431. w.userid == userid ||
  3432. tType == 1 ||
  3433. tType == 4 ||
  3434. w.ateacher == userid
  3435. }"
  3436. >
  3437. 评分
  3438. </div>
  3439. <img
  3440. class="deleteImg"
  3441. src="../../assets/deleteworks.png"
  3442. v-if="
  3443. w.userid == userid || tType == 1 || tType == 4
  3444. "
  3445. @click.stop="deleteWorks(w.wid)"
  3446. alt
  3447. />
  3448. </div>
  3449. <div class="workImg" v-if="w.type == 12">
  3450. <img
  3451. style="cursor: pointer"
  3452. :src="word2"
  3453. @click="downloadFile(w.works,w.userid)"
  3454. alt
  3455. />
  3456. <!-- @click="openVideo(w.works)" -->
  3457. <div
  3458. class="answerScore"
  3459. v-if="w.score"
  3460. @click.stop="openScore(w)"
  3461. :class="{
  3462. rightW:
  3463. w.userid == userid ||
  3464. tType == 1 ||
  3465. tType == 4 ||
  3466. w.ateacher == userid
  3467. }"
  3468. >
  3469. {{ JSON.parse(w.score).wScore }}分
  3470. </div>
  3471. <div
  3472. class="answerScore"
  3473. @click.stop="openScore(w)"
  3474. v-else-if="courseDetail.userid == userid"
  3475. :class="{
  3476. rightW:
  3477. w.userid == userid ||
  3478. tType == 1 ||
  3479. tType == 4 ||
  3480. w.ateacher == userid
  3481. }"
  3482. >
  3483. 评分
  3484. </div>
  3485. <img
  3486. class="deleteImg"
  3487. src="../../assets/deleteworks.png"
  3488. v-if="
  3489. w.userid == userid || tType == 1 || tType == 4
  3490. "
  3491. @click.stop="deleteWorks(w.wid)"
  3492. alt
  3493. />
  3494. </div>
  3495. <div class="comment" style="min-width: 200px">
  3496. <div class="worksName">
  3497. <div>{{ w.sName }}</div>
  3498. </div>
  3499. <div class="commentList">
  3500. <div class="commentList">
  3501. <div
  3502. class="commentImg"
  3503. @click="
  3504. isLikes(
  3505. w.wid,
  3506. userid,
  3507. 1,
  3508. null,
  3509. w.isLikes,
  3510. w.sName
  3511. )
  3512. "
  3513. >
  3514. <img
  3515. :src="w.isLikes == true ? likes : noLikes"
  3516. alt=""
  3517. />
  3518. </div>
  3519. <div>{{ w.likesCount }}</div>
  3520. </div>
  3521. <div
  3522. class="commentList"
  3523. style="margin-right: 15px"
  3524. >
  3525. <div
  3526. class="commentImg"
  3527. @click="
  3528. commentOther(
  3529. w,
  3530. toolIndex,
  3531. wIndex,
  3532. null,
  3533. g.id
  3534. )
  3535. "
  3536. >
  3537. <img
  3538. src="../../assets/icon/comment/comment.png"
  3539. alt=""
  3540. />
  3541. </div>
  3542. <div>{{ w.commentCount }}</div>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. </div>
  3548. <div class="group_work" v-else>暂无提交作业</div>
  3549. </div>
  3550. </div>
  3551. <div
  3552. :id="'tool-' + toolIndex"
  3553. :style="{
  3554. height:
  3555. isCloseList[toolIndex].isClose == 1
  3556. ? retrnToolHeight('tool-' + toolIndex)
  3557. : 'auto',
  3558. overflow:
  3559. isCloseList[toolIndex].isClose == 1
  3560. ? 'hidden'
  3561. : 'unset'
  3562. }"
  3563. class="worksDetailBox"
  3564. v-if="
  3565. worksStudent.length &&
  3566. worksStudent[toolIndex].length > 0
  3567. "
  3568. >
  3569. <div
  3570. class="works"
  3571. style="
  3572. width: 200px;
  3573. height: 140px;
  3574. margin: 10px 10px 10px 0;
  3575. border-radius: 15px;
  3576. box-shadow: 0 0 6px 1px #dfdada;
  3577. "
  3578. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3579. :key="wIndex"
  3580. :class="w.type == 1 ? 'isTypeOne' : ''"
  3581. >
  3582. <div class="workImg" v-if="w.type == 0">
  3583. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3584. <img
  3585. :src="w.works"
  3586. @click="previewImg(w.works, w)"
  3587. alt
  3588. />
  3589. <div
  3590. class="answerScore"
  3591. v-if="w.score"
  3592. @click.stop="openScore(w)"
  3593. :class="{
  3594. rightW:
  3595. w.userid == userid ||
  3596. tType == 1 ||
  3597. tType == 4 ||
  3598. w.ateacher == userid
  3599. }"
  3600. >
  3601. {{ JSON.parse(w.score).wScore }}分
  3602. </div>
  3603. <div
  3604. class="answerScore"
  3605. @click.stop="openScore(w)"
  3606. v-else-if="
  3607. courseDetail.userid == userid &&
  3608. courseDetail.state != 6 &&
  3609. chapInfoList[courseType].chapterInfo[0]
  3610. .taskJson[taskCount].eList &&
  3611. chapInfoList[courseType].chapterInfo[0]
  3612. .taskJson[taskCount].eList.length
  3613. "
  3614. :class="{
  3615. rightW:
  3616. w.userid == userid ||
  3617. tType == 1 ||
  3618. tType == 4 ||
  3619. w.ateacher == userid
  3620. }"
  3621. >
  3622. 评分
  3623. </div>
  3624. <!-- <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"> -->
  3625. <div
  3626. v-else-if="
  3627. (courseDetail.userid == userid ||
  3628. (courseDetail.course_teacher &&
  3629. courseDetail.course_teacher.indexOf(userid) !=
  3630. -1) ||
  3631. (w.userid == userid && sIsOpen)) &&
  3632. courseDetail.state == 6 &&
  3633. ((chapInfoList[courseType].chapterInfo[0]
  3634. .taskJson[taskCount].eList &&
  3635. chapInfoList[courseType].chapterInfo[0]
  3636. .taskJson[taskCount].eList.length) ||
  3637. (tool.eList && tool.eList.length))
  3638. "
  3639. >
  3640. <el-popover
  3641. placement="top"
  3642. width="318"
  3643. :disabled="AIloading[toolIndex][wIndex].loading"
  3644. trigger="hover"
  3645. >
  3646. <markScore
  3647. :loading="AIloading[toolIndex][wIndex].loading"
  3648. :markScoreVisible="markScoreVisible"
  3649. :ref="`markSco${toolIndex}${wIndex}`"
  3650. @updateLoading="updateLoading"
  3651. @updateDocSco="updateDocSco"
  3652. @refreshOther="refreshOther"
  3653. @markScoreDig="markScoreDig"
  3654. :tool="tool"
  3655. :wIndex="wIndex"
  3656. :scoCon="w"
  3657. :toolIndex="toolIndex"
  3658. :key="refreshKey"
  3659. :stage="courseType"
  3660. :task="taskCount"
  3661. :scoTit="
  3662. chapInfoList[courseType].chapterInfo[0]
  3663. .taskJson[taskCount].eList
  3664. "
  3665. >
  3666. </markScore>
  3667. <div
  3668. class="answerScore"
  3669. @click="
  3670. markScoreDig2(
  3671. w.sName,
  3672. worksStudent,
  3673. w.userid,
  3674. toolIndex,
  3675. chapInfoList[courseType].chapterInfo[0]
  3676. .taskJson[taskCount].eList,
  3677. AIloading[toolIndex][wIndex].loading,
  3678. tool
  3679. )
  3680. "
  3681. slot="reference"
  3682. :class="{
  3683. rightW:
  3684. w.userid == userid ||
  3685. tType == 1 ||
  3686. tType == 4 ||
  3687. w.ateacher == userid
  3688. }"
  3689. >
  3690. <span v-if="AIloading[toolIndex][wIndex].sco">
  3691. {{
  3692. AIloading[toolIndex][wIndex].loading
  3693. ? "评分中"
  3694. : AIloading[toolIndex][wIndex].sco + "分"
  3695. }}
  3696. </span>
  3697. <span v-else>
  3698. {{
  3699. AIloading[toolIndex][wIndex].loading
  3700. ? "评分中"
  3701. : "评分"
  3702. }}
  3703. </span>
  3704. </div>
  3705. </el-popover>
  3706. </div>
  3707. <img
  3708. class="deleteImg"
  3709. src="../../assets/deleteworks.png"
  3710. v-if="
  3711. w.userid == userid || tType == 1 || tType == 4
  3712. "
  3713. @click.stop="deleteWorks(w.wid)"
  3714. alt
  3715. />
  3716. </div>
  3717. <div class="workImg" v-if="w.type == 1">
  3718. <img :src="word" @click="openFile(w.works)" alt />
  3719. <!-- @click="openFile(w.works)" -->
  3720. <div
  3721. class="answerScore"
  3722. v-if="w.score"
  3723. @click.stop="openScore(w)"
  3724. :class="{
  3725. rightW:
  3726. w.userid == userid ||
  3727. tType == 1 ||
  3728. tType == 4 ||
  3729. w.ateacher == userid
  3730. }"
  3731. >
  3732. {{ JSON.parse(w.score).wScore }}分
  3733. </div>
  3734. <div
  3735. class="answerScore"
  3736. @click.stop="openScore(w)"
  3737. v-else-if="
  3738. courseDetail.userid == userid &&
  3739. courseDetail.state != 6 &&
  3740. chapInfoList[courseType].chapterInfo[0]
  3741. .taskJson[taskCount].eList &&
  3742. chapInfoList[courseType].chapterInfo[0]
  3743. .taskJson[taskCount].eList.length
  3744. "
  3745. :class="{
  3746. rightW:
  3747. w.userid == userid ||
  3748. tType == 1 ||
  3749. tType == 4 ||
  3750. w.ateacher == userid
  3751. }"
  3752. >
  3753. 评分
  3754. </div>
  3755. <!-- <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"> -->
  3756. <div
  3757. v-else-if="
  3758. (courseDetail.userid == userid ||
  3759. (courseDetail.course_teacher &&
  3760. courseDetail.course_teacher.indexOf(userid) !=
  3761. -1) ||
  3762. (w.userid == userid && sIsOpen)) &&
  3763. courseDetail.state == 6 &&
  3764. ((chapInfoList[courseType].chapterInfo[0]
  3765. .taskJson[taskCount].eList &&
  3766. chapInfoList[courseType].chapterInfo[0]
  3767. .taskJson[taskCount].eList.length) ||
  3768. (tool.eList && tool.eList.length))
  3769. "
  3770. >
  3771. <el-popover
  3772. placement="top"
  3773. width="318"
  3774. :disabled="AIloading[toolIndex][wIndex].loading"
  3775. trigger="hover"
  3776. >
  3777. <markScore
  3778. :loading="AIloading[toolIndex][wIndex].loading"
  3779. :markScoreVisible="markScoreVisible"
  3780. :ref="`markSco${toolIndex}${wIndex}`"
  3781. @updateLoading="updateLoading"
  3782. @updateDocSco="updateDocSco"
  3783. @refreshOther="refreshOther"
  3784. @markScoreDig="markScoreDig"
  3785. :tool="tool"
  3786. :wIndex="wIndex"
  3787. :scoCon="w"
  3788. :toolIndex="toolIndex"
  3789. :key="refreshKey"
  3790. :stage="courseType"
  3791. :task="taskCount"
  3792. :scoTit="
  3793. chapInfoList[courseType].chapterInfo[0]
  3794. .taskJson[taskCount].eList
  3795. "
  3796. >
  3797. </markScore>
  3798. <div
  3799. class="answerScore"
  3800. @click="
  3801. markScoreDig2(
  3802. w.sName,
  3803. worksStudent,
  3804. w.userid,
  3805. toolIndex,
  3806. chapInfoList[courseType].chapterInfo[0]
  3807. .taskJson[taskCount].eList,
  3808. AIloading[toolIndex][wIndex].loading,
  3809. tool
  3810. )
  3811. "
  3812. slot="reference"
  3813. :class="{
  3814. rightW:
  3815. w.userid == userid ||
  3816. tType == 1 ||
  3817. tType == 4 ||
  3818. w.ateacher == userid
  3819. }"
  3820. >
  3821. <span v-if="AIloading[toolIndex][wIndex].sco">
  3822. {{
  3823. AIloading[toolIndex][wIndex].loading
  3824. ? "评分中"
  3825. : AIloading[toolIndex][wIndex].sco + "分"
  3826. }}
  3827. </span>
  3828. <span v-else>
  3829. {{
  3830. AIloading[toolIndex][wIndex].loading
  3831. ? "评分中"
  3832. : "评分"
  3833. }}
  3834. </span>
  3835. </div>
  3836. </el-popover>
  3837. </div>
  3838. <img
  3839. class="deleteImg"
  3840. src="../../assets/deleteworks.png"
  3841. v-if="
  3842. w.userid == userid || tType == 1 || tType == 4
  3843. "
  3844. @click.stop="deleteWorks(w.wid)"
  3845. alt
  3846. />
  3847. </div>
  3848. <div class="workImg" v-if="w.type == 3">
  3849. <img
  3850. style="cursor: pointer"
  3851. :src="video"
  3852. @click="openVideo(w)"
  3853. alt
  3854. />
  3855. <!-- @click="openVideo(w.works)" -->
  3856. <div
  3857. class="answerScore"
  3858. v-if="w.score"
  3859. @click.stop="openScore(w)"
  3860. :class="{
  3861. rightW:
  3862. w.userid == userid ||
  3863. tType == 1 ||
  3864. tType == 4 ||
  3865. w.ateacher == userid
  3866. }"
  3867. >
  3868. {{ JSON.parse(w.score).wScore }}分
  3869. </div>
  3870. <div
  3871. class="answerScore"
  3872. @click.stop="openScore(w)"
  3873. v-else-if="
  3874. courseDetail.userid == userid &&
  3875. courseDetail.state != 6 &&
  3876. chapInfoList[courseType].chapterInfo[0]
  3877. .taskJson[taskCount].eList &&
  3878. chapInfoList[courseType].chapterInfo[0]
  3879. .taskJson[taskCount].eList.length
  3880. "
  3881. :class="{
  3882. rightW:
  3883. w.userid == userid ||
  3884. tType == 1 ||
  3885. tType == 4 ||
  3886. w.ateacher == userid
  3887. }"
  3888. >
  3889. 评分
  3890. </div>
  3891. <!-- <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"> -->
  3892. <div
  3893. v-else-if="
  3894. (courseDetail.userid == userid ||
  3895. (courseDetail.course_teacher &&
  3896. courseDetail.course_teacher.indexOf(userid) !=
  3897. -1) ||
  3898. (w.userid == userid && sIsOpen)) &&
  3899. courseDetail.state == 6 &&
  3900. ((chapInfoList[courseType].chapterInfo[0]
  3901. .taskJson[taskCount].eList &&
  3902. chapInfoList[courseType].chapterInfo[0]
  3903. .taskJson[taskCount].eList.length) ||
  3904. (tool.eList && tool.eList.length))
  3905. "
  3906. >
  3907. <el-popover
  3908. placement="top"
  3909. width="318"
  3910. :disabled="AIloading[toolIndex][wIndex].loading"
  3911. trigger="hover"
  3912. >
  3913. <markScore
  3914. :loading="AIloading[toolIndex][wIndex].loading"
  3915. :markScoreVisible="markScoreVisible"
  3916. :ref="`markSco${toolIndex}${wIndex}`"
  3917. @updateLoading="updateLoading"
  3918. @updateDocSco="updateDocSco"
  3919. @refreshOther="refreshOther"
  3920. @markScoreDig="markScoreDig"
  3921. :tool="tool"
  3922. :wIndex="wIndex"
  3923. :scoCon="w"
  3924. :toolIndex="toolIndex"
  3925. :key="refreshKey"
  3926. :stage="courseType"
  3927. :task="taskCount"
  3928. :scoTit="
  3929. chapInfoList[courseType].chapterInfo[0]
  3930. .taskJson[taskCount].eList
  3931. "
  3932. >
  3933. </markScore>
  3934. <div
  3935. class="answerScore"
  3936. @click="
  3937. markScoreDig2(
  3938. w.sName,
  3939. worksStudent,
  3940. w.userid,
  3941. toolIndex,
  3942. chapInfoList[courseType].chapterInfo[0]
  3943. .taskJson[taskCount].eList,
  3944. AIloading[toolIndex][wIndex].loading,
  3945. tool
  3946. )
  3947. "
  3948. slot="reference"
  3949. :class="{
  3950. rightW:
  3951. w.userid == userid ||
  3952. tType == 1 ||
  3953. tType == 4 ||
  3954. w.ateacher == userid
  3955. }"
  3956. >
  3957. <span v-if="AIloading[toolIndex][wIndex].sco">
  3958. {{
  3959. AIloading[toolIndex][wIndex].loading
  3960. ? "评分中"
  3961. : AIloading[toolIndex][wIndex].sco + "分"
  3962. }}
  3963. </span>
  3964. <span v-else>
  3965. {{
  3966. AIloading[toolIndex][wIndex].loading
  3967. ? "评分中"
  3968. : "评分"
  3969. }}
  3970. </span>
  3971. </div>
  3972. </el-popover>
  3973. </div>
  3974. <img
  3975. class="deleteImg"
  3976. src="../../assets/deleteworks.png"
  3977. v-if="
  3978. w.userid == userid || tType == 1 || tType == 4
  3979. "
  3980. @click.stop="deleteWorks(w.wid)"
  3981. alt
  3982. />
  3983. </div>
  3984. <div class="workImg" v-if="w.type == 12">
  3985. <img
  3986. style="cursor: pointer"
  3987. :src="word2"
  3988. @click="downloadFile(w.works,w.userid)"
  3989. alt
  3990. />
  3991. <!-- @click="openVideo(w.works)" -->
  3992. <div
  3993. class="answerScore"
  3994. v-if="w.score"
  3995. @click.stop="openScore(w)"
  3996. :class="{
  3997. rightW:
  3998. w.userid == userid ||
  3999. tType == 1 ||
  4000. tType == 4 ||
  4001. w.ateacher == userid
  4002. }"
  4003. >
  4004. {{ JSON.parse(w.score).wScore }}分
  4005. </div>
  4006. <div
  4007. class="answerScore"
  4008. @click.stop="openScore(w)"
  4009. v-else-if="
  4010. courseDetail.userid == userid &&
  4011. courseDetail.state != 6 &&
  4012. chapInfoList[courseType].chapterInfo[0]
  4013. .taskJson[taskCount].eList &&
  4014. chapInfoList[courseType].chapterInfo[0]
  4015. .taskJson[taskCount].eList.length
  4016. "
  4017. :class="{
  4018. rightW:
  4019. w.userid == userid ||
  4020. tType == 1 ||
  4021. tType == 4 ||
  4022. w.ateacher == userid
  4023. }"
  4024. >
  4025. 评分
  4026. </div>
  4027. <!-- <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"> -->
  4028. <div
  4029. v-else-if="
  4030. (courseDetail.userid == userid ||
  4031. (courseDetail.course_teacher &&
  4032. courseDetail.course_teacher.indexOf(userid) !=
  4033. -1) ||
  4034. (w.userid == userid && sIsOpen)) &&
  4035. courseDetail.state == 6 &&
  4036. ((chapInfoList[courseType].chapterInfo[0]
  4037. .taskJson[taskCount].eList &&
  4038. chapInfoList[courseType].chapterInfo[0]
  4039. .taskJson[taskCount].eList.length) ||
  4040. (tool.eList && tool.eList.length))
  4041. "
  4042. >
  4043. <el-popover
  4044. placement="top"
  4045. width="318"
  4046. :disabled="AIloading[toolIndex][wIndex].loading"
  4047. trigger="hover"
  4048. >
  4049. <markScore
  4050. :loading="AIloading[toolIndex][wIndex].loading"
  4051. :markScoreVisible="markScoreVisible"
  4052. :ref="`markSco${toolIndex}${wIndex}`"
  4053. @updateLoading="updateLoading"
  4054. @updateDocSco="updateDocSco"
  4055. @refreshOther="refreshOther"
  4056. @markScoreDig="markScoreDig"
  4057. :tool="tool"
  4058. :wIndex="wIndex"
  4059. :scoCon="w"
  4060. :toolIndex="toolIndex"
  4061. :key="refreshKey"
  4062. :stage="courseType"
  4063. :task="taskCount"
  4064. :scoTit="
  4065. chapInfoList[courseType].chapterInfo[0]
  4066. .taskJson[taskCount].eList
  4067. "
  4068. >
  4069. </markScore>
  4070. <div
  4071. class="answerScore"
  4072. @click="
  4073. markScoreDig2(
  4074. w.sName,
  4075. worksStudent,
  4076. w.userid,
  4077. toolIndex,
  4078. chapInfoList[courseType].chapterInfo[0]
  4079. .taskJson[taskCount].eList,
  4080. AIloading[toolIndex][wIndex].loading,
  4081. tool
  4082. )
  4083. "
  4084. slot="reference"
  4085. :class="{
  4086. rightW:
  4087. w.userid == userid ||
  4088. tType == 1 ||
  4089. tType == 4 ||
  4090. w.ateacher == userid
  4091. }"
  4092. >
  4093. <span v-if="AIloading[toolIndex][wIndex].sco">
  4094. {{
  4095. AIloading[toolIndex][wIndex].loading
  4096. ? "评分中"
  4097. : AIloading[toolIndex][wIndex].sco + "分"
  4098. }}
  4099. </span>
  4100. <span v-else>
  4101. {{
  4102. AIloading[toolIndex][wIndex].loading
  4103. ? "评分中"
  4104. : "评分"
  4105. }}
  4106. </span>
  4107. </div>
  4108. </el-popover>
  4109. </div>
  4110. <img
  4111. class="deleteImg"
  4112. src="../../assets/deleteworks.png"
  4113. v-if="
  4114. w.userid == userid || tType == 1 || tType == 4
  4115. "
  4116. @click.stop="deleteWorks(w.wid)"
  4117. alt
  4118. />
  4119. </div>
  4120. <div class="comment" style="min-width: 200px">
  4121. <div class="worksName">
  4122. <div>{{ w.sName }}</div>
  4123. </div>
  4124. <div class="commentList">
  4125. <div class="commentList">
  4126. <div
  4127. class="commentImg"
  4128. @click="
  4129. isLikes(
  4130. w.wid,
  4131. userid,
  4132. 1,
  4133. null,
  4134. w.isLikes,
  4135. w.sName
  4136. )
  4137. "
  4138. >
  4139. <img
  4140. :src="w.isLikes == true ? likes : noLikes"
  4141. alt=""
  4142. />
  4143. </div>
  4144. <div>{{ w.likesCount }}</div>
  4145. </div>
  4146. <div class="commentList" style="margin-right: 15px">
  4147. <div
  4148. class="commentImg"
  4149. @click="commentOther(w, toolIndex, wIndex)"
  4150. >
  4151. <img
  4152. src="../../assets/icon/comment/comment.png"
  4153. alt=""
  4154. />
  4155. </div>
  4156. <div>{{ w.commentCount }}</div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. </div>
  4162. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4163. 未提交
  4164. </div>
  4165. <div
  4166. class="noWorksS"
  4167. v-if="noWorksS && noWorksS[toolIndex].length"
  4168. >
  4169. <div
  4170. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4171. :key="sIndex"
  4172. class="noWorksName"
  4173. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4174. >
  4175. <el-tooltip
  4176. effect="dark"
  4177. :content="s.student"
  4178. placement="top"
  4179. >
  4180. <span>{{ s.student }}</span>
  4181. </el-tooltip>
  4182. </div>
  4183. </div>
  4184. </div>
  4185. <div
  4186. v-if="
  4187. tType &&
  4188. ((tType == 2 && sIsOpen == true) ||
  4189. tType == 1 ||
  4190. tType == 4) &&
  4191. tool.tool.indexOf(70) != -1
  4192. "
  4193. class="worksBox"
  4194. >
  4195. <div
  4196. class="zuoyeYulan"
  4197. v-if="
  4198. worksStudent.length &&
  4199. worksStudent[toolIndex].length > 0
  4200. "
  4201. >
  4202. <div class="worksTop">
  4203. <div>作业预览</div>
  4204. <div
  4205. class="corOpen"
  4206. @click="contract(toolIndex)"
  4207. v-if="
  4208. isCloseList[toolIndex].isCloseBoolean &&
  4209. isCloseList[toolIndex].isClose == 0
  4210. "
  4211. >
  4212. 折叠
  4213. </div>
  4214. <div
  4215. class="corOpen"
  4216. @click="contract(toolIndex)"
  4217. v-if="isCloseList[toolIndex].isClose == 1"
  4218. >
  4219. 展开
  4220. </div>
  4221. </div>
  4222. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4223. </div>
  4224. <div
  4225. :id="'tool-' + toolIndex"
  4226. :style="{
  4227. height:
  4228. isCloseList[toolIndex].isClose == 1
  4229. ? retrnToolHeight('tool-' + toolIndex)
  4230. : 'auto',
  4231. overflow:
  4232. isCloseList[toolIndex].isClose == 1
  4233. ? 'hidden'
  4234. : 'unset'
  4235. }"
  4236. class="worksDetailBox"
  4237. v-if="
  4238. worksStudent.length &&
  4239. worksStudent[toolIndex].length > 0
  4240. "
  4241. >
  4242. <div
  4243. class="works"
  4244. style="
  4245. width: 200px;
  4246. height: 140px;
  4247. margin: 10px 10px 10px 0;
  4248. border-radius: 15px;
  4249. box-shadow: 0 0 6px 1px #dfdada;
  4250. "
  4251. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4252. :key="wIndex"
  4253. :class="w.type == 1 ? 'isTypeOne' : ''"
  4254. >
  4255. <div
  4256. class="workImg"
  4257. @click.stop="openScore(w, toolIndex)"
  4258. >
  4259. <img :src="word" alt />
  4260. <img
  4261. class="deleteImg"
  4262. src="../../assets/deleteworks.png"
  4263. v-if="
  4264. w.userid == userid || tType == 1 || tType == 4
  4265. "
  4266. @click.stop="deleteWorks(w.wid)"
  4267. alt
  4268. />
  4269. </div>
  4270. <div class="comment" style="min-width: 200px">
  4271. <div class="worksName">
  4272. <div>{{ w.sName }}</div>
  4273. </div>
  4274. </div>
  4275. </div>
  4276. </div>
  4277. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4278. 未提交
  4279. </div>
  4280. <div
  4281. class="noWorksS"
  4282. v-if="noWorksS && noWorksS[toolIndex].length"
  4283. >
  4284. <div
  4285. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4286. :key="sIndex"
  4287. class="noWorksName"
  4288. >
  4289. <el-tooltip
  4290. effect="dark"
  4291. :content="s.student"
  4292. placement="top"
  4293. >
  4294. <span>{{ s.student }}</span>
  4295. </el-tooltip>
  4296. </div>
  4297. </div>
  4298. </div>
  4299. <div
  4300. v-if="
  4301. tType &&
  4302. tType == 2 &&
  4303. !sIsOpen &&
  4304. tool.tool.indexOf(70) != -1
  4305. "
  4306. class="worksBox"
  4307. >
  4308. <div
  4309. class="zuoyeYulan"
  4310. v-if="workStudent[toolIndex].length > 0"
  4311. >
  4312. <span class="worksTitle">作业预览</span>
  4313. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4314. </div>
  4315. <div
  4316. class="worksDetailBox"
  4317. v-if="workStudent[toolIndex].length > 0"
  4318. >
  4319. <div
  4320. class="works"
  4321. style="
  4322. width: 200px;
  4323. height: 140px;
  4324. margin: 10px 10px 10px 0;
  4325. box-shadow: 0 0 6px 1px #dfdada;
  4326. "
  4327. v-for="(w, wIndex) in workStudent[toolIndex]"
  4328. :key="wIndex"
  4329. >
  4330. <div
  4331. class="workImg"
  4332. @click.stop="openScore(w, toolIndex)"
  4333. >
  4334. <img :src="word" alt />
  4335. <img
  4336. class="deleteImg"
  4337. src="../../assets/deleteworks.png"
  4338. v-if="
  4339. w.userid == userid || tType == 1 || tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <div class="worksName">
  4346. <div>{{ w.sName }}</div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. </div>
  4351. <div
  4352. v-if="
  4353. tType &&
  4354. ((tType == 2 && sIsOpen == true) ||
  4355. tType == 1 ||
  4356. tType == 4) &&
  4357. tool.tool.indexOf(32) != -1
  4358. "
  4359. class="worksBox"
  4360. >
  4361. <div
  4362. class="zuoyeYulan"
  4363. v-if="
  4364. worksStudent.length &&
  4365. worksStudent[toolIndex].length > 0
  4366. "
  4367. >
  4368. <div class="worksTop">
  4369. <div>作业预览</div>
  4370. <div
  4371. class="corOpen"
  4372. @click="contract(toolIndex)"
  4373. v-if="
  4374. isCloseList[toolIndex].isCloseBoolean &&
  4375. isCloseList[toolIndex].isClose == 0
  4376. "
  4377. >
  4378. 折叠
  4379. </div>
  4380. <div
  4381. class="corOpen"
  4382. @click="contract(toolIndex)"
  4383. v-if="isCloseList[toolIndex].isClose == 1"
  4384. >
  4385. 展开
  4386. </div>
  4387. </div>
  4388. </div>
  4389. <div
  4390. :id="'tool-' + toolIndex"
  4391. :style="{
  4392. height:
  4393. isCloseList[toolIndex].isClose == 1
  4394. ? retrnToolHeight('tool-' + toolIndex)
  4395. : 'auto',
  4396. overflow:
  4397. isCloseList[toolIndex].isClose == 1
  4398. ? 'hidden'
  4399. : 'unset'
  4400. }"
  4401. class="worksDetailBox"
  4402. v-if="
  4403. worksStudent.length &&
  4404. worksStudent[toolIndex].length > 0
  4405. "
  4406. >
  4407. <div
  4408. class="works"
  4409. style="
  4410. width: 200px;
  4411. height: 140px;
  4412. margin: 10px 10px 10px 0;
  4413. border-radius: 15px;
  4414. box-shadow: 0 0 6px 1px #dfdada;
  4415. "
  4416. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4417. :key="wIndex"
  4418. :class="w.type == 1 ? 'isTypeOne' : ''"
  4419. >
  4420. <div class="workImg">
  4421. <img
  4422. :src="word2"
  4423. @click="downloadFile(w.works,w.userid)"
  4424. alt
  4425. />
  4426. <div
  4427. class="answerScore"
  4428. v-if="w.score"
  4429. @click.stop="openScore(w)"
  4430. :class="{
  4431. rightW:
  4432. w.userid == userid ||
  4433. tType == 1 ||
  4434. tType == 4 ||
  4435. w.ateacher == userid
  4436. }"
  4437. >
  4438. {{ JSON.parse(w.score).wScore }}分
  4439. </div>
  4440. <div
  4441. class="answerScore"
  4442. @click.stop="openScore(w)"
  4443. v-else-if="courseDetail.userid == userid"
  4444. :class="{
  4445. rightW:
  4446. w.userid == userid ||
  4447. tType == 1 ||
  4448. tType == 4 ||
  4449. w.ateacher == userid
  4450. }"
  4451. >
  4452. 评分
  4453. </div>
  4454. <img
  4455. class="deleteImg"
  4456. src="../../assets/deleteworks.png"
  4457. v-if="
  4458. w.userid == userid || tType == 1 || tType == 4
  4459. "
  4460. @click.stop="deleteWorks(w.wid)"
  4461. alt
  4462. />
  4463. </div>
  4464. <div class="comment" style="min-width: 200px">
  4465. <div class="worksName">
  4466. <div>{{ w.sName }}</div>
  4467. </div>
  4468. <div class="commentList">
  4469. <div class="commentList">
  4470. <div
  4471. class="commentImg"
  4472. @click="
  4473. isLikes(
  4474. w.wid,
  4475. userid,
  4476. 1,
  4477. null,
  4478. w.isLikes,
  4479. w.sName
  4480. )
  4481. "
  4482. >
  4483. <img
  4484. :src="w.isLikes == true ? likes : noLikes"
  4485. alt=""
  4486. />
  4487. </div>
  4488. <div>{{ w.likesCount }}</div>
  4489. </div>
  4490. <div class="commentList" style="margin-right: 15px">
  4491. <div
  4492. class="commentImg"
  4493. @click="commentOther(w, toolIndex, wIndex)"
  4494. >
  4495. <img
  4496. src="../../assets/icon/comment/comment.png"
  4497. alt=""
  4498. />
  4499. </div>
  4500. <div>{{ w.commentCount }}</div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. </div>
  4505. </div>
  4506. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4507. 未提交
  4508. </div>
  4509. <div
  4510. class="noWorksS"
  4511. v-if="noWorksS && noWorksS[toolIndex].length"
  4512. >
  4513. <div
  4514. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4515. :key="sIndex"
  4516. class="noWorksName"
  4517. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4518. >
  4519. <el-tooltip
  4520. effect="dark"
  4521. :content="s.student"
  4522. placement="top"
  4523. >
  4524. <span>{{ s.student }}</span>
  4525. </el-tooltip>
  4526. </div>
  4527. </div>
  4528. </div>
  4529. <div
  4530. v-if="
  4531. tType &&
  4532. ((tType == 2 && sIsOpen == true) ||
  4533. tType == 1 ||
  4534. tType == 4) &&
  4535. tool.tool.indexOf(57) != -1
  4536. "
  4537. class="worksBox"
  4538. >
  4539. <div
  4540. class="zuoyeYulan"
  4541. v-if="
  4542. worksStudent.length &&
  4543. worksStudent[toolIndex].length > 0
  4544. "
  4545. >
  4546. <div class="worksTop">
  4547. <div>作业预览</div>
  4548. <div
  4549. class="corOpen"
  4550. @click="contract(toolIndex)"
  4551. v-if="
  4552. isCloseList[toolIndex].isCloseBoolean &&
  4553. isCloseList[toolIndex].isClose == 0
  4554. "
  4555. >
  4556. 折叠
  4557. </div>
  4558. <div
  4559. class="corOpen"
  4560. @click="contract(toolIndex)"
  4561. v-if="isCloseList[toolIndex].isClose == 1"
  4562. >
  4563. 展开
  4564. </div>
  4565. </div>
  4566. </div>
  4567. <div
  4568. :id="'tool-' + toolIndex"
  4569. :style="{
  4570. height:
  4571. isCloseList[toolIndex].isClose == 1
  4572. ? retrnToolHeight('tool-' + toolIndex)
  4573. : 'auto',
  4574. overflow:
  4575. isCloseList[toolIndex].isClose == 1
  4576. ? 'hidden'
  4577. : 'unset'
  4578. }"
  4579. class="worksDetailBox"
  4580. v-if="
  4581. worksStudent.length &&
  4582. worksStudent[toolIndex].length > 0
  4583. "
  4584. >
  4585. <div
  4586. class="works"
  4587. style="
  4588. width: 200px;
  4589. height: 140px;
  4590. margin: 10px 10px 10px 0;
  4591. border-radius: 15px;
  4592. box-shadow: 0 0 6px 1px #dfdada;
  4593. "
  4594. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4595. :key="wIndex"
  4596. :class="w.type == 1 ? 'isTypeOne' : ''"
  4597. >
  4598. <div class="workImg">
  4599. <img
  4600. :src="word2"
  4601. @click="downloadFile(w.works,w.userid)"
  4602. v-if="w.type == 12"
  4603. alt
  4604. />
  4605. <img
  4606. :src="word2"
  4607. @click="
  4608. openCocoPi(57, toolIndex, w.userid, w.sName)
  4609. "
  4610. v-else-if="w.type == 15"
  4611. alt
  4612. />
  4613. <div
  4614. class="answerScore"
  4615. v-if="w.score"
  4616. @click.stop="openScore(w)"
  4617. :class="{
  4618. rightW:
  4619. w.userid == userid ||
  4620. tType == 1 ||
  4621. tType == 4 ||
  4622. w.ateacher == userid
  4623. }"
  4624. >
  4625. {{ JSON.parse(w.score).wScore }}分
  4626. </div>
  4627. <div
  4628. class="answerScore"
  4629. @click.stop="openScore(w)"
  4630. v-else-if="
  4631. courseDetail.userid == userid &&
  4632. courseDetail.state != 6 &&
  4633. chapInfoList[courseType].chapterInfo[0]
  4634. .taskJson[taskCount].eList &&
  4635. chapInfoList[courseType].chapterInfo[0]
  4636. .taskJson[taskCount].eList.length
  4637. "
  4638. :class="{
  4639. rightW:
  4640. w.userid == userid ||
  4641. tType == 1 ||
  4642. tType == 4 ||
  4643. w.ateacher == userid
  4644. }"
  4645. >
  4646. 评分
  4647. </div>
  4648. <!-- <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"> -->
  4649. <div
  4650. v-else-if="
  4651. (courseDetail.userid == userid ||
  4652. (courseDetail.course_teacher &&
  4653. courseDetail.course_teacher.indexOf(userid) !=
  4654. -1) ||
  4655. (w.userid == userid && sIsOpen)) &&
  4656. courseDetail.state == 6 &&
  4657. ((chapInfoList[courseType].chapterInfo[0]
  4658. .taskJson[taskCount].eList &&
  4659. chapInfoList[courseType].chapterInfo[0]
  4660. .taskJson[taskCount].eList.length) ||
  4661. (tool.eList && tool.eList.length))
  4662. "
  4663. >
  4664. <el-popover
  4665. placement="top"
  4666. width="318"
  4667. :disabled="AIloading[toolIndex][wIndex].loading"
  4668. trigger="hover"
  4669. >
  4670. <markScore
  4671. :loading="AIloading[toolIndex][wIndex].loading"
  4672. :markScoreVisible="markScoreVisible"
  4673. :ref="`markSco${toolIndex}${wIndex}`"
  4674. @updateLoading="updateLoading"
  4675. @updateDocSco="updateDocSco"
  4676. @refreshOther="refreshOther"
  4677. @markScoreDig="markScoreDig"
  4678. :tool="tool"
  4679. :wIndex="wIndex"
  4680. :scoCon="w"
  4681. :toolIndex="toolIndex"
  4682. :key="refreshKey"
  4683. :stage="courseType"
  4684. :task="taskCount"
  4685. :scoTit="
  4686. chapInfoList[courseType].chapterInfo[0]
  4687. .taskJson[taskCount].eList
  4688. "
  4689. >
  4690. </markScore>
  4691. <div
  4692. class="answerScore"
  4693. @click="
  4694. markScoreDig2(
  4695. w.sName,
  4696. worksStudent,
  4697. w.userid,
  4698. toolIndex,
  4699. chapInfoList[courseType].chapterInfo[0]
  4700. .taskJson[taskCount].eList,
  4701. AIloading[toolIndex][wIndex].loading,
  4702. tool
  4703. )
  4704. "
  4705. slot="reference"
  4706. :class="{
  4707. rightW:
  4708. w.userid == userid ||
  4709. tType == 1 ||
  4710. tType == 4 ||
  4711. w.ateacher == userid
  4712. }"
  4713. >
  4714. <span v-if="AIloading[toolIndex][wIndex].sco">
  4715. {{
  4716. AIloading[toolIndex][wIndex].loading
  4717. ? "评分中"
  4718. : AIloading[toolIndex][wIndex].sco + "分"
  4719. }}
  4720. </span>
  4721. <span v-else>
  4722. {{
  4723. AIloading[toolIndex][wIndex].loading
  4724. ? "评分中"
  4725. : "评分"
  4726. }}
  4727. </span>
  4728. </div>
  4729. </el-popover>
  4730. </div>
  4731. <img
  4732. class="deleteImg"
  4733. src="../../assets/deleteworks.png"
  4734. v-if="
  4735. w.userid == userid || tType == 1 || tType == 4
  4736. "
  4737. @click.stop="deleteWorks(w.wid)"
  4738. alt
  4739. />
  4740. </div>
  4741. <div class="comment" style="min-width: 200px">
  4742. <div class="worksName">
  4743. <div>{{ w.sName }}</div>
  4744. </div>
  4745. <div class="commentList">
  4746. <div class="commentList">
  4747. <div
  4748. class="commentImg"
  4749. @click="
  4750. isLikes(
  4751. w.wid,
  4752. userid,
  4753. 1,
  4754. null,
  4755. w.isLikes,
  4756. w.sName
  4757. )
  4758. "
  4759. >
  4760. <img
  4761. :src="w.isLikes == true ? likes : noLikes"
  4762. alt=""
  4763. />
  4764. </div>
  4765. <div>{{ w.likesCount }}</div>
  4766. </div>
  4767. <div class="commentList" style="margin-right: 15px">
  4768. <div
  4769. class="commentImg"
  4770. @click="commentOther(w, toolIndex, wIndex)"
  4771. >
  4772. <img
  4773. src="../../assets/icon/comment/comment.png"
  4774. alt=""
  4775. />
  4776. </div>
  4777. <div>{{ w.commentCount }}</div>
  4778. </div>
  4779. </div>
  4780. </div>
  4781. </div>
  4782. </div>
  4783. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4784. 未提交
  4785. </div>
  4786. <div
  4787. class="noWorksS"
  4788. v-if="noWorksS && noWorksS[toolIndex].length"
  4789. >
  4790. <div
  4791. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4792. :key="sIndex"
  4793. class="noWorksName"
  4794. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4795. >
  4796. <el-tooltip
  4797. effect="dark"
  4798. :content="s.student"
  4799. placement="top"
  4800. >
  4801. <span>{{ s.student }}</span>
  4802. </el-tooltip>
  4803. </div>
  4804. </div>
  4805. </div>
  4806. <div
  4807. v-if="
  4808. tType &&
  4809. ((tType == 2 && sIsOpen == true) ||
  4810. tType == 1 ||
  4811. tType == 4) &&
  4812. tool.tool.indexOf(72) != -1
  4813. "
  4814. class="worksBox"
  4815. >
  4816. <div
  4817. class="zuoyeYulan"
  4818. style="display: flex;justify-content: space-between;align-items: center;"
  4819. v-if="
  4820. worksStudent.length &&
  4821. worksStudent[toolIndex].length > 0
  4822. "
  4823. >
  4824. <div class="worksTop">
  4825. <div>作业预览</div>
  4826. <div
  4827. class="corOpen"
  4828. @click="contract(toolIndex)"
  4829. v-if="
  4830. isCloseList[toolIndex].isCloseBoolean &&
  4831. isCloseList[toolIndex].isClose == 0
  4832. "
  4833. >
  4834. 折叠
  4835. </div>
  4836. <div
  4837. class="corOpen"
  4838. @click="contract(toolIndex)"
  4839. v-if="isCloseList[toolIndex].isClose == 1"
  4840. >
  4841. 展开
  4842. </div>
  4843. </div>
  4844. <div
  4845. style="display: flex;"
  4846. v-if="
  4847. (courseDetail.userid == userid ||
  4848. (courseDetail.course_teacher &&
  4849. courseDetail.course_teacher.indexOf(userid) !=
  4850. -1)) &&
  4851. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4852. taskCount
  4853. ].eList &&
  4854. chapInfoList[courseType].chapterInfo[0].taskJson[
  4855. taskCount
  4856. ].eList.length) ||
  4857. (tool.eList && tool.eList.length)) &&
  4858. courseDetail.state == 6
  4859. "
  4860. >
  4861. <!-- <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"> -->
  4862. <div
  4863. @click="
  4864. resetLoopEva(
  4865. worksStudent[toolIndex],
  4866. chapInfoList[courseType].chapterInfo[0].taskJson[
  4867. taskCount
  4868. ].eList,
  4869. courseType,
  4870. taskCount,
  4871. toolIndex,
  4872. tool.toolDetail,
  4873. tool
  4874. )
  4875. "
  4876. style="margin-right:10px"
  4877. class="ScoreBtn"
  4878. >
  4879. 一键重置
  4880. </div>
  4881. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4882. <img
  4883. src="../../assets/icon/newIcons/rootImg.png"
  4884. alt=""
  4885. />
  4886. AI评分
  4887. </div>
  4888. <div
  4889. class="ScoreBtn"
  4890. v-else-if="!loopLoading[toolIndex].loading"
  4891. @click="
  4892. loopEva(
  4893. worksStudent[toolIndex],
  4894. chapInfoList[courseType].chapterInfo[0].taskJson[
  4895. taskCount
  4896. ].eList,
  4897. courseType,
  4898. taskCount,
  4899. toolIndex,
  4900. tool.toolDetail,
  4901. chapInfoList[courseType].chapterInfo[0].taskJson[
  4902. taskCount
  4903. ].taskDetail,
  4904. tool
  4905. )
  4906. "
  4907. >
  4908. <img
  4909. src="../../assets/icon/newIcons/rootImg.png"
  4910. alt=""
  4911. />
  4912. AI评分
  4913. </div>
  4914. <div class="ScoreBtn" v-else>
  4915. <img
  4916. src="../../assets/icon/newIcons/rootImg.png"
  4917. alt=""
  4918. />
  4919. 正在评分
  4920. </div>
  4921. </div>
  4922. </div>
  4923. <div
  4924. :id="'tool-' + toolIndex"
  4925. :style="{
  4926. height:
  4927. isCloseList[toolIndex].isClose == 1
  4928. ? retrnToolHeight('tool-' + toolIndex)
  4929. : 'auto',
  4930. overflow:
  4931. isCloseList[toolIndex].isClose == 1
  4932. ? 'hidden'
  4933. : 'unset'
  4934. }"
  4935. class="worksDetailBox"
  4936. v-if="
  4937. worksStudent.length &&
  4938. worksStudent[toolIndex].length > 0
  4939. "
  4940. >
  4941. <div
  4942. class="works"
  4943. style="
  4944. width: 200px;
  4945. height: 140px;
  4946. margin: 10px 10px 10px 0;
  4947. border-radius: 15px;
  4948. box-shadow: 0 0 6px 1px #dfdada;
  4949. "
  4950. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4951. :key="wIndex"
  4952. :class="w.type == 1 ? 'isTypeOne' : ''"
  4953. >
  4954. <div class="workImg">
  4955. <!-- <img
  4956. :src="word2"
  4957. @click="downloadFile(w.works)"
  4958. v-if="w.type == 12"
  4959. alt
  4960. /> -->
  4961. <img
  4962. :src="word2"
  4963. @click="
  4964. openCocoFlow(w)
  4965. "
  4966. alt
  4967. />
  4968. <div
  4969. class="answerScore"
  4970. v-if="w.score"
  4971. @click.stop="openScore(w)"
  4972. :class="{
  4973. rightW:
  4974. w.userid == userid ||
  4975. tType == 1 ||
  4976. tType == 4 ||
  4977. w.ateacher == userid
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="
  4986. courseDetail.userid == userid &&
  4987. courseDetail.state != 5 &&
  4988. chapInfoList[courseType].chapterInfo[0]
  4989. .taskJson[taskCount].eList &&
  4990. chapInfoList[courseType].chapterInfo[0]
  4991. .taskJson[taskCount].eList.length
  4992. "
  4993. :class="{
  4994. rightW:
  4995. w.userid == userid ||
  4996. tType == 1 ||
  4997. tType == 4 ||
  4998. w.ateacher == userid
  4999. }"
  5000. >
  5001. 评分
  5002. </div>
  5003. <div
  5004. v-else-if="
  5005. (courseDetail.userid == userid ||
  5006. (courseDetail.course_teacher &&
  5007. courseDetail.course_teacher.indexOf(userid) !=
  5008. -1) ||
  5009. (w.userid == userid && sIsOpen)) &&
  5010. courseDetail.state == 6 &&
  5011. ((chapInfoList[courseType].chapterInfo[0]
  5012. .taskJson[taskCount].eList &&
  5013. chapInfoList[courseType].chapterInfo[0]
  5014. .taskJson[taskCount].eList.length) ||
  5015. (tool.eList && tool.eList.length))
  5016. "
  5017. >
  5018. <!-- <div
  5019. class="answerScore"
  5020. @click="markScoreDig(w.userid,toolIndex)"
  5021. :class="{
  5022. rightW:
  5023. w.userid == userid ||
  5024. tType == 1 ||
  5025. tType == 4 ||
  5026. w.ateacher == userid,
  5027. }"
  5028. >
  5029. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5030. </div> -->
  5031. <!-- @show="handleShow(toolIndex,wIndex)"
  5032. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5033. <el-popover
  5034. placement="top"
  5035. width="318"
  5036. :disabled="AIloading[toolIndex][wIndex].loading"
  5037. trigger="hover"
  5038. >
  5039. <markScore
  5040. :loading="AIloading[toolIndex][wIndex].loading"
  5041. :markScoreVisible="markScoreVisible"
  5042. :ref="`markSco${toolIndex}${wIndex}`"
  5043. @updateLoading="updateLoading"
  5044. @updateDocSco="updateDocSco"
  5045. @refreshOther="refreshOther"
  5046. @markScoreDig="markScoreDig"
  5047. :tool="tool"
  5048. :wIndex="wIndex"
  5049. :scoCon="w"
  5050. :toolIndex="toolIndex"
  5051. :key="refreshKey"
  5052. :stage="courseType"
  5053. :task="taskCount"
  5054. :scoTit="
  5055. chapInfoList[courseType].chapterInfo[0]
  5056. .taskJson[taskCount].eList
  5057. "
  5058. >
  5059. </markScore>
  5060. <div
  5061. class="answerScore"
  5062. @click="
  5063. markScoreDig2(
  5064. w.sName,
  5065. worksStudent,
  5066. w.userid,
  5067. toolIndex,
  5068. chapInfoList[courseType].chapterInfo[0]
  5069. .taskJson[taskCount].eList,
  5070. AIloading[toolIndex][wIndex].loading,
  5071. tool
  5072. )
  5073. "
  5074. slot="reference"
  5075. :class="{
  5076. rightW:
  5077. w.userid == userid ||
  5078. tType == 1 ||
  5079. tType == 4 ||
  5080. w.ateacher == userid
  5081. }"
  5082. >
  5083. <span v-if="AIloading[toolIndex][wIndex].sco">
  5084. {{
  5085. AIloading[toolIndex][wIndex].loading
  5086. ? "评分中"
  5087. : AIloading[toolIndex][wIndex].sco + "分"
  5088. }}
  5089. </span>
  5090. <span v-else>
  5091. {{
  5092. AIloading[toolIndex][wIndex].loading
  5093. ? "评分中"
  5094. : "评分"
  5095. }}
  5096. </span>
  5097. </div>
  5098. </el-popover>
  5099. </div>
  5100. <img
  5101. class="deleteImg"
  5102. src="../../assets/deleteworks.png"
  5103. v-if="
  5104. w.userid == userid || tType == 1 || tType == 4
  5105. "
  5106. @click.stop="deleteWorks(w.wid)"
  5107. alt
  5108. />
  5109. </div>
  5110. <div class="comment" style="min-width: 200px">
  5111. <div class="worksName">
  5112. <div>{{ w.sName }}</div>
  5113. </div>
  5114. <div class="commentList">
  5115. <div class="commentList">
  5116. <div
  5117. class="commentImg"
  5118. @click="
  5119. isLikes(
  5120. w.wid,
  5121. userid,
  5122. 1,
  5123. null,
  5124. w.isLikes,
  5125. w.sName
  5126. )
  5127. "
  5128. >
  5129. <img
  5130. :src="w.isLikes == true ? likes : noLikes"
  5131. alt=""
  5132. />
  5133. </div>
  5134. <div>{{ w.likesCount }}</div>
  5135. </div>
  5136. <div class="commentList" style="margin-right: 15px">
  5137. <div
  5138. class="commentImg"
  5139. @click="commentOther(w, toolIndex, wIndex)"
  5140. >
  5141. <img
  5142. src="../../assets/icon/comment/comment.png"
  5143. alt=""
  5144. />
  5145. </div>
  5146. <div>{{ w.commentCount }}</div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. </div>
  5151. </div>
  5152. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5153. 未提交
  5154. </div>
  5155. <div
  5156. class="noWorksS"
  5157. v-if="noWorksS && noWorksS[toolIndex].length"
  5158. >
  5159. <div
  5160. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5161. :key="sIndex"
  5162. class="noWorksName2"
  5163. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5164. >
  5165. <el-tooltip
  5166. effect="dark"
  5167. :content="s.student"
  5168. placement="top"
  5169. >
  5170. <span>{{ s.student }}</span>
  5171. </el-tooltip>
  5172. </div>
  5173. </div>
  5174. </div>
  5175. <div
  5176. v-if="
  5177. tType &&
  5178. tType == 2 &&
  5179. !sIsOpen &&
  5180. tool.tool.indexOf(72) != -1
  5181. "
  5182. class="worksBox"
  5183. >
  5184. <div
  5185. class="zuoyeYulan"
  5186. v-if="workStudent[toolIndex].length > 0"
  5187. >
  5188. <span class="worksTitle">作业预览</span>
  5189. </div>
  5190. <div
  5191. class="worksDetailBox"
  5192. v-if="workStudent[toolIndex].length > 0"
  5193. >
  5194. <div
  5195. class="works"
  5196. style="
  5197. width: 200px;
  5198. height: 140px;
  5199. margin: 10px 10px 10px 0;
  5200. box-shadow: 0 0 6px 1px #dfdada;
  5201. "
  5202. v-for="(w, wIndex) in workStudent[toolIndex]"
  5203. :key="wIndex"
  5204. >
  5205. <div class="workImg">
  5206. <!-- <img
  5207. :src="word2"
  5208. @click="downloadFile(w.works)"
  5209. v-if="w.type == 12"
  5210. alt
  5211. /> -->
  5212. <img
  5213. :src="word2"
  5214. @click="
  5215. openCocoFlow(w)
  5216. "
  5217. alt
  5218. />
  5219. <div
  5220. class="answerScore"
  5221. v-if="w.score"
  5222. @click.stop="openScore(w)"
  5223. :class="{
  5224. rightW:
  5225. w.userid == userid || tType == 1 || tType == 4
  5226. }"
  5227. >
  5228. {{ JSON.parse(w.score).wScore }}分
  5229. </div>
  5230. <div
  5231. class="answerScore"
  5232. @click.stop="openScore(w)"
  5233. v-else-if="courseDetail.userid == userid"
  5234. :class="{
  5235. rightW:
  5236. w.userid == userid || tType == 1 || tType == 4
  5237. }"
  5238. >
  5239. 评分
  5240. </div>
  5241. <div
  5242. class="stuLookScore"
  5243. v-if="
  5244. w.userid == userid ||
  5245. (tType == 1 &&
  5246. courseDetail.state == 6 &&
  5247. ((chapInfoList[courseType].chapterInfo[0]
  5248. .taskJson[taskCount].eList &&
  5249. chapInfoList[courseType].chapterInfo[0]
  5250. .taskJson[taskCount].eList.length) ||
  5251. (tool.eList && tool.eList.length)))
  5252. "
  5253. >
  5254. <el-popover
  5255. placement="top"
  5256. width="318"
  5257. trigger="hover"
  5258. >
  5259. <markScore
  5260. :loading="AIloading[toolIndex][wIndex].loading"
  5261. :markScoreVisible="markScoreVisible"
  5262. :ref="`markSco${toolIndex}${wIndex}`"
  5263. @updateLoading="updateLoading"
  5264. @updateDocSco="updateDocSco"
  5265. @refreshOther="refreshOther"
  5266. @markScoreDig="markScoreDig"
  5267. :tool="tool"
  5268. :wIndex="wIndex"
  5269. :scoCon="w"
  5270. :toolIndex="toolIndex"
  5271. :key="refreshKey"
  5272. :stage="courseType"
  5273. :task="taskCount"
  5274. :scoTit="
  5275. chapInfoList[courseType].chapterInfo[0]
  5276. .taskJson[taskCount].eList
  5277. "
  5278. >
  5279. </markScore>
  5280. <div
  5281. @click="
  5282. markScoreDig2(
  5283. w.sName,
  5284. worksStudent,
  5285. w.userid,
  5286. toolIndex,
  5287. chapInfoList[courseType].chapterInfo[0]
  5288. .taskJson[taskCount].eList,
  5289. AIloading[toolIndex][wIndex].loading,
  5290. tool
  5291. )
  5292. "
  5293. slot="reference"
  5294. >
  5295. <span v-if="AIloading[toolIndex][wIndex].sco">
  5296. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5297. </span>
  5298. <span v-else>
  5299. 评分
  5300. </span>
  5301. </div>
  5302. </el-popover>
  5303. </div>
  5304. <img
  5305. class="deleteImg"
  5306. src="../../assets/deleteworks.png"
  5307. v-if="
  5308. w.userid == userid || tType == 1 || tType == 4
  5309. "
  5310. @click.stop="deleteWorks(w.wid)"
  5311. alt
  5312. />
  5313. </div>
  5314. <div class="worksName">
  5315. <div>{{ w.sName }}</div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5321. <div
  5322. style="display: flex;justify-content: space-between;align-items: center;"
  5323. >
  5324. <div
  5325. class="zuoyeYulan"
  5326. v-if="
  5327. worksStudent.length &&
  5328. worksStudent[toolIndex].length > 0
  5329. "
  5330. >
  5331. <span class="worksTitle">作业预览</span>
  5332. <div
  5333. class="corOpen"
  5334. @click="contract(toolIndex)"
  5335. v-if="
  5336. isCloseList[toolIndex].isCloseBoolean &&
  5337. isCloseList[toolIndex].isClose == 0
  5338. "
  5339. >
  5340. 折叠
  5341. </div>
  5342. <div
  5343. class="corOpen"
  5344. @click="contract(toolIndex)"
  5345. v-if="isCloseList[toolIndex].isClose == 1"
  5346. >
  5347. 展开
  5348. </div>
  5349. </div>
  5350. <div
  5351. style="display: flex;"
  5352. v-if="
  5353. (courseDetail.userid == userid ||
  5354. (courseDetail.course_teacher &&
  5355. courseDetail.course_teacher.indexOf(userid) !=
  5356. -1)) &&
  5357. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5358. taskCount
  5359. ].eList &&
  5360. chapInfoList[courseType].chapterInfo[0].taskJson[
  5361. taskCount
  5362. ].eList.length) ||
  5363. (tool.eList && tool.eList.length)) &&
  5364. courseDetail.state == 6
  5365. "
  5366. >
  5367. <!-- <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 "> -->
  5368. <div
  5369. style="margin-right:10px"
  5370. class="ScoreBtn"
  5371. @click="
  5372. resetLoopEva(
  5373. worksStudent[toolIndex],
  5374. chapInfoList[courseType].chapterInfo[0].taskJson[
  5375. taskCount
  5376. ].eList,
  5377. courseType,
  5378. taskCount,
  5379. toolIndex,
  5380. tool.toolDetail,
  5381. worksStudent
  5382. )
  5383. "
  5384. >
  5385. 一键重置
  5386. </div>
  5387. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5388. <img
  5389. src="../../assets/icon/newIcons/rootImg.png"
  5390. alt=""
  5391. />
  5392. AI评分
  5393. </div>
  5394. <div
  5395. class="ScoreBtn"
  5396. v-else-if="!loopLoading[toolIndex].loading"
  5397. @click="
  5398. loopEva(
  5399. worksStudent[toolIndex],
  5400. chapInfoList[courseType].chapterInfo[0].taskJson[
  5401. taskCount
  5402. ].eList,
  5403. courseType,
  5404. taskCount,
  5405. toolIndex,
  5406. tool.toolDetail,
  5407. chapInfoList[courseType].chapterInfo[0].taskJson[
  5408. taskCount
  5409. ].taskDetail,
  5410. tool
  5411. )
  5412. "
  5413. >
  5414. <img
  5415. src="../../assets/icon/newIcons/rootImg.png"
  5416. alt=""
  5417. />
  5418. AI评分
  5419. </div>
  5420. <div class="ScoreBtn" v-else>
  5421. <img
  5422. src="../../assets/icon/newIcons/rootImg.png"
  5423. alt=""
  5424. />
  5425. 正在评分
  5426. </div>
  5427. </div>
  5428. </div>
  5429. <div
  5430. :id="'tool-' + toolIndex"
  5431. :style="{
  5432. height:
  5433. isCloseList[toolIndex].isClose == 1
  5434. ? retrnToolHeight('tool-' + toolIndex)
  5435. : 'auto',
  5436. overflow:
  5437. isCloseList[toolIndex].isClose == 1
  5438. ? 'hidden'
  5439. : 'unset'
  5440. }"
  5441. class="worksDetailBox"
  5442. v-if="
  5443. worksStudent.length &&
  5444. worksStudent[toolIndex].length > 0
  5445. "
  5446. >
  5447. <div
  5448. class="works"
  5449. style="
  5450. width: 200px;
  5451. height: 140px;
  5452. margin: 10px 10px 10px 0;
  5453. border-radius: 15px;
  5454. box-shadow: 0 0 6px 1px #dfdada;
  5455. "
  5456. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5457. :key="wIndex"
  5458. :class="w.type == 1 ? 'isTypeOne' : ''"
  5459. >
  5460. <div class="workImg" v-if="w.type == 0">
  5461. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5462. <img
  5463. :src="w.works"
  5464. @click="previewImg(w.works, w)"
  5465. alt
  5466. />
  5467. <div
  5468. class="answerScore"
  5469. v-if="w.score"
  5470. @click.stop="openScore(w)"
  5471. :class="{
  5472. rightW:
  5473. w.userid == userid ||
  5474. tType == 1 ||
  5475. tType == 4 ||
  5476. w.ateacher == userid
  5477. }"
  5478. >
  5479. {{ JSON.parse(w.score).wScore }}分
  5480. </div>
  5481. <div
  5482. class="answerScore"
  5483. @click.stop="openScore(w)"
  5484. v-else-if="
  5485. courseDetail.userid == userid &&
  5486. courseDetail.state != 6 &&
  5487. chapInfoList[courseType].chapterInfo[0]
  5488. .taskJson[taskCount].eList &&
  5489. chapInfoList[courseType].chapterInfo[0]
  5490. .taskJson[taskCount].eList.length
  5491. "
  5492. :class="{
  5493. rightW:
  5494. w.userid == userid ||
  5495. tType == 1 ||
  5496. tType == 4 ||
  5497. w.ateacher == userid
  5498. }"
  5499. >
  5500. 评分
  5501. </div>
  5502. <!-- <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"> -->
  5503. <div
  5504. v-else-if="
  5505. (courseDetail.userid == userid ||
  5506. (courseDetail.course_teacher &&
  5507. courseDetail.course_teacher.indexOf(userid) !=
  5508. -1) ||
  5509. (w.userid == userid && sIsOpen)) &&
  5510. courseDetail.state == 6 &&
  5511. ((chapInfoList[courseType].chapterInfo[0]
  5512. .taskJson[taskCount].eList &&
  5513. chapInfoList[courseType].chapterInfo[0]
  5514. .taskJson[taskCount].eList.length) ||
  5515. (tool.eList && tool.eList.length))
  5516. "
  5517. >
  5518. <el-popover
  5519. placement="top"
  5520. width="318"
  5521. :disabled="AIloading[toolIndex][wIndex].loading"
  5522. trigger="hover"
  5523. >
  5524. <markScore
  5525. :loading="AIloading[toolIndex][wIndex].loading"
  5526. :markScoreVisible="markScoreVisible"
  5527. :ref="`markSco${toolIndex}${wIndex}`"
  5528. @updateLoading="updateLoading"
  5529. @updateDocSco="updateDocSco"
  5530. @refreshOther="refreshOther"
  5531. @markScoreDig="markScoreDig"
  5532. :tool="tool"
  5533. :wIndex="wIndex"
  5534. :scoCon="w"
  5535. :toolIndex="toolIndex"
  5536. :key="refreshKey"
  5537. :stage="courseType"
  5538. :task="taskCount"
  5539. :scoTit="
  5540. chapInfoList[courseType].chapterInfo[0]
  5541. .taskJson[taskCount].eList
  5542. "
  5543. >
  5544. </markScore>
  5545. <div
  5546. class="answerScore"
  5547. @click="
  5548. markScoreDig2(
  5549. w.sName,
  5550. worksStudent,
  5551. w.userid,
  5552. toolIndex,
  5553. chapInfoList[courseType].chapterInfo[0]
  5554. .taskJson[taskCount].eList,
  5555. AIloading[toolIndex][wIndex].loading,
  5556. tool
  5557. )
  5558. "
  5559. slot="reference"
  5560. :class="{
  5561. rightW:
  5562. w.userid == userid ||
  5563. tType == 1 ||
  5564. tType == 4 ||
  5565. w.ateacher == userid
  5566. }"
  5567. >
  5568. <span v-if="AIloading[toolIndex][wIndex].sco">
  5569. {{
  5570. AIloading[toolIndex][wIndex].loading
  5571. ? "评分中"
  5572. : AIloading[toolIndex][wIndex].sco + "分"
  5573. }}
  5574. </span>
  5575. <span v-else>
  5576. {{
  5577. AIloading[toolIndex][wIndex].loading
  5578. ? "评分中"
  5579. : "评分"
  5580. }}
  5581. </span>
  5582. </div>
  5583. </el-popover>
  5584. </div>
  5585. <img
  5586. class="deleteImg"
  5587. src="../../assets/deleteworks.png"
  5588. v-if="
  5589. w.userid == userid || tType == 1 || tType == 4
  5590. "
  5591. @click.stop="deleteWorks(w.wid)"
  5592. alt
  5593. />
  5594. </div>
  5595. <div
  5596. class="workImg"
  5597. style="cursor: pointer"
  5598. v-if="w.type == 1"
  5599. >
  5600. <img :src="word" @click="openFile(w.works)" alt />
  5601. <!-- @click="openFile(w.works)" -->
  5602. <div
  5603. class="answerScore"
  5604. v-if="w.score"
  5605. @click.stop="openScore(w)"
  5606. :class="{
  5607. rightW:
  5608. w.userid == userid ||
  5609. tType == 1 ||
  5610. tType == 4 ||
  5611. w.ateacher == userid
  5612. }"
  5613. >
  5614. {{ JSON.parse(w.score).wScore }}分
  5615. </div>
  5616. <div
  5617. class="answerScore"
  5618. @click.stop="openScore(w)"
  5619. v-else-if="
  5620. courseDetail.userid == userid &&
  5621. courseDetail.state != 6 &&
  5622. chapInfoList[courseType].chapterInfo[0]
  5623. .taskJson[taskCount].eList &&
  5624. chapInfoList[courseType].chapterInfo[0]
  5625. .taskJson[taskCount].eList.length
  5626. "
  5627. :class="{
  5628. rightW:
  5629. w.userid == userid ||
  5630. tType == 1 ||
  5631. tType == 4 ||
  5632. w.ateacher == userid
  5633. }"
  5634. >
  5635. 评分
  5636. </div>
  5637. <!-- <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"> -->
  5638. <div
  5639. v-else-if="
  5640. (courseDetail.userid == userid ||
  5641. (courseDetail.course_teacher &&
  5642. courseDetail.course_teacher.indexOf(userid) !=
  5643. -1) ||
  5644. (w.userid == userid && sIsOpen)) &&
  5645. courseDetail.state == 6 &&
  5646. ((chapInfoList[courseType].chapterInfo[0]
  5647. .taskJson[taskCount].eList &&
  5648. chapInfoList[courseType].chapterInfo[0]
  5649. .taskJson[taskCount].eList.length) ||
  5650. (tool.eList && tool.eList.length))
  5651. "
  5652. >
  5653. <el-popover
  5654. placement="top"
  5655. width="318"
  5656. :disabled="AIloading[toolIndex][wIndex].loading"
  5657. trigger="hover"
  5658. >
  5659. <markScore
  5660. :loading="AIloading[toolIndex][wIndex].loading"
  5661. :markScoreVisible="markScoreVisible"
  5662. :ref="`markSco${toolIndex}${wIndex}`"
  5663. @updateLoading="updateLoading"
  5664. @updateDocSco="updateDocSco"
  5665. @refreshOther="refreshOther"
  5666. @markScoreDig="markScoreDig"
  5667. :tool="tool"
  5668. :wIndex="wIndex"
  5669. :scoCon="w"
  5670. :toolIndex="toolIndex"
  5671. :key="refreshKey"
  5672. :stage="courseType"
  5673. :task="taskCount"
  5674. :scoTit="
  5675. chapInfoList[courseType].chapterInfo[0]
  5676. .taskJson[taskCount].eList
  5677. "
  5678. >
  5679. </markScore>
  5680. <div
  5681. class="answerScore"
  5682. @click="
  5683. markScoreDig2(
  5684. w.sName,
  5685. worksStudent,
  5686. w.userid,
  5687. toolIndex,
  5688. chapInfoList[courseType].chapterInfo[0]
  5689. .taskJson[taskCount].eList,
  5690. AIloading[toolIndex][wIndex].loading,
  5691. tool
  5692. )
  5693. "
  5694. slot="reference"
  5695. :class="{
  5696. rightW:
  5697. w.userid == userid ||
  5698. tType == 1 ||
  5699. tType == 4 ||
  5700. w.ateacher == userid
  5701. }"
  5702. >
  5703. <span v-if="AIloading[toolIndex][wIndex].sco">
  5704. {{
  5705. AIloading[toolIndex][wIndex].loading
  5706. ? "评分中"
  5707. : AIloading[toolIndex][wIndex].sco + "分"
  5708. }}
  5709. </span>
  5710. <span v-else>
  5711. {{
  5712. AIloading[toolIndex][wIndex].loading
  5713. ? "评分中"
  5714. : "评分"
  5715. }}
  5716. </span>
  5717. </div>
  5718. </el-popover>
  5719. </div>
  5720. <img
  5721. class="deleteImg"
  5722. src="../../assets/deleteworks.png"
  5723. v-if="
  5724. w.userid == userid || tType == 1 || tType == 4
  5725. "
  5726. @click.stop="deleteWorks(w.wid)"
  5727. alt
  5728. />
  5729. </div>
  5730. <div class="workImg" v-if="w.type == 3">
  5731. <img
  5732. style="cursor: pointer"
  5733. :src="video"
  5734. @click="openVideo(w)"
  5735. alt
  5736. />
  5737. <!-- @click="openVideo(w.works)" -->
  5738. <div
  5739. class="answerScore"
  5740. v-if="w.score"
  5741. @click.stop="openScore(w)"
  5742. :class="{
  5743. rightW:
  5744. w.userid == userid ||
  5745. tType == 1 ||
  5746. tType == 4 ||
  5747. w.ateacher == userid
  5748. }"
  5749. >
  5750. {{ JSON.parse(w.score).wScore }}分
  5751. </div>
  5752. <div
  5753. class="answerScore"
  5754. @click.stop="openScore(w)"
  5755. v-else-if="
  5756. courseDetail.userid == userid &&
  5757. courseDetail.state != 6 &&
  5758. chapInfoList[courseType].chapterInfo[0]
  5759. .taskJson[taskCount].eList &&
  5760. chapInfoList[courseType].chapterInfo[0]
  5761. .taskJson[taskCount].eList.length
  5762. "
  5763. :class="{
  5764. rightW:
  5765. w.userid == userid ||
  5766. tType == 1 ||
  5767. tType == 4 ||
  5768. w.ateacher == userid
  5769. }"
  5770. >
  5771. 评分
  5772. </div>
  5773. <!-- <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"> -->
  5774. <div
  5775. v-else-if="
  5776. (courseDetail.userid == userid ||
  5777. (courseDetail.course_teacher &&
  5778. courseDetail.course_teacher.indexOf(userid) !=
  5779. -1) ||
  5780. (w.userid == userid && sIsOpen)) &&
  5781. courseDetail.state == 6 &&
  5782. ((chapInfoList[courseType].chapterInfo[0]
  5783. .taskJson[taskCount].eList &&
  5784. chapInfoList[courseType].chapterInfo[0]
  5785. .taskJson[taskCount].eList.length) ||
  5786. (tool.eList && tool.eList.length))
  5787. "
  5788. >
  5789. <el-popover
  5790. placement="top"
  5791. width="318"
  5792. :disabled="AIloading[toolIndex][wIndex].loading"
  5793. trigger="hover"
  5794. >
  5795. <markScore
  5796. :loading="AIloading[toolIndex][wIndex].loading"
  5797. :markScoreVisible="markScoreVisible"
  5798. :ref="`markSco${toolIndex}${wIndex}`"
  5799. @updateLoading="updateLoading"
  5800. @updateDocSco="updateDocSco"
  5801. @refreshOther="refreshOther"
  5802. @markScoreDig="markScoreDig"
  5803. :tool="tool"
  5804. :wIndex="wIndex"
  5805. :scoCon="w"
  5806. :toolIndex="toolIndex"
  5807. :key="refreshKey"
  5808. :stage="courseType"
  5809. :task="taskCount"
  5810. :scoTit="
  5811. chapInfoList[courseType].chapterInfo[0]
  5812. .taskJson[taskCount].eList
  5813. "
  5814. >
  5815. </markScore>
  5816. <div
  5817. class="answerScore"
  5818. @click="
  5819. markScoreDig2(
  5820. w.sName,
  5821. worksStudent,
  5822. w.userid,
  5823. toolIndex,
  5824. chapInfoList[courseType].chapterInfo[0]
  5825. .taskJson[taskCount].eList,
  5826. AIloading[toolIndex][wIndex].loading,
  5827. tool
  5828. )
  5829. "
  5830. slot="reference"
  5831. :class="{
  5832. rightW:
  5833. w.userid == userid ||
  5834. tType == 1 ||
  5835. tType == 4 ||
  5836. w.ateacher == userid
  5837. }"
  5838. >
  5839. <span v-if="AIloading[toolIndex][wIndex].sco">
  5840. {{
  5841. AIloading[toolIndex][wIndex].loading
  5842. ? "评分中"
  5843. : AIloading[toolIndex][wIndex].sco + "分"
  5844. }}
  5845. </span>
  5846. <span v-else>
  5847. {{
  5848. AIloading[toolIndex][wIndex].loading
  5849. ? "评分中"
  5850. : "评分"
  5851. }}
  5852. </span>
  5853. </div>
  5854. </el-popover>
  5855. </div>
  5856. <img
  5857. class="deleteImg"
  5858. src="../../assets/deleteworks.png"
  5859. v-if="
  5860. w.userid == userid || tType == 1 || tType == 4
  5861. "
  5862. @click.stop="deleteWorks(w.wid)"
  5863. alt
  5864. />
  5865. </div>
  5866. <div class="comment" style="min-width: 200px">
  5867. <div class="worksName">
  5868. <div
  5869. style="cursor: pointer"
  5870. @click="
  5871. openSname(w.sName, w.wid, toolIndex, w.userid)
  5872. "
  5873. >
  5874. {{ w.sName }}
  5875. </div>
  5876. </div>
  5877. <div class="commentList">
  5878. <div class="commentList">
  5879. <div
  5880. class="commentImg"
  5881. @click="
  5882. isLikes(
  5883. w.wid,
  5884. userid,
  5885. 1,
  5886. null,
  5887. w.isLikes,
  5888. w.sName
  5889. )
  5890. "
  5891. >
  5892. <img
  5893. :src="w.isLikes == true ? likes : noLikes"
  5894. alt=""
  5895. />
  5896. </div>
  5897. <div>{{ w.likesCount }}</div>
  5898. </div>
  5899. <div class="commentList" style="margin-right: 15px">
  5900. <div
  5901. class="commentImg"
  5902. @click="commentOther(w, toolIndex, wIndex)"
  5903. >
  5904. <img
  5905. src="../../assets/icon/comment/comment.png"
  5906. alt=""
  5907. />
  5908. </div>
  5909. <div>{{ w.commentCount }}</div>
  5910. </div>
  5911. </div>
  5912. </div>
  5913. </div>
  5914. </div>
  5915. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5916. 未提交
  5917. </div>
  5918. <div
  5919. class="noWorksS"
  5920. v-if="noWorksS && noWorksS[toolIndex].length"
  5921. >
  5922. <div
  5923. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5924. :key="sIndex"
  5925. class="noWorksName"
  5926. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5927. >
  5928. <el-tooltip
  5929. effect="dark"
  5930. :content="s.student"
  5931. placement="top"
  5932. >
  5933. <span>{{ s.student }}</span>
  5934. </el-tooltip>
  5935. </div>
  5936. </div>
  5937. </div>
  5938. <div
  5939. v-if="
  5940. tType &&
  5941. ((tType == 2 && sIsOpen == true) ||
  5942. tType == 1 ||
  5943. tType == 4) &&
  5944. tool.tool.indexOf(4) != -1 &&
  5945. (tool.askJson[0].answer ||
  5946. tool.askJson[0].answer === 0) &&
  5947. checkJson[toolIndex].length
  5948. "
  5949. class="xuan_right_box"
  5950. >
  5951. <div
  5952. class="tool_right_box"
  5953. v-for="(item, index) in tool.askJson"
  5954. :key="index"
  5955. >
  5956. <div style="width: calc(100% - 30px);">
  5957. <el-tooltip
  5958. effect="light"
  5959. :content="index + 1 + '、' + item.askstitle"
  5960. placement="top"
  5961. popper-class="text_tooltip"
  5962. >
  5963. <div
  5964. style="
  5965. width: calc(100% - 130px);
  5966. display: block;
  5967. white-space: nowrap;
  5968. overflow: hidden;
  5969. text-overflow: ellipsis;
  5970. word-break: break-word;
  5971. cursor: pointer;
  5972. "
  5973. >
  5974. {{ index + 1 + "、" + item.askstitle }}
  5975. </div>
  5976. </el-tooltip>
  5977. </div>
  5978. <div class="right_box_xuan">
  5979. <span>正确率</span>
  5980. <span>{{
  5981. (checkJson[toolIndex][index].right
  5982. ? checkJson[toolIndex][index].right
  5983. : 0) + "%"
  5984. }}</span>
  5985. </div>
  5986. </div>
  5987. </div>
  5988. <div
  5989. class="xuan_right_box"
  5990. style="background: unset; padding: 0 10px"
  5991. v-if="
  5992. tType &&
  5993. ((tType == 2 && sIsOpen == true) ||
  5994. tType == 1 ||
  5995. tType == 4) &&
  5996. tool.tool.indexOf(4) != -1
  5997. "
  5998. >
  5999. <AskStatic
  6000. v-if="
  6001. worksStudent.length &&
  6002. worksStudent[toolIndex].length > 0
  6003. "
  6004. :askJSON="tool"
  6005. :checkJson="checkJson[toolIndex]"
  6006. ></AskStatic>
  6007. </div>
  6008. <div
  6009. v-if="
  6010. tType &&
  6011. ((tType == 2 && sIsOpen == true) ||
  6012. tType == 1 ||
  6013. tType == 4) &&
  6014. tool.tool.indexOf(4) != -1
  6015. "
  6016. class="worksBox"
  6017. >
  6018. <div
  6019. class="zuoyeYulan"
  6020. v-if="
  6021. worksStudent.length &&
  6022. worksStudent[toolIndex].length > 0
  6023. "
  6024. >
  6025. <div class="worksTop">
  6026. <div>作业预览</div>
  6027. <div
  6028. class="corOpen"
  6029. @click="contract(toolIndex)"
  6030. v-if="
  6031. isCloseList[toolIndex].isCloseBoolean &&
  6032. isCloseList[toolIndex].isClose == 0
  6033. "
  6034. >
  6035. 折叠
  6036. </div>
  6037. <div
  6038. class="corOpen"
  6039. @click="contract(toolIndex)"
  6040. v-if="isCloseList[toolIndex].isClose == 1"
  6041. >
  6042. 展开
  6043. </div>
  6044. </div>
  6045. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6046. </div>
  6047. <div>
  6048. <div
  6049. :id="'tool-' + toolIndex"
  6050. :style="{
  6051. height:
  6052. isCloseList[toolIndex].isClose == 1
  6053. ? retrnToolHeight('tool-' + toolIndex)
  6054. : 'auto',
  6055. overflow:
  6056. isCloseList[toolIndex].isClose == 1
  6057. ? 'hidden'
  6058. : 'unset'
  6059. }"
  6060. class="worksDetailBox"
  6061. v-if="
  6062. worksStudent.length &&
  6063. worksStudent[toolIndex].length > 0
  6064. "
  6065. >
  6066. <div
  6067. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6068. :key="wIndex"
  6069. class="isWorksName2"
  6070. @click="
  6071. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6072. "
  6073. >
  6074. {{ w.sName }}
  6075. <img
  6076. class="deleteImg deleteImg2"
  6077. src="../../assets/deleteworks.png"
  6078. v-if="
  6079. w.userid == userid || tType == 1 || tType == 4
  6080. "
  6081. @click.stop="deleteWorks(w.wid)"
  6082. alt
  6083. />
  6084. </div>
  6085. <!-- <div class="works" style="
  6086. width: 200px;
  6087. height: 140px;
  6088. border-radius: 10px;
  6089. box-shadow: 0 0 6px 1px #dfdada;
  6090. overflow: hidden;
  6091. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6092. <div class="workImg">
  6093. <img src="../../assets/icon/works/noImg.png" @click="
  6094. openTools(
  6095. 4,
  6096. toolIndex,
  6097. taskCount,
  6098. w.works,
  6099. w.sName
  6100. )
  6101. " alt />
  6102. </div>
  6103. <div class="worksName">
  6104. <div>{{ w.sName }}</div>
  6105. <div>{{ w.time }}</div>
  6106. </div>
  6107. </div> -->
  6108. </div>
  6109. </div>
  6110. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6111. 未提交
  6112. </div>
  6113. <div
  6114. class="noWorksS"
  6115. v-if="noWorksS && noWorksS[toolIndex].length"
  6116. >
  6117. <div
  6118. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6119. :key="sIndex"
  6120. class="noWorksName"
  6121. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6122. >
  6123. <el-tooltip
  6124. effect="dark"
  6125. :content="s.student"
  6126. placement="top"
  6127. >
  6128. <span>{{ s.student }}</span>
  6129. </el-tooltip>
  6130. </div>
  6131. </div>
  6132. </div>
  6133. <div
  6134. v-if="
  6135. tType &&
  6136. ((tType == 2 && sIsOpen == true) ||
  6137. tType == 1 ||
  6138. tType == 4) &&
  6139. tool.tool.indexOf(45) != -1 &&
  6140. (tool.testJson.testJson[0].answer ||
  6141. tool.testJson.testJson[0].answer === 0) &&
  6142. checkJson[toolIndex].length
  6143. "
  6144. class="xuan_right_box"
  6145. >
  6146. <div
  6147. class="tool_right_box"
  6148. v-for="(item, index) in tool.testJson.testJson"
  6149. :key="index"
  6150. >
  6151. <div class="right_box_xuan" style="margin-right: 10px">
  6152. <span>正确率</span>
  6153. <span>{{
  6154. (checkJson[toolIndex][index].right
  6155. ? checkJson[toolIndex][index].right
  6156. : 0) + "%"
  6157. }}</span>
  6158. </div>
  6159. <div style="width: calc(100% - 30px);">
  6160. <el-tooltip
  6161. effect="light"
  6162. :content="index + 1 + '、' + item.teststitle"
  6163. placement="top"
  6164. popper-class="text_tooltip"
  6165. >
  6166. <div
  6167. style="
  6168. width: calc(100% - 130px);
  6169. display: flex;
  6170. white-space: nowrap;
  6171. overflow: hidden;
  6172. text-overflow: ellipsis;
  6173. word-break: break-word;
  6174. cursor: pointer;
  6175. "
  6176. class="renderedFor"
  6177. >
  6178. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6179. </div>
  6180. </el-tooltip>
  6181. </div>
  6182. </div>
  6183. </div>
  6184. <div
  6185. class="xuan_right_box"
  6186. style="background: unset; padding: 0 10px; width: 91.5%"
  6187. v-if="
  6188. tType &&
  6189. ((tType == 2 && sIsOpen == true) ||
  6190. tType == 1 ||
  6191. tType == 4) &&
  6192. tool.tool.indexOf(45) != -1
  6193. "
  6194. >
  6195. <AskStatic2
  6196. v-if="
  6197. worksStudent.length &&
  6198. worksStudent[toolIndex].length > 0
  6199. "
  6200. :askJSON="tool"
  6201. :checkJson="checkJson[toolIndex]"
  6202. ></AskStatic2>
  6203. </div>
  6204. <div
  6205. v-if="
  6206. tType &&
  6207. ((tType == 2 && sIsOpen == true) ||
  6208. tType == 1 ||
  6209. tType == 4) &&
  6210. tool.tool.indexOf(45) != -1
  6211. "
  6212. class="worksBox"
  6213. >
  6214. <div
  6215. class="zuoyeYulan"
  6216. v-if="
  6217. worksStudent.length &&
  6218. worksStudent[toolIndex].length > 0
  6219. "
  6220. >
  6221. <div class="worksTop">
  6222. <div>作业预览</div>
  6223. <div
  6224. class="corOpen"
  6225. @click="contract(toolIndex)"
  6226. v-if="
  6227. isCloseList[toolIndex].isCloseBoolean &&
  6228. isCloseList[toolIndex].isClose == 0
  6229. "
  6230. >
  6231. 折叠
  6232. </div>
  6233. <div
  6234. class="corOpen"
  6235. @click="contract(toolIndex)"
  6236. v-if="isCloseList[toolIndex].isClose == 1"
  6237. >
  6238. 展开
  6239. </div>
  6240. </div>
  6241. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6242. </div>
  6243. <div>
  6244. <div
  6245. :id="'tool-' + toolIndex"
  6246. :style="{
  6247. height:
  6248. isCloseList[toolIndex].isClose == 1
  6249. ? retrnToolHeight('tool-' + toolIndex)
  6250. : 'auto',
  6251. overflow:
  6252. isCloseList[toolIndex].isClose == 1
  6253. ? 'hidden'
  6254. : 'unset'
  6255. }"
  6256. class="worksDetailBox"
  6257. v-if="
  6258. worksStudent.length &&
  6259. worksStudent[toolIndex].length > 0
  6260. "
  6261. >
  6262. <div
  6263. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6264. :key="wIndex"
  6265. class="isWorksName2"
  6266. @click="
  6267. openTools(
  6268. 45,
  6269. toolIndex,
  6270. taskCount,
  6271. w.works,
  6272. w.sName
  6273. )
  6274. "
  6275. >
  6276. {{ w.sName }}
  6277. <img
  6278. class="deleteImg deleteImg2"
  6279. src="../../assets/deleteworks.png"
  6280. v-if="
  6281. w.userid == userid || tType == 1 || tType == 4
  6282. "
  6283. @click.stop="deleteWorks(w.wid)"
  6284. alt
  6285. />
  6286. </div>
  6287. </div>
  6288. </div>
  6289. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6290. 未提交
  6291. </div>
  6292. <div
  6293. class="noWorksS"
  6294. v-if="noWorksS && noWorksS[toolIndex].length"
  6295. >
  6296. <div
  6297. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6298. :key="sIndex"
  6299. class="noWorksName"
  6300. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6301. >
  6302. <el-tooltip
  6303. effect="dark"
  6304. :content="s.student"
  6305. placement="top"
  6306. >
  6307. <span>{{ s.student }}</span>
  6308. </el-tooltip>
  6309. </div>
  6310. </div>
  6311. </div>
  6312. <div
  6313. v-if="
  6314. tType &&
  6315. ((tType == 2 && sIsOpen == true) ||
  6316. tType == 1 ||
  6317. tType == 4) &&
  6318. tool.tool.indexOf(69) != -1
  6319. "
  6320. class="worksBox"
  6321. >
  6322. <div
  6323. class="zuoyeYulan"
  6324. v-if="
  6325. worksStudent.length &&
  6326. worksStudent[toolIndex].length > 0
  6327. "
  6328. >
  6329. <div class="worksTop">
  6330. <div>作业预览</div>
  6331. <div
  6332. class="corOpen"
  6333. @click="contract(toolIndex)"
  6334. v-if="
  6335. isCloseList[toolIndex].isCloseBoolean &&
  6336. isCloseList[toolIndex].isClose == 0
  6337. "
  6338. >
  6339. 折叠
  6340. </div>
  6341. <div
  6342. class="corOpen"
  6343. @click="contract(toolIndex)"
  6344. v-if="isCloseList[toolIndex].isClose == 1"
  6345. >
  6346. 展开
  6347. </div>
  6348. </div>
  6349. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6350. </div>
  6351. <div>
  6352. <div
  6353. :id="'tool-' + toolIndex"
  6354. :style="{
  6355. height:
  6356. isCloseList[toolIndex].isClose == 1
  6357. ? retrnToolHeight('tool-' + toolIndex)
  6358. : 'auto',
  6359. overflow:
  6360. isCloseList[toolIndex].isClose == 1
  6361. ? 'hidden'
  6362. : 'unset'
  6363. }"
  6364. class="worksDetailBox"
  6365. v-if="
  6366. worksStudent.length &&
  6367. worksStudent[toolIndex].length > 0
  6368. "
  6369. >
  6370. <div
  6371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6372. :key="wIndex"
  6373. class="isWorksName2"
  6374. style="width: 160px;height: 65px;line-height: 65px;"
  6375. @click="
  6376. openTools(
  6377. 69,
  6378. toolIndex,
  6379. taskCount,
  6380. w.works,
  6381. w.sName,
  6382. w.wid
  6383. )
  6384. "
  6385. >
  6386. {{ w.sName }}
  6387. <img
  6388. class="deleteImg1"
  6389. src="../../assets/evaEnglish.png"
  6390. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6391. alt
  6392. v-if="
  6393. (courseDetail &&
  6394. (courseDetail.userid == userid ||
  6395. (courseDetail.course_teacher &&
  6396. courseDetail.course_teacher.indexOf(
  6397. userid
  6398. ) != -1))) ||
  6399. w.aiCode || w.teacherCode
  6400. "
  6401. />
  6402. <img
  6403. class="deleteImg deleteImg2"
  6404. src="../../assets/deleteworks.png"
  6405. v-if="
  6406. w.userid == userid || tType == 1 || tType == 4
  6407. "
  6408. @click.stop="deleteWorks(w.wid)"
  6409. alt
  6410. />
  6411. </div>
  6412. </div>
  6413. </div>
  6414. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6415. 未提交
  6416. </div>
  6417. <div
  6418. class="noWorksS"
  6419. v-if="noWorksS && noWorksS[toolIndex].length"
  6420. >
  6421. <div
  6422. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6423. :key="sIndex"
  6424. class="noWorksName"
  6425. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6426. >
  6427. <el-tooltip
  6428. effect="dark"
  6429. :content="s.student"
  6430. placement="top"
  6431. >
  6432. <span>{{ s.student }}</span>
  6433. </el-tooltip>
  6434. </div>
  6435. </div>
  6436. </div>
  6437. <div
  6438. v-if="
  6439. tType &&
  6440. ((tType == 2 && sIsOpen == true) ||
  6441. tType == 1 ||
  6442. tType == 4) &&
  6443. tool.tool.indexOf(15) != -1
  6444. "
  6445. class="worksBox"
  6446. >
  6447. <div
  6448. class="zuoyeYulan"
  6449. v-if="
  6450. (worksStudent.length &&
  6451. worksStudent[toolIndex].length > 0) ||
  6452. (courseGroup.group && courseGroup.group.length)
  6453. "
  6454. >
  6455. <div class="worksTop">
  6456. <div>作业预览</div>
  6457. <div
  6458. class="corOpen"
  6459. @click="contract(toolIndex)"
  6460. v-if="
  6461. isCloseList[toolIndex].isCloseBoolean &&
  6462. isCloseList[toolIndex].isClose == 0
  6463. "
  6464. >
  6465. 折叠
  6466. </div>
  6467. <div
  6468. class="corOpen"
  6469. @click="contract(toolIndex)"
  6470. v-if="isCloseList[toolIndex].isClose == 1"
  6471. >
  6472. 展开
  6473. </div>
  6474. </div>
  6475. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6476. </div>
  6477. <div
  6478. class="group_workBox"
  6479. v-for="(g, gindex) in courseGroup.group"
  6480. :key="gindex"
  6481. >
  6482. <div class="group_box">
  6483. <div class="group_title">
  6484. <el-tooltip
  6485. class="item"
  6486. effect="light"
  6487. :content="g.name"
  6488. placement="top"
  6489. >
  6490. <div class="group_name">{{ g.name }}</div>
  6491. </el-tooltip>
  6492. </div>
  6493. <div
  6494. class="group_work"
  6495. v-if="
  6496. g.works &&
  6497. g.works.length &&
  6498. g.works[toolIndex].length
  6499. "
  6500. >
  6501. <div
  6502. class="works"
  6503. v-for="(w, wIndex) in g.works[toolIndex]"
  6504. :key="wIndex"
  6505. >
  6506. <div
  6507. class="workImg"
  6508. style="
  6509. border-radius: 15px;
  6510. box-shadow: 0px 0px 5px 5px #eee;
  6511. "
  6512. >
  6513. <div
  6514. class="answerBg"
  6515. style="border-radius: 15px 15px 0 0"
  6516. @click="
  6517. commentOther(w, toolIndex, wIndex, null, g.id)
  6518. "
  6519. >
  6520. <div class="answerContent">
  6521. {{ JSON.parse(w.works)[0].answer }}
  6522. </div>
  6523. <div
  6524. class="answerScore"
  6525. v-if="w.score"
  6526. @click.stop="openScore(w)"
  6527. :class="{
  6528. rightW:
  6529. w.userid == userid ||
  6530. tType == 1 ||
  6531. tType == 4
  6532. }"
  6533. >
  6534. {{ JSON.parse(w.score).wScore }}分
  6535. </div>
  6536. <div
  6537. class="answerScore"
  6538. @click.stop="openScore(w)"
  6539. v-else-if="
  6540. courseDetail.userid == userid &&
  6541. courseDetail.state != 6 &&
  6542. chapInfoList[courseType].chapterInfo[0]
  6543. .taskJson[taskCount].eList &&
  6544. chapInfoList[courseType].chapterInfo[0]
  6545. .taskJson[taskCount].eList.length
  6546. "
  6547. :class="{
  6548. rightW:
  6549. w.userid == userid ||
  6550. tType == 1 ||
  6551. tType == 4
  6552. }"
  6553. >
  6554. 评分
  6555. </div>
  6556. <!-- <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"> -->
  6557. <div
  6558. v-else-if="
  6559. (courseDetail.userid == userid ||
  6560. (courseDetail.course_teacher &&
  6561. courseDetail.course_teacher.indexOf(
  6562. userid
  6563. ) != -1) ||
  6564. (w.userid == userid && sIsOpen)) &&
  6565. courseDetail.state == 6 &&
  6566. ((chapInfoList[courseType].chapterInfo[0]
  6567. .taskJson[taskCount].eList &&
  6568. chapInfoList[courseType].chapterInfo[0]
  6569. .taskJson[taskCount].eList.length) ||
  6570. (tool.eList && tool.eList.length))
  6571. "
  6572. >
  6573. <el-popover
  6574. placement="top"
  6575. width="318"
  6576. :disabled="
  6577. AIloading[toolIndex][wIndex].loading
  6578. "
  6579. trigger="hover"
  6580. >
  6581. <markScore
  6582. :loading="
  6583. AIloading[toolIndex][wIndex].loading
  6584. "
  6585. :markScoreVisible="markScoreVisible"
  6586. :ref="`markSco${toolIndex}${wIndex}`"
  6587. @updateLoading="updateLoading"
  6588. @updateDocSco="updateDocSco"
  6589. @refreshOther="refreshOther"
  6590. @markScoreDig="markScoreDig"
  6591. :tool="tool"
  6592. :wIndex="wIndex"
  6593. :scoCon="w"
  6594. :toolIndex="toolIndex"
  6595. :key="refreshKey"
  6596. :stage="courseType"
  6597. :task="taskCount"
  6598. :scoTit="
  6599. chapInfoList[courseType].chapterInfo[0]
  6600. .taskJson[taskCount].eList
  6601. "
  6602. >
  6603. </markScore>
  6604. <div
  6605. class="answerScore"
  6606. @click.stop="
  6607. markScoreDig2(
  6608. w.sName,
  6609. worksStudent,
  6610. w.userid,
  6611. toolIndex,
  6612. chapInfoList[courseType]
  6613. .chapterInfo[0].taskJson[taskCount]
  6614. .eList,
  6615. AIloading[toolIndex][wIndex].loading,
  6616. tool
  6617. )
  6618. "
  6619. slot="reference"
  6620. :class="{
  6621. rightW:
  6622. w.userid == userid ||
  6623. tType == 1 ||
  6624. tType == 4 ||
  6625. w.ateacher == userid
  6626. }"
  6627. >
  6628. <span
  6629. v-if="AIloading[toolIndex][wIndex].sco"
  6630. >
  6631. {{
  6632. AIloading[toolIndex][wIndex].loading
  6633. ? "评分中"
  6634. : AIloading[toolIndex][wIndex].sco +
  6635. "分"
  6636. }}
  6637. </span>
  6638. <span v-else>
  6639. {{
  6640. AIloading[toolIndex][wIndex].loading
  6641. ? "评分中"
  6642. : "评分"
  6643. }}
  6644. </span>
  6645. </div>
  6646. </el-popover>
  6647. </div>
  6648. <img
  6649. class="deleteImg"
  6650. src="../../assets/deleteworks.png"
  6651. v-if="
  6652. w.userid == userid ||
  6653. tType == 1 ||
  6654. tType == 4
  6655. "
  6656. @click.stop="deleteWorks(w.wid)"
  6657. alt
  6658. />
  6659. </div>
  6660. <div class="comment">
  6661. <div class="worksName">
  6662. <div>{{ w.sName }}</div>
  6663. </div>
  6664. <div class="commentList">
  6665. <div
  6666. class="commentImg"
  6667. @click="
  6668. isLikes(
  6669. w.wid,
  6670. userid,
  6671. 1,
  6672. null,
  6673. w.isLikes,
  6674. w.sName
  6675. )
  6676. "
  6677. >
  6678. <img
  6679. :src="w.isLikes == true ? likes : noLikes"
  6680. alt=""
  6681. />
  6682. </div>
  6683. <div>{{ w.likesCount }}</div>
  6684. </div>
  6685. <div
  6686. class="commentList"
  6687. style="margin-right: 15px"
  6688. >
  6689. <div
  6690. class="commentImg"
  6691. @click="
  6692. commentOther(
  6693. w,
  6694. toolIndex,
  6695. wIndex,
  6696. null,
  6697. g.id
  6698. )
  6699. "
  6700. >
  6701. <img
  6702. src="../../assets/icon/comment/comment.png"
  6703. alt=""
  6704. />
  6705. </div>
  6706. <div>{{ w.commentCount }}</div>
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. </div>
  6712. <div class="group_work" v-else>暂无提交作业</div>
  6713. </div>
  6714. </div>
  6715. <div
  6716. :id="'tool-' + toolIndex"
  6717. :style="{
  6718. height:
  6719. isCloseList[toolIndex].isClose == 1
  6720. ? retrnToolHeight('tool-' + toolIndex)
  6721. : 'auto',
  6722. overflow:
  6723. isCloseList[toolIndex].isClose == 1
  6724. ? 'hidden'
  6725. : 'unset'
  6726. }"
  6727. class="worksDetailBox"
  6728. v-if="
  6729. worksStudent.length &&
  6730. worksStudent[toolIndex].length > 0
  6731. "
  6732. >
  6733. <div
  6734. class="works"
  6735. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6736. :key="wIndex"
  6737. >
  6738. <div
  6739. class="workImg"
  6740. style="
  6741. border-radius: 15px;
  6742. box-shadow: 0px 0px 5px 5px #eee;
  6743. "
  6744. >
  6745. <!-- <img
  6746. src="../../assets/icon/works/noImg.png"
  6747. @click="openTools(15, toolIndex, taskCount, w.works)"
  6748. alt=""
  6749. />-->
  6750. <div
  6751. class="answerBg"
  6752. style="border-radius: 15px 15px 0 0"
  6753. @click="commentOther(w, toolIndex, wIndex)"
  6754. >
  6755. <!-- <div>{{ w.sName }}</div> -->
  6756. <div class="answerContent">
  6757. {{ JSON.parse(w.works)[0].answer }}
  6758. </div>
  6759. <div
  6760. class="answerScore"
  6761. v-if="w.score"
  6762. @click.stop="openScore(w)"
  6763. :class="{
  6764. rightW:
  6765. w.userid == userid || tType == 1 || tType == 4
  6766. }"
  6767. >
  6768. {{ JSON.parse(w.score).wScore }}分
  6769. </div>
  6770. <div
  6771. class="answerScore"
  6772. @click.stop="openScore(w)"
  6773. v-else-if="
  6774. courseDetail.userid == userid &&
  6775. courseDetail.state != 6 &&
  6776. chapInfoList[courseType].chapterInfo[0]
  6777. .taskJson[taskCount].eList &&
  6778. chapInfoList[courseType].chapterInfo[0]
  6779. .taskJson[taskCount].eList.length
  6780. "
  6781. :class="{
  6782. rightW:
  6783. w.userid == userid || tType == 1 || tType == 4
  6784. }"
  6785. >
  6786. 评分
  6787. </div>
  6788. <!-- <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"> -->
  6789. <div
  6790. v-else-if="
  6791. (courseDetail.userid == userid ||
  6792. (courseDetail.course_teacher &&
  6793. courseDetail.course_teacher.indexOf(
  6794. userid
  6795. ) != -1) ||
  6796. (w.userid == userid && sIsOpen)) &&
  6797. courseDetail.state == 6 &&
  6798. ((chapInfoList[courseType].chapterInfo[0]
  6799. .taskJson[taskCount].eList &&
  6800. chapInfoList[courseType].chapterInfo[0]
  6801. .taskJson[taskCount].eList.length) ||
  6802. (tool.eList && tool.eList.length))
  6803. "
  6804. >
  6805. <el-popover
  6806. placement="top"
  6807. width="318"
  6808. :disabled="AIloading[toolIndex][wIndex].loading"
  6809. trigger="hover"
  6810. >
  6811. <markScore
  6812. :loading="
  6813. AIloading[toolIndex][wIndex].loading
  6814. "
  6815. :markScoreVisible="markScoreVisible"
  6816. :ref="`markSco${toolIndex}${wIndex}`"
  6817. @updateLoading="updateLoading"
  6818. @updateDocSco="updateDocSco"
  6819. @refreshOther="refreshOther"
  6820. @markScoreDig="markScoreDig"
  6821. :tool="tool"
  6822. :wIndex="wIndex"
  6823. :scoCon="w"
  6824. :toolIndex="toolIndex"
  6825. :key="refreshKey"
  6826. :stage="courseType"
  6827. :task="taskCount"
  6828. :scoTit="
  6829. chapInfoList[courseType].chapterInfo[0]
  6830. .taskJson[taskCount].eList
  6831. "
  6832. >
  6833. </markScore>
  6834. <div
  6835. class="answerScore"
  6836. @click.stop="
  6837. markScoreDig2(
  6838. w.sName,
  6839. worksStudent,
  6840. w.userid,
  6841. toolIndex,
  6842. chapInfoList[courseType].chapterInfo[0]
  6843. .taskJson[taskCount].eList,
  6844. AIloading[toolIndex][wIndex].loading,
  6845. tool
  6846. )
  6847. "
  6848. slot="reference"
  6849. :class="{
  6850. rightW:
  6851. w.userid == userid ||
  6852. tType == 1 ||
  6853. tType == 4 ||
  6854. w.ateacher == userid
  6855. }"
  6856. >
  6857. <span v-if="AIloading[toolIndex][wIndex].sco">
  6858. {{
  6859. AIloading[toolIndex][wIndex].loading
  6860. ? "评分中"
  6861. : AIloading[toolIndex][wIndex].sco +
  6862. "分"
  6863. }}
  6864. </span>
  6865. <span v-else>
  6866. {{
  6867. AIloading[toolIndex][wIndex].loading
  6868. ? "评分中"
  6869. : "评分"
  6870. }}
  6871. </span>
  6872. </div>
  6873. </el-popover>
  6874. </div>
  6875. <img
  6876. class="deleteImg"
  6877. src="../../assets/deleteworks.png"
  6878. v-if="
  6879. w.userid == userid || tType == 1 || tType == 4
  6880. "
  6881. @click.stop="deleteWorks(w.wid)"
  6882. alt
  6883. />
  6884. </div>
  6885. <div class="comment">
  6886. <div class="worksName">
  6887. <div>{{ w.sName }}</div>
  6888. </div>
  6889. <div class="commentList">
  6890. <div
  6891. class="commentImg"
  6892. @click="
  6893. isLikes(
  6894. w.wid,
  6895. userid,
  6896. 1,
  6897. null,
  6898. w.isLikes,
  6899. w.sName
  6900. )
  6901. "
  6902. >
  6903. <img
  6904. :src="w.isLikes == true ? likes : noLikes"
  6905. alt=""
  6906. />
  6907. </div>
  6908. <div>{{ w.likesCount }}</div>
  6909. </div>
  6910. <div class="commentList" style="margin-right: 15px">
  6911. <div
  6912. class="commentImg"
  6913. @click="commentOther(w, toolIndex, wIndex)"
  6914. >
  6915. <img
  6916. src="../../assets/icon/comment/comment.png"
  6917. alt=""
  6918. />
  6919. </div>
  6920. <div>{{ w.commentCount }}</div>
  6921. </div>
  6922. </div>
  6923. </div>
  6924. </div>
  6925. </div>
  6926. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6927. 未提交
  6928. </div>
  6929. <div
  6930. class="noWorksS"
  6931. v-if="noWorksS && noWorksS[toolIndex].length"
  6932. >
  6933. <div
  6934. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6935. :key="sIndex"
  6936. class="noWorksName"
  6937. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6938. >
  6939. <el-tooltip
  6940. effect="dark"
  6941. :content="s.student"
  6942. placement="top"
  6943. >
  6944. <span>{{ s.student }}</span>
  6945. </el-tooltip>
  6946. </div>
  6947. </div>
  6948. </div>
  6949. <div
  6950. v-if="
  6951. tType &&
  6952. ((tType == 2 && sIsOpen == true) ||
  6953. tType == 1 ||
  6954. tType == 4) &&
  6955. tool.tool.indexOf(1) != -1
  6956. "
  6957. class="worksBox"
  6958. >
  6959. <div
  6960. class="zuoyeYulan"
  6961. style="display: flex;justify-content: space-between;align-items: center;"
  6962. v-if="
  6963. (worksStudent.length &&
  6964. worksStudent[toolIndex].length > 0) ||
  6965. (courseGroup.group && courseGroup.group.length)
  6966. "
  6967. >
  6968. <div class="worksTop">
  6969. <div>作业预览</div>
  6970. <div
  6971. class="corOpen"
  6972. @click="contract(toolIndex)"
  6973. v-if="
  6974. isCloseList[toolIndex].isCloseBoolean &&
  6975. isCloseList[toolIndex].isClose == 0
  6976. "
  6977. >
  6978. 折叠
  6979. </div>
  6980. <div
  6981. class="corOpen"
  6982. @click="contract(toolIndex)"
  6983. v-if="isCloseList[toolIndex].isClose == 1"
  6984. >
  6985. 展开
  6986. </div>
  6987. </div>
  6988. <div
  6989. style="display: flex;"
  6990. v-if="
  6991. (courseDetail.userid == userid ||
  6992. (courseDetail.course_teacher &&
  6993. courseDetail.course_teacher.indexOf(userid) !=
  6994. -1)) &&
  6995. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6996. taskCount
  6997. ].eList &&
  6998. chapInfoList[courseType].chapterInfo[0].taskJson[
  6999. taskCount
  7000. ].eList.length) ||
  7001. (tool.eList && tool.eList.length)) &&
  7002. courseDetail.state == 6
  7003. "
  7004. >
  7005. <div
  7006. style="margin-right:10px"
  7007. class="ScoreBtn"
  7008. @click="
  7009. resetLoopEva(
  7010. worksStudent[toolIndex],
  7011. chapInfoList[courseType].chapterInfo[0].taskJson[
  7012. taskCount
  7013. ].eList,
  7014. courseType,
  7015. taskCount,
  7016. toolIndex,
  7017. tool.toolDetail,
  7018. worksStudent
  7019. )
  7020. "
  7021. >
  7022. 一键重置
  7023. </div>
  7024. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7025. <img
  7026. src="../../assets/icon/newIcons/rootImg.png"
  7027. alt=""
  7028. />
  7029. AI评分
  7030. </div>
  7031. <div
  7032. class="ScoreBtn"
  7033. v-else-if="!loopLoading[toolIndex].loading"
  7034. @click="
  7035. loopEva(
  7036. worksStudent[toolIndex],
  7037. chapInfoList[courseType].chapterInfo[0].taskJson[
  7038. taskCount
  7039. ].eList,
  7040. courseType,
  7041. taskCount,
  7042. toolIndex,
  7043. tool.toolDetail,
  7044. chapInfoList[courseType].chapterInfo[0].taskJson[
  7045. taskCount
  7046. ].taskDetail,
  7047. tool
  7048. )
  7049. "
  7050. >
  7051. <img
  7052. src="../../assets/icon/newIcons/rootImg.png"
  7053. alt=""
  7054. />
  7055. AI评分
  7056. </div>
  7057. <div class="ScoreBtn" v-else>
  7058. <img
  7059. src="../../assets/icon/newIcons/rootImg.png"
  7060. alt=""
  7061. />
  7062. 正在评分
  7063. </div>
  7064. </div>
  7065. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7066. </div>
  7067. <div
  7068. class="group_workBox"
  7069. v-for="(g, gindex) in courseGroup.group"
  7070. :key="gindex"
  7071. >
  7072. <div class="group_box">
  7073. <div class="group_title">
  7074. <el-tooltip
  7075. class="item"
  7076. effect="light"
  7077. :content="g.name"
  7078. placement="top"
  7079. >
  7080. <div class="group_name">{{ g.name }}</div>
  7081. </el-tooltip>
  7082. </div>
  7083. <div
  7084. class="group_work"
  7085. v-if="
  7086. g.works &&
  7087. g.works.length &&
  7088. g.works[toolIndex].length
  7089. "
  7090. >
  7091. <div
  7092. class="works"
  7093. style="
  7094. width: 200px;
  7095. height: 140px;
  7096. margin: 10px 10px 10px 0;
  7097. border-radius: 15px;
  7098. box-shadow: 0 0 6px 1px #dfdada;
  7099. "
  7100. v-for="(w, wIndex) in g.works[toolIndex]"
  7101. :key="wIndex"
  7102. :class="w.type == 1 ? 'isTypeOne' : ''"
  7103. >
  7104. <div class="workImg">
  7105. <img
  7106. :src="w.works"
  7107. @click="previewImg(w.works, w)"
  7108. alt
  7109. />
  7110. <div
  7111. class="answerScore"
  7112. v-if="w.score"
  7113. @click.stop="openScore(w)"
  7114. :class="{
  7115. rightW:
  7116. w.userid == userid ||
  7117. tType == 1 ||
  7118. tType == 4
  7119. }"
  7120. >
  7121. {{ JSON.parse(w.score).wScore }}分
  7122. </div>
  7123. <div
  7124. class="answerScore"
  7125. @click.stop="openScore(w)"
  7126. v-else-if="courseDetail.userid == userid"
  7127. :class="{
  7128. rightW:
  7129. w.userid == userid ||
  7130. tType == 1 ||
  7131. tType == 4
  7132. }"
  7133. >
  7134. 评分
  7135. </div>
  7136. <img
  7137. class="deleteImg"
  7138. src="../../assets/deleteworks.png"
  7139. v-if="
  7140. w.userid == userid || tType == 1 || tType == 4
  7141. "
  7142. @click.stop="deleteWorks(w.wid)"
  7143. alt
  7144. />
  7145. </div>
  7146. <div class="comment" style="min-width: 200px">
  7147. <div class="worksName">
  7148. <div>{{ w.sName }}</div>
  7149. </div>
  7150. <div class="commentList">
  7151. <div class="commentList">
  7152. <div
  7153. class="commentImg"
  7154. @click="
  7155. isLikes(
  7156. w.wid,
  7157. userid,
  7158. 1,
  7159. null,
  7160. w.isLikes,
  7161. w.sName
  7162. )
  7163. "
  7164. >
  7165. <img
  7166. :src="w.isLikes == true ? likes : noLikes"
  7167. alt=""
  7168. />
  7169. </div>
  7170. <div>{{ w.likesCount }}</div>
  7171. </div>
  7172. <div
  7173. class="commentList"
  7174. style="margin-right: 15px"
  7175. >
  7176. <div
  7177. class="commentImg"
  7178. @click="
  7179. commentOther(
  7180. w,
  7181. toolIndex,
  7182. wIndex,
  7183. null,
  7184. g.id
  7185. )
  7186. "
  7187. >
  7188. <img
  7189. src="../../assets/icon/comment/comment.png"
  7190. alt=""
  7191. />
  7192. </div>
  7193. <div>{{ w.commentCount }}</div>
  7194. </div>
  7195. </div>
  7196. </div>
  7197. </div>
  7198. </div>
  7199. <div class="group_work" v-else>暂无提交作业</div>
  7200. </div>
  7201. </div>
  7202. <div
  7203. :id="'tool-' + toolIndex"
  7204. :style="{
  7205. height:
  7206. isCloseList[toolIndex].isClose == 1
  7207. ? retrnToolHeight('tool-' + toolIndex)
  7208. : 'auto',
  7209. overflow:
  7210. isCloseList[toolIndex].isClose == 1
  7211. ? 'hidden'
  7212. : 'unset'
  7213. }"
  7214. class="worksDetailBox"
  7215. v-if="
  7216. worksStudent.length &&
  7217. worksStudent[toolIndex].length > 0
  7218. "
  7219. >
  7220. <div
  7221. class="works"
  7222. style="
  7223. width: 200px;
  7224. height: 140px;
  7225. margin: 10px 10px 10px 0;
  7226. border-radius: 15px;
  7227. box-shadow: 0 0 6px 1px #dfdada;
  7228. "
  7229. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7230. :key="wIndex"
  7231. >
  7232. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7233. <div class="workImg">
  7234. <img
  7235. :src="w.works"
  7236. @click="previewImg(w.works, w)"
  7237. alt
  7238. />
  7239. <div
  7240. class="answerScore"
  7241. v-if="w.score"
  7242. @click.stop="openScore(w)"
  7243. :class="{
  7244. rightW:
  7245. w.userid == userid || tType == 1 || tType == 4
  7246. }"
  7247. >
  7248. {{ JSON.parse(w.score).wScore }}分
  7249. </div>
  7250. <div
  7251. class="answerScore"
  7252. @click.stop="openScore(w)"
  7253. v-else-if="
  7254. courseDetail.userid == userid &&
  7255. courseDetail.state != 6 &&
  7256. chapInfoList[courseType].chapterInfo[0]
  7257. .taskJson[taskCount].eList &&
  7258. chapInfoList[courseType].chapterInfo[0]
  7259. .taskJson[taskCount].eList.length
  7260. "
  7261. :class="{
  7262. rightW:
  7263. w.userid == userid || tType == 1 || tType == 4
  7264. }"
  7265. >
  7266. 评分
  7267. </div>
  7268. <div
  7269. v-else-if="
  7270. (courseDetail.userid == userid ||
  7271. (courseDetail.course_teacher &&
  7272. courseDetail.course_teacher.indexOf(userid) !=
  7273. -1) ||
  7274. (courseDetail.course_teacher &&
  7275. courseDetail.course_teacher.indexOf(userid) !=
  7276. -1) ||
  7277. (courseDetail.course_teacher &&
  7278. courseDetail.course_teacher.indexOf(userid) !=
  7279. -1) ||
  7280. (w.userid == userid && sIsOpen)) &&
  7281. courseDetail.state == 6 &&
  7282. ((chapInfoList[courseType].chapterInfo[0]
  7283. .taskJson[taskCount].eList &&
  7284. chapInfoList[courseType].chapterInfo[0]
  7285. .taskJson[taskCount].eList.length) ||
  7286. (tool.eList && tool.eList.length))
  7287. "
  7288. >
  7289. <el-popover
  7290. placement="top"
  7291. width="318"
  7292. :disabled="AIloading[toolIndex][wIndex].loading"
  7293. trigger="hover"
  7294. >
  7295. <markScore
  7296. :loading="AIloading[toolIndex][wIndex].loading"
  7297. :markScoreVisible="markScoreVisible"
  7298. :ref="`markSco${toolIndex}${wIndex}`"
  7299. @updateLoading="updateLoading"
  7300. @updateDocSco="updateDocSco"
  7301. @refreshOther="refreshOther"
  7302. @markScoreDig="markScoreDig"
  7303. :tool="tool"
  7304. :wIndex="wIndex"
  7305. :scoCon="w"
  7306. :toolIndex="toolIndex"
  7307. :key="refreshKey"
  7308. :stage="courseType"
  7309. :task="taskCount"
  7310. :scoTit="
  7311. chapInfoList[courseType].chapterInfo[0]
  7312. .taskJson[taskCount].eList
  7313. "
  7314. >
  7315. </markScore>
  7316. <div
  7317. class="answerScore"
  7318. @click="
  7319. markScoreDig2(
  7320. w.sName,
  7321. worksStudent,
  7322. w.userid,
  7323. toolIndex,
  7324. chapInfoList[courseType].chapterInfo[0]
  7325. .taskJson[taskCount].eList,
  7326. AIloading[toolIndex][wIndex].loading,
  7327. tool
  7328. )
  7329. "
  7330. slot="reference"
  7331. :class="{
  7332. rightW:
  7333. w.userid == userid ||
  7334. tType == 1 ||
  7335. tType == 4 ||
  7336. w.ateacher == userid
  7337. }"
  7338. >
  7339. <span v-if="AIloading[toolIndex][wIndex].sco">
  7340. {{
  7341. AIloading[toolIndex][wIndex].loading
  7342. ? "评分中"
  7343. : AIloading[toolIndex][wIndex].sco + "分"
  7344. }}
  7345. </span>
  7346. <span v-else>
  7347. {{
  7348. AIloading[toolIndex][wIndex].loading
  7349. ? "评分中"
  7350. : "评分"
  7351. }}
  7352. </span>
  7353. </div>
  7354. </el-popover>
  7355. </div>
  7356. <img
  7357. class="deleteImg"
  7358. src="../../assets/deleteworks.png"
  7359. v-if="
  7360. w.userid == userid || tType == 1 || tType == 4
  7361. "
  7362. @click.stop="deleteWorks(w.wid)"
  7363. alt
  7364. />
  7365. </div>
  7366. <div class="comment" style="min-width: 200px">
  7367. <div class="worksName">
  7368. <div>{{ w.sName }}</div>
  7369. </div>
  7370. <div class="commentList">
  7371. <div class="commentList">
  7372. <div
  7373. class="commentImg"
  7374. @click="
  7375. isLikes(
  7376. w.wid,
  7377. userid,
  7378. 1,
  7379. null,
  7380. w.isLikes,
  7381. w.sName
  7382. )
  7383. "
  7384. >
  7385. <img
  7386. :src="w.isLikes == true ? likes : noLikes"
  7387. alt=""
  7388. />
  7389. </div>
  7390. <div>{{ w.likesCount }}</div>
  7391. </div>
  7392. <div class="commentList" style="margin-right: 15px">
  7393. <div
  7394. class="commentImg"
  7395. @click="commentOther(w, toolIndex, wIndex)"
  7396. >
  7397. <img
  7398. src="../../assets/icon/comment/comment.png"
  7399. alt=""
  7400. />
  7401. </div>
  7402. <div>{{ w.commentCount }}</div>
  7403. </div>
  7404. </div>
  7405. </div>
  7406. </div>
  7407. </div>
  7408. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7409. 未提交
  7410. </div>
  7411. <div
  7412. class="noWorksS"
  7413. v-if="noWorksS && noWorksS[toolIndex].length"
  7414. >
  7415. <div
  7416. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7417. :key="sIndex"
  7418. class="noWorksName"
  7419. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7420. >
  7421. <el-tooltip
  7422. effect="dark"
  7423. :content="s.student"
  7424. placement="top"
  7425. >
  7426. <span>{{ s.student }}</span>
  7427. </el-tooltip>
  7428. </div>
  7429. </div>
  7430. </div>
  7431. <div
  7432. v-if="
  7433. tType &&
  7434. ((tType == 2 && sIsOpen == true) ||
  7435. tType == 1 ||
  7436. tType == 4) &&
  7437. tool.tool.indexOf(3) != -1
  7438. "
  7439. class="worksBox"
  7440. >
  7441. <div
  7442. class="zuoyeYulan"
  7443. style="display: flex;justify-content: space-between;align-items: center;"
  7444. v-if="
  7445. (worksStudent.length &&
  7446. worksStudent[toolIndex].length > 0) ||
  7447. (courseGroup.group && courseGroup.group.length)
  7448. "
  7449. >
  7450. <div class="worksTop">
  7451. <div>作业预览</div>
  7452. <div
  7453. class="corOpen"
  7454. @click="contract(toolIndex)"
  7455. v-if="
  7456. isCloseList[toolIndex].isCloseBoolean &&
  7457. isCloseList[toolIndex].isClose == 0
  7458. "
  7459. >
  7460. 折叠
  7461. </div>
  7462. <div
  7463. class="corOpen"
  7464. @click="contract(toolIndex)"
  7465. v-if="isCloseList[toolIndex].isClose == 1"
  7466. >
  7467. 展开
  7468. </div>
  7469. </div>
  7470. <div
  7471. style="display: flex;"
  7472. v-if="
  7473. (courseDetail.userid == userid ||
  7474. (courseDetail.course_teacher &&
  7475. courseDetail.course_teacher.indexOf(userid) !=
  7476. -1)) &&
  7477. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7478. taskCount
  7479. ].eList &&
  7480. chapInfoList[courseType].chapterInfo[0].taskJson[
  7481. taskCount
  7482. ].eList.length) ||
  7483. (tool.eList && tool.eList.length)) &&
  7484. courseDetail.state == 6
  7485. "
  7486. >
  7487. <div
  7488. style="margin-right:10px"
  7489. class="ScoreBtn"
  7490. @click="
  7491. resetLoopEva(
  7492. worksStudent[toolIndex],
  7493. chapInfoList[courseType].chapterInfo[0].taskJson[
  7494. taskCount
  7495. ].eList,
  7496. courseType,
  7497. taskCount,
  7498. toolIndex,
  7499. tool.toolDetail,
  7500. worksStudent
  7501. )
  7502. "
  7503. >
  7504. 一键重置
  7505. </div>
  7506. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7507. <img
  7508. src="../../assets/icon/newIcons/rootImg.png"
  7509. alt=""
  7510. />
  7511. AI评分
  7512. </div>
  7513. <div
  7514. class="ScoreBtn"
  7515. v-else-if="!loopLoading[toolIndex].loading"
  7516. @click="
  7517. loopEva(
  7518. worksStudent[toolIndex],
  7519. chapInfoList[courseType].chapterInfo[0].taskJson[
  7520. taskCount
  7521. ].eList,
  7522. courseType,
  7523. taskCount,
  7524. toolIndex,
  7525. tool.toolDetail,
  7526. chapInfoList[courseType].chapterInfo[0].taskJson[
  7527. taskCount
  7528. ].taskDetail,
  7529. tool
  7530. )
  7531. "
  7532. >
  7533. <img
  7534. src="../../assets/icon/newIcons/rootImg.png"
  7535. alt=""
  7536. />
  7537. AI评分
  7538. </div>
  7539. <div class="ScoreBtn" v-else>
  7540. <img
  7541. src="../../assets/icon/newIcons/rootImg.png"
  7542. alt=""
  7543. />
  7544. 正在评分
  7545. </div>
  7546. </div>
  7547. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7548. </div>
  7549. <div
  7550. class="group_workBox"
  7551. v-for="(g, gindex) in courseGroup.group"
  7552. :key="gindex"
  7553. >
  7554. <div class="group_box">
  7555. <div class="group_title">
  7556. <el-tooltip
  7557. class="item"
  7558. effect="light"
  7559. :content="g.name"
  7560. placement="top"
  7561. >
  7562. <div class="group_name">{{ g.name }}</div>
  7563. </el-tooltip>
  7564. </div>
  7565. <div
  7566. class="group_work"
  7567. v-if="
  7568. g.works &&
  7569. g.works.length &&
  7570. g.works[toolIndex].length
  7571. "
  7572. >
  7573. <div
  7574. class="works"
  7575. style="
  7576. width: 200px;
  7577. height: 140px;
  7578. margin: 10px 10px 10px 0;
  7579. border-radius: 15px;
  7580. box-shadow: 0 0 6px 1px #dfdada;
  7581. "
  7582. v-for="(w, wIndex) in g.works[toolIndex]"
  7583. :key="wIndex"
  7584. :class="w.type == 1 ? 'isTypeOne' : ''"
  7585. >
  7586. <div class="workImg">
  7587. <img
  7588. :src="w.works"
  7589. @click="previewImg(w.works, w)"
  7590. alt
  7591. />
  7592. <div
  7593. class="answerScore"
  7594. v-if="w.score"
  7595. @click.stop="openScore(w)"
  7596. :class="{
  7597. rightW:
  7598. w.userid == userid ||
  7599. tType == 1 ||
  7600. tType == 4
  7601. }"
  7602. >
  7603. {{ JSON.parse(w.score).wScore }}分
  7604. </div>
  7605. <div
  7606. class="answerScore"
  7607. @click.stop="openScore(w)"
  7608. v-else-if="courseDetail.userid == userid"
  7609. :class="{
  7610. rightW:
  7611. w.userid == userid ||
  7612. tType == 1 ||
  7613. tType == 4
  7614. }"
  7615. >
  7616. 评分
  7617. </div>
  7618. <img
  7619. class="deleteImg"
  7620. src="../../assets/deleteworks.png"
  7621. v-if="
  7622. w.userid == userid || tType == 1 || tType == 4
  7623. "
  7624. @click.stop="deleteWorks(w.wid)"
  7625. alt
  7626. />
  7627. </div>
  7628. <div class="comment" style="min-width: 200px">
  7629. <div class="worksName">
  7630. <div>{{ w.sName }}</div>
  7631. </div>
  7632. <div class="commentList">
  7633. <div class="commentList">
  7634. <div
  7635. class="commentImg"
  7636. @click="
  7637. isLikes(
  7638. w.wid,
  7639. userid,
  7640. 1,
  7641. null,
  7642. w.isLikes,
  7643. w.sName
  7644. )
  7645. "
  7646. >
  7647. <img
  7648. :src="w.isLikes == true ? likes : noLikes"
  7649. alt=""
  7650. />
  7651. </div>
  7652. <div>{{ w.likesCount }}</div>
  7653. </div>
  7654. <div
  7655. class="commentList"
  7656. style="margin-right: 15px"
  7657. >
  7658. <div
  7659. class="commentImg"
  7660. @click="
  7661. commentOther(
  7662. w,
  7663. toolIndex,
  7664. wIndex,
  7665. null,
  7666. g.id
  7667. )
  7668. "
  7669. >
  7670. <img
  7671. src="../../assets/icon/comment/comment.png"
  7672. alt=""
  7673. />
  7674. </div>
  7675. <div>{{ w.commentCount }}</div>
  7676. </div>
  7677. </div>
  7678. </div>
  7679. </div>
  7680. </div>
  7681. <div class="group_work" v-else>暂无提交作业</div>
  7682. </div>
  7683. </div>
  7684. <div
  7685. :id="'tool-' + toolIndex"
  7686. :style="{
  7687. height:
  7688. isCloseList[toolIndex].isClose == 1
  7689. ? retrnToolHeight('tool-' + toolIndex)
  7690. : 'auto',
  7691. overflow:
  7692. isCloseList[toolIndex].isClose == 1
  7693. ? 'hidden'
  7694. : 'unset'
  7695. }"
  7696. class="worksDetailBox"
  7697. v-if="
  7698. worksStudent.length &&
  7699. worksStudent[toolIndex].length > 0
  7700. "
  7701. >
  7702. <div
  7703. class="works"
  7704. style="
  7705. width: 200px;
  7706. height: 140px;
  7707. margin: 10px 10px 10px 0;
  7708. border-radius: 15px;
  7709. box-shadow: 0 0 6px 1px #dfdada;
  7710. "
  7711. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7712. :key="wIndex"
  7713. >
  7714. <!-- @click="previewImg(w.works)" -->
  7715. <div class="workImg">
  7716. <img
  7717. :src="w.works"
  7718. @click="previewImg(w.works, w)"
  7719. alt
  7720. />
  7721. <div
  7722. class="answerScore"
  7723. v-if="w.score"
  7724. @click.stop="openScore(w)"
  7725. :class="{
  7726. rightW:
  7727. w.userid == userid || tType == 1 || tType == 4
  7728. }"
  7729. >
  7730. {{ JSON.parse(w.score).wScore }}分
  7731. </div>
  7732. <div
  7733. class="answerScore"
  7734. @click.stop="openScore(w)"
  7735. v-else-if="
  7736. courseDetail.userid == userid &&
  7737. courseDetail.state != 6 &&
  7738. chapInfoList[courseType].chapterInfo[0]
  7739. .taskJson[taskCount].eList &&
  7740. chapInfoList[courseType].chapterInfo[0]
  7741. .taskJson[taskCount].eList.length
  7742. "
  7743. :class="{
  7744. rightW:
  7745. w.userid == userid || tType == 1 || tType == 4
  7746. }"
  7747. >
  7748. 评分
  7749. </div>
  7750. <!-- <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"> -->
  7751. <div
  7752. v-else-if="
  7753. (courseDetail.userid == userid ||
  7754. (courseDetail.course_teacher &&
  7755. courseDetail.course_teacher.indexOf(userid) !=
  7756. -1) ||
  7757. (w.userid == userid && sIsOpen)) &&
  7758. courseDetail.state == 6 &&
  7759. ((chapInfoList[courseType].chapterInfo[0]
  7760. .taskJson[taskCount].eList &&
  7761. chapInfoList[courseType].chapterInfo[0]
  7762. .taskJson[taskCount].eList.length) ||
  7763. (tool.eList && tool.eList.length))
  7764. "
  7765. >
  7766. <el-popover
  7767. placement="top"
  7768. width="318"
  7769. :disabled="AIloading[toolIndex][wIndex].loading"
  7770. trigger="hover"
  7771. >
  7772. <markScore
  7773. :loading="AIloading[toolIndex][wIndex].loading"
  7774. :markScoreVisible="markScoreVisible"
  7775. :ref="`markSco${toolIndex}${wIndex}`"
  7776. @updateLoading="updateLoading"
  7777. @updateDocSco="updateDocSco"
  7778. @refreshOther="refreshOther"
  7779. @markScoreDig="markScoreDig"
  7780. :tool="tool"
  7781. :wIndex="wIndex"
  7782. :scoCon="w"
  7783. :toolIndex="toolIndex"
  7784. :key="refreshKey"
  7785. :stage="courseType"
  7786. :task="taskCount"
  7787. :scoTit="
  7788. chapInfoList[courseType].chapterInfo[0]
  7789. .taskJson[taskCount].eList
  7790. "
  7791. >
  7792. </markScore>
  7793. <div
  7794. class="answerScore"
  7795. @click="
  7796. markScoreDig2(
  7797. w.sName,
  7798. worksStudent,
  7799. w.userid,
  7800. toolIndex,
  7801. chapInfoList[courseType].chapterInfo[0]
  7802. .taskJson[taskCount].eList,
  7803. AIloading[toolIndex][wIndex].loading,
  7804. tool
  7805. )
  7806. "
  7807. slot="reference"
  7808. :class="{
  7809. rightW:
  7810. w.userid == userid ||
  7811. tType == 1 ||
  7812. tType == 4 ||
  7813. w.ateacher == userid
  7814. }"
  7815. >
  7816. <span v-if="AIloading[toolIndex][wIndex].sco">
  7817. {{
  7818. AIloading[toolIndex][wIndex].loading
  7819. ? "评分中"
  7820. : AIloading[toolIndex][wIndex].sco + "分"
  7821. }}
  7822. </span>
  7823. <span v-else>
  7824. {{
  7825. AIloading[toolIndex][wIndex].loading
  7826. ? "评分中"
  7827. : "评分"
  7828. }}
  7829. </span>
  7830. </div>
  7831. </el-popover>
  7832. </div>
  7833. <img
  7834. class="deleteImg"
  7835. src="../../assets/deleteworks.png"
  7836. v-if="
  7837. w.userid == userid || tType == 1 || tType == 4
  7838. "
  7839. @click.stop="deleteWorks(w.wid)"
  7840. alt
  7841. />
  7842. </div>
  7843. <div class="comment" style="min-width: 200px">
  7844. <div class="worksName">
  7845. <div>{{ w.sName }}</div>
  7846. </div>
  7847. <div class="commentList">
  7848. <div class="commentList">
  7849. <div
  7850. class="commentImg"
  7851. @click="
  7852. isLikes(
  7853. w.wid,
  7854. userid,
  7855. 1,
  7856. null,
  7857. w.isLikes,
  7858. w.sName
  7859. )
  7860. "
  7861. >
  7862. <img
  7863. :src="w.isLikes == true ? likes : noLikes"
  7864. alt=""
  7865. />
  7866. </div>
  7867. <div>{{ w.likesCount }}</div>
  7868. </div>
  7869. <div class="commentList" style="margin-right: 15px">
  7870. <div
  7871. class="commentImg"
  7872. @click="commentOther(w, toolIndex, wIndex)"
  7873. >
  7874. <img
  7875. src="../../assets/icon/comment/comment.png"
  7876. alt=""
  7877. />
  7878. </div>
  7879. <div>{{ w.commentCount }}</div>
  7880. </div>
  7881. </div>
  7882. </div>
  7883. </div>
  7884. </div>
  7885. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7886. 未提交
  7887. </div>
  7888. <div
  7889. class="noWorksS"
  7890. v-if="noWorksS && noWorksS[toolIndex].length"
  7891. >
  7892. <div
  7893. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7894. :key="sIndex"
  7895. class="noWorksName"
  7896. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7897. >
  7898. <el-tooltip
  7899. effect="dark"
  7900. :content="s.student"
  7901. placement="top"
  7902. >
  7903. <span>{{ s.student }}</span>
  7904. </el-tooltip>
  7905. </div>
  7906. </div>
  7907. </div>
  7908. <div
  7909. v-if="
  7910. tType &&
  7911. ((tType == 2 && sIsOpen == true) ||
  7912. tType == 1 ||
  7913. tType == 4) &&
  7914. tool.tool.indexOf(6) != -1
  7915. "
  7916. class="worksBox"
  7917. >
  7918. <div
  7919. class="zuoyeYulan"
  7920. v-if="
  7921. (worksStudent.length &&
  7922. worksStudent[toolIndex].length > 0) ||
  7923. (courseGroup.group && courseGroup.group.length)
  7924. "
  7925. >
  7926. <div class="worksTop">
  7927. <div>作业预览</div>
  7928. <div
  7929. class="corOpen"
  7930. @click="contract(toolIndex)"
  7931. v-if="
  7932. isCloseList[toolIndex].isCloseBoolean &&
  7933. isCloseList[toolIndex].isClose == 0
  7934. "
  7935. >
  7936. 折叠
  7937. </div>
  7938. <div
  7939. class="corOpen"
  7940. @click="contract(toolIndex)"
  7941. v-if="isCloseList[toolIndex].isClose == 1"
  7942. >
  7943. 展开
  7944. </div>
  7945. </div>
  7946. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7947. </div>
  7948. <div
  7949. class="group_workBox"
  7950. v-for="(g, gindex) in courseGroup.group"
  7951. :key="gindex"
  7952. >
  7953. <div class="group_box">
  7954. <div class="group_title">
  7955. <el-tooltip
  7956. class="item"
  7957. effect="light"
  7958. :content="g.name"
  7959. placement="top"
  7960. >
  7961. <div class="group_name">{{ g.name }}</div>
  7962. </el-tooltip>
  7963. </div>
  7964. <div
  7965. class="group_work"
  7966. v-if="
  7967. g.works &&
  7968. g.works.length &&
  7969. g.works[toolIndex].length
  7970. "
  7971. >
  7972. <div
  7973. class="works"
  7974. style="
  7975. width: 200px;
  7976. height: 140px;
  7977. margin: 10px 10px 10px 0;
  7978. border-radius: 15px;
  7979. box-shadow: 0 0 6px 1px #dfdada;
  7980. "
  7981. v-for="(w, wIndex) in g.works[toolIndex]"
  7982. :key="wIndex"
  7983. :class="w.type == 1 ? 'isTypeOne' : ''"
  7984. >
  7985. <div class="workImg">
  7986. <img
  7987. :src="w.works"
  7988. @click="previewImg(w.works, w)"
  7989. alt
  7990. />
  7991. <div
  7992. class="answerScore"
  7993. v-if="w.score"
  7994. @click.stop="openScore(w)"
  7995. :class="{
  7996. rightW:
  7997. w.userid == userid ||
  7998. tType == 1 ||
  7999. tType == 4
  8000. }"
  8001. >
  8002. {{ JSON.parse(w.score).wScore }}分
  8003. </div>
  8004. <div
  8005. class="answerScore"
  8006. @click.stop="openScore(w)"
  8007. v-else-if="courseDetail.userid == userid"
  8008. :class="{
  8009. rightW:
  8010. w.userid == userid ||
  8011. tType == 1 ||
  8012. tType == 4
  8013. }"
  8014. >
  8015. 评分
  8016. </div>
  8017. <img
  8018. class="deleteImg"
  8019. src="../../assets/deleteworks.png"
  8020. v-if="
  8021. w.userid == userid || tType == 1 || tType == 4
  8022. "
  8023. @click.stop="deleteWorks(w.wid)"
  8024. alt
  8025. />
  8026. </div>
  8027. <div class="comment" style="min-width: 200px">
  8028. <div class="worksName">
  8029. <div>{{ w.sName }}</div>
  8030. </div>
  8031. <div class="commentList">
  8032. <div class="commentList">
  8033. <div
  8034. class="commentImg"
  8035. @click="
  8036. isLikes(
  8037. w.wid,
  8038. userid,
  8039. 1,
  8040. null,
  8041. w.isLikes,
  8042. w.sName
  8043. )
  8044. "
  8045. >
  8046. <img
  8047. :src="w.isLikes == true ? likes : noLikes"
  8048. alt=""
  8049. />
  8050. </div>
  8051. <div>{{ w.likesCount }}</div>
  8052. </div>
  8053. <div
  8054. class="commentList"
  8055. style="margin-right: 15px"
  8056. >
  8057. <div
  8058. class="commentImg"
  8059. @click="
  8060. commentOther(
  8061. w,
  8062. toolIndex,
  8063. wIndex,
  8064. null,
  8065. g.id
  8066. )
  8067. "
  8068. >
  8069. <img
  8070. src="../../assets/icon/comment/comment.png"
  8071. alt=""
  8072. />
  8073. </div>
  8074. <div>{{ w.commentCount }}</div>
  8075. </div>
  8076. </div>
  8077. </div>
  8078. </div>
  8079. </div>
  8080. <div class="group_work" v-else>暂无提交作业</div>
  8081. </div>
  8082. </div>
  8083. <div
  8084. :id="'tool-' + toolIndex"
  8085. :style="{
  8086. height:
  8087. isCloseList[toolIndex].isClose == 1
  8088. ? retrnToolHeight('tool-' + toolIndex)
  8089. : 'auto',
  8090. overflow:
  8091. isCloseList[toolIndex].isClose == 1
  8092. ? 'hidden'
  8093. : 'unset'
  8094. }"
  8095. class="worksDetailBox"
  8096. v-if="
  8097. worksStudent.length &&
  8098. worksStudent[toolIndex].length > 0
  8099. "
  8100. >
  8101. <div
  8102. class="works"
  8103. style="
  8104. width: 200px;
  8105. height: 140px;
  8106. margin: 10px 10px 10px 0;
  8107. border-radius: 15px;
  8108. box-shadow: 0 0 6px 1px #dfdada;
  8109. "
  8110. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8111. :key="wIndex"
  8112. >
  8113. <!-- @click="previewImg(w.works)" -->
  8114. <div class="workImg">
  8115. <img
  8116. :src="w.works"
  8117. @click="previewImg(w.works, w)"
  8118. alt
  8119. />
  8120. <div
  8121. class="answerScore"
  8122. v-if="w.score"
  8123. @click.stop="openScore(w)"
  8124. :class="{
  8125. rightW:
  8126. w.userid == userid || tType == 1 || tType == 4
  8127. }"
  8128. >
  8129. {{ JSON.parse(w.score).wScore }}分
  8130. </div>
  8131. <div
  8132. class="answerScore"
  8133. @click.stop="openScore(w)"
  8134. v-else-if="courseDetail.userid == userid"
  8135. :class="{
  8136. rightW:
  8137. w.userid == userid || tType == 1 || tType == 4
  8138. }"
  8139. >
  8140. 评分
  8141. </div>
  8142. <img
  8143. class="deleteImg"
  8144. src="../../assets/deleteworks.png"
  8145. v-if="
  8146. w.userid == userid || tType == 1 || tType == 4
  8147. "
  8148. @click.stop="deleteWorks(w.wid)"
  8149. alt
  8150. />
  8151. </div>
  8152. <div class="comment" style="min-width: 200px">
  8153. <div class="worksName">
  8154. <div>{{ w.sName }}</div>
  8155. </div>
  8156. <div class="commentList">
  8157. <div class="commentList">
  8158. <div
  8159. class="commentImg"
  8160. @click="
  8161. isLikes(
  8162. w.wid,
  8163. userid,
  8164. 1,
  8165. null,
  8166. w.isLikes,
  8167. w.sName
  8168. )
  8169. "
  8170. >
  8171. <img
  8172. :src="w.isLikes == true ? likes : noLikes"
  8173. alt=""
  8174. />
  8175. </div>
  8176. <div>{{ w.likesCount }}</div>
  8177. </div>
  8178. <div class="commentList" style="margin-right: 15px">
  8179. <div
  8180. class="commentImg"
  8181. @click="commentOther(w, toolIndex, wIndex)"
  8182. >
  8183. <img
  8184. src="../../assets/icon/comment/comment.png"
  8185. alt=""
  8186. />
  8187. </div>
  8188. <div>{{ w.commentCount }}</div>
  8189. </div>
  8190. </div>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8195. 未提交
  8196. </div>
  8197. <div
  8198. class="noWorksS"
  8199. v-if="noWorksS && noWorksS[toolIndex].length"
  8200. >
  8201. <div
  8202. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8203. :key="sIndex"
  8204. class="noWorksName"
  8205. >
  8206. <el-tooltip
  8207. effect="dark"
  8208. :content="s.student"
  8209. placement="top"
  8210. >
  8211. <span>{{ s.student }}</span>
  8212. </el-tooltip>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. <div
  8217. v-if="
  8218. tType &&
  8219. ((tType == 2 && sIsOpen == true) ||
  8220. tType == 1 ||
  8221. tType == 4) &&
  8222. tool.tool.indexOf(7) != -1
  8223. "
  8224. class="worksBox"
  8225. >
  8226. <div
  8227. class="zuoyeYulan"
  8228. style="display: flex;justify-content: space-between;align-items: center;"
  8229. v-if="
  8230. (worksStudent.length &&
  8231. worksStudent[toolIndex].length > 0) ||
  8232. (courseGroup.group && courseGroup.group.length)
  8233. "
  8234. >
  8235. <div class="worksTop">
  8236. <div>作业预览</div>
  8237. <div
  8238. class="corOpen"
  8239. @click="contract(toolIndex)"
  8240. v-if="
  8241. isCloseList[toolIndex].isCloseBoolean &&
  8242. isCloseList[toolIndex].isClose == 0
  8243. "
  8244. >
  8245. 折叠
  8246. </div>
  8247. <div
  8248. class="corOpen"
  8249. @click="contract(toolIndex)"
  8250. v-if="isCloseList[toolIndex].isClose == 1"
  8251. >
  8252. 展开
  8253. </div>
  8254. </div>
  8255. <div
  8256. style="display: flex;"
  8257. v-if="
  8258. (courseDetail.userid == userid ||
  8259. (courseDetail.course_teacher &&
  8260. courseDetail.course_teacher.indexOf(userid) !=
  8261. -1)) &&
  8262. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8263. taskCount
  8264. ].eList &&
  8265. chapInfoList[courseType].chapterInfo[0].taskJson[
  8266. taskCount
  8267. ].eList.length) ||
  8268. (tool.eList && tool.eList.length)) &&
  8269. courseDetail.state == 6
  8270. "
  8271. >
  8272. <div
  8273. style="margin-right:10px"
  8274. class="ScoreBtn"
  8275. @click="
  8276. resetLoopEva(
  8277. worksStudent[toolIndex],
  8278. chapInfoList[courseType].chapterInfo[0].taskJson[
  8279. taskCount
  8280. ].eList,
  8281. courseType,
  8282. taskCount,
  8283. toolIndex,
  8284. tool.toolDetail,
  8285. worksStudent
  8286. )
  8287. "
  8288. >
  8289. 一键重置
  8290. </div>
  8291. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8292. <img
  8293. src="../../assets/icon/newIcons/rootImg.png"
  8294. alt=""
  8295. />
  8296. AI评分
  8297. </div>
  8298. <div
  8299. class="ScoreBtn"
  8300. v-else-if="!loopLoading[toolIndex].loading"
  8301. @click="
  8302. loopEva(
  8303. worksStudent[toolIndex],
  8304. chapInfoList[courseType].chapterInfo[0].taskJson[
  8305. taskCount
  8306. ].eList,
  8307. courseType,
  8308. taskCount,
  8309. toolIndex,
  8310. tool.toolDetail,
  8311. chapInfoList[courseType].chapterInfo[0].taskJson[
  8312. taskCount
  8313. ].taskDetail,
  8314. tool
  8315. )
  8316. "
  8317. >
  8318. <img
  8319. src="../../assets/icon/newIcons/rootImg.png"
  8320. alt=""
  8321. />
  8322. AI评分
  8323. </div>
  8324. <div class="ScoreBtn" v-else>
  8325. <img
  8326. src="../../assets/icon/newIcons/rootImg.png"
  8327. alt=""
  8328. />
  8329. 正在评分
  8330. </div>
  8331. </div>
  8332. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8333. </div>
  8334. <div
  8335. class="group_workBox"
  8336. v-for="(g, gindex) in courseGroup.group"
  8337. :key="gindex"
  8338. >
  8339. <div class="group_box">
  8340. <div class="group_title">
  8341. <el-tooltip
  8342. class="item"
  8343. effect="light"
  8344. :content="g.name"
  8345. placement="top"
  8346. >
  8347. <div class="group_name">{{ g.name }}</div>
  8348. </el-tooltip>
  8349. </div>
  8350. <div
  8351. class="group_work"
  8352. v-if="
  8353. g.works &&
  8354. g.works.length &&
  8355. g.works[toolIndex].length
  8356. "
  8357. >
  8358. <div
  8359. class="works"
  8360. style="
  8361. width: 200px;
  8362. height: 140px;
  8363. margin: 10px 10px 10px 0;
  8364. border-radius: 15px;
  8365. box-shadow: 0 0 6px 1px #dfdada;
  8366. "
  8367. v-for="(w, wIndex) in g.works[toolIndex]"
  8368. :key="wIndex"
  8369. :class="w.type == 1 ? 'isTypeOne' : ''"
  8370. >
  8371. <div class="workImg">
  8372. <img
  8373. :src="w.works"
  8374. @click="previewImg(w.works, w)"
  8375. alt
  8376. />
  8377. <div
  8378. class="answerScore"
  8379. v-if="w.score"
  8380. @click.stop="openScore(w)"
  8381. :class="{
  8382. rightW:
  8383. w.userid == userid ||
  8384. tType == 1 ||
  8385. tType == 4
  8386. }"
  8387. >
  8388. {{ JSON.parse(w.score).wScore }}分
  8389. </div>
  8390. <div
  8391. class="answerScore"
  8392. @click.stop="openScore(w)"
  8393. v-else-if="courseDetail.userid == userid"
  8394. :class="{
  8395. rightW:
  8396. w.userid == userid ||
  8397. tType == 1 ||
  8398. tType == 4
  8399. }"
  8400. >
  8401. 评分
  8402. </div>
  8403. <img
  8404. class="deleteImg"
  8405. src="../../assets/deleteworks.png"
  8406. v-if="
  8407. w.userid == userid || tType == 1 || tType == 4
  8408. "
  8409. @click.stop="deleteWorks(w.wid)"
  8410. alt
  8411. />
  8412. </div>
  8413. <div class="comment" style="min-width: 200px">
  8414. <div class="worksName">
  8415. <div>{{ w.sName }}</div>
  8416. </div>
  8417. <div class="commentList">
  8418. <div class="commentList">
  8419. <div
  8420. class="commentImg"
  8421. @click="
  8422. isLikes(
  8423. w.wid,
  8424. userid,
  8425. 1,
  8426. null,
  8427. w.isLikes,
  8428. w.sName
  8429. )
  8430. "
  8431. >
  8432. <img
  8433. :src="w.isLikes == true ? likes : noLikes"
  8434. alt=""
  8435. />
  8436. </div>
  8437. <div>{{ w.likesCount }}</div>
  8438. </div>
  8439. <div
  8440. class="commentList"
  8441. style="margin-right: 15px"
  8442. >
  8443. <div
  8444. class="commentImg"
  8445. @click="
  8446. commentOther(
  8447. w,
  8448. toolIndex,
  8449. wIndex,
  8450. null,
  8451. g.id
  8452. )
  8453. "
  8454. >
  8455. <img
  8456. src="../../assets/icon/comment/comment.png"
  8457. alt=""
  8458. />
  8459. </div>
  8460. <div>{{ w.commentCount }}</div>
  8461. </div>
  8462. </div>
  8463. </div>
  8464. </div>
  8465. </div>
  8466. <div class="group_work" v-else>暂无提交作业</div>
  8467. </div>
  8468. </div>
  8469. <div
  8470. :id="'tool-' + toolIndex"
  8471. :style="{
  8472. height:
  8473. isCloseList[toolIndex].isClose == 1
  8474. ? retrnToolHeight('tool-' + toolIndex)
  8475. : 'auto',
  8476. overflow:
  8477. isCloseList[toolIndex].isClose == 1
  8478. ? 'hidden'
  8479. : 'unset'
  8480. }"
  8481. class="worksDetailBox"
  8482. v-if="
  8483. worksStudent.length &&
  8484. worksStudent[toolIndex].length > 0
  8485. "
  8486. >
  8487. <div
  8488. class="works"
  8489. style="
  8490. width: 200px;
  8491. height: 140px;
  8492. margin: 10px 10px 10px 0;
  8493. border-radius: 15px;
  8494. box-shadow: 0 0 6px 1px #dfdada;
  8495. "
  8496. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8497. :key="wIndex"
  8498. >
  8499. <!-- @click="previewImg(w.works)" -->
  8500. <div class="workImg">
  8501. <img
  8502. :src="w.works"
  8503. @click="previewImg(w.works, w)"
  8504. alt
  8505. />
  8506. <div
  8507. class="answerScore"
  8508. v-if="w.score"
  8509. @click.stop="openScore(w)"
  8510. :class="{
  8511. rightW:
  8512. w.userid == userid || tType == 1 || tType == 4
  8513. }"
  8514. >
  8515. {{ JSON.parse(w.score).wScore }}分
  8516. </div>
  8517. <div
  8518. class="answerScore"
  8519. @click.stop="openScore(w)"
  8520. v-else-if="
  8521. courseDetail.userid == userid &&
  8522. courseDetail.state != 6 &&
  8523. chapInfoList[courseType].chapterInfo[0]
  8524. .taskJson[taskCount].eList &&
  8525. chapInfoList[courseType].chapterInfo[0]
  8526. .taskJson[taskCount].eList.length
  8527. "
  8528. :class="{
  8529. rightW:
  8530. w.userid == userid || tType == 1 || tType == 4
  8531. }"
  8532. >
  8533. 评分
  8534. </div>
  8535. <!-- <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"> -->
  8536. <div
  8537. v-else-if="
  8538. (courseDetail.userid == userid ||
  8539. (courseDetail.course_teacher &&
  8540. courseDetail.course_teacher.indexOf(userid) !=
  8541. -1) ||
  8542. (w.userid == userid && sIsOpen)) &&
  8543. courseDetail.state == 6 &&
  8544. ((chapInfoList[courseType].chapterInfo[0]
  8545. .taskJson[taskCount].eList &&
  8546. chapInfoList[courseType].chapterInfo[0]
  8547. .taskJson[taskCount].eList.length) ||
  8548. (tool.eList && tool.eList.length))
  8549. "
  8550. >
  8551. <el-popover
  8552. placement="top"
  8553. width="318"
  8554. :disabled="AIloading[toolIndex][wIndex].loading"
  8555. trigger="hover"
  8556. >
  8557. <markScore
  8558. :loading="AIloading[toolIndex][wIndex].loading"
  8559. :markScoreVisible="markScoreVisible"
  8560. :ref="`markSco${toolIndex}${wIndex}`"
  8561. @updateLoading="updateLoading"
  8562. @updateDocSco="updateDocSco"
  8563. @refreshOther="refreshOther"
  8564. @markScoreDig="markScoreDig"
  8565. :tool="tool"
  8566. :wIndex="wIndex"
  8567. :scoCon="w"
  8568. :toolIndex="toolIndex"
  8569. :key="refreshKey"
  8570. :stage="courseType"
  8571. :task="taskCount"
  8572. :scoTit="
  8573. chapInfoList[courseType].chapterInfo[0]
  8574. .taskJson[taskCount].eList
  8575. "
  8576. >
  8577. </markScore>
  8578. <div
  8579. class="answerScore"
  8580. @click="
  8581. markScoreDig2(
  8582. w.sName,
  8583. worksStudent,
  8584. w.userid,
  8585. toolIndex,
  8586. chapInfoList[courseType].chapterInfo[0]
  8587. .taskJson[taskCount].eList,
  8588. AIloading[toolIndex][wIndex].loading,
  8589. tool
  8590. )
  8591. "
  8592. slot="reference"
  8593. :class="{
  8594. rightW:
  8595. w.userid == userid ||
  8596. tType == 1 ||
  8597. tType == 4 ||
  8598. w.ateacher == userid
  8599. }"
  8600. >
  8601. <span v-if="AIloading[toolIndex][wIndex].sco">
  8602. {{
  8603. AIloading[toolIndex][wIndex].loading
  8604. ? "评分中"
  8605. : AIloading[toolIndex][wIndex].sco + "分"
  8606. }}
  8607. </span>
  8608. <span v-else>
  8609. {{
  8610. AIloading[toolIndex][wIndex].loading
  8611. ? "评分中"
  8612. : "评分"
  8613. }}
  8614. </span>
  8615. </div>
  8616. </el-popover>
  8617. </div>
  8618. <img
  8619. class="deleteImg"
  8620. src="../../assets/deleteworks.png"
  8621. v-if="
  8622. w.userid == userid || tType == 1 || tType == 4
  8623. "
  8624. @click.stop="deleteWorks(w.wid)"
  8625. alt
  8626. />
  8627. </div>
  8628. <div class="comment" style="min-width: 200px">
  8629. <div class="worksName">
  8630. <div>{{ w.sName }}</div>
  8631. </div>
  8632. <div class="commentList">
  8633. <div class="commentList">
  8634. <div
  8635. class="commentImg"
  8636. @click="
  8637. isLikes(
  8638. w.wid,
  8639. userid,
  8640. 1,
  8641. null,
  8642. w.isLikes,
  8643. w.sName
  8644. )
  8645. "
  8646. >
  8647. <img
  8648. :src="w.isLikes == true ? likes : noLikes"
  8649. alt=""
  8650. />
  8651. </div>
  8652. <div>{{ w.likesCount }}</div>
  8653. </div>
  8654. <div class="commentList" style="margin-right: 15px">
  8655. <div
  8656. class="commentImg"
  8657. @click="commentOther(w, toolIndex, wIndex)"
  8658. >
  8659. <img
  8660. src="../../assets/icon/comment/comment.png"
  8661. alt=""
  8662. />
  8663. </div>
  8664. <div>{{ w.commentCount }}</div>
  8665. </div>
  8666. </div>
  8667. </div>
  8668. </div>
  8669. </div>
  8670. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8671. 未提交
  8672. </div>
  8673. <div
  8674. class="noWorksS"
  8675. v-if="noWorksS && noWorksS[toolIndex].length"
  8676. >
  8677. <div
  8678. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8679. :key="sIndex"
  8680. class="noWorksName"
  8681. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8682. >
  8683. <el-tooltip
  8684. effect="dark"
  8685. :content="s.student"
  8686. placement="top"
  8687. >
  8688. <span>{{ s.student }}</span>
  8689. </el-tooltip>
  8690. </div>
  8691. </div>
  8692. </div>
  8693. <div
  8694. v-if="
  8695. tType &&
  8696. ((tType == 2 && sIsOpen == true) ||
  8697. tType == 1 ||
  8698. tType == 4) &&
  8699. tool.tool.indexOf(26) != -1
  8700. "
  8701. class="worksBox"
  8702. >
  8703. <div
  8704. class="zuoyeYulan"
  8705. v-if="
  8706. worksStudent.length &&
  8707. worksStudent[toolIndex].length > 0
  8708. "
  8709. >
  8710. <div class="worksTop">
  8711. <div>作业预览</div>
  8712. <div
  8713. class="corOpen"
  8714. @click="contract(toolIndex)"
  8715. v-if="
  8716. isCloseList[toolIndex].isCloseBoolean &&
  8717. isCloseList[toolIndex].isClose == 0
  8718. "
  8719. >
  8720. 折叠
  8721. </div>
  8722. <div
  8723. class="corOpen"
  8724. @click="contract(toolIndex)"
  8725. v-if="isCloseList[toolIndex].isClose == 1"
  8726. >
  8727. 展开
  8728. </div>
  8729. </div>
  8730. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8731. </div>
  8732. <div
  8733. :id="'tool-' + toolIndex"
  8734. :style="{
  8735. height:
  8736. isCloseList[toolIndex].isClose == 1
  8737. ? retrnToolHeight('tool-' + toolIndex)
  8738. : 'auto',
  8739. overflow:
  8740. isCloseList[toolIndex].isClose == 1
  8741. ? 'hidden'
  8742. : 'unset'
  8743. }"
  8744. class="worksDetailBox"
  8745. v-if="
  8746. worksStudent.length &&
  8747. worksStudent[toolIndex].length > 0
  8748. "
  8749. >
  8750. <div
  8751. class="works"
  8752. style="width: 240px; height: 140px; overflow: hidden"
  8753. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8754. :key="wIndex"
  8755. :class="w.type == 1 ? 'isTypeOne' : ''"
  8756. >
  8757. <div class="workImg" v-if="w.type == 0">
  8758. <img
  8759. :src="w.works"
  8760. @click="previewImg(w.works, w)"
  8761. alt
  8762. />
  8763. <img
  8764. class="deleteImg"
  8765. src="../../assets/deleteworks.png"
  8766. v-if="
  8767. w.userid == userid || tType == 1 || tType == 4
  8768. "
  8769. @click.stop="deleteWorks(w.wid)"
  8770. alt
  8771. />
  8772. </div>
  8773. <div class="workImg" v-if="w.type == 1">
  8774. <img :src="word" @click="openFile(w.works)" alt />
  8775. <img
  8776. class="deleteImg"
  8777. src="../../assets/deleteworks.png"
  8778. v-if="
  8779. w.userid == userid || tType == 1 || tType == 4
  8780. "
  8781. @click.stop="deleteWorks(w.wid)"
  8782. alt
  8783. />
  8784. </div>
  8785. <div class="worksName">
  8786. <div>{{ w.sName }}</div>
  8787. </div>
  8788. </div>
  8789. </div>
  8790. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8791. 未提交
  8792. </div>
  8793. <div
  8794. class="noWorksS"
  8795. v-if="noWorksS && noWorksS[toolIndex].length"
  8796. >
  8797. <div
  8798. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8799. :key="sIndex"
  8800. class="noWorksName"
  8801. >
  8802. <el-tooltip
  8803. effect="dark"
  8804. :content="s.student"
  8805. placement="top"
  8806. >
  8807. <span>{{ s.student }}</span>
  8808. </el-tooltip>
  8809. </div>
  8810. </div>
  8811. </div>
  8812. <div
  8813. v-if="
  8814. tType &&
  8815. ((tType == 2 && sIsOpen == true) ||
  8816. tType == 1 ||
  8817. tType == 4) &&
  8818. tool.tool.indexOf(40) != -1
  8819. "
  8820. class="worksBox"
  8821. >
  8822. <div
  8823. class="zuoyeYulan"
  8824. v-if="
  8825. worksStudent.length &&
  8826. worksStudent[toolIndex].length > 0
  8827. "
  8828. >
  8829. <div class="worksTop">
  8830. <div>作业预览</div>
  8831. <div
  8832. class="corOpen"
  8833. @click="contract(toolIndex)"
  8834. v-if="
  8835. isCloseList[toolIndex].isCloseBoolean &&
  8836. isCloseList[toolIndex].isClose == 0
  8837. "
  8838. >
  8839. 折叠
  8840. </div>
  8841. <div
  8842. class="corOpen"
  8843. @click="contract(toolIndex)"
  8844. v-if="isCloseList[toolIndex].isClose == 1"
  8845. >
  8846. 展开
  8847. </div>
  8848. </div>
  8849. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8850. </div>
  8851. <div
  8852. :id="'tool-' + toolIndex"
  8853. :style="{
  8854. height:
  8855. isCloseList[toolIndex].isClose == 1
  8856. ? retrnToolHeight('tool-' + toolIndex)
  8857. : 'auto',
  8858. overflow:
  8859. isCloseList[toolIndex].isClose == 1
  8860. ? 'hidden'
  8861. : 'unset'
  8862. }"
  8863. class="worksDetailBox"
  8864. v-if="
  8865. worksStudent.length &&
  8866. worksStudent[toolIndex].length > 0
  8867. "
  8868. >
  8869. <div
  8870. class="works"
  8871. style="
  8872. width: 200px;
  8873. height: 140px;
  8874. margin: 10px 10px 10px 0;
  8875. border-radius: 15px;
  8876. box-shadow: 0 0 6px 1px #dfdada;
  8877. "
  8878. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8879. :key="wIndex"
  8880. :class="w.type == 1 ? 'isTypeOne' : ''"
  8881. >
  8882. <div class="workImg">
  8883. <img
  8884. src="../../assets/icon/works/noImg.png"
  8885. @click="openPj(w.works, toolIndex)"
  8886. alt
  8887. />
  8888. <img
  8889. class="deleteImg"
  8890. src="../../assets/deleteworks.png"
  8891. v-if="
  8892. w.userid == userid || tType == 1 || tType == 4
  8893. "
  8894. @click.stop="deleteWorks(w.wid)"
  8895. alt
  8896. />
  8897. </div>
  8898. <div class="comment" style="min-width: 200px">
  8899. <div class="worksName">
  8900. <div>{{ w.sName }}</div>
  8901. </div>
  8902. <div class="commentList">
  8903. <div class="commentList">
  8904. <div
  8905. class="commentImg"
  8906. @click="
  8907. isLikes(
  8908. w.wid,
  8909. userid,
  8910. 1,
  8911. null,
  8912. w.isLikes,
  8913. w.sName
  8914. )
  8915. "
  8916. >
  8917. <img
  8918. :src="w.isLikes == true ? likes : noLikes"
  8919. alt=""
  8920. />
  8921. </div>
  8922. <div>{{ w.likesCount }}</div>
  8923. </div>
  8924. <div class="commentList" style="margin-right: 15px">
  8925. <div
  8926. class="commentImg"
  8927. @click="commentOther(w, toolIndex, wIndex)"
  8928. >
  8929. <img
  8930. src="../../assets/icon/comment/comment.png"
  8931. alt=""
  8932. />
  8933. </div>
  8934. <div>{{ w.commentCount }}</div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. </div>
  8940. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8941. 未提交
  8942. </div>
  8943. <div
  8944. class="noWorksS"
  8945. v-if="noWorksS && noWorksS[toolIndex].length"
  8946. >
  8947. <div
  8948. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8949. :key="sIndex"
  8950. class="noWorksName"
  8951. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8952. >
  8953. <el-tooltip
  8954. effect="dark"
  8955. :content="s.student"
  8956. placement="top"
  8957. >
  8958. <span>{{ s.student }}</span>
  8959. </el-tooltip>
  8960. </div>
  8961. </div>
  8962. </div>
  8963. <div
  8964. v-if="
  8965. tType &&
  8966. tType == 2 &&
  8967. !sIsOpen &&
  8968. tool.tool.indexOf(40) != -1
  8969. "
  8970. class="worksBox"
  8971. >
  8972. <div
  8973. class="zuoyeYulan"
  8974. v-if="workStudent[toolIndex].length > 0"
  8975. >
  8976. <span class="worksTitle">作业预览</span>
  8977. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8978. </div>
  8979. <div
  8980. class="worksDetailBox"
  8981. v-if="workStudent[toolIndex].length > 0"
  8982. >
  8983. <div
  8984. class="works"
  8985. style="
  8986. width: 200px;
  8987. height: 140px;
  8988. margin: 10px 10px 10px 0;
  8989. "
  8990. v-for="(w, wIndex) in workStudent[toolIndex]"
  8991. :key="wIndex"
  8992. >
  8993. <div class="workImg">
  8994. <img
  8995. src="../../assets/icon/works/noImg.png"
  8996. @click="openPj(w.works, toolIndex)"
  8997. alt
  8998. />
  8999. <img
  9000. class="deleteImg"
  9001. src="../../assets/deleteworks.png"
  9002. v-if="
  9003. w.userid == userid || tType == 1 || tType == 4
  9004. "
  9005. @click.stop="deleteWorks(w.wid)"
  9006. alt
  9007. />
  9008. </div>
  9009. <div class="worksName">
  9010. <div>{{ w.sName }}</div>
  9011. </div>
  9012. </div>
  9013. </div>
  9014. </div>
  9015. <div
  9016. v-if="
  9017. tType &&
  9018. ((tType == 2 && sIsOpen == true) ||
  9019. tType == 1 ||
  9020. tType == 4) &&
  9021. tool.tool.indexOf(41) != -1
  9022. "
  9023. >
  9024. <AnswerData2
  9025. v-if="
  9026. worksStudent.length &&
  9027. worksStudent[toolIndex].length > 0
  9028. "
  9029. :problemJson="tool.selectJson.answer"
  9030. :people="worksStudent[toolIndex]"
  9031. ></AnswerData2>
  9032. </div>
  9033. <div
  9034. v-if="
  9035. tType &&
  9036. ((tType == 2 && sIsOpen == true) ||
  9037. tType == 1 ||
  9038. tType == 4) &&
  9039. tool.tool.indexOf(41) != -1
  9040. "
  9041. class="worksBox"
  9042. >
  9043. <div
  9044. class="zuoyeYulan"
  9045. v-if="
  9046. worksStudent.length &&
  9047. worksStudent[toolIndex].length > 0
  9048. "
  9049. >
  9050. <div class="worksTop">
  9051. <div>作业预览</div>
  9052. <div
  9053. class="corOpen"
  9054. @click="contract(toolIndex)"
  9055. v-if="
  9056. isCloseList[toolIndex].isCloseBoolean &&
  9057. isCloseList[toolIndex].isClose == 0
  9058. "
  9059. >
  9060. 折叠
  9061. </div>
  9062. <div
  9063. class="corOpen"
  9064. @click="contract(toolIndex)"
  9065. v-if="isCloseList[toolIndex].isClose == 1"
  9066. >
  9067. 展开
  9068. </div>
  9069. </div>
  9070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9071. </div>
  9072. <div
  9073. :id="'tool-' + toolIndex"
  9074. :style="{
  9075. height:
  9076. isCloseList[toolIndex].isClose == 1
  9077. ? retrnToolHeight('tool-' + toolIndex)
  9078. : 'auto',
  9079. overflow:
  9080. isCloseList[toolIndex].isClose == 1
  9081. ? 'hidden'
  9082. : 'unset'
  9083. }"
  9084. class="worksDetailBox"
  9085. v-if="
  9086. worksStudent.length &&
  9087. worksStudent[toolIndex].length > 0
  9088. "
  9089. >
  9090. <div
  9091. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9092. :key="wIndex"
  9093. class="isWorksName2"
  9094. @click="openXz(w, toolIndex)"
  9095. >
  9096. {{ w.sName }}
  9097. <img
  9098. class="deleteImg deleteImg2"
  9099. src="../../assets/deleteworks.png"
  9100. v-if="w.userid == userid || tType == 1 || tType == 4"
  9101. @click.stop="deleteWorks(w.wid)"
  9102. alt
  9103. />
  9104. </div>
  9105. <!-- <div
  9106. class="works"
  9107. style="
  9108. width: 200px;
  9109. height: 140px;
  9110. margin: 10px 10px 10px 0;
  9111. border-radius: 15px;
  9112. box-shadow: 0 0 6px 1px #dfdada;
  9113. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9114. :class="w.type == 5 ? 'isTypeOne' : ''">
  9115. <div class="workImg">
  9116. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9117. </div>
  9118. <div class="worksName">
  9119. <div>{{ w.sName }}</div>
  9120. </div>
  9121. </div> -->
  9122. </div>
  9123. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9124. 未提交
  9125. </div>
  9126. <div
  9127. class="noWorksS"
  9128. v-if="noWorksS && noWorksS[toolIndex].length"
  9129. >
  9130. <div
  9131. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9132. :key="sIndex"
  9133. class="noWorksName"
  9134. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9135. >
  9136. <el-tooltip
  9137. effect="dark"
  9138. :content="s.student"
  9139. placement="top"
  9140. >
  9141. <span>{{ s.student }}</span>
  9142. </el-tooltip>
  9143. </div>
  9144. </div>
  9145. </div>
  9146. <div
  9147. v-if="
  9148. tType &&
  9149. tType == 2 &&
  9150. !sIsOpen &&
  9151. tool.tool.indexOf(41) != -1
  9152. "
  9153. class="worksBox"
  9154. >
  9155. <div
  9156. class="zuoyeYulan"
  9157. v-if="workStudent[toolIndex].length > 0"
  9158. >
  9159. <span class="worksTitle">作业预览</span>
  9160. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9161. </div>
  9162. <div
  9163. class="worksDetailBox"
  9164. v-if="workStudent[toolIndex].length > 0"
  9165. >
  9166. <div
  9167. class="works"
  9168. style="
  9169. width: 200px;
  9170. height: 140px;
  9171. margin: 10px 10px 10px 0;
  9172. "
  9173. v-for="(w, wIndex) in workStudent[toolIndex]"
  9174. :key="wIndex"
  9175. >
  9176. <div class="workImg">
  9177. <img
  9178. src="../../assets/icon/works/noImg.png"
  9179. @click="openXz(w, toolIndex)"
  9180. alt
  9181. />
  9182. <img
  9183. class="deleteImg"
  9184. src="../../assets/deleteworks.png"
  9185. v-if="
  9186. w.userid == userid || tType == 1 || tType == 4
  9187. "
  9188. @click.stop="deleteWorks(w.wid)"
  9189. alt
  9190. />
  9191. </div>
  9192. <div class="worksName">
  9193. <div>{{ w.sName }}</div>
  9194. </div>
  9195. </div>
  9196. </div>
  9197. </div>
  9198. <div v-if="false" class="xuan_right_box">
  9199. <div
  9200. class="tool_right_box"
  9201. v-for="(item, index) in tool.sentenceList"
  9202. :key="index"
  9203. >
  9204. <div>
  9205. <span
  9206. style="word-break: break-all; white-space: normal"
  9207. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9208. >
  9209. </div>
  9210. <div class="right_box_xuan">
  9211. <span>正确率</span>
  9212. <span>{{
  9213. (checkJson[toolIndex][index].right
  9214. ? checkJson[toolIndex][index].right
  9215. : 0) + "%"
  9216. }}</span>
  9217. </div>
  9218. <div class="right_box_xuan">
  9219. <span>答对人数</span>
  9220. <span>{{
  9221. checkJson[toolIndex][index].rightPerson.length
  9222. }}</span>
  9223. </div>
  9224. </div>
  9225. </div>
  9226. <div
  9227. v-if="
  9228. tType &&
  9229. ((tType == 2 && sIsOpen == true) ||
  9230. tType == 1 ||
  9231. tType == 4) &&
  9232. tool.tool.indexOf(47) != -1
  9233. "
  9234. >
  9235. <!-- <AnswerData
  9236. v-if="
  9237. checkJson[toolIndex].length &&
  9238. (tool.sentenceList || tool.sentenceList.length > 0)
  9239. "
  9240. :people="checkJson[toolIndex]"
  9241. ></AnswerData> -->
  9242. <sortToolWorkShow v-if="
  9243. worksStudent[toolIndex].length
  9244. "
  9245. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9246. </div>
  9247. <div
  9248. v-if="
  9249. tType &&
  9250. tType == 2 &&
  9251. !sIsOpen &&
  9252. tool.tool.indexOf(47) != -1
  9253. "
  9254. class="worksBox"
  9255. >
  9256. <div
  9257. class="zuoyeYulan"
  9258. v-if="workStudent[toolIndex].length > 0"
  9259. >
  9260. <span class="worksTitle">作业预览</span>
  9261. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9262. </div>
  9263. <div
  9264. class="worksDetailBox"
  9265. v-if="workStudent[toolIndex].length > 0"
  9266. >
  9267. <div
  9268. class="works"
  9269. style="
  9270. width: 200px;
  9271. height: 140px;
  9272. margin: 10px 10px 10px 0;
  9273. "
  9274. v-for="(w, wIndex) in workStudent[toolIndex]"
  9275. :key="wIndex"
  9276. >
  9277. <!-- @click="openXz(w, toolIndex)" -->
  9278. <div class="workImg" @click="openSen(w, toolIndex)">
  9279. <img src="../../assets/icon/works/noImg.png" alt />
  9280. <img
  9281. class="deleteImg"
  9282. src="../../assets/deleteworks.png"
  9283. v-if="
  9284. w.userid == userid || tType == 1 || tType == 4
  9285. "
  9286. @click.stop="deleteWorks(w.wid)"
  9287. alt
  9288. />
  9289. </div>
  9290. <div class="worksName">
  9291. <div>
  9292. {{ w.sName }}
  9293. </div>
  9294. </div>
  9295. </div>
  9296. </div>
  9297. </div>
  9298. <div
  9299. v-if="
  9300. tType &&
  9301. ((tType == 2 && sIsOpen == true) ||
  9302. tType == 1 ||
  9303. tType == 4) &&
  9304. tool.tool.indexOf(47) != -1
  9305. "
  9306. class="worksBox"
  9307. >
  9308. <div
  9309. class="zuoyeYulan"
  9310. v-if="
  9311. worksStudent.length &&
  9312. worksStudent[toolIndex].length > 0
  9313. "
  9314. >
  9315. <div class="worksTop">
  9316. <div>作业预览</div>
  9317. <div
  9318. class="corOpen"
  9319. @click="contract(toolIndex)"
  9320. v-if="
  9321. isCloseList[toolIndex].isCloseBoolean &&
  9322. isCloseList[toolIndex].isClose == 0
  9323. "
  9324. >
  9325. 折叠
  9326. </div>
  9327. <div
  9328. class="corOpen"
  9329. @click="contract(toolIndex)"
  9330. v-if="isCloseList[toolIndex].isClose == 1"
  9331. >
  9332. 展开
  9333. </div>
  9334. </div>
  9335. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9336. </div>
  9337. <div
  9338. :id="'tool-' + toolIndex"
  9339. :style="{
  9340. height:
  9341. isCloseList[toolIndex].isClose == 1
  9342. ? retrnToolHeight('tool-' + toolIndex)
  9343. : 'auto',
  9344. overflow:
  9345. isCloseList[toolIndex].isClose == 1
  9346. ? 'hidden'
  9347. : 'unset'
  9348. }"
  9349. class="worksDetailBox"
  9350. v-if="
  9351. worksStudent.length &&
  9352. worksStudent[toolIndex].length > 0
  9353. "
  9354. >
  9355. <!-- @click="openXz(w, toolIndex)" -->
  9356. <div
  9357. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9358. :key="wIndex"
  9359. class="isWorksName2"
  9360. @click="openSen(w, toolIndex)"
  9361. >
  9362. {{ w.sName }}
  9363. <img
  9364. class="deleteImg deleteImg2"
  9365. src="../../assets/deleteworks.png"
  9366. v-if="w.userid == userid || tType == 1 || tType == 4"
  9367. @click.stop="deleteWorks(w.wid)"
  9368. alt
  9369. />
  9370. </div>
  9371. </div>
  9372. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9373. 未提交
  9374. </div>
  9375. <div
  9376. class="noWorksS"
  9377. v-if="noWorksS && noWorksS[toolIndex].length"
  9378. >
  9379. <div
  9380. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9381. :key="sIndex"
  9382. class="noWorksName"
  9383. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9384. >
  9385. <el-tooltip
  9386. effect="dark"
  9387. :content="s.student"
  9388. placement="top"
  9389. >
  9390. <span>{{ s.student }}</span>
  9391. </el-tooltip>
  9392. </div>
  9393. </div>
  9394. </div>
  9395. <div
  9396. v-if="
  9397. tType &&
  9398. ((tType == 2 && sIsOpen == true) ||
  9399. tType == 1 ||
  9400. tType == 4) &&
  9401. tool.tool.indexOf(48) != -1
  9402. "
  9403. class="worksBox"
  9404. >
  9405. <div
  9406. class="zuoyeYulan"
  9407. style="display: flex;justify-content: space-between;align-items: center;"
  9408. v-if="
  9409. worksStudent.length &&
  9410. worksStudent[toolIndex].length > 0
  9411. "
  9412. >
  9413. <div class="worksTop">
  9414. <div>作业预览</div>
  9415. <div
  9416. class="corOpen"
  9417. @click="contract(toolIndex)"
  9418. v-if="
  9419. isCloseList[toolIndex].isCloseBoolean &&
  9420. isCloseList[toolIndex].isClose == 0
  9421. "
  9422. >
  9423. 折叠
  9424. </div>
  9425. <div
  9426. class="corOpen"
  9427. @click="contract(toolIndex)"
  9428. v-if="isCloseList[toolIndex].isClose == 1"
  9429. >
  9430. 展开
  9431. </div>
  9432. </div>
  9433. <div
  9434. style="display: flex;"
  9435. v-if="
  9436. (courseDetail.userid == userid ||
  9437. (courseDetail.course_teacher &&
  9438. courseDetail.course_teacher.indexOf(userid) !=
  9439. -1)) &&
  9440. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9441. taskCount
  9442. ].eList &&
  9443. chapInfoList[courseType].chapterInfo[0].taskJson[
  9444. taskCount
  9445. ].eList.length) ||
  9446. (tool.eList && tool.eList.length)) &&
  9447. courseDetail.state == 6
  9448. "
  9449. >
  9450. <div
  9451. style="margin-right:10px"
  9452. class="ScoreBtn"
  9453. @click="
  9454. resetLoopEva(
  9455. worksStudent[toolIndex],
  9456. chapInfoList[courseType].chapterInfo[0].taskJson[
  9457. taskCount
  9458. ].eList,
  9459. courseType,
  9460. taskCount,
  9461. toolIndex,
  9462. tool.toolDetail,
  9463. worksStudent
  9464. )
  9465. "
  9466. >
  9467. 一键重置
  9468. </div>
  9469. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9470. <img
  9471. src="../../assets/icon/newIcons/rootImg.png"
  9472. alt=""
  9473. />
  9474. AI评分
  9475. </div>
  9476. <div
  9477. class="ScoreBtn"
  9478. v-else-if="!loopLoading[toolIndex].loading"
  9479. @click="
  9480. loopEva(
  9481. worksStudent[toolIndex],
  9482. chapInfoList[courseType].chapterInfo[0].taskJson[
  9483. taskCount
  9484. ].eList,
  9485. courseType,
  9486. taskCount,
  9487. toolIndex,
  9488. tool.toolDetail,
  9489. chapInfoList[courseType].chapterInfo[0].taskJson[
  9490. taskCount
  9491. ].taskDetail,
  9492. tool
  9493. )
  9494. "
  9495. >
  9496. <img
  9497. src="../../assets/icon/newIcons/rootImg.png"
  9498. alt=""
  9499. />
  9500. AI评分
  9501. </div>
  9502. <div class="ScoreBtn" v-else>
  9503. <img
  9504. src="../../assets/icon/newIcons/rootImg.png"
  9505. alt=""
  9506. />
  9507. 正在评分
  9508. </div>
  9509. </div>
  9510. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9511. </div>
  9512. <div
  9513. :id="'tool-' + toolIndex"
  9514. :style="{
  9515. height:
  9516. isCloseList[toolIndex].isClose == 1
  9517. ? retrnToolHeight('tool-' + toolIndex)
  9518. : 'auto',
  9519. overflow:
  9520. isCloseList[toolIndex].isClose == 1
  9521. ? 'hidden'
  9522. : 'unset'
  9523. }"
  9524. class="worksDetailBox"
  9525. v-if="
  9526. worksStudent.length &&
  9527. worksStudent[toolIndex].length > 0
  9528. "
  9529. >
  9530. <div
  9531. class="works"
  9532. style="
  9533. width: 200px;
  9534. height: 140px;
  9535. margin: 10px 10px 10px 0;
  9536. border-radius: 15px;
  9537. box-shadow: 0 0 6px 1px #dfdada;
  9538. "
  9539. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9540. :key="wIndex"
  9541. :class="w.type == 1 ? 'isTypeOne' : ''"
  9542. >
  9543. <div class="workImg">
  9544. <img :src="word" @click="openTable(w)" alt />
  9545. <!-- @click="openFile(w.works)" -->
  9546. <div
  9547. class="answerScore"
  9548. v-if="w.score"
  9549. @click.stop="openScore(w)"
  9550. :class="{
  9551. rightW:
  9552. w.userid == userid ||
  9553. tType == 1 ||
  9554. tType == 4 ||
  9555. w.ateacher == userid
  9556. }"
  9557. >
  9558. {{ JSON.parse(w.score).wScore }}分
  9559. </div>
  9560. <div
  9561. class="answerScore"
  9562. @click.stop="openScore(w)"
  9563. v-else-if="
  9564. courseDetail.userid == userid &&
  9565. courseDetail.state != 6 &&
  9566. chapInfoList[courseType].chapterInfo[0]
  9567. .taskJson[taskCount].eList &&
  9568. chapInfoList[courseType].chapterInfo[0]
  9569. .taskJson[taskCount].eList.length
  9570. "
  9571. :class="{
  9572. rightW:
  9573. w.userid == userid ||
  9574. tType == 1 ||
  9575. tType == 4 ||
  9576. w.ateacher == userid
  9577. }"
  9578. >
  9579. 评分
  9580. </div>
  9581. <!-- <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"> -->
  9582. <div
  9583. v-else-if="
  9584. (courseDetail.userid == userid ||
  9585. (courseDetail.course_teacher &&
  9586. courseDetail.course_teacher.indexOf(userid) !=
  9587. -1) ||
  9588. (w.userid == userid && sIsOpen)) &&
  9589. courseDetail.state == 6 &&
  9590. ((chapInfoList[courseType].chapterInfo[0]
  9591. .taskJson[taskCount].eList &&
  9592. chapInfoList[courseType].chapterInfo[0]
  9593. .taskJson[taskCount].eList.length) ||
  9594. (tool.eList && tool.eList.length))
  9595. "
  9596. >
  9597. <el-popover
  9598. placement="top"
  9599. width="318"
  9600. :disabled="AIloading[toolIndex][wIndex].loading"
  9601. trigger="hover"
  9602. >
  9603. <markScore
  9604. :loading="AIloading[toolIndex][wIndex].loading"
  9605. :markScoreVisible="markScoreVisible"
  9606. :ref="`markSco${toolIndex}${wIndex}`"
  9607. @updateLoading="updateLoading"
  9608. @updateDocSco="updateDocSco"
  9609. @refreshOther="refreshOther"
  9610. @markScoreDig="markScoreDig"
  9611. :tool="tool"
  9612. :wIndex="wIndex"
  9613. :scoCon="w"
  9614. :toolIndex="toolIndex"
  9615. :key="refreshKey"
  9616. :stage="courseType"
  9617. :task="taskCount"
  9618. :scoTit="
  9619. chapInfoList[courseType].chapterInfo[0]
  9620. .taskJson[taskCount].eList
  9621. "
  9622. >
  9623. </markScore>
  9624. <div
  9625. class="answerScore"
  9626. @click="
  9627. markScoreDig2(
  9628. w.sName,
  9629. worksStudent,
  9630. w.userid,
  9631. toolIndex,
  9632. chapInfoList[courseType].chapterInfo[0]
  9633. .taskJson[taskCount].eList,
  9634. AIloading[toolIndex][wIndex].loading,
  9635. tool
  9636. )
  9637. "
  9638. slot="reference"
  9639. :class="{
  9640. rightW:
  9641. w.userid == userid ||
  9642. tType == 1 ||
  9643. tType == 4 ||
  9644. w.ateacher == userid
  9645. }"
  9646. >
  9647. <span v-if="AIloading[toolIndex][wIndex].sco">
  9648. {{
  9649. AIloading[toolIndex][wIndex].loading
  9650. ? "评分中"
  9651. : AIloading[toolIndex][wIndex].sco + "分"
  9652. }}
  9653. </span>
  9654. <span v-else>
  9655. {{
  9656. AIloading[toolIndex][wIndex].loading
  9657. ? "评分中"
  9658. : "评分"
  9659. }}
  9660. </span>
  9661. </div>
  9662. </el-popover>
  9663. </div>
  9664. <img
  9665. class="deleteImg"
  9666. src="../../assets/deleteworks.png"
  9667. v-if="
  9668. w.userid == userid || tType == 1 || tType == 4
  9669. "
  9670. @click.stop="deleteWorks(w.wid)"
  9671. alt
  9672. />
  9673. </div>
  9674. <div class="comment" style="min-width: 200px">
  9675. <div class="worksName">
  9676. <div>{{ w.sName }}</div>
  9677. </div>
  9678. <div class="commentList">
  9679. <div class="commentList">
  9680. <div
  9681. class="commentImg"
  9682. @click="
  9683. isLikes(
  9684. w.wid,
  9685. userid,
  9686. 1,
  9687. null,
  9688. w.isLikes,
  9689. w.sName
  9690. )
  9691. "
  9692. >
  9693. <img
  9694. :src="w.isLikes == true ? likes : noLikes"
  9695. alt=""
  9696. />
  9697. </div>
  9698. <div>{{ w.likesCount }}</div>
  9699. </div>
  9700. <div class="commentList" style="margin-right: 15px">
  9701. <div
  9702. class="commentImg"
  9703. @click="commentOther(w, toolIndex, wIndex)"
  9704. >
  9705. <img
  9706. src="../../assets/icon/comment/comment.png"
  9707. alt=""
  9708. />
  9709. </div>
  9710. <div>{{ w.commentCount }}</div>
  9711. </div>
  9712. </div>
  9713. </div>
  9714. </div>
  9715. </div>
  9716. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9717. 未提交
  9718. </div>
  9719. <div
  9720. class="noWorksS"
  9721. v-if="noWorksS && noWorksS[toolIndex].length"
  9722. >
  9723. <div
  9724. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9725. :key="sIndex"
  9726. class="noWorksName"
  9727. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9728. >
  9729. <el-tooltip
  9730. effect="dark"
  9731. :content="s.student"
  9732. placement="top"
  9733. >
  9734. <span>{{ s.student }}</span>
  9735. </el-tooltip>
  9736. </div>
  9737. </div>
  9738. </div>
  9739. <div
  9740. v-if="
  9741. tType &&
  9742. tType == 2 &&
  9743. !sIsOpen &&
  9744. tool.tool.indexOf(48) != -1
  9745. "
  9746. class="worksBox"
  9747. >
  9748. <div
  9749. class="zuoyeYulan"
  9750. v-if="workStudent[toolIndex].length > 0"
  9751. >
  9752. <span class="worksTitle">作业预览</span>
  9753. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9754. </div>
  9755. <div
  9756. class="worksDetailBox"
  9757. v-if="workStudent[toolIndex].length > 0"
  9758. >
  9759. <div
  9760. class="works"
  9761. style="
  9762. width: 200px;
  9763. height: 140px;
  9764. margin: 10px 10px 10px 0;
  9765. box-shadow: 0 0 6px 1px #dfdada;
  9766. "
  9767. v-for="(w, wIndex) in workStudent[toolIndex]"
  9768. :key="wIndex"
  9769. >
  9770. <div class="workImg">
  9771. <img :src="word" @click="openTable(w)" alt />
  9772. <div
  9773. class="answerScore"
  9774. v-if="w.score"
  9775. @click.stop="openScore(w)"
  9776. :class="{
  9777. rightW:
  9778. w.userid == userid || tType == 1 || tType == 4
  9779. }"
  9780. >
  9781. {{ JSON.parse(w.score).wScore }}分
  9782. </div>
  9783. <div
  9784. class="answerScore"
  9785. @click.stop="openScore(w)"
  9786. v-else-if="courseDetail.userid == userid"
  9787. :class="{
  9788. rightW:
  9789. w.userid == userid || tType == 1 || tType == 4
  9790. }"
  9791. >
  9792. 评分
  9793. </div>
  9794. <div
  9795. class="stuLookScore"
  9796. v-if="
  9797. w.userid == userid ||
  9798. (tType == 1 &&
  9799. courseDetail.state == 6 &&
  9800. ((chapInfoList[courseType].chapterInfo[0]
  9801. .taskJson[taskCount].eList &&
  9802. chapInfoList[courseType].chapterInfo[0]
  9803. .taskJson[taskCount].eList.length) ||
  9804. (tool.eList && tool.eList.length)))
  9805. "
  9806. >
  9807. <el-popover
  9808. placement="top"
  9809. width="318"
  9810. trigger="hover"
  9811. >
  9812. <markScore
  9813. :loading="AIloading[toolIndex][wIndex].loading"
  9814. :markScoreVisible="markScoreVisible"
  9815. :ref="`markSco${toolIndex}${wIndex}`"
  9816. @updateLoading="updateLoading"
  9817. @updateDocSco="updateDocSco"
  9818. @refreshOther="refreshOther"
  9819. @markScoreDig="markScoreDig"
  9820. :tool="tool"
  9821. :wIndex="wIndex"
  9822. :scoCon="w"
  9823. :toolIndex="toolIndex"
  9824. :key="refreshKey"
  9825. :stage="courseType"
  9826. :task="taskCount"
  9827. :scoTit="
  9828. chapInfoList[courseType].chapterInfo[0]
  9829. .taskJson[taskCount].eList
  9830. "
  9831. >
  9832. </markScore>
  9833. <div
  9834. @click="
  9835. markScoreDig2(
  9836. w.sName,
  9837. worksStudent,
  9838. w.userid,
  9839. toolIndex,
  9840. chapInfoList[courseType].chapterInfo[0]
  9841. .taskJson[taskCount].eList,
  9842. AIloading[toolIndex][wIndex].loading,
  9843. tool
  9844. )
  9845. "
  9846. slot="reference"
  9847. >
  9848. <span v-if="AIloading[toolIndex][wIndex].sco">
  9849. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9850. </span>
  9851. <span v-else>
  9852. 评分
  9853. </span>
  9854. </div>
  9855. </el-popover>
  9856. </div>
  9857. <img
  9858. class="deleteImg"
  9859. src="../../assets/deleteworks.png"
  9860. v-if="
  9861. w.userid == userid || tType == 1 || tType == 4
  9862. "
  9863. @click.stop="deleteWorks(w.wid)"
  9864. alt
  9865. />
  9866. </div>
  9867. <div class="worksName">
  9868. <div>{{ w.sName }}</div>
  9869. </div>
  9870. </div>
  9871. </div>
  9872. </div>
  9873. <div
  9874. v-if="
  9875. tType &&
  9876. ((tType == 2 && sIsOpen == true) ||
  9877. tType == 1 ||
  9878. tType == 4) &&
  9879. tool.tool.indexOf(52) != -1
  9880. "
  9881. class="worksBox"
  9882. >
  9883. <div
  9884. class="zuoyeYulan"
  9885. style="display: flex;justify-content: space-between;align-items: center;"
  9886. v-if="
  9887. worksStudent.length &&
  9888. worksStudent[toolIndex].length > 0
  9889. "
  9890. >
  9891. <div class="worksTop">
  9892. <div>作业预览</div>
  9893. <div
  9894. class="corOpen"
  9895. @click="contract(toolIndex)"
  9896. v-if="
  9897. isCloseList[toolIndex].isCloseBoolean &&
  9898. isCloseList[toolIndex].isClose == 0
  9899. "
  9900. >
  9901. 折叠
  9902. </div>
  9903. <div
  9904. class="corOpen"
  9905. @click="contract(toolIndex)"
  9906. v-if="isCloseList[toolIndex].isClose == 1"
  9907. >
  9908. 展开
  9909. </div>
  9910. </div>
  9911. <div
  9912. style="display: flex;"
  9913. v-if="
  9914. (courseDetail.userid == userid ||
  9915. (courseDetail.course_teacher &&
  9916. courseDetail.course_teacher.indexOf(userid) !=
  9917. -1)) &&
  9918. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9919. taskCount
  9920. ].eList &&
  9921. chapInfoList[courseType].chapterInfo[0].taskJson[
  9922. taskCount
  9923. ].eList.length) ||
  9924. (tool.eList && tool.eList.length)) &&
  9925. courseDetail.state == 6
  9926. "
  9927. >
  9928. <!-- <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"> -->
  9929. <div
  9930. @click="
  9931. resetLoopEva(
  9932. worksStudent[toolIndex],
  9933. chapInfoList[courseType].chapterInfo[0].taskJson[
  9934. taskCount
  9935. ].eList,
  9936. courseType,
  9937. taskCount,
  9938. toolIndex,
  9939. tool.toolDetail,
  9940. tool
  9941. )
  9942. "
  9943. style="margin-right:10px"
  9944. class="ScoreBtn"
  9945. >
  9946. 一键重置
  9947. </div>
  9948. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9949. <img
  9950. src="../../assets/icon/newIcons/rootImg.png"
  9951. alt=""
  9952. />
  9953. AI评分
  9954. </div>
  9955. <div
  9956. class="ScoreBtn"
  9957. v-else-if="!loopLoading[toolIndex].loading"
  9958. @click="
  9959. loopEva(
  9960. worksStudent[toolIndex],
  9961. chapInfoList[courseType].chapterInfo[0].taskJson[
  9962. taskCount
  9963. ].eList,
  9964. courseType,
  9965. taskCount,
  9966. toolIndex,
  9967. tool.toolDetail,
  9968. chapInfoList[courseType].chapterInfo[0].taskJson[
  9969. taskCount
  9970. ].taskDetail,
  9971. tool
  9972. )
  9973. "
  9974. >
  9975. <img
  9976. src="../../assets/icon/newIcons/rootImg.png"
  9977. alt=""
  9978. />
  9979. AI评分
  9980. </div>
  9981. <div class="ScoreBtn" v-else>
  9982. <img
  9983. src="../../assets/icon/newIcons/rootImg.png"
  9984. alt=""
  9985. />
  9986. 正在评分
  9987. </div>
  9988. </div>
  9989. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9990. </div>
  9991. <div
  9992. :id="'tool-' + toolIndex"
  9993. :style="{
  9994. height:
  9995. isCloseList[toolIndex].isClose == 1
  9996. ? retrnToolHeight('tool-' + toolIndex)
  9997. : 'auto',
  9998. overflow:
  9999. isCloseList[toolIndex].isClose == 1
  10000. ? 'hidden'
  10001. : 'unset'
  10002. }"
  10003. class="worksDetailBox"
  10004. v-if="
  10005. worksStudent.length &&
  10006. worksStudent[toolIndex].length > 0
  10007. "
  10008. >
  10009. <div
  10010. class="works"
  10011. style="
  10012. width: 200px;
  10013. height: 140px;
  10014. margin: 10px 10px 10px 0;
  10015. border-radius: 15px;
  10016. box-shadow: 0 0 6px 1px #dfdada;
  10017. "
  10018. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10019. :key="wIndex"
  10020. :class="w.type == 1 ? 'isTypeOne' : ''"
  10021. >
  10022. <div class="workImg">
  10023. <img :src="word" @click="openWord(w)" alt />
  10024. <!-- @click="openFile(w.works)" -->
  10025. <div
  10026. class="answerScore"
  10027. v-if="w.score"
  10028. @click.stop="openScore(w)"
  10029. :class="{
  10030. rightW:
  10031. w.userid == userid ||
  10032. tType == 1 ||
  10033. tType == 4 ||
  10034. w.ateacher == userid
  10035. }"
  10036. >
  10037. {{ JSON.parse(w.score).wScore }}分
  10038. </div>
  10039. <div
  10040. class="answerScore"
  10041. @click.stop="openScore(w)"
  10042. v-else-if="
  10043. courseDetail.userid == userid &&
  10044. courseDetail.state != 6 &&
  10045. chapInfoList[courseType].chapterInfo[0]
  10046. .taskJson[taskCount].eList &&
  10047. chapInfoList[courseType].chapterInfo[0]
  10048. .taskJson[taskCount].eList.length
  10049. "
  10050. :class="{
  10051. rightW:
  10052. w.userid == userid ||
  10053. tType == 1 ||
  10054. tType == 4 ||
  10055. w.ateacher == userid
  10056. }"
  10057. >
  10058. 评分
  10059. </div>
  10060. <!-- <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"> -->
  10061. <div
  10062. v-else-if="
  10063. (courseDetail.userid == userid ||
  10064. (courseDetail.course_teacher &&
  10065. courseDetail.course_teacher.indexOf(userid) !=
  10066. -1) ||
  10067. (w.userid == userid && sIsOpen)) &&
  10068. courseDetail.state == 6 &&
  10069. ((chapInfoList[courseType].chapterInfo[0]
  10070. .taskJson[taskCount].eList &&
  10071. chapInfoList[courseType].chapterInfo[0]
  10072. .taskJson[taskCount].eList.length) ||
  10073. (tool.eList && tool.eList.length))
  10074. "
  10075. >
  10076. <!-- <div
  10077. class="answerScore"
  10078. @click="markScoreDig(w.userid,toolIndex)"
  10079. :class="{
  10080. rightW:
  10081. w.userid == userid ||
  10082. tType == 1 ||
  10083. tType == 4 ||
  10084. w.ateacher == userid,
  10085. }"
  10086. >
  10087. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10088. </div> -->
  10089. <!-- @show="handleShow(toolIndex,wIndex)"
  10090. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10091. <el-popover
  10092. placement="top"
  10093. width="318"
  10094. :disabled="AIloading[toolIndex][wIndex].loading"
  10095. trigger="hover"
  10096. >
  10097. <markScore
  10098. :loading="AIloading[toolIndex][wIndex].loading"
  10099. :markScoreVisible="markScoreVisible"
  10100. :ref="`markSco${toolIndex}${wIndex}`"
  10101. @updateLoading="updateLoading"
  10102. @updateDocSco="updateDocSco"
  10103. @refreshOther="refreshOther"
  10104. @markScoreDig="markScoreDig"
  10105. :tool="tool"
  10106. :wIndex="wIndex"
  10107. :scoCon="w"
  10108. :toolIndex="toolIndex"
  10109. :key="refreshKey"
  10110. :stage="courseType"
  10111. :task="taskCount"
  10112. :scoTit="
  10113. chapInfoList[courseType].chapterInfo[0]
  10114. .taskJson[taskCount].eList
  10115. "
  10116. >
  10117. </markScore>
  10118. <div
  10119. class="answerScore"
  10120. @click="
  10121. markScoreDig2(
  10122. w.sName,
  10123. worksStudent,
  10124. w.userid,
  10125. toolIndex,
  10126. chapInfoList[courseType].chapterInfo[0]
  10127. .taskJson[taskCount].eList,
  10128. AIloading[toolIndex][wIndex].loading,
  10129. tool
  10130. )
  10131. "
  10132. slot="reference"
  10133. :class="{
  10134. rightW:
  10135. w.userid == userid ||
  10136. tType == 1 ||
  10137. tType == 4 ||
  10138. w.ateacher == userid
  10139. }"
  10140. >
  10141. <span v-if="AIloading[toolIndex][wIndex].sco">
  10142. {{
  10143. AIloading[toolIndex][wIndex].loading
  10144. ? "评分中"
  10145. : AIloading[toolIndex][wIndex].sco + "分"
  10146. }}
  10147. </span>
  10148. <span v-else>
  10149. {{
  10150. AIloading[toolIndex][wIndex].loading
  10151. ? "评分中"
  10152. : "评分"
  10153. }}
  10154. </span>
  10155. </div>
  10156. </el-popover>
  10157. </div>
  10158. <img
  10159. class="deleteImg"
  10160. src="../../assets/deleteworks.png"
  10161. v-if="
  10162. w.userid == userid || tType == 1 || tType == 4
  10163. "
  10164. @click.stop="deleteWorks(w.wid)"
  10165. alt
  10166. />
  10167. </div>
  10168. <div class="comment" style="min-width: 200px">
  10169. <div class="worksName">
  10170. <div>{{ w.sName }}</div>
  10171. </div>
  10172. <div class="commentList">
  10173. <div class="commentList">
  10174. <div
  10175. class="commentImg"
  10176. @click="
  10177. isLikes(
  10178. w.wid,
  10179. userid,
  10180. 1,
  10181. null,
  10182. w.isLikes,
  10183. w.sName
  10184. )
  10185. "
  10186. >
  10187. <img
  10188. :src="w.isLikes == true ? likes : noLikes"
  10189. alt=""
  10190. />
  10191. </div>
  10192. <div>{{ w.likesCount }}</div>
  10193. </div>
  10194. <div class="commentList" style="margin-right: 15px">
  10195. <div
  10196. class="commentImg"
  10197. @click="commentOther(w, toolIndex, wIndex)"
  10198. >
  10199. <img
  10200. src="../../assets/icon/comment/comment.png"
  10201. alt=""
  10202. />
  10203. </div>
  10204. <div>{{ w.commentCount }}</div>
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. </div>
  10210. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10211. 未提交
  10212. </div>
  10213. <div
  10214. class="noWorksS"
  10215. v-if="noWorksS && noWorksS[toolIndex].length"
  10216. >
  10217. <div
  10218. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10219. :key="sIndex"
  10220. class="noWorksName"
  10221. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10222. >
  10223. <el-tooltip
  10224. effect="dark"
  10225. :content="s.student"
  10226. placement="top"
  10227. >
  10228. <span>{{ s.student }}</span>
  10229. </el-tooltip>
  10230. </div>
  10231. </div>
  10232. </div>
  10233. <div
  10234. v-if="
  10235. tType &&
  10236. tType == 2 &&
  10237. !sIsOpen &&
  10238. tool.tool.indexOf(52) != -1
  10239. "
  10240. class="worksBox"
  10241. >
  10242. <div
  10243. class="zuoyeYulan"
  10244. v-if="workStudent[toolIndex].length > 0"
  10245. >
  10246. <span class="worksTitle">作业预览</span>
  10247. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10248. </div>
  10249. <div
  10250. class="worksDetailBox"
  10251. v-if="workStudent[toolIndex].length > 0"
  10252. >
  10253. <div
  10254. class="works"
  10255. style="
  10256. width: 200px;
  10257. height: 140px;
  10258. margin: 10px 10px 10px 0;
  10259. box-shadow: 0 0 6px 1px #dfdada;
  10260. "
  10261. v-for="(w, wIndex) in workStudent[toolIndex]"
  10262. :key="wIndex"
  10263. >
  10264. <div class="workImg">
  10265. <img :src="word" @click="openWord(w)" alt />
  10266. <div
  10267. class="answerScore"
  10268. v-if="w.score"
  10269. @click.stop="openScore(w)"
  10270. :class="{
  10271. rightW:
  10272. w.userid == userid || tType == 1 || tType == 4
  10273. }"
  10274. >
  10275. {{ JSON.parse(w.score).wScore }}分
  10276. </div>
  10277. <div
  10278. class="answerScore"
  10279. @click.stop="openScore(w)"
  10280. v-else-if="courseDetail.userid == userid"
  10281. :class="{
  10282. rightW:
  10283. w.userid == userid || tType == 1 || tType == 4
  10284. }"
  10285. >
  10286. 评分
  10287. </div>
  10288. <div
  10289. class="stuLookScore"
  10290. v-if="
  10291. w.userid == userid ||
  10292. (tType == 1 &&
  10293. courseDetail.state == 6 &&
  10294. ((chapInfoList[courseType].chapterInfo[0]
  10295. .taskJson[taskCount].eList &&
  10296. chapInfoList[courseType].chapterInfo[0]
  10297. .taskJson[taskCount].eList.length) ||
  10298. (tool.eList && tool.eList.length)))
  10299. "
  10300. >
  10301. <el-popover
  10302. placement="top"
  10303. width="318"
  10304. trigger="hover"
  10305. >
  10306. <markScore
  10307. :loading="AIloading[toolIndex][wIndex].loading"
  10308. :markScoreVisible="markScoreVisible"
  10309. :ref="`markSco${toolIndex}${wIndex}`"
  10310. @updateLoading="updateLoading"
  10311. @updateDocSco="updateDocSco"
  10312. @refreshOther="refreshOther"
  10313. @markScoreDig="markScoreDig"
  10314. :tool="tool"
  10315. :wIndex="wIndex"
  10316. :scoCon="w"
  10317. :toolIndex="toolIndex"
  10318. :key="refreshKey"
  10319. :stage="courseType"
  10320. :task="taskCount"
  10321. :scoTit="
  10322. chapInfoList[courseType].chapterInfo[0]
  10323. .taskJson[taskCount].eList
  10324. "
  10325. >
  10326. </markScore>
  10327. <div
  10328. @click="
  10329. markScoreDig2(
  10330. w.sName,
  10331. worksStudent,
  10332. w.userid,
  10333. toolIndex,
  10334. chapInfoList[courseType].chapterInfo[0]
  10335. .taskJson[taskCount].eList,
  10336. AIloading[toolIndex][wIndex].loading,
  10337. tool
  10338. )
  10339. "
  10340. slot="reference"
  10341. >
  10342. <span v-if="AIloading[toolIndex][wIndex].sco">
  10343. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10344. </span>
  10345. <span v-else>
  10346. 评分
  10347. </span>
  10348. </div>
  10349. </el-popover>
  10350. </div>
  10351. <img
  10352. class="deleteImg"
  10353. src="../../assets/deleteworks.png"
  10354. v-if="
  10355. w.userid == userid || tType == 1 || tType == 4
  10356. "
  10357. @click.stop="deleteWorks(w.wid)"
  10358. alt
  10359. />
  10360. </div>
  10361. <div class="worksName">
  10362. <div>{{ w.sName }}</div>
  10363. </div>
  10364. </div>
  10365. </div>
  10366. </div>
  10367. <div
  10368. v-if="tool.tool.indexOf(49) != -1"
  10369. class="xuan_right_box"
  10370. style="margin: 0 15px 0 25px; width: 93%"
  10371. >
  10372. <div
  10373. v-if="courseDetail.userid == userid"
  10374. style="
  10375. display: flex;
  10376. justify-content: flex-end;
  10377. margin-right: 10px;
  10378. "
  10379. >
  10380. <el-button
  10381. type="primary"
  10382. size="small"
  10383. @click="addTools(49, toolIndex, taskCount)"
  10384. >分组设置</el-button
  10385. >
  10386. </div>
  10387. <div
  10388. v-if="groupStudentUid[toolIndex]"
  10389. class="group_staic_box"
  10390. >
  10391. <div
  10392. v-for="(gp, gd) in tool.groupJson.group"
  10393. :key="gd"
  10394. class="group_staic"
  10395. >
  10396. <span> {{ gp.name }}</span>
  10397. <span>
  10398. 目前人数{{
  10399. groupStudentUid[toolIndex][gd].length
  10400. }}人</span
  10401. >
  10402. </div>
  10403. </div>
  10404. </div>
  10405. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10406. <div
  10407. class="zuoyeYulan"
  10408. v-if="
  10409. worksStudent.length &&
  10410. worksStudent[toolIndex].length > 0
  10411. "
  10412. >
  10413. <span class="worksTitle">作业预览</span>
  10414. </div>
  10415. <div>
  10416. <div
  10417. class="group_workBox"
  10418. v-for="(g, gindex) in tool.groupJson.group"
  10419. :key="gindex"
  10420. >
  10421. <div
  10422. class="group_box"
  10423. v-if="
  10424. groupStudentUid[toolIndex] &&
  10425. worksStudent[toolIndex] &&
  10426. (worksStudent[toolIndex][gindex].length ||
  10427. groupStudentUid[toolIndex][gindex].indexOf(
  10428. userid
  10429. ) != -1)
  10430. "
  10431. >
  10432. <div class="group_title">
  10433. <el-tooltip
  10434. class="item"
  10435. effect="light"
  10436. :content="g.name"
  10437. placement="top"
  10438. >
  10439. <div class="group_name">{{ g.name }}</div>
  10440. </el-tooltip>
  10441. <el-button
  10442. type="primary"
  10443. v-if="
  10444. groupStudentUid[toolIndex][gindex].indexOf(
  10445. userid
  10446. ) != -1
  10447. "
  10448. @click="groupUpload(toolIndex, taskCount, gindex)"
  10449. >上传作业</el-button
  10450. >
  10451. </div>
  10452. <div class="group_work">
  10453. <div
  10454. class="works"
  10455. style="
  10456. width: 200px;
  10457. height: 140px;
  10458. margin: 10px 10px 10px 0;
  10459. border-radius: 15px;
  10460. box-shadow: 0 0 6px 1px #dfdada;
  10461. "
  10462. v-for="(w, wIndex) in worksStudent[toolIndex][
  10463. gindex
  10464. ]"
  10465. :key="wIndex"
  10466. :class="w.type == 1 ? 'isTypeOne' : ''"
  10467. >
  10468. <div class="workImg" v-if="w.type == 0">
  10469. <img
  10470. :src="w.works"
  10471. @click="previewImg(w.works, w)"
  10472. alt
  10473. />
  10474. <div
  10475. class="answerScore"
  10476. v-if="w.score"
  10477. @click.stop="openScore(w)"
  10478. :class="{
  10479. rightW:
  10480. w.userid == userid ||
  10481. tType == 1 ||
  10482. tType == 4 ||
  10483. w.ateacher == userid
  10484. }"
  10485. >
  10486. {{ JSON.parse(w.score).wScore }}分
  10487. </div>
  10488. <div
  10489. class="answerScore"
  10490. @click.stop="openScore(w)"
  10491. v-else-if="courseDetail.userid == userid"
  10492. :class="{
  10493. rightW:
  10494. w.userid == userid ||
  10495. tType == 1 ||
  10496. tType == 4 ||
  10497. w.ateacher == userid
  10498. }"
  10499. >
  10500. 评分
  10501. </div>
  10502. <img
  10503. class="deleteImg"
  10504. src="../../assets/deleteworks.png"
  10505. v-if="
  10506. w.userid == userid ||
  10507. tType == 1 ||
  10508. tType == 4
  10509. "
  10510. @click.stop="deleteWorks(w.wid)"
  10511. alt
  10512. />
  10513. </div>
  10514. <div class="workImg" v-if="w.type == 1">
  10515. <img
  10516. :src="word"
  10517. @click="openFile(w.works)"
  10518. alt
  10519. />
  10520. <!-- @click="openFile(w.works)" -->
  10521. <div
  10522. class="answerScore"
  10523. v-if="w.score"
  10524. @click.stop="openScore(w)"
  10525. :class="{
  10526. rightW:
  10527. w.userid == userid ||
  10528. tType == 1 ||
  10529. tType == 4 ||
  10530. w.ateacher == userid
  10531. }"
  10532. >
  10533. {{ JSON.parse(w.score).wScore }}分
  10534. </div>
  10535. <div
  10536. class="answerScore"
  10537. @click.stop="openScore(w)"
  10538. v-else-if="courseDetail.userid == userid"
  10539. :class="{
  10540. rightW:
  10541. w.userid == userid ||
  10542. tType == 1 ||
  10543. tType == 4 ||
  10544. w.ateacher == userid
  10545. }"
  10546. >
  10547. 评分
  10548. </div>
  10549. <img
  10550. class="deleteImg"
  10551. src="../../assets/deleteworks.png"
  10552. v-if="
  10553. w.userid == userid ||
  10554. tType == 1 ||
  10555. tType == 4
  10556. "
  10557. @click.stop="deleteWorks(w.wid)"
  10558. alt
  10559. />
  10560. </div>
  10561. <div class="workImg" v-if="w.type == 3">
  10562. <img
  10563. style="cursor: pointer"
  10564. :src="video"
  10565. @click="openVideo(w)"
  10566. alt
  10567. />
  10568. <!-- @click="openVideo(w.works)" -->
  10569. <div
  10570. class="answerScore"
  10571. v-if="w.score"
  10572. @click.stop="openScore(w)"
  10573. :class="{
  10574. rightW:
  10575. w.userid == userid ||
  10576. tType == 1 ||
  10577. tType == 4 ||
  10578. w.ateacher == userid
  10579. }"
  10580. >
  10581. {{ JSON.parse(w.score).wScore }}分
  10582. </div>
  10583. <div
  10584. class="answerScore"
  10585. @click.stop="openScore(w)"
  10586. v-else-if="courseDetail.userid == userid"
  10587. :class="{
  10588. rightW:
  10589. w.userid == userid ||
  10590. tType == 1 ||
  10591. tType == 4 ||
  10592. w.ateacher == userid
  10593. }"
  10594. >
  10595. 评分
  10596. </div>
  10597. <img
  10598. class="deleteImg"
  10599. src="../../assets/deleteworks.png"
  10600. v-if="
  10601. w.userid == userid ||
  10602. tType == 1 ||
  10603. tType == 4
  10604. "
  10605. @click.stop="deleteWorks(w.wid)"
  10606. alt
  10607. />
  10608. </div>
  10609. <div class="workImg" v-if="w.type == 12">
  10610. <img
  10611. style="cursor: pointer"
  10612. :src="word2"
  10613. @click="downloadFile(w.works,w.userid)"
  10614. alt
  10615. />
  10616. <!-- @click="openVideo(w.works)" -->
  10617. <div
  10618. class="answerScore"
  10619. v-if="w.score"
  10620. @click.stop="openScore(w)"
  10621. :class="{
  10622. rightW:
  10623. w.userid == userid ||
  10624. tType == 1 ||
  10625. tType == 4 ||
  10626. w.ateacher == userid
  10627. }"
  10628. >
  10629. {{ JSON.parse(w.score).wScore }}分
  10630. </div>
  10631. <div
  10632. class="answerScore"
  10633. @click.stop="openScore(w)"
  10634. v-else-if="courseDetail.userid == userid"
  10635. :class="{
  10636. rightW:
  10637. w.userid == userid ||
  10638. tType == 1 ||
  10639. tType == 4 ||
  10640. w.ateacher == userid
  10641. }"
  10642. >
  10643. 评分
  10644. </div>
  10645. <img
  10646. class="deleteImg"
  10647. src="../../assets/deleteworks.png"
  10648. v-if="
  10649. w.userid == userid ||
  10650. tType == 1 ||
  10651. tType == 4
  10652. "
  10653. @click.stop="deleteWorks(w.wid)"
  10654. alt
  10655. />
  10656. </div>
  10657. <div class="comment" style="min-width: 200px">
  10658. <div class="worksName">
  10659. <div>{{ w.sName }}</div>
  10660. </div>
  10661. <div class="commentList">
  10662. <div class="commentList">
  10663. <div
  10664. class="commentImg"
  10665. @click="
  10666. isLikes(
  10667. w.wid,
  10668. userid,
  10669. 1,
  10670. null,
  10671. w.isLikes,
  10672. w.sName
  10673. )
  10674. "
  10675. >
  10676. <img
  10677. :src="
  10678. w.isLikes == true ? likes : noLikes
  10679. "
  10680. alt=""
  10681. />
  10682. </div>
  10683. <div>{{ w.likesCount }}</div>
  10684. </div>
  10685. <div
  10686. class="commentList"
  10687. style="margin-right: 15px"
  10688. >
  10689. <div
  10690. class="commentImg"
  10691. @click="
  10692. commentOther(
  10693. w,
  10694. toolIndex,
  10695. wIndex,
  10696. gindex
  10697. )
  10698. "
  10699. >
  10700. <img
  10701. src="../../assets/icon/comment/comment.png"
  10702. alt=""
  10703. />
  10704. </div>
  10705. <div>{{ w.commentCount }}</div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. </div>
  10715. <div
  10716. style="width:92%;margin: 0 0 0 40px;"
  10717. v-if="
  10718. courseDetail.state == 6 && tool.eList && tool.eList.length
  10719. "
  10720. >
  10721. <evaTable :eList="tool.eList"></evaTable>
  10722. </div>
  10723. </div>
  10724. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10725. 上传文件
  10726. <input
  10727. type="file"
  10728. accept="image/png, image/gif, image/jpeg"
  10729. style="display: none"
  10730. @change="beforeUpload1($event, 2, index)"
  10731. />
  10732. </div>-->
  10733. </div>
  10734. </div>
  10735. <!-- <div
  10736. class="vedioBox"
  10737. style="margin-top: 10px"
  10738. v-if="
  10739. courseDetail.userid == userid ||
  10740. (courseDetail.course_teacher &&
  10741. courseDetail.course_teacher.indexOf(userid) != -1)
  10742. "
  10743. :style="{
  10744. borderRadius:
  10745. !(
  10746. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10747. .toolChoose[0].tool &&
  10748. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10749. .toolChoose[0].tool.length > 0
  10750. ) &&
  10751. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10752. .taskDetail == '' &&
  10753. vChapterData[taskCount].length == 0 &&
  10754. fileC[taskCount].length == 0
  10755. ? '0 0 20px 20px'
  10756. : '20px',
  10757. }"
  10758. >
  10759. <div
  10760. class="queTop"
  10761. @click="isClose = !isClose"
  10762. style="
  10763. padding: 15px 0 15px 37px;
  10764. justify-content: space-between;
  10765. "
  10766. >
  10767. <div class="queTopTitle">新增工具</div>
  10768. <div class="queTopRight">
  10769. <div class="queTopClose" v-if="isClose == 0">
  10770. 展开
  10771. <div class="closeImg">
  10772. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10773. </div>
  10774. </div>
  10775. <div class="queTopClose" v-if="isClose == 1">
  10776. 折叠
  10777. <div class="openImg">
  10778. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10779. </div>
  10780. </div>
  10781. <el-button
  10782. style="margin: 0 30px 0 auto"
  10783. type="primary"
  10784. size="small"
  10785. v-if="isClose == 1 && checktoolArray.length > 0"
  10786. @click.stop="addToolChoose"
  10787. >确定</el-button
  10788. >
  10789. </div>
  10790. </div>
  10791. <div
  10792. class="tool_work_box"
  10793. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10794. >
  10795. <div class="tool_box">
  10796. <div class="tool_type_box">
  10797. <div class="chooseWho">
  10798. <div
  10799. :class="toolType == 0 ? 'isChooseActive' : ''"
  10800. @click="(toolType = 0), $forceUpdate()"
  10801. >
  10802. 互动类
  10803. </div>
  10804. <div
  10805. :class="toolType == 1 ? 'isChooseActive' : ''"
  10806. @click="(toolType = 1), $forceUpdate()"
  10807. >
  10808. 思维类
  10809. </div>
  10810. <div
  10811. :class="toolType == 2 ? 'isChooseActive' : ''"
  10812. @click="(toolType = 2), $forceUpdate()"
  10813. >
  10814. 测评类
  10815. </div>
  10816. <div
  10817. :class="toolType == 3 ? 'isChooseActive' : ''"
  10818. @click="(toolType = 3), $forceUpdate()"
  10819. >
  10820. 编程类
  10821. </div>
  10822. <div
  10823. :class="toolType == 5 ? 'isChooseActive' : ''"
  10824. @click="(toolType = 5), $forceUpdate()"
  10825. >
  10826. 学科类
  10827. </div>
  10828. </div>
  10829. </div>
  10830. <div>
  10831. <div class="toolSort" v-if="toolType == 0">
  10832. <div class="tool">
  10833. <div class="whiteBIcon" @click="addTools2(10)">
  10834. <img
  10835. src="../../assets/icon/thirdToolList/time.png"
  10836. alt
  10837. />
  10838. <div style="margin: 5px 0">倒计时</div>
  10839. </div>
  10840. <div class="check" @click="addTools2(10)">
  10841. <img
  10842. src="../../assets/icon/checkNo.png"
  10843. alt
  10844. v-if="checktoolArray.indexOf(10) == -1"
  10845. />
  10846. <div class="checkDiv" v-else>
  10847. <img src="../../assets/icon/checkedIs.png" alt /><span
  10848. >已选择</span
  10849. >
  10850. </div>
  10851. </div>
  10852. </div>
  10853. <div class="tool">
  10854. <div class="whiteBIcon" @click="addTools2(65)">
  10855. <img
  10856. src="../../assets/icon/firstToolList/pickPeople.png"
  10857. alt
  10858. />
  10859. <div style="margin: 5px 0">挑人</div>
  10860. </div>
  10861. <div class="check" @click="addTools2(65)">
  10862. <img
  10863. src="../../assets/icon/checkNo.png"
  10864. alt
  10865. v-if="checktoolArray.indexOf(65) == -1"
  10866. />
  10867. <div class="checkDiv" v-else>
  10868. <img src="../../assets/icon/checkedIs.png" alt /><span
  10869. >已选择</span
  10870. >
  10871. </div>
  10872. </div>
  10873. </div>
  10874. </div>
  10875. <div class="toolSort" v-if="toolType == 1">
  10876. <div class="tool">
  10877. <div class="whiteBIcon" @click="addTools2(7)">
  10878. <img
  10879. src="../../assets/icon/secondToolList/mindNetwork.png"
  10880. alt
  10881. />
  10882. <div style="margin: 5px 0">思维网格</div>
  10883. </div>
  10884. <div class="check" @click="addTools2(7)">
  10885. <img
  10886. src="../../assets/icon/checkNo.png"
  10887. alt
  10888. v-if="checktoolArray.indexOf(7) == -1"
  10889. />
  10890. <div class="checkDiv" v-else>
  10891. <img src="../../assets/icon/checkedIs.png" alt /><span
  10892. >已选择</span
  10893. >
  10894. </div>
  10895. </div>
  10896. </div>
  10897. <div class="tool">
  10898. <div class="whiteBIcon" @click="addTools2(1)">
  10899. <img
  10900. src="../../assets/icon/secondToolList/whiteBoard.png"
  10901. alt
  10902. />
  10903. <div style="margin: 5px 0">电子白板</div>
  10904. </div>
  10905. <div class="check" @click="addTools2(1)">
  10906. <img
  10907. src="../../assets/icon/checkNo.png"
  10908. alt
  10909. v-if="checktoolArray.indexOf(1) == -1"
  10910. />
  10911. <div class="checkDiv" v-else>
  10912. <img src="../../assets/icon/checkedIs.png" alt /><span
  10913. >已选择</span
  10914. >
  10915. </div>
  10916. </div>
  10917. </div>
  10918. <div class="tool">
  10919. <div class="whiteBIcon" @click="addTools2(52)">
  10920. <img
  10921. src="../../assets/icon/fourthToolList/text.png"
  10922. alt
  10923. />
  10924. <div style="margin: 5px 0">文档</div>
  10925. </div>
  10926. <div class="check" @click="addTools2(52)">
  10927. <img
  10928. src="../../assets/icon/checkNo.png"
  10929. alt
  10930. v-if="checktoolArray.indexOf(52) == -1"
  10931. />
  10932. <div class="checkDiv" v-else>
  10933. <img src="../../assets/icon/checkedIs.png" alt /><span
  10934. >已选择</span
  10935. >
  10936. </div>
  10937. </div>
  10938. </div>
  10939. <div class="tool">
  10940. <div class="whiteBIcon" @click="addTools2(3)">
  10941. <img
  10942. src="../../assets/icon/secondToolList/mindMapping.png"
  10943. alt
  10944. />
  10945. <div style="margin: 5px 0">思维导图</div>
  10946. </div>
  10947. <div class="check" @click="addTools2(3)">
  10948. <img
  10949. src="../../assets/icon/checkNo.png"
  10950. alt
  10951. v-if="checktoolArray.indexOf(3) == -1"
  10952. />
  10953. <div class="checkDiv" v-else>
  10954. <img src="../../assets/icon/checkedIs.png" alt /><span
  10955. >已选择</span
  10956. >
  10957. </div>
  10958. </div>
  10959. </div>
  10960. <div class="tool">
  10961. <div class="whiteBIcon" @click="addTools2(48)">
  10962. <img
  10963. src="../../assets/icon/fourthToolList/table.png"
  10964. alt
  10965. />
  10966. <div style="margin: 5px 0">表格</div>
  10967. </div>
  10968. <div class="check" @click="addTools2(48)">
  10969. <img
  10970. src="../../assets/icon/checkNo.png"
  10971. alt
  10972. v-if="checktoolArray.indexOf(48) == -1"
  10973. />
  10974. <div class="checkDiv" v-else>
  10975. <img src="../../assets/icon/checkedIs.png" alt /><span
  10976. >已选择</span
  10977. >
  10978. </div>
  10979. </div>
  10980. </div>
  10981. </div>
  10982. <div class="toolSort" v-if="toolType == 6">
  10983. <div v-show="tooC == 49">
  10984. <img
  10985. @click="addTools(tooC, toolIndex, taskCount)"
  10986. src="../../assets/icon/fourthToolList/group.png"
  10987. alt
  10988. />
  10989. <div style="margin: 5px 0">学生分组</div>
  10990. </div>
  10991. </div>
  10992. <div class="toolSort" v-if="toolType == 2">
  10993. <div class="tool">
  10994. <div class="whiteBIcon" @click="addTools2(16)">
  10995. <img
  10996. src="../../assets/icon/thirdToolList/work.png"
  10997. alt
  10998. />
  10999. <div style="margin: 5px 0">作业提交</div>
  11000. </div>
  11001. <div class="check" @click="addTools2(16)">
  11002. <img
  11003. src="../../assets/icon/checkNo.png"
  11004. alt
  11005. v-if="checktoolArray.indexOf(16) == -1"
  11006. />
  11007. <div class="checkDiv" v-else>
  11008. <img src="../../assets/icon/checkedIs.png" alt /><span
  11009. >已选择</span
  11010. >
  11011. </div>
  11012. </div>
  11013. </div>
  11014. <div class="tool">
  11015. <div class="whiteBIcon" @click="addTools2(50)">
  11016. <img
  11017. src="../../assets/icon/thirdToolList/plwork.png"
  11018. alt
  11019. />
  11020. <div style="margin: 5px 0">批量上传</div>
  11021. </div>
  11022. <div class="check" @click="addTools2(50)">
  11023. <img
  11024. src="../../assets/icon/checkNo.png"
  11025. alt
  11026. v-if="checktoolArray.indexOf(50) == -1"
  11027. />
  11028. <div class="checkDiv" v-else>
  11029. <img src="../../assets/icon/checkedIs.png" alt /><span
  11030. >已选择</span
  11031. >
  11032. </div>
  11033. </div>
  11034. </div>
  11035. </div>
  11036. <div class="toolSort" v-if="toolType == 3">
  11037. <div class="tool">
  11038. <div class="whiteBIcon" @click="addTools2(18)">
  11039. <img
  11040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11041. alt
  11042. />
  11043. <div style="margin: 5px 0">训练平台</div>
  11044. </div>
  11045. <div class="check" @click="addTools2(18)">
  11046. <img
  11047. src="../../assets/icon/checkNo.png"
  11048. alt
  11049. v-if="checktoolArray.indexOf(18) == -1"
  11050. />
  11051. <div class="checkDiv" v-else>
  11052. <img src="../../assets/icon/checkedIs.png" alt /><span
  11053. >已选择</span
  11054. >
  11055. </div>
  11056. </div>
  11057. </div>
  11058. <div class="tool">
  11059. <div class="whiteBIcon" @click="addTools2(21)">
  11060. <img
  11061. src="../../assets/icon/fourthToolList/program.png"
  11062. alt
  11063. />
  11064. <div style="margin: 5px 0">AIoT Blockly</div>
  11065. </div>
  11066. <div class="check" @click="addTools2(21)">
  11067. <img
  11068. src="../../assets/icon/checkNo.png"
  11069. alt
  11070. v-if="checktoolArray.indexOf(21) == -1"
  11071. />
  11072. <div class="checkDiv" v-else>
  11073. <img src="../../assets/icon/checkedIs.png" alt /><span
  11074. >已选择</span
  11075. >
  11076. </div>
  11077. </div>
  11078. </div>
  11079. <div class="tool">
  11080. <div class="whiteBIcon" @click="addTools2(23)">
  11081. <img
  11082. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11083. alt
  11084. />
  11085. <div style="margin: 5px 0">AI Python</div>
  11086. </div>
  11087. <div class="check" @click="addTools2(23)">
  11088. <img
  11089. src="../../assets/icon/checkNo.png"
  11090. alt
  11091. v-if="checktoolArray.indexOf(23) == -1"
  11092. />
  11093. <div class="checkDiv" v-else>
  11094. <img src="../../assets/icon/checkedIs.png" alt /><span
  11095. >已选择</span
  11096. >
  11097. </div>
  11098. </div>
  11099. </div>
  11100. <div class="tool">
  11101. <div class="whiteBIcon" @click="addTools2(24)">
  11102. <img
  11103. src="../../assets/icon/fourthToolList/AIprogram.png"
  11104. alt
  11105. />
  11106. <div style="margin: 5px 0">AI Blockly</div>
  11107. </div>
  11108. <div class="check" @click="addTools2(24)">
  11109. <img
  11110. src="../../assets/icon/checkNo.png"
  11111. alt
  11112. v-if="checktoolArray.indexOf(24) == -1"
  11113. />
  11114. <div class="checkDiv" v-else>
  11115. <img src="../../assets/icon/checkedIs.png" alt /><span
  11116. >已选择</span
  11117. >
  11118. </div>
  11119. </div>
  11120. </div>
  11121. <div class="tool">
  11122. <div class="whiteBIcon" @click="addTools2(32)">
  11123. <img
  11124. src="../../assets/icon/thirdToolList/code.png"
  11125. alt
  11126. />
  11127. <div style="margin: 5px 0">源码编辑</div>
  11128. </div>
  11129. <div class="check" @click="addTools2(32)">
  11130. <img
  11131. src="../../assets/icon/checkNo.png"
  11132. alt
  11133. v-if="checktoolArray.indexOf(32) == -1"
  11134. />
  11135. <div class="checkDiv" v-else>
  11136. <img src="../../assets/icon/checkedIs.png" alt /><span
  11137. >已选择</span
  11138. >
  11139. </div>
  11140. </div>
  11141. </div>
  11142. <div class="tool">
  11143. <div class="whiteBIcon" @click="addTools2(57)">
  11144. <img
  11145. src="../../assets/icon/fourthToolList/cocopi.png"
  11146. alt
  11147. />
  11148. <div style="margin: 5px 0">CocoPi</div>
  11149. </div>
  11150. <div class="check" @click="addTools2(57)">
  11151. <img
  11152. src="../../assets/icon/checkNo.png"
  11153. alt
  11154. v-if="checktoolArray.indexOf(57) == -1"
  11155. />
  11156. <div class="checkDiv" v-else>
  11157. <img src="../../assets/icon/checkedIs.png" alt /><span
  11158. >已选择</span
  11159. >
  11160. </div>
  11161. </div>
  11162. </div>
  11163. <div class="tool">
  11164. <div class="whiteBIcon" @click="addTools2(63)">
  11165. <img
  11166. src="../../assets/icon/fourthToolList/Wood.png"
  11167. alt
  11168. />
  11169. <div style="margin: 5px 0">海龟编程</div>
  11170. </div>
  11171. <div class="check" @click="addTools2(63)">
  11172. <img
  11173. src="../../assets/icon/checkNo.png"
  11174. alt
  11175. v-if="checktoolArray.indexOf(63) == -1"
  11176. />
  11177. <div class="checkDiv" v-else>
  11178. <img src="../../assets/icon/checkedIs.png" alt /><span
  11179. >已选择</span
  11180. >
  11181. </div>
  11182. </div>
  11183. </div>
  11184. </div>
  11185. <div class="toolSort" v-if="toolType == 5">
  11186. <div class="tool">
  11187. <div class="whiteBIcon" @click="addTools2(28)">
  11188. <img
  11189. src="../../assets/icon/secondToolList/translation.png"
  11190. alt
  11191. />
  11192. <div style="margin: 5px 0">翻译</div>
  11193. </div>
  11194. <div class="check" @click="addTools2(28)">
  11195. <img
  11196. src="../../assets/icon/checkNo.png"
  11197. alt
  11198. v-if="checktoolArray.indexOf(28) == -1"
  11199. />
  11200. <div class="checkDiv" v-else>
  11201. <img src="../../assets/icon/checkedIs.png" alt /><span
  11202. >已选择</span
  11203. >
  11204. </div>
  11205. </div>
  11206. </div>
  11207. <div class="tool">
  11208. <div class="whiteBIcon" @click="addTools2(31)">
  11209. <img
  11210. src="../../assets/icon/secondToolList/networkPanel.png"
  11211. alt
  11212. />
  11213. <div style="margin: 5px 0">数字画板</div>
  11214. </div>
  11215. <div class="check" @click="addTools2(31)">
  11216. <img
  11217. src="../../assets/icon/checkNo.png"
  11218. alt
  11219. v-if="checktoolArray.indexOf(31) == -1"
  11220. />
  11221. <div class="checkDiv" v-else>
  11222. <img src="../../assets/icon/checkedIs.png" alt /><span
  11223. >已选择</span
  11224. >
  11225. </div>
  11226. </div>
  11227. </div>
  11228. <div class="tool">
  11229. <div class="whiteBIcon" @click="addTools2(39)">
  11230. <img
  11231. src="../../assets/icon/secondToolList/GeoGebra.png"
  11232. alt
  11233. />
  11234. <div style="margin: 5px 0">GeoGebra</div>
  11235. </div>
  11236. <div class="check" @click="addTools2(39)">
  11237. <img
  11238. src="../../assets/icon/checkNo.png"
  11239. alt
  11240. v-if="checktoolArray.indexOf(39) == -1"
  11241. />
  11242. <div class="checkDiv" v-else>
  11243. <img src="../../assets/icon/checkedIs.png" alt /><span
  11244. >已选择</span
  11245. >
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <div class="tool">
  11250. <div class="whiteBIcon" @click="addTools2(66)">
  11251. <img
  11252. src="../../assets/icon/secondToolList/formulaEdi.png"
  11253. alt
  11254. />
  11255. <div style="margin: 5px 0">公式编辑</div>
  11256. </div>
  11257. <div class="check" @click="addTools2(66)">
  11258. <img
  11259. src="../../assets/icon/checkNo.png"
  11260. alt
  11261. v-if="checktoolArray.indexOf(66) == -1"
  11262. />
  11263. <div class="checkDiv" v-else>
  11264. <img src="../../assets/icon/checkedIs.png" alt /><span
  11265. >已选择</span
  11266. >
  11267. </div>
  11268. </div>
  11269. </div>
  11270. <div class="tool">
  11271. <div class="whiteBIcon" @click="addTools2(67)">
  11272. <img
  11273. src="../../assets/icon/secondToolList/molStr.png"
  11274. alt
  11275. />
  11276. <div style="margin: 5px 0">分子结构</div>
  11277. </div>
  11278. <div class="check" @click="addTools2(67)">
  11279. <img
  11280. src="../../assets/icon/checkNo.png"
  11281. alt
  11282. v-if="checktoolArray.indexOf(67) == -1"
  11283. />
  11284. <div class="checkDiv" v-else>
  11285. <img src="../../assets/icon/checkedIs.png" alt /><span
  11286. >已选择</span
  11287. >
  11288. </div>
  11289. </div>
  11290. </div>
  11291. <div class="tool">
  11292. <div class="whiteBIcon" @click="addTools2(68)">
  11293. <img
  11294. src="../../assets/icon/secondToolList/timeAxis.png"
  11295. alt
  11296. />
  11297. <div style="margin: 5px 0">时间轴</div>
  11298. </div>
  11299. <div class="check" @click="addTools2(68)">
  11300. <img
  11301. src="../../assets/icon/checkNo.png"
  11302. alt
  11303. v-if="checktoolArray.indexOf(68) == -1"
  11304. />
  11305. <div class="checkDiv" v-else>
  11306. <img src="../../assets/icon/checkedIs.png" alt /><span
  11307. >已选择</span
  11308. >
  11309. </div>
  11310. </div>
  11311. </div>
  11312. </div>
  11313. <div class="toolSort" v-if="toolType == 7">
  11314. <div class="tool">
  11315. <div class="whiteBIcon" @click="addTools2(40)">
  11316. <img
  11317. src="../../assets/icon/secondToolList/eval.png"
  11318. alt
  11319. />
  11320. <div style="margin: 5px 0">个人评价</div>
  11321. </div>
  11322. <div class="check" @click="addTools2(40)">
  11323. <img
  11324. src="../../assets/icon/checkNo.png"
  11325. alt
  11326. v-if="checktoolArray.indexOf(40) == -1"
  11327. />
  11328. <div class="checkDiv" v-else>
  11329. <img src="../../assets/icon/checkedIs.png" alt /><span
  11330. >已选择</span
  11331. >
  11332. </div>
  11333. </div>
  11334. </div>
  11335. </div>
  11336. <div class="toolSort" v-if="toolType == 4">
  11337. <div class="tool">
  11338. <div class="whiteBIcon" @click="addTools2(26)">
  11339. <img
  11340. src="../../assets/icon/thirdToolList/courseDesign.png"
  11341. alt
  11342. />
  11343. <div style="margin: 5px 0">课程设计</div>
  11344. </div>
  11345. <div class="check" @click="addTools2(26)">
  11346. <img
  11347. src="../../assets/icon/checkNo.png"
  11348. alt
  11349. v-if="checktoolArray.indexOf(26) == -1"
  11350. />
  11351. <div class="checkDiv" v-else>
  11352. <img src="../../assets/icon/checkedIs.png" alt /><span
  11353. >已选择</span
  11354. >
  11355. </div>
  11356. </div>
  11357. </div>
  11358. <div class="tool">
  11359. <div class="whiteBIcon" @click="addTools2(25)">
  11360. <img
  11361. src="../../assets/icon/thirdToolList/evalua.png"
  11362. alt
  11363. />
  11364. <div style="margin: 5px 0">目标管理</div>
  11365. </div>
  11366. <div class="check" @click="addTools2(25)">
  11367. <img
  11368. src="../../assets/icon/checkNo.png"
  11369. alt
  11370. v-if="checktoolArray.indexOf(25) == -1"
  11371. />
  11372. <div class="checkDiv" v-else>
  11373. <img src="../../assets/icon/checkedIs.png" alt /><span
  11374. >已选择</span
  11375. >
  11376. </div>
  11377. </div>
  11378. </div>
  11379. </div>
  11380. </div>
  11381. </div>
  11382. </div>
  11383. </div> -->
  11384. <div
  11385. class="vedioBox"
  11386. style="margin-top: 10px; border-radius: 20px"
  11387. v-if="
  11388. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11389. .eList &&
  11390. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11391. .eList.length &&
  11392. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11393. .eList.length > 0 &&
  11394. tType != 2
  11395. "
  11396. >
  11397. <div
  11398. class="queTop"
  11399. style="
  11400. font-size: 20px;
  11401. padding: 15px 0 15px 37px;
  11402. font-weight: bold;
  11403. "
  11404. >
  11405. <!-- <div class="question" style="width: 30px">
  11406. <img src="../assets/icon/toolIcon.png" alt />
  11407. </div>
  11408. <div class="queTitle">
  11409. <div>工具</div>
  11410. </div>-->
  11411. 评一评
  11412. </div>
  11413. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11414. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  11415. <el-table
  11416. :data="
  11417. chapInfoList[courseType].chapterInfo[0].taskJson[
  11418. taskCount
  11419. ].eList
  11420. "
  11421. :header-cell-style="{ background: '#F0F4FA' }"
  11422. :row-class-name="tableRowClassName"
  11423. border
  11424. stripe
  11425. style="width: 100%"
  11426. >
  11427. <el-table-column
  11428. label="评价名称"
  11429. align="center"
  11430. >
  11431. <template slot-scope="scope"
  11432. ><div>{{ scope.row.value }}</div></template
  11433. >
  11434. </el-table-column>
  11435. <el-table-column
  11436. label="评价描述"
  11437. align="center"
  11438. >
  11439. <template slot-scope="scope"
  11440. ><div>
  11441. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11442. </div></template
  11443. >
  11444. </el-table-column>
  11445. <el-table-column label="目标" align="center">
  11446. <template slot-scope="scope"
  11447. ><div>
  11448. {{
  11449. scope.row.target
  11450. ? scope.row.target[scope.row.target.length - 1]
  11451. : "-"
  11452. }}
  11453. </div></template
  11454. ></el-table-column
  11455. >
  11456. </el-table>
  11457. <!-- <div
  11458. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11459. .chapterInfo[0].taskJson[taskCount].eList"
  11460. :key="eIndex"
  11461. class="elist_input_box"
  11462. >
  11463. <div style="width: 95%">
  11464. <div
  11465. style="
  11466. display: flex;
  11467. flex-direction: row;
  11468. flex-wrap: nowrap;
  11469. align-items: center;
  11470. "
  11471. >
  11472. <div style="max-width: calc(100% - 285px)">
  11473. <span>{{ eItem.value }}</span>
  11474. </div>
  11475. <div
  11476. style="
  11477. padding-left: 25px;
  11478. display: flex;
  11479. flex-direction: row;
  11480. align-items: center;
  11481. "
  11482. >
  11483. <el-rate
  11484. v-model="eItem.score"
  11485. :colors="colors"
  11486. disabled
  11487. ></el-rate>
  11488. </div>
  11489. </div>
  11490. <div class="elist_inptu_text" style="padding-left: 10px">
  11491. <span v-if="eItem.detail != ''">{{
  11492. eItem.detail
  11493. }}</span>
  11494. <span v-else style="color: #b2b1b3; font-size: 14px"
  11495. >暂无描述...</span
  11496. >
  11497. </div>
  11498. </div>
  11499. </div> -->
  11500. </div>
  11501. <div
  11502. v-if="evalua"
  11503. style="
  11504. border: 1px solid #e5e5e5;
  11505. max-width: 650px;
  11506. width: 100%;
  11507. margin-top: 20px;
  11508. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11509. "
  11510. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  11511. >
  11512. <div class="e_add_top">
  11513. <div class="e_add_title" style="width: 100%">
  11514. <!-- <span>目标管理名称</span> -->
  11515. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  11516. <img
  11517. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  11518. src="../../assets/line.png"
  11519. class="cru_line"
  11520. style="
  11521. width: 125px;
  11522. height: 20px;
  11523. bottom: -10px;
  11524. left: 5px;
  11525. "
  11526. />
  11527. <!-- <el-input
  11528. v-model="eTitle"
  11529. placeholder="请输入名称"
  11530. @change="setMindData"
  11531. ></el-input>-->
  11532. <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>
  11533. <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>
  11534. </div>
  11535. </div>
  11536. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  11537. <div class="e_add_list_pbox">
  11538. <div class="e_add_list_pbox_title">
  11539. <!-- <span class="type_title">切换模式</span> -->
  11540. <div class="type_content">
  11541. <span
  11542. :class="{ active: typeMode == 1 }"
  11543. @click="typeMode = 1"
  11544. >目标树</span
  11545. >
  11546. <span
  11547. :class="{ active: typeMode == 2 }"
  11548. @click="typeMode = 2"
  11549. >目标罗盘</span
  11550. >
  11551. <!-- <span
  11552. :class="{ active: typeMode == 3 }"
  11553. @click="typeMode = 3"
  11554. >目标看板</span
  11555. > -->
  11556. </div>
  11557. </div>
  11558. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  11559. <Mind
  11560. :showBar="false"
  11561. :mindData="data"
  11562. style="width: 100%"
  11563. v-show="typeMode == 1"
  11564. ></Mind>
  11565. <Sunburst
  11566. :Josn="eJson"
  11567. :num="eJSONNum"
  11568. style="width: 100%"
  11569. v-if="typeMode == 2"
  11570. ></Sunburst>
  11571. <SeeBoard
  11572. :Josn="eJson"
  11573. :num="eJSONNum"
  11574. :ename="eTitle"
  11575. style="width: 100%"
  11576. v-if="typeMode == 3"
  11577. >
  11578. </SeeBoard>
  11579. </div>
  11580. </div>
  11581. </div>
  11582. </div>
  11583. </div>
  11584. </div>
  11585. <!-- <div
  11586. class="project_box"
  11587. style="margin-top: 15px; padding-bottom: 30px"
  11588. >
  11589. <div
  11590. style="
  11591. display: flex;
  11592. flex-wrap: nowrap;
  11593. flex-direction: column;
  11594. position: relative;
  11595. "
  11596. >
  11597. <div class="queTop">
  11598. <div class="question">
  11599. <img src="../../assets/icon/homeWork.png" alt="" />
  11600. </div>
  11601. <div class="queTitle">
  11602. <div>作业提交<span>(提交图文视频等)</span></div>
  11603. <div>:任务:{{ task.task }}</div>
  11604. </div>
  11605. </div>
  11606. <div class="ediBottom">
  11607. <div
  11608. class="addEditor"
  11609. style="margin-top: 23px"
  11610. @click="openAddWork"
  11611. v-if="!isNoHomeWork"
  11612. >
  11613. 选择文件
  11614. </div>
  11615. <div
  11616. class="addEditor"
  11617. style="margin-top: 23px"
  11618. @click="openAddWork"
  11619. v-else
  11620. >
  11621. 已提交
  11622. </div>
  11623. </div>
  11624. </div>
  11625. </div>-->
  11626. </div>
  11627. </div>
  11628. <el-dialog
  11629. title="作业提交"
  11630. :visible.sync="dialogVisible"
  11631. :append-to-body="true"
  11632. width="500px"
  11633. :before-close="handleClose"
  11634. class="dialog_change"
  11635. >
  11636. <div class="marginT">
  11637. <div>上传文件</div>
  11638. <div style="display: flex; gap: 10px">
  11639. <div
  11640. class="chapter_add"
  11641. @click="addImg($event)"
  11642. v-if="studyJuri[0].cover.length == 0"
  11643. >
  11644. <div class="up_photo">
  11645. <img src="../../assets/icon/uploadImg.png" alt />
  11646. </div>
  11647. <!-- <input
  11648. type="file"
  11649. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11650. style="display: none"
  11651. @change="beforeUpload1($event, 1)"
  11652. /> -->
  11653. <input
  11654. type="file"
  11655. accept="*"
  11656. style="display: none"
  11657. @change="beforeUpload1($event, 1)"
  11658. />
  11659. <!-- <input
  11660. type="file"
  11661. accept="image/*"
  11662. capture="camera"
  11663. style="display: none"
  11664. @change="beforeUpload1($event, 1)"
  11665. /> -->
  11666. </div>
  11667. <div
  11668. class="chapter_add"
  11669. @click="addImg($event)"
  11670. v-if="studyJuri[0].cover.length == 0"
  11671. >
  11672. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11673. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11674. </div>
  11675. <input
  11676. type="file"
  11677. accept="image/*"
  11678. capture="camera"
  11679. style="display: none"
  11680. @change="beforeUpload1($event, 1)"
  11681. />
  11682. </div>
  11683. </div>
  11684. <div
  11685. class="chapter_add"
  11686. style="
  11687. display: flex;
  11688. width: 100%;
  11689. flex-direction: row;
  11690. flex-wrap: wrap;
  11691. justify-content: flex-start;
  11692. padding: 15px 0;
  11693. "
  11694. v-if="studyJuri[0].cover.length > 0"
  11695. >
  11696. <div class="upCover">
  11697. <img
  11698. :src="studyJuri[0].cover[0].url"
  11699. alt
  11700. v-if="fileType == 0"
  11701. />
  11702. <img :src="word" alt v-else-if="fileType == 1" />
  11703. <img :src="video" alt v-else-if="fileType == 2" />
  11704. <img :src="word2" alt v-else-if="fileType == 3" />
  11705. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11706. <div class="deleteWord" @click="clean(1)">
  11707. <img src="../../assets/icon/deleteWorks.png" alt />
  11708. </div>
  11709. </div>
  11710. </div>
  11711. </div>
  11712. <div
  11713. class="upload_send"
  11714. @click="addCourseWorksCopy(taskCount)"
  11715. v-if="!proVisible"
  11716. >
  11717. 提交
  11718. </div>
  11719. </el-dialog>
  11720. </div>
  11721. </div>
  11722. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11723. <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(
  11724. '/courseDetail?userid=' +
  11725. userid +
  11726. '&oid=' +
  11727. oid +
  11728. '&org=' +
  11729. org +
  11730. '&cid=' +
  11731. classId +
  11732. '&courseId=' +
  11733. id +
  11734. '&tType=' +
  11735. tType +
  11736. '&screenType=' +
  11737. screenType+
  11738. '&role=' +
  11739. role
  11740. )"></classRoomHelper>
  11741. <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(
  11742. '/courseDetail?userid=' +
  11743. userid +
  11744. '&oid=' +
  11745. oid +
  11746. '&org=' +
  11747. org +
  11748. '&cid=' +
  11749. classId +
  11750. '&courseId=' +
  11751. id +
  11752. '&tType=' +
  11753. tType +
  11754. '&screenType=' +
  11755. screenType+
  11756. '&role=' +
  11757. role
  11758. )"></studentClassRoomHelper>
  11759. <div
  11760. class="pButton"
  11761. @click="(pzDialog = true), selectPz()"
  11762. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11763. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11764. >
  11765. <!-- 批 -->
  11766. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11767. </div>
  11768. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11769. <div class="pzTop2">
  11770. <!-- <div>评论</div>
  11771. <div @click="pzDialog = false">
  11772. <img src="../../assets/close1.png" alt="" />
  11773. </div> -->
  11774. <div class="checkbox">
  11775. <!-- <div class="check" style="font-size: 25px; position: unset">
  11776. 评论
  11777. </div> -->
  11778. <div class="cb-tabList">
  11779. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11780. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11781. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11782. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11783. </div>
  11784. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11785. <el-option label="时间降序" :value="1"></el-option>
  11786. <el-option label="时间升序" :value="2"></el-option>
  11787. <el-option label="我的评课" :value="3"></el-option>
  11788. </el-select>
  11789. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11790. </div>
  11791. </div>
  11792. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11793. <div class="pzListBox" v-if="pzList && pzList.length">
  11794. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11795. <div class="pzNavTop">
  11796. <div>评</div>
  11797. <div>
  11798. {{
  11799. pz.username && pz.username.length > 5
  11800. ? pz.username.substring(0, 5) + "..."
  11801. : pz.username
  11802. }}的评论
  11803. </div>
  11804. <div
  11805. class="pzDelete"
  11806. v-if="pz.userid == userid"
  11807. @click="deletePz(pz.id)"
  11808. >
  11809. 删除
  11810. </div>
  11811. </div>
  11812. <div
  11813. @click="checkImg(getImgList(pz.content))"
  11814. class="pzContent cont"
  11815. v-html="pz.content"
  11816. v-if="pz.type == '1'"
  11817. ></div>
  11818. <div class="pzContent" v-if="pz.type == '2'">
  11819. <audio :src="pz.content" controls="controls" ref="audio">
  11820. Your browser does not support the audio element.
  11821. </audio>
  11822. </div>
  11823. <div class="pzContent" v-if="pz.type == '3'">
  11824. <img
  11825. :src="pz.content"
  11826. style="width: 90%; margin: 0 auto; display: block"
  11827. @click="previewImg(pz.content)"
  11828. />
  11829. </div>
  11830. <div class="timeAndReply">
  11831. <div class="time">
  11832. {{ pz.time }}
  11833. </div>
  11834. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11835. </div>
  11836. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11837. <div
  11838. v-for="(h, hIndex) in pz.hfList"
  11839. :key="hIndex"
  11840. class="hfItem"
  11841. >
  11842. <div class="whoReplyWho">
  11843. <div class="hfName">{{ h.username }}</div>
  11844. <div class="hfImg">
  11845. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11846. </div>
  11847. <div class="hfName">{{ pz.username }}</div>
  11848. </div>
  11849. <div class="hfContent" v-html="h.content"></div>
  11850. <div class="hfBottom">
  11851. <div class="hfTime">{{ h.time }}</div>
  11852. <div
  11853. class="deleteHfItem"
  11854. @click="deleteReply(h.id)"
  11855. v-if="userid == h.userid"
  11856. >
  11857. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11858. </div>
  11859. </div>
  11860. </div>
  11861. </div>
  11862. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11863. <div class="replyInput">
  11864. <el-input v-model="reply[pzIndex]"></el-input>
  11865. </div>
  11866. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11867. </div> -->
  11868. </div>
  11869. </div>
  11870. <div class="noPz" v-else>
  11871. <img src="../../assets/icon/noPz.png" alt="" />
  11872. </div>
  11873. <div class="addPzButton">
  11874. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11875. 添加评论
  11876. </div>
  11877. <!-- <div class="img1">
  11878. <div @click="(addPzDialog = true), (pzType = 2)">
  11879. <img src="../../assets/audio.png" /><span>音频</span>
  11880. </div>
  11881. </div> -->
  11882. </div>
  11883. </div>
  11884. <div class="scoreList" v-if="commentTagShow==1">
  11885. <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"/>
  11886. </div>
  11887. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11888. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11889. </div>
  11890. </div>
  11891. <div
  11892. v-if="toolDialogVisible == true"
  11893. class="toolMask"
  11894. @click="toolDialogVisible = false"
  11895. ></div>
  11896. <div v-if="toolDialogVisible == true" class="addToolCss">
  11897. <div class="toolTop">
  11898. <div style="font-weight: bold">新增工具</div>
  11899. <div @click="toolDialogVisible = false">
  11900. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11901. </div>
  11902. </div>
  11903. <div class="tool_box">
  11904. <div class="tool_type_box">
  11905. <div class="chooseWho">
  11906. <div
  11907. :class="toolType == 0 ? 'isChooseActive' : ''"
  11908. @click="(toolType = 0), $forceUpdate()"
  11909. >
  11910. 互动类
  11911. </div>
  11912. <div
  11913. :class="toolType == 1 ? 'isChooseActive' : ''"
  11914. @click="(toolType = 1), $forceUpdate()"
  11915. >
  11916. 思维类
  11917. </div>
  11918. <div
  11919. :class="toolType == 2 ? 'isChooseActive' : ''"
  11920. @click="(toolType = 2), $forceUpdate()"
  11921. >
  11922. 测评类
  11923. </div>
  11924. <div
  11925. :class="toolType == 3 ? 'isChooseActive' : ''"
  11926. @click="(toolType = 3), $forceUpdate()"
  11927. >
  11928. 编程类
  11929. </div>
  11930. <div
  11931. :class="toolType == 5 ? 'isChooseActive' : ''"
  11932. @click="(toolType = 5), $forceUpdate()"
  11933. >
  11934. 学科类
  11935. </div>
  11936. </div>
  11937. </div>
  11938. <div>
  11939. <div class="toolSort" v-if="toolType == 0">
  11940. <div
  11941. class="tool"
  11942. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11943. @click="addTools2(10)"
  11944. >
  11945. <div class="whiteBIcon">
  11946. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11947. <div style="margin: 5px 0">倒计时</div>
  11948. </div>
  11949. <div class="check">
  11950. <div
  11951. v-if="checktoolArray.indexOf(10) == -1"
  11952. class="noChoose"
  11953. ></div>
  11954. <div v-else class="isChoose"></div>
  11955. </div>
  11956. </div>
  11957. <div
  11958. class="tool"
  11959. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11960. @click="addTools2(65)"
  11961. >
  11962. <div class="whiteBIcon">
  11963. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11964. <div style="margin: 5px 0">挑人</div>
  11965. </div>
  11966. <div class="check">
  11967. <div
  11968. v-if="checktoolArray.indexOf(65) == -1"
  11969. class="noChoose"
  11970. ></div>
  11971. <div v-else class="isChoose"></div>
  11972. </div>
  11973. </div>
  11974. </div>
  11975. <div class="toolSort" v-if="toolType == 1">
  11976. <div
  11977. class="tool"
  11978. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11979. @click="addTools2(7)"
  11980. >
  11981. <div class="whiteBIcon">
  11982. <img
  11983. src="../../assets/icon/secondToolList/mindNetwork.png"
  11984. alt
  11985. />
  11986. <div style="margin: 5px 0">思维网格</div>
  11987. </div>
  11988. <div class="check">
  11989. <div
  11990. v-if="checktoolArray.indexOf(7) == -1"
  11991. class="noChoose"
  11992. ></div>
  11993. <div v-else class="isChoose"></div>
  11994. </div>
  11995. </div>
  11996. <div
  11997. class="tool"
  11998. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11999. @click="addTools2(1)"
  12000. >
  12001. <div class="whiteBIcon">
  12002. <img
  12003. src="../../assets/icon/secondToolList/whiteBoard.png"
  12004. alt
  12005. />
  12006. <div style="margin: 5px 0">电子白板</div>
  12007. </div>
  12008. <div class="check">
  12009. <div
  12010. v-if="checktoolArray.indexOf(1) == -1"
  12011. class="noChoose"
  12012. ></div>
  12013. <div v-else class="isChoose"></div>
  12014. </div>
  12015. </div>
  12016. <div
  12017. class="tool"
  12018. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  12019. @click="addTools2(52)"
  12020. >
  12021. <div class="whiteBIcon">
  12022. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12023. <div style="margin: 5px 0">文档</div>
  12024. </div>
  12025. <div class="check">
  12026. <div
  12027. v-if="checktoolArray.indexOf(52) == -1"
  12028. class="noChoose"
  12029. ></div>
  12030. <div v-else class="isChoose"></div>
  12031. </div>
  12032. </div>
  12033. <div
  12034. class="tool"
  12035. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12036. @click="addTools2(3)"
  12037. >
  12038. <div class="whiteBIcon">
  12039. <img
  12040. src="../../assets/icon/secondToolList/mindMapping.png"
  12041. alt
  12042. />
  12043. <div style="margin: 5px 0">思维导图</div>
  12044. </div>
  12045. <div class="check">
  12046. <div
  12047. v-if="checktoolArray.indexOf(3) == -1"
  12048. class="noChoose"
  12049. ></div>
  12050. <div v-else class="isChoose"></div>
  12051. </div>
  12052. </div>
  12053. <div
  12054. class="tool"
  12055. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12056. @click="addTools2(48)"
  12057. >
  12058. <div class="whiteBIcon">
  12059. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12060. <div style="margin: 5px 0">表格</div>
  12061. </div>
  12062. <div class="check">
  12063. <div
  12064. v-if="checktoolArray.indexOf(48) == -1"
  12065. class="noChoose"
  12066. ></div>
  12067. <div v-else class="isChoose"></div>
  12068. </div>
  12069. </div>
  12070. </div>
  12071. <div class="toolSort" v-if="toolType == 6">
  12072. <div v-show="tooC == 49">
  12073. <img
  12074. @click="addTools(tooC, toolIndex, taskCount)"
  12075. src="../../assets/icon/fourthToolList/group.png"
  12076. alt
  12077. />
  12078. <div style="margin: 5px 0">学生分组</div>
  12079. </div>
  12080. </div>
  12081. <div class="toolSort" v-if="toolType == 2">
  12082. <div
  12083. class="tool"
  12084. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12085. @click="addTools2(16)"
  12086. >
  12087. <div class="whiteBIcon">
  12088. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12089. <div style="margin: 5px 0">作业提交</div>
  12090. </div>
  12091. <div class="check">
  12092. <div
  12093. v-if="checktoolArray.indexOf(16) == -1"
  12094. class="noChoose"
  12095. ></div>
  12096. <div v-else class="isChoose"></div>
  12097. </div>
  12098. </div>
  12099. <div
  12100. class="tool"
  12101. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12102. @click="addTools2(50)"
  12103. >
  12104. <div class="whiteBIcon">
  12105. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12106. <div style="margin: 5px 0">批量上传</div>
  12107. </div>
  12108. <div class="check">
  12109. <div
  12110. v-if="checktoolArray.indexOf(50) == -1"
  12111. class="noChoose"
  12112. ></div>
  12113. <div v-else class="isChoose"></div>
  12114. </div>
  12115. </div>
  12116. </div>
  12117. <div class="toolSort" v-if="toolType == 3">
  12118. <div
  12119. class="tool"
  12120. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12121. @click="addTools2(18)"
  12122. >
  12123. <div class="whiteBIcon">
  12124. <img
  12125. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12126. alt
  12127. />
  12128. <div style="margin: 5px 0">训练平台</div>
  12129. </div>
  12130. <div class="check">
  12131. <div
  12132. v-if="checktoolArray.indexOf(18) == -1"
  12133. class="noChoose"
  12134. ></div>
  12135. <div v-else class="isChoose"></div>
  12136. </div>
  12137. </div>
  12138. <div
  12139. class="tool"
  12140. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12141. @click="addTools2(21)"
  12142. >
  12143. <div class="whiteBIcon">
  12144. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12145. <div style="margin: 5px 0">AIoT Blockly</div>
  12146. </div>
  12147. <div class="check">
  12148. <div
  12149. v-if="checktoolArray.indexOf(21) == -1"
  12150. class="noChoose"
  12151. ></div>
  12152. <div v-else class="isChoose"></div>
  12153. </div>
  12154. </div>
  12155. <div
  12156. class="tool"
  12157. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12158. @click="addTools2(23)"
  12159. >
  12160. <div class="whiteBIcon">
  12161. <img
  12162. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12163. alt
  12164. />
  12165. <div style="margin: 5px 0">AI Python</div>
  12166. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  12167. style="position: absolute;right: 33px;top: -30px;">
  12168. 分析
  12169. </div>
  12170. </div>
  12171. <div class="check">
  12172. <div
  12173. v-if="checktoolArray.indexOf(23) == -1"
  12174. class="noChoose"
  12175. ></div>
  12176. <div v-else class="isChoose"></div>
  12177. </div>
  12178. </div>
  12179. <div
  12180. class="tool"
  12181. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12182. @click="addTools2(24)"
  12183. >
  12184. <div class="whiteBIcon">
  12185. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12186. <div style="margin: 5px 0">AI Blockly</div>
  12187. </div>
  12188. <div class="check">
  12189. <div
  12190. v-if="checktoolArray.indexOf(24) == -1"
  12191. class="noChoose"
  12192. ></div>
  12193. <div v-else class="isChoose"></div>
  12194. </div>
  12195. </div>
  12196. <div
  12197. class="tool"
  12198. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12199. @click="addTools2(32)"
  12200. >
  12201. <div class="whiteBIcon">
  12202. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12203. <div style="margin: 5px 0">源码编辑</div>
  12204. </div>
  12205. <div class="check">
  12206. <div
  12207. v-if="checktoolArray.indexOf(32) == -1"
  12208. class="noChoose"
  12209. ></div>
  12210. <div v-else class="isChoose"></div>
  12211. </div>
  12212. </div>
  12213. <div
  12214. class="tool"
  12215. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12216. @click="addTools2(57)"
  12217. >
  12218. <div class="whiteBIcon">
  12219. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12220. <div style="margin: 5px 0">CocoPi</div>
  12221. </div>
  12222. <div class="check">
  12223. <div
  12224. v-if="checktoolArray.indexOf(57) == -1"
  12225. class="noChoose"
  12226. ></div>
  12227. <div v-else class="isChoose"></div>
  12228. </div>
  12229. </div>
  12230. <div
  12231. class="tool"
  12232. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12233. @click="addTools2(63)"
  12234. >
  12235. <div class="whiteBIcon">
  12236. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12237. <div style="margin: 5px 0">海龟编程</div>
  12238. </div>
  12239. <div class="check">
  12240. <div
  12241. v-if="checktoolArray.indexOf(63) == -1"
  12242. class="noChoose"
  12243. ></div>
  12244. <div v-else class="isChoose"></div>
  12245. </div>
  12246. </div>
  12247. <div
  12248. class="tool"
  12249. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12250. @click="addTools2(71)"
  12251. >
  12252. <div class="whiteBIcon">
  12253. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12254. <div style="margin: 5px 0">AI智能体</div>
  12255. </div>
  12256. <div class="check">
  12257. <div
  12258. v-if="checktoolArray.indexOf(71) == -1"
  12259. class="noChoose"
  12260. ></div>
  12261. <div v-else class="isChoose"></div>
  12262. </div>
  12263. </div>
  12264. </div>
  12265. <div class="toolSort" v-if="toolType == 7">
  12266. <div
  12267. class="tool"
  12268. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12269. @click="addTools2(40)"
  12270. >
  12271. <div class="whiteBIcon">
  12272. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12273. <div style="margin: 5px 0">个人评价</div>
  12274. </div>
  12275. <div class="check">
  12276. <div
  12277. v-if="checktoolArray.indexOf(40) == -1"
  12278. class="noChoose"
  12279. ></div>
  12280. <div v-else class="isChoose"></div>
  12281. </div>
  12282. </div>
  12283. </div>
  12284. <div class="toolSort" v-if="toolType == 5">
  12285. <div
  12286. class="tool"
  12287. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12288. @click="addTools2(28)"
  12289. >
  12290. <div class="whiteBIcon">
  12291. <img
  12292. src="../../assets/icon/secondToolList/translation.png"
  12293. alt
  12294. />
  12295. <div style="margin: 5px 0">翻译</div>
  12296. </div>
  12297. <div class="check">
  12298. <div
  12299. v-if="checktoolArray.indexOf(28) == -1"
  12300. class="noChoose"
  12301. ></div>
  12302. <div v-else class="isChoose"></div>
  12303. </div>
  12304. </div>
  12305. <div
  12306. class="tool"
  12307. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12308. @click="addTools2(31)"
  12309. >
  12310. <div class="whiteBIcon">
  12311. <img
  12312. src="../../assets/icon/secondToolList/networkPanel.png"
  12313. alt
  12314. />
  12315. <div style="margin: 5px 0">数字画板</div>
  12316. </div>
  12317. <div class="check">
  12318. <div
  12319. v-if="checktoolArray.indexOf(31) == -1"
  12320. class="noChoose"
  12321. ></div>
  12322. <div v-else class="isChoose"></div>
  12323. </div>
  12324. </div>
  12325. <div
  12326. class="tool"
  12327. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12328. @click="addTools2(39)"
  12329. >
  12330. <div class="whiteBIcon">
  12331. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12332. <div style="margin: 5px 0">GeoGebra</div>
  12333. </div>
  12334. <div class="check">
  12335. <div
  12336. v-if="checktoolArray.indexOf(39) == -1"
  12337. class="noChoose"
  12338. ></div>
  12339. <div v-else class="isChoose"></div>
  12340. </div>
  12341. </div>
  12342. <div
  12343. class="tool"
  12344. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12345. @click="addTools2(66)"
  12346. >
  12347. <div class="whiteBIcon">
  12348. <img
  12349. src="../../assets/icon/secondToolList/formulaEdi.png"
  12350. alt
  12351. />
  12352. <div style="margin: 5px 0">公式编辑</div>
  12353. </div>
  12354. <div class="check">
  12355. <div
  12356. v-if="checktoolArray.indexOf(66) == -1"
  12357. class="noChoose"
  12358. ></div>
  12359. <div v-else class="isChoose"></div>
  12360. </div>
  12361. </div>
  12362. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12363. <div class="whiteBIcon" @click="addTools2(67)">
  12364. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12365. <div style="margin: 5px 0">分子结构</div>
  12366. </div>
  12367. <div class="check" @click="addTools2(67)">
  12368. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12369. <div v-else class="isChoose"></div>
  12370. </div>
  12371. </div> -->
  12372. <div
  12373. class="tool"
  12374. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12375. @click="addTools2(68)"
  12376. >
  12377. <div class="whiteBIcon">
  12378. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12379. <div style="margin: 5px 0">时间轴</div>
  12380. </div>
  12381. <div class="check">
  12382. <div
  12383. v-if="checktoolArray.indexOf(68) == -1"
  12384. class="noChoose"
  12385. ></div>
  12386. <div v-else class="isChoose"></div>
  12387. </div>
  12388. </div>
  12389. <!-- <div
  12390. class="tool"
  12391. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12392. @click="addTools2(69)"
  12393. >
  12394. <div class="whiteBIcon">
  12395. <img src="../../assets/icon/secondToolList/english.png" alt />
  12396. <div style="margin: 5px 0">英语写作</div>
  12397. </div>
  12398. <div class="check">
  12399. <div
  12400. v-if="checktoolArray.indexOf(69) == -1"
  12401. class="noChoose"
  12402. ></div>
  12403. <div v-else class="isChoose"></div>
  12404. </div>
  12405. </div> -->
  12406. </div>
  12407. <div class="toolSort" v-if="toolType == 4">
  12408. <div
  12409. class="tool"
  12410. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12411. @click="addTools2(26)"
  12412. >
  12413. <div class="whiteBIcon">
  12414. <img
  12415. src="../../assets/icon/thirdToolList/courseDesign.png"
  12416. alt
  12417. />
  12418. <div style="margin: 5px 0">课程设计</div>
  12419. </div>
  12420. <div class="check">
  12421. <div
  12422. v-if="checktoolArray.indexOf(26) == -1"
  12423. class="noChoose"
  12424. ></div>
  12425. <div v-else class="isChoose"></div>
  12426. </div>
  12427. </div>
  12428. <div
  12429. class="tool"
  12430. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12431. @click="addTools2(25)"
  12432. >
  12433. <div class="whiteBIcon">
  12434. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12435. <div style="margin: 5px 0">目标管理</div>
  12436. </div>
  12437. <div class="check">
  12438. <div
  12439. v-if="checktoolArray.indexOf(25) == -1"
  12440. class="noChoose"
  12441. ></div>
  12442. <div v-else class="isChoose"></div>
  12443. </div>
  12444. </div>
  12445. </div>
  12446. </div>
  12447. </div>
  12448. <span
  12449. slot="footer"
  12450. class="dialog-footer"
  12451. style="display: block; text-align: center; padding: 0 0 10px 0"
  12452. >
  12453. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12454. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12455. </span>
  12456. </div>
  12457. <div
  12458. v-if="replyDialogVisible == true"
  12459. class="addDialogCss"
  12460. v-el-drag-dialog
  12461. >
  12462. <div class="pzTop">
  12463. <div class="teacherPz">
  12464. <div class="teacherPzImg">
  12465. <img src="../../assets/icon/teacherPz.png" alt="" />
  12466. </div>
  12467. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12468. </div>
  12469. <div @click="replyDialogVisible = false">
  12470. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12471. </div>
  12472. </div>
  12473. <div class="addPzBox">
  12474. <!-- <div class="addPzCheck">
  12475. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12476. >文本</span
  12477. >
  12478. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12479. >音频</span
  12480. >
  12481. </div> -->
  12482. <div style="height: calc(100% - 50px)">
  12483. <editor-bar
  12484. class="binfo_input pzConText"
  12485. style="width: 100% !important; margin: 0 auto"
  12486. placeholder="请输入回复描述"
  12487. v-model="reply"
  12488. @change="change"
  12489. ></editor-bar>
  12490. </div>
  12491. <div class="addTextCss" @click="addHf">确定</div>
  12492. </div>
  12493. </div>
  12494. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12495. <div class="pzTop">
  12496. <div class="teacherPz">
  12497. <div class="teacherPzImg">
  12498. <img src="../../assets/icon/teacherPz.png" alt="" />
  12499. </div>
  12500. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12501. </div>
  12502. <div @click="addPzDialog = false">
  12503. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12504. </div>
  12505. </div>
  12506. <div class="addPzBox">
  12507. <div class="addPzCheck">
  12508. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12509. >文本</span
  12510. >
  12511. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12512. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12513. >音频</span
  12514. >
  12515. </div>
  12516. <div style="height: calc(100% - 95px)">
  12517. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12518. v-if="pzType == 1"></textarea> -->
  12519. <editor-bar
  12520. class="binfo_input pzConText"
  12521. style="width: 100% !important"
  12522. placeholder="请输入任务描述"
  12523. v-model="pzConText"
  12524. @change="change"
  12525. v-if="pzType == 1"
  12526. ></editor-bar>
  12527. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12528. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12529. <div @click="addImg($event)">
  12530. <el-button type="primary">上传图片</el-button>
  12531. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12532. @change="beforeUpload1($event, 4)" />
  12533. </div>
  12534. </div> -->
  12535. </div>
  12536. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12537. 确定
  12538. </div>
  12539. </div>
  12540. </div>
  12541. <div v-if="proVisible" class="mask">
  12542. <div class="progressBox">
  12543. <!-- <div id="closePro" class="closeCss">
  12544. <img src="../../assets/icon/close.png" alt />
  12545. </div> -->
  12546. <div class="lbox">
  12547. <img src="../../assets/loading.gif" />上传中,请稍后
  12548. </div>
  12549. <div style="margin-bottom: 10px">
  12550. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12551. </div>
  12552. <el-progress
  12553. :text-inside="true"
  12554. :stroke-width="20"
  12555. :percentage="progress"
  12556. style="width: 80%"
  12557. ></el-progress>
  12558. </div>
  12559. </div>
  12560. <div v-if="proVisible2" class="mask">
  12561. <div class="progressBox">
  12562. <div class="lbox">
  12563. <img src="../../assets/loading.gif" />上传中,请稍后
  12564. </div>
  12565. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12566. </div>
  12567. </div>
  12568. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12569. <img width="100%" :src="dialogImageUrl" alt />
  12570. </el-dialog>
  12571. <el-dialog
  12572. :title="noteName != '' ? noteName : '查看问卷'"
  12573. :visible.sync="dialogVisible5"
  12574. :append-to-body="true"
  12575. width="1000px"
  12576. :before-close="handleClose"
  12577. class="dialog_diy dialog_diy3"
  12578. >
  12579. <div>
  12580. <div
  12581. class="a_add_title"
  12582. style="
  12583. display: flex;
  12584. flex-direction: row;
  12585. align-items: center;
  12586. justify-content: center;
  12587. "
  12588. >
  12589. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12590. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12591. </div>
  12592. <div class="a_addBox">
  12593. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12594. 题目内容
  12595. </div>
  12596. <div
  12597. class="a_add_box"
  12598. v-for="(item1, index1) in askJson.askCount"
  12599. :key="index1"
  12600. >
  12601. <div class="a_add_head">
  12602. <div style="display: flex">
  12603. <span class="askIndex"> {{ index1 + 1 }}</span>
  12604. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12605. </div>
  12606. <img
  12607. v-if="askJson.askJson[index1].img"
  12608. :src="askJson.askJson[index1].img"
  12609. style="height: 300px; margin-top: 10px; max-width: 100%"
  12610. />
  12611. </div>
  12612. <div class="a_add_body">
  12613. <div class="a_add_input">
  12614. <el-radio-group
  12615. v-model="radio[index1]"
  12616. v-if="
  12617. askJson.askJson[index1].type == '1' ||
  12618. !askJson.askJson[index1].type
  12619. "
  12620. >
  12621. <el-radio
  12622. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12623. .checkList"
  12624. :key="checkIndex"
  12625. :label="checkIndex"
  12626. :disabled="isAnswer"
  12627. class="redioStyle"
  12628. ><span v-html="item2"></span
  12629. ></el-radio>
  12630. </el-radio-group>
  12631. <el-checkbox-group
  12632. v-model="radio[index1]"
  12633. v-if="askJson.askJson[index1].type == '2'"
  12634. >
  12635. <el-checkbox
  12636. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12637. .checkList"
  12638. :key="checkIndex1"
  12639. :label="checkIndex1"
  12640. :disabled="isAnswer"
  12641. class="redioStyle"
  12642. ><span v-html="item2"></span>
  12643. </el-checkbox>
  12644. </el-checkbox-group>
  12645. </div>
  12646. </div>
  12647. </div>
  12648. </div>
  12649. </div>
  12650. <span slot="footer" class="dialog-footer">
  12651. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12652. >取 消</el-button
  12653. >
  12654. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12655. >确 定</el-button
  12656. >
  12657. </span>
  12658. </el-dialog>
  12659. <el-dialog
  12660. :title="noteName != '' ? noteName : '查看问卷'"
  12661. :visible.sync="dialogVisible5Teacher"
  12662. :append-to-body="true"
  12663. width="1000px"
  12664. :before-close="handleClose"
  12665. class="dialog_diy dialog_diy3"
  12666. >
  12667. <div>
  12668. <div class="w_name">
  12669. 学生姓名:<span>{{ sStudent.student }}</span>
  12670. </div>
  12671. <div
  12672. class="a_add_title"
  12673. style="
  12674. display: flex;
  12675. flex-direction: row;
  12676. align-items: center;
  12677. justify-content: center;
  12678. "
  12679. >
  12680. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12681. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12682. </div>
  12683. <div class="a_addBox">
  12684. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12685. 题目内容
  12686. </div>
  12687. <div
  12688. class="a_add_box"
  12689. v-for="(item1, index1) in askJson.askCount"
  12690. :key="index1"
  12691. >
  12692. <div class="a_add_head">
  12693. <div style="display: flex">
  12694. <span class="askIndex">{{ index1 + 1 }}</span>
  12695. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12696. </div>
  12697. <img
  12698. v-if="askJson.askJson[index1].img"
  12699. :src="askJson.askJson[index1].img"
  12700. style="height: 300px; margin-top: 10px; max-width: 100%"
  12701. />
  12702. </div>
  12703. <div class="a_add_body">
  12704. <div class="a_add_input">
  12705. <el-radio-group
  12706. v-model="radio[index1]"
  12707. v-if="
  12708. askJson.askJson[index1].type == '1' ||
  12709. !askJson.askJson[index1].type
  12710. "
  12711. >
  12712. <el-radio
  12713. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12714. .checkList"
  12715. :key="checkIndex"
  12716. :label="checkIndex"
  12717. :disabled="isAnswer"
  12718. class="redioStyle"
  12719. ><span v-html="item2"></span
  12720. ></el-radio>
  12721. </el-radio-group>
  12722. <el-checkbox-group
  12723. v-model="radio[index1]"
  12724. v-if="askJson.askJson[index1].type == '2'"
  12725. >
  12726. <el-checkbox
  12727. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12728. .checkList"
  12729. :key="checkIndex1"
  12730. :label="checkIndex1"
  12731. :disabled="isAnswer"
  12732. class="redioStyle"
  12733. ><span v-html="item2"></span>
  12734. </el-checkbox>
  12735. </el-checkbox-group>
  12736. </div>
  12737. </div>
  12738. </div>
  12739. </div>
  12740. </div>
  12741. <span slot="footer" class="dialog-footer">
  12742. <el-button
  12743. @click="dialogVisible5Teacher = false"
  12744. v-show="noteName == ''"
  12745. >取 消</el-button
  12746. >
  12747. <el-button
  12748. type="primary"
  12749. @click="addStudentAskTeacher"
  12750. v-show="noteName == ''"
  12751. >确 定</el-button
  12752. >
  12753. </span>
  12754. </el-dialog>
  12755. <el-dialog
  12756. :title="noteName != '' ? noteName : '查看选择题'"
  12757. :visible.sync="dialogVisibleChoice"
  12758. :append-to-body="true"
  12759. width="1000px"
  12760. :before-close="handleClose"
  12761. class="dialog_diy dialog_diy3"
  12762. >
  12763. <div>
  12764. <!-- <div class="a_add_title" style="
  12765. display: flex;
  12766. flex-direction: row;
  12767. align-items: center;
  12768. justify-content: center;
  12769. ">
  12770. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12771. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12772. </div> -->
  12773. <div class="a_addBox">
  12774. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12775. 题目内容
  12776. </div>
  12777. <div
  12778. class="a_add_box"
  12779. v-for="(item1, index1) in testJson.testCount"
  12780. :key="index1"
  12781. >
  12782. <div class="a_add_head">
  12783. <div style="display: flex;">
  12784. <span class="askIndex">{{ index1 + 1 }}</span>
  12785. <div
  12786. v-if="testJson.testJson[index1].type == '1'"
  12787. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12788. >
  12789. (单选题)
  12790. </div>
  12791. <div
  12792. v-if="testJson.testJson[index1].type == '2'"
  12793. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12794. >
  12795. (多选题)
  12796. </div>
  12797. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  12798. </div>
  12799. <img
  12800. v-if="testJson.testJson[index1].img"
  12801. :src="testJson.testJson[index1].img"
  12802. style="height: 300px; margin-top: 10px; max-width: 100%"
  12803. />
  12804. </div>
  12805. <div
  12806. class="timuImgBox"
  12807. v-if="
  12808. testJson.testJson[index1].timuList &&
  12809. testJson.testJson[index1].timuList.length
  12810. "
  12811. >
  12812. <div
  12813. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12814. :key="tIndex"
  12815. class="timuImg"
  12816. @click.stop="previewImg(timg.src)"
  12817. >
  12818. <img :src="timg.src" alt="" />
  12819. </div>
  12820. </div>
  12821. <div class="a_add_body">
  12822. <div class="a_add_input">
  12823. <el-radio-group
  12824. v-model="radio[index1]"
  12825. v-if="testJson.testJson[index1].type == '1'"
  12826. >
  12827. <div class="radioBox">
  12828. <el-radio
  12829. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12830. .checkList"
  12831. :key="checkIndex"
  12832. :label="checkIndex"
  12833. :disabled="isAnswer"
  12834. class="redioStyle"
  12835. >
  12836. <div
  12837. style="margin-right: 10px"
  12838. v-if="item2 && item2.imgType && item2.imgType == 1"
  12839. >
  12840. <div class="inImg" @click.stop="previewImg(item2.src)">
  12841. <img :src="item2.src" alt="" />
  12842. </div>
  12843. </div>
  12844. <span v-else v-html="item2"></span>
  12845. </el-radio>
  12846. </div>
  12847. </el-radio-group>
  12848. <el-checkbox-group
  12849. v-model="radio[index1]"
  12850. v-if="testJson.testJson[index1].type == '2'"
  12851. >
  12852. <div class="radioBox">
  12853. <el-checkbox
  12854. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12855. .checkList"
  12856. :key="checkIndex"
  12857. :label="checkIndex"
  12858. :disabled="isAnswer"
  12859. class="redioStyle"
  12860. >
  12861. <div
  12862. style="margin-right: 10px"
  12863. v-if="item2 && item2.imgType && item2.imgType == 1"
  12864. >
  12865. <div class="inImg" @click.stop="previewImg(item2.src)">
  12866. <img :src="item2.src" alt="" />
  12867. </div>
  12868. </div>
  12869. <span v-else v-html="item2"></span>
  12870. </el-checkbox>
  12871. </div>
  12872. </el-checkbox-group>
  12873. </div>
  12874. </div>
  12875. </div>
  12876. </div>
  12877. </div>
  12878. <span slot="footer" class="dialog-footer">
  12879. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12880. >取 消</el-button
  12881. >
  12882. <el-button
  12883. type="primary"
  12884. @click="addStudentTest"
  12885. v-show="noteName == ''"
  12886. >确 定</el-button
  12887. >
  12888. </span>
  12889. </el-dialog>
  12890. <el-dialog
  12891. :title="noteName != '' ? noteName : '查看选择题'"
  12892. :visible.sync="dialogVisibleChoiceTeacher"
  12893. :append-to-body="true"
  12894. width="1000px"
  12895. :before-close="handleClose"
  12896. class="dialog_diy dialog_diy3"
  12897. >
  12898. <div>
  12899. <div class="w_name">
  12900. 学生姓名:<span>{{ sStudent.student }}</span>
  12901. </div>
  12902. <div class="a_addBox">
  12903. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12904. 题目内容
  12905. </div>
  12906. <div
  12907. class="a_add_box"
  12908. v-for="(item1, index1) in testJson.testCount"
  12909. :key="index1"
  12910. >
  12911. <div class="a_add_head">
  12912. <div style="display: flex">
  12913. <span class="askIndex">{{ index1 + 1 }}</span>
  12914. <div
  12915. v-if="testJson.testJson[index1].type == '1'"
  12916. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12917. >
  12918. (单选题)
  12919. </div>
  12920. <div
  12921. v-if="testJson.testJson[index1].type == '2'"
  12922. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12923. >
  12924. (多选题)
  12925. </div>
  12926. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12927. </div>
  12928. <img
  12929. v-if="testJson.testJson[index1].img"
  12930. :src="testJson.testJson[index1].img"
  12931. style="height: 300px; margin-top: 10px; max-width: 100%"
  12932. />
  12933. </div>
  12934. <div
  12935. class="timuImgBox"
  12936. v-if="
  12937. testJson.testJson[index1].timuList &&
  12938. testJson.testJson[index1].timuList.length
  12939. "
  12940. >
  12941. <div
  12942. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12943. :key="tIndex"
  12944. class="timuImg"
  12945. @click.stop="previewImg(timg.src)"
  12946. >
  12947. <img :src="timg.src" alt="" />
  12948. </div>
  12949. </div>
  12950. <div class="a_add_body">
  12951. <div class="a_add_input">
  12952. <el-radio-group
  12953. v-model="radio[index1]"
  12954. v-if="testJson.testJson[index1].type == '1'"
  12955. >
  12956. <div class="radioBox">
  12957. <el-radio
  12958. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12959. .checkList"
  12960. :key="checkIndex"
  12961. :label="checkIndex"
  12962. :disabled="isAnswer"
  12963. class="redioStyle"
  12964. >
  12965. <div
  12966. style="margin-right: 10px"
  12967. v-if="item2 && item2.imgType && item2.imgType == 1"
  12968. >
  12969. <div class="inImg" @click.stop="previewImg(item2.src)">
  12970. <img :src="item2.src" alt="" />
  12971. </div>
  12972. </div>
  12973. <span v-else v-html="item2"></span>
  12974. </el-radio>
  12975. </div>
  12976. </el-radio-group>
  12977. <el-checkbox-group
  12978. v-model="radio[index1]"
  12979. v-if="testJson.testJson[index1].type == '2'"
  12980. >
  12981. <div class="radioBox">
  12982. <el-checkbox
  12983. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12984. .checkList"
  12985. :key="checkIndex"
  12986. :label="checkIndex"
  12987. :disabled="isAnswer"
  12988. class="redioStyle"
  12989. >
  12990. <div
  12991. style="margin-right: 10px"
  12992. v-if="item2 && item2.imgType && item2.imgType == 1"
  12993. >
  12994. <div class="inImg" @click.stop="previewImg(item2.src)">
  12995. <img :src="item2.src" alt="" />
  12996. </div>
  12997. </div>
  12998. <span v-else v-html="item2"></span>
  12999. </el-checkbox>
  13000. </div>
  13001. </el-checkbox-group>
  13002. </div>
  13003. </div>
  13004. </div>
  13005. </div>
  13006. </div>
  13007. <span slot="footer" class="dialog-footer">
  13008. <el-button
  13009. @click="dialogVisibleChoiceTeacher = false"
  13010. v-show="noteName == ''"
  13011. >取 消</el-button
  13012. >
  13013. <el-button
  13014. type="primary"
  13015. @click="addStudentTestTeacher"
  13016. v-show="noteName == ''"
  13017. >确 定</el-button
  13018. >
  13019. </span>
  13020. </el-dialog>
  13021. <el-dialog
  13022. title="查看富文本"
  13023. :visible.sync="dialogVisible1"
  13024. :append-to-body="true"
  13025. width="500px"
  13026. :before-close="handleClose"
  13027. class="dialog_diy textCss"
  13028. >
  13029. <el-form style="font-size: 20px">
  13030. <el-form-item label="文本标题" class="textTitle">
  13031. <div style="font-size: 20px">{{ text.name }}</div>
  13032. </el-form-item>
  13033. <div>富文本内容</div>
  13034. <div
  13035. v-html="text.url"
  13036. style="font-size: 18px; padding: 40px 0 0 0"
  13037. ></div>
  13038. </el-form>
  13039. <span slot="footer" class="dialog-footer">
  13040. <el-button type="primary" @click="dialogVisible1 = false"
  13041. >确定</el-button
  13042. >
  13043. </span>
  13044. </el-dialog>
  13045. <el-dialog
  13046. title="文件预览"
  13047. :visible.sync="dialogVisible3"
  13048. width="50%"
  13049. :before-close="handleClose"
  13050. class="dialog_diy"
  13051. :class="{ fullStyle: full }"
  13052. >
  13053. <div slot="title" class="header-title">
  13054. <div style="color: #fff">文件预览</div>
  13055. <div style="position: absolute; top: 19px; right: 50px">
  13056. <img
  13057. src="../../assets/full.png"
  13058. style="height: 16px; cursor: pointer"
  13059. alt=""
  13060. @click="fullTools"
  13061. />
  13062. </div>
  13063. </div>
  13064. <pdf
  13065. v-if="showPDF"
  13066. :pdfUrl="pptImgUrl"
  13067. style="width: 100%; height: 520px; overflow: auto"
  13068. :class="{ fullStyle: full }"
  13069. ></pdf>
  13070. <iframe
  13071. v-else
  13072. :src="pptImgUrl"
  13073. frameborder="0"
  13074. width="100%"
  13075. height="600"
  13076. :class="{ fullStyle: full }"
  13077. ></iframe>
  13078. </el-dialog>
  13079. <el-dialog
  13080. title="文件预览"
  13081. :visible.sync="dialogVisible6"
  13082. width="50%"
  13083. :before-close="handleClose"
  13084. class="dialog_diy"
  13085. >
  13086. <iframe
  13087. :src="pptImgUrl1"
  13088. frameborder="0"
  13089. width="100%"
  13090. height="600"
  13091. ></iframe>
  13092. </el-dialog>
  13093. <el-dialog
  13094. title="提示"
  13095. :visible.sync="dialogVisible4"
  13096. :append-to-body="true"
  13097. width="800px"
  13098. :before-close="handleClose"
  13099. class="dialog_diy notice"
  13100. >
  13101. <div>此功能暂未开放!</div>
  13102. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13103. </el-dialog>
  13104. <el-dialog
  13105. title="问答"
  13106. :visible.sync="answerDialogVisible"
  13107. :append-to-body="true"
  13108. width="800px"
  13109. :before-close="handleClose"
  13110. class="dialog_diy"
  13111. >
  13112. <div>
  13113. <div
  13114. style="
  13115. display: flex;
  13116. flex-wrap: nowrap;
  13117. flex-direction: column;
  13118. position: relative;
  13119. "
  13120. >
  13121. <div class="queTop" style="padding: 20px 0 20px 0">
  13122. <div class="question">
  13123. <img src="../../assets/icon/question.png" alt />
  13124. </div>
  13125. <div class="queTitle">
  13126. <div style="width: 90px; min-width: 90px">提问:</div>
  13127. <div>{{ answerQ }}</div>
  13128. </div>
  13129. </div>
  13130. <div class="ediBottom">
  13131. <textarea
  13132. rows="6"
  13133. class="binfo_input"
  13134. cols
  13135. style="width: 95%; height: 120px"
  13136. v-model="questionAnswer"
  13137. ></textarea>
  13138. </div>
  13139. </div>
  13140. </div>
  13141. <div slot="footer">
  13142. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13143. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13144. </div>
  13145. </el-dialog>
  13146. <el-dialog
  13147. title="问答"
  13148. :visible.sync="answerDialogVisibleTeacher"
  13149. :append-to-body="true"
  13150. width="800px"
  13151. :before-close="handleClose"
  13152. class="dialog_diy"
  13153. >
  13154. <div>
  13155. <div class="w_name">
  13156. 学生姓名:<span>{{ sStudent.student }}</span>
  13157. </div>
  13158. <div
  13159. style="
  13160. display: flex;
  13161. flex-wrap: nowrap;
  13162. flex-direction: column;
  13163. position: relative;
  13164. "
  13165. >
  13166. <div class="queTop" style="padding: 20px 0 20px 0">
  13167. <div class="question">
  13168. <img src="../../assets/icon/question.png" alt />
  13169. </div>
  13170. <div class="queTitle">
  13171. <div style="width: 90px; min-width: 90px">提问:</div>
  13172. <div>{{ answerQ }}</div>
  13173. </div>
  13174. </div>
  13175. <div class="ediBottom">
  13176. <textarea
  13177. rows="6"
  13178. class="binfo_input"
  13179. cols
  13180. style="width: 95%; height: 120px"
  13181. v-model="questionAnswer"
  13182. ></textarea>
  13183. </div>
  13184. </div>
  13185. </div>
  13186. <div slot="footer">
  13187. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13188. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13189. </div>
  13190. </el-dialog>
  13191. <el-dialog
  13192. title="倒计时"
  13193. :visible.sync="timeDialogVisible"
  13194. :append-to-body="true"
  13195. width="800px"
  13196. :before-close="handleClose"
  13197. class="dialog_diy"
  13198. >
  13199. <div>
  13200. <div style="margin-bottom: 20px; color: #999">
  13201. 提示:点击“+”或“-”修改倒计时时长。
  13202. </div>
  13203. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13204. </div>
  13205. <div slot="footer">
  13206. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13207. </div>
  13208. </el-dialog>
  13209. <el-dialog
  13210. title="权限设置"
  13211. :visible.sync="juriVisible"
  13212. :append-to-body="true"
  13213. width="400px"
  13214. :before-close="handleClose"
  13215. class="dialog_diy"
  13216. >
  13217. <div>
  13218. <div class="open_box">
  13219. <div class="switch_box">
  13220. <span>允许学生查看所有作业</span>
  13221. <el-switch
  13222. v-model="sIsOpen"
  13223. active-text=""
  13224. class="switchCss"
  13225. @change="updateSLook"
  13226. ></el-switch>
  13227. </div>
  13228. <div
  13229. class="switch_box"
  13230. v-if="
  13231. (courseDetail.userid == userid ||
  13232. (courseDetail.course_teacher &&
  13233. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13234. "
  13235. >
  13236. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13237. <span>禁止学生查看阶段</span>
  13238. <el-switch
  13239. v-model="IsLookOpen"
  13240. active-text=""
  13241. class="switchCss"
  13242. @change="updateLookOpen"
  13243. ></el-switch>
  13244. </div>
  13245. <div class="switch_box" v-if=" (courseDetail.userid == userid ||
  13246. (courseDetail.course_teacher &&
  13247. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  13248. <span>开启跟随模式</span>
  13249. <el-switch
  13250. v-model="IsFollow"
  13251. active-text=""
  13252. class="switchCss"
  13253. @change="updateFollow"
  13254. ></el-switch>
  13255. </div>
  13256. <div class="switch_box" v-if="courseDetail.userid == userid">
  13257. <span>允许学生查看内容资料</span>
  13258. <el-switch
  13259. v-model="IsStulook"
  13260. active-text=""
  13261. class="switchCss"
  13262. @change="updateIsStulook"
  13263. ></el-switch>
  13264. </div>
  13265. </div>
  13266. </div>
  13267. <div slot="footer">
  13268. <el-button
  13269. style="background: #409efe; color: #fff"
  13270. @click="juriVisible = false"
  13271. >关 闭</el-button
  13272. >
  13273. </div>
  13274. </el-dialog>
  13275. <el-dialog
  13276. title="查看视频"
  13277. :visible.sync="videoVisible"
  13278. :append-to-body="true"
  13279. width="1000px"
  13280. :before-close="handleClose"
  13281. class="dialog_diy1"
  13282. >
  13283. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13284. <video-player
  13285. class="video-player vjs-custom-skin"
  13286. :playsinline="true"
  13287. :options="videoDetail"
  13288. @play="onPlayerPlay($event)"
  13289. style="width: 100%; height: 100%"
  13290. ></video-player>
  13291. </div>
  13292. <div slot="footer">
  13293. <el-button
  13294. style="background: #409efe; color: #fff"
  13295. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13296. >
  13297. 关 闭</el-button
  13298. >
  13299. </div>
  13300. </el-dialog>
  13301. <el-dialog
  13302. title="查看详情"
  13303. :visible.sync="commentDialogVisible"
  13304. :append-to-body="true"
  13305. width="800px"
  13306. :before-close="handleClose"
  13307. class="dialog_diy"
  13308. >
  13309. <div class="commentTop">
  13310. <div class="studentDetail">
  13311. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13312. <div class="nameAndTime">
  13313. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13314. <div>{{ commentDetail.time }}</div>
  13315. </div>
  13316. <div
  13317. class="returnBtn"
  13318. style="margin-left: auto; width: 80px"
  13319. v-if="
  13320. commentDetail.works &&
  13321. commentDetail.type == 0 &&
  13322. (tType == 1 || tType == 4)
  13323. "
  13324. @click="
  13325. showPicturePaint(
  13326. commentDetail.img ? commentDetail.img : commentDetail.works
  13327. )
  13328. "
  13329. >
  13330. 教师批注
  13331. </div>
  13332. </div>
  13333. <div
  13334. class="worksAnswer"
  13335. v-if="commentDetail.works && commentDetail.type == 2"
  13336. >
  13337. {{ JSON.parse(commentDetail.works)[0].answer }}
  13338. </div>
  13339. <div
  13340. class="worksAnswer"
  13341. v-if="commentDetail.works && commentDetail.type == 1"
  13342. >
  13343. <img
  13344. src="../../assets/teacherWork.png"
  13345. v-if="commentDetail.ateacher"
  13346. class="w_teachert"
  13347. />
  13348. <pdf
  13349. v-if="showPDF"
  13350. :pdfUrl="pptImgUrl"
  13351. style="width: 100%; height: 520px; overflow: auto"
  13352. :class="{ fullStyle: full }"
  13353. ></pdf>
  13354. <iframe
  13355. v-else
  13356. :src="pptImgUrl"
  13357. frameborder="0"
  13358. width="100%"
  13359. height="600"
  13360. :class="{ fullStyle: full }"
  13361. ></iframe>
  13362. </div>
  13363. <div
  13364. class="worksAnswer"
  13365. v-if="commentDetail.works && commentDetail.type == 0"
  13366. >
  13367. <img
  13368. src="../../assets/teacherWork.png"
  13369. v-if="commentDetail.ateacher"
  13370. class="w_teachert"
  13371. style="right: 105px"
  13372. />
  13373. <img
  13374. :src="commentDetail.works"
  13375. alt=""
  13376. @click="previewImg(commentDetail.works)"
  13377. />
  13378. </div>
  13379. <div
  13380. class="worksAnswer"
  13381. v-if="commentDetail.works && commentDetail.type == 3"
  13382. >
  13383. <img
  13384. src="../../assets/teacherWork.png"
  13385. v-if="commentDetail.ateacher"
  13386. class="w_teachert"
  13387. />
  13388. <video-player
  13389. class="video-player vjs-custom-skin"
  13390. :playsinline="true"
  13391. :options="videoDetail"
  13392. @play="onPlayerPlay($event)"
  13393. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13394. ></video-player>
  13395. </div>
  13396. <div
  13397. class="worksAnswer"
  13398. v-if="commentDetail.works && commentDetail.type == 10"
  13399. >
  13400. <div class="cont" v-html="commentDetail.works.text"></div>
  13401. </div>
  13402. <div
  13403. class="worksAnswer codeFileBox"
  13404. v-if="commentDetail.works && commentDetail.type == 12"
  13405. @click="downloadFile(commentDetail.works)"
  13406. >
  13407. <img src="../../assets/icon/codeFile.png" />
  13408. <div>点击下载文件</div>
  13409. </div>
  13410. <div
  13411. class="worksAnswer codeFileBox"
  13412. v-if="commentDetail.works && commentDetail.type == 15"
  13413. @click="
  13414. openCocoPi(
  13415. 57,
  13416. commentIndexJson.toolIndex,
  13417. commentDetail.userid,
  13418. commentDetail.sName
  13419. )
  13420. "
  13421. >
  13422. <img src="../../assets/icon/codeFile.png" />
  13423. <div>点击打开CocoPi</div>
  13424. </div>
  13425. <div
  13426. class="worksAnswer"
  13427. v-if="commentDetail.works && commentDetail.type == 13"
  13428. >
  13429. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13430. </div>
  13431. <div
  13432. class="worksAnswer"
  13433. v-if="commentDetail.works && commentDetail.type == 4"
  13434. >
  13435. <div class="evalCss">
  13436. <div class="nav">请选择星星进行评分</div>
  13437. <div class="middleBox" v-if="eScore.eStar">
  13438. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13439. <div class="nameAndrate">
  13440. <div>{{ e.value }}</div>
  13441. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13442. </div>
  13443. <div v-if="e.detail">{{ e.detail }}</div>
  13444. </div>
  13445. <div class="bz">
  13446. <textarea
  13447. disabled
  13448. rows="4"
  13449. class="pj"
  13450. style="
  13451. padding: 10px 5px;
  13452. width: 70%;
  13453. background: #f7f6f9;
  13454. font-size: 14px;
  13455. text-indent: 10px;
  13456. color: #000;
  13457. "
  13458. cols
  13459. v-model="eScore.eBzText"
  13460. placeholder="请输入评价内容..."
  13461. ></textarea>
  13462. </div>
  13463. </div>
  13464. </div>
  13465. </div>
  13466. <div class="comment">
  13467. <div class="commentList">
  13468. <div class="commentImg">
  13469. <img
  13470. @click="
  13471. isLikes(
  13472. commentDetail.wid,
  13473. userid,
  13474. 1,
  13475. null,
  13476. commentDetail.isLikes,
  13477. commentDetail.sName
  13478. )
  13479. "
  13480. :src="commentDetail.isLikes == true ? likes : noLikes"
  13481. alt=""
  13482. />
  13483. </div>
  13484. <div>{{ commentDetail.likesCount }}</div>
  13485. </div>
  13486. <div class="commentList">
  13487. <div class="commentImg">
  13488. <img src="../../assets/icon/comment/comment.png" alt="" />
  13489. </div>
  13490. <div>{{ commentDetail.commentCount }}</div>
  13491. </div>
  13492. </div>
  13493. <div class="drawPBox" v-if="commentDetail.img">
  13494. <span>教师批注</span>
  13495. <img
  13496. :src="commentDetail.img"
  13497. alt=""
  13498. @click="previewImg(commentDetail.img)"
  13499. />
  13500. <span
  13501. class="deleteImg"
  13502. v-if="tType == 1 || tType == 4"
  13503. @click.stop="deletePicturePaint(commentDetail.wid)"
  13504. style="
  13505. font-size: 14px;
  13506. width: auto !important;
  13507. color: #b4b4b4;
  13508. top: unset;
  13509. bottom: 0;
  13510. border: none;
  13511. padding: 0;
  13512. height: auto !important;
  13513. margin: 0;
  13514. "
  13515. >删除</span
  13516. >
  13517. </div>
  13518. </div>
  13519. <div class="commentBox">
  13520. <div class="pl">评论:</div>
  13521. <div style="max-height: 200px; overflow: auto">
  13522. <div
  13523. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13524. style="padding: 10px 0 0 0"
  13525. >
  13526. <div
  13527. class="studentDetail"
  13528. style="padding-top: 10px"
  13529. v-for="(co, coIndex) in commentDetail.commentJson"
  13530. :key="coIndex"
  13531. >
  13532. <div class="tx" style="min-width: 50px">
  13533. <img src="../../assets/avatar.png" alt="" />
  13534. </div>
  13535. <div class="plPerson">
  13536. <div class="plName">
  13537. <div>{{ co.commentPeople }}</div>
  13538. <div style="margin-left: 5px">
  13539. {{ co.commentTime }}
  13540. </div>
  13541. <div
  13542. class="deleteComment"
  13543. v-if="userid == co.userid"
  13544. @click="deleteComment(co.wid)"
  13545. >
  13546. 删除
  13547. </div>
  13548. </div>
  13549. <div class="plContent">{{ co.commentText }}</div>
  13550. </div>
  13551. </div>
  13552. </div>
  13553. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13554. </div>
  13555. </div>
  13556. <div style="margin-top: 10px">
  13557. <div class="displayBox">
  13558. <div
  13559. style="
  13560. color: #556db4;
  13561. font-size: 14px;
  13562. font-weight: bold;
  13563. padding-bottom: 10px;
  13564. "
  13565. >
  13566. 评价
  13567. </div>
  13568. <div class="easy_comment" v-if="false">
  13569. <div
  13570. v-for="(p, pIndex) in PlTextList"
  13571. :key="pIndex"
  13572. @click="fastText(p, 1)"
  13573. >
  13574. {{ p }}
  13575. </div>
  13576. </div>
  13577. </div>
  13578. <div>
  13579. <textarea
  13580. rows="3"
  13581. class="pj"
  13582. style="padding: 10px 5px"
  13583. cols
  13584. v-model="commentText"
  13585. placeholder="请输入评论"
  13586. ></textarea>
  13587. </div>
  13588. </div>
  13589. <div slot="footer">
  13590. <el-button
  13591. @click="
  13592. (commentDialogVisible = false),
  13593. (commentIndexJson = {}),
  13594. videoDetail.sources && videoDetail.sources[0]
  13595. ? (videoDetail.sources[0].src = '')
  13596. : ''
  13597. "
  13598. >取 消</el-button
  13599. >
  13600. <el-button
  13601. type="primary"
  13602. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  13603. >确 定</el-button
  13604. >
  13605. </div>
  13606. </el-dialog>
  13607. <el-dialog
  13608. title="查看文档"
  13609. :visible.sync="fullDialogVisible"
  13610. :append-to-body="true"
  13611. width="100%"
  13612. :before-close="handleClose"
  13613. :show-close="false"
  13614. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13615. >
  13616. <div slot="title" class="header-title">
  13617. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13618. <div v-else style="color: #fff">查看文档</div>
  13619. <div
  13620. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  13621. style="
  13622. cursor: pointer;
  13623. position: absolute;
  13624. top: 20px;
  13625. right: 20px;
  13626. color: #fff;
  13627. "
  13628. >
  13629. 退出全屏
  13630. </div>
  13631. </div>
  13632. <div style="height: 100%;position: relative;">
  13633. <el-button
  13634. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13635. size="medium"
  13636. type="primary"
  13637. @click="
  13638. () => {
  13639. (fullDialogVisible = false),
  13640. changeSplitScreenBehavior({ code: 99 });
  13641. }
  13642. "
  13643. style="
  13644. cursor: pointer;
  13645. position: absolute;
  13646. top: 10px;
  13647. right: 20px;
  13648. color: #fff;
  13649. "
  13650. >
  13651. 退出全屏
  13652. </el-button>
  13653. <div
  13654. class="wheel"
  13655. v-if="fulltype == 1"
  13656. style="
  13657. box-shadow: 0 0 6px 1px #f2f2f2;
  13658. height:100%;
  13659. width: 100%;
  13660. background: #f1f1f1;
  13661. "
  13662. >
  13663. <div class="title" style="width: 100%; box-sizing: border-box">
  13664. 查看文档
  13665. </div>
  13666. <el-form class="textBox" style="height: 90%">
  13667. <el-form-item class="textTitle">
  13668. <div style="font-size: 22px">
  13669. {{ fullUrl.name }}
  13670. </div>
  13671. </el-form-item>
  13672. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13673. <div
  13674. v-html="fullUrl.url"
  13675. class="textContent"
  13676. style="height: auto"
  13677. ></div>
  13678. </el-form>
  13679. </div>
  13680. <div
  13681. class="wheel"
  13682. v-else-if="
  13683. (fulltype == 2 || fulltype == 4) &&
  13684. fullUrl.indexOf(
  13685. 'https://view.officeapps.live.com/op/view.aspx?src='
  13686. ) != -1
  13687. "
  13688. style="width: 100%;height:100%; margin: 0 auto"
  13689. >
  13690. <iframe
  13691. style="width: 100%; height: 100%; border: none"
  13692. :src="fullUrl"
  13693. ></iframe>
  13694. </div>
  13695. <iframe
  13696. style="width: 100%; height: 100%; border: none"
  13697. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13698. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13699. :src="fullUrl"
  13700. ></iframe>
  13701. <iframe
  13702. style="width: 100%; height: 100%; border: none"
  13703. security="restricted"
  13704. v-else-if="(fulltype == 2 || fulltype == 4)"
  13705. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13706. :src="fullUrl"
  13707. ></iframe>
  13708. <pdf
  13709. v-else-if="fulltype == 3"
  13710. :pdfUrl="fullUrl"
  13711. style="width: 100%; height: 100%; overflow: auto"
  13712. ></pdf>
  13713. <iframe
  13714. style="width: 100%; height: 100%; border: none"
  13715. security="restricted"
  13716. v-if="(fulltype == 16)"
  13717. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13718. :src="fullUrl"
  13719. ></iframe>
  13720. </div>
  13721. <!-- <div slot="footer">
  13722. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13723. </div> -->
  13724. </el-dialog>
  13725. <el-dialog
  13726. title="个人评价"
  13727. :visible.sync="studentEvalDialogVisible"
  13728. :append-to-body="true"
  13729. width="800px"
  13730. :before-close="handleClose"
  13731. class="dialog_diy"
  13732. >
  13733. <div class="evalCss">
  13734. <div class="nav">请选择星星进行评分</div>
  13735. <div class="middleBox" v-if="eScore.eStar">
  13736. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13737. <div class="nameAndrate">
  13738. <div>{{ e.value }}</div>
  13739. <el-rate
  13740. v-model="eScore.eStar[eIndex]"
  13741. :disabled="isStar"
  13742. ></el-rate>
  13743. </div>
  13744. <div v-if="e.detail">{{ e.detail }}</div>
  13745. </div>
  13746. <div class="easy_comment" v-if="false">
  13747. <div
  13748. v-for="(p, pIndex) in PlTextList"
  13749. :key="pIndex"
  13750. @click="fastText(p, 2)"
  13751. >
  13752. {{ p }}
  13753. </div>
  13754. </div>
  13755. <div class="bz">
  13756. <textarea
  13757. :disabled="isStar"
  13758. rows="4"
  13759. class="pj"
  13760. style="
  13761. padding: 10px 5px;
  13762. width: 70%;
  13763. background: #f7f6f9;
  13764. font-size: 14px;
  13765. text-indent: 10px;
  13766. "
  13767. cols
  13768. v-model="eScore.eBzText"
  13769. placeholder="请输入评价内容..."
  13770. ></textarea>
  13771. </div>
  13772. </div>
  13773. </div>
  13774. <div slot="footer">
  13775. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13776. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13777. >确 定</el-button
  13778. >
  13779. </div>
  13780. </el-dialog>
  13781. <el-dialog
  13782. title="个人评价"
  13783. :visible.sync="studentEvalDialogVisibleTeacher"
  13784. :append-to-body="true"
  13785. width="800px"
  13786. :before-close="handleClose"
  13787. class="dialog_diy"
  13788. >
  13789. <div class="w_name">
  13790. 学生姓名:<span>{{ sStudent.student }}</span>
  13791. </div>
  13792. <div class="evalCss">
  13793. <div class="nav">请选择星星进行评分</div>
  13794. <div class="middleBox" v-if="eScore.eStar">
  13795. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13796. <div class="nameAndrate">
  13797. <div>{{ e.value }}</div>
  13798. <el-rate
  13799. v-model="eScore.eStar[eIndex]"
  13800. :disabled="isStar"
  13801. ></el-rate>
  13802. </div>
  13803. <div v-if="e.detail">{{ e.detail }}</div>
  13804. </div>
  13805. <div class="easy_comment" v-if="false">
  13806. <div
  13807. v-for="(p, pIndex) in PlTextList"
  13808. :key="pIndex"
  13809. @click="fastText(p, 2)"
  13810. >
  13811. {{ p }}
  13812. </div>
  13813. </div>
  13814. <div class="bz">
  13815. <textarea
  13816. :disabled="isStar"
  13817. rows="4"
  13818. class="pj"
  13819. style="
  13820. padding: 10px 5px;
  13821. width: 70%;
  13822. background: #f7f6f9;
  13823. font-size: 14px;
  13824. text-indent: 10px;
  13825. "
  13826. cols
  13827. v-model="eScore.eBzText"
  13828. placeholder="请输入评价内容..."
  13829. ></textarea>
  13830. </div>
  13831. </div>
  13832. </div>
  13833. <div slot="footer">
  13834. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13835. >取 消</el-button
  13836. >
  13837. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13838. >确 定</el-button
  13839. >
  13840. </div>
  13841. </el-dialog>
  13842. <el-dialog
  13843. title="选择匹配"
  13844. :visible.sync="dialogVisibleSelect"
  13845. :append-to-body="true"
  13846. width="90%"
  13847. :before-close="handleClose"
  13848. class="dialog_diy dialog_diy3"
  13849. >
  13850. <div v-if="selectJson">
  13851. <div class="select_box2">
  13852. <div class="select_box2_title">
  13853. <div>选择匹配</div>
  13854. <div>请选择对应的答案进行答题!</div>
  13855. </div>
  13856. <div class="select_box2_box">
  13857. <div class="select_box2_img">
  13858. <img
  13859. :src="selectJson.url"
  13860. @click="previewImg(selectJson.url)"
  13861. alt=""
  13862. />
  13863. </div>
  13864. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13865. <div style="padding-top: 15px">
  13866. <div class="select_answer_title" v-if="isSelect">
  13867. {{ selectAnswer.stu }}
  13868. </div>
  13869. <div class="select_answer_title" v-else>
  13870. 根据题目选择对应答案
  13871. </div>
  13872. <div
  13873. class="select_box2_answer_box"
  13874. v-for="(item2, checkIndex) in selectJson.select"
  13875. :key="checkIndex"
  13876. >
  13877. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13878. <el-select
  13879. :disabled="isSelect"
  13880. v-model="selectAnswer.answer[checkIndex]"
  13881. placeholder="请选择正确答案"
  13882. >
  13883. <el-option
  13884. v-for="(e, eIndex) in selectJson.select"
  13885. :key="eIndex"
  13886. :label="e"
  13887. :value="eIndex"
  13888. >
  13889. </el-option>
  13890. </el-select>
  13891. </div>
  13892. </div>
  13893. <div
  13894. class="rightAnswerCss"
  13895. v-if="isSelect && (tType == 1 || tType == 4)"
  13896. >
  13897. <div
  13898. v-for="(a, aIndex) in selectJson.answer"
  13899. :key="aIndex"
  13900. class="rightAnswer"
  13901. >
  13902. <div
  13903. v-if="selectAnswer.answer[aIndex] === a"
  13904. style="color: #767de1"
  13905. >
  13906. 回答正确
  13907. </div>
  13908. <div v-else>回答错误</div>
  13909. <div
  13910. style="margin-left: 10px"
  13911. v-if="selectAnswer.answer[aIndex] !== a"
  13912. >
  13913. 正确答案:
  13914. </div>
  13915. <div
  13916. :class="
  13917. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13918. "
  13919. >
  13920. {{ selectJson.select[a] }}
  13921. </div>
  13922. </div>
  13923. </div>
  13924. </div>
  13925. <div class="upAnswerCss">
  13926. <el-button
  13927. type="primary"
  13928. @click="addSelectAnswer"
  13929. v-if="!isSelect"
  13930. >提交答案</el-button
  13931. >
  13932. </div>
  13933. </div>
  13934. </div>
  13935. </div>
  13936. </el-dialog>
  13937. <el-dialog
  13938. title="选择匹配"
  13939. :visible.sync="dialogVisibleSelectTeacher"
  13940. :append-to-body="true"
  13941. width="90%"
  13942. :before-close="handleClose"
  13943. class="dialog_diy dialog_diy3"
  13944. >
  13945. <div v-if="selectJson">
  13946. <div class="w_name">
  13947. 学生姓名:<span>{{ sStudent.student }}</span>
  13948. </div>
  13949. <div class="select_box2">
  13950. <div class="select_box2_title">
  13951. <div>选择匹配</div>
  13952. <div>请选择对应的答案进行答题!</div>
  13953. </div>
  13954. <div class="select_box2_box">
  13955. <div class="select_box2_img">
  13956. <img
  13957. :src="selectJson.url"
  13958. @click="previewImg(selectJson.url)"
  13959. alt=""
  13960. />
  13961. </div>
  13962. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13963. <div style="padding-top: 15px">
  13964. <div class="select_answer_title" v-if="isSelect">
  13965. {{ selectAnswer.stu }}
  13966. </div>
  13967. <div class="select_answer_title" v-else>
  13968. 根据题目选择对应答案
  13969. </div>
  13970. <div
  13971. class="select_box2_answer_box"
  13972. v-for="(item2, checkIndex) in selectJson.select"
  13973. :key="checkIndex"
  13974. >
  13975. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13976. <el-select
  13977. :disabled="isSelect"
  13978. v-model="selectAnswer.answer[checkIndex]"
  13979. placeholder="请选择正确答案"
  13980. >
  13981. <el-option
  13982. v-for="(e, eIndex) in selectJson.select"
  13983. :key="eIndex"
  13984. :label="e"
  13985. :value="eIndex"
  13986. >
  13987. </el-option>
  13988. </el-select>
  13989. </div>
  13990. </div>
  13991. <div
  13992. class="rightAnswerCss"
  13993. v-if="isSelect && (tType == 1 || tType == 4)"
  13994. >
  13995. <div
  13996. v-for="(a, aIndex) in selectJson.answer"
  13997. :key="aIndex"
  13998. class="rightAnswer"
  13999. >
  14000. <div
  14001. v-if="selectAnswer.answer[aIndex] === a"
  14002. style="color: #767de1"
  14003. >
  14004. 回答正确
  14005. </div>
  14006. <div v-else>回答错误</div>
  14007. <div
  14008. style="margin-left: 10px"
  14009. v-if="selectAnswer.answer[aIndex] !== a"
  14010. >
  14011. 正确答案:
  14012. </div>
  14013. <div
  14014. :class="
  14015. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14016. "
  14017. >
  14018. {{ selectJson.select[a] }}
  14019. </div>
  14020. </div>
  14021. </div>
  14022. </div>
  14023. <div class="upAnswerCss">
  14024. <el-button
  14025. type="primary"
  14026. @click="addSelectAnswerTeacher"
  14027. v-if="!isSelect"
  14028. >提交答案</el-button
  14029. >
  14030. </div>
  14031. </div>
  14032. </div>
  14033. </div>
  14034. </el-dialog>
  14035. <el-dialog
  14036. title="教师评分"
  14037. :visible.sync="dialogVisibleScore"
  14038. :append-to-body="true"
  14039. width="800px"
  14040. :before-close="handleClose"
  14041. class="dialog_diy"
  14042. >
  14043. <div>
  14044. <div class="studentDetail">
  14045. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14046. <div class="nameAndTime">
  14047. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14048. <div>{{ commentDetail.time }}</div>
  14049. </div>
  14050. </div>
  14051. <div
  14052. class="worksAnswer"
  14053. v-if="commentDetail.works && commentDetail.type == 2"
  14054. >
  14055. {{ JSON.parse(commentDetail.works)[0].answer }}
  14056. </div>
  14057. <div
  14058. class="worksAnswer"
  14059. v-if="commentDetail.works && commentDetail.type == 1"
  14060. >
  14061. <pdf
  14062. v-if="showPDF"
  14063. :pdfUrl="pptImgUrl"
  14064. style="width: 100%; height: 520px; overflow: auto"
  14065. :class="{ fullStyle: full }"
  14066. ></pdf>
  14067. <iframe
  14068. v-else
  14069. :src="pptImgUrl"
  14070. frameborder="0"
  14071. width="100%"
  14072. height="600"
  14073. :class="{ fullStyle: full }"
  14074. ></iframe>
  14075. </div>
  14076. <div
  14077. class="worksAnswer"
  14078. v-if="commentDetail.works && commentDetail.type == 0"
  14079. >
  14080. <img
  14081. :src="commentDetail.works"
  14082. alt=""
  14083. @click="previewImg(commentDetail.works)"
  14084. />
  14085. </div>
  14086. <div
  14087. class="worksAnswer"
  14088. v-if="commentDetail.works && commentDetail.type == 3"
  14089. >
  14090. <video-player
  14091. class="video-player vjs-custom-skin"
  14092. :playsinline="true"
  14093. :options="videoDetail"
  14094. @play="onPlayerPlay($event)"
  14095. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14096. ></video-player>
  14097. </div>
  14098. <div
  14099. class="worksAnswer codeFileBox"
  14100. v-if="commentDetail.works && commentDetail.type == 12"
  14101. @click="downloadFile(commentDetail.works)"
  14102. >
  14103. <img src="../../assets/icon/codeFile.png" />
  14104. <div>点击下载文件</div>
  14105. </div>
  14106. <div
  14107. class="worksAnswer codeFileBox"
  14108. v-if="commentDetail.works && commentDetail.type == 15"
  14109. @click="
  14110. openCocoPi(
  14111. 57,
  14112. commentIndexJson.toolIndex,
  14113. commentDetail.userid,
  14114. commentDetail.sName
  14115. )
  14116. "
  14117. >
  14118. <img src="../../assets/icon/codeFile.png" />
  14119. <div>点击打开CocoPi</div>
  14120. </div>
  14121. <div
  14122. class="worksAnswer"
  14123. v-if="commentDetail.works && commentDetail.type == 13"
  14124. >
  14125. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14126. </div>
  14127. <div class="scoreBox">
  14128. <span class="t">请输入分数</span>
  14129. <el-input-number
  14130. :disabled="courseDetail.userid != userid"
  14131. v-model="wScore"
  14132. :controls="false"
  14133. :min="0"
  14134. :max="100"
  14135. ></el-input-number>
  14136. </div>
  14137. <div class="scoreDetailBox">
  14138. <span class="t">评分评论</span>
  14139. <el-input
  14140. type="textarea"
  14141. :rows="5"
  14142. :disabled="courseDetail.userid != userid"
  14143. resize="none"
  14144. v-model="scoreDetail"
  14145. placeholder="请输入对学生的评价"
  14146. >
  14147. </el-input>
  14148. </div>
  14149. </div>
  14150. <span slot="footer" class="dialog-footer">
  14151. <el-button
  14152. @click="
  14153. (dialogVisibleScore = false),
  14154. (commentIndexJson = {}),
  14155. videoDetail.sources && videoDetail.sources[0]
  14156. ? (videoDetail.sources[0].src = '')
  14157. : ''
  14158. "
  14159. >取 消</el-button
  14160. >
  14161. <el-button
  14162. type="primary"
  14163. v-if="courseDetail.userid == userid"
  14164. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  14165. >确 定
  14166. </el-button>
  14167. </span>
  14168. </el-dialog>
  14169. <el-dialog
  14170. title="排序"
  14171. :visible.sync="dialogVisibleSentence"
  14172. :append-to-body="true"
  14173. width="1000px"
  14174. :before-close="handleClose"
  14175. class="dialog_diy dialog_diy3"
  14176. >
  14177. <div>
  14178. <div class="sentenBox">
  14179. <div
  14180. v-for="(st, stIndex) in sentenceList"
  14181. :key="stIndex"
  14182. style="padding-bottom: 20px"
  14183. >
  14184. <div
  14185. style="padding: 15px 0 10px 20px"
  14186. class="sentenceTitle"
  14187. :index="stIndex + 1"
  14188. >
  14189. 题目{{ stIndex + 1 }}:请选择正确顺序
  14190. </div>
  14191. <div class="cardList" v-if="st.chooseSenList">
  14192. <div class="cardBox">
  14193. <div
  14194. v-for="(r, rIndex) in st.chooseSenList"
  14195. :key="rIndex"
  14196. @click="returnCard(r, stIndex, rIndex)"
  14197. >
  14198. <el-tooltip
  14199. class="item"
  14200. effect="light"
  14201. :content="r"
  14202. placement="top"
  14203. v-if="r != '' && r != undefined"
  14204. >
  14205. <div
  14206. :class="{
  14207. isCard: r,
  14208. isChooseCard: r == '' || r == undefined,
  14209. }"
  14210. >
  14211. <div>{{ r }}</div>
  14212. </div>
  14213. </el-tooltip>
  14214. <div
  14215. :class="{
  14216. isCard: r,
  14217. isChooseCard: r == '' || r == undefined,
  14218. }"
  14219. v-else
  14220. >
  14221. <div>{{ r }}</div>
  14222. </div>
  14223. </div>
  14224. </div>
  14225. </div>
  14226. <div class="cardList" v-if="st.addChangeSen">
  14227. <div class="cardBox">
  14228. <div
  14229. v-for="(s, sIndex) in st.addChangeSen"
  14230. :key="sIndex"
  14231. @click="setRightAnswer(s, stIndex, sIndex)"
  14232. >
  14233. <el-tooltip
  14234. class="item"
  14235. effect="light"
  14236. :content="s"
  14237. placement="top"
  14238. v-if="s != '' && s != undefined"
  14239. >
  14240. <div
  14241. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14242. >
  14243. <div>{{ s }}</div>
  14244. </div>
  14245. </el-tooltip>
  14246. <div
  14247. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14248. v-else
  14249. >
  14250. <div>{{ s }}</div>
  14251. </div>
  14252. </div>
  14253. </div>
  14254. </div>
  14255. </div>
  14256. </div>
  14257. </div>
  14258. <span slot="footer" class="dialog-footer">
  14259. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14260. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14261. </span>
  14262. </el-dialog>
  14263. <el-dialog
  14264. title="排序"
  14265. :visible.sync="dialogVisibleSentenceTeacher"
  14266. :append-to-body="true"
  14267. width="1000px"
  14268. :before-close="handleClose"
  14269. class="dialog_diy dialog_diy3"
  14270. >
  14271. <div>
  14272. <div class="w_name">
  14273. 学生姓名:<span>{{ sStudent.student }}</span>
  14274. </div>
  14275. <div class="sentenBox">
  14276. <div
  14277. v-for="(st, stIndex) in sentenceList"
  14278. :key="stIndex"
  14279. style="padding-bottom: 20px"
  14280. >
  14281. <div
  14282. style="padding: 15px 0 10px 20px"
  14283. class="sentenceTitle"
  14284. :index="stIndex + 1"
  14285. >
  14286. 题目{{ stIndex + 1 }}:请选择正确顺序
  14287. </div>
  14288. <div class="cardList" v-if="st.chooseSenList">
  14289. <div class="cardBox">
  14290. <div
  14291. v-for="(r, rIndex) in st.chooseSenList"
  14292. :key="rIndex"
  14293. @click="returnCard(r, stIndex, rIndex)"
  14294. >
  14295. <el-tooltip
  14296. class="item"
  14297. effect="light"
  14298. :content="r"
  14299. placement="top"
  14300. v-if="r != '' && r != undefined"
  14301. >
  14302. <div
  14303. :class="{
  14304. isCard: r,
  14305. isChooseCard: r == '' || r == undefined,
  14306. }"
  14307. >
  14308. <div>{{ r }}</div>
  14309. </div>
  14310. </el-tooltip>
  14311. <div
  14312. :class="{
  14313. isCard: r,
  14314. isChooseCard: r == '' || r == undefined,
  14315. }"
  14316. v-else
  14317. >
  14318. <div>{{ r }}</div>
  14319. </div>
  14320. </div>
  14321. </div>
  14322. </div>
  14323. <div class="cardList" v-if="st.addChangeSen">
  14324. <div class="cardBox">
  14325. <div
  14326. v-for="(s, sIndex) in st.addChangeSen"
  14327. :key="sIndex"
  14328. @click="setRightAnswer(s, stIndex, sIndex)"
  14329. >
  14330. <el-tooltip
  14331. class="item"
  14332. effect="light"
  14333. :content="s"
  14334. placement="top"
  14335. v-if="s != '' && s != undefined"
  14336. >
  14337. <div
  14338. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14339. >
  14340. <div>{{ s }}</div>
  14341. </div>
  14342. </el-tooltip>
  14343. <div
  14344. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14345. v-else
  14346. >
  14347. <div>{{ s }}</div>
  14348. </div>
  14349. </div>
  14350. </div>
  14351. </div>
  14352. </div>
  14353. </div>
  14354. </div>
  14355. <span slot="footer" class="dialog-footer">
  14356. <el-button @click="dialogVisibleSentenceTeacher = false"
  14357. >取 消</el-button
  14358. >
  14359. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14360. </span>
  14361. </el-dialog>
  14362. <el-dialog
  14363. title="排序"
  14364. :visible.sync="dialogVisibleSentence1"
  14365. :append-to-body="true"
  14366. width="1000px"
  14367. :before-close="handleClose"
  14368. class="dialog_diy dialog_diy3"
  14369. >
  14370. <div>
  14371. <div class="sentenBox">
  14372. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14373. {{ sentenceList1.stuName }}的作业
  14374. </div>
  14375. <div
  14376. v-for="(st, stIndex) in sentenceList1"
  14377. :key="stIndex"
  14378. style="padding-bottom: 20px"
  14379. >
  14380. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14381. 第{{ stIndex + 1 }}题
  14382. </div>
  14383. <div class="isWrong">
  14384. <div class="cardList1" v-if="st.chooseSenList">
  14385. <div class="cardBox">
  14386. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14387. <el-tooltip
  14388. class="item"
  14389. effect="light"
  14390. :content="s"
  14391. placement="top"
  14392. >
  14393. <div class="isCard">
  14394. <div>{{ s }}</div>
  14395. </div>
  14396. </el-tooltip>
  14397. </div>
  14398. </div>
  14399. <div class="cardAnswerBox">
  14400. 组成句子:{{ st.chooseSenList.join(" ") }}
  14401. </div>
  14402. </div>
  14403. <div v-if="tType == 2" class="isTj">
  14404. <div class="isTjImg">
  14405. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14406. </div>
  14407. <div>已提交</div>
  14408. </div>
  14409. <div
  14410. class="answerRight isTj"
  14411. v-if="
  14412. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14413. (tType == 1 || tType == 4)
  14414. "
  14415. >
  14416. <div class="isTjImg">
  14417. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14418. </div>
  14419. <div>回答正确</div>
  14420. </div>
  14421. <div
  14422. class="answerRight isTj"
  14423. v-if="
  14424. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14425. (tType == 1 || tType == 4)
  14426. "
  14427. >
  14428. <div class="isTjImg">
  14429. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14430. </div>
  14431. <div>回答错误</div>
  14432. </div>
  14433. </div>
  14434. <div
  14435. v-if="
  14436. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14437. (tType == 1 || tType == 4)
  14438. "
  14439. >
  14440. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14441. <div
  14442. class="cardList"
  14443. v-if="st.rightAnswer"
  14444. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14445. >
  14446. <div class="cardBox">
  14447. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14448. <el-tooltip
  14449. class="item"
  14450. effect="light"
  14451. :content="r"
  14452. placement="top"
  14453. >
  14454. <div class="isCard1">
  14455. <div>{{ r }}</div>
  14456. </div>
  14457. </el-tooltip>
  14458. </div>
  14459. </div>
  14460. <div class="cardAnswerBox">
  14461. 组成句子:{{ st.rightAnswer.join(" ") }}
  14462. </div>
  14463. </div>
  14464. </div>
  14465. </div>
  14466. </div>
  14467. </div>
  14468. <span slot="footer" class="dialog-footer">
  14469. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14470. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14471. >确 定</el-button
  14472. >
  14473. </span>
  14474. </el-dialog>
  14475. <el-dialog
  14476. title="教师提交作业"
  14477. :visible.sync="dialogVisibleWorks"
  14478. :append-to-body="true"
  14479. width="500px"
  14480. :before-close="handleClose"
  14481. class="dialog_change"
  14482. >
  14483. <div class="marginT">
  14484. <div class="w_name">
  14485. 学生姓名:<span>{{ sStudent.student }}</span>
  14486. </div>
  14487. <div>上传文件</div>
  14488. <div style="display: flex; gap: 10px">
  14489. <div
  14490. class="chapter_add"
  14491. @click="addImg($event)"
  14492. v-if="studyJuri[0].cover.length == 0"
  14493. >
  14494. <div class="up_photo">
  14495. <img src="../../assets/icon/uploadImg.png" alt />
  14496. </div>
  14497. <!-- <input
  14498. type="file"
  14499. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14500. style="display: none"
  14501. @change="beforeUpload1($event, 1)"
  14502. /> -->
  14503. <input
  14504. type="file"
  14505. accept="*"
  14506. style="display: none"
  14507. @change="beforeUpload1($event, 1)"
  14508. />
  14509. <!-- <input
  14510. type="file"
  14511. accept="image/*"
  14512. capture="camera"
  14513. style="display: none"
  14514. @change="beforeUpload1($event, 1)"
  14515. /> -->
  14516. </div>
  14517. <div
  14518. class="chapter_add"
  14519. @click="addImg($event)"
  14520. v-if="studyJuri[0].cover.length == 0"
  14521. >
  14522. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14523. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14524. </div>
  14525. <input
  14526. type="file"
  14527. accept="image/*"
  14528. capture="camera"
  14529. style="display: none"
  14530. @change="beforeUpload1($event, 1)"
  14531. />
  14532. </div>
  14533. </div>
  14534. <!-- capture="camera" -->
  14535. <div
  14536. class="chapter_add"
  14537. style="
  14538. display: flex;
  14539. width: 100%;
  14540. flex-direction: row;
  14541. flex-wrap: wrap;
  14542. justify-content: flex-start;
  14543. padding: 15px 0;
  14544. "
  14545. v-if="studyJuri[0].cover.length > 0"
  14546. >
  14547. <div class="upCover">
  14548. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14549. <img :src="word" alt v-else-if="fileType == 1" />
  14550. <img :src="video" alt v-else-if="fileType == 2" />
  14551. <img :src="word2" alt v-else-if="fileType == 3" />
  14552. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14553. <div class="deleteWord" @click="clean(1)">
  14554. <img src="../../assets/icon/deleteWorks.png" alt />
  14555. </div>
  14556. </div>
  14557. </div>
  14558. </div>
  14559. <div
  14560. class="upload_send"
  14561. @click="addCourseWorksTeacher(taskCount)"
  14562. v-if="!proVisible"
  14563. >
  14564. 提交
  14565. </div>
  14566. </el-dialog>
  14567. <ImgDraw
  14568. :drawShow="drawShow"
  14569. @closeDraw="closeDraw"
  14570. @addImgDraw="addImgDraw"
  14571. :bg="bg"
  14572. ></ImgDraw>
  14573. <el-dialog
  14574. title="表格"
  14575. :visible.sync="dialogVisibleTable"
  14576. :append-to-body="true"
  14577. width="95%"
  14578. :before-close="handleClose"
  14579. class="dialog_diy"
  14580. >
  14581. <el-form>
  14582. <div
  14583. style="
  14584. display: flex;
  14585. align-items: center;
  14586. justify-content: space-between;
  14587. "
  14588. >
  14589. <span>表格内容</span>
  14590. <el-button type="primary" size="small" @click="returnTableText"
  14591. >还原模板</el-button
  14592. >
  14593. </div>
  14594. <Table
  14595. v-model="tableJson.text"
  14596. @change="change"
  14597. v-if="dialogVisibleTable"
  14598. ></Table>
  14599. </el-form>
  14600. <span slot="footer" class="dialog-footer">
  14601. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14602. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14603. </span>
  14604. </el-dialog>
  14605. <el-dialog
  14606. title="表格"
  14607. :visible.sync="dialogVisibleTableTeacher"
  14608. :append-to-body="true"
  14609. width="95%"
  14610. :before-close="handleClose"
  14611. class="dialog_diy"
  14612. >
  14613. <el-form>
  14614. <div class="w_name">
  14615. 学生姓名:<span>{{ sStudent.student }}</span>
  14616. </div>
  14617. <div>表格内容</div>
  14618. <Table
  14619. v-model="tableJson.text"
  14620. @change="change"
  14621. v-if="dialogVisibleTableTeacher"
  14622. ></Table>
  14623. </el-form>
  14624. <span slot="footer" class="dialog-footer">
  14625. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14626. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14627. </span>
  14628. </el-dialog>
  14629. <el-dialog
  14630. title="文档"
  14631. :visible.sync="dialogVisibleWord"
  14632. :append-to-body="true"
  14633. width="95%"
  14634. :before-close="handleClose"
  14635. class="dialog_diy"
  14636. >
  14637. <el-form>
  14638. <div
  14639. style="
  14640. display: flex;
  14641. align-items: center;
  14642. justify-content: space-between;
  14643. "
  14644. >
  14645. <span>文档内容</span>
  14646. <el-button type="primary" size="small" @click="returnWordText"
  14647. >还原模板</el-button
  14648. >
  14649. </div>
  14650. <editor-bar
  14651. v-model="wordJson.text"
  14652. v-if="dialogVisibleWord"
  14653. ></editor-bar>
  14654. </el-form>
  14655. <span slot="footer" class="dialog-footer">
  14656. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14657. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14658. </span>
  14659. </el-dialog>
  14660. <el-dialog
  14661. title="文档"
  14662. :visible.sync="dialogVisibleWordTeacher"
  14663. :append-to-body="true"
  14664. width="95%"
  14665. :before-close="handleClose"
  14666. class="dialog_diy"
  14667. >
  14668. <el-form>
  14669. <div class="w_name">
  14670. 学生姓名:<span>{{ sStudent.student }}</span>
  14671. </div>
  14672. <div>文档内容</div>
  14673. <editor-bar
  14674. v-model="wordJson.text"
  14675. v-if="dialogVisibleWordTeacher"
  14676. ></editor-bar>
  14677. </el-form>
  14678. <span slot="footer" class="dialog-footer">
  14679. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14680. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14681. </span>
  14682. </el-dialog>
  14683. <el-dialog
  14684. title="表格"
  14685. :visible.sync="dialogVisibleTable2"
  14686. :append-to-body="true"
  14687. width="95%"
  14688. :before-close="handleClose"
  14689. class="dialog_diy"
  14690. >
  14691. <el-form>
  14692. <div class="cont" v-html="tableJson.text"></div>
  14693. </el-form>
  14694. <span slot="footer" class="dialog-footer">
  14695. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14696. </span>
  14697. </el-dialog>
  14698. <el-dialog
  14699. title="文档"
  14700. :visible.sync="dialogVisibleTable3"
  14701. :append-to-body="true"
  14702. width="95%"
  14703. :before-close="handleClose"
  14704. class="dialog_diy"
  14705. >
  14706. <el-form>
  14707. <div class="cont" v-html="tableJson.text"></div>
  14708. </el-form>
  14709. <span slot="footer" class="dialog-footer">
  14710. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14711. </span>
  14712. </el-dialog>
  14713. <el-dialog
  14714. title="分组设置"
  14715. :visible.sync="dialogVisibleGroup"
  14716. :append-to-body="true"
  14717. width="95%"
  14718. :before-close="handleClose"
  14719. class="dialog_diy"
  14720. >
  14721. <div v-if="dialogVisibleGroup">
  14722. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14723. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14724. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14725. </div>
  14726. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14727. @click="lockChair">
  14728. 锁定位置
  14729. </div>
  14730. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14731. 解锁位置
  14732. </div> -->
  14733. <div class="group_switch">
  14734. <span>开放选座</span>
  14735. <el-switch
  14736. v-model="islock"
  14737. active-text=""
  14738. class="switchCss"
  14739. @change="lockChair"
  14740. ></el-switch>
  14741. </div>
  14742. <div
  14743. type="primary"
  14744. @click="updateGroup"
  14745. class="returnBtn"
  14746. style="background-color: #225bc7"
  14747. >
  14748. 分组设置
  14749. </div>
  14750. </div>
  14751. <div>
  14752. <div
  14753. class="g_d_box"
  14754. v-if="groupJson.group && groupStudent[toolindex]"
  14755. >
  14756. <div
  14757. class="g_d_group"
  14758. v-for="(g, gindex) in groupJson.group"
  14759. :key="gindex"
  14760. >
  14761. <div class="g_d_group_chair">
  14762. <div v-if="groupJson.number > 1">
  14763. <span
  14764. :class="{
  14765. isChair:
  14766. groupStudent[toolindex][gindex] &&
  14767. groupStudent[toolindex][gindex][0],
  14768. updateChair:
  14769. courseDetail.userid == userid &&
  14770. groupStudent[toolindex][gindex] &&
  14771. groupStudent[toolindex][gindex][0] &&
  14772. groupJson.islock == 2,
  14773. }"
  14774. ><span
  14775. class="updateChairBtn"
  14776. @click="
  14777. updateGroupChair(
  14778. groupStudent[toolindex][gindex] &&
  14779. groupStudent[toolindex][gindex][0]
  14780. )
  14781. "
  14782. >修改</span
  14783. ></span
  14784. ><span>{{
  14785. groupStudent[toolindex][gindex] &&
  14786. groupStudent[toolindex][gindex][0]
  14787. ? groupStudent[toolindex][gindex] &&
  14788. groupStudent[toolindex][gindex][0].name
  14789. : "空位置"
  14790. }}</span>
  14791. </div>
  14792. <div v-if="groupJson.number > 4">
  14793. <span
  14794. :class="{
  14795. isChair:
  14796. groupStudent[toolindex][gindex] &&
  14797. groupStudent[toolindex][gindex][4],
  14798. updateChair:
  14799. courseDetail.userid == userid &&
  14800. groupStudent[toolindex][gindex] &&
  14801. groupStudent[toolindex][gindex][4] &&
  14802. groupJson.islock == 2,
  14803. }"
  14804. ><span
  14805. class="updateChairBtn"
  14806. @click="
  14807. updateGroupChair(
  14808. groupStudent[toolindex][gindex] &&
  14809. groupStudent[toolindex][gindex][4]
  14810. )
  14811. "
  14812. >修改</span
  14813. ></span
  14814. ><span>{{
  14815. groupStudent[toolindex][gindex] &&
  14816. groupStudent[toolindex][gindex][4]
  14817. ? groupStudent[toolindex][gindex] &&
  14818. groupStudent[toolindex][gindex][4].name
  14819. : "空位置"
  14820. }}</span>
  14821. </div>
  14822. <div v-if="groupJson.number > 8">
  14823. <span
  14824. :class="{
  14825. isChair:
  14826. groupStudent[toolindex][gindex] &&
  14827. groupStudent[toolindex][gindex][8],
  14828. updateChair:
  14829. courseDetail.userid == userid &&
  14830. groupStudent[toolindex][gindex] &&
  14831. groupStudent[toolindex][gindex][8] &&
  14832. groupJson.islock == 2,
  14833. }"
  14834. ><span
  14835. class="updateChairBtn"
  14836. @click="
  14837. updateGroupChair(
  14838. groupStudent[toolindex][gindex] &&
  14839. groupStudent[toolindex][gindex][8]
  14840. )
  14841. "
  14842. >修改</span
  14843. ></span
  14844. ><span>{{
  14845. groupStudent[toolindex][gindex] &&
  14846. groupStudent[toolindex][gindex][8]
  14847. ? groupStudent[toolindex][gindex] &&
  14848. groupStudent[toolindex][gindex][8].name
  14849. : "空位置"
  14850. }}</span>
  14851. </div>
  14852. </div>
  14853. <div class="g_d_group_tableBox">
  14854. <div class="g_d_group_chair2">
  14855. <div v-if="groupJson.number > 2">
  14856. <span
  14857. :class="{
  14858. isChair:
  14859. groupStudent[toolindex][gindex] &&
  14860. groupStudent[toolindex][gindex][2],
  14861. updateChair:
  14862. courseDetail.userid == userid &&
  14863. groupStudent[toolindex][gindex] &&
  14864. groupStudent[toolindex][gindex][2] &&
  14865. groupJson.islock == 2,
  14866. }"
  14867. ><span
  14868. class="updateChairBtn"
  14869. @click="
  14870. updateGroupChair(
  14871. groupStudent[toolindex][gindex] &&
  14872. groupStudent[toolindex][gindex][2]
  14873. )
  14874. "
  14875. >修改</span
  14876. ></span
  14877. ><span>{{
  14878. groupStudent[toolindex][gindex] &&
  14879. groupStudent[toolindex][gindex][2]
  14880. ? groupStudent[toolindex][gindex] &&
  14881. groupStudent[toolindex][gindex][2].name
  14882. : "空位置"
  14883. }}</span>
  14884. </div>
  14885. <div v-if="groupJson.number > 6">
  14886. <span
  14887. :class="{
  14888. isChair:
  14889. groupStudent[toolindex][gindex] &&
  14890. groupStudent[toolindex][gindex][6],
  14891. updateChair:
  14892. courseDetail.userid == userid &&
  14893. groupStudent[toolindex][gindex] &&
  14894. groupStudent[toolindex][gindex][6] &&
  14895. groupJson.islock == 2,
  14896. }"
  14897. ><span
  14898. class="updateChairBtn"
  14899. @click="
  14900. updateGroupChair(
  14901. groupStudent[toolindex][gindex] &&
  14902. groupStudent[toolindex][gindex][6]
  14903. )
  14904. "
  14905. >修改</span
  14906. ></span
  14907. ><span>{{
  14908. groupStudent[toolindex][gindex] &&
  14909. groupStudent[toolindex][gindex][6]
  14910. ? groupStudent[toolindex][gindex] &&
  14911. groupStudent[toolindex][gindex][6].name
  14912. : "空位置"
  14913. }}</span>
  14914. </div>
  14915. </div>
  14916. <div class="g_d_group_table">
  14917. <div>
  14918. {{ g.name }}
  14919. </div>
  14920. <div>
  14921. <div
  14922. v-if="
  14923. courseDetail.userid == userid && groupJson.islock == 2
  14924. "
  14925. @click="deleteGroupChair(gindex)"
  14926. >
  14927. 移除组员
  14928. </div>
  14929. <div
  14930. @click="selectGroup(gindex)"
  14931. v-else-if="
  14932. groupStudentUid[toolindex] &&
  14933. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14934. "
  14935. >
  14936. 加入分组
  14937. </div>
  14938. <div
  14939. @click="
  14940. exitGroup(
  14941. groupStudent[toolindex][gindex] &&
  14942. groupStudent[toolindex][gindex][
  14943. groupStudentUid[toolindex][gindex].indexOf(userid)
  14944. ].id
  14945. )
  14946. "
  14947. v-else-if="
  14948. groupStudentUid[toolindex] &&
  14949. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14950. "
  14951. >
  14952. 退出分组
  14953. </div>
  14954. </div>
  14955. </div>
  14956. <div class="g_d_group_chair2">
  14957. <div v-if="groupJson.number > 3">
  14958. <span
  14959. :class="{
  14960. isChair:
  14961. groupStudent[toolindex][gindex] &&
  14962. groupStudent[toolindex][gindex][3],
  14963. updateChair:
  14964. courseDetail.userid == userid &&
  14965. groupStudent[toolindex][gindex] &&
  14966. groupStudent[toolindex][gindex][3] &&
  14967. groupJson.islock == 2,
  14968. }"
  14969. ><span
  14970. class="updateChairBtn"
  14971. @click="
  14972. updateGroupChair(
  14973. groupStudent[toolindex][gindex] &&
  14974. groupStudent[toolindex][gindex][3]
  14975. )
  14976. "
  14977. >修改</span
  14978. ></span
  14979. ><span>{{
  14980. groupStudent[toolindex][gindex] &&
  14981. groupStudent[toolindex][gindex][3]
  14982. ? groupStudent[toolindex][gindex] &&
  14983. groupStudent[toolindex][gindex][3].name
  14984. : "空位置"
  14985. }}</span>
  14986. </div>
  14987. <div v-if="groupJson.number > 7">
  14988. <span
  14989. :class="{
  14990. isChair:
  14991. groupStudent[toolindex][gindex] &&
  14992. groupStudent[toolindex][gindex][7],
  14993. updateChair:
  14994. courseDetail.userid == userid &&
  14995. groupStudent[toolindex][gindex] &&
  14996. groupStudent[toolindex][gindex][7] &&
  14997. groupJson.islock == 2,
  14998. }"
  14999. ><span
  15000. class="updateChairBtn"
  15001. @click="
  15002. updateGroupChair(
  15003. groupStudent[toolindex][gindex] &&
  15004. groupStudent[toolindex][gindex][7]
  15005. )
  15006. "
  15007. >修改</span
  15008. ></span
  15009. ><span>{{
  15010. groupStudent[toolindex][gindex] &&
  15011. groupStudent[toolindex][gindex][7]
  15012. ? groupStudent[toolindex][gindex] &&
  15013. groupStudent[toolindex][gindex][7].name
  15014. : "空位置"
  15015. }}</span>
  15016. </div>
  15017. </div>
  15018. </div>
  15019. <div class="g_d_group_chair">
  15020. <div v-if="groupJson.number > 1">
  15021. <span
  15022. :class="{
  15023. isChair:
  15024. groupStudent[toolindex][gindex] &&
  15025. groupStudent[toolindex][gindex][1],
  15026. updateChair:
  15027. courseDetail.userid == userid &&
  15028. groupStudent[toolindex][gindex] &&
  15029. groupStudent[toolindex][gindex][1] &&
  15030. groupJson.islock == 2,
  15031. }"
  15032. ><span
  15033. class="updateChairBtn"
  15034. @click="
  15035. updateGroupChair(
  15036. groupStudent[toolindex][gindex] &&
  15037. groupStudent[toolindex][gindex][1]
  15038. )
  15039. "
  15040. >修改</span
  15041. ></span
  15042. ><span>{{
  15043. groupStudent[toolindex][gindex] &&
  15044. groupStudent[toolindex][gindex][1]
  15045. ? groupStudent[toolindex][gindex] &&
  15046. groupStudent[toolindex][gindex][1].name
  15047. : "空位置"
  15048. }}</span>
  15049. </div>
  15050. <div v-if="groupJson.number > 5">
  15051. <span
  15052. :class="{
  15053. isChair:
  15054. groupStudent[toolindex][gindex] &&
  15055. groupStudent[toolindex][gindex][5],
  15056. updateChair:
  15057. courseDetail.userid == userid &&
  15058. groupStudent[toolindex][gindex] &&
  15059. groupStudent[toolindex][gindex][5] &&
  15060. groupJson.islock == 2,
  15061. }"
  15062. ><span
  15063. class="updateChairBtn"
  15064. @click="
  15065. updateGroupChair(
  15066. groupStudent[toolindex][gindex] &&
  15067. groupStudent[toolindex][gindex][5]
  15068. )
  15069. "
  15070. >修改</span
  15071. ></span
  15072. ><span>{{
  15073. groupStudent[toolindex][gindex] &&
  15074. groupStudent[toolindex][gindex][5]
  15075. ? groupStudent[toolindex][gindex] &&
  15076. groupStudent[toolindex][gindex][5].name
  15077. : "空位置"
  15078. }}</span>
  15079. </div>
  15080. <div v-if="groupJson.number > 9">
  15081. <span
  15082. :class="{
  15083. isChair:
  15084. groupStudent[toolindex][gindex] &&
  15085. groupStudent[toolindex][gindex][9],
  15086. updateChair:
  15087. courseDetail.userid == userid &&
  15088. groupStudent[toolindex][gindex] &&
  15089. groupStudent[toolindex][gindex][9] &&
  15090. groupJson.islock == 2,
  15091. }"
  15092. ><span
  15093. class="updateChairBtn"
  15094. @click="
  15095. updateGroupChair(
  15096. groupStudent[toolindex][gindex] &&
  15097. groupStudent[toolindex][gindex][9]
  15098. )
  15099. "
  15100. >修改</span
  15101. ></span
  15102. ><span>{{
  15103. groupStudent[toolindex][gindex] &&
  15104. groupStudent[toolindex][gindex][9]
  15105. ? groupStudent[toolindex][gindex] &&
  15106. groupStudent[toolindex][gindex][9].name
  15107. : "空位置"
  15108. }}</span>
  15109. </div>
  15110. </div>
  15111. </div>
  15112. </div>
  15113. </div>
  15114. </div>
  15115. <span slot="footer" class="dialog-footer">
  15116. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15117. </span>
  15118. </el-dialog>
  15119. <el-dialog
  15120. title="分组设置"
  15121. :visible.sync="dialogVisibleGroup2"
  15122. :append-to-body="true"
  15123. width="650px"
  15124. :before-close="handleClose"
  15125. class="dialog_diy"
  15126. >
  15127. <div class="groupBox">
  15128. <div v-if="groupJson2.group" class="groupContent">
  15129. <div class="groupTitle">请设置小组数量及名称</div>
  15130. <div
  15131. v-for="(item, index) in groupJson2.group"
  15132. :key="index"
  15133. class="groupName"
  15134. >
  15135. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15136. <el-input
  15137. v-model="item.name"
  15138. placeholder="请输入名称..."
  15139. style="width: 250px"
  15140. ></el-input>
  15141. <!-- <div class="groupBtn">
  15142. <el-button type="primary" size="small" @click="addGroup(index)">
  15143. 添加</el-button>
  15144. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15145. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15146. </div> -->
  15147. </div>
  15148. </div>
  15149. <div class="groupContent">
  15150. <div class="groupTitle">请设置每组人数</div>
  15151. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15152. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15153. <el-input
  15154. v-model="groupJson2.number"
  15155. style="width: 150px"
  15156. placeholder="请输入2-10的数字"
  15157. @change="numberPan"
  15158. ></el-input>
  15159. </div>
  15160. </div>
  15161. <span slot="footer" class="dialog-footer">
  15162. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15163. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15164. </span>
  15165. </el-dialog>
  15166. <el-dialog
  15167. title="作业提交"
  15168. :visible.sync="dialogVisibleGroupWork"
  15169. :append-to-body="true"
  15170. width="500px"
  15171. :before-close="handleClose"
  15172. class="dialog_change"
  15173. >
  15174. <div class="marginT">
  15175. <div>上传文件</div>
  15176. <div
  15177. class="chapter_add"
  15178. @click="addImg($event)"
  15179. v-if="studyJuri[0].cover.length == 0"
  15180. >
  15181. <div class="up_photo">
  15182. <img src="../../assets/icon/uploadImg.png" alt />
  15183. </div>
  15184. <!-- <input
  15185. type="file"
  15186. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15187. style="display: none"
  15188. @change="beforeUpload1($event, 1)"
  15189. /> -->
  15190. <input
  15191. type="file"
  15192. accept="*"
  15193. style="display: none"
  15194. @change="beforeUpload1($event, 1)"
  15195. />
  15196. </div>
  15197. <!-- capture="camera" -->
  15198. <div
  15199. class="chapter_add"
  15200. style="
  15201. display: flex;
  15202. width: 100%;
  15203. flex-direction: row;
  15204. flex-wrap: wrap;
  15205. justify-content: flex-start;
  15206. padding: 15px 0;
  15207. "
  15208. v-if="studyJuri[0].cover.length > 0"
  15209. >
  15210. <div class="upCover">
  15211. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15212. <img :src="word" alt v-else-if="fileType == 1" />
  15213. <img :src="video" alt v-else-if="fileType == 2" />
  15214. <img :src="word2" alt v-else-if="fileType == 3" />
  15215. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15216. <div class="deleteWord" @click="clean(1)">
  15217. <img src="../../assets/icon/deleteWorks.png" alt />
  15218. </div>
  15219. </div>
  15220. </div>
  15221. </div>
  15222. <div
  15223. class="upload_send"
  15224. @click="addCourseWorks2(taskCount)"
  15225. v-if="!proVisible"
  15226. >
  15227. 提交
  15228. </div>
  15229. </el-dialog>
  15230. <el-dialog
  15231. title="修改分组"
  15232. :visible.sync="dialogVisibleUpdateGroup"
  15233. :append-to-body="true"
  15234. width="350px"
  15235. :before-close="handleClose"
  15236. class="dialog_diy"
  15237. >
  15238. <div>
  15239. <h2>
  15240. {{ this.updateGroupUser.name }}
  15241. </h2>
  15242. <div style="color: rgb(171 171 171); margin-top: 10px">
  15243. 请选择要进入的分组
  15244. </div>
  15245. <el-radio-group v-model="checkChair">
  15246. <el-radio
  15247. style="display: block; margin-top: 20px"
  15248. v-for="(item, index) in updateGroupArray"
  15249. :label="item.label"
  15250. :key="index"
  15251. >{{ item.name }}</el-radio
  15252. >
  15253. </el-radio-group>
  15254. </div>
  15255. <span slot="footer" class="dialog-footer">
  15256. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15257. <el-button type="primary" @click="updateChair">确定</el-button>
  15258. </span>
  15259. </el-dialog>
  15260. <el-dialog
  15261. title="移除组员"
  15262. :visible.sync="dialogVisibleDeleteGroup"
  15263. :append-to-body="true"
  15264. width="350px"
  15265. :before-close="handleClose"
  15266. class="dialog_diy"
  15267. >
  15268. <div>
  15269. <h2>
  15270. {{ this.deleteGroupArray.name }}
  15271. </h2>
  15272. <div style="color: rgb(171 171 171); margin-top: 10px">
  15273. 请选择要删除的组员
  15274. </div>
  15275. <el-checkbox-group v-model="checkDeleteGroup">
  15276. <el-checkbox
  15277. style="display: flex; margin-top: 20px"
  15278. v-for="(item, index) in deleteGroupUser"
  15279. :label="item.userid"
  15280. :key="index"
  15281. >{{ item.name }}</el-checkbox
  15282. >
  15283. </el-checkbox-group>
  15284. </div>
  15285. <span slot="footer" class="dialog-footer">
  15286. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15287. <el-button type="primary" @click="deleteChair">确定</el-button>
  15288. </span>
  15289. </el-dialog>
  15290. <el-dialog
  15291. title="批量上传"
  15292. :visible.sync="dialogVisiblePl"
  15293. :append-to-body="true"
  15294. width="700px"
  15295. :before-close="handleClose"
  15296. class="dialog_change"
  15297. >
  15298. <div class="marginT">
  15299. <div class="plworkBox">
  15300. <div
  15301. class="chapter_add"
  15302. style="
  15303. display: flex;
  15304. width: 150px;
  15305. flex-direction: row;
  15306. flex-wrap: wrap;
  15307. justify-content: flex-start;
  15308. margin: 0 10px 10px 0;
  15309. "
  15310. v-for="(item, index) in plworkFile"
  15311. :key="index"
  15312. >
  15313. <div class="upCover2">
  15314. <img
  15315. :src="item.url"
  15316. alt
  15317. v-if="item.fileType == 1"
  15318. @click="previewImg(item.url)"
  15319. />
  15320. <img :src="word" alt v-else-if="item.fileType == 4" />
  15321. <img :src="video" alt v-else />
  15322. <!-- <span class="picName">{{ item.name }}</span> -->
  15323. <!-- <el-input
  15324. v-model="item.username"
  15325. placeholder="请输入学生名字"
  15326. style="margin-top: 10px"
  15327. ></el-input> -->
  15328. <div
  15329. class="pl_select_box"
  15330. @click="
  15331. getUpdateMore(true, checkUpload(), item.username, index)
  15332. "
  15333. >
  15334. {{ getSName(item.username) }}
  15335. </div>
  15336. <!-- <el-select
  15337. style="margin-top: 10px"
  15338. v-model="item.username"
  15339. filterable
  15340. allow-create
  15341. placeholder="请选择学生"
  15342. >
  15343. <el-option
  15344. v-for="item1 in checkUpload()"
  15345. :key="item1.userid"
  15346. :label="item1.name ? item1.name : item1.username"
  15347. :value="item1.userid"
  15348. >
  15349. </el-option>
  15350. </el-select> -->
  15351. <div class="deleteWord" @click="clean2(index)">
  15352. <img src="../../assets/icon/deleteWorks.png" alt />
  15353. </div>
  15354. </div>
  15355. </div>
  15356. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15357. <div class="up_photo2">
  15358. <img src="../../assets/icon/plwork.png" alt />
  15359. <span>点击上传文件</span>
  15360. </div>
  15361. <input
  15362. type="file"
  15363. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15364. multiple="multiple"
  15365. style="display: none"
  15366. @change="beforeUpload3($event, 6)"
  15367. />
  15368. </div>
  15369. </div>
  15370. </div>
  15371. <!-- capture="camera" -->
  15372. <div
  15373. class="upload_send"
  15374. @click="addCourseWorksPl(taskCount)"
  15375. v-if="!proVisible2"
  15376. >
  15377. 提交
  15378. </div>
  15379. </el-dialog>
  15380. <el-dialog
  15381. title="修改名称"
  15382. :visible.sync="dialogVisibleSname"
  15383. width="500px"
  15384. :before-close="handleClose"
  15385. class="dialog_diy"
  15386. center
  15387. >
  15388. <div
  15389. style="
  15390. text-align: center;
  15391. display: flex;
  15392. align-items: center;
  15393. justify-content: center;
  15394. "
  15395. >
  15396. <span class="tian1">名称</span>
  15397. <div
  15398. class="pl_select_box"
  15399. style="margin-left: 10px; width: 200px"
  15400. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15401. >
  15402. {{ getSName(worksSName) }}
  15403. </div>
  15404. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15405. placeholder="请选择学生">
  15406. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15407. :value="item.userid">
  15408. </el-option>
  15409. </el-select> -->
  15410. <!-- <el-input
  15411. v-model="worksSName"
  15412. style="width: 250px; margin: 15px 0px"
  15413. ></el-input> -->
  15414. </div>
  15415. <span slot="footer" class="dialog-footer">
  15416. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15417. <el-button type="primary" @click="updateName">确 定</el-button>
  15418. </span>
  15419. </el-dialog>
  15420. <el-dialog
  15421. title="英语写作"
  15422. :visible.sync="engDialogVisible"
  15423. :append-to-body="true"
  15424. width="800px"
  15425. :before-close="handleClose"
  15426. class="dialog_diy"
  15427. >
  15428. <onlineWrite
  15429. v-if="engDialogVisible"
  15430. :englishList="englishList"
  15431. :myAnswerList1="myAnswerList1"
  15432. ref="engJson"
  15433. ></onlineWrite>
  15434. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15435. <el-button @click="engDialogVisible = false">取 消</el-button>
  15436. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15437. </span>
  15438. </el-dialog>
  15439. <el-dialog
  15440. title="英语写作"
  15441. :visible.sync="engUpdateDialogVisible"
  15442. :append-to-body="true"
  15443. width="800px"
  15444. :before-close="handleClose"
  15445. class="dialog_diy fullStyle"
  15446. >
  15447. <div class="engUpBox">
  15448. <div class="engUpTop">
  15449. <div class="engTitle">
  15450. <div>作文题目:</div>
  15451. <div>{{ englishList1.engTitle }}</div>
  15452. </div>
  15453. <div class="engText">
  15454. <div>作文内容:</div>
  15455. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  15456. </div>
  15457. </div>
  15458. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  15459. <div class="oldBox">
  15460. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15461. <div class="oldText">
  15462. <div class="detailBox">
  15463. <div class="oldDetail">
  15464. <div>标题:</div>
  15465. <div>{{ oldEnglishJson.engTitle }} </div>
  15466. </div>
  15467. <div class="oldDetail1">
  15468. <div>正文:</div>
  15469. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  15470. </div>
  15471. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  15472. <div>图片:</div>
  15473. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  15474. </div>
  15475. </div>
  15476. </div>
  15477. </div>
  15478. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15479. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15480. <div class="oldText">
  15481. <div class="detailBox" style="position: relative;">
  15482. <div class="oldDetail">
  15483. <div>标题:</div>
  15484. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15485. <div v-else v-html="newEnglishList.engTitle"></div>
  15486. </div>
  15487. <div class="oldDetail">
  15488. <div>正文:</div>
  15489. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15490. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15491. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15492. </div>
  15493. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15494. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15495. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15496. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15497. </div>
  15498. </div>
  15499. </div>
  15500. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15501. <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">
  15502. <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>
  15503. <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>
  15504. </div>
  15505. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  15506. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  15507. <div class="detailBox" style="position: relative;">
  15508. <div class="oldDetail">
  15509. <div>标题:</div>
  15510. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  15511. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15512. </div>
  15513. <div class="oldDetail">
  15514. <div>正文:</div>
  15515. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  15516. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  15517. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  15518. </div>
  15519. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15520. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15521. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15522. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15523. </div>
  15524. </div>
  15525. <div class="oldText" v-else-if="newEngIndex == -1">
  15526. <div class="detailBox" style="position: relative;">
  15527. <div class="oldDetail">
  15528. <div>标题:</div>
  15529. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15530. <div v-else v-html="newEnglishList.engTitle"></div>
  15531. </div>
  15532. <div class="oldDetail">
  15533. <div>正文:</div>
  15534. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15535. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15536. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15537. </div>
  15538. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15539. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15540. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15541. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15542. </div>
  15543. </div>
  15544. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  15545. <div class="detailBox" style="position: relative;">
  15546. <div class="oldDetail">
  15547. <div>标题:</div>
  15548. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15549. <div v-else>
  15550. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  15551. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15552. </div>
  15553. </div>
  15554. <div class="oldDetail">
  15555. <div>正文:</div>
  15556. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  15557. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15558. <div v-else>
  15559. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  15560. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15561. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  15562. </div>
  15563. </div>
  15564. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15565. <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>
  15566. <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>
  15567. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15568. </div>
  15569. </div>
  15570. </div>
  15571. </div>
  15572. </div>
  15573. <span slot="footer" class="dialog-footer">
  15574. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15575. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15576. </span>
  15577. </el-dialog>
  15578. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  15579. <interVideo
  15580. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15581. :videoJson="videoJson"
  15582. :userid="userid"
  15583. :id="id"
  15584. :courseType="courseType"
  15585. :taskCount="taskCount"
  15586. :toolindex="toolindex"
  15587. :videoType="videoType"
  15588. ></interVideo>
  15589. <UpdateMore
  15590. :dialogVisibleMember.sync="dialogVisibleMember"
  15591. :cList="uploadStudentJuri"
  15592. :userid="userid"
  15593. :searchTN="worksSName2"
  15594. @setPlname="setPlname"
  15595. ></UpdateMore>
  15596. <!-- <wordCloud
  15597. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15598. :data="wordCloudData"
  15599. ></wordCloud> -->
  15600. <el-dialog
  15601. title="词云"
  15602. :visible.sync="dialogVisibleWordCloud"
  15603. width="30%"
  15604. class="dialog_diy"
  15605. :before-close="handleClose">
  15606. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15607. </el-dialog>
  15608. <el-dialog
  15609. title="挑人"
  15610. :visible.sync="dialogVisiblePickPeople"
  15611. width="650px"
  15612. :before-close="handleClose"
  15613. class="dialog_diy"
  15614. center
  15615. >
  15616. <div class="pick_box">
  15617. <div
  15618. class="noWorksName"
  15619. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15620. v-for="(item, index) in uploadStudentJuri"
  15621. :key="index"
  15622. @click="pickStudent(item)"
  15623. >
  15624. {{ item.name }}
  15625. </div>
  15626. </div>
  15627. </el-dialog>
  15628. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  15629. :englishVoiceJson='englishVoiceJson'
  15630. :userid="userid"
  15631. :id="id"
  15632. :courseType="courseType"
  15633. :taskCount="taskCount"
  15634. :toolindex="toolindex"
  15635. @selectSWorks="selectSWorks"
  15636. @selectStudent="selectStudent"
  15637. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15638. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15639. :userid="userid"
  15640. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15641. :commentDetail="commentDetail"
  15642. :courseDetail="courseDetail"
  15643. :wScore="wScore"
  15644. :scoreDetail="scoreDetail"
  15645. @selectSWorks="selectSWorks"
  15646. @selectStudent="selectStudent"></checkEnglishVoice>
  15647. <el-dialog
  15648. title="教师评分"
  15649. :visible.sync="markScoreVisible"
  15650. :append-to-body="true"
  15651. width="1000px"
  15652. :fullscreen="markfullscreen"
  15653. :before-close="markScorehandleClose"
  15654. class="markScore_diy"
  15655. >
  15656. <div slot="title">
  15657. <div class="markScore_diyTit">
  15658. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15659. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15660. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15661. </div>
  15662. </div>
  15663. </div>
  15664. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15665. <!-- @updateDocSco="updateDocSco" -->
  15666. <markDialog
  15667. :key="markScoreVisible.toString()"
  15668. :uid="markScoreUid"
  15669. :toolIndex="markScoretoolIndex"
  15670. :stage="courseType"
  15671. :task="taskCount"
  15672. :taskDetail="
  15673. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15674. "
  15675. :tool="toolListS"
  15676. :languageSetting="languageSetting"
  15677. :scoTit="markScoreTit"
  15678. :tType="tType"
  15679. :sIsOpen="sIsOpen"
  15680. :markScoreworksStudent="markScoreworksStudent"
  15681. :markScoreVisible="markScoreVisible"
  15682. ></markDialog>
  15683. </el-dialog>
  15684. <!-- 查看Txt,md等文件 -->
  15685. <el-dialog
  15686. title="文件预览"
  15687. :visible.sync="dialogVisibleTxt"
  15688. width="50%"
  15689. :before-close="handleCloseTxt"
  15690. class="dialog_diy"
  15691. :class="{ fullStyle: full }"
  15692. >
  15693. <div slot="title" class="header-title">
  15694. <div style="color: #fff">文件预览</div>
  15695. <div style="position: absolute; top: 19px; right: 50px">
  15696. <img
  15697. src="../../assets/full.png"
  15698. style="height: 16px; cursor: pointer"
  15699. alt=""
  15700. @click="fullTools"
  15701. />
  15702. </div>
  15703. </div>
  15704. <div>{{ TxtMd }}</div>
  15705. </el-dialog>
  15706. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15707. <choseWorksDetailDialog
  15708. ref="choseWorksDetailDialogRef"
  15709. :worksStudentData="worksStudent"
  15710. :noWorksSData="noWorksS"
  15711. :chapInfoListData="chapInfoList"
  15712. :courseType="courseType"
  15713. :taskCount="taskCount"
  15714. :tType="tType"
  15715. :sIsOpen="sIsOpen"
  15716. :courseDetail="courseDetail"
  15717. :groupStudent2="groupStudent"
  15718. :groupStudentUid2="groupStudentUid"
  15719. :oid="oid"
  15720. :org="org"
  15721. @getCourseDetail="getCourseDetail"
  15722. @selectSLook="selectSLook"
  15723. @selectSWorks="selectSWorks"
  15724. @selectStudent="selectStudent"
  15725. @openWord="openWord"
  15726. @openScore="openScore"
  15727. @deleteWorks="deleteWorks"
  15728. @openTools="openTools"
  15729. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15730. />
  15731. <el-dialog
  15732. :visible.sync="confirmOpenDig"
  15733. width="500px"
  15734. :modal="false"
  15735. class="confirmOpenDigCss dialog_diyCopy"
  15736. :before-close="handleClose">
  15737. <div style="display: flex;align-items: center;">
  15738. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15739. <span>“{{ courseDetail.title }}”开课啦</span>
  15740. </div>
  15741. <div style="margin: 20px 0 35px;">
  15742. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15743. <div>要认真听讲哦~</div>
  15744. </div>
  15745. <div style="text-align: center;">
  15746. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15747. </div>
  15748. </el-dialog>
  15749. <appStoreC ref="appStoreC"
  15750. :sStudent="sStudent"
  15751. :courseType="courseType"
  15752. :taskCount="taskCount"
  15753. :toolindex="toolindex"
  15754. @selectSWorks="selectSWorks"
  15755. @selectStudent="selectStudent"
  15756. ></appStoreC>
  15757. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15758. </div>
  15759. </template>
  15760. <script>
  15761. import "../../common/aws-sdk-2.235.1.min.js";
  15762. // import pdf from "../components/pdf3";
  15763. import pdf from "../components/vpdf";
  15764. import AskStatic from "../components/askStatic";
  15765. import AskStatic2 from "../components/askStatic2";
  15766. import AnswerData2 from "../components/answerData2";
  15767. import AnswerData from "../components/answerData";
  15768. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15769. import EditorBar from "../tools/wangEnduit.vue";
  15770. import Table from "../tools/table.vue";
  15771. import Time from "../tools/time.vue";
  15772. import Mind from "../tools/jsmind.vue";
  15773. import Sunburst from "../tools/sunburst";
  15774. import SeeBoard from "../tools/seeBoard";
  15775. import * as imageConversion from "image-conversion";
  15776. import Audio from "../components/audio.vue";
  15777. import ImgDraw from "../tools/imgDraw/imgDraw";
  15778. import { Empty } from "element-ui";
  15779. import RecordRTC from "recordrtc";
  15780. import interVideo from "../interVideo/index.vue";
  15781. import UpdateMore from "../updateMore/updateMore.vue";
  15782. import wordCloud from "../wordCloud/index.vue";
  15783. import axios from "axios";
  15784. import JSZip from "jszip";
  15785. import FileSaver from "file-saver";
  15786. import onlineWrite from "./commpont/onlineWrite";
  15787. import englishEva from "../components/englishEva";
  15788. import * as Diff from 'diff'
  15789. import EnglishVoice from '../EnglishVoice2/index.vue'
  15790. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15791. import correctText from '../components/correctText.vue'
  15792. import scoreItem from '../scoreList/scoreItem.vue'
  15793. import scoreZong from '../scoreZong/index.vue'
  15794. import classRoomHelper from '../classRoomHelper/index.vue'
  15795. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15796. import MarkdownIt from "markdown-it";
  15797. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15798. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15799. import { v4 as uuidv4 } from "uuid";
  15800. import markScore from "../easy2/commpont/markScore";
  15801. import markDialog from "../easy2/commpont/markDialog";
  15802. import evaTable from "../easy2/commpont/evaTable";
  15803. import choseWordCloud from '../components/choseWordCloud.vue'
  15804. import appStoreC from "../components/appStoreC.vue";
  15805. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15806. import { myMixin } from "@/mixins/mixin.js"
  15807. import { tools as toolsList } from "@/common/tools2.js";
  15808. import katex from 'katex'
  15809. import 'katex/dist/katex.min.css'
  15810. var OpenCC = require("opencc-js");
  15811. let converter = OpenCC.Converter({
  15812. from: "hk",
  15813. to: "cn"
  15814. });
  15815. const getFile = (url) => {
  15816. return new Promise((resolve, reject) => {
  15817. var credentials = {
  15818. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15819. secretAccessKey: "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",
  15820. }; //秘钥形式的登录上传
  15821. window.AWS.config.update(credentials);
  15822. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15823. let url2 = url;
  15824. let _url2 = "";
  15825. if (
  15826. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15827. ) {
  15828. _url2 = url2.split(
  15829. "https://view.officeapps.live.com/op/view.aspx?src="
  15830. )[1];
  15831. } else {
  15832. _url2 = url2;
  15833. }
  15834. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15835. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15836. var params = {
  15837. Bucket: "ccrb",
  15838. Key: name
  15839. };
  15840. s3.getObject(params, function (err, data) {
  15841. if (err) {
  15842. console.log(err, err.stack)
  15843. resolve({ data: 1 });
  15844. }else {
  15845. resolve({ data: data.Body });
  15846. console.log(data);
  15847. } // sxuccessful response
  15848. });
  15849. // axios({
  15850. // method: "get",
  15851. // url,
  15852. // responseType: "blob",
  15853. // })
  15854. // .then((data) => {
  15855. // resolve({ data: data.data });
  15856. // })
  15857. // .catch((error) => {
  15858. // resolve({ data: 1 });
  15859. // // reject(error.toString());
  15860. // });
  15861. });
  15862. };
  15863. export default {
  15864. mixins: [ myMixin ],
  15865. components: {
  15866. choseWordCloud,
  15867. EditorBar,
  15868. Time,
  15869. pdf,
  15870. AskStatic,
  15871. AskStatic2,
  15872. Mind,
  15873. Sunburst,
  15874. SeeBoard,
  15875. AnswerData2,
  15876. AnswerData,
  15877. sortToolWorkShow,
  15878. Audio,
  15879. ImgDraw,
  15880. Table,
  15881. interVideo,
  15882. UpdateMore,
  15883. wordCloud,
  15884. onlineWrite,
  15885. englishEva,
  15886. EnglishVoice,
  15887. checkEnglishVoice,
  15888. correctText,
  15889. scoreItem,
  15890. classRoomHelper,
  15891. scoreZong,
  15892. markScore,
  15893. markDialog,
  15894. evaTable,
  15895. statisticalAnalysis,
  15896. choseWorksDetailDialog,
  15897. appStoreC,
  15898. cocoFlowDia,
  15899. studentClassRoomHelper
  15900. },
  15901. data() {
  15902. return {
  15903. // 学校或者组织随机码
  15904. Code2:'',
  15905. // 是否允许学生查看内容资料 2不可以 1可以
  15906. IsStulook:false,
  15907. homeWorkLoading:false,
  15908. toolsList: toolsList,
  15909. wordCloudKey: 0,
  15910. bg: null,
  15911. drawShow: false,
  15912. dialogVisible: false,
  15913. dialogVisiblePl: false,
  15914. commentDialogVisible: false,
  15915. dialogVisibleMember: false,
  15916. dialogVisibleWordCloud: false,
  15917. videoVisible: false,
  15918. isStar: false,
  15919. studentEvalDialogVisible: false,
  15920. studentEvalDialogVisibleTeacher: false,
  15921. dialogVisibleSelect: false,
  15922. dialogVisibleSelectTeacher: false,
  15923. dialogVisibleScore: false,
  15924. dialogVisibleENScore: false,
  15925. dialogVisibleSentence: false,
  15926. dialogVisibleSentenceTeacher: false,
  15927. dialogVisibleSentence1: false,
  15928. dialogVisibleWorks: false,
  15929. dialogVisibleTable: false,
  15930. dialogVisibleTableTeacher: false,
  15931. dialogVisibleWord: false,
  15932. dialogVisibleWordTeacher: false,
  15933. dialogVisibleTable2: false,
  15934. dialogVisibleTable3: false,
  15935. dialogVisibleGroupWork: false,
  15936. dialogVisibleUpdateGroup: false,
  15937. dialogVisibleDeleteGroup: false,
  15938. dialogVisibleSname: false,
  15939. dialogVisibleVideo: false,
  15940. dialogVisiblePickPeople: false,
  15941. worksSName: "",
  15942. classJuri: [],
  15943. uploadStudentJuri: [],
  15944. uploadCid: "",
  15945. snameWid: "",
  15946. sStudent: {},
  15947. sTool: "",
  15948. bzText: "",
  15949. commentDetail: [],
  15950. selectAnswer: [],
  15951. videoDetail: {},
  15952. selectJson: {},
  15953. eScore: { eBzText: "", eStar: [] },
  15954. id: this.$route.query.courseId,
  15955. userid: this.$route.query.userid,
  15956. classId: this.$route.query.cid,
  15957. role: this.$route.query.role,
  15958. // courseTypeLine: this.$route.query.type,
  15959. oid: this.$route.query.oid,
  15960. org: this.$route.query.org,
  15961. tType: this.$route.query.tType,
  15962. courseType: this.$route.query.type,
  15963. screenType: this.$route.query.screenType,
  15964. tcid2: this.$route.query.tcid,
  15965. tcid: "",
  15966. pptImgUrl: "",
  15967. pptImgUrl1: "",
  15968. commentText: "",
  15969. full: false,
  15970. sIsOpen: false,
  15971. IsLookOpen: false,
  15972. IsFollow: false,
  15973. pzDialog: false,
  15974. contentDialog: false,
  15975. mlDialog: false,
  15976. type: 1,
  15977. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15978. sentenceList1: [],
  15979. tableJson: [],
  15980. tableJsonO: [],
  15981. wordJson: [],
  15982. wordJsonO: [],
  15983. vedio: [],
  15984. text: [],
  15985. textList: [],
  15986. line: [],
  15987. lineList: [],
  15988. chapTools: [],
  15989. chapToolList: [],
  15990. file: [],
  15991. fileC: [],
  15992. vedioTime: [],
  15993. upToolImg: "",
  15994. preTime: 0,
  15995. rateList: {
  15996. ca: 0,
  15997. },
  15998. rateParams: [],
  15999. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  16000. studyJuri: [
  16001. {
  16002. content: "",
  16003. cover: [],
  16004. upVedio: [],
  16005. upFile: [],
  16006. },
  16007. ],
  16008. isClose: 0,
  16009. plworkFile: [],
  16010. mr: require("../../assets/vedioPic.png"),
  16011. word: require("../../assets/icon/isWord.png"),
  16012. word2: require("../../assets/icon/word2.png"),
  16013. video: require("../../assets/icon/isVideo.png"),
  16014. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16015. likes: require("../../assets/icon/comment/likes.png"),
  16016. scoreImg: require("../../assets/score.png"),
  16017. courseDetail: {},
  16018. reply: "",
  16019. isSelect: false,
  16020. chapInfo: [],
  16021. chapInfoList: [],
  16022. taskCount: 0,
  16023. imgList: [],
  16024. noImgList: [],
  16025. pzList: [],
  16026. timeWorkList: [],
  16027. PlTextList: [
  16028. "Excellent!",
  16029. "nice!",
  16030. "很有创意!",
  16031. "还不错哦~",
  16032. "继续努力哦~",
  16033. ],
  16034. isClickNav: "",
  16035. navId: "",
  16036. playerOptions: {
  16037. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16038. autoplay: false, //如果true,浏览器准备好时开始回放。
  16039. muted: false, // 默认情况下将会消除任何音频。
  16040. loop: false, // 导致视频一结束就重新开始。
  16041. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16042. language: "zh-CN",
  16043. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16044. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16045. sources: [
  16046. {
  16047. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16048. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16049. },
  16050. ],
  16051. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16052. // poster: dataRes.imgUrl, //你的封面地址
  16053. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16054. controlBar: {
  16055. timeDivider: true, //当前时间和持续时间的分隔符
  16056. durationDisplay: true, //显示持续时间
  16057. remainingTimeDisplay: false, //是否显示剩余时间功能
  16058. fullscreenToggle: true, //全屏按钮
  16059. },
  16060. },
  16061. playerOptions1: {
  16062. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16063. autoplay: false, //如果true,浏览器准备好时开始回放。
  16064. muted: false, // 默认情况下将会消除任何音频。
  16065. loop: false, // 导致视频一结束就重新开始。
  16066. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16067. language: "zh-CN",
  16068. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16069. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16070. sources: [
  16071. {
  16072. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16073. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16074. },
  16075. ],
  16076. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16077. // poster: dataRes.imgUrl, //你的封面地址
  16078. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16079. controlBar: {
  16080. timeDivider: true, //当前时间和持续时间的分隔符
  16081. durationDisplay: true, //显示持续时间
  16082. remainingTimeDisplay: false, //是否显示剩余时间功能
  16083. fullscreenToggle: true, //全屏按钮
  16084. },
  16085. },
  16086. playerO: {},
  16087. noneBtnImg: false,
  16088. proVisible: false,
  16089. proVisible2: false,
  16090. progress: 0,
  16091. isFinishSize: 0,
  16092. isAllSize: 0,
  16093. questionAnswer: "",
  16094. answerQ: "", //问答标题
  16095. rateJson: [],
  16096. wbCount: 0,
  16097. wordCount: 0,
  16098. mindCount: 0,
  16099. askCount: 0,
  16100. noteCount: 0,
  16101. mindNetWorkCount: 0,
  16102. libraryCount: 0,
  16103. workCount: 0,
  16104. timeCount: 0,
  16105. answerCount: 0,
  16106. trainCount: 0,
  16107. evalCount: 0,
  16108. dialogImageUrl: "",
  16109. pictureDialog: false,
  16110. toolTypeList: [],
  16111. dialogVisible1: false,
  16112. dialogVisible2: false,
  16113. dialogVisible3: false,
  16114. dialogVisible6: false,
  16115. dialogVisible4: false,
  16116. isNoHomeWork: false,
  16117. dialogVisible5: false,
  16118. dialogVisible5Teacher: false,
  16119. dialogVisibleChoice: false,
  16120. dialogVisibleChoiceTeacher: false,
  16121. answerDialogVisible: false,
  16122. answerDialogVisibleTeacher: false,
  16123. juriVisible: false,
  16124. timeDialogVisible: false,
  16125. replyDialogVisible: false,
  16126. toolDialogVisible: false,
  16127. engDialogVisible: false,
  16128. engUpdateDialogVisible:false,
  16129. engEvaDialogVisible: false,
  16130. evaEngJson: {
  16131. teacherJson: {},
  16132. studentJson: {},
  16133. message: {},
  16134. },
  16135. isNoUserid:false,
  16136. engListLength:0,
  16137. engWid:"",
  16138. newEnglishList:{
  16139. engTitle:"",
  16140. engText:"",
  16141. },
  16142. newEnglishList1:[],
  16143. oldEnglishJson:{},
  16144. oldEnglishJson1:{},
  16145. englishList1:{},
  16146. englishList:{},
  16147. myAnswerList1:{},
  16148. topHeight:0,
  16149. newEngIndex:-1,
  16150. englishToolIndex:0,
  16151. userMes:{},
  16152. englishToolIndex:0,
  16153. replyIndex: 0,
  16154. replyPid: "",
  16155. radio: [],
  16156. isAsk: false,
  16157. askJson: {
  16158. askCount: 1,
  16159. askTitle: "",
  16160. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16161. },
  16162. testJson: {},
  16163. englishList: {},
  16164. topHeight:0,
  16165. checkJson: [],
  16166. askList: [],
  16167. answerList: [],
  16168. navList: [],
  16169. addPzDialog: false,
  16170. pzConText: "",
  16171. worksStudent: [],
  16172. isCloseList: [],
  16173. workStudent: [],
  16174. groupStudent: [],
  16175. groupStudentUid: [],
  16176. noWorksS: [],
  16177. isWorksS: [],
  16178. noWorksStudent: [],
  16179. toolindex: 0,
  16180. toolDetailIndex: null,
  16181. groupIndex: 0,
  16182. workTypeB: false,
  16183. workTypeC: false,
  16184. isAnswer: false,
  16185. isHovered: false,
  16186. isHovered1: false,
  16187. isHovered2: false,
  16188. commentTagShow:0,
  16189. timer: null,
  16190. timer2: null,
  16191. opertimer: null,
  16192. showType: '',
  16193. fileType: 0,
  16194. showPDF: false,
  16195. noteName: "",
  16196. evaJuri: [],
  16197. evalua: "",
  16198. eTitle: "",
  16199. eName: "",
  16200. eJson: {},
  16201. fid: "", //一级
  16202. sid: "", //二级
  16203. tid: "", //二级
  16204. typeMode: 1,
  16205. eJSONNum: 0,
  16206. Etype: 1,
  16207. data: {
  16208. meta: {
  16209. name: "example",
  16210. author: "dd@163.com",
  16211. version: "0.2",
  16212. },
  16213. format: "node_array",
  16214. data: [{ id: "root", isroot: true, topic: "" }],
  16215. },
  16216. fullDialogVisible: false,
  16217. fulltype: "",
  16218. fullUrl: "",
  16219. commentIndexJson: {},
  16220. Stbodywidth: 0,
  16221. ispzType: 0,
  16222. pzType: 1,
  16223. wScore: 0,
  16224. scoreDetail: "",
  16225. videoStart: false,
  16226. recorder: null,
  16227. groupJson: {},
  16228. islock: false,
  16229. groupJson2: {},
  16230. dialogVisibleGroup: false,
  16231. dialogVisibleGroup2: false,
  16232. updateGroupArray: [],
  16233. updateGroupUser: {},
  16234. deleteGroupUser: [],
  16235. deleteGroupArray: {},
  16236. checkChair: "",
  16237. checkDeleteGroup: [],
  16238. inviteCode: "",
  16239. courseGroupStudent: [],
  16240. courseGroupStudentUid: [],
  16241. courseGroup: {},
  16242. isGroup: false,
  16243. toolIndex: null,
  16244. tool: {},
  16245. isWorkTool: [
  16246. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  16247. ], //, 40
  16248. videoJson: {},
  16249. videoType:0,
  16250. toolType: 0,
  16251. checktoolArray: [],
  16252. vChapterData: [],
  16253. isUpdateToolDetail: false,
  16254. isUpdateToolDetail1: false,
  16255. updateToolDetailInner: "",
  16256. checkboxList: [],
  16257. plIndex: "",
  16258. worksSName2: "",
  16259. worksSid: "",
  16260. wordCloudData: [],
  16261. isPickStudent: [],
  16262. pzStype: 1,
  16263. myAnList: {},
  16264. downLoading: false,
  16265. greyType: false,
  16266. correctWord: [],
  16267. EnglishVoiceDialog: false,
  16268. englishVoiceJson: {},
  16269. englishVoiceJsonWork:[],
  16270. scoreList:{
  16271. listdata:[],
  16272. isScoreList:[],
  16273. },
  16274. classRoomHelperWidth: '85px',
  16275. orgArray:[],
  16276. oidArray:[],
  16277. splitScreenData:{
  16278. isOpen:false,
  16279. userId:"",
  16280. uid:"",
  16281. myUid:"",
  16282. loading:false,
  16283. behavior:null,
  16284. },
  16285. confirmOpenDig:false,
  16286. confirmOpenDigData:'',
  16287. refreshKey: 0,
  16288. AIloading: [],
  16289. worksStudentCopy: [],
  16290. loopLoading: [],
  16291. markScoreVisible: false,
  16292. markScoretoolIndex: 0,
  16293. markScoreUid: "",
  16294. markScoreTit: {},
  16295. markfullscreen: false,
  16296. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16297. markScoreworksStudent: [],
  16298. finalMarkList: -1,
  16299. isaiNum: 0,
  16300. dialogVisibleTxt: false,
  16301. TxtMd: "",
  16302. languageSetting: 0, //0中文 1繁体 2英文
  16303. toolListS: [],
  16304. commentDetailCopy: "",
  16305. diffKey:"1",
  16306. getCourseGroupLoading: false,
  16307. selectSWorksLoading:false,
  16308. selectStudentLoading:false,
  16309. selectSLookLoading:false,
  16310. getPickLoading:false,
  16311. selectPzLoading:false,
  16312. getSplitScreenDataLoading:false,
  16313. };
  16314. },
  16315. watch:{
  16316. taskCount(newVal) {
  16317. console.log('newVal',newVal);
  16318. this.AIloading = [];
  16319. this.loopLoading = [];
  16320. this.worksStudent.forEach((e, index) => {
  16321. this.loopLoading.push({ loading: false });
  16322. this.AIloading.push([]);
  16323. e.forEach(k => {
  16324. this.AIloading[index].push({ loading: false, sco: 0 });
  16325. });
  16326. });
  16327. if(this.tType == 1){
  16328. this.refreshAssembly();
  16329. }
  16330. },
  16331. worksStudent: {
  16332. handler(newVal, oldVal) {
  16333. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16334. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16335. // console.log('worksStudent',sum1,sum2);
  16336. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  16337. this.AIloading = [];
  16338. this.loopLoading = [];
  16339. this.worksStudent.forEach((e, index) => {
  16340. this.loopLoading.push({ loading: false });
  16341. this.AIloading.push([]);
  16342. e.forEach(k => {
  16343. this.AIloading[index].push({ loading: false, sco: 0 });
  16344. });
  16345. });
  16346. if(this.tType == 1){
  16347. this.refreshAssembly();
  16348. }
  16349. }
  16350. },
  16351. deep:true,
  16352. }
  16353. },
  16354. methods: {
  16355. // 获取学校或组织随机码
  16356. getCode2(){
  16357. let params = {
  16358. oid: this.oid,
  16359. org: this.org
  16360. };
  16361. this.ajax
  16362. .get(this.$store.state.api + "getCode2", params)
  16363. .then(res => {
  16364. this.Code2 = res.data[0][0].code2
  16365. })
  16366. .catch(err => {
  16367. console.error(err);
  16368. });
  16369. },
  16370. //查看应用中心作业
  16371. openCocoFlow(w){
  16372. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16373. },
  16374. getAIJ() {
  16375. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16376. let oid = res.data[0];
  16377. let org = res.data[1];
  16378. let oidArray = [];
  16379. let orgArray = [];
  16380. oid.forEach(i => oidArray.push(i.oid));
  16381. org.forEach(i => orgArray.push(i.oid));
  16382. this.orgArray = orgArray;
  16383. this.oidArray = oidArray;
  16384. });
  16385. },
  16386. // 评分弹框全屏
  16387. markFullScreenBtn() {
  16388. this.markfullscreen = !this.markfullscreen;
  16389. },
  16390. insertMemorandum(_html) {
  16391. //保存行为操作
  16392. //variable
  16393. //btn
  16394. let params = [
  16395. {
  16396. uid: this.userid,
  16397. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16398. content: _html
  16399. }
  16400. ];
  16401. console.log(params);
  16402. this.ajax
  16403. .post(
  16404. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16405. params
  16406. )
  16407. .then(res => {
  16408. if (res.data == 1) {
  16409. console.log("保存操作成功");
  16410. } else {
  16411. console.log("保存操作失败");
  16412. }
  16413. })
  16414. .catch(e => {
  16415. console.log("保存操作失败");
  16416. console.log(e);
  16417. });
  16418. },
  16419. // 获取文档id
  16420. createFileid(url) {
  16421. let _this = this;
  16422. return new Promise((resolve, reject) => {
  16423. try {
  16424. _this.ajax
  16425. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16426. url: url
  16427. })
  16428. .then(res => {
  16429. let _data = res.data.FunctionResponse;
  16430. if (_data.result && _data.result.id) {
  16431. resolve(_data.result.id);
  16432. } else {
  16433. resolve(1);
  16434. }
  16435. })
  16436. .catch(function(error) {
  16437. resolve(1);
  16438. });
  16439. } catch (e) {
  16440. resolve(1);
  16441. }
  16442. });
  16443. },
  16444. // 一键重置
  16445. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16446. let jude = false;
  16447. this.AIloading.forEach((e, index) => {
  16448. if (index == toolIndex) {
  16449. e.forEach(k => {
  16450. if (k.loading == true) jude = true;
  16451. });
  16452. }
  16453. });
  16454. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16455. this.$confirm("确认一键重置?")
  16456. .then(_ => {
  16457. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16458. })
  16459. .catch(_ => {});
  16460. },
  16461. // 一键重置
  16462. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16463. for (let index = 0; index < con.length; index++) {
  16464. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16465. }
  16466. this.$message.success("重置完成");
  16467. this.worksStudent.forEach((e, index) => {
  16468. if (toolIndex == index) {
  16469. console.log("6666");
  16470. e.forEach((i, inx) => {
  16471. let mk = `markSco${index}${inx}`;
  16472. this.$refs[mk][0].getData();
  16473. });
  16474. }
  16475. });
  16476. },
  16477. // 一键重置
  16478. allEmptySco(uid, stage, task, toolIndex) {
  16479. let params = [
  16480. {
  16481. cid: this.id,
  16482. uid: uid,
  16483. s: stage,
  16484. t: task,
  16485. tool: toolIndex ? toolIndex : ""
  16486. }
  16487. ];
  16488. return new Promise(resolve => {
  16489. this.ajax
  16490. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16491. .then(res => {
  16492. resolve(1);
  16493. })
  16494. .catch(err => {
  16495. console.error(err);
  16496. });
  16497. }).catch(error => {
  16498. console.log(error);
  16499. });
  16500. },
  16501. // AI评分循环打分
  16502. async loopEva(
  16503. con,
  16504. tit,
  16505. stage,
  16506. task,
  16507. toolIndex,
  16508. toolDetail,
  16509. taskDetail,
  16510. toolList
  16511. ) {
  16512. let jude = false;
  16513. this.AIloading.forEach((e, index) => {
  16514. if (index == toolIndex) {
  16515. e.forEach(k => {
  16516. if (k.loading == true) jude = true;
  16517. });
  16518. }
  16519. });
  16520. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16521. this.AIloading.forEach((e, index) => {
  16522. if (index == toolIndex) {
  16523. e.forEach(k => {
  16524. k.loading = true;
  16525. });
  16526. }
  16527. });
  16528. this.loopLoading[toolIndex].loading = true;
  16529. let laws = "";
  16530. let std = "";
  16531. let text = "";
  16532. if (toolList && toolList.eList && toolList.eList.length) {
  16533. for (let i = 0; i < toolList.eList.length; i++) {
  16534. if (toolList.eList[i].isai == 1) {
  16535. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16536. }
  16537. }
  16538. for (let i = 0; i < toolList.eList.length; i++) {
  16539. if (toolList.eList[i].isai == 1) {
  16540. let a = toolList.eList[i].detail;
  16541. if (isNaN(parseFloat(a)) && a) {
  16542. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16543. } else {
  16544. var result = a;
  16545. }
  16546. std += `纬度${i}:“${result}”, \n`;
  16547. }
  16548. }
  16549. for (let i = 0; i < toolList.eList.length; i++) {
  16550. if (toolList.eList[i].isai == 1) {
  16551. let a = toolList.eList[i].detail;
  16552. if (isNaN(parseFloat(a)) && a) {
  16553. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16554. } else {
  16555. var result = a;
  16556. }
  16557. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16558. }
  16559. }
  16560. } else {
  16561. let titRule = 0;
  16562. let titRule2 = 0;
  16563. tit.forEach((e, index) => {
  16564. if (!e.isai) {
  16565. e.isai = 1;
  16566. }
  16567. });
  16568. tit.forEach((e, index) => {
  16569. if (e.isai == 1) {
  16570. titRule2++;
  16571. if (e.rule) {
  16572. titRule++;
  16573. }
  16574. }
  16575. });
  16576. if (titRule != titRule2) {
  16577. this.AIloading.forEach((e, index) => {
  16578. if (index == toolIndex) {
  16579. e.forEach(k => {
  16580. k.loading = false;
  16581. });
  16582. }
  16583. });
  16584. this.loopLoading[toolIndex].loading = false;
  16585. this.$message.info("细则努力生成中,请稍候……");
  16586. return;
  16587. }
  16588. for (let i = 0; i < tit.length; i++) {
  16589. if (tit[i].isai == 1) {
  16590. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16591. }
  16592. }
  16593. for (let i = 0; i < tit.length; i++) {
  16594. if (tit[i].isai == 1) {
  16595. let a = tit[i].detail;
  16596. if (isNaN(parseFloat(a)) && a) {
  16597. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16598. } else {
  16599. var result = a;
  16600. }
  16601. std += `纬度${i}:“${result}”, \n`;
  16602. }
  16603. }
  16604. for (let i = 0; i < tit.length; i++) {
  16605. if (tit[i].isai == 1) {
  16606. let a = tit[i].detail;
  16607. if (isNaN(parseFloat(a)) && a) {
  16608. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16609. } else {
  16610. var result = a;
  16611. }
  16612. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16613. }
  16614. }
  16615. }
  16616. let forAllList = [];
  16617. // console.log('con',con)
  16618. for (let i = 0; i < con.length; i++) {
  16619. let _fileid = "";
  16620. let wok = con[i].works;
  16621. // console.log('con',con);
  16622. // console.log('con[i].type',con[i].type);
  16623. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16624. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16625. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16626. _fileid = await this.createFileid(con[i].works);
  16627. } else {
  16628. this.AIloading[toolIndex][i].loading = false;
  16629. continue;
  16630. }
  16631. }
  16632. // console.log('con[i].type',con[i])
  16633. // console.log('con[i].type',con[i].type)
  16634. if (_fileid == 1 || con[i].type == 3) {
  16635. this.AIloading[toolIndex][i].loading = false;
  16636. continue;
  16637. }
  16638. let msg = ''
  16639. if(con[i].type == 20){
  16640. msg = `#NOTICE#
  16641. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16642. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16643. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16644. - 拥有客观公正的态度,确保评分结果公平合理。
  16645. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16646. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16647. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16648. Language: ${this.getLang()}
  16649. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16650. Instruction: Based on the context, follow "Format example", write content.
  16651. #目标#
  16652. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16653. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16654. #评分资料#
  16655. 评价标准:${std}
  16656. 评价细则:${laws}
  16657. 等级:${text}
  16658. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16659. 具体你步骤如下:
  16660. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16661. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16662. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16663. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16664. ### 理论框架
  16665. ### 教育目标分类理论
  16666. 1. 基本原理:
  16667. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16668. - 有助于明确教学活动期望达成的目标类型。
  16669. - 为评价教学成果提供了分类框架。
  16670. 2. 具体应用:
  16671. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16672. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16673. - 对比不同对话内容在目标达成度上的差异进行评分。
  16674. ### 教学评价理论
  16675. 1. 基本原理:
  16676. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16677. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16678. - 强调评价的客观性、全面性和发展性。
  16679. 2. 具体应用:
  16680. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16681. - 考量对话对学生学习效果的影响来给出评分。
  16682. - 根据评价结果提出改进和发展的建议。
  16683. ### 对话分析理论
  16684. 1. 基本原理:
  16685. - 着重对对话结构、话语功能、交互模式等进行分析。
  16686. - 揭示对话中的信息流动、话语权分配等情况。
  16687. - 有助于理解对话参与者之间的关系和互动效果。
  16688. 2. 具体应用:
  16689. - 剖析“小可ai助手”与学生对话的结构合理性。
  16690. - 分析话语功能是否有助于学习和评价目的。
  16691. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16692. #输出格式#
  16693. [${text}{'comment':'评语(150个汉字左右)'}]
  16694. 注意检查输出评语不超过50字`
  16695. }else{
  16696. msg = `NOTICE
  16697. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16698. Language: ${this.getLang()}
  16699. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16700. Instruction: Based on the context, follow "Format example", write content.
  16701. #目标#
  16702. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16703. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16704. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16705. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16706. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16707. #评分资料#
  16708. 评价标准:${std}
  16709. 评价细则:${laws}
  16710. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16711. 任务描述:${taskDetail}
  16712. 工具描述:${toolDetail}
  16713. #输出要求#
  16714. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16715. “评语”控制在150字左右。
  16716. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16717. #输出格式#
  16718. [${text}{'comment':'评语(150个汉字左右)'}]
  16719. `;
  16720. }
  16721. let mk = `markSco${toolIndex}${i}`;
  16722. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16723. msg,
  16724. con[i].userid,
  16725. stage,
  16726. task,
  16727. _fileid,
  16728. con[i].type
  16729. );
  16730. forAllList.push(mkAwit);
  16731. }
  16732. Promise.all(forAllList)
  16733. .then(values => {
  16734. console.log("values", values);
  16735. this.$message({
  16736. message: "评价成功",
  16737. type: "success"
  16738. });
  16739. // this.refreshKey++
  16740. // this.worksStudent.forEach((e,index)=>{
  16741. // if(toolIndex == index){
  16742. // e.forEach((i,inx)=>{
  16743. // let mk = `markSco${index}${inx}`
  16744. // this.$refs[mk][0].getData()
  16745. // })
  16746. // }
  16747. // })
  16748. this.AIloading[toolIndex].forEach(e => {
  16749. e.loading = false;
  16750. });
  16751. this.loopLoading[toolIndex].loading = false;
  16752. })
  16753. .catch(reason => {
  16754. console.error("reasonreasonreasonreasonreason", reason);
  16755. // 输出“失败原因”
  16756. });
  16757. },
  16758. // 获取评价细则
  16759. againEva(i, k) {
  16760. let msg = `NOTICE
  16761. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16762. Language: ${this.getLang()}
  16763. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16764. Instruction: Based on the context, follow "Format example", write content.
  16765. #Context
  16766. ##要求
  16767. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16768. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16769. ##制定标准资料
  16770. 评价维度:${
  16771. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16772. }
  16773. 维度描述:${
  16774. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16775. }
  16776. # Format example
  16777. ==
  16778. 0 星,作业内容与作业要求无关;
  16779. 1 星,没有识别问题和需求;
  16780. 2 星,问题或需求没有被清晰理解或准确识别;
  16781. 3 星,问题或需求的一部分被识别;
  16782. 4 星,问题或需求的大部分被识别;
  16783. 5 星,问题或需求都被识别。
  16784. ==
  16785. `;
  16786. let params = {
  16787. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16788. message: [
  16789. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16790. ],
  16791. session_name: uuidv4(),
  16792. userId: this.userid,
  16793. file_ids: [],
  16794. model: "gpt-4o-2024-11-20"
  16795. };
  16796. // console.log('params',params);
  16797. this.ajax
  16798. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16799. .then(response => {
  16800. let data = response.data.FunctionResponse;
  16801. // console.log("data", data);
  16802. if (data.message) {
  16803. let content = data.message;
  16804. var regex = new RegExp("==([^=]+)==");
  16805. let match = content.match(regex);
  16806. if (match) {
  16807. content = match[1].trim().replaceAll(" ", "");
  16808. // 获取匹配到的内容并去除两端空格
  16809. // console.log('contentInsideDoubleEquals', content);
  16810. if (
  16811. content.indexOf("0星") == -1 ||
  16812. content.indexOf("2星") == -1 ||
  16813. content.indexOf("3星") == -1 ||
  16814. content.indexOf("4星") == -1 ||
  16815. content.indexOf("5星") == -1
  16816. ) {
  16817. console.log("未有星级。");
  16818. this.againEva(i, k);
  16819. return;
  16820. }
  16821. // return
  16822. } else {
  16823. console.log("未找到匹配的内容。");
  16824. this.againEva(i, k);
  16825. return;
  16826. }
  16827. let elist = JSON.parse(
  16828. JSON.stringify(
  16829. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16830. )
  16831. );
  16832. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16833. elist.rule = JSON.parse(
  16834. JSON.stringify(content.replaceAll("#", ""))
  16835. );
  16836. this.$set(
  16837. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16838. k,
  16839. elist
  16840. );
  16841. this.$forceUpdate();
  16842. let params2 = [
  16843. {
  16844. cid: this.id,
  16845. chapters: JSON.stringify(this.chapInfoList),
  16846. uid: this.userid,
  16847. unitIndex: this.courseType
  16848. }
  16849. ];
  16850. this.ajax
  16851. .post(this.$store.state.api + "updateWorkNew4", params2)
  16852. .then(res => {
  16853. this.getCourseDetail(2);
  16854. this.$forceUpdate();
  16855. })
  16856. .catch(err => {
  16857. this.$message.error("网络不佳");
  16858. console.error(err);
  16859. });
  16860. // 进行进一步处理或解析outputContent
  16861. // } else {
  16862. // console.log("No match found for # Output section.");
  16863. // }
  16864. }
  16865. })
  16866. .catch(error => {
  16867. console.log(error);
  16868. });
  16869. },
  16870. // 关闭评分弹框
  16871. markScorehandleClose(done) {
  16872. // this.refreshKey++
  16873. this.worksStudent.forEach((e, index) => {
  16874. if (this.markScoretoolIndex == index) {
  16875. e.forEach((i, inx) => {
  16876. let mk = `markSco${index}${inx}`;
  16877. if (this.$refs[mk] && this.$refs[mk][0]) {
  16878. this.$refs[mk][0].getData();
  16879. }
  16880. });
  16881. }
  16882. });
  16883. done();
  16884. },
  16885. // 关闭txtMd预览弹框
  16886. handleCloseTxt(done) {
  16887. this.TxtMd = "";
  16888. done();
  16889. },
  16890. // Txt,Md作业查看
  16891. lookTxt(val) {
  16892. this.dialogVisibleTxt = true;
  16893. this.TxtMd = "";
  16894. getFile(val).then(res => {
  16895. this.TxtMd = res.data;
  16896. });
  16897. },
  16898. // 组件刷新
  16899. refreshAssembly() {
  16900. this.refreshKey++;
  16901. },
  16902. updateLoading(payload) {
  16903. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16904. },
  16905. handleShow(toolIndex, val) {
  16906. let mk = `markSco${toolIndex}${val}`;
  16907. // console.log(mk);
  16908. this.$refs[mk][0].getData();
  16909. },
  16910. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16911. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16912. // console.log('this.AIloading',this.AIloading)
  16913. let jude = false;
  16914. this.AIloading.forEach((e, index) => {
  16915. if (index == tidx) {
  16916. e.forEach(k => {
  16917. if (k.loading == true) jude = true;
  16918. });
  16919. }
  16920. });
  16921. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16922. if (val) return;
  16923. // console.log(uname,worksStudent,uid,tidx,titlist)
  16924. this.markScoreTit = titlist;
  16925. this.markScoreUid = uid;
  16926. this.toolListS = toolList;
  16927. this.markScoretoolIndex = tidx;
  16928. this.markScoreworksStudent = worksStudent;
  16929. this.markfullscreen = false;
  16930. this.markScoreVisible = true;
  16931. if (this.tType == 1) {
  16932. this.insertMemorandum(
  16933. `查看<span class="variable">${uname}</span>的作业`
  16934. );
  16935. }
  16936. },
  16937. // 点击markScore显示评分框
  16938. markScoreDig(data) {
  16939. // console.log('data',data)
  16940. let jude = false;
  16941. this.AIloading.forEach((e, index) => {
  16942. if (index == data.val2) {
  16943. e.forEach(k => {
  16944. if (k.loading == true) jude = true;
  16945. });
  16946. }
  16947. });
  16948. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16949. this.markScoreTit = data.tit;
  16950. this.markScoreUid = data.val;
  16951. this.markScoretoolIndex = data.val2;
  16952. this.markfullscreen = false;
  16953. this.markScoreVisible = true;
  16954. this.insertMemorandum(
  16955. `查看<span class="variable">${data.uname}</span>的作业`
  16956. );
  16957. },
  16958. // 刷新其他组件分数
  16959. refreshOther(v) {
  16960. // console.log('v',v)
  16961. this.AIloading[v.tid].forEach((e, i) => {
  16962. if (i == v.wid) {
  16963. e.loading = false;
  16964. }
  16965. });
  16966. // this.worksStudent.forEach((e,index)=>{
  16967. // if(toolIndex != index){
  16968. // e.forEach((i,inx)=>{
  16969. // let mk = `markSco${index}${inx}`
  16970. // this.$refs[mk][0].getData()
  16971. // })
  16972. // }
  16973. // })
  16974. },
  16975. updateDocSco(payload) {
  16976. // console.log('payload',payload)
  16977. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16978. },
  16979. gx(){
  16980. this.$forceUpdate();
  16981. },
  16982. isUpdateCorrect(t,p){
  16983. if(this.greyType == false){
  16984. this.isUpdateText = t;
  16985. this.greyType = true;
  16986. }else{
  16987. if(p == 1){
  16988. this.newEnglishList.engText = this.isUpdateText;
  16989. }else if(p == 2){
  16990. this.oldEnglishJson1.engText = this.isUpdateText;
  16991. }else if(p == 3){
  16992. this.newEnglishList.engText = this.isUpdateText;
  16993. }else{
  16994. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16995. }
  16996. this.greyType = false
  16997. }
  16998. },
  16999. aiCorrect(t,p){
  17000. let aiText = "";
  17001. const loading = this.$loading.service({
  17002. background: "rgba(255, 255, 255)",
  17003. target: document.querySelectorAll(".loadingText")[0],
  17004. });
  17005. let param = {
  17006. model: "gpt-3.5-turbo",
  17007. temperature: 0,
  17008. max_tokens: 2048,
  17009. top_p: 1,
  17010. frequency_penalty: 0,
  17011. presence_penalty: 0,
  17012. messages: [
  17013. {
  17014. role: "user",
  17015. content:
  17016.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  17017. },
  17018. ],
  17019. uid: this.userid,
  17020. stream: false,
  17021. };
  17022. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17023. (res) => {
  17024. if (
  17025. res.data.FunctionResponse &&
  17026. res.data.FunctionResponse.result &&
  17027. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17028. ) {
  17029. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17030. return;
  17031. }
  17032. aiText =
  17033. res.data.FunctionResponse.choices[0].message.content;
  17034. aiText = aiText.replace(/%/g,"%25");
  17035. // let w = "";
  17036. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17037. // for(var k = 0;k<a.length;k++){
  17038. // //diffWordsWithSpace
  17039. // if(a.length > 1){
  17040. // if(a[k].added == true){
  17041. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17042. // }else if(a[k].removed == true){
  17043. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17044. // }else{
  17045. // w += '<span>' + a[k].value + '</span>';
  17046. // }
  17047. // }else{
  17048. // if(p == 1){
  17049. // w = this.newEnglishList.engText;
  17050. // }else if(p == 2){
  17051. // w = this.oldEnglishJson1.engText;
  17052. // }else if(p == 3){
  17053. // w = this.newEnglishList.engText;
  17054. // }else{
  17055. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17056. // }
  17057. // }
  17058. // }
  17059. if(p == 1){
  17060. this.newEnglishList.engText = aiText;
  17061. }else if(p == 2){
  17062. this.oldEnglishJson1.engText = aiText;
  17063. }else if(p == 3){
  17064. this.newEnglishList.engText = aiText;
  17065. }else{
  17066. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17067. }
  17068. loading.close();
  17069. },
  17070. (err) => {
  17071. console.log(err);
  17072. loading.close();
  17073. }
  17074. );
  17075. },
  17076. addToolChoose() {
  17077. if (!this.checktoolArray.length) {
  17078. this.$message.error("请选择要添加的任务");
  17079. return;
  17080. }
  17081. if (
  17082. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17083. this.taskCount
  17084. ].toolChoose[0].tool.length
  17085. ) {
  17086. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17087. this.taskCount
  17088. ].toolChoose[0].tool = this.checktoolArray;
  17089. } else {
  17090. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17091. this.taskCount
  17092. ].toolChoose.push({
  17093. tool: this.checktoolArray,
  17094. toolDetail: "",
  17095. toolType: 0,
  17096. askCount: 1,
  17097. askTitle: "",
  17098. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17099. });
  17100. }
  17101. let params = [
  17102. {
  17103. cid: this.id,
  17104. chapters: JSON.stringify(this.chapInfoList),
  17105. uid: this.userid,
  17106. unitIndex: this.courseType,
  17107. },
  17108. ];
  17109. this.ajax
  17110. .post(this.$store.state.api + "updateWorkNew4", params)
  17111. .then((res) => {
  17112. this.$message({
  17113. message: "添加成功",
  17114. type: "success",
  17115. });
  17116. this.checktoolArray = [];
  17117. this.getCourseDetail(2);
  17118. this.checkBz(
  17119. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17120. this.taskCount
  17121. ].toolChoose.length - 1
  17122. );
  17123. this.toolDialogVisible = false;
  17124. this.refreshCourse();
  17125. this.$forceUpdate();
  17126. })
  17127. .catch((err) => {
  17128. console.error(err);
  17129. });
  17130. },
  17131. checkBz(index) {
  17132. this.isUpdateToolDetail = false;
  17133. this.$forceUpdate();
  17134. setTimeout(() => {
  17135. document.scrollingElement.scrollTop =
  17136. document.querySelectorAll(".filebox")[index].offsetTop +
  17137. document.querySelector(".student_body").offsetTop;
  17138. }, 500);
  17139. },
  17140. updateToolDetail(i, type) {
  17141. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  17142. this.toolDetailIndex = i
  17143. this.isUpdateToolDetail1 = true;
  17144. setTimeout(() => {
  17145. this.updateToolDetailInner = JSON.parse(
  17146. JSON.stringify(
  17147. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17148. this.taskCount
  17149. ].toolChoose[i].toolDetail
  17150. )
  17151. );
  17152. document.querySelector(".checkTextArea").focus();
  17153. }, 0);
  17154. } else if((this.isUpdateToolDetail1 && type != 2)){
  17155. // this.toolDetailIndex = i;
  17156. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17157. this.taskCount
  17158. ].toolChoose[i].toolDetail = JSON.parse(
  17159. JSON.stringify(this.updateToolDetailInner)
  17160. );
  17161. let params = [
  17162. {
  17163. cid: this.id,
  17164. chapters: JSON.stringify(this.chapInfoList),
  17165. uid: this.userid,
  17166. unitIndex: this.courseType,
  17167. },
  17168. ];
  17169. this.ajax
  17170. .post(this.$store.state.api + "updateWorkNew4", params)
  17171. .then((res) => {
  17172. this.isUpdateToolDetail1 = false;
  17173. this.$message({
  17174. message: "修改成功",
  17175. type: "success",
  17176. });
  17177. this.toolDetailIndex = null;
  17178. this.updateToolDetailInner = "";
  17179. this.getCourseDetail(2);
  17180. this.$forceUpdate();
  17181. })
  17182. .catch((err) => {
  17183. console.error(err);
  17184. });
  17185. } else if((this.isUpdateToolDetail1 && type == 2)){
  17186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17187. this.taskCount
  17188. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17189. JSON.stringify(this.updateToolDetailInner)
  17190. );
  17191. let params = [
  17192. {
  17193. cid: this.id,
  17194. chapters: JSON.stringify(this.chapInfoList),
  17195. uid: this.userid,
  17196. unitIndex: this.courseType,
  17197. },
  17198. ];
  17199. this.ajax
  17200. .post(this.$store.state.api + "updateWorkNew4", params)
  17201. .then((res) => {
  17202. this.$message({
  17203. message: "修改成功",
  17204. type: "success",
  17205. });
  17206. this.toolDetailIndex = i;
  17207. this.isUpdateToolDetail1 = true;
  17208. setTimeout(() => {
  17209. this.updateToolDetailInner = JSON.parse(
  17210. JSON.stringify(
  17211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17212. this.taskCount
  17213. ].toolChoose[i].toolDetail
  17214. )
  17215. );
  17216. document.querySelector(".checkTextArea").focus();
  17217. }, 0);
  17218. this.getCourseDetail(2);
  17219. this.$forceUpdate();
  17220. })
  17221. .catch((err) => {
  17222. console.error(err);
  17223. });
  17224. }
  17225. },
  17226. jumpGj(i, j, k, l) {
  17227. // this.refreshAssembly();
  17228. for (var z = 0; z < this.navList.length; z++) {
  17229. for (var q = 0; q < this.navList[z].task.length; q++) {
  17230. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17231. this.navList[z].task[q].tool[w].isTool = false;
  17232. }
  17233. }
  17234. }
  17235. console.log(this.navList);
  17236. this.navList[i].task[j].tool[k].isTool =
  17237. !this.navList[i].task[j].tool[k].isTool;
  17238. var a = document.scrollingElement;
  17239. let target = document.querySelector(`#gj${k}`);
  17240. if (target) {
  17241. // target.scrollIntoView(true);
  17242. // setTimeout(() => {
  17243. // a.scrollTop = a.scrollTop - 150;
  17244. // }, 0);
  17245. target.scrollIntoView();
  17246. setTimeout(()=>{
  17247. let scrollBody = document.querySelector('.body_student').parentElement
  17248. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17249. }, 0);
  17250. }
  17251. this.navId = ""
  17252. let flag = this.courseType == i;
  17253. let flag2 = this.taskCount == j
  17254. if (l) {
  17255. this.courseType = i;
  17256. // this.navId = l;
  17257. this.taskCount = j;
  17258. this.selectPz();
  17259. this.getHomeWork();
  17260. this.getCourseDetail(2);
  17261. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17262. if(flag){
  17263. if(flag2){
  17264. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17265. }else{
  17266. 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>`)
  17267. }
  17268. }else{
  17269. 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>`)
  17270. }
  17271. }
  17272. if ((this.courseDetail.userid == this.userid ||
  17273. (this.courseDetail.course_teacher &&
  17274. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  17275. this.IsFollow) {
  17276. this.setCTask();
  17277. }
  17278. // var b = this.$refs["bz" + k][0];
  17279. // a.scrollTop = b.offsetTop;
  17280. },
  17281. addTools2(i) {
  17282. if (i == 4) {
  17283. // this.openTools2(4);
  17284. this.$message.error("暂未开放");
  17285. return;
  17286. }
  17287. if (i == 45) {
  17288. // this.openTools2(45);
  17289. this.$message.error("暂未开放");
  17290. return;
  17291. }
  17292. if (i == 47) {
  17293. // this.openTools2(47);
  17294. this.$message.error("暂未开放");
  17295. return;
  17296. }
  17297. if (i == 49) {
  17298. // this.openTools2(49);
  17299. this.$message.error("暂未开放");
  17300. return;
  17301. }
  17302. if (i == 62) {
  17303. // this.openTools(itemTaskIndex, 62, toolIndex);
  17304. this.$message.error("暂未开放");
  17305. return;
  17306. }
  17307. if (i == 15) {
  17308. // this.openTools(itemTaskIndex, 15, toolIndex);
  17309. this.$message.error("暂未开放");
  17310. return;
  17311. }
  17312. if (i == 40) {
  17313. // this.openTools(itemTaskIndex, 40, toolIndex);
  17314. this.$message.error("暂未开放");
  17315. return;
  17316. }
  17317. if (i == 41) {
  17318. // this.openTools(itemTaskIndex, 41, toolIndex);
  17319. this.$message.error("暂未开放");
  17320. return;
  17321. }
  17322. if (i == 42) {
  17323. // this.openTools(itemTaskIndex, 42, toolIndex);
  17324. this.$message.error("暂未开放");
  17325. return;
  17326. }
  17327. if (this.checktoolArray.length > 0) {
  17328. if (this.checktoolArray.indexOf(i) != -1) {
  17329. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17330. } else {
  17331. this.checktoolArray = [];
  17332. this.checktoolArray.push(i);
  17333. }
  17334. } else {
  17335. this.checktoolArray.push(i);
  17336. }
  17337. this.$forceUpdate();
  17338. },
  17339. jump() {
  17340. window.topU.postMessage({ tools: "43" }, "*");
  17341. },
  17342. getUpdateMore(f, checkboxList, searchTN, index) {
  17343. this.dialogVisibleMember = f;
  17344. this.checkboxList = checkboxList;
  17345. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17346. this.plIndex = index;
  17347. },
  17348. setPlname(a) {
  17349. if (this.plworkFile.length) {
  17350. this.plworkFile[this.plIndex].username = a;
  17351. } else {
  17352. this.worksSName = a;
  17353. }
  17354. this.dialogVisibleMember = false;
  17355. },
  17356. previewImg(url,w) {
  17357. this.$hevueImgPreview(url);
  17358. if(w){
  17359. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17360. }
  17361. },
  17362. checkImg(list) {
  17363. if (!list.length) {
  17364. return;
  17365. }
  17366. this.$hevueImgPreview({
  17367. multiple: true, // 开启多图预览模式
  17368. imgList: list, // 需要预览的多图数组
  17369. });
  17370. },
  17371. change(val) {
  17372. console.log(val);
  17373. },
  17374. goTo(path) {
  17375. this.$router.push(path);
  17376. },
  17377. handlePictureCardPreview(url) {
  17378. this.dialogImageUrl = url;
  17379. this.pictureDialog = true;
  17380. },
  17381. clean(type) {
  17382. if (type == 1) {
  17383. this.studyJuri[0].cover.splice(0, 1);
  17384. } else if (type == 2) {
  17385. this.studyJuri[0].upVedio.splice(0, 1);
  17386. } else {
  17387. this.studyJuri[0].upFile.splice(0, 1);
  17388. }
  17389. },
  17390. clean2(index) {
  17391. this.plworkFile.splice(index, 1);
  17392. },
  17393. handleClose(done) {
  17394. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17395. this.videoDetail.sources[0].src = "";
  17396. }
  17397. this.commentIndexJson = {};
  17398. this.changeSplitScreenBehavior({code:99})
  17399. done();
  17400. },
  17401. fullTools() {
  17402. this.full = !this.full;
  17403. },
  17404. imgChange(file, fileList, type) {
  17405. if (type == 1) {
  17406. var _tmp = this.studyJuri[0].cover;
  17407. } else if (type == 2) {
  17408. var _tmp = this.studyJuri[0].upVedio;
  17409. } else {
  17410. var _tmp = this.studyJuri[0].upFile;
  17411. }
  17412. this.noneBtnImg = _tmp.length >= 1;
  17413. },
  17414. setContent(bool) {
  17415. this.contentDialog = bool;
  17416. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17417. document.querySelector(".workd_media").style.height = "650px";
  17418. } else if (document.querySelector(".workd_media")) {
  17419. document.querySelector(".workd_media").style.height = "auto";
  17420. }
  17421. },
  17422. setContent2(bool) {
  17423. this.mlDialog = bool;
  17424. if (
  17425. bool &&
  17426. this.contentDialog &&
  17427. document.querySelector(".workd_media")
  17428. ) {
  17429. document.querySelector(".workd_media").style.height = "650px";
  17430. } else if (document.querySelector(".workd_media")) {
  17431. document.querySelector(".workd_media").style.height = "auto";
  17432. }
  17433. },
  17434. openToolAll() {
  17435. this.toolDialogVisible = true;
  17436. },
  17437. addImg(e) {
  17438. var el = e.currentTarget;
  17439. // this.$message.success('触发上传')
  17440. el.getElementsByTagName("input")[0].click();
  17441. e.target.value = "";
  17442. },
  17443. addSelectAnswer() {
  17444. let params = [
  17445. {
  17446. uid: this.userid,
  17447. cid: this.id,
  17448. stage: this.courseType,
  17449. task: this.taskCount,
  17450. tool: this.toolindex,
  17451. content: this.selectAnswer.answer,
  17452. type: 7,
  17453. },
  17454. ];
  17455. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17456. this.homeWorkLoading = true
  17457. this.ajax
  17458. .post(this.$store.state.api + "addCourseWorks", params)
  17459. .then((res) => {
  17460. this.$message({
  17461. message: "提交成功",
  17462. type: "success",
  17463. });
  17464. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17465. setTimeout(() => {
  17466. this.homeWorkLoading = false
  17467. }, 500);
  17468. this.dialogVisibleSelect = false;
  17469. // this.selectAnswer = {};
  17470. this.selectSWorks();
  17471. this.selectStudent();
  17472. })
  17473. .catch((err) => {
  17474. setTimeout(() => {
  17475. this.homeWorkLoading = false
  17476. }, 500);
  17477. this.$message.error("提交失败");
  17478. console.error(err);
  17479. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17480. });
  17481. },
  17482. addSelectAnswerTeacher() {
  17483. let params = [
  17484. {
  17485. uid: this.sStudent.userid,
  17486. cid: this.id,
  17487. stage: this.courseType,
  17488. task: this.taskCount,
  17489. tool: this.toolindex,
  17490. content: this.selectAnswer.answer,
  17491. type: 7,
  17492. },
  17493. ];
  17494. this.ajax
  17495. .post(this.$store.state.api + "addCourseWorks", params)
  17496. .then((res) => {
  17497. this.$message({
  17498. message: "提交成功",
  17499. type: "success",
  17500. });
  17501. this.dialogVisibleSelectTeacher = false;
  17502. // this.selectAnswer = {};
  17503. this.selectSWorks();
  17504. this.selectStudent();
  17505. })
  17506. .catch((err) => {
  17507. this.$message.error("提交失败");
  17508. console.error(err);
  17509. });
  17510. },
  17511. addSenWorks() {
  17512. for (var i = 0; i < this.sentenceList.length; i++) {
  17513. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17514. if (
  17515. this.sentenceList[i].chooseSenList[j] == undefined ||
  17516. this.sentenceList[i].chooseSenList[j] == ""
  17517. ) {
  17518. this.$message.error("请将答案填写完整!");
  17519. return;
  17520. }
  17521. }
  17522. }
  17523. let params = [
  17524. {
  17525. uid: this.userid,
  17526. cid: this.id,
  17527. stage: this.courseType,
  17528. task: this.taskCount,
  17529. tool: this.toolindex,
  17530. content: JSON.stringify(this.sentenceList),
  17531. type: 9,
  17532. },
  17533. ];
  17534. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17535. this.homeWorkLoading = true
  17536. this.ajax
  17537. .post(this.$store.state.api + "addCourseWorks", params)
  17538. .then((res) => {
  17539. this.$message({
  17540. message: "提交成功",
  17541. type: "success",
  17542. });
  17543. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17544. setTimeout(() => {
  17545. this.homeWorkLoading = false
  17546. }, 500);
  17547. this.dialogVisibleSentence = false;
  17548. // this.selectAnswer = {};
  17549. this.selectSWorks();
  17550. this.selectStudent();
  17551. })
  17552. .catch((err) => {
  17553. setTimeout(() => {
  17554. this.homeWorkLoading = false
  17555. }, 500);
  17556. this.$message.error("提交失败");
  17557. console.error(err);
  17558. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17559. });
  17560. },
  17561. addSenWorksTeacher() {
  17562. for (var i = 0; i < this.sentenceList.length; i++) {
  17563. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17564. if (
  17565. this.sentenceList[i].chooseSenList[j] == undefined ||
  17566. this.sentenceList[i].chooseSenList[j] == ""
  17567. ) {
  17568. this.$message.error("请将答案填写完整!");
  17569. return;
  17570. }
  17571. }
  17572. }
  17573. let params = [
  17574. {
  17575. uid: this.sStudent.userid,
  17576. cid: this.id,
  17577. stage: this.courseType,
  17578. task: this.taskCount,
  17579. tool: this.toolindex,
  17580. content: JSON.stringify(this.sentenceList),
  17581. type: 9,
  17582. },
  17583. ];
  17584. this.ajax
  17585. .post(this.$store.state.api + "addCourseWorks", params)
  17586. .then((res) => {
  17587. this.$message({
  17588. message: "提交成功",
  17589. type: "success",
  17590. });
  17591. this.dialogVisibleSentenceTeacher = false;
  17592. // this.selectAnswer = {};
  17593. this.selectSWorks();
  17594. this.selectStudent();
  17595. })
  17596. .catch((err) => {
  17597. this.$message.error("提交失败");
  17598. console.error(err);
  17599. });
  17600. },
  17601. returnTableText() {
  17602. this.$confirm("确定还原此模板吗?", "提示", {
  17603. confirmButtonText: "确定",
  17604. cancelButtonText: "取消",
  17605. type: "warning",
  17606. })
  17607. .then(() => {
  17608. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17609. })
  17610. .catch(() => {});
  17611. },
  17612. addTableWorks() {
  17613. let params = [
  17614. {
  17615. uid: this.userid,
  17616. cid: this.id,
  17617. stage: this.courseType,
  17618. task: this.taskCount,
  17619. tool: this.toolindex,
  17620. content: JSON.stringify(this.tableJson),
  17621. type: 10,
  17622. },
  17623. ];
  17624. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17625. this.homeWorkLoading = true
  17626. this.ajax
  17627. .post(this.$store.state.api + "addCourseWorks", params)
  17628. .then((res) => {
  17629. this.$message({
  17630. message: "提交成功",
  17631. type: "success",
  17632. });
  17633. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17634. setTimeout(() => {
  17635. this.homeWorkLoading = false
  17636. }, 500);
  17637. this.dialogVisibleTable = false;
  17638. // this.selectAnswer = {};
  17639. this.selectSWorks();
  17640. this.selectStudent();
  17641. })
  17642. .catch((err) => {
  17643. this.$message.error("提交失败");
  17644. console.error(err);
  17645. setTimeout(() => {
  17646. this.homeWorkLoading = false
  17647. }, 500);
  17648. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17649. });
  17650. },
  17651. tableRowClassName({ row, rowIndex }) {
  17652. if ((rowIndex + 1) % 2 === 0) {
  17653. return "even_row";
  17654. } else {
  17655. return "";
  17656. }
  17657. },
  17658. addTableWorksTeacher() {
  17659. let params = [
  17660. {
  17661. uid: this.sStudent.userid,
  17662. cid: this.id,
  17663. stage: this.courseType,
  17664. task: this.taskCount,
  17665. tool: this.toolindex,
  17666. content: JSON.stringify(this.tableJson),
  17667. type: 10,
  17668. },
  17669. ];
  17670. this.ajax
  17671. .post(this.$store.state.api + "addCourseWorks", params)
  17672. .then((res) => {
  17673. this.$message({
  17674. message: "提交成功",
  17675. type: "success",
  17676. });
  17677. this.dialogVisibleTableTeacher = false;
  17678. // this.selectAnswer = {};
  17679. this.selectSWorks();
  17680. this.selectStudent();
  17681. })
  17682. .catch((err) => {
  17683. this.$message.error("提交失败");
  17684. console.error(err);
  17685. });
  17686. },
  17687. returnWordText() {
  17688. this.$confirm("确定还原此模板吗?", "提示", {
  17689. confirmButtonText: "确定",
  17690. cancelButtonText: "取消",
  17691. type: "warning",
  17692. })
  17693. .then(() => {
  17694. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17695. })
  17696. .catch(() => {});
  17697. },
  17698. addWordWorks() {
  17699. let params = [
  17700. {
  17701. uid: this.userid,
  17702. cid: this.id,
  17703. stage: this.courseType,
  17704. task: this.taskCount,
  17705. tool: this.toolindex,
  17706. content: JSON.stringify(this.wordJson),
  17707. type: 13,
  17708. atool: 52,
  17709. },
  17710. ];
  17711. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17712. this.homeWorkLoading = true
  17713. this.ajax
  17714. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17715. .then((res) => {
  17716. this.$message({
  17717. message: "提交成功",
  17718. type: "success",
  17719. });
  17720. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17721. setTimeout(() => {
  17722. this.homeWorkLoading = false
  17723. }, 500);
  17724. this.dialogVisibleWord = false;
  17725. // this.selectAnswer = {};
  17726. this.selectSWorks();
  17727. this.selectStudent();
  17728. })
  17729. .catch((err) => {
  17730. this.$message.error("提交失败");
  17731. console.error(err);
  17732. setTimeout(() => {
  17733. this.homeWorkLoading = false
  17734. }, 500);
  17735. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17736. });
  17737. },
  17738. addWordWorksTeacher() {
  17739. let params = [
  17740. {
  17741. uid: this.sStudent.userid,
  17742. cid: this.id,
  17743. stage: this.courseType,
  17744. task: this.taskCount,
  17745. tool: this.toolindex,
  17746. content: JSON.stringify(this.wordJson),
  17747. type: 13,
  17748. atool: 52,
  17749. },
  17750. ];
  17751. this.ajax
  17752. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17753. .then((res) => {
  17754. this.$message({
  17755. message: "提交成功",
  17756. type: "success",
  17757. });
  17758. this.dialogVisibleWordTeacher = false;
  17759. // this.selectAnswer = {};
  17760. this.selectSWorks();
  17761. this.selectStudent();
  17762. })
  17763. .catch((err) => {
  17764. this.$message.error("提交失败");
  17765. console.error(err);
  17766. });
  17767. },
  17768. addCourseWorksCopy(i) {
  17769. let arr = this.workStudent[this.toolindex].filter(e => {
  17770. return (e.userid = this.userid);
  17771. });
  17772. if (arr.length > 0) {
  17773. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17774. confirmButtonText: "确定",
  17775. cancelButtonText: "取消",
  17776. type: "warning"
  17777. })
  17778. .then(() => {
  17779. this.addCourseWorks(i);
  17780. })
  17781. .catch(() => {});
  17782. } else {
  17783. this.addCourseWorks(i);
  17784. }
  17785. },
  17786. addCourseWorks(i) {
  17787. var typesql;
  17788. if (this.fileType === 0) {
  17789. typesql = 1;
  17790. } else if (this.fileType === 1) {
  17791. typesql = 4;
  17792. } else if (this.fileType === 2) {
  17793. typesql = 5;
  17794. } else if (this.fileType === 3) {
  17795. typesql = 12;
  17796. }
  17797. if (!this.studyJuri[0].cover[0].url) {
  17798. this.$message.error("请上传文件");
  17799. return;
  17800. }
  17801. let params = [
  17802. {
  17803. uid: this.userid,
  17804. cid: this.id,
  17805. stage: this.courseType,
  17806. task: i,
  17807. tool: this.toolindex,
  17808. content: this.studyJuri[0].cover[0].url,
  17809. type: typesql,
  17810. },
  17811. ];
  17812. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17813. this.homeWorkLoading = true
  17814. this.ajax
  17815. .post(this.$store.state.api + "addCourseWorksR", params)
  17816. .then((res) => {
  17817. this.$message({
  17818. message: "提交成功",
  17819. type: "success",
  17820. });
  17821. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17822. setTimeout(() => {
  17823. this.homeWorkLoading = false
  17824. }, 500);
  17825. this.studyJuri[0].cover = [];
  17826. this.dialogVisible = false;
  17827. this.getCourseDetail(2);
  17828. })
  17829. .catch((err) => {
  17830. this.$message.error("提交失败");
  17831. console.error(err);
  17832. setTimeout(() => {
  17833. this.homeWorkLoading = false
  17834. }, 500);
  17835. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17836. });
  17837. },
  17838. addCourseWorksPl(i) {
  17839. let _files = this.plworkFile;
  17840. var c = 1;
  17841. for (var k = 0; k < _files.length; k++) {
  17842. if (!_files[k].username) {
  17843. c = 2;
  17844. }
  17845. }
  17846. if (c == 2) {
  17847. this.$message.error("请填写学生姓名");
  17848. return;
  17849. }
  17850. let params = [
  17851. {
  17852. ateacher: this.userid,
  17853. cid: this.id,
  17854. stage: this.courseType,
  17855. task: i,
  17856. tool: this.toolindex,
  17857. content: JSON.stringify(_files),
  17858. },
  17859. ];
  17860. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17861. this.homeWorkLoading = true
  17862. this.ajax
  17863. .post(this.$store.state.api + "addCourseWorksPl", params)
  17864. .then((res) => {
  17865. this.$message({
  17866. message: "提交成功",
  17867. type: "success",
  17868. });
  17869. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17870. setTimeout(() => {
  17871. this.homeWorkLoading = false
  17872. }, 500);
  17873. this.plworkFile = [];
  17874. this.dialogVisiblePl = false;
  17875. this.getCourseDetail(2);
  17876. })
  17877. .catch((err) => {
  17878. this.$message.error("提交失败");
  17879. console.error(err);
  17880. setTimeout(() => {
  17881. this.homeWorkLoading = false
  17882. }, 500);
  17883. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17884. });
  17885. },
  17886. addCourseWorks2(i) {
  17887. var typesql;
  17888. if (this.fileType === 0) {
  17889. typesql = 0;
  17890. } else if (this.fileType === 1) {
  17891. typesql = 1;
  17892. } else if (this.fileType === 2) {
  17893. typesql = 3;
  17894. } else if (this.fileType === 3) {
  17895. typesql = 12;
  17896. }
  17897. if (!this.studyJuri[0].cover[0].url) {
  17898. this.$message.error("请上传文件");
  17899. return;
  17900. }
  17901. let params = [
  17902. {
  17903. uid: this.userid,
  17904. cid: this.id,
  17905. stage: this.courseType,
  17906. task: i,
  17907. tool: this.toolindex,
  17908. content: JSON.stringify({
  17909. type: typesql,
  17910. groupIndex: this.groupIndex,
  17911. url: this.studyJuri[0].cover[0].url,
  17912. }),
  17913. type: 11,
  17914. atool: 49,
  17915. text: "",
  17916. },
  17917. ];
  17918. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17919. this.homeWorkLoading = true
  17920. this.ajax
  17921. .post(this.$store.state.api + "addCourseWorks5", params)
  17922. .then((res) => {
  17923. this.$message({
  17924. message: "提交成功",
  17925. type: "success",
  17926. });
  17927. setTimeout(() => {
  17928. this.homeWorkLoading = false
  17929. }, 500);
  17930. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17931. type: typesql,
  17932. groupIndex: this.groupIndex,
  17933. url: this.studyJuri[0].cover[0].url,
  17934. }),type: "course_tool_sub" }, "success")
  17935. this.studyJuri[0].cover = [];
  17936. this.dialogVisibleGroupWork = false;
  17937. this.getCourseDetail(2);
  17938. })
  17939. .catch((err) => {
  17940. this.$message.error("提交失败");
  17941. console.error(err);
  17942. setTimeout(() => {
  17943. this.homeWorkLoading = false
  17944. }, 500);
  17945. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17946. type: typesql,
  17947. groupIndex: this.groupIndex,
  17948. url: this.studyJuri[0].cover[0].url,
  17949. }),type: "course_tool_sub" }, err)
  17950. });
  17951. },
  17952. addEnglishWork() {
  17953. this.myAnList = this.$refs['engJson'].myAnswerList;
  17954. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17955. this.$message.error("请输入作文标题和正文!");
  17956. return;
  17957. }
  17958. let params = [
  17959. {
  17960. uid: this.userid,
  17961. cid: this.id,
  17962. stage: this.courseType,
  17963. task: this.taskCount,
  17964. tool: this.englishToolIndex,
  17965. content: JSON.stringify(this.myAnList),
  17966. type: 16,
  17967. atool: 69,
  17968. text: "",
  17969. },
  17970. ];
  17971. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17972. this.homeWorkLoading = true
  17973. this.ajax
  17974. .post(this.$store.state.api + "addCourseWorks5", params)
  17975. .then((res) => {
  17976. this.$message({
  17977. message: "提交成功",
  17978. type: "success",
  17979. });
  17980. setTimeout(() => {
  17981. this.homeWorkLoading = false
  17982. }, 500);
  17983. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17984. data: JSON.stringify(this.myAnList),
  17985. type: "course_tool_sub" }, "success")
  17986. this.myAnList = {};
  17987. this.englishList = {};
  17988. this.englishToolIndex = 0;
  17989. this.engDialogVisible = false;
  17990. this.selectSWorks();
  17991. this.selectStudent();
  17992. })
  17993. .catch((err) => {
  17994. this.$message.error("提交失败");
  17995. console.error(err);
  17996. setTimeout(() => {
  17997. this.homeWorkLoading = false
  17998. }, 500);
  17999. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  18000. data: JSON.stringify(this.myAnList),
  18001. type: "course_tool_sub" }, err)
  18002. });
  18003. },
  18004. addCourseWorksGong(i, data, tool) {
  18005. let params = [
  18006. {
  18007. uid: this.userid,
  18008. cid: this.id,
  18009. stage: this.courseType,
  18010. task: this.taskCount,
  18011. tool: i,
  18012. content: data,
  18013. type: 12,
  18014. atool: tool,
  18015. text: "",
  18016. },
  18017. ];
  18018. this.ajax
  18019. .post(this.$store.state.api + "addCourseWorks5", params)
  18020. .then((res) => {
  18021. this.$message({
  18022. message: "提交成功",
  18023. type: "success",
  18024. });
  18025. this.studyJuri[0].cover = [];
  18026. this.selectSWorks();
  18027. this.selectStudent();
  18028. })
  18029. .catch((err) => {
  18030. this.$message.error("提交失败");
  18031. console.error(err);
  18032. });
  18033. },
  18034. addCourseWorksGongTeacher(i, data, tool) {
  18035. let params = [
  18036. {
  18037. uid: this.sStudent.userid,
  18038. cid: this.id,
  18039. stage: this.courseType,
  18040. task: this.taskCount,
  18041. tool: i,
  18042. content: data,
  18043. type: 12,
  18044. atool: tool,
  18045. text: "",
  18046. },
  18047. ];
  18048. this.ajax
  18049. .post(this.$store.state.api + "addCourseWorks5", params)
  18050. .then((res) => {
  18051. this.$message({
  18052. message: "提交成功",
  18053. type: "success",
  18054. });
  18055. this.studyJuri[0].cover = [];
  18056. this.dialogVisibleWorks = false;
  18057. this.selectSWorks();
  18058. this.selectStudent();
  18059. })
  18060. .catch((err) => {
  18061. this.$message.error("提交失败");
  18062. console.error(err);
  18063. });
  18064. },
  18065. addCourseWorksGongPl(i, data, tool, type) {
  18066. let params = [
  18067. {
  18068. uid: this.sStudent.userid,
  18069. cid: this.id,
  18070. stage: this.courseType,
  18071. task: this.taskCount,
  18072. tool: i,
  18073. content: data,
  18074. type: type,
  18075. atool: tool,
  18076. text: "",
  18077. },
  18078. ];
  18079. this.ajax
  18080. .post(this.$store.state.api + "addCourseWorks5", params)
  18081. .then((res) => {
  18082. this.$message({
  18083. message: "提交成功",
  18084. type: "success",
  18085. });
  18086. this.studyJuri[0].cover = [];
  18087. this.dialogVisibleWorks = false;
  18088. this.selectSWorks();
  18089. this.selectStudent();
  18090. })
  18091. .catch((err) => {
  18092. this.$message.error("提交失败");
  18093. console.error(err);
  18094. });
  18095. },
  18096. addCourseWorksTeacher(i) {
  18097. var typesql;
  18098. if (this.sTool == 32) {
  18099. this.addCourseWorksGongTeacher(
  18100. this.toolindex,
  18101. this.studyJuri[0].cover[0].url,
  18102. this.sTool
  18103. );
  18104. return;
  18105. }
  18106. if (this.fileType === 0) {
  18107. typesql = 1;
  18108. } else if (this.fileType === 1) {
  18109. typesql = 4;
  18110. } else if (this.fileType === 2) {
  18111. typesql = 5;
  18112. } else if (this.fileType === 3) {
  18113. typesql = 12;
  18114. }
  18115. if (this.sTool == 50) {
  18116. this.addCourseWorksGongPl(
  18117. this.toolindex,
  18118. this.studyJuri[0].cover[0].url,
  18119. this.sTool,
  18120. typesql
  18121. );
  18122. return;
  18123. }
  18124. if (!this.studyJuri[0].cover[0].url) {
  18125. this.$message.error("请上传文件");
  18126. return;
  18127. }
  18128. let params = [
  18129. {
  18130. uid: this.sStudent.userid,
  18131. cid: this.id,
  18132. stage: this.courseType,
  18133. task: i,
  18134. tool: this.toolindex,
  18135. content: this.studyJuri[0].cover[0].url,
  18136. type: typesql,
  18137. ateacher: this.userid,
  18138. },
  18139. ];
  18140. this.ajax
  18141. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18142. .then((res) => {
  18143. this.$message({
  18144. message: "提交成功",
  18145. type: "success",
  18146. });
  18147. this.studyJuri[0].cover = [];
  18148. this.dialogVisibleWorks = false;
  18149. this.getCourseDetail(2);
  18150. })
  18151. .catch((err) => {
  18152. this.$message.error("提交失败");
  18153. console.error(err);
  18154. });
  18155. },
  18156. selectUploadStudent(type) {
  18157. const loading = this.$loading.service({
  18158. background: "rgba(255, 255, 255, 0.7)",
  18159. target: document.body,
  18160. });
  18161. let params = {
  18162. cid: this.uploadCid,
  18163. oid: this.oid,
  18164. cn: "",
  18165. };
  18166. this.ajax
  18167. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18168. .then((res) => {
  18169. loading.close();
  18170. var studentK = [];
  18171. if (this.isWorksS[this.toolindex].length > 0) {
  18172. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18173. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18174. }
  18175. studentK = studentK.join(",");
  18176. }
  18177. this.uploadStudentJuri = res.data[0].filter((el) => {
  18178. return studentK.indexOf(el.userid) == -1;
  18179. });
  18180. if (this.worksSName && this.worksSid) {
  18181. this.uploadStudentJuri.push({
  18182. userid: this.worksSid,
  18183. name: this.worksSName,
  18184. });
  18185. }
  18186. if (type == 1) {
  18187. this.plworkFile = [];
  18188. this.dialogVisibleSname = true;
  18189. } else if (type == 2) {
  18190. this.dialogVisiblePl = true;
  18191. }
  18192. })
  18193. .catch((err) => {
  18194. loading.close();
  18195. console.error(err);
  18196. });
  18197. },
  18198. selectPickStudent() {
  18199. const loading = this.$loading.service({
  18200. background: "rgba(255, 255, 255, 0.7)",
  18201. target: document.body,
  18202. });
  18203. let params = {
  18204. cid: this.uploadCid,
  18205. oid: this.oid,
  18206. cn: "",
  18207. };
  18208. this.ajax
  18209. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18210. .then((res) => {
  18211. loading.close();
  18212. this.uploadStudentJuri = res.data[0];
  18213. this.dialogVisiblePickPeople = true;
  18214. })
  18215. .catch((err) => {
  18216. loading.close();
  18217. console.error(err);
  18218. });
  18219. },
  18220. arrayToArray(arrayo, arrayt) {
  18221. let array1 = arrayo;
  18222. let array2 = arrayt;
  18223. let commonElements = [];
  18224. for (let i = 0; i < array1.length; i++) {
  18225. for (let j = 0; j < array2.length; j++) {
  18226. if (array1[i] === array2[j]) {
  18227. commonElements.push(array1[i]);
  18228. }
  18229. }
  18230. }
  18231. return commonElements;
  18232. },
  18233. selectWorksStudent() {
  18234. let params = {
  18235. oid: this.oid,
  18236. cid: this.courseDetail.juri,
  18237. };
  18238. this.ajax
  18239. .get(this.$store.state.api + "selectWorksStudent", params)
  18240. .then((res) => {
  18241. var a = res.data[0];
  18242. for (var i = 0; i < this.isWorksS.length; i++) {
  18243. this.noWorksS[i] = [];
  18244. var studentK = [];
  18245. if (this.isWorksS[i].length > 0) {
  18246. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18247. studentK.push(this.isWorksS[i][z].uid);
  18248. }
  18249. studentK = studentK.join(",");
  18250. for (var j = 0; j < a.length; j++) {
  18251. if (studentK.indexOf(a[j].userid) == -1) {
  18252. if (this.tcid) {
  18253. // a[j].classid.indexOf(this.tcid) != -1
  18254. if (
  18255. this.arrayToArray(
  18256. a[j].classid.split(","),
  18257. this.tcid.split(",")
  18258. ).length
  18259. ) {
  18260. this.noWorksS[i].push({
  18261. student: a[j].name,
  18262. userid: a[j].userid,
  18263. });
  18264. }
  18265. } else {
  18266. this.noWorksS[i].push({
  18267. student: a[j].name,
  18268. userid: a[j].userid,
  18269. });
  18270. }
  18271. }
  18272. }
  18273. } else {
  18274. for (var k = 0; k < a.length; k++) {
  18275. if (this.tcid) {
  18276. if (
  18277. this.arrayToArray(
  18278. a[k].classid.split(","),
  18279. this.tcid.split(",")
  18280. ).length
  18281. ) {
  18282. this.noWorksS[i].push({
  18283. student: a[k].name,
  18284. userid: a[k].userid,
  18285. });
  18286. }
  18287. } else {
  18288. this.noWorksS[i].push({
  18289. student: a[k].name,
  18290. userid: a[k].userid,
  18291. });
  18292. }
  18293. }
  18294. }
  18295. }
  18296. this.$forceUpdate();
  18297. if (
  18298. Object.keys(this.commentDetail).length &&
  18299. Object.keys(this.commentIndexJson).length &&
  18300. !this.dialogVisibleScore && !this.dialogVisibleENScore
  18301. ) {
  18302. let a = 1;
  18303. let c = this.commentIndexJson;
  18304. if (
  18305. this.commentIndexJson.gindex ||
  18306. this.commentIndexJson.gindex === 0
  18307. ) {
  18308. for (
  18309. var i = 0;
  18310. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18311. i++
  18312. ) {
  18313. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18314. groupA: for (var k = 0; k < _el.length; k++) {
  18315. let el = _el[k];
  18316. if (el.wid == this.commentDetail.wid) {
  18317. a = 2;
  18318. this.commentOther(
  18319. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18320. this.commentIndexJson.toolIndex,
  18321. k,
  18322. this.commentIndexJson.gindex
  18323. );
  18324. break groupA;
  18325. }
  18326. }
  18327. }
  18328. if (a === 1) {
  18329. this.commentDetail = [];
  18330. this.commentIndexJson = {};
  18331. this.commentDialogVisible = false;
  18332. this.$message("此作业已被删除");
  18333. }
  18334. } else {
  18335. if (this.isGroup && this.commentIndexJson.gid) {
  18336. groupA: for (
  18337. var i = 0;
  18338. i < this.courseGroup.group.length;
  18339. i++
  18340. ) {
  18341. let _group = this.courseGroup.group[i];
  18342. if (_group.id == this.commentIndexJson.gid) {
  18343. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18344. for (var k = 0; k < _el2.length; k++) {
  18345. let el2 = _el2[k];
  18346. if (el2.wid == this.commentDetail.wid) {
  18347. a = 2;
  18348. this.commentOther(
  18349. _el2[k],
  18350. this.commentIndexJson.toolIndex,
  18351. k,
  18352. null,
  18353. this.commentIndexJson.gid
  18354. );
  18355. break groupA;
  18356. }
  18357. }
  18358. }
  18359. }
  18360. }
  18361. if (a == 1) {
  18362. for (
  18363. var i = 0;
  18364. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18365. i++
  18366. ) {
  18367. let el =
  18368. this.worksStudent[this.commentIndexJson.toolIndex][i];
  18369. if (el.wid == this.commentDetail.wid) {
  18370. a = 2;
  18371. this.commentOther(
  18372. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18373. this.commentIndexJson.toolIndex,
  18374. i
  18375. );
  18376. break;
  18377. }
  18378. }
  18379. }
  18380. if (a === 1) {
  18381. this.commentDetail = [];
  18382. this.commentIndexJson = {};
  18383. this.commentDialogVisible = false;
  18384. this.$message("此作业已被删除");
  18385. }
  18386. }
  18387. }
  18388. })
  18389. .catch((err) => {
  18390. console.error(err);
  18391. });
  18392. },
  18393. selectStudent() {
  18394. if(this.selectStudentLoading) return
  18395. this.selectStudentLoading = true
  18396. //学生查看自己作业
  18397. let params = {
  18398. uid: this.userid,
  18399. cid: this.id,
  18400. s: this.courseType,
  18401. t: this.taskCount,
  18402. };
  18403. this.ajax
  18404. .get(this.$store.state.api + "selectStudentWorks", params)
  18405. .then((res) => {
  18406. var a =
  18407. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18408. this.taskCount
  18409. ].toolChoose;
  18410. var b = res.data[0];
  18411. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18412. var y = [
  18413. "AVI",
  18414. "NAVI",
  18415. "MPEG",
  18416. "ASF",
  18417. "MOV",
  18418. "WMV",
  18419. "3GP",
  18420. "RM",
  18421. "RMVB",
  18422. "FLV",
  18423. "F4V",
  18424. "H.264",
  18425. "H.265",
  18426. "REAL VIDEO",
  18427. "MKV",
  18428. "WebM",
  18429. "HDDVD",
  18430. "MP4",
  18431. "MPG",
  18432. "M4V",
  18433. "MGV",
  18434. "OGV",
  18435. "QTM",
  18436. "STR",
  18437. "AMC",
  18438. "DVX",
  18439. "EVO",
  18440. "DAT",
  18441. "OGG",
  18442. "OGM",
  18443. ];
  18444. for (var i = 0; i < a.length; i++) {
  18445. this.workStudent[i] = [];
  18446. for (var j = 0; j < b.length; j++) {
  18447. if (i == b[j].tool) {
  18448. if (
  18449. (b[j].type == 1 ||
  18450. b[j].type == 4 ||
  18451. b[j].type == 5 ||
  18452. b[j].type == 6 ||
  18453. b[j].type == 12 ||
  18454. b[j].type == 7) &&
  18455. a[i].tool[0] != 15 &&
  18456. a[i].tool[0] != 4 &&
  18457. a[i].tool[0] != 45 &&
  18458. a[i].tool[0] != 50 &&
  18459. a[i].tool[0] != 32 &&
  18460. a[i].tool[0] != 57 &&
  18461. a[i].tool[0] != 52 &&
  18462. a[i].tool[0] != 69
  18463. ) {
  18464. if (
  18465. c.indexOf(
  18466. b[j].content
  18467. .split(".")
  18468. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18469. ) != -1 &&
  18470. a[i].tool[0] == 16 &&
  18471. b[j].atool != 50
  18472. ) {
  18473. this.workStudent[i].push({
  18474. works: b[j].content,
  18475. sName: b[j].name,
  18476. score: b[j].score,
  18477. img: b[j].img,
  18478. type: 1,
  18479. time: b[j].time,
  18480. userid: b[j].userid,
  18481. wid: b[j].id,
  18482. });
  18483. } else if (
  18484. y.indexOf(
  18485. b[j].content
  18486. .split(".")
  18487. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18488. ) != -1 &&
  18489. a[i].tool[0] == 16 &&
  18490. b[j].atool != 50
  18491. ) {
  18492. this.workStudent[i].push({
  18493. userid: b[j].userid,
  18494. wid: b[j].id,
  18495. works: b[j].content,
  18496. sName: b[j].name,
  18497. score: b[j].score,
  18498. img: b[j].img,
  18499. type: 3,
  18500. time: b[j].time,
  18501. });
  18502. } else if (b[j].type == 6 && b[j].atool != 50) {
  18503. this.workStudent[i].push({
  18504. userid: b[j].userid,
  18505. wid: b[j].id,
  18506. works: b[j].content,
  18507. sName: b[j].name,
  18508. score: b[j].score,
  18509. img: b[j].img,
  18510. type: 4,
  18511. time: b[j].time,
  18512. });
  18513. } else if (b[j].type == 7 && b[j].atool != 50) {
  18514. this.workStudent[i].push({
  18515. userid: b[j].userid,
  18516. wid: b[j].id,
  18517. works: b[j].content,
  18518. sName: b[j].name,
  18519. score: b[j].score,
  18520. img: b[j].img,
  18521. type: 5,
  18522. time: b[j].time,
  18523. });
  18524. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18525. this.workStudent[i].push({
  18526. works: b[j].content,
  18527. sName: b[j].name,
  18528. score: b[j].score,
  18529. img: b[j].img,
  18530. type: 12,
  18531. time: b[j].time,
  18532. userid: b[j].userid,
  18533. wid: b[j].id,
  18534. });
  18535. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18536. this.workStudent[i].push({
  18537. works: b[j].content,
  18538. sName: b[j].name,
  18539. score: b[j].score,
  18540. img: b[j].img,
  18541. type: 0,
  18542. time: b[j].time,
  18543. userid: b[j].userid,
  18544. wid: b[j].id,
  18545. });
  18546. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18547. this.workStudent[i].push({
  18548. works: b[j].content,
  18549. sName: b[j].name,
  18550. score: b[j].score,
  18551. img: b[j].img,
  18552. type: 0,
  18553. time: b[j].time,
  18554. userid: b[j].userid,
  18555. wid: b[j].id,
  18556. });
  18557. }
  18558. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18559. this.workStudent[i].push({
  18560. works: b[j].content,
  18561. sName: b[j].name,
  18562. score: b[j].score,
  18563. img: b[j].img,
  18564. type: 2,
  18565. time: b[j].time,
  18566. userid: b[j].userid,
  18567. wid: b[j].id,
  18568. });
  18569. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18570. this.workStudent[i].push({
  18571. works: b[j].content,
  18572. sName: b[j].name,
  18573. score: b[j].score,
  18574. img: b[j].img,
  18575. type: 20,
  18576. time: b[j].time,
  18577. userid: b[j].userid,
  18578. wid: b[j].id,
  18579. });
  18580. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18581. //问卷
  18582. this.workStudent[i].push({
  18583. works: b[j].content,
  18584. sName: b[j].name,
  18585. score: b[j].score,
  18586. img: b[j].img,
  18587. type: 2,
  18588. time: b[j].time,
  18589. userid: b[j].userid,
  18590. wid: b[j].id,
  18591. });
  18592. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18593. //选择题
  18594. this.workStudent[i].push({
  18595. works: b[j].content,
  18596. sName: b[j].name,
  18597. score: b[j].score,
  18598. img: b[j].img,
  18599. type: 8,
  18600. time: b[j].time,
  18601. userid: b[j].userid,
  18602. wid: b[j].id,
  18603. });
  18604. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18605. //选择题
  18606. this.workStudent[i].push({
  18607. works: b[j].content,
  18608. sName: b[j].name,
  18609. score: b[j].score,
  18610. img: b[j].img,
  18611. type: 9,
  18612. time: b[j].time,
  18613. userid: b[j].userid,
  18614. wid: b[j].id,
  18615. });
  18616. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18617. //选择题
  18618. this.workStudent[i].push({
  18619. works: b[j].content,
  18620. sName: b[j].name,
  18621. score: b[j].score,
  18622. img: b[j].img,
  18623. type: 10,
  18624. time: b[j].time,
  18625. userid: b[j].userid,
  18626. wid: b[j].id,
  18627. });
  18628. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18629. //选择题
  18630. this.workStudent[i].push({
  18631. works: b[j].content,
  18632. sName: b[j].name,
  18633. score: b[j].score,
  18634. img: b[j].img,
  18635. type: 13,
  18636. time: b[j].time,
  18637. userid: b[j].userid,
  18638. wid: b[j].id,
  18639. });
  18640. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18641. //选择题
  18642. this.workStudent[i].push({
  18643. works: b[j].content,
  18644. sName: b[j].name,
  18645. score: b[j].score,
  18646. img: b[j].img,
  18647. type: 12,
  18648. time: b[j].time,
  18649. userid: b[j].userid,
  18650. wid: b[j].id,
  18651. });
  18652. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18653. //选择题
  18654. this.workStudent[i].push({
  18655. works: b[j].content,
  18656. sName: b[j].name,
  18657. score: b[j].score,
  18658. img: b[j].img,
  18659. type: 12,
  18660. time: b[j].time,
  18661. userid: b[j].userid,
  18662. wid: b[j].id,
  18663. });
  18664. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  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: 15,
  18672. time: b[j].time,
  18673. userid: b[j].userid,
  18674. wid: b[j].id,
  18675. });
  18676. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  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: 16,
  18684. time: b[j].time,
  18685. userid: b[j].userid,
  18686. wid: b[j].id,
  18687. aiCode: b[j].aiCode,
  18688. teacherCode: b[j].teacherCode
  18689. });
  18690. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18691. //英语口语
  18692. this.workStudent[i].push({
  18693. works: b[j].content,
  18694. sName: b[j].name,
  18695. score: b[j].score,
  18696. img: b[j].img,
  18697. type: 17,
  18698. time: b[j].time,
  18699. userid: b[j].userid,
  18700. wid: b[j].id,
  18701. });
  18702. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18703. //交互视频
  18704. this.workStudent[i].push({
  18705. works: b[j].content,
  18706. sName: b[j].name,
  18707. score: b[j].score,
  18708. img: b[j].img,
  18709. type: 14,
  18710. time: b[j].time,
  18711. userid: b[j].userid,
  18712. wid: b[j].id,
  18713. });
  18714. }
  18715. }
  18716. }
  18717. }
  18718. this.selectStudentLoading = false
  18719. })
  18720. .catch((err) => {
  18721. this.selectStudentLoading = false
  18722. console.error(err);
  18723. });
  18724. },
  18725. openVideo(w) {
  18726. this.videoDetail = {};
  18727. this.playerOptions1.sources[0].src = w.works;
  18728. this.videoDetail = this.playerOptions1;
  18729. this.videoVisible = true;
  18730. },
  18731. isLikes(wid, uid, t, c, isLikes,sName) {
  18732. if (isLikes == false) {
  18733. let params = [
  18734. {
  18735. wid: wid,
  18736. lid: uid,
  18737. t: t,
  18738. c: c,
  18739. },
  18740. ];
  18741. this.ajax
  18742. .post(this.$store.state.api + "insertComment", params)
  18743. .then((res) => {
  18744. this.$message({
  18745. message: "点赞成功",
  18746. type: "success",
  18747. });
  18748. this.selectSWorks();
  18749. this.selectStudent();
  18750. if(this.tType!=2){
  18751. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18752. }
  18753. })
  18754. .catch((err) => {
  18755. this.$message.error("点赞失败");
  18756. console.error(err);
  18757. });
  18758. } else {
  18759. let params = {
  18760. wid: wid,
  18761. lid: uid,
  18762. type: t,
  18763. };
  18764. this.ajax
  18765. .get(this.$store.state.api + "deleteComment", params)
  18766. .then((res) => {
  18767. this.$message({
  18768. message: "取消点赞成功",
  18769. type: "success",
  18770. });
  18771. this.selectSWorks();
  18772. this.selectStudent();
  18773. })
  18774. .catch((err) => {
  18775. console.error(err);
  18776. });
  18777. }
  18778. },
  18779. deleteComment(wid) {
  18780. this.$confirm("确定删除此评论吗?", "提示", {
  18781. confirmButtonText: "确定",
  18782. cancelButtonText: "取消",
  18783. type: "warning",
  18784. })
  18785. .then(() => {
  18786. let params = {
  18787. id: wid,
  18788. };
  18789. this.ajax
  18790. .get(this.$store.state.api + "deleteComment2", params)
  18791. .then((res) => {
  18792. this.$message({
  18793. message: "删除评论成功",
  18794. type: "success",
  18795. });
  18796. this.selectSWorks();
  18797. this.selectStudent();
  18798. })
  18799. .catch((err) => {
  18800. console.error(err);
  18801. });
  18802. })
  18803. .catch(() => {});
  18804. },
  18805. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18806. this.commentIndexJson = {
  18807. toolIndex: toolIndex,
  18808. wIndex: wIndex,
  18809. gindex: gindex,
  18810. gid: gid,
  18811. };
  18812. this.commentDetail = [];
  18813. this.commentDialogVisible = true;
  18814. this.commentDetail = w;
  18815. if (w.works && w.type == 1) {
  18816. // this.pptImgUrl = "";
  18817. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18818. if (
  18819. a.indexOf(
  18820. w.works
  18821. .split(".")
  18822. [w.works.split(".").length - 1].toLocaleUpperCase()
  18823. ) != -1
  18824. ) {
  18825. let _uuurl = await this.checkLink(w.works);
  18826. console.log(_uuurl)
  18827. this.pptImgUrl =
  18828. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18829. this.showPDF = false;
  18830. } else if (
  18831. w.works
  18832. .split(".")
  18833. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18834. ) {
  18835. this.pptImgUrl = w.works;
  18836. this.showPDF = true;
  18837. }
  18838. } else if (w.works && w.type == 3) {
  18839. this.videoDetail = {};
  18840. this.playerOptions1.sources[0].src = w.works;
  18841. this.videoDetail = this.playerOptions1;
  18842. // this.videoVisible = true;
  18843. } else if (w.works && w.type == 4) {
  18844. this.eScore = JSON.parse(w.works);
  18845. this.rateJson =
  18846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18847. this.taskCount
  18848. ].toolChoose[toolIndex].rateJson;
  18849. } else if (w.works && w.type == 10) {
  18850. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18851. } else if (w.works && w.type == 13) {
  18852. this.wordJson =
  18853. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18854. this.taskCount
  18855. ].toolChoose[toolIndex].wordJson;
  18856. }
  18857. },
  18858. async openScore(w, index) {
  18859. this.wScore = 0;
  18860. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18861. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18862. this.commentDetail = [];
  18863. if(w.type == 17){
  18864. this.dialogVisibleENScore = true;
  18865. }else{
  18866. this.dialogVisibleScore = true;
  18867. }
  18868. this.commentDetail = w;
  18869. if (w.works && w.type == 1) {
  18870. this.pptImgUrl = "";
  18871. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18872. if (
  18873. a.indexOf(
  18874. w.works
  18875. .split(".")
  18876. [w.works.split(".").length - 1].toLocaleUpperCase()
  18877. ) != -1
  18878. ) {
  18879. let _uuurl = await this.checkLink(w.works);
  18880. console.log(_uuurl)
  18881. this.pptImgUrl =
  18882. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18883. this.showPDF = false;
  18884. } else if (
  18885. w.works
  18886. .split(".")
  18887. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18888. ) {
  18889. this.pptImgUrl = w.works;
  18890. this.showPDF = true;
  18891. }
  18892. } else if (w.works && w.type == 3) {
  18893. this.videoDetail = {};
  18894. this.playerOptions1.sources[0].src = w.works;
  18895. this.videoDetail = this.playerOptions1;
  18896. }else if(w.type == 17){
  18897. let englishVoiceJson = {}
  18898. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18899. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18900. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18901. .toolChoose[index].englishVoiceJson
  18902. : {};
  18903. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18904. }
  18905. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18906. },
  18907. addComment(wid, uid, t,detail) {
  18908. if (this.commentText == "") {
  18909. this.$message.error("请输入评论");
  18910. return;
  18911. }
  18912. let params2 = [
  18913. {
  18914. wid: wid,
  18915. lid: uid,
  18916. t: t,
  18917. },
  18918. ];
  18919. this.ajax
  18920. .post(this.$store.state.api + "getComment", params2)
  18921. .then((res) => {
  18922. if (res.data[0].length > 0) {
  18923. this.$message.error("一个作业只能评论一条");
  18924. } else {
  18925. let params = [
  18926. {
  18927. wid: wid,
  18928. lid: uid,
  18929. t: t,
  18930. c: this.commentText,
  18931. },
  18932. ];
  18933. this.ajax
  18934. .post(this.$store.state.api + "insertComment", params)
  18935. .then((res) => {
  18936. this.$message({
  18937. message: "评论成功",
  18938. type: "success",
  18939. });
  18940. this.commentText = "";
  18941. this.selectSWorks();
  18942. this.selectStudent();
  18943. if(this.tType!=2){
  18944. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18945. }
  18946. })
  18947. .catch((err) => {
  18948. this.$message.error("评论失败");
  18949. console.error(err);
  18950. });
  18951. }
  18952. })
  18953. .catch((err) => {
  18954. // this.$message.error("评论失败");
  18955. console.error(err);
  18956. });
  18957. },
  18958. scoreWork(wid,sName) {
  18959. if (this.wScore == 0) {
  18960. this.$message.error("请评分");
  18961. return;
  18962. }
  18963. let params = [
  18964. {
  18965. wid: wid,
  18966. score: JSON.stringify({
  18967. wScore: this.wScore,
  18968. detail: this.scoreDetail,
  18969. }),
  18970. },
  18971. ];
  18972. this.ajax
  18973. .post(this.$store.state.api + "scoreWork", params)
  18974. .then((res) => {
  18975. this.$message({
  18976. message: "评分成功",
  18977. type: "success",
  18978. });
  18979. this.wScore = 0;
  18980. this.scoreDetail = "";
  18981. this.dialogVisibleScore = false;
  18982. this.selectSWorks();
  18983. this.selectStudent();
  18984. if(this.tType!=2){
  18985. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18986. }
  18987. })
  18988. .catch((err) => {
  18989. this.$message.error("评分失败");
  18990. console.error(err);
  18991. });
  18992. },
  18993. openXz(w, i) {
  18994. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18995. .taskJson[this.taskCount].toolChoose[i].selectJson
  18996. ? JSON.parse(
  18997. JSON.stringify(
  18998. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18999. this.taskCount
  19000. ].toolChoose[i].selectJson
  19001. )
  19002. )
  19003. : { url: "", select: [], answer: [] };
  19004. var a = w.works.split(",");
  19005. for (var k = 0; k < a.length; k++) {
  19006. a[k] = parseInt(a[k]);
  19007. }
  19008. this.selectAnswer = { answer: a, stu: w.sName };
  19009. this.isSelect = true;
  19010. this.dialogVisibleSelect = true;
  19011. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  19012. },
  19013. openSen(w, i) {
  19014. this.sentenceList1 = JSON.parse(w.works);
  19015. this.sentenceList1.stuName = w.sName;
  19016. this.dialogVisibleSentence1 = true;
  19017. },
  19018. openPj(w, toolindex) {
  19019. this.isStar = true;
  19020. this.eScore = JSON.parse(w);
  19021. this.rateJson =
  19022. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19023. this.taskCount
  19024. ].toolChoose[toolindex].rateJson;
  19025. this.studentEvalDialogVisible = true;
  19026. },
  19027. openEnglishEva(id,i){
  19028. let params = {
  19029. wid: id
  19030. };
  19031. this.ajax
  19032. .get(this.$store.state.api + "selectEngWork", params)
  19033. .then((res) => {
  19034. this.evaEngJson.message = res.data[0][0];
  19035. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19036. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  19037. .toolChoose[i].englishList;
  19038. this.engEvaDialogVisible = true;
  19039. })
  19040. .catch((err) => {
  19041. console.error(err);
  19042. });
  19043. },
  19044. deleteWorks(id) {
  19045. this.$confirm("确定删除此作业吗?", "提示", {
  19046. confirmButtonText: "确定",
  19047. cancelButtonText: "取消",
  19048. type: "warning",
  19049. })
  19050. .then(() => {
  19051. let params = [
  19052. {
  19053. id: id,
  19054. },
  19055. ];
  19056. this.ajax
  19057. .post(this.$store.state.api + "deleteCourseWork", params)
  19058. .then((res) => {
  19059. this.$message({
  19060. message: "删除成功",
  19061. type: "success",
  19062. });
  19063. this.selectStudent();
  19064. this.selectSWorks();
  19065. this.selectSLook();
  19066. })
  19067. .catch((err) => {
  19068. this.$message.error("网络异常");
  19069. console.error(err);
  19070. });
  19071. })
  19072. .catch(() => {});
  19073. },
  19074. noIsAi() {
  19075. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19076. },
  19077. getLang() {
  19078. let lang = "";
  19079. if (this.languageSetting == 0) {
  19080. lang = "Chinese.";
  19081. } else if (this.languageSetting == 1) {
  19082. lang = "Traditional Chinese.";
  19083. } else if (this.languageSetting == 2) {
  19084. lang = "English.";
  19085. }
  19086. return lang;
  19087. },
  19088. selectSWorks(gindex) {
  19089. if(this.selectSWorksLoading) return
  19090. this.selectSWorksLoading = true
  19091. //教师查看全部作业
  19092. let params = {
  19093. cid: this.id,
  19094. s: this.courseType,
  19095. t: this.taskCount
  19096. };
  19097. this.ajax
  19098. .get(this.$store.state.api + "selectSWorks", params)
  19099. .then(res => {
  19100. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19101. this.taskCount
  19102. ].toolChoose;
  19103. var b = res.data[0];
  19104. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19105. var y = [
  19106. "AVI",
  19107. "NAVI",
  19108. "MPEG",
  19109. "ASF",
  19110. "MOV",
  19111. "WMV",
  19112. "3GP",
  19113. "RM",
  19114. "RMVB",
  19115. "FLV",
  19116. "F4V",
  19117. "H.264",
  19118. "H.265",
  19119. "REAL VIDEO",
  19120. "MKV",
  19121. "WebM",
  19122. "HDDVD",
  19123. "MP4",
  19124. "MPG",
  19125. "M4V",
  19126. "MGV",
  19127. "OGV",
  19128. "QTM",
  19129. "STR",
  19130. "AMC",
  19131. "DVX",
  19132. "EVO",
  19133. "DAT",
  19134. "OGG",
  19135. "OGM"
  19136. ];
  19137. var d = res.data[1];
  19138. var e = res.data[2];
  19139. var f = res.data[3];
  19140. let _worksStudent = [];
  19141. var _worksStudent2 = [];
  19142. for (var i = 0; i < a.length; i++) {
  19143. _worksStudent[i] = [];
  19144. _worksStudent2[i] = [];
  19145. if (
  19146. !this.isCloseList[i] ||
  19147. this.isCloseList[i].isClose == undefined
  19148. ) {
  19149. this.isCloseList[i] = { isClose: 0 };
  19150. }
  19151. this.groupStudent[i] = [];
  19152. this.groupStudentUid[i] = [];
  19153. if (this.isGroup) {
  19154. for (
  19155. var groupI = 0;
  19156. groupI < this.courseGroup.group.length;
  19157. groupI++
  19158. ) {
  19159. this.courseGroup.group[groupI].works[i] = [];
  19160. }
  19161. }
  19162. this.isWorksS[i] = [];
  19163. this.checkJson[i] = [];
  19164. if (a[i].tool[0] == 49) {
  19165. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19166. this.groupStudent[i][gA] = [];
  19167. this.groupStudentUid[i][gA] = [];
  19168. _worksStudent[i][gA] = [];
  19169. _worksStudent2[i][gA] = [];
  19170. this.isCloseList[i][gA] = [];
  19171. for (var g = 0; g < f.length; g++) {
  19172. if (
  19173. f[g].ttype == 2 &&
  19174. this.tcid &&
  19175. this.arrayToArray(
  19176. f[g].classid ? f[g].classid.split(",") : [],
  19177. this.tcid.split(",")
  19178. ).length == 0
  19179. ) {
  19180. continue;
  19181. }
  19182. let _classId = this.arrayToArray(
  19183. this.courseDetail.juri
  19184. ? this.courseDetail.juri.split(",")
  19185. : [],
  19186. this.classId ? this.classId.split(",") : []
  19187. );
  19188. if (
  19189. gA == f[g].group &&
  19190. f[g].tool == i &&
  19191. (this.arrayToArray(
  19192. f[g].classid ? f[g].classid.split(",") : [],
  19193. this.tcid.split(",")
  19194. ).length !== 0 ||
  19195. this.arrayToArray(
  19196. f[g].classid ? f[g].classid.split(",") : [],
  19197. _classId
  19198. ).length !== 0 ||
  19199. (!this.tcid && this.tType == "1") ||
  19200. this.courseDetail.juri === "" ||
  19201. f[g].ttype == 1)
  19202. ) {
  19203. this.groupStudent[i][gA].push(f[g]);
  19204. this.groupStudentUid[i][gA].push(f[g].userid);
  19205. }
  19206. }
  19207. }
  19208. this.$forceUpdate();
  19209. }
  19210. for (var j = 0; j < b.length; j++) {
  19211. if (
  19212. b[j].ttype == 2 &&
  19213. this.tcid &&
  19214. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19215. .length == 0
  19216. ) {
  19217. continue;
  19218. }
  19219. var likesCount = 0;
  19220. var commentCount = 0;
  19221. var isLikes = false;
  19222. var commentJson = [];
  19223. var likeJson = [];
  19224. var data = b[j];
  19225. if (i == b[j].tool) {
  19226. if (data.type == 2 && a[i].tool[0] == 4) {
  19227. // if(JSON.parse(data.content)[0].anwer){
  19228. var checkL =
  19229. JSON.parse(data.content)[0].anwer instanceof Array
  19230. ? JSON.parse(data.content)[0].anwer
  19231. : JSON.parse(data.content)[0].anwer.split(",");
  19232. for (var z = 0; z < checkL.length; z++) {
  19233. if (!this.checkJson[i][z]) {
  19234. this.checkJson[i].push({
  19235. checkCount: [],
  19236. checkPerson: [],
  19237. rightPerson: []
  19238. });
  19239. }
  19240. if (!this.checkJson[i][z].checkCount.length) {
  19241. this.checkJson[i][z].checkCount = [];
  19242. let _askItemCount = JSON.parse(data.content)[0].askJson
  19243. .askJson[z].askItem;
  19244. for (var aic = 0; aic < _askItemCount; aic++) {
  19245. this.checkJson[i][z].checkCount.push(0);
  19246. }
  19247. }
  19248. if (checkL[z] instanceof Array) {
  19249. if (
  19250. JSON.parse(data.content)[0]
  19251. .anwer.sort()
  19252. .join(",") == checkL[z].sort().join(",")
  19253. ) {
  19254. this.checkJson[i][z].rightPerson.push(data.name);
  19255. }
  19256. for (var q = 0; q < checkL[z].length; q++) {
  19257. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19258. ? this.checkJson[i][z].checkPerson[
  19259. parseInt(checkL[z][q])
  19260. ].push(data.name)
  19261. : (this.checkJson[i][z].checkPerson[
  19262. parseInt(checkL[z][q])
  19263. ] = [data.name]);
  19264. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19265. ? this.checkJson[i][z].checkCount[
  19266. parseInt(checkL[z][q])
  19267. ]++
  19268. : (this.checkJson[i][z].checkCount[
  19269. parseInt(checkL[z][q])
  19270. ] = 1);
  19271. }
  19272. } else {
  19273. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19274. this.checkJson[i][z].rightPerson.push(data.name);
  19275. }
  19276. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19277. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19278. ? this.checkJson[i][z].checkPerson[
  19279. parseInt(checkL[z])
  19280. ].push(data.name)
  19281. : (this.checkJson[i][z].checkPerson[
  19282. parseInt(checkL[z])
  19283. ] = [data.name]);
  19284. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19285. ? this.checkJson[i][z].checkCount[
  19286. parseInt(checkL[z])
  19287. ]++
  19288. : (this.checkJson[i][z].checkCount[
  19289. parseInt(checkL[z])
  19290. ] = 1);
  19291. }
  19292. }
  19293. }
  19294. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19295. var checkL = JSON.parse(data.content)[0].anwer;
  19296. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  19297. continue
  19298. }
  19299. console.log('选择题')
  19300. for (var z = 0; z < checkL.length; z++) {
  19301. if (!this.checkJson[i][z]) {
  19302. this.checkJson[i].push({
  19303. checkCount: [],
  19304. checkPerson: [],
  19305. rightPerson: []
  19306. });
  19307. }
  19308. if (!this.checkJson[i][z].checkCount.length) {
  19309. this.checkJson[i][z].checkCount = [];
  19310. let _askItemCount = JSON.parse(data.content)[0].testJson
  19311. .testJson[z].testItem;
  19312. for (var aic = 0; aic < _askItemCount; aic++) {
  19313. this.checkJson[i][z].checkCount.push(0);
  19314. }
  19315. }
  19316. if (checkL[z] instanceof Array) {
  19317. if (
  19318. JSON.parse(data.content)[0]
  19319. .testJson.testJson[z].answer.sort()
  19320. .join(",") == checkL[z].sort().join(",")
  19321. ) {
  19322. this.checkJson[i][z].rightPerson.push(data.name);
  19323. }
  19324. for (var q = 0; q < checkL[z].length; q++) {
  19325. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19326. ? this.checkJson[i][z].checkPerson[
  19327. parseInt(checkL[z][q])
  19328. ].push(data.name)
  19329. : (this.checkJson[i][z].checkPerson[
  19330. parseInt(checkL[z][q])
  19331. ] = [data.name]);
  19332. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19333. ? this.checkJson[i][z].checkCount[
  19334. parseInt(checkL[z][q])
  19335. ]++
  19336. : (this.checkJson[i][z].checkCount[
  19337. parseInt(checkL[z][q])
  19338. ] = 1);
  19339. }
  19340. } else {
  19341. if (
  19342. JSON.parse(data.content)[0].testJson.testJson[z]
  19343. .answer == checkL[z]
  19344. ) {
  19345. this.checkJson[i][z].rightPerson.push(data.name);
  19346. }
  19347. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19348. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19349. ? this.checkJson[i][z].checkPerson[
  19350. parseInt(checkL[z])
  19351. ].push(data.name)
  19352. : (this.checkJson[i][z].checkPerson[
  19353. parseInt(checkL[z])
  19354. ] = [data.name]);
  19355. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19356. ? this.checkJson[i][z].checkCount[
  19357. parseInt(checkL[z])
  19358. ]++
  19359. : (this.checkJson[i][z].checkCount[
  19360. parseInt(checkL[z])
  19361. ] = 1);
  19362. }
  19363. }
  19364. }
  19365. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19366. var checkL = JSON.parse(data.content);
  19367. for (var z = 0; z < checkL.length; z++) {
  19368. if (!this.checkJson[i][z]) {
  19369. this.checkJson[i].push({
  19370. checkCount: [],
  19371. checkPerson: [],
  19372. rightPerson: []
  19373. });
  19374. }
  19375. this.checkJson[i][z].checkPerson.push(data.name);
  19376. if (
  19377. checkL[z].chooseSenList.toString() ==
  19378. checkL[z].rightAnswer.toString()
  19379. ) {
  19380. this.checkJson[i][z].rightPerson.push(data.name);
  19381. }
  19382. }
  19383. }
  19384. for (var k = 0; k < d.length; k++) {
  19385. //点赞
  19386. if (d[k].workId == b[j].id) {
  19387. likesCount++;
  19388. likeJson.push(d[k]);
  19389. if (d[k].likesId == this.userid) {
  19390. isLikes = true;
  19391. }
  19392. }
  19393. }
  19394. for (var l = 0; l < e.length; l++) {
  19395. //评论
  19396. if (e[l].workId == b[j].id) {
  19397. if (e[l].comment != "") {
  19398. commentCount++;
  19399. commentJson.push({
  19400. commentText: e[l].comment,
  19401. commentTime: e[l].commentTime,
  19402. commentPeople: e[l].commentPeople,
  19403. userid: e[l].userid,
  19404. wid: e[l].id
  19405. });
  19406. }
  19407. }
  19408. }
  19409. if (
  19410. (b[j].type == 1 ||
  19411. b[j].type == 4 ||
  19412. b[j].type == 5 ||
  19413. b[j].type == 6 ||
  19414. b[j].type == 12 ||
  19415. b[j].type == 7) &&
  19416. a[i].tool[0] != 15 &&
  19417. a[i].tool[0] != 4 &&
  19418. a[i].tool[0] != 45 &&
  19419. a[i].tool[0] != 50 &&
  19420. a[i].tool[0] != 32 &&
  19421. a[i].tool[0] != 57 &&
  19422. a[i].tool[0] != 52
  19423. ) {
  19424. if (
  19425. c.indexOf(
  19426. b[j].content
  19427. .split(".")
  19428. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19429. ) != -1 &&
  19430. a[i].tool[0] == 16 &&
  19431. b[j].atool != 50
  19432. ) {
  19433. let _works = {
  19434. userid: b[j].userid,
  19435. ateacher: b[j].ateacher,
  19436. wid: b[j].id,
  19437. works: b[j].content,
  19438. sName: b[j].name,
  19439. type: 1,
  19440. ttype: b[j].ttype,
  19441. time: b[j].time,
  19442. score: b[j].score,
  19443. img: b[j].img,
  19444. likesCount: likesCount,
  19445. commentCount: commentCount,
  19446. isLikes: isLikes,
  19447. commentJson: commentJson,
  19448. likeJson: likeJson
  19449. };
  19450. if (this.isGroup) {
  19451. let isGw = 1;
  19452. for (
  19453. var groupI = 0;
  19454. groupI < this.courseGroup.group.length;
  19455. groupI++
  19456. ) {
  19457. let gid = this.courseGroup.group[groupI].id;
  19458. if (
  19459. this.courseGroupStudentUid[gid].indexOf(
  19460. b[j].userid
  19461. ) != -1
  19462. ) {
  19463. isGw = 2;
  19464. this.courseGroup.group[groupI].works[i].push(_works);
  19465. break;
  19466. }
  19467. }
  19468. if (isGw == 1) {
  19469. _worksStudent[i].push(_works);
  19470. }
  19471. } else {
  19472. _worksStudent[i].push(_works);
  19473. }
  19474. _worksStudent2[i].push(_works);
  19475. this.isWorksS[i].push({
  19476. uid: b[j].userid,
  19477. sName: b[j].name
  19478. });
  19479. } else if (
  19480. y.indexOf(
  19481. b[j].content
  19482. .split(".")
  19483. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19484. ) != -1 &&
  19485. a[i].tool[0] == 16 &&
  19486. b[j].atool != 50
  19487. ) {
  19488. let _works = {
  19489. userid: b[j].userid,
  19490. ateacher: b[j].ateacher,
  19491. wid: b[j].id,
  19492. works: b[j].content,
  19493. sName: b[j].name,
  19494. type: 3,
  19495. ttype: b[j].ttype,
  19496. time: b[j].time,
  19497. score: b[j].score,
  19498. img: b[j].img,
  19499. likesCount: likesCount,
  19500. commentCount: commentCount,
  19501. isLikes: isLikes,
  19502. commentJson: commentJson,
  19503. likeJson: likeJson
  19504. };
  19505. if (this.isGroup) {
  19506. let isGw = 1;
  19507. for (
  19508. var groupI = 0;
  19509. groupI < this.courseGroup.group.length;
  19510. groupI++
  19511. ) {
  19512. let gid = this.courseGroup.group[groupI].id;
  19513. if (
  19514. this.courseGroupStudentUid[gid].indexOf(
  19515. b[j].userid
  19516. ) != -1
  19517. ) {
  19518. isGw = 2;
  19519. this.courseGroup.group[groupI].works[i].push(_works);
  19520. break;
  19521. }
  19522. }
  19523. if (isGw == 1) {
  19524. _worksStudent[i].push(_works);
  19525. }
  19526. } else {
  19527. _worksStudent[i].push(_works);
  19528. }
  19529. _worksStudent2[i].push(_works);
  19530. this.isWorksS[i].push({
  19531. uid: b[j].userid,
  19532. sName: b[j].name
  19533. });
  19534. } else if (b[j].type == 6 && b[j].atool != 50) {
  19535. let _works = {
  19536. userid: b[j].userid,
  19537. ateacher: b[j].ateacher,
  19538. wid: b[j].id,
  19539. works: b[j].content,
  19540. sName: b[j].name,
  19541. type: 4,
  19542. ttype: b[j].ttype,
  19543. time: b[j].time,
  19544. score: b[j].score,
  19545. img: b[j].img,
  19546. likesCount: likesCount,
  19547. commentCount: commentCount,
  19548. isLikes: isLikes,
  19549. commentJson: commentJson,
  19550. likeJson: likeJson
  19551. };
  19552. _worksStudent[i].push(_works);
  19553. _worksStudent2[i].push(_works);
  19554. this.isWorksS[i].push({
  19555. uid: b[j].userid,
  19556. sName: b[j].name
  19557. });
  19558. } else if (b[j].type == 7 && b[j].atool != 50) {
  19559. let _work = {
  19560. userid: b[j].userid,
  19561. ateacher: b[j].ateacher,
  19562. wid: b[j].id,
  19563. works: b[j].content,
  19564. sName: b[j].name,
  19565. type: 5,
  19566. ttype: b[j].ttype,
  19567. time: b[j].time,
  19568. score: b[j].score,
  19569. img: b[j].img,
  19570. likesCount: likesCount,
  19571. commentCount: commentCount,
  19572. isLikes: isLikes,
  19573. commentJson: commentJson,
  19574. likeJson: likeJson
  19575. };
  19576. _worksStudent[i].push(_work);
  19577. _worksStudent2[i].push(_work);
  19578. this.isWorksS[i].push({
  19579. uid: b[j].userid,
  19580. sName: b[j].name
  19581. });
  19582. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19583. let _works = {
  19584. userid: b[j].userid,
  19585. ateacher: b[j].ateacher,
  19586. wid: b[j].id,
  19587. works: b[j].content,
  19588. sName: b[j].name,
  19589. type: 12,
  19590. ttype: b[j].ttype,
  19591. time: b[j].time,
  19592. score: b[j].score,
  19593. img: b[j].img,
  19594. likesCount: likesCount,
  19595. commentCount: commentCount,
  19596. isLikes: isLikes,
  19597. commentJson: commentJson,
  19598. likeJson: likeJson
  19599. };
  19600. if (this.isGroup) {
  19601. let isGw = 1;
  19602. for (
  19603. var groupI = 0;
  19604. groupI < this.courseGroup.group.length;
  19605. groupI++
  19606. ) {
  19607. let gid = this.courseGroup.group[groupI].id;
  19608. if (
  19609. this.courseGroupStudentUid[gid].indexOf(
  19610. b[j].userid
  19611. ) != -1
  19612. ) {
  19613. isGw = 2;
  19614. this.courseGroup.group[groupI].works[i].push(_works);
  19615. break;
  19616. }
  19617. }
  19618. if (isGw == 1) {
  19619. _worksStudent[i].push(_works);
  19620. }
  19621. } else {
  19622. _worksStudent[i].push(_works);
  19623. }
  19624. _worksStudent2[i].push(_works);
  19625. this.isWorksS[i].push({
  19626. uid: b[j].userid,
  19627. sName: b[j].name
  19628. });
  19629. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19630. let _works = {
  19631. userid: b[j].userid,
  19632. ateacher: b[j].ateacher,
  19633. wid: b[j].id,
  19634. works: b[j].content,
  19635. sName: b[j].name,
  19636. type: 0,
  19637. ttype: b[j].ttype,
  19638. time: b[j].time,
  19639. score: b[j].score,
  19640. img: b[j].img,
  19641. likesCount: likesCount,
  19642. commentCount: commentCount,
  19643. isLikes: isLikes,
  19644. commentJson: commentJson,
  19645. likeJson: likeJson
  19646. };
  19647. if (this.isGroup) {
  19648. let isGw = 1;
  19649. for (
  19650. var groupI = 0;
  19651. groupI < this.courseGroup.group.length;
  19652. groupI++
  19653. ) {
  19654. let gid = this.courseGroup.group[groupI].id;
  19655. if (
  19656. this.courseGroupStudentUid[gid].indexOf(
  19657. b[j].userid
  19658. ) != -1
  19659. ) {
  19660. isGw = 2;
  19661. this.courseGroup.group[groupI].works[i].push(_works);
  19662. break;
  19663. }
  19664. }
  19665. if (isGw == 1) {
  19666. _worksStudent[i].push(_works);
  19667. }
  19668. } else {
  19669. _worksStudent[i].push(_works);
  19670. }
  19671. _worksStudent2[i].push(_works);
  19672. this.isWorksS[i].push({
  19673. uid: b[j].userid,
  19674. sName: b[j].name
  19675. });
  19676. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19677. let _works = {
  19678. userid: b[j].userid,
  19679. ateacher: b[j].ateacher,
  19680. wid: b[j].id,
  19681. works: b[j].content,
  19682. sName: b[j].name,
  19683. type: 0,
  19684. ttype: b[j].ttype,
  19685. time: b[j].time,
  19686. score: b[j].score,
  19687. img: b[j].img,
  19688. likesCount: likesCount,
  19689. commentCount: commentCount,
  19690. isLikes: isLikes,
  19691. commentJson: commentJson,
  19692. likeJson: likeJson
  19693. };
  19694. if (this.isGroup) {
  19695. let isGw = 1;
  19696. for (
  19697. var groupI = 0;
  19698. groupI < this.courseGroup.group.length;
  19699. groupI++
  19700. ) {
  19701. let gid = this.courseGroup.group[groupI].id;
  19702. if (
  19703. this.courseGroupStudentUid[gid].indexOf(
  19704. b[j].userid
  19705. ) != -1
  19706. ) {
  19707. isGw = 2;
  19708. this.courseGroup.group[groupI].works[i].push(_works);
  19709. break;
  19710. }
  19711. }
  19712. if (isGw == 1) {
  19713. _worksStudent[i].push(_works);
  19714. }
  19715. } else {
  19716. _worksStudent[i].push(_works);
  19717. }
  19718. _worksStudent2[i].push(_works);
  19719. this.isWorksS[i].push({
  19720. uid: b[j].userid,
  19721. sName: b[j].name
  19722. });
  19723. }
  19724. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19725. let _works = {
  19726. userid: b[j].userid,
  19727. ateacher: b[j].ateacher,
  19728. wid: b[j].id,
  19729. works: b[j].content,
  19730. sName: b[j].name,
  19731. type: 2,
  19732. ttype: b[j].ttype,
  19733. time: b[j].time,
  19734. score: b[j].score,
  19735. img: b[j].img,
  19736. likesCount: likesCount,
  19737. commentCount: commentCount,
  19738. isLikes: isLikes,
  19739. commentJson: commentJson,
  19740. likeJson: likeJson
  19741. };
  19742. if (this.isGroup) {
  19743. let isGw = 1;
  19744. for (
  19745. var groupI = 0;
  19746. groupI < this.courseGroup.group.length;
  19747. groupI++
  19748. ) {
  19749. let gid = this.courseGroup.group[groupI].id;
  19750. if (
  19751. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19752. -1
  19753. ) {
  19754. isGw = 2;
  19755. this.courseGroup.group[groupI].works[i].push(_works);
  19756. break;
  19757. }
  19758. }
  19759. if (isGw == 1) {
  19760. _worksStudent[i].push(_works);
  19761. }
  19762. } else {
  19763. _worksStudent[i].push(_works);
  19764. }
  19765. _worksStudent2[i].push(_works);
  19766. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19767. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19768. let _works = {
  19769. userid: b[j].userid,
  19770. ateacher: b[j].ateacher,
  19771. wid: b[j].id,
  19772. works: b[j].content,
  19773. sName: b[j].name,
  19774. type: 20,
  19775. ttype: b[j].ttype,
  19776. time: b[j].time,
  19777. score: b[j].score,
  19778. img: b[j].img,
  19779. likesCount: likesCount,
  19780. commentCount: commentCount,
  19781. isLikes: isLikes,
  19782. commentJson: commentJson,
  19783. likeJson: likeJson
  19784. };
  19785. if (this.isGroup) {
  19786. let isGw = 1;
  19787. for (
  19788. var groupI = 0;
  19789. groupI < this.courseGroup.group.length;
  19790. groupI++
  19791. ) {
  19792. let gid = this.courseGroup.group[groupI].id;
  19793. if (
  19794. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19795. -1
  19796. ) {
  19797. isGw = 2;
  19798. this.courseGroup.group[groupI].works[i].push(_works);
  19799. break;
  19800. }
  19801. }
  19802. if (isGw == 1) {
  19803. _worksStudent[i].push(_works);
  19804. }
  19805. } else {
  19806. _worksStudent[i].push(_works);
  19807. }
  19808. _worksStudent2[i].push(_works);
  19809. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19810. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19811. //问卷
  19812. let _work = {
  19813. userid: b[j].userid,
  19814. ateacher: b[j].ateacher,
  19815. wid: b[j].id,
  19816. works: b[j].content,
  19817. sName: b[j].name,
  19818. type: 2,
  19819. ttype: b[j].ttype,
  19820. time: b[j].time,
  19821. score: b[j].score,
  19822. img: b[j].img,
  19823. likesCount: likesCount,
  19824. commentCount: commentCount,
  19825. isLikes: isLikes,
  19826. commentJson: commentJson,
  19827. likeJson: likeJson
  19828. };
  19829. _worksStudent[i].push(_work);
  19830. _worksStudent2[i].push(_work);
  19831. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19832. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19833. //选择题
  19834. let _work = {
  19835. userid: b[j].userid,
  19836. ateacher: b[j].ateacher,
  19837. wid: b[j].id,
  19838. works: b[j].content,
  19839. sName: b[j].name,
  19840. type: 8,
  19841. ttype: b[j].ttype,
  19842. time: b[j].time,
  19843. score: b[j].score,
  19844. img: b[j].img,
  19845. likesCount: likesCount,
  19846. commentCount: commentCount,
  19847. isLikes: isLikes,
  19848. commentJson: commentJson,
  19849. likeJson: likeJson
  19850. };
  19851. _worksStudent[i].push(_work);
  19852. _worksStudent2[i].push(_work);
  19853. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19854. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19855. //选择题
  19856. let _work = {
  19857. userid: b[j].userid,
  19858. ateacher: b[j].ateacher,
  19859. wid: b[j].id,
  19860. works: b[j].content,
  19861. sName: b[j].name,
  19862. type: 9,
  19863. ttype: b[j].ttype,
  19864. time: b[j].time,
  19865. score: b[j].score,
  19866. img: b[j].img,
  19867. likesCount: likesCount,
  19868. commentCount: commentCount,
  19869. isLikes: isLikes,
  19870. commentJson: commentJson,
  19871. likeJson: likeJson
  19872. };
  19873. _worksStudent[i].push(_work);
  19874. _worksStudent2[i].push(_work);
  19875. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19876. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19877. //选择题
  19878. let _work = {
  19879. userid: b[j].userid,
  19880. ateacher: b[j].ateacher,
  19881. wid: b[j].id,
  19882. works: b[j].content,
  19883. sName: b[j].name,
  19884. type: 10,
  19885. ttype: b[j].ttype,
  19886. time: b[j].time,
  19887. score: b[j].score,
  19888. img: b[j].img,
  19889. likesCount: likesCount,
  19890. commentCount: commentCount,
  19891. isLikes: isLikes,
  19892. commentJson: commentJson,
  19893. likeJson: likeJson
  19894. };
  19895. _worksStudent[i].push(_work);
  19896. _worksStudent2[i].push(_work);
  19897. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19898. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19899. //选择题
  19900. let _work = {
  19901. userid: b[j].userid,
  19902. ateacher: b[j].ateacher,
  19903. wid: b[j].id,
  19904. works: b[j].content,
  19905. sName: b[j].name,
  19906. type: 13,
  19907. ttype: b[j].ttype,
  19908. time: b[j].time,
  19909. score: b[j].score,
  19910. img: b[j].img,
  19911. likesCount: likesCount,
  19912. commentCount: commentCount,
  19913. isLikes: isLikes,
  19914. commentJson: commentJson,
  19915. likeJson: likeJson
  19916. };
  19917. _worksStudent[i].push(_work);
  19918. _worksStudent2[i].push(_work);
  19919. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19920. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19921. //选择题
  19922. let _work = {
  19923. userid: b[j].userid,
  19924. ateacher: b[j].ateacher,
  19925. wid: b[j].id,
  19926. works: b[j].content,
  19927. sName: b[j].name,
  19928. type: 16,
  19929. ttype: b[j].ttype,
  19930. time: b[j].time,
  19931. score: b[j].score,
  19932. img: b[j].img,
  19933. likesCount: likesCount,
  19934. commentCount: commentCount,
  19935. isLikes: isLikes,
  19936. commentJson: commentJson,
  19937. aiCode: b[j].aiCode,
  19938. teacherCode: b[j].teacherCode,
  19939. likeJson: likeJson
  19940. };
  19941. _worksStudent[i].push(_work);
  19942. _worksStudent2[i].push(_work);
  19943. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19944. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19945. //选择题
  19946. let _work = {
  19947. userid: b[j].userid,
  19948. ateacher: b[j].ateacher,
  19949. wid: b[j].id,
  19950. works: b[j].content,
  19951. sName: b[j].name,
  19952. type: 17,
  19953. ttype: b[j].ttype,
  19954. time: b[j].time,
  19955. score: b[j].score,
  19956. img: b[j].img,
  19957. likesCount: likesCount,
  19958. commentCount: commentCount,
  19959. isLikes: isLikes,
  19960. commentJson: commentJson,
  19961. likeJson: likeJson
  19962. };
  19963. _worksStudent[i].push(_work);
  19964. _worksStudent2[i].push(_work);
  19965. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19966. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19967. //交互视频
  19968. let _work = {
  19969. userid: b[j].userid,
  19970. ateacher: b[j].ateacher,
  19971. wid: b[j].id,
  19972. works: b[j].content,
  19973. sName: b[j].name,
  19974. type: 14,
  19975. ttype: b[j].ttype,
  19976. time: b[j].time,
  19977. score: b[j].score,
  19978. img: b[j].img,
  19979. likesCount: likesCount,
  19980. commentCount: commentCount,
  19981. isLikes: isLikes,
  19982. commentJson: commentJson,
  19983. likeJson: likeJson
  19984. };
  19985. _worksStudent[i].push(_work);
  19986. _worksStudent2[i].push(_work);
  19987. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19988. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19989. let _gindex = JSON.parse(b[j].content);
  19990. if (
  19991. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19992. b[j].userid
  19993. ) != -1
  19994. ) {
  19995. let _work = {
  19996. userid: b[j].userid,
  19997. ateacher: b[j].ateacher,
  19998. wid: b[j].id,
  19999. works: _gindex.url,
  20000. sName: b[j].name,
  20001. type: _gindex.type,
  20002. ttype: b[j].ttype,
  20003. time: b[j].time,
  20004. score: b[j].score,
  20005. img: b[j].img,
  20006. likesCount: likesCount,
  20007. commentCount: commentCount,
  20008. isLikes: isLikes,
  20009. commentJson: commentJson,
  20010. likeJson: likeJson
  20011. };
  20012. _worksStudent[i][_gindex.groupIndex].push(_work);
  20013. _worksStudent2[i][_gindex.groupIndex].push(_work);
  20014. }
  20015. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20016. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  20017. let _work = {
  20018. userid: b[j].userid,
  20019. ateacher: b[j].ateacher,
  20020. wid: b[j].id,
  20021. works: b[j].content,
  20022. sName: b[j].name ? b[j].name : b[j].userid,
  20023. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  20024. ttype: b[j].ttype,
  20025. time: b[j].time,
  20026. score: b[j].score,
  20027. img: b[j].img,
  20028. likesCount: likesCount,
  20029. commentCount: commentCount,
  20030. isLikes: isLikes,
  20031. commentJson: commentJson,
  20032. likeJson: likeJson
  20033. };
  20034. _worksStudent[i].push(_work);
  20035. _worksStudent2[i].push(_work);
  20036. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20037. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20038. let _work = {
  20039. userid: b[j].userid,
  20040. ateacher: b[j].ateacher,
  20041. wid: b[j].id,
  20042. works: b[j].content,
  20043. sName: b[j].name ? b[j].name : b[j].userid,
  20044. type: 12,
  20045. ttype: b[j].ttype,
  20046. time: b[j].time,
  20047. score: b[j].score,
  20048. img: b[j].img,
  20049. likesCount: likesCount,
  20050. commentCount: commentCount,
  20051. isLikes: isLikes,
  20052. commentJson: commentJson,
  20053. likeJson: likeJson
  20054. };
  20055. _worksStudent[i].push(_work);
  20056. _worksStudent2[i].push(_work);
  20057. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20058. } else if (
  20059. a[i].tool[0] == 57 &&
  20060. b[j].atool == 57 &&
  20061. b[j].type == 12
  20062. ) {
  20063. let _work = {
  20064. userid: b[j].userid,
  20065. ateacher: b[j].ateacher,
  20066. wid: b[j].id,
  20067. works: b[j].content,
  20068. sName: b[j].name ? b[j].name : b[j].userid,
  20069. type: 12,
  20070. ttype: b[j].ttype,
  20071. time: b[j].time,
  20072. score: b[j].score,
  20073. img: b[j].img,
  20074. likesCount: likesCount,
  20075. commentCount: commentCount,
  20076. isLikes: isLikes,
  20077. commentJson: commentJson,
  20078. likeJson: likeJson
  20079. };
  20080. _worksStudent[i].push(_work);
  20081. _worksStudent2[i].push(_work);
  20082. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20083. } else if (
  20084. a[i].tool[0] == 57 &&
  20085. b[j].atool == 57 &&
  20086. b[j].type == 15
  20087. ) {
  20088. let _work = {
  20089. userid: b[j].userid,
  20090. ateacher: b[j].ateacher,
  20091. wid: b[j].id,
  20092. works: b[j].content,
  20093. sName: b[j].name ? b[j].name : b[j].userid,
  20094. type: 15,
  20095. ttype: b[j].ttype,
  20096. time: b[j].time,
  20097. score: b[j].score,
  20098. img: b[j].img,
  20099. likesCount: likesCount,
  20100. commentCount: commentCount,
  20101. isLikes: isLikes,
  20102. commentJson: commentJson,
  20103. likeJson: likeJson
  20104. };
  20105. _worksStudent[i].push(_work);
  20106. _worksStudent2[i].push(_work);
  20107. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20108. }
  20109. }
  20110. }
  20111. if (_worksStudent[i] && _worksStudent[i].length) {
  20112. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20113. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20114. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20115. var scoreA = parseFloat(jscoreA);
  20116. var scoreB = parseFloat(jscoreB);
  20117. if (scoreA == scoreB) {
  20118. return b.likesCount - a.likesCount;
  20119. }
  20120. return scoreB - scoreA;
  20121. });
  20122. if (this.isGroup) {
  20123. for (
  20124. var groupI = 0;
  20125. groupI < this.courseGroup.group.length;
  20126. groupI++
  20127. ) {
  20128. this.courseGroup.group[groupI].works[
  20129. i
  20130. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20131. a,
  20132. b
  20133. ) {
  20134. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20135. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20136. var scoreA = parseFloat(jscoreA);
  20137. var scoreB = parseFloat(jscoreB);
  20138. if (scoreA == scoreB) {
  20139. return b.likesCount - a.likesCount;
  20140. }
  20141. return scoreB - scoreA;
  20142. });
  20143. }
  20144. }
  20145. }
  20146. }
  20147. this.timeWorkList = _worksStudent2;
  20148. for (var i = 0; i < a.length; i++) {
  20149. for (var j = 0; j < b.length; j++) {
  20150. var data = b[j];
  20151. if (i == b[j].tool) {
  20152. if (data.type == 2 || data.type == 8) {
  20153. for (var z = 0; z < this.checkJson[i].length; z++) {
  20154. this.checkJson[i][z].checkPerent = [];
  20155. this.checkJson[i][z].right = Math.round(
  20156. (this.checkJson[i][z].rightPerson.length /
  20157. parseInt(_worksStudent[i].length)) *
  20158. 100
  20159. );
  20160. let aaaa = this.checkJson[i][z];
  20161. for (
  20162. var k = 0;
  20163. k < this.checkJson[i][z].checkCount.length;
  20164. k++
  20165. ) {
  20166. this.checkJson[i][z].checkPerent.push(
  20167. Math.round(
  20168. (this.checkJson[i][z].checkCount[k] /
  20169. parseInt(_worksStudent[i].length)) *
  20170. 100
  20171. )
  20172. );
  20173. }
  20174. }
  20175. } else if (data.type == 9) {
  20176. for (var z = 0; z < this.checkJson[i].length; z++) {
  20177. this.checkJson[i][z].checkPerent = [];
  20178. this.checkJson[i][z].right = Math.round(
  20179. (this.checkJson[i][z].rightPerson.length /
  20180. this.checkJson[i][z].checkPerson.length) *
  20181. 100
  20182. );
  20183. }
  20184. }
  20185. }
  20186. }
  20187. }
  20188. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20189. this.joinGroup(gindex);
  20190. }
  20191. this.worksStudent = _worksStudent;
  20192. this.selectWorksStudent();
  20193. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20194. this.$nextTick(() => {
  20195. setTimeout(() => {
  20196. setTimeout(() => {
  20197. this.panToolHeight("tool-" + ci);
  20198. }, 500);
  20199. }, 0);
  20200. });
  20201. }
  20202. this.selectSWorksLoading = false
  20203. })
  20204. .catch(err => {
  20205. this.selectSWorksLoading = false
  20206. console.error(err);
  20207. });
  20208. },
  20209. pngToWhiteBg(file) {
  20210. const _file = file;
  20211. let read = new FileReader();
  20212. read.readAsDataURL(file); // 文件转base64
  20213. return new Promise((resolve, reject) => {
  20214. read.onload = (e) => {
  20215. let img = new Image();
  20216. img.src = e.target.result;
  20217. img.onload = async () => {
  20218. // 生成canvas
  20219. let canvas = document.createElement("canvas");
  20220. let context = canvas.getContext("2d");
  20221. // 绘制图片到canvas上
  20222. canvas.width = img.width;
  20223. canvas.height = img.height;
  20224. // 在canvas绘制前填充白色背景
  20225. context.fillStyle = "#fff";
  20226. context.fillRect(0, 0, canvas.width, canvas.height);
  20227. context.drawImage(img, 0, 0);
  20228. let base64 = canvas.toDataURL(file["type"], 1);
  20229. let newFile = this.dataUrlToFile(base64, _file);
  20230. resolve(newFile);
  20231. };
  20232. };
  20233. });
  20234. },
  20235. dataUrlToFile(dataurl, file) {
  20236. let arr = dataurl.split(","),
  20237. mime = arr[0].match(/:(.*?);/)[1],
  20238. bstr = atob(arr[1]),
  20239. n = bstr.length,
  20240. u8arr = new Uint8Array(n);
  20241. while (n--) {
  20242. u8arr[n] = bstr.charCodeAt(n);
  20243. }
  20244. // return new Blob([u8arr], { type: mime });
  20245. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20246. type: mime,
  20247. });
  20248. },
  20249. async beforeUpload1(event, type, i) {
  20250. // this.$message.success('进入上传')
  20251. var file = "";
  20252. if (type == 5) {
  20253. file = event;
  20254. } else {
  20255. file = event.target.files[0];
  20256. }
  20257. var credentials = {
  20258. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20259. secretAccessKey: "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",
  20260. }; //秘钥形式的登录上传
  20261. window.AWS.config.update(credentials);
  20262. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20263. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20264. var _this = this;
  20265. _this.progress = 0;
  20266. _this.proVisible = true;
  20267. _this.isFinishSize = 0;
  20268. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20269. var b = [
  20270. "DOC",
  20271. "DOCX",
  20272. "DOCM",
  20273. "DOTM",
  20274. "DOTX",
  20275. "PPTX",
  20276. "PPSX",
  20277. "PPT",
  20278. "PPS",
  20279. "PPTM",
  20280. "POTM",
  20281. "PPAM",
  20282. "POTX",
  20283. "PPSM",
  20284. ];
  20285. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20286. var photoA = [
  20287. "BMP",
  20288. "GIF",
  20289. "PNG",
  20290. "JPEG",
  20291. "JPEG",
  20292. "JPG",
  20293. "TIF",
  20294. "PCX",
  20295. "TGA",
  20296. "EXIF",
  20297. "FPX",
  20298. "SVG",
  20299. "APNG",
  20300. ];
  20301. // if (
  20302. // b.indexOf(
  20303. // file.name
  20304. // .split(".")
  20305. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20306. // ) != -1
  20307. // ) {
  20308. // if (file.size / 1024 / 1024 > 10) {
  20309. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20310. // return;
  20311. // }
  20312. // } else if (
  20313. // excelA.indexOf(
  20314. // file.name
  20315. // .split(".")
  20316. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20317. // ) != "-1"
  20318. // ) {
  20319. // if (file.size / 1024 / 1024 > 5) {
  20320. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20321. // return;
  20322. // }
  20323. // }
  20324. if (
  20325. photoA.indexOf(
  20326. file.name
  20327. .split(".")
  20328. [file.name.split(".").length - 1].toLocaleUpperCase()
  20329. ) != -1 &&
  20330. type != 4
  20331. ) {
  20332. // const blob = await imageConversion.compress(file, 0.8)
  20333. file = await this.pngToWhiteBg(file);
  20334. const blob = await imageConversion.compressAccurately(file, 256);
  20335. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20336. file = new File([blob], file.name, { type: file.type });
  20337. }
  20338. if (file) {
  20339. var params = {
  20340. Key:
  20341. file.name.split(".")[0] +
  20342. new Date().getTime() +
  20343. "." +
  20344. file.name.split(".")[file.name.split(".").length - 1],
  20345. ContentType: file.type,
  20346. Body: file,
  20347. "Access-Control-Allow-Credentials": "*",
  20348. ACL: "public-read",
  20349. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20350. var options = {
  20351. // partSize: 2048 * 1024 * 1024,
  20352. partSize: 1024 * 1024 * 1024,
  20353. queueSize: 2,
  20354. leavePartsOnError: true,
  20355. };
  20356. bucket
  20357. .upload(params, options)
  20358. .on("httpUploadProgress", function (evt) {
  20359. //这里可以写进度条
  20360. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20361. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20362. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20363. })
  20364. .send(function (err, data) {
  20365. _this.progress = 100;
  20366. _this.isFinishSize = _this.isAllSize;
  20367. setTimeout(() => {
  20368. _this.proVisible = false;
  20369. }, 1000);
  20370. if (err) {
  20371. var a = _this.$refs.upload1.uploadFiles;
  20372. a.splice(a.length - 1, a.length);
  20373. _this.$message.error("上传失败");
  20374. } else {
  20375. // _this.$message.success('上传成功')
  20376. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20377. var c = [
  20378. "AVI",
  20379. "NAVI",
  20380. "MPEG",
  20381. "ASF",
  20382. "MOV",
  20383. "WMV",
  20384. "3GP",
  20385. "RM",
  20386. "RMVB",
  20387. "FLV",
  20388. "F4V",
  20389. "H.264",
  20390. "H.265",
  20391. "REAL VIDEO",
  20392. "MKV",
  20393. "WebM",
  20394. "HDDVD",
  20395. "MP4",
  20396. "MPG",
  20397. "M4V",
  20398. "MGV",
  20399. "OGV",
  20400. "QTM",
  20401. "STR",
  20402. "AMC",
  20403. "DVX",
  20404. "EVO",
  20405. "DAT",
  20406. "OGG",
  20407. "OGM",
  20408. ];
  20409. if (type == 1) {
  20410. _this.studyJuri[0].cover.push({
  20411. name: file.name,
  20412. url: data.Location,
  20413. uid: file.uid,
  20414. });
  20415. if (
  20416. c.indexOf(
  20417. _this.studyJuri[0].cover[0].url
  20418. .split(".")
  20419. [
  20420. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20421. ].toLocaleUpperCase()
  20422. ) != -1
  20423. ) {
  20424. _this.fileType = 2;
  20425. } else if (
  20426. b.indexOf(
  20427. _this.studyJuri[0].cover[0].url
  20428. .split(".")
  20429. [
  20430. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20431. ].toLocaleUpperCase()
  20432. ) != -1
  20433. ) {
  20434. _this.fileType = 1;
  20435. } else if (
  20436. photoA.indexOf(
  20437. _this.studyJuri[0].cover[0].url
  20438. .split(".")
  20439. [
  20440. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20441. ].toLocaleUpperCase()
  20442. ) != -1
  20443. ) {
  20444. _this.fileType = 0;
  20445. } else {
  20446. _this.fileType = 3;
  20447. }
  20448. _this.imgChange(null, null, type);
  20449. } else if (type == 2) {
  20450. _this.upToolImg = data.Location;
  20451. _this.imgChange(null, null, type);
  20452. _this.addCourseWorks(i);
  20453. } else if (type == 4) {
  20454. _this.addPz("3", data.Location);
  20455. } else if (type == 5) {
  20456. _this.addImgDrawImG(data.Location);
  20457. } else if (type == 6) {
  20458. var _ftype = 1;
  20459. if (
  20460. c.indexOf(
  20461. data.Location.split(".")[
  20462. data.Location.split(".").length - 1
  20463. ].toLocaleUpperCase()
  20464. ) != -1
  20465. ) {
  20466. _ftype = 5;
  20467. } else if (
  20468. b.indexOf(
  20469. data.Location.split(".")[
  20470. data.Location.split(".").length - 1
  20471. ].toLocaleUpperCase()
  20472. ) != -1
  20473. ) {
  20474. _ftype = 4;
  20475. } else {
  20476. _ftype = 1;
  20477. }
  20478. _this.plworkFile.push({
  20479. name: file.name,
  20480. url: data.Location,
  20481. uid: file.uid,
  20482. fileType: _ftype,
  20483. username:
  20484. _this.plworkFile.length > 10
  20485. ? _this.plworkFile.length + 1
  20486. : "0" + (_this.plworkFile.length + 1),
  20487. });
  20488. } else if (type == 7) {
  20489. _this.addCourseWorksGong(i, data.Location, 32);
  20490. } else if (type == 8) {
  20491. _this.addCourseWorksGong(i, data.Location, 57);
  20492. }
  20493. _this.imgChange(null, null, type);
  20494. console.log(data.Location);
  20495. // _this.$message.success('上传成功'+data.Location)
  20496. }
  20497. });
  20498. }
  20499. },
  20500. async beforeUpload3(event, type, i) {
  20501. // this.$message.success('进入上传')
  20502. let file = "";
  20503. let cfindex2 = 0;
  20504. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20505. file = event.target.files[cfindex];
  20506. var credentials = {
  20507. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20508. secretAccessKey: "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",
  20509. }; //秘钥形式的登录上传
  20510. window.AWS.config.update(credentials);
  20511. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20512. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20513. var _this = this;
  20514. // _this.progress = 0;
  20515. _this.proVisible2 = true;
  20516. var b = [
  20517. "DOC",
  20518. "DOCX",
  20519. "DOCM",
  20520. "DOTM",
  20521. "DOTX",
  20522. "PPTX",
  20523. "PPSX",
  20524. "PPT",
  20525. "PPS",
  20526. "PPTM",
  20527. "POTM",
  20528. "PPAM",
  20529. "POTX",
  20530. "PPSM",
  20531. ];
  20532. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20533. var photoA = [
  20534. "BMP",
  20535. "GIF",
  20536. "PNG",
  20537. "JPEG",
  20538. "JPG",
  20539. "TIF",
  20540. "PCX",
  20541. "TGA",
  20542. "EXIF",
  20543. "FPX",
  20544. "SVG",
  20545. "APNG",
  20546. ];
  20547. if (
  20548. photoA.indexOf(
  20549. file.name
  20550. .split(".")
  20551. [file.name.split(".").length - 1].toLocaleUpperCase()
  20552. ) != -1 &&
  20553. type != 4
  20554. ) {
  20555. // const blob = await imageConversion.compress(file, 0.8)
  20556. file = await this.pngToWhiteBg(file);
  20557. const blob = await imageConversion.compressAccurately(file, 256);
  20558. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20559. file = new File([blob], file.name, { type: file.type });
  20560. }
  20561. if (file) {
  20562. var params = {
  20563. Key:
  20564. file.name.split(".")[0] +
  20565. new Date().getTime() +
  20566. "." +
  20567. file.name.split(".")[file.name.split(".").length - 1],
  20568. ContentType: file.type,
  20569. Body: file,
  20570. "Access-Control-Allow-Credentials": "*",
  20571. ACL: "public-read",
  20572. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20573. var options = {
  20574. // partSize: 2048 * 1024 * 1024,
  20575. partSize: 1024 * 1024 * 1024,
  20576. queueSize: 2,
  20577. leavePartsOnError: true,
  20578. };
  20579. bucket
  20580. .upload(params, options)
  20581. .on("httpUploadProgress", function (evt) {
  20582. //这里可以写进度条
  20583. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20584. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20585. })
  20586. .send(function (err, data) {
  20587. // _this.progress = 100;
  20588. cfindex2++;
  20589. setTimeout(() => {
  20590. if (
  20591. cfindex2 == event.target.files.length - 1 ||
  20592. cfindex2 > event.target.files.length - 1
  20593. ) {
  20594. _this.proVisible2 = false;
  20595. }
  20596. }, 1000);
  20597. if (err) {
  20598. var a = _this.$refs.upload1.uploadFiles;
  20599. a.splice(a.length - 1, a.length);
  20600. _this.$message.error("上传失败");
  20601. } else {
  20602. // _this.$message.success('上传成功')
  20603. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20604. var c = [
  20605. "AVI",
  20606. "NAVI",
  20607. "MPEG",
  20608. "ASF",
  20609. "MOV",
  20610. "WMV",
  20611. "3GP",
  20612. "RM",
  20613. "RMVB",
  20614. "FLV",
  20615. "F4V",
  20616. "H.264",
  20617. "H.265",
  20618. "REAL VIDEO",
  20619. "MKV",
  20620. "WebM",
  20621. "HDDVD",
  20622. "MP4",
  20623. "MPG",
  20624. "M4V",
  20625. "MGV",
  20626. "OGV",
  20627. "QTM",
  20628. "STR",
  20629. "AMC",
  20630. "DVX",
  20631. "EVO",
  20632. "DAT",
  20633. "OGG",
  20634. "OGM",
  20635. ];
  20636. if (type == 1) {
  20637. _this.studyJuri[0].cover.push({
  20638. name: file.name,
  20639. url: data.Location,
  20640. uid: file.uid,
  20641. });
  20642. if (
  20643. c.indexOf(
  20644. _this.studyJuri[0].cover[0].url
  20645. .split(".")
  20646. [
  20647. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20648. ].toLocaleUpperCase()
  20649. ) != -1
  20650. ) {
  20651. _this.fileType = 2;
  20652. } else if (
  20653. b.indexOf(
  20654. _this.studyJuri[0].cover[0].url
  20655. .split(".")
  20656. [
  20657. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20658. ].toLocaleUpperCase()
  20659. ) != -1
  20660. ) {
  20661. _this.fileType = 1;
  20662. } else {
  20663. _this.fileType = 0;
  20664. }
  20665. _this.imgChange(null, null, type);
  20666. } else if (type == 2) {
  20667. _this.upToolImg = data.Location;
  20668. _this.imgChange(null, null, type);
  20669. _this.addCourseWorks(i);
  20670. } else if (type == 4) {
  20671. _this.addPz("3", data.Location);
  20672. } else if (type == 5) {
  20673. _this.addImgDrawImG(data.Location);
  20674. } else if (type == 6) {
  20675. var _ftype = 1;
  20676. if (
  20677. c.indexOf(
  20678. data.Location.split(".")[
  20679. data.Location.split(".").length - 1
  20680. ].toLocaleUpperCase()
  20681. ) != -1
  20682. ) {
  20683. _ftype = 5;
  20684. } else if (
  20685. b.indexOf(
  20686. data.Location.split(".")[
  20687. data.Location.split(".").length - 1
  20688. ].toLocaleUpperCase()
  20689. ) != -1
  20690. ) {
  20691. _ftype = 4;
  20692. } else {
  20693. _ftype = 1;
  20694. }
  20695. _this.plworkFile.push({
  20696. name: file.name,
  20697. url: data.Location,
  20698. uid: file.uid,
  20699. fileType: _ftype,
  20700. username:
  20701. _this.plworkFile.length + 1 > 9
  20702. ? _this.plworkFile.length + 1
  20703. : "0" + (_this.plworkFile.length + 1),
  20704. });
  20705. }
  20706. _this.imgChange(null, null, type);
  20707. console.log(data.Location);
  20708. // _this.$message.success('上传成功'+data.Location)
  20709. }
  20710. });
  20711. }
  20712. }
  20713. },
  20714. beforeUpload2(event, type) {
  20715. var file = event.target.files[0];
  20716. var credentials = {
  20717. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20718. secretAccessKey: "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",
  20719. }; //秘钥形式的登录上传
  20720. window.AWS.config.update(credentials);
  20721. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20722. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20723. var _this = this;
  20724. _this.progress = 0;
  20725. _this.proVisible = true;
  20726. if (file) {
  20727. var params = {
  20728. Key:
  20729. file.name.split(".")[0] +
  20730. new Date().getTime() +
  20731. "." +
  20732. file.name.split(".")[file.name.split(".").length - 1],
  20733. ContentType: file.type,
  20734. Body: file,
  20735. "Access-Control-Allow-Credentials": "*",
  20736. ACL: "public-read",
  20737. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20738. var options = {
  20739. partSize: 2048 * 1024 * 1024,
  20740. queueSize: 2,
  20741. leavePartsOnError: true,
  20742. };
  20743. bucket
  20744. .upload(params, options)
  20745. .on("httpUploadProgress", function (evt) {
  20746. //这里可以写进度条
  20747. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20748. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20749. })
  20750. .send(function (err, data) {
  20751. _this.progress = 100;
  20752. setTimeout(() => {
  20753. _this.proVisible = false;
  20754. }, 1000);
  20755. if (err) {
  20756. var a = _this.$refs.upload1.uploadFiles;
  20757. a.splice(a.length - 1, a.length);
  20758. _this.$message.error("上传失败");
  20759. } else {
  20760. if (type == 2) {
  20761. _this.studyJuri[0].upVedio.push({
  20762. name: file.name,
  20763. url: data.Location,
  20764. uid: file.uid,
  20765. });
  20766. _this.imgChange(null, null, type);
  20767. } else if (type == 3) {
  20768. _this.studyJuri[0].upFile.push({
  20769. name: file.name,
  20770. url: data.Location,
  20771. uid: file.uid,
  20772. });
  20773. _this.imgChange(null, null, type);
  20774. }
  20775. console.log(data.Location);
  20776. }
  20777. });
  20778. }
  20779. },
  20780. allScrell() {
  20781. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20782. },
  20783. nextOrpreSteps(t) {
  20784. if (this.IsFollow && this.tType == 2) {
  20785. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20786. return;
  20787. }
  20788. var b = this.chapInfoList.length - 1;
  20789. if (t == 0) {
  20790. if (this.courseType == 0) {
  20791. if (this.taskCount == 0) {
  20792. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20793. if (this.IsLookOpen) {
  20794. if (
  20795. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20796. ) {
  20797. if (
  20798. this.courseDetail.userid != this.userid &&
  20799. (!this.courseDetail.course_teacher ||
  20800. (this.courseDetail.course_teacher &&
  20801. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20802. ) {
  20803. this.$message.error("任务未解锁");
  20804. } else {
  20805. this.$message.error("上一任务未解锁");
  20806. }
  20807. return;
  20808. }
  20809. }
  20810. this.navList[this.courseType].isOpen = false;
  20811. this.courseType = b;
  20812. this.taskCount =
  20813. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20814. .length - 1;
  20815. this.navList[this.courseType].isOpen = true;
  20816. } else {
  20817. this.taskCount--;
  20818. }
  20819. } else {
  20820. if (this.taskCount == 0) {
  20821. this.navList[this.courseType].isOpen = false;
  20822. this.courseType--;
  20823. this.taskCount =
  20824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20825. .length - 1;
  20826. this.navList[this.courseType].isOpen = true;
  20827. } else {
  20828. this.taskCount--;
  20829. }
  20830. }
  20831. } else {
  20832. if (this.courseType == b) {
  20833. if (
  20834. this.taskCount ==
  20835. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20836. 1
  20837. ) {
  20838. this.navList[this.courseType].isOpen = false;
  20839. this.courseType = 0;
  20840. this.taskCount = 0;
  20841. this.navList[this.courseType].isOpen = true;
  20842. } else {
  20843. var bbb = parseInt(this.taskCount) + 1;
  20844. if (
  20845. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20846. .isLook &&
  20847. this.courseDetail.userid != this.userid &&
  20848. (!this.courseDetail.course_teacher ||
  20849. (this.courseDetail.course_teacher &&
  20850. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20851. this.IsLookOpen
  20852. ) {
  20853. this.$message.error("任务未解锁");
  20854. return;
  20855. }
  20856. this.taskCount++;
  20857. if (this.IsLookOpen) {
  20858. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20859. this.taskCount
  20860. ].isLook = true;
  20861. this.addCourseState(3);
  20862. }
  20863. }
  20864. } else {
  20865. if (
  20866. this.taskCount ==
  20867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20868. 1
  20869. ) {
  20870. var bbb = parseInt(this.courseType) + 1;
  20871. if (
  20872. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20873. this.courseDetail.userid != this.userid &&
  20874. (!this.courseDetail.course_teacher ||
  20875. (this.courseDetail.course_teacher &&
  20876. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20877. this.IsLookOpen
  20878. ) {
  20879. this.$message.error("任务未解锁");
  20880. return;
  20881. }
  20882. this.navList[this.courseType].isOpen = false;
  20883. this.courseType++;
  20884. this.taskCount = 0;
  20885. this.navList[this.courseType].isOpen = true;
  20886. } else {
  20887. var bbb = parseInt(this.taskCount) + 1;
  20888. if (
  20889. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20890. .isLook &&
  20891. this.courseDetail.userid != this.userid &&
  20892. (!this.courseDetail.course_teacher ||
  20893. (this.courseDetail.course_teacher &&
  20894. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20895. this.IsLookOpen
  20896. ) {
  20897. this.$message.error("任务未解锁");
  20898. return;
  20899. }
  20900. this.taskCount++;
  20901. }
  20902. if (this.IsLookOpen) {
  20903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20904. this.taskCount
  20905. ].isLook = true;
  20906. this.addCourseState(3);
  20907. }
  20908. }
  20909. // if (
  20910. // this.taskCount ==
  20911. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20912. // ) {
  20913. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20914. // } else {
  20915. // this.taskCount++;
  20916. // }
  20917. }
  20918. document.scrollingElement.scrollTop = 0;
  20919. // this.showType = 7;
  20920. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20921. // if (this.vedio[this.taskCount].length > 0) {
  20922. // var a =
  20923. // document.getElementsByClassName("box_course")[this.taskCount]
  20924. // .offsetHeight;
  20925. // document.getElementsByClassName("vedioList")[
  20926. // this.taskCount
  20927. // ].style.height = a + "px";
  20928. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20929. // a - 40 + "px";
  20930. // }
  20931. this.isNoHomeWork = false;
  20932. (this.studyJuri = [
  20933. {
  20934. content: "",
  20935. cover: [],
  20936. upVedio: [],
  20937. upFile: [],
  20938. },
  20939. ]),
  20940. (this.radio = []);
  20941. this.isClickNav = "";
  20942. this.selectPz();
  20943. this.getHomeWork();
  20944. this.getCourseDetail(2);
  20945. this.$forceUpdate();
  20946. if ((this.courseDetail.userid == this.userid ||
  20947. (this.courseDetail.course_teacher &&
  20948. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20949. this.setCTask();
  20950. }
  20951. },
  20952. openTask(s, n, i) {
  20953. if (this.IsFollow && this.tType == 2) {
  20954. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20955. return;
  20956. }
  20957. if (this.IsLookOpen &&
  20958. this.courseDetail.userid != this.userid &&
  20959. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20960. if (
  20961. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20962. this.courseDetail.userid != this.userid &&
  20963. (!this.courseDetail.course_teacher ||
  20964. (this.courseDetail.course_teacher &&
  20965. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20966. ) {
  20967. this.$message.error("任务未解锁");
  20968. return;
  20969. }
  20970. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20971. if (
  20972. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20973. .isLook
  20974. ) {
  20975. this.$message.error("上一任务未解锁");
  20976. return;
  20977. }
  20978. } else if (s > this.courseType) {
  20979. if (n > 0) {
  20980. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20981. this.$message.error("上一任务未解锁");
  20982. return;
  20983. }
  20984. } else {
  20985. if (
  20986. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20987. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20988. ].isLook
  20989. ) {
  20990. this.$message.error("上一任务未解锁");
  20991. return;
  20992. }
  20993. }
  20994. }
  20995. }
  20996. if (this.navList[s].task[n].isOpen == true) {
  20997. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20998. return;
  20999. }
  21000. let flag = this.courseType==s;
  21001. this.courseType = s;
  21002. this.navId = i;
  21003. this.taskCount = n;
  21004. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  21005. this.navList[this.courseType].task[this.taskCount].isOpen =
  21006. !this.navList[this.courseType].task[this.taskCount].isOpen;
  21007. if (this.IsLookOpen) {
  21008. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21009. this.taskCount
  21010. ].isLook = true;
  21011. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  21012. this.addCourseState(3,yym);
  21013. }
  21014. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  21015. this.isCloseList[ci].isClose = 0;
  21016. this.isCloseList[ci].isCloseBoolean = false;
  21017. this.$nextTick(()=>{
  21018. setTimeout(()=>{
  21019. setTimeout(()=>{
  21020. this.panToolHeight('tool-'+ci);
  21021. }, 0)
  21022. }, 0)
  21023. })
  21024. }
  21025. // this.showType = 7;
  21026. this.isNoHomeWork = false;
  21027. (this.studyJuri = [
  21028. {
  21029. content: "",
  21030. cover: [],
  21031. upVedio: [],
  21032. upFile: [],
  21033. },
  21034. ]),
  21035. (this.radio = []);
  21036. document.scrollingElement.scrollTop = 0;
  21037. // setTimeout(() => {
  21038. // let a = document.getElementById(i);
  21039. // if (a.offsetTop - 110 == 0) {
  21040. // window.scrollTo(0, 0);
  21041. // } else {
  21042. // window.scrollTo(0, a.offsetTop);
  21043. // }
  21044. // }, 0);
  21045. for (var z = 0; z < this.navList.length; z++) {
  21046. for (var q = 0; q < this.navList[z].task.length; q++) {
  21047. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21048. this.navList[z].task[q].tool[w].isTool = false;
  21049. }
  21050. }
  21051. }
  21052. this.selectPz();
  21053. this.getHomeWork();
  21054. this.getCourseDetail(2);
  21055. if(flag){
  21056. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  21057. }else{
  21058. 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>`)
  21059. }
  21060. if ((this.courseDetail.userid == this.userid ||
  21061. (this.courseDetail.course_teacher &&
  21062. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  21063. this.setCTask();
  21064. }
  21065. },
  21066. get(i) {
  21067. if (this.IsFollow && this.tType == 2) {
  21068. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21069. return;
  21070. }
  21071. // for(var k=0;k<this.navList.length;k++){
  21072. // this.navList[k].isOpen = false;
  21073. // }
  21074. // this.navList[i].isOpen = true;
  21075. this.navList[i].isOpen = !this.navList[i].isOpen;
  21076. if (this.navList[i].isOpen) {
  21077. this.openTask(i, 0, i + "-0");
  21078. }
  21079. },
  21080. addQuestion() {
  21081. this.answerList.push({
  21082. answerTitle: this.answerQ,
  21083. answer: this.questionAnswer,
  21084. });
  21085. let params = [
  21086. {
  21087. uid: this.userid,
  21088. cid: this.id,
  21089. stage: this.courseType,
  21090. task: this.taskCount,
  21091. tool: this.toolindex,
  21092. content: JSON.stringify(this.answerList),
  21093. type: 3,
  21094. },
  21095. ];
  21096. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  21097. this.homeWorkLoading = true
  21098. this.ajax
  21099. .post(this.$store.state.api + "addCourseWorks", params)
  21100. .then((res) => {
  21101. this.$message({
  21102. message: "提交成功",
  21103. type: "success",
  21104. });
  21105. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21106. setTimeout(() => {
  21107. this.homeWorkLoading = false
  21108. }, 500);
  21109. this.answerList = [];
  21110. this.answerDialogVisible = false;
  21111. this.selectStudent();
  21112. this.selectSWorks();
  21113. this.selectSLook();
  21114. })
  21115. .catch((err) => {
  21116. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21117. setTimeout(() => {
  21118. this.homeWorkLoading = false
  21119. }, 500);
  21120. this.$message.error("提交失败");
  21121. console.error(err);
  21122. });
  21123. },
  21124. addQuestionTeacher() {
  21125. this.answerList.push({
  21126. answerTitle: this.answerQ,
  21127. answer: this.questionAnswer,
  21128. });
  21129. let params = [
  21130. {
  21131. uid: this.sStudent.userid,
  21132. cid: this.id,
  21133. stage: this.courseType,
  21134. task: this.taskCount,
  21135. tool: this.toolindex,
  21136. content: JSON.stringify(this.answerList),
  21137. type: 3,
  21138. ateacher: this.userid,
  21139. },
  21140. ];
  21141. this.ajax
  21142. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21143. .then((res) => {
  21144. this.$message({
  21145. message: "提交成功",
  21146. type: "success",
  21147. });
  21148. this.answerList = [];
  21149. this.questionAnswer = "";
  21150. this.answerDialogVisibleTeacher = false;
  21151. this.selectStudent();
  21152. this.selectSWorks();
  21153. this.selectSLook();
  21154. })
  21155. .catch((err) => {
  21156. this.$message.error("提交失败");
  21157. console.error(err);
  21158. });
  21159. },
  21160. refreshCourse() {
  21161. // window.location.reload();
  21162. this.navList = [];
  21163. this.getCourseDetail(1);
  21164. },
  21165. getCourseDetail(type, gindex) {
  21166. let loading;
  21167. if (type != 2) {
  21168. loading = this.$loading.service({
  21169. background: "rgba(255, 255, 255, 0.7)",
  21170. target: document.querySelector(".student_table"),
  21171. });
  21172. }
  21173. this.downLoading = false
  21174. // this.navList[0].isOpen = false;
  21175. // this.navList[this.courseType].isOpen = true;
  21176. // this.courseType = this.courseTypeLine;
  21177. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21178. let params = {
  21179. courseId: this.id,
  21180. };
  21181. this.ajax
  21182. .get(this.$store.state.api + "selectCourseDetail3", params)
  21183. .then((res) => {
  21184. if ((this.courseDetail.userid == this.userid ||
  21185. (this.courseDetail.course_teacher &&
  21186. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  21187. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21188. }
  21189. if (type != 2) {
  21190. loading.close();
  21191. if (
  21192. this.courseType >
  21193. JSON.parse(res.data[0][0].chapters).length - 1
  21194. ) {
  21195. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21196. }
  21197. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21198. .chapterInfo[0].taskJson;
  21199. var b = [
  21200. "AVI",
  21201. "NAVI",
  21202. "MPEG",
  21203. "ASF",
  21204. "MOV",
  21205. "WMV",
  21206. "3GP",
  21207. "RM",
  21208. "RMVB",
  21209. "FLV",
  21210. "F4V",
  21211. "H.264",
  21212. "H.265",
  21213. "REAL VIDEO",
  21214. "MKV",
  21215. "WebM",
  21216. "HDDVD",
  21217. "MP4",
  21218. "MPG",
  21219. "M4V",
  21220. "MGV",
  21221. "OGV",
  21222. "QTM",
  21223. "STR",
  21224. "AMC",
  21225. "DVX",
  21226. "EVO",
  21227. "DAT",
  21228. "OGG",
  21229. "OGM",
  21230. "MP3",
  21231. ];
  21232. let _chapterData = [];
  21233. for (var i = 0; i < a.length; i++) {
  21234. var c = a[i].chapterData;
  21235. this.vedio[i] = [];
  21236. this.textList[i] = [];
  21237. this.lineList[i] = [];
  21238. this.chapToolList[i] = [];
  21239. this.file[i] = [];
  21240. this.fileC[i] = [];
  21241. _chapterData[i] = c.filter((el) => {
  21242. return el.type != 12;
  21243. });
  21244. this.fileC[i] = c.filter((el) => {
  21245. return el.type == 12;
  21246. });
  21247. if (this.tType == 2) {
  21248. if (this.fileC[i].length) {
  21249. let yym1 = this.fileC[i].filter(e=>{
  21250. if(!converter(e.name).includes(converter("教案"))){
  21251. return e
  21252. }
  21253. })
  21254. this.fileC[i] = yym1
  21255. }
  21256. }
  21257. // else if (c[j].type == 12) {
  21258. // this.fileC[i].push(c[j]);
  21259. // }
  21260. for (var j = 0; j < c.length; j++) {
  21261. if (c[j].type == 7) {
  21262. this.chapToolList[i].push(c[j]);
  21263. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21264. this.lineList[i].push(c[j]);
  21265. } else if (c[j].type == 6) {
  21266. this.textList[i].push(c[j]);
  21267. } else {
  21268. if (
  21269. b.indexOf(
  21270. c[j].url
  21271. .split(".")
  21272. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21273. ) != -1
  21274. ) {
  21275. this.vedio[i].push(c[j]);
  21276. } else {
  21277. this.file[i].push(c[j]);
  21278. }
  21279. }
  21280. }
  21281. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21282. d.sources[0].src =
  21283. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21284. this.playerO[i] = d;
  21285. }
  21286. this.courseDetail = res.data[0][0];
  21287. if(this.tType == 2){
  21288. this.tcid = this.arrayToArray(
  21289. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21290. this.classId ? this.classId.split(",") : []
  21291. ).join(",");
  21292. }else{
  21293. this.tcid = this.arrayToArray(
  21294. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21295. this.tcid2 ? this.tcid2.split(",") : []
  21296. ).join(",");
  21297. }
  21298. this.evalua = res.data[0][0].evaId;
  21299. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21300. this.courseType
  21301. ];
  21302. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21303. if (this.tcid && res.data[1].length) {
  21304. let _inviteA = [];
  21305. for (var ik = 0; ik < res.data[1].length; ik++) {
  21306. _inviteA.push({
  21307. cid: res.data[1][ik].classid,
  21308. ic: res.data[1][ik].code,
  21309. });
  21310. }
  21311. for (var ik = 0; ik < _inviteA.length; ik++) {
  21312. if (
  21313. this.arrayToArray(
  21314. _inviteA[ik].cid.split(","),
  21315. this.tcid.split(",")
  21316. ).length
  21317. ) {
  21318. this.inviteCode = _inviteA[ik].ic;
  21319. break;
  21320. }
  21321. }
  21322. }
  21323. for (var l = 0; l < this.chapInfoList.length; l++) {
  21324. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21325. for (var m = 0; m < w.length; m++) {
  21326. w[m].id = l + "-" + m;
  21327. }
  21328. }
  21329. let taskCount = 0;
  21330. if (
  21331. _chapterData[taskCount].length &&
  21332. _chapterData[taskCount][0].type == 2
  21333. ) {
  21334. this.showType = 0;
  21335. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21336. } else {
  21337. if (_chapterData[taskCount].length > 0) {
  21338. let _url = _chapterData[taskCount][0].url;
  21339. if (
  21340. _chapterData[taskCount][0].type == 8 ||
  21341. _chapterData[taskCount][0].type == 14 ||
  21342. _chapterData[taskCount][0].type == 15
  21343. ) {
  21344. this.showType = 2;
  21345. if (
  21346. _url.indexOf("https://") == -1 &&
  21347. _url.indexOf("http://") == -1
  21348. ) {
  21349. _url = "https://" + _url;
  21350. }
  21351. this.pptImgUrl1 = _url;
  21352. } else if (_chapterData[taskCount][0].type == 3) {
  21353. if (
  21354. _url
  21355. .split(".")
  21356. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21357. ) {
  21358. this.showType = 3;
  21359. this.pptImgUrl1 = _url;
  21360. } else if (
  21361. this.isAssetTypeAnImage(
  21362. _url
  21363. .split(".")
  21364. [_url.split(".").length - 1].toLocaleLowerCase()
  21365. )
  21366. ) {
  21367. this.showType = 4;
  21368. this.pptImgUrl1 = _url;
  21369. } else {
  21370. this.showType = 2;
  21371. this.pptImgUrl1 =
  21372. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21373. encodeURIComponent(_url);
  21374. }
  21375. } else if (_chapterData[taskCount][0].type == 13) {
  21376. this.showType = 4;
  21377. this.pptImgUrl1 = _url;
  21378. } else if (_chapterData[taskCount][0].type == 6) {
  21379. this.showType = 1;
  21380. this.text = this.textList[taskCount][0];
  21381. } else if (_chapterData[taskCount][0].type == 16) {
  21382. this.showType = 16;
  21383. this.pptImgUrl1 = _url;
  21384. } else if (_chapterData[taskCount][0].type == 17) {
  21385. this.showType = 16;
  21386. this.pptImgUrl1 = _url;
  21387. }
  21388. }
  21389. }
  21390. this.isClickNav = 0;
  21391. if (
  21392. !_chapterData[taskCount].length ||
  21393. _chapterData[taskCount][0].type == 12
  21394. ) {
  21395. this.isClickNav = "";
  21396. this.showType = "";
  21397. }
  21398. if (this.tType == 2) {
  21399. _chapterData.forEach((e,i)=>{
  21400. if (e.length) {
  21401. let yym = e.filter(k=>{
  21402. if(!converter(k.name).includes(converter("教案"))){
  21403. return k
  21404. }
  21405. })
  21406. _chapterData[i] = yym
  21407. }
  21408. })
  21409. }
  21410. this.vChapterData = _chapterData;
  21411. } else {
  21412. // this.showType = 0;
  21413. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21414. .chapterInfo[0].taskJson;
  21415. var b = [
  21416. "AVI",
  21417. "NAVI",
  21418. "MPEG",
  21419. "ASF",
  21420. "MOV",
  21421. "WMV",
  21422. "3GP",
  21423. "RM",
  21424. "RMVB",
  21425. "FLV",
  21426. "F4V",
  21427. "H.264",
  21428. "H.265",
  21429. "REAL VIDEO",
  21430. "MKV",
  21431. "WebM",
  21432. "HDDVD",
  21433. "MP4",
  21434. "MPG",
  21435. "M4V",
  21436. "MGV",
  21437. "OGV",
  21438. "QTM",
  21439. "STR",
  21440. "AMC",
  21441. "DVX",
  21442. "EVO",
  21443. "DAT",
  21444. "OGG",
  21445. "OGM",
  21446. "MP3",
  21447. ];
  21448. let _chapterData = [];
  21449. for (var i = 0; i < a.length; i++) {
  21450. var c = a[i].chapterData;
  21451. this.vedio[i] = [];
  21452. this.textList[i] = [];
  21453. this.lineList[i] = [];
  21454. this.chapToolList[i] = [];
  21455. this.file[i] = [];
  21456. this.fileC[i] = [];
  21457. _chapterData[i] = c.filter((el) => {
  21458. return el.type != 12;
  21459. });
  21460. this.fileC[i] = c.filter((el) => {
  21461. return el.type == 12;
  21462. });
  21463. if (this.tType == 2) {
  21464. if (this.fileC[i].length) {
  21465. let yym1 = this.fileC[i].filter(e=>{
  21466. if(!converter(e.name).includes(converter("教案"))){
  21467. return e
  21468. }
  21469. })
  21470. this.fileC[i] = yym1
  21471. }
  21472. }
  21473. for (var j = 0; j < c.length; j++) {
  21474. if (c[j].type == 7) {
  21475. this.chapToolList[i].push(c[j]);
  21476. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21477. this.lineList[i].push(c[j]);
  21478. } else if (c[j].type == 6) {
  21479. this.textList[i].push(c[j]);
  21480. } else {
  21481. if (
  21482. b.indexOf(
  21483. c[j].url
  21484. .split(".")
  21485. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21486. ) != -1
  21487. ) {
  21488. this.vedio[i].push(c[j]);
  21489. } else {
  21490. this.file[i].push(c[j]);
  21491. }
  21492. }
  21493. }
  21494. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21495. d.sources[0].src =
  21496. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21497. this.playerO[i] = d;
  21498. }
  21499. let taskCount = 0;
  21500. if (
  21501. _chapterData[taskCount].length &&
  21502. _chapterData[taskCount][0].type == 2
  21503. ) {
  21504. // this.showType = 0;
  21505. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21506. } else {
  21507. if (_chapterData[taskCount].length > 0) {
  21508. let _url = _chapterData[taskCount][0].url;
  21509. if (
  21510. _chapterData[taskCount][0].type == 8 ||
  21511. _chapterData[taskCount][0].type == 14 ||
  21512. _chapterData[taskCount][0].type == 15
  21513. ) {
  21514. // this.showType = 2;
  21515. if (
  21516. _url.indexOf("https://") == -1 &&
  21517. _url.indexOf("http://") == -1
  21518. ) {
  21519. _url = "https://" + _url;
  21520. }
  21521. // this.pptImgUrl1 = _url;
  21522. } else if (_chapterData[taskCount][0].type == 3) {
  21523. if (
  21524. _url
  21525. .split(".")
  21526. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21527. ) {
  21528. // this.showType = 3;
  21529. // this.pptImgUrl1 = _url;
  21530. } else if (
  21531. this.isAssetTypeAnImage(
  21532. _url
  21533. .split(".")
  21534. [_url.split(".").length - 1].toLocaleLowerCase()
  21535. )
  21536. ) {
  21537. // this.showType = 4;
  21538. // this.pptImgUrl1 = _url;
  21539. } else {
  21540. // this.showType = 2;
  21541. // this.pptImgUrl1 =
  21542. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  21543. // encodeURIComponent(_url);
  21544. }
  21545. } else if (_chapterData[taskCount][0].type == 13) {
  21546. // this.showType = 4;
  21547. // this.pptImgUrl1 = _url;
  21548. } else if (_chapterData[taskCount][0].type == 6) {
  21549. this.showType = 1;
  21550. this.text = this.textList[taskCount][0];
  21551. } else if (_chapterData[taskCount][0].type == 16) {
  21552. this.showType = 16;
  21553. this.pptImgUrl1 = _url;
  21554. } else if (_chapterData[taskCount][0].type == 17) {
  21555. this.showType = 16;
  21556. this.pptImgUrl1 = _url;
  21557. }
  21558. }
  21559. }
  21560. this.isClickNav = 0;
  21561. if (
  21562. !_chapterData[taskCount].length ||
  21563. _chapterData[taskCount][0].type == 12
  21564. ) {
  21565. this.isClickNav = "";
  21566. // this.showType = "";
  21567. }
  21568. if (this.tType == 2) {
  21569. _chapterData.forEach((e,i)=>{
  21570. if (e.length) {
  21571. let yym = e.filter(k=>{
  21572. if(!converter(k.name).includes(converter("教案"))){
  21573. return k
  21574. }
  21575. })
  21576. _chapterData[i] = yym
  21577. }
  21578. })
  21579. }
  21580. this.vChapterData = _chapterData;
  21581. this.$forceUpdate();
  21582. }
  21583. if (res.data[0][0].setting) {
  21584. try {
  21585. this.languageSetting =
  21586. JSON.parse(res.data[0][0].setting).languageSetting ||
  21587. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21588. ? JSON.parse(res.data[0][0].setting).languageSetting
  21589. : 0;
  21590. } catch (error) {
  21591. console.error(error);
  21592. }
  21593. }
  21594. // finalMarkList用来判断哪个工具为评分工具
  21595. if (this.courseDetail.state == 6) {
  21596. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21597. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21598. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21599. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21600. // // 没有的话在选其他工具为评分工具
  21601. // if(adc.length > 0){
  21602. // for (let k = chap.length - 1; k >= 0; k--) {
  21603. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21604. // this.finalMarkList = k;
  21605. // break;
  21606. // }
  21607. // }
  21608. // }else{
  21609. // for (let k = chap.length - 1; k >= 0; k--) {
  21610. // 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) {
  21611. // this.finalMarkList = k;
  21612. // break;
  21613. // }
  21614. // }
  21615. // }
  21616. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21617. // 不然会无限循环报错,会很难受
  21618. let aiSNum = 0;
  21619. if (
  21620. chapInfoListCopy[this.taskCount].eList &&
  21621. chapInfoListCopy[this.taskCount].eList.length
  21622. ) {
  21623. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21624. if (e.isai == 2) {
  21625. aiSNum++;
  21626. }
  21627. });
  21628. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21629. this.isaiNum = aiSNum;
  21630. } else {
  21631. this.isaiNum = 0;
  21632. }
  21633. // for (
  21634. // let k = 0;
  21635. // k < chapInfoListCopy[this.taskCount].eList.length;
  21636. // k++
  21637. // ) {
  21638. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21639. // this.againEva(this.taskCount, k);
  21640. // }
  21641. // }
  21642. }
  21643. }
  21644. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21645. if (type == 10) {
  21646. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21647. console.log('this.userid',this.userid);
  21648. if (this.courseDetail.userid == this.userid) {
  21649. // 开局关闭学生查看内容
  21650. this.StulookMode(true)
  21651. // 开局打开跟随模式
  21652. this.followingMode(true)
  21653. }
  21654. }
  21655. // else {
  21656. // this.courseDetail = res.data[0][0];
  21657. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21658. // }
  21659. let _this = this;
  21660. if (_this.timer) {
  21661. clearInterval(_this.timer);
  21662. _this.timer = null;
  21663. }
  21664. // if (_this.timer2) {
  21665. // clearInterval(_this.timer2);
  21666. // _this.timer2 = null;
  21667. // }
  21668. if (_this.tcid) {
  21669. _this.getCourseGroup(gindex);
  21670. } else {
  21671. _this.selectSWorks(gindex);
  21672. }
  21673. _this.selectStudent();
  21674. _this.selectSLook();
  21675. _this.getPick();
  21676. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21677. // _this.setCTask();
  21678. // }
  21679. if (_this.dialogVisibleGroup) {
  21680. _this.groupJson =
  21681. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21682. _this.taskCount
  21683. ].toolChoose[_this.toolindex].groupJson;
  21684. }
  21685. _this.$nextTick(() => {
  21686. setTimeout(() => {
  21687. _this.checkEva();
  21688. }, 1000);
  21689. });
  21690. _this.timer = setInterval(function () {
  21691. // _this.getCourseDetail(2);
  21692. if (_this.tcid) {
  21693. _this.getCourseGroup();
  21694. } else {
  21695. _this.selectSWorks();
  21696. }
  21697. _this.selectStudent();
  21698. _this.selectSLook();
  21699. _this.getPick();
  21700. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21701. // _this.setCTask();
  21702. // }
  21703. if (_this.dialogVisibleGroup) {
  21704. _this.groupJson =
  21705. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21706. _this.taskCount
  21707. ].toolChoose[_this.toolindex].groupJson;
  21708. }
  21709. if (_this.tType == 4 || _this.ispzType == 4) {
  21710. _this.selectPz();
  21711. }
  21712. }, 5000);
  21713. if (_this.timer2 == null) {
  21714. _this.timer2 = setInterval(()=> {
  21715. _this.getSplitScreenData();//获取分屏数据
  21716. }, 5000);
  21717. }
  21718. _this.$nextTick(function () {
  21719. setTimeout(() => {
  21720. // var a =
  21721. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21722. // document.getElementsByClassName("vedioList")[0].style.height =
  21723. // a + "px";
  21724. // document.getElementsByClassName("navBox")[0].style.height =
  21725. // a - 40 + "px";
  21726. // if (_this.vedio[_this.taskCount].length > 0) {
  21727. // _this.vedioTime = [];
  21728. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21729. // _this.vedioTime[i] = document.getElementsByClassName(
  21730. // "vjs-duration-display"
  21731. // )[i].textContent;
  21732. // }
  21733. // }
  21734. }, 1000);
  21735. });
  21736. })
  21737. .catch((err) => {
  21738. loading.close();
  21739. console.error(err);
  21740. });
  21741. },
  21742. getCourseGroup(gindex) {
  21743. if(this.getCourseGroupLoading) return
  21744. this.getCourseGroupLoading = true
  21745. let params = {
  21746. cid: this.id,
  21747. classid: this.tcid ? this.tcid : "1",
  21748. };
  21749. this.ajax
  21750. .get(this.$store.state.api + "getCourseGroup", params)
  21751. .then((res) => {
  21752. if (res.data && res.data[0].length) {
  21753. if (!this.isGroup) {
  21754. let courseGroup = JSON.parse(res.data[0][0].group);
  21755. courseGroup.group = courseGroup.group.filter((el) => {
  21756. el.works = [];
  21757. return el;
  21758. });
  21759. if (courseGroup.isopen == 2) {
  21760. this.isGroup = false;
  21761. this.selectSWorks(gindex);
  21762. return;
  21763. }
  21764. this.courseGroup = courseGroup;
  21765. let groupPerson = res.data[1];
  21766. let group = JSON.parse(res.data[0][0].group).group;
  21767. let courseGroupStudent = {};
  21768. let courseGroupStudentUid = {};
  21769. for (var i = 0; i < group.length; i++) {
  21770. courseGroupStudent[group[i].id] = [];
  21771. courseGroupStudentUid[group[i].id] = [];
  21772. for (var j = 0; j < groupPerson.length; j++) {
  21773. if (groupPerson[j].groupCid == group[i].id) {
  21774. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21775. courseGroupStudentUid[group[i].id].push(
  21776. groupPerson[j].userid
  21777. );
  21778. }
  21779. }
  21780. }
  21781. this.courseGroupStudent = courseGroupStudent;
  21782. this.courseGroupStudentUid = courseGroupStudentUid;
  21783. }
  21784. if (this.courseGroup.isopen == 2) {
  21785. this.isGroup = false;
  21786. } else {
  21787. this.isGroup = true;
  21788. }
  21789. this.selectSWorks(gindex);
  21790. } else {
  21791. this.selectSWorks(gindex);
  21792. this.isGroup = false;
  21793. }
  21794. this.getCourseGroupLoading = false
  21795. })
  21796. .catch((err) => {
  21797. this.getCourseGroupLoading = false
  21798. // this.$message.error("网络不佳");
  21799. console.error(err);
  21800. });
  21801. },
  21802. setOperationTime() {
  21803. let _this = this;
  21804. if (_this.opertimer) {
  21805. clearInterval(_this.opertimer);
  21806. _this.opertimer = null;
  21807. }
  21808. _this.opertimer = setInterval(() => {
  21809. _this.setoTime("600");
  21810. }, 600000);
  21811. },
  21812. setoTime(time) {
  21813. let params = [
  21814. {
  21815. uid: this.userid,
  21816. cid: this.id,
  21817. type: "2",
  21818. time: time,
  21819. },
  21820. ];
  21821. this.ajax
  21822. .post(this.$store.state.api + "addOperationTimeT2", params)
  21823. .then((res) => {})
  21824. .catch((err) => {
  21825. console.error(err);
  21826. });
  21827. },
  21828. addPz(type, content) {
  21829. if (type == "1" && this.pzConText == "") {
  21830. this.$message.error("评论不能为空!");
  21831. return;
  21832. }
  21833. let params = [
  21834. {
  21835. cid: this.id,
  21836. uid: this.userid,
  21837. s: this.courseType,
  21838. t: this.taskCount,
  21839. c: type == "1" ? this.pzConText : content,
  21840. type: type,
  21841. },
  21842. ];
  21843. this.ajax
  21844. .post(this.$store.state.api + "addPz2", params)
  21845. .then((res) => {
  21846. this.$message({
  21847. message: "添加成功",
  21848. type: "success",
  21849. });
  21850. this.pzConText = "";
  21851. this.addPzDialog = false;
  21852. this.selectPz();
  21853. if(this.tType!=2){
  21854. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21855. }
  21856. })
  21857. .catch((err) => {
  21858. this.$message.error("添加失败");
  21859. console.error(err);
  21860. });
  21861. },
  21862. setReplyIndex(id, i) {
  21863. this.replyIndex = i;
  21864. this.replyPid = id;
  21865. this.replyDialogVisible = true;
  21866. },
  21867. addHf() {
  21868. if (this.reply == "") {
  21869. this.$message.error("回复不能为空!");
  21870. return;
  21871. }
  21872. let params = [
  21873. {
  21874. cid: this.id,
  21875. uid: this.userid,
  21876. s: this.courseType,
  21877. t: this.taskCount,
  21878. type: "1",
  21879. ct: 2,
  21880. pid: this.replyPid,
  21881. c: this.reply,
  21882. },
  21883. ];
  21884. this.ajax
  21885. .post(this.$store.state.api + "addHf", params)
  21886. .then((res) => {
  21887. this.reply = "";
  21888. this.$message({
  21889. message: "回复成功",
  21890. type: "success",
  21891. });
  21892. this.replyDialogVisible = false;
  21893. this.selectPz();
  21894. })
  21895. .catch((err) => {
  21896. this.$message.error("回复失败");
  21897. console.error(err);
  21898. });
  21899. },
  21900. deletePz(id) {
  21901. this.$confirm("确定删除此评论吗?", "提示", {
  21902. confirmButtonText: "确定",
  21903. cancelButtonText: "取消",
  21904. type: "warning",
  21905. })
  21906. .then(() => {
  21907. let params = [
  21908. {
  21909. id: id,
  21910. },
  21911. ];
  21912. this.ajax
  21913. .post(this.$store.state.api + "deletePz", params)
  21914. .then((res) => {
  21915. this.$message({
  21916. message: "删除成功",
  21917. type: "success",
  21918. });
  21919. this.selectPz();
  21920. })
  21921. .catch((err) => {
  21922. this.$message.error("网络异常");
  21923. console.error(err);
  21924. });
  21925. })
  21926. .catch(() => {});
  21927. },
  21928. deleteReply(id) {
  21929. this.$confirm("确定删除此回复吗?", "提示", {
  21930. confirmButtonText: "确定",
  21931. cancelButtonText: "取消",
  21932. type: "warning",
  21933. })
  21934. .then(() => {
  21935. let params = [
  21936. {
  21937. id: id,
  21938. },
  21939. ];
  21940. this.ajax
  21941. .post(this.$store.state.api + "deleteReply", params)
  21942. .then((res) => {
  21943. this.$message({
  21944. message: "删除成功",
  21945. type: "success",
  21946. });
  21947. this.selectPz();
  21948. })
  21949. .catch((err) => {
  21950. this.$message.error("网络异常");
  21951. console.error(err);
  21952. });
  21953. })
  21954. .catch(() => {});
  21955. },
  21956. setPz() {
  21957. if (this.ispzType == 4) {
  21958. this.ispzType = 0;
  21959. this.pzDialog = false;
  21960. return;
  21961. }
  21962. this.ispzType = 4;
  21963. this.pzDialog = true;
  21964. this.selectPz();
  21965. },
  21966. selectPz() {
  21967. if(this.selectPzLoading) return
  21968. this.selectPzLoading = true
  21969. let params = {
  21970. cid: this.id,
  21971. s: this.courseType,
  21972. t: this.taskCount,
  21973. type: this.pzStype,
  21974. uid: this.userid,
  21975. };
  21976. this.ajax
  21977. .get(this.$store.state.api + "selectPzListType", params)
  21978. .then((res) => {
  21979. this.pzList = res.data[0];
  21980. var a = res.data[1];
  21981. for (var i = 0; i < a.length; i++) {
  21982. for (var j = 0; j < this.pzList.length; j++) {
  21983. if (!this.pzList[j].hfList) {
  21984. this.pzList[j].hfList = [];
  21985. }
  21986. if (a[i].pid == this.pzList[j].id) {
  21987. this.pzList[j].hfList.push(a[i]);
  21988. }
  21989. }
  21990. }
  21991. this.selectPzLoading = false
  21992. })
  21993. .catch((err) => {
  21994. this.selectPzLoading = false
  21995. console.error(err);
  21996. });
  21997. },
  21998. // selectHf() {
  21999. // let params = {
  22000. // cid: this.id,
  22001. // s: this.courseType,
  22002. // t: this.taskCount,
  22003. // };
  22004. // this.ajax
  22005. // .get(this.$store.state.api + "selectHfList", params)
  22006. // .then((res) => {
  22007. // var a = res.data[0];
  22008. // for (var i = 0; i < a.length; i++) {
  22009. // for (var j = 0; j < this.pzList.length; j++) {
  22010. // if (!this.pzList[i].hfList) {
  22011. // this.pzList[i].hfList = [];
  22012. // }
  22013. // if (a[i].pid == this.pzList[j].id) {
  22014. // this.pzList[i].hfList.push(a[i]);
  22015. // }
  22016. // }
  22017. // }
  22018. // })
  22019. // .catch((err) => {
  22020. // console.error(err);
  22021. // });
  22022. // },
  22023. updateSLook() {
  22024. let params = {
  22025. sopen: this.sIsOpen == false ? 1 : 2,
  22026. cid: this.id,
  22027. };
  22028. this.ajax
  22029. .get(this.$store.state.api + "updateCourseSLook", params)
  22030. .then((res) => {
  22031. if (this.sIsOpen == true) {
  22032. this.$message({
  22033. message: "权限设置成功",
  22034. type: "success",
  22035. });
  22036. } else {
  22037. this.$message({
  22038. message: "权限关闭成功",
  22039. type: "success",
  22040. });
  22041. }
  22042. })
  22043. .catch((err) => {
  22044. console.error(err);
  22045. });
  22046. },
  22047. updateIsStulook(){
  22048. let params = [
  22049. {
  22050. sopen: this.IsStulook == false ? 2 : 1,
  22051. cid: this.id
  22052. }
  22053. ];
  22054. this.ajax
  22055. .post(this.$store.state.api + "updateCourseStulook", params)
  22056. .then(res => {
  22057. if (this.IsStulook == true) {
  22058. this.$message({
  22059. message: "学生查看内容资料权限已开启",
  22060. type: "success"
  22061. });
  22062. } else {
  22063. this.$message({
  22064. message: "关闭学生查看内容资料权限",
  22065. type: "success"
  22066. });
  22067. }
  22068. // this.setCTask();
  22069. })
  22070. .catch(err => {
  22071. console.error(err);
  22072. });
  22073. },
  22074. updateFollow() {
  22075. let params = [
  22076. {
  22077. sopen: this.IsFollow == false ? 1 : 2,
  22078. cid: this.id,
  22079. },
  22080. ];
  22081. this.ajax
  22082. .post(this.$store.state.api + "updateCourseFollow", params)
  22083. .then((res) => {
  22084. if (this.IsFollow == true) {
  22085. this.$message({
  22086. message: "跟随模式已开启",
  22087. type: "success",
  22088. });
  22089. } else {
  22090. this.$message({
  22091. message: "跟随模式已关闭",
  22092. type: "success",
  22093. });
  22094. }
  22095. this.setCTask();
  22096. })
  22097. .catch((err) => {
  22098. console.error(err);
  22099. });
  22100. },
  22101. setCTask() {
  22102. let params = [
  22103. {
  22104. sopen: this.courseType + "-" + this.taskCount,
  22105. cid: this.id,
  22106. },
  22107. ];
  22108. this.ajax
  22109. .post(this.$store.state.api + "updateCourseFollowC", params)
  22110. .then((res) => {})
  22111. .catch((err) => {
  22112. console.error(err);
  22113. });
  22114. },
  22115. updateLookOpen() {
  22116. let params = [
  22117. {
  22118. sopen: this.IsLookOpen == false ? 1 : 2,
  22119. cid: this.id,
  22120. },
  22121. ];
  22122. this.ajax
  22123. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22124. .then((res) => {
  22125. if (this.IsLookOpen == true) {
  22126. // if (this.courseType != 0 && this.taskCount != 0) {
  22127. // this.openTask(0, 0, "0-0");
  22128. // }
  22129. this.$message({
  22130. message: "权限设置成功",
  22131. type: "success",
  22132. });
  22133. } else {
  22134. this.$message({
  22135. message: "权限关闭成功",
  22136. type: "success",
  22137. });
  22138. }
  22139. this.getCourseState(2);
  22140. })
  22141. .catch((err) => {
  22142. console.error(err);
  22143. });
  22144. },
  22145. selectSLook() {
  22146. if(this.selectSLookLoading) return
  22147. this.selectSLookLoading = true
  22148. let params = {
  22149. cid: this.id,
  22150. };
  22151. this.ajax
  22152. .get(this.$store.state.api + "selectCourseSLook", params)
  22153. .then((res) => {
  22154. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22155. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22156. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22157. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22158. if (!this.IsLookOpen) {
  22159. this.setNavList();
  22160. } else {
  22161. this.getCourseState(1);
  22162. }
  22163. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  22164. this.setContent2(false);
  22165. let _followC = res.data[0][0].followC.split("-");
  22166. if (
  22167. this.courseType != _followC[0] ||
  22168. this.taskCount != _followC[1]
  22169. ) {
  22170. this.navList[this.courseType].isOpen = false;
  22171. this.courseType = _followC[0];
  22172. this.navList[this.courseType].isOpen = true;
  22173. this.taskCount = parseInt(_followC[1]);
  22174. this.navId = res.data[0][0].followC;
  22175. document.scrollingElement.scrollTop = 0;
  22176. this.getCourseDetail(2);
  22177. }
  22178. }
  22179. this.selectSLookLoading = false
  22180. })
  22181. .catch((err) => {
  22182. this.selectSLookLoading = false
  22183. console.error(err);
  22184. });
  22185. },
  22186. setNavList() {
  22187. if (this.navList.length == 0) {
  22188. this.navList = [];
  22189. var copyList = [];
  22190. for (var l = 0; l < this.chapInfoList.length; l++) {
  22191. var q = this.chapInfoList[l].dyName;
  22192. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22193. var e;
  22194. copyList.push({
  22195. dyName: q,
  22196. isOpen: l === 0 ? true : false,
  22197. task: [],
  22198. });
  22199. for (var r = 0; r < w.length; r++) {
  22200. e = w[r].task;
  22201. if (this.chapInfoList[l].easy == 1) {
  22202. copyList[l].task.push({
  22203. taskName: q,
  22204. id: l + "-" + r,
  22205. isLook: w[r].isLook,
  22206. isOpen: r === 0 ? true : false,
  22207. tool: [],
  22208. });
  22209. } else {
  22210. copyList[l].task.push({
  22211. taskName: e,
  22212. id: l + "-" + r,
  22213. isLook: w[r].isLook,
  22214. isOpen: r === 0 ? true : false,
  22215. tool: [],
  22216. });
  22217. }
  22218. var t = w[r].toolChoose;
  22219. for (var k = 0; k < t.length; k++) {
  22220. var tool = t[k].tool[0];
  22221. copyList[l].task[r].tool.push({
  22222. tool: tool,
  22223. isTool: false,
  22224. });
  22225. }
  22226. // this.navId = this.navId ? this.navId : l + "-" + r;
  22227. // this.navId = l + "-" + r;
  22228. }
  22229. }
  22230. this.navList = copyList;
  22231. this.navList[0].isOpen = false;
  22232. this.navList[this.courseType].isOpen = true;
  22233. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22234. } else {
  22235. this.setNavList2();
  22236. }
  22237. },
  22238. setNavList2() {
  22239. for (var l = 0; l < this.chapInfoList.length; l++) {
  22240. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22241. for (var r = 0; r < w.length; r++) {
  22242. this.navList[l].task[r].isLook = w[r].isLook;
  22243. }
  22244. }
  22245. if (
  22246. this.IsLookOpen &&
  22247. !this.navList[this.courseType].task[this.taskCount].isLook
  22248. ) {
  22249. this.openTask(0, 0, "0-0");
  22250. }
  22251. this.$forceUpdate();
  22252. },
  22253. getCourseState(type) {
  22254. let params = {
  22255. cid: this.id,
  22256. };
  22257. this.ajax
  22258. .get(this.$store.state.api + "getCourseState", params)
  22259. .then((res) => {
  22260. // if (res.data[0].length > 0) {
  22261. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22262. // }
  22263. if (res.data[0].length > 0 && type == 1) {
  22264. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22265. this.setNavList();
  22266. this.$forceUpdate();
  22267. } else if (res.data[0].length > 0 && type == 2) {
  22268. this.addCourseState(2);
  22269. } else {
  22270. // this.addCourseState(1);
  22271. }
  22272. })
  22273. .catch((err) => {
  22274. console.error(err);
  22275. });
  22276. },
  22277. addCourseState(type,val = '') {
  22278. let _state = val ? val : this.chapInfoList;
  22279. // this.courseType this.taskCount
  22280. if (type == 1 || type == 2) {
  22281. for (var i = 0; i < _state.length; i++) {
  22282. let el = _state[i].chapterInfo[0].taskJson;
  22283. for (var j = 0; j < el.length; j++) {
  22284. // if (i == 0 && j == 0) {
  22285. // el[j].isLook = true;
  22286. // } else {
  22287. // el[j].isLook = false;
  22288. // }
  22289. if (
  22290. this.courseType > i ||
  22291. (this.courseType == i && this.taskCount + 1 > j)
  22292. ) {
  22293. el[j].isLook = true;
  22294. } else {
  22295. el[j].isLook = false;
  22296. }
  22297. }
  22298. }
  22299. }
  22300. let params = [
  22301. {
  22302. cid: this.id,
  22303. state: JSON.stringify(_state),
  22304. },
  22305. ];
  22306. this.ajax
  22307. .post(
  22308. this.$store.state.api +
  22309. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22310. params
  22311. )
  22312. .then((res) => {
  22313. if (this.IsLookOpen) {
  22314. this.setNavList();
  22315. }
  22316. if (type == 3 && type == 2) {
  22317. this.getCourseState(1);
  22318. }
  22319. })
  22320. .catch((err) => {
  22321. console.error(err);
  22322. });
  22323. },
  22324. getHomeWork() {
  22325. let params = {
  22326. cid: this.id,
  22327. stage: this.courseType,
  22328. task: this.taskCount,
  22329. uid: this.userid,
  22330. };
  22331. this.ajax
  22332. .get(this.$store.state.api + "selectWork", params)
  22333. .then((res) => {
  22334. if (res.data[0].length > 0) {
  22335. this.studyJuri = JSON.parse(res.data[0][0].content);
  22336. this.isNoHomeWork = true;
  22337. }
  22338. })
  22339. .catch((err) => {
  22340. console.error(err);
  22341. });
  22342. },
  22343. isAssetTypeAnImage(ext) {
  22344. return (
  22345. [
  22346. "png",
  22347. "jpg",
  22348. "jpeg",
  22349. "bmp",
  22350. "gif",
  22351. "webp",
  22352. "psd",
  22353. "svg",
  22354. "tiff",
  22355. ].indexOf(ext) !== -1
  22356. );
  22357. },
  22358. switchVideo(media) {
  22359. this.playerO = {};
  22360. this.playerOptions.poster = "";
  22361. this.playerOptions.sources[0].src = media;
  22362. this.playerO = this.playerOptions;
  22363. },
  22364. onPlayerPlay() {},
  22365. onPlayerTimeupdate(player) {
  22366. let gklog = player.cache_.currentTime; //当前播放的秒数
  22367. let a = player.cache_.duration; //视频的总时长
  22368. let gklog2 = parseInt(gklog);
  22369. // if(gklog2 == '3'){
  22370. // player.pause()
  22371. // setTimeout(()=>{
  22372. // player.currentTime(gklog2+1)
  22373. // player.play()
  22374. // },1000)
  22375. // }
  22376. console.log(" onPlayerTimeupdate!", gklog);
  22377. console.log(" onPlayerTimeupdate!", gklog2);
  22378. },
  22379. lookVedio(u, i) {
  22380. this.isClickNav = "";
  22381. // this.playerOptions.sources[0].src = u;
  22382. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22383. d.sources[0].src = u;
  22384. this.playerO[0] = d;
  22385. this.showType = 0;
  22386. // this.isClickNav = "video" + i;
  22387. this.isClickNav = i;
  22388. this.$forceUpdate();
  22389. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  22390. },
  22391. lookText(i, t) {
  22392. this.isClickNav = "";
  22393. // this.text = this.textList[i][t];
  22394. this.text = this.vChapterData[i][t];
  22395. // this.dialogVisible1 = true;
  22396. this.showType = 1;
  22397. // this.isClickNav = "text" + t;
  22398. this.isClickNav = t;
  22399. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  22400. },
  22401. lookTools(i, t) {
  22402. this.chapTools = this.chapToolList[i][t];
  22403. this.dialogVisible2 = true;
  22404. },
  22405. async openFile(f) {
  22406. this.pptImgUrl = "";
  22407. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22408. if (
  22409. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22410. -1
  22411. ) {
  22412. let _uuurl = await this.checkLink(f);
  22413. console.log(_uuurl)
  22414. this.pptImgUrl =
  22415. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22416. this.showPDF = false;
  22417. this.dialogVisible3 = true;
  22418. } else if (
  22419. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22420. ) {
  22421. this.pptImgUrl = f;
  22422. this.showPDF = true;
  22423. this.dialogVisible3 = true;
  22424. }
  22425. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  22426. },
  22427. openTable(f) {
  22428. this.tableJson = JSON.parse(f.works);
  22429. this.dialogVisibleTable2 = true;
  22430. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22431. },
  22432. openWord(f) {
  22433. this.tableJson = JSON.parse(f.works);
  22434. this.dialogVisibleTable3 = true;
  22435. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22436. },
  22437. doUrl(url, i) {
  22438. this.isClickNav = "";
  22439. this.pptImgUrl1 = "";
  22440. this.showType = 2;
  22441. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22442. url = "https://" + url;
  22443. }
  22444. this.pptImgUrl1 = "";
  22445. this.diffKey = new Date().getTime();
  22446. setTimeout(() => {
  22447. this.pptImgUrl1 = url;
  22448. }, 500);
  22449. // this.isClickNav = "line" + i;
  22450. this.isClickNav = i;
  22451. this.$forceUpdate();
  22452. },
  22453. checkPhoto(f, i) {
  22454. this.showType = 4;
  22455. this.pptImgUrl1 = f.url;
  22456. this.isClickNav = i;
  22457. this.$forceUpdate();
  22458. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22459. },
  22460. checkHtml(f, i){
  22461. this.showType = 16;
  22462. this.pptImgUrl1 = f.url;
  22463. this.isClickNav = i;
  22464. this.$forceUpdate();
  22465. },
  22466. async downFile(f, i) {
  22467. this.isClickNav = "";
  22468. this.pptImgUrl1 = "";
  22469. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22470. if (
  22471. a.indexOf(
  22472. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22473. ) != -1
  22474. ) {
  22475. let _uuurl = await this.checkLink(f.url);
  22476. console.log(_uuurl)
  22477. this.pptImgUrl1 =
  22478. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22479. // this.dialogVisible3 = true;
  22480. this.showType = 2;
  22481. } else if (
  22482. this.isAssetTypeAnImage(
  22483. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22484. )
  22485. ) {
  22486. this.showType = 4;
  22487. this.pptImgUrl1 = f.url;
  22488. } else if (
  22489. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22490. "PDF"
  22491. ) {
  22492. this.pptImgUrl1 = f.url;
  22493. // this.dialogVisible3 = true;
  22494. this.showType = 3;
  22495. } else {
  22496. window.open(this.file[i].url);
  22497. }
  22498. // this.isClickNav = "word" + i;
  22499. this.isClickNav = i;
  22500. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22501. },
  22502. downFileList(i) {
  22503. window.open(this.noImgList[i].url);
  22504. },
  22505. openAddWork() {
  22506. this.dialogVisible = true;
  22507. },
  22508. addBzWorks() {
  22509. let params = [
  22510. {
  22511. uid: this.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. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22521. this.homeWorkLoading = true
  22522. this.ajax
  22523. .post(this.$store.state.api + "addCourseWorks", params)
  22524. .then((res) => {
  22525. this.$message({
  22526. message: "提交成功",
  22527. type: "success",
  22528. });
  22529. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22530. setTimeout(() => {
  22531. this.homeWorkLoading = false
  22532. }, 500);
  22533. this.eScore = { eBzText: "", eStar: [] };
  22534. this.studentEvalDialogVisible = false;
  22535. this.selectSWorks();
  22536. })
  22537. .catch((err) => {
  22538. this.$message.error("提交失败");
  22539. console.error(err);
  22540. setTimeout(() => {
  22541. this.homeWorkLoading = false
  22542. }, 500);
  22543. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22544. });
  22545. },
  22546. addBzWorksTeacher() {
  22547. let params = [
  22548. {
  22549. uid: this.sStudent.userid,
  22550. cid: this.id,
  22551. stage: this.courseType,
  22552. task: this.taskCount,
  22553. tool: this.toolindex,
  22554. content: JSON.stringify(this.eScore),
  22555. type: 6,
  22556. },
  22557. ];
  22558. this.ajax
  22559. .post(this.$store.state.api + "addCourseWorks", params)
  22560. .then((res) => {
  22561. this.$message({
  22562. message: "提交成功",
  22563. type: "success",
  22564. });
  22565. this.eScore = { eBzText: "", eStar: [] };
  22566. this.studentEvalDialogVisibleTeacher = false;
  22567. this.selectSWorks();
  22568. })
  22569. .catch((err) => {
  22570. this.$message.error("提交失败");
  22571. console.error(err);
  22572. });
  22573. },
  22574. addStudentAsk() {
  22575. if (!this.radio.length) {
  22576. this.$message.error("请选择选项");
  22577. return;
  22578. }
  22579. for (var i = 0; i < this.askJson.askCount; i++) {
  22580. if (
  22581. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22582. (this.radio[i] !== 0 && !this.radio[i])
  22583. ) {
  22584. this.$message.error("请选择选项");
  22585. return;
  22586. }
  22587. }
  22588. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22589. let params = [
  22590. {
  22591. uid: this.userid,
  22592. cid: this.id,
  22593. stage: this.courseType,
  22594. task: this.taskCount,
  22595. tool: this.toolindex,
  22596. content: JSON.stringify(this.askList),
  22597. type: 2,
  22598. },
  22599. ];
  22600. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22601. this.homeWorkLoading = true
  22602. this.ajax
  22603. .post(this.$store.state.api + "addCourseWorks", params)
  22604. .then((res) => {
  22605. this.$message({
  22606. message: "提交成功",
  22607. type: "success",
  22608. });
  22609. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22610. setTimeout(() => {
  22611. this.homeWorkLoading = false
  22612. }, 500);
  22613. this.askList = [];
  22614. this.dialogVisible5 = false;
  22615. this.selectStudent();
  22616. this.selectSWorks();
  22617. this.selectSLook();
  22618. })
  22619. .catch((err) => {
  22620. this.$message.error("提交失败");
  22621. console.error(err);
  22622. setTimeout(() => {
  22623. this.homeWorkLoading = false
  22624. }, 500);
  22625. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22626. });
  22627. },
  22628. addStudentAskTeacher() {
  22629. if (!this.radio.length) {
  22630. this.$message.error("请选择选项");
  22631. return;
  22632. }
  22633. for (var i = 0; i < this.askJson.askCount; i++) {
  22634. if (
  22635. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22636. (this.radio[i] !== 0 && !this.radio[i])
  22637. ) {
  22638. this.$message.error("请选择选项");
  22639. return;
  22640. }
  22641. }
  22642. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22643. let params = [
  22644. {
  22645. uid: this.sStudent.userid,
  22646. cid: this.id,
  22647. stage: this.courseType,
  22648. task: this.taskCount,
  22649. tool: this.toolindex,
  22650. content: JSON.stringify(this.askList),
  22651. type: 2,
  22652. },
  22653. ];
  22654. this.ajax
  22655. .post(this.$store.state.api + "addCourseWorks", params)
  22656. .then((res) => {
  22657. this.$message({
  22658. message: "提交成功",
  22659. type: "success",
  22660. });
  22661. this.askList = [];
  22662. this.dialogVisible5Teacher = false;
  22663. this.selectStudent();
  22664. this.selectSWorks();
  22665. this.selectSLook();
  22666. })
  22667. .catch((err) => {
  22668. this.$message.error("提交失败");
  22669. console.error(err);
  22670. });
  22671. },
  22672. addStudentTest() {
  22673. if (!this.radio.length) {
  22674. this.$message.error("请选择选项");
  22675. return;
  22676. }
  22677. for (var i = 0; i < this.testJson.testCount; i++) {
  22678. if (
  22679. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22680. (this.radio[i] !== 0 && !this.radio[i])
  22681. ) {
  22682. this.$message.error("请选择选项");
  22683. return;
  22684. }
  22685. }
  22686. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22687. let params = [
  22688. {
  22689. uid: this.userid,
  22690. cid: this.id,
  22691. stage: this.courseType,
  22692. task: this.taskCount,
  22693. tool: this.toolindex,
  22694. content: JSON.stringify(this.askList),
  22695. type: 8,
  22696. },
  22697. ];
  22698. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22699. this.homeWorkLoading = true
  22700. this.ajax
  22701. .post(this.$store.state.api + "addCourseWorks", params)
  22702. .then((res) => {
  22703. this.$message({
  22704. message: "提交成功",
  22705. type: "success",
  22706. });
  22707. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22708. setTimeout(() => {
  22709. this.homeWorkLoading = false
  22710. }, 500);
  22711. this.askList = [];
  22712. this.dialogVisibleChoice = false;
  22713. this.selectStudent();
  22714. this.selectSWorks();
  22715. this.selectSLook();
  22716. })
  22717. .catch((err) => {
  22718. this.$message.error("提交失败");
  22719. console.error(err);
  22720. setTimeout(() => {
  22721. this.homeWorkLoading = false
  22722. }, 500);
  22723. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22724. });
  22725. },
  22726. addStudentTestTeacher() {
  22727. if (!this.radio.length) {
  22728. this.$message.error("请选择选项");
  22729. return;
  22730. }
  22731. for (var i = 0; i < this.testJson.testCount; i++) {
  22732. if (
  22733. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22734. (this.radio[i] !== 0 && !this.radio[i])
  22735. ) {
  22736. this.$message.error("请选择选项");
  22737. return;
  22738. }
  22739. }
  22740. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22741. let params = [
  22742. {
  22743. uid: this.sStudent.userid,
  22744. cid: this.id,
  22745. stage: this.courseType,
  22746. task: this.taskCount,
  22747. tool: this.toolindex,
  22748. content: JSON.stringify(this.askList),
  22749. type: 8,
  22750. },
  22751. ];
  22752. this.ajax
  22753. .post(this.$store.state.api + "addCourseWorks", params)
  22754. .then((res) => {
  22755. this.$message({
  22756. message: "提交成功",
  22757. type: "success",
  22758. });
  22759. this.askList = [];
  22760. this.dialogVisibleChoiceTeacher = false;
  22761. this.selectStudent();
  22762. this.selectSWorks();
  22763. this.selectSLook();
  22764. })
  22765. .catch((err) => {
  22766. this.$message.error("提交失败");
  22767. console.error(err);
  22768. });
  22769. },
  22770. addWork() {
  22771. if (this.studyJuri[0].content == "") {
  22772. this.$message.error("请将信息填写完整");
  22773. return;
  22774. } else if (this.studyJuri[0].cover.length == 0) {
  22775. this.$message.error("请将信息填写完整");
  22776. return;
  22777. } else if (this.studyJuri[0].upVedio.length == 0) {
  22778. this.$message.error("请将信息填写完整");
  22779. return;
  22780. }
  22781. if (this.isNoHomeWork) {
  22782. this.$confirm(
  22783. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22784. "提示",
  22785. {
  22786. confirmButtonText: "确定",
  22787. cancelButtonText: "取消",
  22788. type: "warning",
  22789. }
  22790. )
  22791. .then(() => {
  22792. let params = [
  22793. {
  22794. uid: this.userid,
  22795. cid: this.id,
  22796. stage: this.courseType,
  22797. task: this.taskCount,
  22798. content: JSON.stringify(this.studyJuri),
  22799. },
  22800. ];
  22801. this.ajax
  22802. .post(this.$store.state.api + "addWorks", params)
  22803. .then((res) => {
  22804. this.$message({
  22805. message: "提交成功",
  22806. type: "success",
  22807. });
  22808. this.isNoHomeWork = true;
  22809. this.dialogVisible = false;
  22810. })
  22811. .catch((err) => {
  22812. this.$message.error("提交失败");
  22813. console.error(err);
  22814. });
  22815. })
  22816. .catch(() => {});
  22817. } else {
  22818. let params = [
  22819. {
  22820. uid: this.userid,
  22821. cid: this.id,
  22822. stage: this.courseType,
  22823. task: this.taskCount,
  22824. content: JSON.stringify(this.studyJuri),
  22825. },
  22826. ];
  22827. this.ajax
  22828. .post(this.$store.state.api + "addWorks", params)
  22829. .then((res) => {
  22830. this.$message({
  22831. message: "提交成功",
  22832. type: "success",
  22833. });
  22834. this.isNoHomeWork = true;
  22835. this.dialogVisible = false;
  22836. })
  22837. .catch((err) => {
  22838. this.$message.error("提交失败");
  22839. console.error(err);
  22840. });
  22841. }
  22842. },
  22843. selectCount() {
  22844. let params = {
  22845. cid: this.id,
  22846. chid: this.courseType,
  22847. uid: this.userid,
  22848. };
  22849. this.ajax
  22850. .get(this.$store.state.api + "selectToolsCount", params)
  22851. .then((res) => {
  22852. for (var i = 0; i < res.data[0].length; i++) {
  22853. if (res.data[0][i].tools == 1) {
  22854. this.wbCount = res.data[0][i].count;
  22855. } else if (res.data[0][i].tools == 2) {
  22856. this.wordCount = res.data[0][i].count;
  22857. } else if (res.data[0][i].tools == 3) {
  22858. this.mindCount = res.data[0][i].count;
  22859. } else if (res.data[0][i].tools == 4) {
  22860. this.askCount = res.data[0][i].count;
  22861. } else if (res.data[0][i].tools == 6) {
  22862. this.noteCount = res.data[0][i].count;
  22863. } else if (res.data[0][i].tools == 7) {
  22864. this.mindNetWorkCount = res.data[0][i].count;
  22865. } else if (res.data[0][i].tools == 8) {
  22866. this.libraryCount = res.data[0][i].count;
  22867. } else if (res.data[0][i].tools == 16) {
  22868. this.workCount = res.data[0][i].count;
  22869. } else if (res.data[0][i].tools == 10) {
  22870. this.timeCount = res.data[0][i].count;
  22871. } else if (res.data[0][i].tools == 15) {
  22872. this.answerCount = res.data[0][i].count;
  22873. } else if (res.data[0][i].tools == 18) {
  22874. this.trainCount = res.data[0][i].count;
  22875. }
  22876. }
  22877. })
  22878. .catch((err) => {
  22879. console.error(err);
  22880. });
  22881. },
  22882. openTools(t, i, index, c, sName,id) {
  22883. var z = JSON.parse(c);
  22884. this.noteName = sName;
  22885. if (t == 4) {
  22886. this.radio = [];
  22887. this.isAnswer = false;
  22888. let b = z[0].anwer;
  22889. this.radio = b;
  22890. this.askJson = z[0].askJson;
  22891. this.isAnswer = true;
  22892. this.dialogVisible5 = true;
  22893. } else if (t == 45) {
  22894. this.radio = [];
  22895. this.isAnswer = false;
  22896. let b = z[0].anwer;
  22897. this.radio = b;
  22898. this.testJson = z[0].testJson;
  22899. this.isAnswer = true;
  22900. this.dialogVisibleChoice = true;
  22901. }else if(t == 69){
  22902. this.oldEnglishJson1 = {}
  22903. this.oldEnglishJson = {}
  22904. this.englishList1 = {}
  22905. this.newEngIndex = -1;
  22906. this.isNoUserid = false;
  22907. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22908. .toolChoose[i].englishList;
  22909. this.oldEnglishJson = z;
  22910. this.engWid = id;
  22911. this.newEnglishList = { engTitle:"",engText:"" }
  22912. this.newEnglishList1 = []
  22913. this.selectEngC(id,z);
  22914. }else if(t == 62){
  22915. this.videoType = 1;
  22916. this.videoJson = {};
  22917. this.videoJson = JSON.parse(c);
  22918. // this.videoJson =
  22919. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22920. // index
  22921. // ].toolChoose[i].videoJson;
  22922. this.dialogVisibleVideo = true;
  22923. }
  22924. // else if (t == 15) {
  22925. // this.answerQ = "";
  22926. // this.questionAnswer = "";
  22927. // this.answerQ = z[0].answerTitle;
  22928. // this.questionAnswer = z[0].answer;
  22929. // this.answerDialogVisible = true;
  22930. // }
  22931. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22932. },
  22933. fastText(p, t) {
  22934. if (t == 1) {
  22935. this.commentText += p;
  22936. } else {
  22937. this.eScore.eBzText += p;
  22938. }
  22939. },
  22940. addTools(t, i, index) {
  22941. var a = 0;
  22942. // this.taskCount = index;
  22943. this.toolindex = i;
  22944. if (t == 1) {
  22945. if (this.wbCount > 0) {
  22946. this.updateCount(this.wbCount, t);
  22947. } else {
  22948. this.wbCount++;
  22949. a = this.wbCount;
  22950. this.toolsCount(a, t);
  22951. }
  22952. window.topU.postMessage(
  22953. {
  22954. tools: "1",
  22955. cid: this.id,
  22956. stage: this.courseType,
  22957. task: this.taskCount,
  22958. tool: i,
  22959. },
  22960. "*"
  22961. );
  22962. } else if (t == 2) {
  22963. if (this.wordCount > 0) {
  22964. this.updateCount(this.wordCount, t);
  22965. } else {
  22966. this.wordCount++;
  22967. a = this.wordCount;
  22968. this.toolsCount(a, t);
  22969. }
  22970. window.topU.postMessage({ tools: "2" }, "*");
  22971. } else if (t == 3) {
  22972. if (this.mindCount > 0) {
  22973. this.updateCount(this.mindCount, t);
  22974. } else {
  22975. this.mindCount++;
  22976. a = this.mindCount;
  22977. this.toolsCount(a, t);
  22978. }
  22979. window.topU.postMessage(
  22980. {
  22981. tools: "3",
  22982. cid: this.id,
  22983. stage: this.courseType,
  22984. task: this.taskCount,
  22985. tool: i,
  22986. },
  22987. "*"
  22988. );
  22989. } else if (t == 4) {
  22990. this.radio = [];
  22991. this.noteName = "";
  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. if (!this.dialogVisible2) {
  23001. this.askJson.askJson =
  23002. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23003. index
  23004. ].toolChoose[i].askJson;
  23005. this.askJson.askTitle =
  23006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23007. index
  23008. ].toolChoose[i].askTitle;
  23009. this.askJson.askCount =
  23010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23011. index
  23012. ].toolChoose[i].askCount;
  23013. } else {
  23014. this.askJson.askJson = this.chapTools.askJson.askJson;
  23015. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23016. this.askJson.askCount = this.chapTools.askJson.askCount;
  23017. }
  23018. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23019. if (this.askJson.askJson[k].type == "2") {
  23020. this.radio.push([]);
  23021. } else {
  23022. this.radio.push("");
  23023. }
  23024. }
  23025. this.dialogVisible5 = true;
  23026. // window.topU.postMessage({ tools: "4" }, "*");
  23027. } else if (t == 45) {
  23028. this.noteName = "";
  23029. this.radio = [];
  23030. this.isAnswer = false;
  23031. if (this.askCount > 0) {
  23032. this.updateCount(this.askCount, t);
  23033. } else {
  23034. this.askCount++;
  23035. a = this.askCount;
  23036. this.toolsCount(a, t);
  23037. }
  23038. this.testJson =
  23039. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23040. index
  23041. ].toolChoose[i].testJson;
  23042. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23043. if (this.testJson.testJson[k].type == "2") {
  23044. this.radio.push([]);
  23045. } else {
  23046. this.radio.push("");
  23047. }
  23048. }
  23049. this.dialogVisibleChoice = true;
  23050. // window.topU.postMessage({ tools: "4" }, "*");
  23051. } else if (t == 5) {
  23052. if (this.scoreCount > 0) {
  23053. this.updateCount(this.scoreCount, t);
  23054. } else {
  23055. this.scoreCount++;
  23056. a = this.scoreCount;
  23057. this.toolsCount(a, t);
  23058. }
  23059. this.dialogVisible4 = true;
  23060. // window.topU.postMessage({ tools: "5" }, "*");
  23061. } else if (t == 6) {
  23062. if (this.noteCount > 0) {
  23063. this.updateCount(this.noteCount, t);
  23064. } else {
  23065. this.noteCount++;
  23066. a = this.noteCount;
  23067. this.toolsCount(a, t);
  23068. }
  23069. window.topU.postMessage(
  23070. {
  23071. tools: "6",
  23072. cid: this.id,
  23073. stage: this.courseType,
  23074. task: this.taskCount,
  23075. tool: i,
  23076. },
  23077. "*"
  23078. );
  23079. } else if (t == 7) {
  23080. if (this.mindNetWorkCount > 0) {
  23081. this.updateCount(this.mindNetWorkCount, t);
  23082. } else {
  23083. this.mindNetWorkCount++;
  23084. a = this.mindNetWorkCount;
  23085. this.toolsCount(a, t);
  23086. }
  23087. window.topU.postMessage(
  23088. {
  23089. tools: "7",
  23090. cid: this.id,
  23091. stage: this.courseType,
  23092. task: this.taskCount,
  23093. tool: i,
  23094. },
  23095. "*"
  23096. );
  23097. } else if (t == 16) {
  23098. if (this.workCount > 0) {
  23099. this.updateCount(this.workCount, t);
  23100. } else {
  23101. this.workCount++;
  23102. a = this.workCount;
  23103. this.toolsCount(a, t);
  23104. }
  23105. this.dialogVisible = true;
  23106. } else if (t == 50) {
  23107. if (this.tType == 2) {
  23108. this.$message.error("不支持学生使用");
  23109. return;
  23110. }
  23111. this.plworkFile = [];
  23112. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23113. if (!this.uploadCid) {
  23114. this.$message.error(
  23115. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23116. );
  23117. return;
  23118. }
  23119. // this.uploadCid =
  23120. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23121. // index
  23122. // ].toolChoose[i].uploadJson[0];
  23123. this.selectUploadStudent(2);
  23124. } else if (t == 8) {
  23125. if (this.libraryCount > 0) {
  23126. this.updateCount(this.libraryCount, t);
  23127. } else {
  23128. this.libraryCount++;
  23129. a = this.libraryCount;
  23130. this.toolsCount(a, t);
  23131. }
  23132. window.topU.postMessage({ tools: "8" }, "*");
  23133. } else if (t == 17) {
  23134. if (this.libraryCount > 0) {
  23135. this.updateCount(this.libraryCount, t);
  23136. } else {
  23137. this.libraryCount++;
  23138. a = this.libraryCount;
  23139. this.toolsCount(a, t);
  23140. }
  23141. window.topU.postMessage({ tools: "17" }, "*");
  23142. } else if (t == 18) {
  23143. if (this.trainCount > 0) {
  23144. this.updateCount(this.trainCount, t);
  23145. } else {
  23146. this.trainCount++;
  23147. a = this.trainCount;
  23148. this.toolsCount(a, t);
  23149. }
  23150. window.topU.postMessage({ tools: "18" }, "*");
  23151. } else if (t == 10) {
  23152. if (this.timeCount > 0) {
  23153. this.updateCount(this.timeCount, t);
  23154. } else {
  23155. this.timeCount++;
  23156. a = this.timeCount;
  23157. this.toolsCount(a, t);
  23158. }
  23159. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23160. .taskJson[index].toolChoose[i].preTime
  23161. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23162. .toolChoose[i].preTime
  23163. : "";
  23164. this.timeDialogVisible = true;
  23165. } else if (t == 15) {
  23166. this.answerQ = "";
  23167. this.questionAnswer = "";
  23168. if (this.answerCount > 0) {
  23169. this.updateCount(this.answerCount, t);
  23170. } else {
  23171. this.answerCount++;
  23172. a = this.answerCount;
  23173. this.toolsCount(a, t);
  23174. }
  23175. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23176. .taskJson[index].toolChoose[i].answerQ
  23177. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23178. .toolChoose[i].answerQ
  23179. : "";
  23180. this.answerDialogVisible = true;
  23181. } else if (t == 21) {
  23182. window.topU.postMessage({ tools: "21" }, "*");
  23183. } else if (t == 22) {
  23184. window.topU.postMessage({ tools: "22" }, "*");
  23185. } else if (t == 23) {
  23186. window.topU.postMessage({ tools: "23" }, "*");
  23187. } else if (t == 24) {
  23188. window.topU.postMessage({ tools: "24" }, "*");
  23189. } else if (t == 25) {
  23190. window.topU.postMessage({ tools: "25" }, "*");
  23191. } else if (t == 31) {
  23192. window.topU.postMessage({ tools: "31" }, "*");
  23193. } else if (t == 28) {
  23194. window.topU.postMessage({ tools: "28" }, "*");
  23195. } else if (t == 37) {
  23196. window.topU.postMessage({ tools: "37" }, "*");
  23197. } else if (t == 38) {
  23198. window.topU.postMessage({ tools: "38" }, "*");
  23199. } else if (t == 39) {
  23200. window.topU.postMessage({ tools: "39" }, "*");
  23201. } else if (t == 32) {
  23202. window.topU.postMessage({ tools: "32" }, "*");
  23203. } else if (t == 66) {
  23204. window.topU.postMessage({ tools: "66" }, "*");
  23205. } else if (t == 67) {
  23206. window.topU.postMessage({ tools: "67" }, "*");
  23207. } else if (t == 68) {
  23208. window.topU.postMessage({ tools: "68" }, "*");
  23209. } else if (t == 57) {
  23210. // window.topU.postMessage({ tools: "57" }, "*");
  23211. window.topU.postMessage(
  23212. {
  23213. tools: "57u",
  23214. cid: this.id,
  23215. stage: this.courseType,
  23216. task: this.taskCount,
  23217. tool: i,
  23218. },
  23219. "*"
  23220. );
  23221. } else if (t == 58) {
  23222. window.topU.postMessage({ tools: "58" }, "*");
  23223. } else if (t == 59) {
  23224. window.topU.postMessage({ tools: "59" }, "*");
  23225. } else if (t == 60) {
  23226. window.topU.postMessage({ tools: "60" }, "*");
  23227. } else if (t == 61) {
  23228. window.topU.postMessage({ tools: "61" }, "*");
  23229. } else if (t == 63) {
  23230. window.topU.postMessage({ tools: "63" }, "*");
  23231. } else if (t == 71) {
  23232. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23233. // this.$message.error("该工具不可使用");
  23234. // return
  23235. // }
  23236. window.topU.postMessage({ tools: "71" }, "*");
  23237. } else if (t == 72) {
  23238. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23239. .taskJson[index].toolChoose[i].appJson
  23240. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23241. .toolChoose[i].appJson
  23242. : "";
  23243. if(!item || !item.url){
  23244. this.$message.error("应用连接为空, 请到课程管理中添加");
  23245. return;
  23246. }
  23247. if (!document.fullscreenElement) {
  23248. this.enterFullScreen();
  23249. }
  23250. this.$refs.appStoreC.getData(item.url,this.userid)
  23251. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23252. // window.open(item.url, "_blank");
  23253. } else if (t == 69) {
  23254. if (this.worksStudent[i].length) {
  23255. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23256. if (this.userid == this.worksStudent[i][k].userid) {
  23257. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  23258. break;
  23259. } else {
  23260. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23261. }
  23262. }
  23263. } else {
  23264. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23265. }
  23266. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23267. .taskJson[index].toolChoose[i].englishList
  23268. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23269. .toolChoose[i].englishList
  23270. : {};
  23271. this.englishToolIndex = i;
  23272. this.myAnList = this.myAnswerList1;
  23273. this.engDialogVisible = true;
  23274. } else if (t == 70) {
  23275. if (this.worksStudent[i].length) {
  23276. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23277. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  23278. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  23279. break;
  23280. } else {
  23281. this.englishVoiceJsonWork = [];
  23282. }
  23283. }
  23284. } else {
  23285. this.englishVoiceJsonWork = [];
  23286. }
  23287. let englishVoiceJson = {}
  23288. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23289. .taskJson[index].toolChoose[i].englishVoiceJson
  23290. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23291. .toolChoose[i].englishVoiceJson
  23292. : {};
  23293. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23294. this.EnglishVoiceDialog = true;
  23295. } else if (t == 65) {
  23296. if (this.tType == 2) {
  23297. this.$message.error("不支持学生使用");
  23298. return;
  23299. }
  23300. this.uploadCid = this.tcid;
  23301. if (!this.uploadCid) {
  23302. this.$message.error(
  23303. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23304. );
  23305. return;
  23306. }
  23307. this.selectPickStudent();
  23308. } else if (t == 26) {
  23309. window.topU.postMessage(
  23310. {
  23311. tools: "26",
  23312. cid: this.id,
  23313. stage: this.courseType,
  23314. task: this.taskCount,
  23315. tool: i,
  23316. },
  23317. "*"
  23318. );
  23319. } else if (t == 40) {
  23320. if (this.evalCount > 0) {
  23321. this.updateCount(this.evalCount, t);
  23322. } else {
  23323. this.evalCount++;
  23324. a = this.evalCount;
  23325. this.toolsCount(a, t);
  23326. }
  23327. this.eScore = { eBzText: "", eStar: [] };
  23328. if (this.worksStudent[i].length) {
  23329. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23330. if (this.userid == this.worksStudent[i][k].userid) {
  23331. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23332. this.rateJson =
  23333. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23334. index
  23335. ].toolChoose[i].rateJson;
  23336. break;
  23337. } else {
  23338. this.rateJson =
  23339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23340. index
  23341. ].toolChoose[i].rateJson;
  23342. }
  23343. }
  23344. } else {
  23345. this.rateJson =
  23346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23347. index
  23348. ].toolChoose[i].rateJson;
  23349. }
  23350. this.isStar = false;
  23351. this.studentEvalDialogVisible = true;
  23352. } else if (t == 41) {
  23353. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23354. .taskJson[index].toolChoose[i].selectJson
  23355. ? JSON.parse(
  23356. JSON.stringify(
  23357. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23358. index
  23359. ].toolChoose[i].selectJson
  23360. )
  23361. )
  23362. : { url: "", select: [], answer: [] };
  23363. if (this.worksStudent[i].length) {
  23364. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23365. if (this.userid == this.worksStudent[i][k].userid) {
  23366. var a = this.worksStudent[i][k].works.split(",");
  23367. for (var ki = 0; ki < a.length; ki++) {
  23368. a[ki] = parseInt(a[ki]);
  23369. }
  23370. this.selectAnswer = {
  23371. answer: a,
  23372. stu: this.worksStudent[i][k].sName,
  23373. };
  23374. break;
  23375. } else {
  23376. this.selectAnswer = { answer: [], stu: "" };
  23377. }
  23378. }
  23379. } else {
  23380. this.selectAnswer = { answer: [], stu: "" };
  23381. }
  23382. this.isSelect = false;
  23383. this.dialogVisibleSelect = true;
  23384. } else if (t == 44) {
  23385. window.topU.postMessage({ tools: "44" }, "*");
  23386. } else if (t == 47) {
  23387. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23388. .taskJson[index].toolChoose[i].sentenceList
  23389. ? JSON.parse(
  23390. JSON.stringify(
  23391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23392. index
  23393. ].toolChoose[i].sentenceList
  23394. )
  23395. )
  23396. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23397. for (var q = 0; q < this.sentenceList.length; q++) {
  23398. this.sentenceList[q].chooseSenList = [];
  23399. this.sentenceList[q].addChangeSen = [];
  23400. this.sentenceList[q].addChangeSen = JSON.parse(
  23401. JSON.stringify(this.sentenceList[q].addSentence)
  23402. );
  23403. this.sentenceList[q].chooseSenList.length =
  23404. this.sentenceList[q].rightAnswer.length;
  23405. }
  23406. this.dialogVisibleSentence = true;
  23407. } else if (t == 48) {
  23408. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23409. .taskJson[index].toolChoose[i].tableJson
  23410. ? JSON.parse(
  23411. JSON.stringify(
  23412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23413. index
  23414. ].toolChoose[i].tableJson
  23415. )
  23416. )
  23417. : { text: "" };
  23418. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23419. if (this.worksStudent[i].length) {
  23420. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23421. if (this.userid == this.worksStudent[i][k].userid) {
  23422. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23423. break;
  23424. }
  23425. }
  23426. }
  23427. this.dialogVisibleTable = true;
  23428. } else if (t == 52) {
  23429. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23430. .taskJson[index].toolChoose[i].wordJson
  23431. ? JSON.parse(
  23432. JSON.stringify(
  23433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23434. index
  23435. ].toolChoose[i].wordJson
  23436. )
  23437. )
  23438. : { text: "" };
  23439. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23440. if (this.worksStudent[i].length) {
  23441. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23442. if (this.userid == this.worksStudent[i][k].userid) {
  23443. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23444. break;
  23445. }
  23446. }
  23447. }
  23448. this.dialogVisibleWord = true;
  23449. } else if (t == 49) {
  23450. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  23451. return
  23452. }
  23453. this.groupJson =
  23454. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23455. index
  23456. ].toolChoose[i].groupJson;
  23457. this.islock = this.groupJson.islock == 1 ? true : false;
  23458. this.dialogVisibleGroup = true;
  23459. } else if (t == 62) {
  23460. this.videoType = 0;
  23461. this.videoJson = {};
  23462. this.videoJson =
  23463. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23464. index
  23465. ].toolChoose[i].videoJson;
  23466. this.dialogVisibleVideo = true;
  23467. }
  23468. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23469. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  23470. },
  23471. teacherWorkSubmit(t, i, index, s) {
  23472. console.log('t',t);
  23473. if(t == 72) return
  23474. this.sStudent = s;
  23475. this.toolindex = i;
  23476. this.sTool = t;
  23477. if (this.tType !== "1" && this.tType !== "4") {
  23478. return;
  23479. }
  23480. if (t == 16 || t == 32 || t == 50) {
  23481. this.dialogVisibleWorks = true;
  23482. } else if (t == 15) {
  23483. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23484. .taskJson[index].toolChoose[i].answerQ
  23485. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23486. .toolChoose[i].answerQ
  23487. : "";
  23488. this.questionAnswer = "";
  23489. this.answerDialogVisibleTeacher = true; //问答
  23490. } else if (t == 52) {
  23491. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23492. .taskJson[index].toolChoose[i].wordJson
  23493. ? JSON.parse(
  23494. JSON.stringify(
  23495. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23496. index
  23497. ].toolChoose[i].wordJson
  23498. )
  23499. )
  23500. : { text: "" };
  23501. if (this.worksStudent[i].length) {
  23502. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23503. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23504. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23505. break;
  23506. }
  23507. }
  23508. }
  23509. this.dialogVisibleWordTeacher = true; //文档
  23510. } else if (t == 4) {
  23511. this.radio = [];
  23512. this.noteName = "";
  23513. this.isAnswer = false;
  23514. if (this.askCount > 0) {
  23515. this.updateCount(this.askCount, t);
  23516. } else {
  23517. this.askCount++;
  23518. a = this.askCount;
  23519. this.toolsCount(a, t);
  23520. }
  23521. if (!this.dialogVisible2) {
  23522. this.askJson.askJson =
  23523. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23524. index
  23525. ].toolChoose[i].askJson;
  23526. this.askJson.askTitle =
  23527. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23528. index
  23529. ].toolChoose[i].askTitle;
  23530. this.askJson.askCount =
  23531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23532. index
  23533. ].toolChoose[i].askCount;
  23534. } else {
  23535. this.askJson.askJson = this.chapTools.askJson.askJson;
  23536. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23537. this.askJson.askCount = this.chapTools.askJson.askCount;
  23538. }
  23539. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23540. if (this.askJson.askJson[k].type == "2") {
  23541. this.radio.push([]);
  23542. } else {
  23543. this.radio.push("");
  23544. }
  23545. }
  23546. this.dialogVisible5Teacher = true;
  23547. } else if (t == 45) {
  23548. this.noteName = "";
  23549. this.radio = [];
  23550. this.isAnswer = false;
  23551. if (this.askCount > 0) {
  23552. this.updateCount(this.askCount, t);
  23553. } else {
  23554. this.askCount++;
  23555. a = this.askCount;
  23556. this.toolsCount(a, t);
  23557. }
  23558. this.testJson =
  23559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23560. index
  23561. ].toolChoose[i].testJson;
  23562. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23563. if (this.testJson.testJson[k].type == "2") {
  23564. this.radio.push([]);
  23565. } else {
  23566. this.radio.push("");
  23567. }
  23568. }
  23569. this.dialogVisibleChoiceTeacher = true;
  23570. } else if (t == 41) {
  23571. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23572. .taskJson[index].toolChoose[i].selectJson
  23573. ? JSON.parse(
  23574. JSON.stringify(
  23575. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23576. index
  23577. ].toolChoose[i].selectJson
  23578. )
  23579. )
  23580. : { url: "", select: [], answer: [] };
  23581. if (this.worksStudent[i].length) {
  23582. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23583. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23584. var a = this.worksStudent[i][k].works.split(",");
  23585. for (var ki = 0; ki < a.length; ki++) {
  23586. a[ki] = parseInt(a[ki]);
  23587. }
  23588. this.selectAnswer = {
  23589. answer: a,
  23590. stu: this.worksStudent[i][k].sName,
  23591. };
  23592. break;
  23593. } else {
  23594. this.selectAnswer = { answer: [], stu: "" };
  23595. }
  23596. }
  23597. } else {
  23598. this.selectAnswer = { answer: [], stu: "" };
  23599. }
  23600. this.isSelect = false;
  23601. this.dialogVisibleSelectTeacher = true;
  23602. } else if (t == 47) {
  23603. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23604. .taskJson[index].toolChoose[i].sentenceList
  23605. ? JSON.parse(
  23606. JSON.stringify(
  23607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23608. index
  23609. ].toolChoose[i].sentenceList
  23610. )
  23611. )
  23612. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23613. for (var q = 0; q < this.sentenceList.length; q++) {
  23614. this.sentenceList[q].chooseSenList = [];
  23615. this.sentenceList[q].addChangeSen = [];
  23616. this.sentenceList[q].addChangeSen = JSON.parse(
  23617. JSON.stringify(this.sentenceList[q].addSentence)
  23618. );
  23619. this.sentenceList[q].chooseSenList.length =
  23620. this.sentenceList[q].rightAnswer.length;
  23621. }
  23622. this.dialogVisibleSentenceTeacher = true;
  23623. } else if (t == 48) {
  23624. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23625. .taskJson[index].toolChoose[i].tableJson
  23626. ? JSON.parse(
  23627. JSON.stringify(
  23628. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23629. index
  23630. ].toolChoose[i].tableJson
  23631. )
  23632. )
  23633. : { text: "" };
  23634. if (this.worksStudent[i].length) {
  23635. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23636. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23637. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23638. break;
  23639. }
  23640. }
  23641. }
  23642. this.dialogVisibleTableTeacher = true;
  23643. } else if (t == 40) {
  23644. if (this.evalCount > 0) {
  23645. this.updateCount(this.evalCount, t);
  23646. } else {
  23647. this.evalCount++;
  23648. a = this.evalCount;
  23649. this.toolsCount(a, t);
  23650. }
  23651. this.eScore = { eBzText: "", eStar: [] };
  23652. if (this.worksStudent[i].length) {
  23653. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23654. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23655. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23656. this.rateJson =
  23657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23658. index
  23659. ].toolChoose[i].rateJson;
  23660. break;
  23661. } else {
  23662. this.rateJson =
  23663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23664. index
  23665. ].toolChoose[i].rateJson;
  23666. }
  23667. }
  23668. } else {
  23669. this.rateJson =
  23670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23671. index
  23672. ].toolChoose[i].rateJson;
  23673. }
  23674. this.isStar = false;
  23675. this.studentEvalDialogVisibleTeacher = true;
  23676. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23677. window.topU.postMessage(
  23678. {
  23679. tools: t + "teacher",
  23680. cid: this.id,
  23681. stage: this.courseType,
  23682. task: this.taskCount,
  23683. tool: i,
  23684. student: this.sStudent,
  23685. },
  23686. "*"
  23687. );
  23688. }else if (t == 72) {
  23689. if (!document.fullscreenElement) {
  23690. this.enterFullScreen();
  23691. }
  23692. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23693. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23694. }
  23695. },
  23696. openCocoPi(tool, i, uid, uname) {
  23697. let student = {
  23698. userid: uid,
  23699. student: uname,
  23700. };
  23701. if (tool == 57) {
  23702. window.topU.postMessage(
  23703. {
  23704. tools: tool + "teacher",
  23705. cid: this.id,
  23706. stage: this.courseType,
  23707. task: this.taskCount,
  23708. tool: i,
  23709. student: student,
  23710. },
  23711. "*"
  23712. );
  23713. }
  23714. },
  23715. setRightAnswer(s, i, j) {
  23716. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23717. if (
  23718. this.sentenceList[i].chooseSenList[q] == undefined ||
  23719. this.sentenceList[i].chooseSenList[q] == ""
  23720. ) {
  23721. this.sentenceList[i].chooseSenList[q] = s;
  23722. this.sentenceList[i].addChangeSen[j] = "";
  23723. break;
  23724. }
  23725. }
  23726. this.$forceUpdate();
  23727. },
  23728. returnCard(r, i, j) {
  23729. var a = this.sentenceList[i].addSentence.indexOf(r);
  23730. this.sentenceList[i].chooseSenList[j] = "";
  23731. this.sentenceList[i].addChangeSen[a] = r;
  23732. this.$forceUpdate();
  23733. },
  23734. // addSentenceTool() {
  23735. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23736. // this.taskCount
  23737. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23738. // this.sentenceList = [
  23739. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23740. // ];
  23741. // this.dialogVisibleSentence = false;
  23742. // },
  23743. toolsCount(a, t) {
  23744. let params = {
  23745. cid: this.id,
  23746. chid: this.courseType,
  23747. uid: this.userid,
  23748. tid: t,
  23749. count: a,
  23750. };
  23751. this.ajax
  23752. .get(this.$store.state.api + "insertToolsCount", params)
  23753. .then((res) => {
  23754. this.selectCount();
  23755. })
  23756. .catch((err) => {
  23757. console.error(err);
  23758. });
  23759. },
  23760. updateCount(c, t) {
  23761. c++;
  23762. let params = {
  23763. cid: this.id,
  23764. chid: this.courseType,
  23765. uid: this.userid,
  23766. tid: t,
  23767. count: c,
  23768. };
  23769. this.ajax
  23770. .get(this.$store.state.api + "updateToolsCount", params)
  23771. .then((res) => {
  23772. this.selectCount();
  23773. })
  23774. .catch((err) => {
  23775. console.error(err);
  23776. });
  23777. },
  23778. checkEva() {
  23779. if (this.evalua != "") {
  23780. for (var i = 0; i < this.evaJuri.length; i++) {
  23781. if (this.evalua == this.evaJuri[i].id) {
  23782. this.eTitle = this.evaJuri[i].title;
  23783. this.eJson = JSON.parse(this.evaJuri[i].content);
  23784. }
  23785. }
  23786. this.$forceUpdate();
  23787. setTimeout(() => {
  23788. this.setMindData();
  23789. }, 0);
  23790. }
  23791. },
  23792. selectEva() {
  23793. let params = {
  23794. oid: this.oid,
  23795. };
  23796. this.ajax
  23797. .get(this.$store.state.api + "selectAllEvaluation", params)
  23798. .then((res) => {
  23799. this.evaJuri = res.data[0];
  23800. })
  23801. .catch((err) => {
  23802. console.error(err);
  23803. });
  23804. },
  23805. setMindData() {
  23806. this.data.data = [];
  23807. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23808. let _eJson = Object.keys(this.eJson);
  23809. let _e = this.eJson;
  23810. for (let i = 0; i < _eJson.length; i++) {
  23811. let element = _e[_eJson[i]];
  23812. this.data.data.push({
  23813. id: element.id,
  23814. parentid: "root",
  23815. topic: element.name,
  23816. });
  23817. let _eJsonc = Object.keys(element.child);
  23818. let _e2 = element.child;
  23819. for (let j = 0; j < _eJsonc.length; j++) {
  23820. let _ec = _e2[_eJsonc[j]];
  23821. this.data.data.push({
  23822. id: _ec.id,
  23823. parentid: element.id,
  23824. topic: _ec.name,
  23825. });
  23826. let _eJsonz = Object.keys(_ec.child);
  23827. let _e3 = _ec.child;
  23828. for (let z = 0; z < _eJsonz.length; z++) {
  23829. let _ez = _e3[_eJsonz[z]];
  23830. this.data.data.push({
  23831. id: _ez.id,
  23832. parentid: _ec.id,
  23833. topic: _ez.name,
  23834. });
  23835. }
  23836. }
  23837. }
  23838. this.$forceUpdate();
  23839. },
  23840. checkFileFull(type, url) {
  23841. this.fullDialogVisible = true;
  23842. this.fulltype = type;
  23843. this.fullUrl = url;
  23844. },
  23845. async checkFileFull1(t, f) {
  23846. this.fullDialogVisible = true;
  23847. if (t == 6) {
  23848. this.fulltype = 1;
  23849. this.fullUrl = JSON.parse(JSON.stringify(f));
  23850. } else if (t == 8) {
  23851. this.fulltype = 2;
  23852. this.fullUrl = f.url;
  23853. }else if (t == 15) {
  23854. this.fulltype = 4;
  23855. this.fullUrl = f.url;
  23856. } else if (t == 16) {
  23857. this.fulltype = 16;
  23858. this.fullUrl = f.url;
  23859. } else if (
  23860. t == 3 &&
  23861. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23862. "PDF"
  23863. ) {
  23864. this.fulltype = 3;
  23865. this.fullUrl = f.url;
  23866. } else if (t == 3) {
  23867. this.fulltype = 2;
  23868. let _uuurl = await this.checkLink(f.url);
  23869. console.log(_uuurl)
  23870. this.fullUrl =
  23871. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23872. }
  23873. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23874. },
  23875. openSname(n, id, i, uid) {
  23876. this.snameWid = id;
  23877. this.worksSName = n;
  23878. this.worksSid = uid == n ? "" : uid;
  23879. this.toolindex = i;
  23880. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23881. if (!this.uploadCid) {
  23882. this.$message.error(
  23883. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23884. );
  23885. return;
  23886. }
  23887. this.selectUploadStudent(1);
  23888. },
  23889. updateName() {
  23890. let params = {
  23891. n: this.worksSName,
  23892. cid: this.snameWid,
  23893. };
  23894. this.ajax
  23895. .get(this.$store.state.api + "updateCourseWorksName", params)
  23896. .then((res) => {
  23897. this.$message({
  23898. message: "修改成功",
  23899. type: "success",
  23900. });
  23901. this.dialogVisibleSname = false;
  23902. this.getCourseDetail(2);
  23903. this.snameWid = "";
  23904. this.worksSName = "";
  23905. })
  23906. .catch((err) => {
  23907. console.error(err);
  23908. });
  23909. },
  23910. downloadFile2(f) {
  23911. // const loading = this.$loading.service({
  23912. // background: "rgba(255, 255, 255, 0.7)",
  23913. // target: document.body,
  23914. // text: "文件加载中...",
  23915. // });
  23916. // let url2 = f.url;
  23917. // let _url2 = "";
  23918. // if (
  23919. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23920. // ) {
  23921. // _url2 = url2.split(
  23922. // "https://view.officeapps.live.com/op/view.aspx?src="
  23923. // )[1];
  23924. // } else {
  23925. // _url2 = url2;
  23926. // }
  23927. // let params = {
  23928. // url: _url2,
  23929. // name: f.name,
  23930. // };
  23931. // this.ajax
  23932. // .get(this.$store.state.api + "download", params)
  23933. // .then((res) => {
  23934. // loading.close();
  23935. // let content = res.data.data.data;
  23936. // let ab = new ArrayBuffer(content.length);
  23937. // let view = new Uint8Array(ab);
  23938. // for (var i = 0; i < content.length; ++i) {
  23939. // view[i] = content[i];
  23940. // }
  23941. // let elink = document.createElement("a");
  23942. // elink.download = f.name;
  23943. // elink.style.display = "none";
  23944. // let blob = new Blob([ab], {
  23945. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23946. // });
  23947. // elink.href = URL.createObjectURL(blob);
  23948. // document.body.appendChild(elink);
  23949. // elink.click();
  23950. // document.body.removeChild(elink);
  23951. // })
  23952. // .catch((err) => {
  23953. // loading.close();
  23954. // console.error(err);
  23955. // });
  23956. var credentials = {
  23957. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23958. secretAccessKey: "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",
  23959. }; //秘钥形式的登录上传
  23960. window.AWS.config.update(credentials);
  23961. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23962. let url2 = f.url;
  23963. let _url2 = "";
  23964. if (
  23965. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23966. ) {
  23967. _url2 = url2.split(
  23968. "https://view.officeapps.live.com/op/view.aspx?src="
  23969. )[1];
  23970. } else {
  23971. _url2 = url2;
  23972. }
  23973. let _this = this;
  23974. _this.downLoading = true
  23975. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23976. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23977. var params = {
  23978. Bucket: "ccrb",
  23979. Key: name
  23980. };
  23981. s3.getObject(params, function (err, data) {
  23982. _this.downLoading = false
  23983. if (err) console.log(err, err.stack); // an error occurred
  23984. else {
  23985. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23986. let a = document.createElement("a");
  23987. a.name = f.name;
  23988. a.href = url;
  23989. a.download = f.name;
  23990. a.click();
  23991. console.log(data);
  23992. } // sxuccessful response
  23993. });
  23994. return;
  23995. let url = f.url;
  23996. let _url = "";
  23997. if (
  23998. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23999. ) {
  24000. _url = url.split(
  24001. "https://view.officeapps.live.com/op/view.aspx?src="
  24002. )[1];
  24003. } else {
  24004. _url = url;
  24005. }
  24006. _this.downLoading = true
  24007. // const loading = _this.$loading.service({
  24008. // background: "rgba(255, 255, 255, 0.7)",
  24009. // target: document.body,
  24010. // text: "文件加载中...",
  24011. // });
  24012. let x = new XMLHttpRequest();
  24013. x.open("GET", _url, true);
  24014. x.responseType = "blob";
  24015. x.onload = function () {
  24016. _this.downLoading = false
  24017. // loading.close();
  24018. let url = window.URL.createObjectURL(new Blob([x.response]));
  24019. let a = document.createElement("a");
  24020. a.name = f.name;
  24021. a.href = url;
  24022. a.download = f.name;
  24023. a.click();
  24024. };
  24025. x.send();
  24026. },
  24027. downloadFile(url,uid) {
  24028. if (this.tType == 1 || this.userid == uid) {
  24029. let hz = url.substring(url.lastIndexOf(".") + 1);
  24030. if (hz == "txt" || hz == "md") {
  24031. this.lookTxt(url);
  24032. return;
  24033. }
  24034. var credentials = {
  24035. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  24036. secretAccessKey: "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",
  24037. }; //秘钥形式的登录上传
  24038. window.AWS.config.update(credentials);
  24039. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24040. let url2 = url;
  24041. let _url2 = "";
  24042. if (
  24043. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24044. ) {
  24045. _url2 = url2.split(
  24046. "https://view.officeapps.live.com/op/view.aspx?src="
  24047. )[1];
  24048. } else {
  24049. _url2 = url2;
  24050. }
  24051. const loading2 = this.$loading.service({
  24052. background: "rgba(255, 255, 255, 0.7)",
  24053. target: document.body,
  24054. text: "文件加载中...",
  24055. });
  24056. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24057. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  24058. var params = {
  24059. Bucket: "ccrb",
  24060. Key: name
  24061. };
  24062. s3.getObject(params, function (err, data) {
  24063. loading2.close();
  24064. if (err) console.log(err, err.stack); // an error occurred
  24065. else {
  24066. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24067. let a = document.createElement("a");
  24068. a.name = name;
  24069. a.href = url;
  24070. a.download = name;
  24071. a.click();
  24072. console.log(data);
  24073. } // sxuccessful response
  24074. });
  24075. }
  24076. return;
  24077. let _this = this;
  24078. let _url = "";
  24079. if (
  24080. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24081. ) {
  24082. _url = url.split(
  24083. "https://view.officeapps.live.com/op/view.aspx?src="
  24084. )[1];
  24085. } else {
  24086. _url = url;
  24087. }
  24088. const x = new XMLHttpRequest();
  24089. x.open("GET", _url, true);
  24090. x.responseType = "blob";
  24091. // this.downLoading = true
  24092. const loading = _this.$loading.service({
  24093. background: "rgba(255, 255, 255, 0.7)",
  24094. target: document.body,
  24095. text: "文件加载中...",
  24096. });
  24097. // _this.$message.success("文件下载中...");
  24098. x.onload = function (e) {
  24099. this.downLoading = false
  24100. loading.close();
  24101. let content = x.response;
  24102. let elink = document.createElement("a");
  24103. elink.download = decodeURI(
  24104. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24105. );
  24106. elink.style.display = "none";
  24107. let blob = new Blob([content]);
  24108. elink.href = URL.createObjectURL(blob);
  24109. document.body.appendChild(elink);
  24110. elink.click();
  24111. document.body.removeChild(elink);
  24112. };
  24113. x.send();
  24114. },
  24115. openLine(url) {
  24116. window.open(url);
  24117. },
  24118. resize() {
  24119. if (document.getElementsByClassName("box_course").length) {
  24120. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24121. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24122. if (this.showType == 2 || this.showType == 3) {
  24123. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24124. document.getElementsByClassName("navBox")[0].style.height =
  24125. a - 40 + 0+ "px";
  24126. }
  24127. } else {
  24128. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24129. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24130. }
  24131. }
  24132. }
  24133. this.Stbodywidth =
  24134. document.getElementsByClassName("student_body").length &&
  24135. document.getElementsByClassName("student_body")[0].offsetWidth;
  24136. },
  24137. closeDraw() {
  24138. this.bg = null;
  24139. this.drawShow = false;
  24140. },
  24141. showPicturePaint(url) {
  24142. let params = {
  24143. img: url,
  24144. };
  24145. this.ajax
  24146. .get(this.$store.state.api + "imgToBase64", params)
  24147. .then((res) => {
  24148. this.drawShow = true;
  24149. this.bg = res.data[0].img;
  24150. })
  24151. .catch((err) => {
  24152. console.error(err);
  24153. });
  24154. },
  24155. addImgDraw(base64) {
  24156. let file = { name: "批注图.png" };
  24157. let img = this.dataUrlToFile(base64, file);
  24158. this.beforeUpload1(img, 5);
  24159. },
  24160. addImgDrawImG(url) {
  24161. // console.log(url);
  24162. let params = [
  24163. {
  24164. wid: this.commentDetail.wid,
  24165. img: url,
  24166. },
  24167. ];
  24168. this.ajax
  24169. .post(this.$store.state.api + "updateCourseWorks", params)
  24170. .then((res) => {
  24171. this.$message({
  24172. message: "提交成功",
  24173. type: "success",
  24174. });
  24175. this.drawShow = false;
  24176. this.bg = "";
  24177. this.selectSWorks();
  24178. this.selectStudent();
  24179. })
  24180. .catch((err) => {
  24181. this.$message.error("提交失败");
  24182. console.error(err);
  24183. });
  24184. },
  24185. deletePicturePaint() {
  24186. this.$confirm("确定删除此批注吗?", "提示", {
  24187. confirmButtonText: "确定",
  24188. cancelButtonText: "取消",
  24189. type: "warning",
  24190. })
  24191. .then(() => {
  24192. let params = [
  24193. {
  24194. wid: this.commentDetail.wid,
  24195. img: "",
  24196. },
  24197. ];
  24198. this.ajax
  24199. .post(this.$store.state.api + "updateCourseWorks", params)
  24200. .then((res) => {
  24201. this.$message({
  24202. message: "删除成功",
  24203. type: "success",
  24204. });
  24205. this.selectSWorks();
  24206. this.selectStudent();
  24207. })
  24208. .catch((err) => {
  24209. this.$message.error("删除失败");
  24210. console.error(err);
  24211. });
  24212. })
  24213. .catch(() => {});
  24214. },
  24215. getAudioVideo(constraintsData) {
  24216. if (navigator.mediaDevices === undefined) {
  24217. navigator.mediaDevices = {};
  24218. }
  24219. if (navigator.mediaDevices.getUserMedia === undefined) {
  24220. navigator.mediaDevices.getUserMedia = function (constraints) {
  24221. // 首先,如果有getUserMedia的话,就获得它
  24222. var getUserMedia =
  24223. navigator.getUserMedia ||
  24224. navigator.webkitGetUserMedia ||
  24225. navigator.mozGetUserMedia ||
  24226. navigator.msGetUserMedia;
  24227. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24228. if (!getUserMedia) {
  24229. return Promise.reject({ code: 404 });
  24230. }
  24231. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24232. return new Promise(function (resolve, reject) {
  24233. getUserMedia.call(navigator, constraints, resolve, reject);
  24234. });
  24235. };
  24236. }
  24237. return navigator.mediaDevices.getUserMedia(constraintsData);
  24238. },
  24239. /**
  24240. * 开始录制
  24241. */
  24242. startRecording(callback) {
  24243. let _function = (screenStream) => {
  24244. this.addStreamStopListener(screenStream, () => {
  24245. console.log("流停止监听");
  24246. this.stopRecording();
  24247. this.$emit("streamStop", {});
  24248. // this.stopRecording();
  24249. });
  24250. var options = {
  24251. type: "video",
  24252. mimeType: "video/webm",
  24253. disableLogs: false,
  24254. getNativeBlob: false, // enable it for longer recordings
  24255. ignoreMutedMedia: false,
  24256. };
  24257. // this.video.srcObject = screenStream;
  24258. this.recorder = RecordRTC(screenStream, options);
  24259. this.recorder.startRecording();
  24260. this.recorder.screen = screenStream;
  24261. this.videoStart = true;
  24262. // callback(true);
  24263. };
  24264. this.getAudioVideo({ audio: true })
  24265. .then((res) => {
  24266. this.captureScreen(_function, true);
  24267. console.log("已点击允许,开启成功");
  24268. })
  24269. .catch((err) => {
  24270. // console.log('浏览器不支持,请更换浏览器')
  24271. // } else {
  24272. this.captureScreen(_function, false);
  24273. console.log("请检查是否存在麦克风");
  24274. });
  24275. },
  24276. /**
  24277. * 停止录制
  24278. */
  24279. stopRecording(callback) {
  24280. this.recorder.stopRecording(() => {
  24281. // this.video.src = this.video.srcObject = null;
  24282. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24283. const url = URL.createObjectURL(this.recorder.getBlob());
  24284. const a = document.createElement("a"); //this.fileName+
  24285. let videoFile = new File(
  24286. [this.recorder.getBlob()],
  24287. this.courseDetail.title + "录屏.mp4",
  24288. {
  24289. type: "video/mp4",
  24290. }
  24291. );
  24292. let downloadUrl = URL.createObjectURL(videoFile);
  24293. if(this.$refs.classRoomHelperRef){
  24294. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  24295. }
  24296. document.body.appendChild(a);
  24297. a.style.display = "none";
  24298. a.href = url;
  24299. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24300. a.click();
  24301. this.recorder.screen.stop();
  24302. this.recorder.destroy();
  24303. this.recorder = null;
  24304. this.videoStart = false;
  24305. // callback(false);
  24306. });
  24307. },
  24308. //初始化
  24309. captureScreen(callback, type) {
  24310. if (navigator.getDisplayMedia) {
  24311. //录制结束,文件下载
  24312. navigator
  24313. .getDisplayMedia({
  24314. video: true,
  24315. })
  24316. .then((screenStream) => {
  24317. if (type) {
  24318. navigator.mediaDevices
  24319. .getUserMedia({ audio: true })
  24320. .then((mic) => {
  24321. screenStream.addTrack(mic.getTracks()[0]);
  24322. callback(screenStream);
  24323. });
  24324. } else {
  24325. callback(screenStream);
  24326. }
  24327. })
  24328. .catch(function (error) {
  24329. console.log("error", error);
  24330. });
  24331. } else if (navigator.mediaDevices.getDisplayMedia) {
  24332. navigator.mediaDevices
  24333. .getDisplayMedia({
  24334. video: true,
  24335. })
  24336. .then((screenStream) => {
  24337. if (type) {
  24338. navigator.mediaDevices
  24339. .getUserMedia({ audio: true })
  24340. .then((mic) => {
  24341. screenStream.addTrack(mic.getTracks()[0]);
  24342. callback(screenStream);
  24343. });
  24344. } else {
  24345. callback(screenStream);
  24346. }
  24347. })
  24348. .catch(function (error) {
  24349. console.log("error", error);
  24350. });
  24351. } else {
  24352. var error = "getDisplayMedia API are not supported in this browser.";
  24353. console.log("error", error);
  24354. alert(error);
  24355. }
  24356. },
  24357. //流监听
  24358. addStreamStopListener(stream, callback) {
  24359. stream.addEventListener(
  24360. "ended",
  24361. function () {
  24362. callback();
  24363. callback = function () {};
  24364. },
  24365. false
  24366. );
  24367. stream.addEventListener(
  24368. "inactive",
  24369. function () {
  24370. callback();
  24371. callback = function () {};
  24372. },
  24373. false
  24374. );
  24375. stream.getTracks().forEach(function (track) {
  24376. track.addEventListener(
  24377. "ended",
  24378. function () {
  24379. callback();
  24380. callback = function () {};
  24381. },
  24382. false
  24383. );
  24384. track.addEventListener(
  24385. "inactive",
  24386. function () {
  24387. callback();
  24388. callback = function () {};
  24389. },
  24390. false
  24391. );
  24392. });
  24393. },
  24394. updateGroup() {
  24395. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24396. this.dialogVisibleGroup2 = true;
  24397. },
  24398. numberPan() {
  24399. if (
  24400. /[^\d]/.test(this.groupJson.number) ||
  24401. this.groupJson.number < 2 ||
  24402. this.groupJson.number > 10
  24403. ) {
  24404. this.$message.error("请输入2-10的数字");
  24405. this.groupJson.number = "";
  24406. }
  24407. },
  24408. updateGroupJson() {
  24409. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24410. if (
  24411. this.groupStudentUid[this.toolindex][i].length >
  24412. this.groupJson2.number
  24413. ) {
  24414. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24415. return;
  24416. }
  24417. }
  24418. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24419. this.islock = this.groupJson.islock == 1 ? true : false;
  24420. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24421. this.taskCount
  24422. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24423. let params = [
  24424. {
  24425. cid: this.id,
  24426. chapters: JSON.stringify(this.chapInfoList),
  24427. uid: this.userid,
  24428. unitIndex: this.courseType,
  24429. },
  24430. ];
  24431. this.ajax
  24432. .post(this.$store.state.api + "updateWorkNew4", params)
  24433. .then((res) => {
  24434. this.$message.success("设置成功");
  24435. this.getCourseDetail(2);
  24436. this.dialogVisibleGroup2 = false;
  24437. this.groupJson2 = {};
  24438. this.$forceUpdate();
  24439. })
  24440. .catch((err) => {
  24441. this.$message.error("网络不佳");
  24442. console.error(err);
  24443. });
  24444. },
  24445. lockChair() {
  24446. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24447. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24448. this.updateGroupJson();
  24449. },
  24450. selectGroup(index) {
  24451. this.getCourseDetail(2, index);
  24452. },
  24453. joinGroup(index) {
  24454. if (this.groupJson.islock == 2) {
  24455. this.$message.error("位置已被锁定,无法加入");
  24456. return;
  24457. }
  24458. if (
  24459. this.groupStudent[this.toolindex][index].length >
  24460. this.groupJson.number ||
  24461. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24462. ) {
  24463. this.$message.error("位置已满,无法加入");
  24464. return;
  24465. }
  24466. let params = [
  24467. {
  24468. cid: this.id,
  24469. stage: this.courseType,
  24470. task: this.taskCount,
  24471. tool: this.toolindex,
  24472. g: index,
  24473. uid: this.userid,
  24474. },
  24475. ];
  24476. this.ajax
  24477. .post(this.$store.state.api + "joinGroup", params)
  24478. .then((res) => {
  24479. this.$message.success("加入成功");
  24480. this.getCourseDetail(2);
  24481. })
  24482. .catch((err) => {
  24483. this.$message.error("网络不佳");
  24484. console.error(err);
  24485. });
  24486. },
  24487. exitGroup(id) {
  24488. if (this.groupJson.islock == 2) {
  24489. this.$message.error("位置已被锁定,无法退出");
  24490. return;
  24491. }
  24492. let params = [
  24493. {
  24494. gid: id,
  24495. },
  24496. ];
  24497. this.ajax
  24498. .post(this.$store.state.api + "exitGroup", params)
  24499. .then((res) => {
  24500. this.$message.success("退出成功");
  24501. this.getCourseDetail(2);
  24502. })
  24503. .catch((err) => {
  24504. this.$message.error("网络不佳");
  24505. console.error(err);
  24506. });
  24507. },
  24508. groupUpload(index, task, gindex) {
  24509. this.taskCount = task;
  24510. this.toolindex = index;
  24511. this.groupIndex = gindex;
  24512. this.dialogVisibleGroupWork = true;
  24513. },
  24514. updateGroupChair(user) {
  24515. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24516. el.label = index;
  24517. return index != user.group;
  24518. });
  24519. this.updateGroupUser = user;
  24520. this.dialogVisibleUpdateGroup = true;
  24521. },
  24522. updateChair() {
  24523. if (
  24524. this.groupStudent[this.toolindex][this.checkChair].length >
  24525. this.groupJson.number ||
  24526. this.groupStudent[this.toolindex][this.checkChair].length ==
  24527. this.groupJson.number
  24528. ) {
  24529. this.$message.error("位置已满,无法加入");
  24530. return;
  24531. }
  24532. let params = [
  24533. {
  24534. cid: this.id,
  24535. stage: this.courseType,
  24536. task: this.taskCount,
  24537. tool: this.toolindex,
  24538. g: this.checkChair,
  24539. uid: this.updateGroupUser.userid,
  24540. },
  24541. ];
  24542. this.ajax
  24543. .post(this.$store.state.api + "joinGroup", params)
  24544. .then((res) => {
  24545. this.$message.success("修改成功");
  24546. this.updateGroupUser = {};
  24547. this.checkChair = "";
  24548. this.updateGroupArray = {};
  24549. this.dialogVisibleUpdateGroup = false;
  24550. this.getCourseDetail(2);
  24551. })
  24552. .catch((err) => {
  24553. this.$message.error("网络不佳");
  24554. console.error(err);
  24555. });
  24556. },
  24557. deleteGroupChair(gindex) {
  24558. this.checkDeleteGroup = [];
  24559. this.deleteGroupUser = JSON.parse(
  24560. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24561. );
  24562. this.deleteGroupArray = this.groupJson.group[gindex];
  24563. this.groupIndex = gindex;
  24564. this.dialogVisibleDeleteGroup = true;
  24565. },
  24566. async deleteChair() {
  24567. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24568. const gid =
  24569. this.groupStudent[this.toolindex][this.groupIndex][
  24570. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24571. this.checkDeleteGroup[i]
  24572. )
  24573. ];
  24574. let params = [
  24575. {
  24576. gid: gid.id,
  24577. },
  24578. ];
  24579. var a = await this.deleteChairA(params);
  24580. if (i == this.checkDeleteGroup.length - 1) {
  24581. this.$message.success("退出成功");
  24582. this.dialogVisibleDeleteGroup = false;
  24583. this.deleteGroupUser = [];
  24584. this.deleteGroupArray = {};
  24585. this.groupIndex = "";
  24586. this.checkDeleteGroup = [];
  24587. this.getCourseDetail(2);
  24588. }
  24589. }
  24590. },
  24591. deleteChairA(params) {
  24592. return new Promise((resolve, reject) => {
  24593. this.ajax
  24594. .post(this.$store.state.api + "exitGroup", params)
  24595. .then((res) => {
  24596. resolve(1);
  24597. })
  24598. .catch((err) => {
  24599. this.$message.error("网络不佳");
  24600. console.error(err);
  24601. });
  24602. });
  24603. },
  24604. contract(i) {
  24605. if (this.isCloseList[i].isClose == 0) {
  24606. this.isCloseList[i].isClose = 1;
  24607. } else {
  24608. this.isCloseList[i].isClose = 0;
  24609. }
  24610. this.$forceUpdate();
  24611. },
  24612. openWordCloud(toolindex) {
  24613. this.wordCloudData = '';
  24614. let array = [];
  24615. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24616. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24617. array.push({ name: works });
  24618. }
  24619. if (this.isGroup) {
  24620. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24621. let works = this.courseGroup.group[i].works[toolindex];
  24622. for (var j = 0; j < works.length; j++) {
  24623. let answer = JSON.parse(works[j].works)[0].answer;
  24624. array.push({ name: answer });
  24625. }
  24626. }
  24627. }
  24628. let _result = ''
  24629. array.forEach(e=>{
  24630. _result +=e.name+','
  24631. })
  24632. this.wordCloudData = _result;
  24633. this.dialogVisibleWordCloud = true;
  24634. this.wordCloudKey += 1;
  24635. },
  24636. uploadWorks(i) {
  24637. this.$confirm("确定导出作业吗?", "提示", {
  24638. confirmButtonText: "确定",
  24639. cancelButtonText: "取消",
  24640. type: "warning",
  24641. })
  24642. .then(() => {
  24643. const loading = this.$loading.service({
  24644. background: "rgba(255, 255, 255, 0.7)",
  24645. target: document.body,
  24646. text: "文件加载中...",
  24647. });
  24648. const _worksStudent = this.worksStudent;
  24649. let url = [];
  24650. var counts = {};
  24651. for (var l = 0; l < _worksStudent[i].length; l++) {
  24652. var item = _worksStudent[i][l];
  24653. var name = item.sName;
  24654. if (!counts.hasOwnProperty(name)) {
  24655. counts[name] = 0;
  24656. } else {
  24657. counts[name]++;
  24658. }
  24659. if (counts[name] > 0) {
  24660. item.sName += " (" + counts[name] + ")";
  24661. }
  24662. }
  24663. for (var l = 0; l < _worksStudent[i].length; l++) {
  24664. var item = _worksStudent[i][l];
  24665. if (
  24666. item.works.indexOf(
  24667. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24668. ) !== -1 &&
  24669. item.works.indexOf("img") === -1
  24670. ) {
  24671. url.push({ name: item.sName, url: item.works });
  24672. }
  24673. }
  24674. // var toolList = [
  24675. // { name: "电子白板", tool: 1 },
  24676. // { name: "思维导图", tool: 3 },
  24677. // { name: "协同文档", tool: 6 },
  24678. // { name: "思维网格", tool: 7 },
  24679. // { name: "素材库", tool: 8 },
  24680. // { name: "学习资料", tool: 17 },
  24681. // { name: "便签", tool: 2 },
  24682. // { name: "问卷调查", tool: 4 },
  24683. // { name: "选择题", tool: 45 },
  24684. // { name: "倒计时", tool: 10 },
  24685. // { name: "问答", tool: 15 },
  24686. // { name: "课程设计", tool: 26 },
  24687. // { name: "训练服务器", tool: 18 },
  24688. // { name: "作业提交", tool: 16 },
  24689. // { name: "批量上传", tool: 50 },
  24690. // { name: "AIoT Blockly", tool: 21 },
  24691. // { name: "AI Python", tool: 23 },
  24692. // { name: "AI Blockly", tool: 24 },
  24693. // { name: "目标管理", tool: 25 },
  24694. // { name: "数学画板", tool: 31 },
  24695. // { name: "翻译", tool: 28 },
  24696. // { name: "魔盒识字", tool: 37 },
  24697. // { name: "数学画板", tool: 31 },
  24698. // { name: "24点", tool: 38 },
  24699. // { name: "GeoGebra", tool: 39 },
  24700. // { name: "源码编辑", tool: 32 },
  24701. // { name: "个人评价", tool: 40 },
  24702. // { name: "选择匹配", tool: 41 },
  24703. // { name: "汉字宫", tool: 44 },
  24704. // { name: "排序", tool: 47 },
  24705. // { name: "表格", tool: 48 },
  24706. // { name: "文档", tool: 52 },
  24707. // { name: "学生分组", tool: 49 },
  24708. // { name: "CocoPi", tool: 57 },
  24709. // { name: "模拟驾驶", tool: 58 },
  24710. // { name: "路径搜索", tool: 59 },
  24711. // { name: "深度学习", tool: 60 },
  24712. // { name: "全历史", tool: 61 },
  24713. // { name: "交互视频", tool: 62 },
  24714. // { name: "海龟编程", tool: 63 },
  24715. // { name: "挑人", tool: 65 },
  24716. // { name: "公式编辑", tool: 66 },
  24717. // { name: "分子结构", tool: 67 },
  24718. // { name: "时间轴", tool: 68 },
  24719. // ];
  24720. // var toolName = "";
  24721. // for(var w = 0;w<toolList.length;w++){
  24722. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24723. // toolName = toolList[w].name;
  24724. // }
  24725. // }
  24726. console.log(url);
  24727. this.downLoadAll(url, loading);
  24728. })
  24729. .catch(() => {});
  24730. },
  24731. downLoadAll(url, loading) {
  24732. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24733. const zip = new JSZip();
  24734. const cache = {};
  24735. const promises = [];
  24736. data.forEach((item) => {
  24737. const promise = getFile(item.url).then((data) => {
  24738. if (data.data != 1) {
  24739. // 下载文件, 并存成ArrayBuffer对象
  24740. const file_name =
  24741. item.name +
  24742. "." +
  24743. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24744. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24745. cache[file_name] = data.data;
  24746. }
  24747. });
  24748. promises.push(promise);
  24749. });
  24750. Promise.all(promises).then(() => {
  24751. zip.generateAsync({ type: "blob" }).then((content) => {
  24752. // 生成二进制流
  24753. FileSaver.saveAs(
  24754. content,
  24755. this.courseDetail.title + "-" + "作业提交工具.zip"
  24756. ); // 利用file-saver保存文件 自定义文件名
  24757. setTimeout(() => {
  24758. loading.close();
  24759. }, 2000);
  24760. });
  24761. });
  24762. },
  24763. pickStudent(stu) {
  24764. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24765. return;
  24766. }
  24767. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24768. confirmButtonText: "确定",
  24769. cancelButtonText: "取消",
  24770. type: "warning",
  24771. })
  24772. .then(() => {
  24773. let params = [
  24774. {
  24775. uid: stu.userid,
  24776. cid: this.id,
  24777. stage: this.courseType,
  24778. task: this.taskCount,
  24779. tool: this.toolindex,
  24780. },
  24781. ];
  24782. this.ajax
  24783. .post(this.$store.state.api + "updateCoursePick", params)
  24784. .then((res) => {
  24785. this.$message.success("操作成功");
  24786. this.getPick();
  24787. })
  24788. .catch((err) => {
  24789. this.$message.error("网络不佳");
  24790. console.error(err);
  24791. });
  24792. })
  24793. .catch(() => {});
  24794. },
  24795. selectUser(){
  24796. let params = {
  24797. userid: this.userid,
  24798. };
  24799. this.ajax
  24800. .get(this.$store.state.api + "selectUser", params)
  24801. .then((res) => {
  24802. this.userMes = res.data[0];
  24803. })
  24804. .catch((err) => {
  24805. console.error(err);
  24806. });
  24807. },
  24808. setEngText(i){
  24809. this.newEngIndex = i;
  24810. this.$forceUpdate();
  24811. },
  24812. addCorrect(){
  24813. this.$confirm("你确定提交批改嘛?", "提示", {
  24814. confirmButtonText: "确定",
  24815. showCancelButton: false,
  24816. closeOnClickModal: false,
  24817. type: "warning",
  24818. })
  24819. .then(() => {
  24820. let params = {
  24821. cid: this.id,
  24822. s: parseInt(this.courseType),
  24823. t: this.taskCount,
  24824. tool: this.toolindex,
  24825. wid: this.engWid,
  24826. c: this.userid,
  24827. 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) : "",
  24828. };
  24829. this.ajax
  24830. .get(this.$store.state.api + "addEngC", params)
  24831. .then((res) => {
  24832. this.$message.success("提交成功");
  24833. this.engUpdateDialogVisible = false;
  24834. })
  24835. .catch((err) => {
  24836. console.error(err);
  24837. });
  24838. })
  24839. .catch(() => {});
  24840. },
  24841. selectEngC(id,z){
  24842. let params = {
  24843. workid: id,
  24844. };
  24845. this.ajax
  24846. .get(this.$store.state.api + "selectEngC", params)
  24847. .then((res) => {
  24848. if(res.data[0].length == 0){
  24849. this.newEnglishList.engTitle = z.engTitle;
  24850. this.newEnglishList.engText = z.engText;
  24851. }else{
  24852. var a = res.data[0];
  24853. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24854. if(this.userMes[0].type == 2){
  24855. var snum = 0;
  24856. for(var i = 0;i<a.length;i++){
  24857. if(this.userMes[0].userid == a[i].correct){
  24858. this.newEnglishList = JSON.parse(a[i].cWork);
  24859. snum = 1;
  24860. }
  24861. }
  24862. if(snum == 0){
  24863. this.newEnglishList = { engTitle:"",engText:"" };
  24864. this.newEnglishList.engTitle = z.engTitle;
  24865. this.newEnglishList.engText = z.engText;
  24866. }
  24867. }else if(this.userMes[0].type == 1){
  24868. var num = 0;
  24869. for(var w= 0;w<a.length;w++){
  24870. if(this.userMes[0].userid == a[w].correct){
  24871. num = 1;
  24872. }
  24873. }
  24874. if(num == 0){
  24875. this.isNoUserid = true;
  24876. var c = JSON.parse(JSON.stringify(z));
  24877. this.oldEnglishJson1 = c;
  24878. }else{
  24879. this.isNoUserid = false;
  24880. }
  24881. var b = a.sort((item, index) => {
  24882. console.log(item)
  24883. if (item.correct === this.userMes[0].userid) {
  24884. return -1; // 将a移到前面
  24885. } else if (index.correct === this.userMes[0].userid) {
  24886. return 1; // 将b移到前面
  24887. } else {
  24888. return 0; // 保持默认顺序
  24889. }
  24890. });
  24891. for(var p = 0;p<b.length;p++){
  24892. for(var y = 0;y<ppp.length;y++){
  24893. if(b[p].id == ppp[y].id){
  24894. b[p].cWork = JSON.parse(ppp[y].cWork);
  24895. break
  24896. }
  24897. }
  24898. }
  24899. this.newEnglishList1 = b;
  24900. }
  24901. }
  24902. this.greyType = false;
  24903. setTimeout(() => {
  24904. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24905. if(this.newEnglishList1.length > 0){
  24906. if(this.isNoUserid == true){
  24907. this.engListLength = this.newEnglishList1.length + 1;
  24908. this.newEngIndex = -1;
  24909. }else{
  24910. this.engListLength = this.newEnglishList1.length;
  24911. this.newEngIndex = 0;
  24912. }
  24913. }
  24914. if(this.userMes[0].type == 2){
  24915. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24916. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24917. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24918. }else if(this.newEngIndex == -1){
  24919. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24920. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24921. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24922. }
  24923. }, 500);
  24924. this.engUpdateDialogVisible = true;
  24925. this.$forceUpdate();
  24926. })
  24927. .catch((err) => {
  24928. console.error(err);
  24929. });
  24930. },
  24931. getPick() {
  24932. if(this.getPickLoading) return
  24933. this.getPickLoading = true
  24934. let params = {
  24935. cid: this.id,
  24936. };
  24937. this.ajax
  24938. .get(this.$store.state.api + "getPick", params)
  24939. .then((res) => {
  24940. let array = [];
  24941. for (var i = 0; i < res.data[0].length; i++) {
  24942. array.push(res.data[0][i].userid);
  24943. }
  24944. this.isPickStudent = array;
  24945. if (array.indexOf(this.userid) !== -1) {
  24946. this.$confirm("你被老师选到啦!", "提示", {
  24947. confirmButtonText: "确定",
  24948. showCancelButton: false,
  24949. closeOnClickModal: false,
  24950. type: "warning",
  24951. })
  24952. .then(() => {
  24953. let pa = [
  24954. {
  24955. uid: this.userid,
  24956. cid: this.id,
  24957. },
  24958. ];
  24959. this.ajax
  24960. .post(this.$store.state.api + "deletePick", pa)
  24961. .then((res) => {
  24962. this.getPick();
  24963. })
  24964. .catch((err) => {
  24965. this.$message.error("网络不佳");
  24966. console.error(err);
  24967. });
  24968. })
  24969. .catch(() => {});
  24970. }
  24971. this.getPickLoading = false
  24972. })
  24973. .catch((err) => {
  24974. this.getPickLoading = false
  24975. this.$message.error("网络不佳");
  24976. console.error(err);
  24977. });
  24978. },
  24979. foldEva() {
  24980. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24982. } else {
  24983. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24984. setTimeout(() => {
  24985. this.checkEva();
  24986. setTimeout(() => {
  24987. this.checkEva();
  24988. }, 500);
  24989. }, 0);
  24990. }
  24991. this.$forceUpdate();
  24992. },
  24993. panToolHeight(tool) {
  24994. var _tool = document.querySelectorAll('#'+tool)[0]
  24995. var _toolA = _tool ? _tool.offsetHeight : 0
  24996. var _toolC = 0
  24997. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24998. let boolean2 = (_toolA > _toolC) ? true : false
  24999. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  25000. this.$forceUpdate();
  25001. },
  25002. async checkLink(url) {
  25003. // console.log(url)
  25004. let _url = url
  25005. try {
  25006. const response = await fetch(url);
  25007. if(!response.ok){
  25008. _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]))
  25009. }
  25010. // console.log(response.ok)
  25011. } catch (error) {
  25012. console.error('Error checking link:', error);
  25013. // console.log(false)
  25014. _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]))
  25015. }
  25016. // console.log(_url)
  25017. return _url
  25018. },
  25019. getScoreList(){
  25020. let params = {
  25021. cid: this.id,
  25022. };
  25023. this.ajax
  25024. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25025. .then((res) => {
  25026. let result = res.data;
  25027. this.scoreList.datalist = result[0];
  25028. this.scoreList.isScoreList = result[1];
  25029. })
  25030. .catch((err) => {
  25031. console.error(err);
  25032. });
  25033. },
  25034. setClassRoomHelperWidth(width){
  25035. this.classRoomHelperWidth = width
  25036. },
  25037. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25038. this.$refs.choseWorksDetailDialogRef.open({
  25039. toolType:tooc,
  25040. tType: this.tType,
  25041. toolIndex: toolIndex
  25042. });
  25043. this.changeSplitScreenBehavior({
  25044. code: 1,
  25045. form: {
  25046. toolType:tooc,
  25047. toolIndex: toolIndex,
  25048. courseType: this.courseType,
  25049. taskCount: this.taskCount,
  25050. type: 0
  25051. }
  25052. });
  25053. },
  25054. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25055. this.$refs.statisticalAnalysisRef.open({
  25056. worksStudent: this.worksStudent[toolIndex],
  25057. tType: this.tType,
  25058. toolIndex: toolIndex
  25059. });
  25060. this.changeSplitScreenBehavior({
  25061. code: 2,
  25062. form: {
  25063. toolType:4,
  25064. courseType: this.courseType,
  25065. taskCount: this.taskCount,
  25066. toolIndex: toolIndex,
  25067. type: 0
  25068. }
  25069. });
  25070. },
  25071. statisticalAnalysisRefresh(toolIndex) {
  25072. this.$refs.statisticalAnalysisRef.refreshData({
  25073. worksStudent: this.worksStudent[toolIndex],
  25074. tType: this.tType,
  25075. toolIndex: toolIndex
  25076. });
  25077. },
  25078. async splitScreenBehavior(type = 0) {
  25079. // return;
  25080. if (this.splitScreenData.loading)
  25081. return this.$message.info("操作过快,请稍等");
  25082. if (type == 0) {
  25083. //关闭分屏
  25084. this.splitScreenData.isOpen = false;
  25085. // this.splitScreenData.userId = "";
  25086. // this.splitScreenData.uid = "";
  25087. this.splitScreenData.behavior = null;
  25088. await this.updateSplitScreenData(1);
  25089. this.$message.success("已关闭分屏模式");
  25090. this.studentFreePreview(false);
  25091. this.OpenJobPreview(false);
  25092. // this.followingMode(false);
  25093. } else if (type == 1) {
  25094. //开启分屏
  25095. this.splitScreenData.isOpen = true;
  25096. this.splitScreenData.userId = this.userid;
  25097. this.splitScreenData.uid = this.splitScreenData.myUid;
  25098. this.splitScreenData.behavior = null;
  25099. let status = await this.updateSplitScreenData(0);
  25100. this.changeSplitScreenBehavior({form:{}})
  25101. if (status == 1) {
  25102. this.$message.success("已开启分屏");
  25103. this.studentFreePreview(false);
  25104. this.OpenJobPreview(true);
  25105. // this.followingMode(true);
  25106. } else {
  25107. this.splitScreenData.isOpen = false;
  25108. this.splitScreenData.userId = "";
  25109. this.splitScreenData.uid = "";
  25110. this.splitScreenData.behavior = null;
  25111. this.$message.success("分屏开启失败");
  25112. }
  25113. }
  25114. },
  25115. enterFullScreen() {
  25116. let element = document.documentElement;
  25117. if (element.requestFullscreen) {
  25118. element.requestFullscreen();
  25119. } else if (element.mozRequestFullScreen) { /* Firefox */
  25120. element.mozRequestFullScreen();
  25121. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25122. element.webkitRequestFullscreen();
  25123. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25124. element.msRequestFullscreen();
  25125. }
  25126. },
  25127. exitFullScreen() {
  25128. if (document.exitFullscreen) {
  25129. document.exitFullscreen();
  25130. } else if (document.mozCancelFullScreen) { /* Firefox */
  25131. document.mozCancelFullScreen();
  25132. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25133. document.webkitExitFullscreen();
  25134. } else if (document.msExitFullscreen) { /* IE/Edge */
  25135. document.msExitFullscreen();
  25136. }
  25137. },
  25138. confirmOpen(){
  25139. this.splitScreenData.isOpen = true;
  25140. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25141. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25142. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25143. this.confirmOpenDig = false
  25144. if (!document.fullscreenElement) {
  25145. this.enterFullScreen();
  25146. }
  25147. // if (this.timer2) {
  25148. // clearInterval(this.timer2);
  25149. // this.timer2 = null;
  25150. // }
  25151. // this.timer2 = setInterval(()=> {
  25152. // this.getSplitScreenData();//获取分屏数据
  25153. // }, 1000);
  25154. this.$message.success("分屏模式已开启");
  25155. },
  25156. getSplitScreenData() {
  25157. // return;
  25158. // if (this.tType != 1) return;
  25159. if(this.getSplitScreenDataLoading) return
  25160. this.getSplitScreenDataLoading = true
  25161. let params = {
  25162. cid: this.id
  25163. };
  25164. this.ajax
  25165. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25166. .then(async res => {
  25167. let data = res.data[0][0]["splitScreenData"];
  25168. console.log("获取了分屏数:", data);
  25169. if (data) {
  25170. data = JSON.parse(data);
  25171. if (
  25172. !this.splitScreenData.isOpen &&
  25173. data.isOpen &&
  25174. this.splitScreenData.myUid == data.uid
  25175. ) {
  25176. this.splitScreenData.isOpen = false;
  25177. this.splitScreenData.userId = "";
  25178. this.splitScreenData.uid = "";
  25179. this.splitScreenData.behavior = null;
  25180. await this.updateSplitScreenData(1);
  25181. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25182. this.confirmOpenDig = true
  25183. this.confirmOpenDigData = data
  25184. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25185. this.splitScreenData.isOpen = false;
  25186. this.splitScreenData.userId = "";
  25187. this.splitScreenData.uid = "";
  25188. this.splitScreenData.behavior = null;
  25189. this.$message.error("已结束分屏模式");
  25190. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25191. this.splitScreenData.isOpen = true;
  25192. this.splitScreenData.uid = data.uid;
  25193. this.splitScreenData.userId = data.userId;
  25194. this.splitScreenData.behavior = data.behavior;
  25195. }
  25196. this.doSplitScreenBehavior();
  25197. } else {
  25198. if (this.splitScreenData.isOpen) {
  25199. this.splitScreenData.isOpen = false;
  25200. this.splitScreenData.userId = "";
  25201. this.splitScreenData.uid = "";
  25202. this.splitScreenData.behavior = null;
  25203. this.$message.error("已结束分屏模式");
  25204. // if (this.timer2) {
  25205. // clearInterval(this.timer2);
  25206. // this.timer2 = null;
  25207. // }
  25208. // this.timer2 = setInterval(()=> {
  25209. // this.getSplitScreenData();//获取分屏数据
  25210. // }, 5000);
  25211. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25212. confirmButtonText: '确定', //确认按钮的文字
  25213. showCancelButton: false, //是否显示取消按钮
  25214. showClose: false, //是否显示关闭按钮
  25215. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25216. type: "warning",
  25217. })
  25218. .then(() => {
  25219. if (document.fullscreenElement) {
  25220. this.exitFullScreen();
  25221. }
  25222. })
  25223. .catch(() => {});
  25224. }
  25225. }
  25226. this.getSplitScreenDataLoading = false
  25227. })
  25228. .catch(e => {
  25229. this.getSplitScreenDataLoading = false
  25230. console.log("获取分屏数出错:", e);
  25231. });
  25232. },
  25233. doSplitScreenBehavior() {
  25234. if (
  25235. this.splitScreenData.isOpen &&
  25236. this.splitScreenData.uid != this.splitScreenData.myUid
  25237. ) {
  25238. let behavior = this.splitScreenData.behavior;
  25239. if (behavior) {
  25240. if (behavior.code === 99) {
  25241. //初始化
  25242. this.fullDialogVisible = false;
  25243. if(this.$refs.choseWorksDetailDialogRef.show){
  25244. this.$refs.choseWorksDetailDialogRef.close();
  25245. }
  25246. if(this.$refs.statisticalAnalysisRef.show){
  25247. this.$refs.statisticalAnalysisRef.close();
  25248. }
  25249. }
  25250. if (behavior.code === 0) {
  25251. //开启内容列表弹窗
  25252. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25253. }else{
  25254. this.fullDialogVisible = false;
  25255. }
  25256. if (behavior.code === 1) {
  25257. //关于选择题的作业详细的操作
  25258. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25259. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25260. this.courseType = behavior.form.courseType;
  25261. this.taskCount = behavior.form.taskCount;
  25262. }
  25263. this.$nextTick(() => {
  25264. if (this.$refs.choseWorksDetailDialogRef.show) {
  25265. //已经打开了
  25266. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25267. } else {
  25268. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25269. }
  25270. });
  25271. }else{
  25272. this.$refs.choseWorksDetailDialogRef.close()
  25273. }
  25274. if(behavior.code === 2){
  25275. if(this.$refs.statisticalAnalysisRef.show){
  25276. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25277. }else{
  25278. this.$refs.statisticalAnalysisRef.open({
  25279. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25280. tType: this.tType,
  25281. toolIndex: behavior.form.toolIndex
  25282. });
  25283. }
  25284. }else{
  25285. this.$refs.statisticalAnalysisRef.close();
  25286. }
  25287. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25288. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25289. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25290. if (behavior.form.courseType != this.courseType ||
  25291. behavior.form.taskCount != this.taskCount ||
  25292. behavior.form.toolType != this.toolindex
  25293. ) {
  25294. var a = document.scrollingElement;
  25295. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25296. if (target) {
  25297. target.scrollIntoView(true);
  25298. setTimeout(()=>{
  25299. let scrollBody = document.querySelector('.body_student').parentElement
  25300. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25301. }, 0);
  25302. // setTimeout(() => {
  25303. // a.scrollTop = 0
  25304. // }, 0);
  25305. }
  25306. }
  25307. if(this.courseType !=behavior.form.courseType){
  25308. this.courseType = behavior.form.courseType;
  25309. }
  25310. if(this.taskCount !=behavior.form.taskCount){
  25311. this.taskCount = behavior.form.taskCount;
  25312. }
  25313. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25314. this.toolindex = behavior.form.toolType;
  25315. }
  25316. // if(behavior.form.navId){
  25317. // this.navId = behavior.form.navId
  25318. // }
  25319. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25320. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25321. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25322. this.getCourseDetail()
  25323. }
  25324. this.setContent2(false)
  25325. }
  25326. } else {
  25327. }
  25328. }
  25329. },
  25330. updateSplitScreenData(empty = 0) {
  25331. return new Promise(resolve => {
  25332. if(this.userid!==this.courseDetail.userid){
  25333. if(!this.courseDetail.userid){
  25334. return setTimeout(()=>{
  25335. this.updateSplitScreenData(empty)
  25336. },2000)
  25337. }
  25338. return;
  25339. };
  25340. if (
  25341. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25342. this.splitScreenData.userId == this.userid
  25343. ) {
  25344. this.splitScreenData.loading = true;
  25345. let params = [
  25346. {
  25347. cid: this.id,
  25348. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25349. }
  25350. ];
  25351. this.ajax
  25352. .post(
  25353. this.$store.state.api + "update_courseSplitScreenData",
  25354. params
  25355. )
  25356. .then(res => {
  25357. this.splitScreenData.loading = false;
  25358. if (res.data == 1) {
  25359. resolve(1);
  25360. console.log("修改分屏数据成功");
  25361. }
  25362. })
  25363. .catch(e => {
  25364. this.splitScreenData.loading = false;
  25365. console.log("修改分屏数据失败", e);
  25366. resoleve(0);
  25367. });
  25368. } else if (empty == 2 && this.tType == 1) {
  25369. let params = [
  25370. {
  25371. cid: this.id,
  25372. nData: ""
  25373. }
  25374. ];
  25375. return this.ajax
  25376. .post(
  25377. this.$store.state.api + "update_courseSplitScreenData",
  25378. params
  25379. )
  25380. .then(_ => resolve(1))
  25381. .catch(_ => resolve(0));
  25382. } else {
  25383. return resolve(0);
  25384. }
  25385. });
  25386. },
  25387. changeSplitScreenBehavior(newValue) {
  25388. if (
  25389. this.splitScreenData.isOpen &&
  25390. this.splitScreenData.uid == this.splitScreenData.myUid
  25391. ) {
  25392. let _behavior = null;
  25393. if(!newValue){
  25394. _behavior = {}
  25395. }else{
  25396. _behavior = newValue
  25397. }
  25398. if(_behavior.form){
  25399. _behavior.form.taskCount = this.taskCount;
  25400. _behavior.form.courseType = this.courseType
  25401. }else{
  25402. _behavior.form = {
  25403. taskCount:this.taskCount,
  25404. courseType:this.courseType
  25405. }
  25406. }
  25407. this.splitScreenData.behavior = _behavior;
  25408. this.updateSplitScreenData(0);
  25409. }
  25410. },
  25411. studentFreePreview(flag) {
  25412. this.IsLookOpen = flag;
  25413. this.followingMode(flag)
  25414. this.updateLookOpen();
  25415. },
  25416. OpenJobPreview(flag) {
  25417. this.sIsOpen = flag;
  25418. this.updateSLook();
  25419. },
  25420. followingMode(flag) {
  25421. this.IsFollow = flag;
  25422. this.updateFollow();
  25423. },
  25424. StulookMode(flag) {
  25425. this.IsStulook = flag;
  25426. this.updateIsStulook();
  25427. },
  25428. },
  25429. directives: {
  25430. // 使用局部注册指令的方式
  25431. resize: {
  25432. // 指令的名称
  25433. bind(el, binding) {
  25434. // el为绑定的元素,binding为绑定给指令的对象
  25435. let width = "",
  25436. height = "";
  25437. function isReize() {
  25438. const style = document.defaultView.getComputedStyle(el);
  25439. if (width !== style.width || height !== style.height) {
  25440. binding.value(); // 关键
  25441. }
  25442. width = style.width;
  25443. height = style.height;
  25444. }
  25445. el.__vueSetInterval__ = setInterval(isReize, 300);
  25446. },
  25447. unbind(el) {
  25448. clearInterval(el.__vueSetInterval__);
  25449. },
  25450. },
  25451. autoHeight: {
  25452. update(el, binding) {
  25453. const { value } = binding
  25454. if (value && typeof value === 'number') {
  25455. el.style.height = `${value}px`
  25456. } else {
  25457. el.style.height = 'auto'
  25458. }
  25459. },
  25460. componentUpdated(el) {
  25461. el.style.height = `${el.scrollHeight + 5}px`
  25462. },
  25463. },
  25464. },
  25465. beforeDestroy() {
  25466. window.onresize = null;
  25467. clearInterval(this.timer);
  25468. clearInterval(this.timer2);
  25469. this.timer = null;
  25470. this.timer2 = null;
  25471. clearInterval(this.opertimer);
  25472. this.opertimer = null;
  25473. this.updateSplitScreenData(1);
  25474. },
  25475. computed: {
  25476. renderedFormula2() {
  25477. return function(val){
  25478. // 处理换行符和HTML实体
  25479. const normalized = val
  25480. .replace(/&amp;/g, '&')
  25481. .replace(/<br\/?>/g, '\n');
  25482. // 匹配行内公式($...$)和块级公式($$...$$)
  25483. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  25484. try {
  25485. return katex.renderToString(expr.trim(), {
  25486. displayMode: false,
  25487. throwOnError: false,
  25488. macros: {
  25489. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  25490. }
  25491. });
  25492. } catch (e) {
  25493. console.warn('KaTeX渲染失败:', e);
  25494. return `<span style="color:red">${expr}</span>`;
  25495. }
  25496. })
  25497. }
  25498. },
  25499. renderedFormula() {
  25500. return function(val){
  25501. try {
  25502. // 判断是否含有HTML标签,<tag ...>...</tag>
  25503. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  25504. if (!hasTag) {
  25505. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25506. // 纯文本,整体渲染
  25507. try {
  25508. return katex.renderToString(val.trim(), {
  25509. throwOnError: false,
  25510. strict: false,
  25511. output: "htmlAndMathml"
  25512. });
  25513. } catch (e) {
  25514. return val; // 渲染失败原样输出
  25515. }
  25516. } else {
  25517. // 有标签,对每个标签内容渲染
  25518. return val.replace(
  25519. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  25520. (match, tag, attrs, inner) => {
  25521. let html;
  25522. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25523. try {
  25524. html = katex.renderToString(inner.trim(), {
  25525. throwOnError: false,
  25526. strict: false,
  25527. output: "htmlAndMathml"
  25528. });
  25529. } catch (e) {
  25530. html = inner;
  25531. }
  25532. return `<${tag}${attrs}>${html}</${tag}>`;
  25533. }
  25534. );
  25535. }
  25536. } catch (e) {
  25537. console.error('KaTeX渲染错误:', e);
  25538. return val;
  25539. }
  25540. }
  25541. },
  25542. isAndroid() {
  25543. return /Android/i.test(navigator.userAgent);
  25544. },
  25545. getHeight(){
  25546. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25547. },
  25548. contentConvent() {
  25549. return function (c) {
  25550. return c
  25551. ? c
  25552. .replaceAll(/\r\n/g, "<br/>")
  25553. .replaceAll(/\n/g, "<br/>")
  25554. .replaceAll(/\s/g, " &nbsp")
  25555. : "";
  25556. };
  25557. },
  25558. MarkdownT() {
  25559. return function (c) {
  25560. let md = new MarkdownIt({
  25561. html: true, // 允许渲染 HTML
  25562. linkify: true, // 自动将URL链接转化为可点击链接
  25563. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  25564. });
  25565. return c
  25566. ? md.render(c) : "";
  25567. };
  25568. },
  25569. commentRight(){
  25570. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  25571. return "35px";
  25572. }
  25573. return `calc(${this.classRoomHelperWidth} + 5px)`
  25574. // if(this.$refs["classRoomHelperRef"].type==0){
  25575. // return "100px";
  25576. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25577. // return "502px"
  25578. // }else{
  25579. // return "0px"
  25580. // }
  25581. },
  25582. checkUpload() {
  25583. return function () {
  25584. var studentK = [];
  25585. if (this.plworkFile.length > 0) {
  25586. for (var z = 0; z < this.plworkFile.length; z++) {
  25587. studentK.push(this.plworkFile[z].username);
  25588. }
  25589. studentK = studentK.join(",");
  25590. }
  25591. var a = this.uploadStudentJuri.filter((el) => {
  25592. return studentK.indexOf(el.userid) == -1;
  25593. });
  25594. return a;
  25595. };
  25596. },
  25597. getSName() {
  25598. return function (name) {
  25599. var check = name;
  25600. this.uploadStudentJuri.forEach((el) => {
  25601. if (el.userid == check) {
  25602. check = el.name ? el.name : el.username;
  25603. }
  25604. });
  25605. return check;
  25606. };
  25607. },
  25608. getImgList() {
  25609. return function (val) {
  25610. let srcList = []; // 定义一个数组用来接收后面的img地址
  25611. val.replace(
  25612. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25613. function (match, capture) {
  25614. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25615. srcList.push(capture);
  25616. }
  25617. );
  25618. return srcList;
  25619. };
  25620. },
  25621. retrnToolHeight(){
  25622. return function (tool) {
  25623. var _tool = document.querySelectorAll('#'+tool)[0]
  25624. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25625. };
  25626. },
  25627. Correct() {
  25628. return function (c,d) {
  25629. let w = "";
  25630. let a = this.correctWord;
  25631. for(var k = 0;k<a.length;k++){
  25632. //diffWordsWithSpace
  25633. if(a.length > 1){
  25634. if(a[k].added == true){
  25635. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25636. }else if(a[k].removed == true){
  25637. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25638. }else{
  25639. w += '<span>' + a[k].value + '</span>';
  25640. }
  25641. }else{
  25642. w = c
  25643. }
  25644. console.log("👇👇!+++==")
  25645. console.log(w)
  25646. //diffChars方法
  25647. // if(w == ""){
  25648. // if(a.length > 1){
  25649. // if(a[k].added == true){
  25650. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25651. // }else if(a[k].removed == true){
  25652. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25653. // }
  25654. // }else{
  25655. // w = c
  25656. // }
  25657. // }else{
  25658. // if(k == a.length - 1){
  25659. // if(a[k].added == true){
  25660. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25661. // }else if(a[k].removed == true){
  25662. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25663. // }
  25664. // }else{
  25665. // if(a[k].added == true){
  25666. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25667. // }else if(a[k].removed == true){
  25668. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25669. // }
  25670. // }
  25671. // }
  25672. }
  25673. c = w;
  25674. return c;
  25675. };
  25676. },
  25677. },
  25678. mounted() {
  25679. document.body.addEventListener("click", (e) => {
  25680. if (this.isUpdateToolDetail1) {
  25681. this.updateToolDetail(this.toolDetailIndex);
  25682. }
  25683. });
  25684. try {
  25685. if (this.screenType == 2) {
  25686. window.topU.postMessage({ allScreen: 4 }, "*");
  25687. } else if (this.screenType == 3) {
  25688. window.topU.postMessage({ allScreen: 5 }, "*");
  25689. } else if (this.screenType == 1) {
  25690. window.topU.postMessage({ allScreen: 6 }, "*");
  25691. }
  25692. } catch (error) {
  25693. console.log(error)
  25694. }
  25695. this.getCode2()
  25696. this.setOperationTime();
  25697. this.selectEva();
  25698. this.getCourseDetail(10);
  25699. this.selectCount();
  25700. this.getHomeWork();
  25701. this.selectUser();
  25702. this.getAIJ();
  25703. this.contentDialog = false;
  25704. this.setContent2(true);
  25705. if (this.tType == 4) {
  25706. this.pzDialog = true;
  25707. this.selectPz();
  25708. }
  25709. // 获取评分列表
  25710. this.getScoreList()
  25711. this.updateSplitScreenData(2);
  25712. this.splitScreenData.myUid = uuidv4();
  25713. document.scrollingElement.scrollTop = 0;
  25714. window.addEventListener("resize", () => {
  25715. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25716. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25717. if (this.showType == 2 || this.showType == 3) {
  25718. document.getElementsByClassName("navBox")[0].style.height =
  25719. a - 40 + 0+ "px";
  25720. } else {
  25721. document.getElementsByClassName("navBox")[0].style.height =
  25722. a - 40 + "px";
  25723. }
  25724. });
  25725. // let _this = this;
  25726. // setTimeout(() => {
  25727. // _this.vedioTime = [];
  25728. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25729. // _this.vedioTime[i] = document.getElementsByClassName(
  25730. // "vjs-duration-display"
  25731. // )[i].textContent;
  25732. // }
  25733. // }, 1000);
  25734. },
  25735. };
  25736. </script>
  25737. <style scoped>
  25738. @media screen and (max-width: 1280px) {
  25739. /* .courseIndex > div:first-child(2) {
  25740. width: 15% !important;
  25741. } */
  25742. /* .navText {
  25743. width: 120px !important;
  25744. } */
  25745. .evaCss {
  25746. flex-direction: column !important;
  25747. align-items: center !important;
  25748. }
  25749. .elist_input {
  25750. width: 90% !important;
  25751. }
  25752. .dialog_diy1 >>> .el-dialog {
  25753. width: 100% !important;
  25754. }
  25755. .rightWidthCss {
  25756. width: 100% !important;
  25757. }
  25758. .dialog_diy3 >>> .el-dialog {
  25759. width: 100% !important;
  25760. }
  25761. .addToolCss {
  25762. right: 0 !important;
  25763. width: 100% !important;
  25764. min-width: unset !important;
  25765. }
  25766. }
  25767. .evaCssMax {
  25768. flex-direction: column !important;
  25769. align-items: center !important;
  25770. }
  25771. /* .dialog_diy >>> .el-dialog { */
  25772. /* margin-top: 10vh !important; */
  25773. /* } */
  25774. .body_student {
  25775. width: 77%;
  25776. height: 100%;
  25777. position: absolute;
  25778. left: 22%;
  25779. top: 0;
  25780. }
  25781. .student_head {
  25782. width: 100%;
  25783. margin: 20px auto 0;
  25784. padding-bottom: 20px;
  25785. display: flex;
  25786. flex-direction: column;
  25787. flex-wrap: nowrap;
  25788. align-items: flex-start;
  25789. justify-content: flex-start;
  25790. }
  25791. .pb_left {
  25792. width: 15%;
  25793. margin-right: 10px;
  25794. background: rgb(255, 255, 255);
  25795. position: fixed;
  25796. height: calc(100% - 40px);
  25797. border-radius: 20px;
  25798. padding-bottom: 15px;
  25799. box-sizing: border-box;
  25800. }
  25801. .wheel > img,
  25802. .project > img,
  25803. .star > img,
  25804. .evaluate > img,
  25805. .up_photo > img,
  25806. .chapter_add > img,
  25807. .deleteWord > img,
  25808. .question > img,
  25809. .homework > img {
  25810. width: 100%;
  25811. height: 100%;
  25812. }
  25813. .upCover > img {
  25814. width: 131px;
  25815. height: 69px;
  25816. object-fit: cover;
  25817. }
  25818. .upCover {
  25819. width: calc(100% / 3.5);
  25820. position: relative;
  25821. margin: 0 15px 10px 0;
  25822. display: flex;
  25823. flex-direction: column;
  25824. flex-wrap: nowrap;
  25825. justify-content: center;
  25826. align-content: center;
  25827. align-items: center;
  25828. height: fit-content;
  25829. }
  25830. .upCover2 {
  25831. width: 100%;
  25832. position: relative;
  25833. margin: 0 15px 10px 0;
  25834. display: flex;
  25835. flex-direction: column;
  25836. flex-wrap: nowrap;
  25837. justify-content: center;
  25838. align-content: center;
  25839. align-items: center;
  25840. }
  25841. .upCover2 > img {
  25842. width: 100%;
  25843. height: 90px;
  25844. object-fit: contain;
  25845. }
  25846. .chapter_add {
  25847. width: 120px;
  25848. position: relative;
  25849. text-align: center;
  25850. }
  25851. .isAddThings {
  25852. margin-top: 20px;
  25853. position: relative;
  25854. text-align: center;
  25855. background: #f7f8fa;
  25856. height: 90px;
  25857. width: 90px;
  25858. display: flex;
  25859. flex-direction: column;
  25860. justify-content: center;
  25861. }
  25862. .deleteWord {
  25863. width: 22px;
  25864. height: 22px;
  25865. position: absolute;
  25866. right: -5px;
  25867. top: -5px;
  25868. cursor: pointer;
  25869. }
  25870. .box_course {
  25871. /* width: 60%; */
  25872. width: calc(100% - 300px);
  25873. }
  25874. .wheel {
  25875. width: 100%;
  25876. /* height: 100%; */
  25877. height: 650px;
  25878. }
  25879. .right_box {
  25880. display: flex;
  25881. flex-direction: column;
  25882. margin-left: 30px;
  25883. justify-content: space-around;
  25884. }
  25885. .right_box_title {
  25886. font-size: 23px;
  25887. }
  25888. .people {
  25889. display: flex;
  25890. }
  25891. .student_body {
  25892. width: 100%;
  25893. margin: 0 auto;
  25894. margin-top: 10px;
  25895. padding: 0 0 20px;
  25896. }
  25897. .study_top {
  25898. margin-top: 100px;
  25899. width: 100%;
  25900. height: auto;
  25901. padding-bottom: 20px;
  25902. margin-left: 2px;
  25903. min-height: 90%;
  25904. }
  25905. .study_top .checkbox {
  25906. display: flex;
  25907. align-items: center;
  25908. padding: 15px 0 15px 30px;
  25909. flex: 0 0 auto;
  25910. font-weight: bold;
  25911. border-bottom: 1px solid #eee;
  25912. }
  25913. .study_top .check {
  25914. padding-bottom: 5px;
  25915. text-align: center;
  25916. cursor: pointer;
  25917. height: 30px;
  25918. box-sizing: border-box;
  25919. display: flex;
  25920. }
  25921. .study_top .checked {
  25922. border-bottom: 4px solid #3fc6a0;
  25923. padding-bottom: 5px;
  25924. color: #3fc6a0;
  25925. display: flex;
  25926. height: 35px;
  25927. }
  25928. .study_top .checked > div,
  25929. .study_top .check > div {
  25930. margin-right: 5px;
  25931. }
  25932. .videoTop {
  25933. display: flex;
  25934. flex-direction: row;
  25935. justify-content: space-between;
  25936. background: #fff;
  25937. align-items: center;
  25938. width: 95%;
  25939. padding: 20px;
  25940. }
  25941. .filebox {
  25942. display: flex;
  25943. flex-wrap: wrap;
  25944. flex-direction: column;
  25945. padding: 0 0 5px;
  25946. position: relative;
  25947. }
  25948. .filebox:before {
  25949. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25950. position: absolute;
  25951. top: 20px;
  25952. left: 13px;
  25953. border-left: 2px dotted #cad1dc;
  25954. height: calc(100% - 15px);
  25955. }
  25956. .toolHeng2 > div:last-child::before {
  25957. height: calc(100% - 43px);
  25958. }
  25959. .filebox .tooldetail {
  25960. width: calc(100%);
  25961. margin: 0px 12px;
  25962. padding: 12px;
  25963. line-height: 30px;
  25964. word-break: break-word;
  25965. background: #ffffff;
  25966. border-radius: 8px 8px 8px 8px;
  25967. opacity: 1;
  25968. border: 1px solid #cad1dc;
  25969. overflow:hidden;
  25970. box-sizing:border-box;
  25971. }
  25972. .file {
  25973. display: flex;
  25974. flex-direction: column;
  25975. align-items: center;
  25976. justify-content: center;
  25977. cursor: pointer;
  25978. width: 200px;
  25979. }
  25980. .file div {
  25981. margin-top: 10px;
  25982. width: 150px;
  25983. text-align: center;
  25984. overflow: hidden;
  25985. white-space: nowrap;
  25986. text-overflow: ellipsis;
  25987. }
  25988. .media {
  25989. display: flex;
  25990. flex-direction: column;
  25991. align-items: center;
  25992. justify-content: center;
  25993. margin: 0 20px 20px 0;
  25994. cursor: pointer;
  25995. margin: 12px 0 5px 15px;
  25996. overflow: hidden;
  25997. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25998. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25999. box-sizing: border-box;
  26000. }
  26001. .media img {
  26002. height: 90px;
  26003. width: 160px;
  26004. object-fit: cover;
  26005. }
  26006. .media .title {
  26007. padding: 5px;
  26008. text-align: left;
  26009. width: 100%;
  26010. box-sizing: border-box;
  26011. }
  26012. .media .btn {
  26013. width: 100%;
  26014. height: 35px;
  26015. line-height: 35px;
  26016. color: #fff;
  26017. background: #606060;
  26018. text-align: center;
  26019. overflow: hidden;
  26020. white-space: nowrap;
  26021. text-overflow: ellipsis;
  26022. }
  26023. .detail_content_top {
  26024. width: 100%;
  26025. padding: 25px 0 25px 0;
  26026. }
  26027. .detail_title {
  26028. text-align: center;
  26029. font-size: 24px;
  26030. }
  26031. .detail_time {
  26032. font-size: 13px;
  26033. padding: 15px 0 0 40px;
  26034. }
  26035. .detail_content {
  26036. line-height: 2pc;
  26037. width: 90%;
  26038. margin: 0 auto;
  26039. padding-top: 30px;
  26040. text-indent: 30px;
  26041. overflow: auto;
  26042. height: 200px;
  26043. }
  26044. .score_box >>> .el-rate {
  26045. margin-left: 10px;
  26046. }
  26047. .dialog_change >>> .el-dialog {
  26048. border-radius: 5px;
  26049. }
  26050. .dialog_change >>> .el-dialog__header {
  26051. background: #f2f2f2;
  26052. text-align: center;
  26053. }
  26054. .dialog_change >>> .el-dialog__title {
  26055. line-height: 5px;
  26056. }
  26057. .dialog_change >>> .el-dialog__body {
  26058. background: #fff;
  26059. padding: 10px 20px;
  26060. }
  26061. .score_box {
  26062. display: flex;
  26063. align-items: center;
  26064. margin-bottom: 18px;
  26065. margin-top: 20px;
  26066. }
  26067. .up_photo {
  26068. width: 120px;
  26069. cursor: pointer;
  26070. margin-top: 10px;
  26071. }
  26072. .up_photo2 {
  26073. width: 180px;
  26074. box-sizing: border-box;
  26075. min-width: 180px;
  26076. height: 180px;
  26077. max-height: 180px;
  26078. min-height: 180px;
  26079. cursor: pointer;
  26080. display: flex;
  26081. flex-direction: column;
  26082. align-items: center;
  26083. justify-content: center;
  26084. background: rgb(242, 246, 255);
  26085. /* padding: 25px; */
  26086. margin-bottom: 10px;
  26087. }
  26088. .up_photo2 img {
  26089. width: 50%;
  26090. height: auto;
  26091. }
  26092. .up_photo2 span {
  26093. color: #898989;
  26094. }
  26095. .plworkBox {
  26096. display: flex;
  26097. align-items: center;
  26098. margin-top: 10px;
  26099. flex-wrap: wrap;
  26100. }
  26101. .upload_send {
  26102. margin: 30px auto 30px;
  26103. width: 60%;
  26104. background: #3681fc;
  26105. text-align: center;
  26106. height: 35px;
  26107. line-height: 35px;
  26108. color: #fff;
  26109. border-radius: 5px;
  26110. cursor: pointer;
  26111. }
  26112. .marginT {
  26113. margin-top: 20px;
  26114. }
  26115. .cd_content_steps {
  26116. display: flex;
  26117. width: 90%;
  26118. justify-content: space-around;
  26119. border-top: 1px solid #eeeeee;
  26120. }
  26121. .cd_steps_box {
  26122. display: flex;
  26123. justify-content: center;
  26124. align-items: center;
  26125. flex-direction: column;
  26126. cursor: pointer;
  26127. }
  26128. .first {
  26129. display: flex;
  26130. align-items: center;
  26131. margin: 15px 0 20px 0;
  26132. font-size: 20px;
  26133. }
  26134. .first > div:nth-child(2) {
  26135. font-size: 16px !important;
  26136. padding-left: 10px;
  26137. line-height: 26px;
  26138. box-sizing: border-box;
  26139. }
  26140. .blue_box_one {
  26141. text-align: center;
  26142. color: #fff;
  26143. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26144. border-radius: 7px;
  26145. margin: 10px;
  26146. cursor: pointer;
  26147. width: 95%;
  26148. height: 45px;
  26149. display: flex;
  26150. flex-direction: row;
  26151. justify-content: flex-start;
  26152. align-items: center;
  26153. }
  26154. .blue_box_one > div:nth-child(1) {
  26155. line-height: 30px;
  26156. margin: 0 5px 0 10px;
  26157. width: 30%;
  26158. min-width: 70px;
  26159. border-radius: 4px;
  26160. }
  26161. .blue_box_one > div:nth-child(2) {
  26162. white-space: nowrap;
  26163. text-overflow: ellipsis;
  26164. overflow: hidden;
  26165. word-break: break-all;
  26166. width: 70%;
  26167. text-align: left;
  26168. margin-right: 10px;
  26169. max-width: calc(100% - 85px);
  26170. }
  26171. .blue_box_one > div:nth-child(2):hover {
  26172. overflow: hidden;
  26173. text-overflow: ellipsis;
  26174. white-space: nowrap;
  26175. cursor: pointer;
  26176. }
  26177. .upFile {
  26178. margin: 0 auto;
  26179. width: 120px;
  26180. background: #3681fc;
  26181. color: #fff;
  26182. height: 30px;
  26183. text-align: center;
  26184. line-height: 30px;
  26185. border-radius: 5px;
  26186. font-size: 14px;
  26187. cursor: pointer;
  26188. }
  26189. .courseTitle {
  26190. width: 85%;
  26191. margin: 10px auto 26px auto;
  26192. display: flex;
  26193. flex-direction: row;
  26194. align-items: center;
  26195. justify-content: space-between;
  26196. text-align: center;
  26197. }
  26198. .courseTitle .ctitle {
  26199. font-size: 20px;
  26200. font-weight: bold;
  26201. color: #0e1e33;
  26202. white-space: nowrap;
  26203. overflow: hidden;
  26204. text-overflow: ellipsis;
  26205. }
  26206. .inviteBox {
  26207. font-size: 14px;
  26208. /* margin-top: 5px; */
  26209. color: #00000099;
  26210. text-align: center;
  26211. }
  26212. .courseTitle >>> .el-tooltip {
  26213. width: 100%;
  26214. white-space: nowrap;
  26215. overflow: hidden;
  26216. text-overflow: ellipsis;
  26217. word-break: break-word;
  26218. }
  26219. .ml {
  26220. margin-left: 20px;
  26221. color: #5b7dba;
  26222. border-left: 3px solid #5b7dba;
  26223. padding-left: 5px;
  26224. font-weight: bold;
  26225. }
  26226. .return {
  26227. width: 2rem;
  26228. height: 2rem;
  26229. cursor: pointer;
  26230. }
  26231. .return > img {
  26232. width: 100%;
  26233. height: 100%;
  26234. }
  26235. .returnBtn {
  26236. width: 86px;
  26237. height: 36px;
  26238. background: #3681fc;
  26239. border-radius: 4px;
  26240. color: #fff;
  26241. text-align: center;
  26242. line-height: 36px;
  26243. margin-right: 20px;
  26244. cursor: pointer;
  26245. font-size: 14px;
  26246. font-weight: 400;
  26247. display: flex;
  26248. flex-direction: row;
  26249. flex-wrap: nowrap;
  26250. align-items: center;
  26251. justify-content: center;
  26252. }
  26253. .reBtnIcon,
  26254. .commentIcon,
  26255. .vedioIcon,
  26256. .vedioIcon1 {
  26257. /* width: 36px; */
  26258. height: 36px;
  26259. border-radius: 4px;
  26260. position: relative;
  26261. /* background: #e0eafb; */
  26262. background: #0061ff;
  26263. cursor: pointer;
  26264. margin-right: 12px;
  26265. display: flex;
  26266. align-items: center;
  26267. padding: 0 10px;
  26268. box-sizing: border-box;
  26269. font-size: 14px;
  26270. color: #fff;
  26271. }
  26272. .reBtnIcon::before,
  26273. .commentIcon::before,
  26274. .vedioIcon::before,
  26275. .vedioIcon1::before {
  26276. content: "";
  26277. display: block;
  26278. background-size: 100% 100%;
  26279. background-repeat: no-repeat;
  26280. width: 20px;
  26281. height: 20px;
  26282. margin-right: 5px;
  26283. /* position: absolute; */
  26284. /* top: 8px;
  26285. left: 8px; */
  26286. }
  26287. .vedioIcon1 {
  26288. background: #f63564;
  26289. }
  26290. .reBtnIcon::before {
  26291. background-image: url("../../assets/icon/newIcons/refresh.png");
  26292. }
  26293. .commentIcon::before {
  26294. background-image: url("../../assets/icon/newIcons/comment.png");
  26295. }
  26296. .vedioIcon::before {
  26297. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26298. }
  26299. .vedioIcon1::before {
  26300. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26301. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26302. }
  26303. .tool {
  26304. display: flex;
  26305. flex-direction: column;
  26306. flex-wrap: nowrap;
  26307. width: 13%;
  26308. margin: 0 30px;
  26309. align-items: center;
  26310. position: relative;
  26311. padding: 10px 25px;
  26312. cursor: pointer;
  26313. }
  26314. .whiteBIcon {
  26315. width: 150px;
  26316. }
  26317. .whiteBIcon > img {
  26318. width: 100%;
  26319. height: 100%;
  26320. }
  26321. .mask {
  26322. background-color: rgba(0, 0, 0, 0);
  26323. position: fixed;
  26324. top: 0;
  26325. left: 0;
  26326. width: 100%;
  26327. height: 100%;
  26328. z-index: 20000;
  26329. display: flex;
  26330. align-items: center;
  26331. justify-content: center;
  26332. }
  26333. .progressBox {
  26334. width: 500px;
  26335. height: 180px;
  26336. background: #fff;
  26337. border-radius: 10px;
  26338. box-shadow: 0 0 6px 1px #bfbfbf;
  26339. display: flex;
  26340. align-items: center;
  26341. justify-content: center;
  26342. flex-direction: column;
  26343. position: relative;
  26344. color: #6c6c6c;
  26345. }
  26346. .progressBox >>> .el-progress-bar__outer {
  26347. background-color: #d1dfff !important;
  26348. }
  26349. .progressBox .lbox {
  26350. height: 50px;
  26351. font-size: 19px;
  26352. display: flex;
  26353. align-items: center;
  26354. color: #747474;
  26355. }
  26356. .progressBox .lbox img {
  26357. width: 40px;
  26358. margin-right: 20px;
  26359. }
  26360. .closeCss {
  26361. position: absolute;
  26362. top: 8px;
  26363. right: 8px;
  26364. cursor: pointer;
  26365. width: 20px;
  26366. height: 20px;
  26367. }
  26368. .closeCss > img {
  26369. width: 100%;
  26370. height: 100%;
  26371. }
  26372. .uploadVedio {
  26373. display: flex;
  26374. flex-direction: column;
  26375. flex-wrap: nowrap;
  26376. justify-content: center;
  26377. align-items: center;
  26378. margin: 0 15px 10px 0;
  26379. }
  26380. .uploadVedio > img {
  26381. width: 30px;
  26382. height: 30px;
  26383. }
  26384. .uploadVedio > span {
  26385. white-space: nowrap;
  26386. overflow: hidden;
  26387. text-overflow: ellipsis;
  26388. width: 75px;
  26389. margin-top: 7px;
  26390. }
  26391. .picName {
  26392. white-space: nowrap;
  26393. overflow: hidden;
  26394. text-overflow: ellipsis;
  26395. width: 75px;
  26396. margin-top: 7px;
  26397. }
  26398. .new_top {
  26399. display: flex;
  26400. background: #fff;
  26401. flex-direction: row;
  26402. justify-content: flex-start;
  26403. align-items: center;
  26404. height: 60px;
  26405. position: fixed;
  26406. top: 20px;
  26407. left: 22%;
  26408. width: 77%;
  26409. z-index: 999;
  26410. border-radius: 12px 12px 0 0;
  26411. border-bottom: 1px solid #cad1dc;
  26412. padding: 10px 0;
  26413. }
  26414. .new_topFixed {
  26415. width: 100%;
  26416. height: 40px;
  26417. position: fixed;
  26418. top: 0px;
  26419. display: block;
  26420. background: #f2f2f2;
  26421. z-index: 998;
  26422. }
  26423. .before {
  26424. position: absolute;
  26425. background: #c3dad4;
  26426. width: 6px;
  26427. height: 100%;
  26428. }
  26429. .courseIndex {
  26430. display: flex;
  26431. flex-direction: row;
  26432. align-items: center;
  26433. width: calc(100% - 745px);
  26434. }
  26435. .courseIndex > div:nth-child(1) {
  26436. margin: 0 0 0 10px;
  26437. font-size: 20px;
  26438. min-width: 100px;
  26439. font-weight: bold;
  26440. border-left: 4px solid #3363b9;
  26441. height: 32px;
  26442. text-align: center;
  26443. line-height: 35px;
  26444. }
  26445. .courseIndex > div:nth-child(2) {
  26446. font-size: 20px;
  26447. /* width: 300px; */
  26448. max-width: calc(100% - 105px);
  26449. white-space: nowrap;
  26450. overflow: hidden;
  26451. text-overflow: ellipsis;
  26452. }
  26453. .courseIndex > div:nth-child(3) {
  26454. border-bottom: 1px solid #d7d7d7;
  26455. padding-bottom: 5px;
  26456. background: #3681fc;
  26457. width: 55px;
  26458. min-width: 55px;
  26459. border-radius: 5px;
  26460. color: #fff;
  26461. text-align: center;
  26462. height: 20px;
  26463. line-height: 26px;
  26464. font-size: 14px;
  26465. margin: 0 0 0 10px;
  26466. }
  26467. .course_text {
  26468. padding: 20px 0 0 15px;
  26469. text-indent: 30px;
  26470. width: 80%;
  26471. min-height: 20px;
  26472. }
  26473. .vedioList {
  26474. background: #f2f2f2;
  26475. border: 1px solid #ececec;
  26476. /* width: 38.8%; */
  26477. /* width: 300px; */
  26478. width: 100%;
  26479. height: 445px;
  26480. border-radius: 10px;
  26481. overflow: hidden;
  26482. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26483. }
  26484. .vedioNav {
  26485. margin: 10px 0 0 15px;
  26486. border-bottom: 1px solid #d7d7d7;
  26487. padding-bottom: 5px;
  26488. background: #3681fc;
  26489. width: 55px;
  26490. min-width: 55px;
  26491. border-radius: 5px;
  26492. color: #fff;
  26493. text-align: center;
  26494. height: 20px;
  26495. line-height: 26px;
  26496. font-size: 14px;
  26497. }
  26498. .queTop {
  26499. display: flex;
  26500. padding: 20px 0 20px 30px;
  26501. width: 100%;
  26502. flex-direction: row;
  26503. justify-content: flex-start;
  26504. align-items: center;
  26505. box-sizing: border-box;
  26506. }
  26507. .queTopTitle {
  26508. display: flex;
  26509. flex-direction: row;
  26510. flex-wrap: nowrap;
  26511. align-items: center;
  26512. font-weight: bold;
  26513. font-size: 20px;
  26514. color: rgb(14, 30, 51);
  26515. }
  26516. .queTopTitle::before {
  26517. content: "";
  26518. width: 2px;
  26519. height: 22px;
  26520. background: #3681fc;
  26521. border-radius: 3px;
  26522. display: block;
  26523. margin: 2px 6px 0 0;
  26524. }
  26525. .queTopRight {
  26526. display: flex;
  26527. flex-direction: row;
  26528. flex-wrap: nowrap;
  26529. align-items: center;
  26530. }
  26531. .queTopClose {
  26532. margin-right: 20px;
  26533. cursor: pointer;
  26534. position: relative;
  26535. display: flex;
  26536. }
  26537. .closeImg,
  26538. .openImg {
  26539. width: 25px;
  26540. height: 25px;
  26541. position: absolute;
  26542. left: -20px;
  26543. top: -1px;
  26544. }
  26545. .closeImg > img,
  26546. .openImg > img {
  26547. width: 100%;
  26548. height: 100%;
  26549. }
  26550. .question {
  26551. width: 40px;
  26552. margin-right: 10px;
  26553. margin-top: 7px;
  26554. }
  26555. .queTitle {
  26556. margin-left: 5px;
  26557. font-size: 25px;
  26558. display: flex;
  26559. align-items: center;
  26560. }
  26561. .addEditor {
  26562. width: 100px;
  26563. height: 30px;
  26564. background: #42cda6;
  26565. color: #fff;
  26566. border-radius: 5px;
  26567. text-align: center;
  26568. line-height: 30px;
  26569. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26570. cursor: pointer;
  26571. }
  26572. /* .vedioName {
  26573. cursor: pointer;
  26574. margin: 0px 0px 10px 5px;
  26575. white-space: nowrap;
  26576. overflow: hidden;
  26577. text-overflow: ellipsis;
  26578. width: 100%;
  26579. } */
  26580. .vedioTime {
  26581. width: 35px;
  26582. position: absolute;
  26583. color: #fff;
  26584. bottom: 0px;
  26585. right: 0px;
  26586. text-align: center;
  26587. background: #46411f;
  26588. height: 20px;
  26589. font-size: 14px;
  26590. line-height: 20px;
  26591. }
  26592. .homework {
  26593. width: 200px;
  26594. display: flex;
  26595. flex-direction: column;
  26596. flex-wrap: nowrap;
  26597. align-items: center;
  26598. cursor: pointer;
  26599. }
  26600. .homebox {
  26601. display: flex;
  26602. flex-wrap: wrap;
  26603. flex-direction: row;
  26604. justify-content: flex-start;
  26605. align-items: center;
  26606. padding: 15px 0;
  26607. }
  26608. .isChooseActive {
  26609. color: #3681fc !important;
  26610. font-weight: bold !important;
  26611. }
  26612. .chooseWho {
  26613. display: flex;
  26614. width: 100%;
  26615. flex-direction: row;
  26616. flex-wrap: nowrap;
  26617. justify-content: flex-start;
  26618. padding-bottom: 10px;
  26619. }
  26620. .chooseWho > div {
  26621. cursor: pointer;
  26622. padding-bottom: 10px;
  26623. margin: 0 30px 0 0;
  26624. font-weight: 400;
  26625. color: #0e1e33;
  26626. }
  26627. .addPoint > div > img {
  26628. cursor: pointer;
  26629. width: 85px;
  26630. border-radius: 15px;
  26631. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26632. }
  26633. .addPoint > div {
  26634. display: flex;
  26635. flex-direction: column;
  26636. flex-wrap: nowrap;
  26637. align-items: center;
  26638. }
  26639. .isBorder > div {
  26640. margin: 0 0 10px 0;
  26641. align-items: flex-start !important;
  26642. }
  26643. .noiframeBox {
  26644. display: flex;
  26645. flex-wrap: wrap;
  26646. }
  26647. .iframeBox iframe {
  26648. width: 100%;
  26649. height: 800px;
  26650. border: none;
  26651. margin-bottom: 20px;
  26652. border: 1px solid #ccc;
  26653. }
  26654. .upload_toolBtn {
  26655. background: #3681fc;
  26656. color: #fff;
  26657. width: 110px;
  26658. text-align: center;
  26659. height: 35px;
  26660. line-height: 35px;
  26661. font-size: 14px;
  26662. border-radius: 5px;
  26663. cursor: pointer;
  26664. position: absolute;
  26665. right: 10px;
  26666. bottom: 0;
  26667. }
  26668. .binfo_input,
  26669. .pj {
  26670. font: inherit;
  26671. color: currentColor;
  26672. width: 100%;
  26673. margin: 0;
  26674. padding: 15px 14px;
  26675. display: block;
  26676. min-width: 0;
  26677. outline: none;
  26678. box-sizing: content-box;
  26679. background: none;
  26680. -webkit-tap-highlight-color: transparent;
  26681. border: 1px solid rgba(0, 0, 0, 0.23);
  26682. border-radius: 4px;
  26683. box-sizing: border-box;
  26684. resize: none;
  26685. }
  26686. .binfo_input:focus-visible {
  26687. border: 1px solid rgba(61, 103, 188);
  26688. }
  26689. .dialog_diy >>> .el-dialog__header,
  26690. .dialog_diy1 >>> .el-dialog__header {
  26691. background: #454545 !important;
  26692. padding: 15px 20px;
  26693. }
  26694. .dialog_diy >>> .el-dialog__title,
  26695. .dialog_diy1 >>> .el-dialog__title {
  26696. color: #fff;
  26697. }
  26698. .dialog_diy >>> .el-dialog__headerbtn,
  26699. .dialog_diy1 >>> .el-dialog__headerbtn {
  26700. top: 19px;
  26701. }
  26702. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26703. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26704. color: #fff;
  26705. }
  26706. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26707. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26708. color: #fff;
  26709. }
  26710. .dialog_diy1 >>> .el-dialog__body {
  26711. padding: 0;
  26712. }
  26713. .dialog_diy >>> .el-dialog__body,
  26714. .dialog_diy >>> .el-dialog__footer,
  26715. .dialog_diy1 >>> .el-dialog__footer {
  26716. background: #fafafa;
  26717. }
  26718. .markScore_diy >>> .el-dialog {
  26719. border-radius: 10px;
  26720. }
  26721. .markScore_diy >>> .el-dialog__body {
  26722. padding: 0;
  26723. height: 621px;
  26724. min-height: calc(100% - 60px);
  26725. }
  26726. .markScore_diy >>> .el-dialog__header {
  26727. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26728. }
  26729. .markScore_diy >>> .markScore_diyTit {
  26730. width: calc(100% - 60px);
  26731. display: flex;
  26732. justify-content: space-between;
  26733. align-items: center;
  26734. }
  26735. .a_addBox {
  26736. padding: 0 0 0 15px;
  26737. }
  26738. .a_add_box {
  26739. padding: 10px;
  26740. background: #fff;
  26741. margin-bottom: 10px;
  26742. border-radius: 5px;
  26743. box-shadow: 0 0 5px 0 #d5d5d5;
  26744. }
  26745. .a_add_head {
  26746. display: flex;
  26747. align-items: flex-start;
  26748. /* justify-content: space-between; */
  26749. flex-direction: column;
  26750. /* flex-direction: row; */
  26751. margin: 10px 0 20px 0;
  26752. font-size: 18px;
  26753. width: 100%;
  26754. }
  26755. .askIndex {
  26756. background: #3681fc;
  26757. border-radius: 50%;
  26758. color: #fff;
  26759. width: 25px;
  26760. height: 25px;
  26761. min-width: 25px;
  26762. min-height: 25px;
  26763. text-align: center;
  26764. line-height: 25px;
  26765. margin-right: 5px;
  26766. }
  26767. .a_add_head .a_add_head_input {
  26768. width: 300px;
  26769. }
  26770. .a_add_head .a_add_head_div {
  26771. display: flex;
  26772. align-items: center;
  26773. justify-content: space-between;
  26774. }
  26775. .a_add_body {
  26776. display: flex;
  26777. align-items: center;
  26778. }
  26779. .a_add_input {
  26780. display: flex;
  26781. align-items: center;
  26782. flex-wrap: wrap;
  26783. width: 100%;
  26784. }
  26785. .a_add_input >>> .el-radio-group,
  26786. .a_add_input >>> .el-checkbox-group {
  26787. width: 100%;
  26788. }
  26789. .a_add_input >>> .el-radio,
  26790. .a_add_input >>> .el-checkbox {
  26791. display: flex;
  26792. flex-direction: row;
  26793. flex-wrap: nowrap;
  26794. align-items: center;
  26795. padding: 15px 0;
  26796. }
  26797. .a_add_input >>> .el-radio:not(:last-child),
  26798. .a_add_input >>> .el-checkbox:not(:last-child) {
  26799. width: 100%;
  26800. border-bottom: 1px solid #efefef;
  26801. }
  26802. .redioStyle >>> .el-radio__label {
  26803. font-size: 18px;
  26804. }
  26805. .redioStyle >>> .el-radio__label > span,
  26806. .redioStyle >>> .el-checkbox__label > span {
  26807. word-break: break-all;
  26808. white-space: normal;
  26809. }
  26810. .redioStyle >>> .el-checkbox__label {
  26811. font-size: 18px;
  26812. }
  26813. .toolHeng2 {
  26814. width: 100%;
  26815. padding-left: 15px;
  26816. box-sizing: border-box;
  26817. }
  26818. .workNav {
  26819. font-size: 20px;
  26820. font-weight: bold;
  26821. color: #0e1e33;
  26822. display: flex;
  26823. flex-direction: row;
  26824. flex-wrap: nowrap;
  26825. align-items: center;
  26826. padding: 15px 0 15px 0;
  26827. }
  26828. .workNav::before {
  26829. content: "";
  26830. width: 2px;
  26831. height: 22px;
  26832. background: #3681fc;
  26833. border-radius: 3px;
  26834. display: block;
  26835. margin: 2px 6px 0 0;
  26836. }
  26837. .toolHeng {
  26838. display: flex;
  26839. flex-direction: row;
  26840. flex-wrap: wrap;
  26841. justify-content: flex-start;
  26842. align-items: center;
  26843. width: 100%;
  26844. }
  26845. .toolHeng > div {
  26846. padding-left: 20px;
  26847. }
  26848. .isWidth {
  26849. width: 20%;
  26850. }
  26851. .textTitle {
  26852. display: flex;
  26853. flex-direction: row;
  26854. flex-wrap: nowrap;
  26855. align-items: center;
  26856. width: 95%;
  26857. }
  26858. .textTitle >>> .el-form-item__label {
  26859. font-size: 22px;
  26860. color: #918f8f;
  26861. width: 100px;
  26862. }
  26863. .textTitle >>> .el-form-item__content {
  26864. width: calc(100% - 100px);
  26865. }
  26866. .textCss >>> .el-dialog {
  26867. width: 800px !important;
  26868. height: 400px;
  26869. background: #fafafa;
  26870. }
  26871. .textCss >>> .el-dialog__body {
  26872. margin: 55px 8% 0 8%;
  26873. padding: 0 !important;
  26874. }
  26875. .textCss >>> .el-dialog__footer {
  26876. padding-top: 38px;
  26877. }
  26878. .toolsCss >>> .el-dialog__body {
  26879. padding: 20px;
  26880. }
  26881. .lineCss >>> .el-dialog__body {
  26882. display: flex;
  26883. flex-direction: row;
  26884. align-items: center;
  26885. justify-content: center;
  26886. }
  26887. .newNav {
  26888. display: flex;
  26889. flex-direction: row;
  26890. align-items: baseline;
  26891. justify-content: flex-start;
  26892. }
  26893. .navListItem {
  26894. width: calc(100% - 20px);
  26895. height: 50px;
  26896. margin: 0px auto 10px;
  26897. display: flex;
  26898. flex-direction: row;
  26899. flex-wrap: nowrap;
  26900. align-items: center;
  26901. justify-content: space-between;
  26902. background: #f0f4fa;
  26903. border-radius: 6px 6px 6px 6px;
  26904. }
  26905. .navText {
  26906. cursor: pointer;
  26907. white-space: nowrap;
  26908. overflow: hidden;
  26909. text-overflow: ellipsis;
  26910. width: 220px;
  26911. padding: 0 10px;
  26912. font-weight: 400;
  26913. color: #0e1e33;
  26914. }
  26915. .downIcon {
  26916. width: 20px;
  26917. min-width: 20px;
  26918. height: 20px;
  26919. margin-right: 15px;
  26920. cursor: pointer;
  26921. }
  26922. .downIcon > img {
  26923. width: 100%;
  26924. height: 100%;
  26925. }
  26926. .noVedio {
  26927. display: flex;
  26928. flex-direction: row;
  26929. justify-content: center;
  26930. align-content: center;
  26931. }
  26932. .noNavText {
  26933. cursor: pointer;
  26934. margin: 0px 0px 10px 5px;
  26935. width: 112px;
  26936. }
  26937. .listNoVedio {
  26938. margin: 0 0 0 30px;
  26939. width: 97%;
  26940. }
  26941. .video-player >>> .video-js {
  26942. height: 100%;
  26943. }
  26944. .hangVedioList {
  26945. width: 90% !important;
  26946. height: 150px !important;
  26947. margin: 20px 0 0 30px;
  26948. }
  26949. .hangVedio {
  26950. width: 100%;
  26951. height: 170px !important;
  26952. align-items: flex-start !important;
  26953. }
  26954. .hangHand {
  26955. height: 150px !important;
  26956. }
  26957. .twoChild {
  26958. width: 95%;
  26959. margin: 10px;
  26960. border-radius: 5px;
  26961. background: #f2f2f2;
  26962. display: flex;
  26963. flex-direction: column;
  26964. flex-wrap: nowrap;
  26965. justify-content: flex-start;
  26966. align-items: flex-start;
  26967. transition: all 0.5s;
  26968. overflow: hidden;
  26969. height: 0;
  26970. background: #e7f3ff;
  26971. }
  26972. .twoChild > div:nth-child(1) {
  26973. margin-top: 5px;
  26974. }
  26975. .navChild {
  26976. width: 100%;
  26977. cursor: pointer;
  26978. margin-bottom: 10px;
  26979. position: relative;
  26980. }
  26981. .navChild img {
  26982. position: absolute;
  26983. right: 11px;
  26984. width: 15px;
  26985. top: 50%;
  26986. transform: translateY(-50%);
  26987. }
  26988. .navActive,
  26989. .toolActive {
  26990. height: auto !important;
  26991. overflow: auto !important;
  26992. /* padding-bottom: 16px; */
  26993. }
  26994. .toolActive {
  26995. padding: 0;
  26996. }
  26997. .navTask {
  26998. display: flex;
  26999. flex-direction: row;
  27000. flex-wrap: nowrap;
  27001. align-items: center;
  27002. align-content: flex-start;
  27003. height: 40px;
  27004. justify-content: flex-start;
  27005. padding: 0 10px;
  27006. width: 100%;
  27007. box-sizing: border-box;
  27008. }
  27009. .navTaskname {
  27010. white-space: nowrap;
  27011. text-overflow: ellipsis;
  27012. overflow: hidden;
  27013. word-break: break-all;
  27014. padding-left: 5px;
  27015. }
  27016. .openTaskActive {
  27017. /* background-color: #e0eafb !important;
  27018. color: #0061ff; */
  27019. color:#fff;
  27020. background: rgb(55, 129, 252) !important;
  27021. }
  27022. .iframeName {
  27023. margin: 5px 0;
  27024. border-left: 4px solid #41c4a4;
  27025. padding-left: 4px;
  27026. }
  27027. .toolTitle {
  27028. margin: 0px 0px 20px;
  27029. font-size: 20px;
  27030. font-weight: 500;
  27031. border-left: 4px solid #41c4a4;
  27032. padding-left: 4px;
  27033. }
  27034. .cru_selectBox {
  27035. overflow: auto;
  27036. width: 95%;
  27037. margin: 17px auto 0;
  27038. height: calc(100% - 40px - 21px - 20px - 17px);
  27039. background: #fff;
  27040. border-radius: 8px;
  27041. }
  27042. .cru_selectBox::-webkit-scrollbar,
  27043. .study_top::-webkit-scrollbar,
  27044. .textContent::-webkit-scrollbar {
  27045. /*滚动条整体样式*/
  27046. width: 6px;
  27047. /*高宽分别对应横竖滚动条的尺寸*/
  27048. height: 6px;
  27049. }
  27050. /*定义滚动条轨道 内阴影+圆角*/
  27051. .cru_selectBox::-webkit-scrollbar-track,
  27052. .study_top::-webkit-scrollbar-track,
  27053. .textContent::-webkit-scrollbar {
  27054. border-radius: 10px;
  27055. background-color: #b8bdc9;
  27056. }
  27057. /*定义滑块 内阴影+圆角*/
  27058. .cru_selectBox::-webkit-scrollbar-thumb,
  27059. .study_top::-webkit-scrollbar-thumb,
  27060. .textContent::-webkit-scrollbar-thumb {
  27061. border-radius: 10px;
  27062. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27063. background-color: #2c5ab3;
  27064. }
  27065. .vedioBox {
  27066. border-radius: 0 0 20px 20px;
  27067. background: #fff;
  27068. overflow: auto;
  27069. }
  27070. .taskBox {
  27071. width: 98%;
  27072. background: #f0f4fa;
  27073. margin: 10px auto;
  27074. padding: 0 10px;
  27075. border-radius: 4px;
  27076. box-sizing: border-box;
  27077. }
  27078. .vedioTaskBox {
  27079. width: 100%;
  27080. display: flex;
  27081. flex-direction: row;
  27082. flex-wrap: nowrap;
  27083. align-items: flex-start;
  27084. position: relative;
  27085. }
  27086. .toolBox {
  27087. margin: 15px 0 0 25px;
  27088. display: flex;
  27089. position: relative;
  27090. padding: 18px 20px;
  27091. border-top-left-radius: 5px;
  27092. border-top-right-radius: 5px;
  27093. width: 90%;
  27094. }
  27095. .btnAll {
  27096. position: absolute;
  27097. right: 0;
  27098. display: flex;
  27099. flex-direction: row;
  27100. flex-wrap: nowrap;
  27101. align-items: center;
  27102. }
  27103. .btnLeft,
  27104. .btnRight {
  27105. display: flex;
  27106. flex-direction: row;
  27107. flex-wrap: nowrap;
  27108. align-items: center;
  27109. padding: 5px 0;
  27110. }
  27111. .btnLeft {
  27112. border-right: 1px solid #cad1dc;
  27113. }
  27114. .btnLeft > .custom-tooltip {
  27115. background: #3681fc;
  27116. color: #fff;
  27117. }
  27118. .last:hover {
  27119. background: #3383fa !important;
  27120. color: #fff;
  27121. border: 1px solid #3383fa !important;
  27122. }
  27123. .last,
  27124. .returnBtn1 {
  27125. width: 90px;
  27126. height: 36px;
  27127. background: #ffffff;
  27128. border-radius: 4px;
  27129. border: 1px solid #0061ff;
  27130. color: #0061ff;
  27131. cursor: pointer;
  27132. display: flex;
  27133. flex-direction: row;
  27134. flex-wrap: nowrap;
  27135. align-items: center;
  27136. justify-content: center;
  27137. margin-left: 12px;
  27138. }
  27139. .returnBtn1 {
  27140. background: #f0f4fa;
  27141. border-radius: 4px;
  27142. border: 1px solid #cad1dc;
  27143. margin: 0 12px;
  27144. }
  27145. .lastImg {
  27146. min-width: 15px;
  27147. width: 15px;
  27148. height: 15px;
  27149. display: flex;
  27150. }
  27151. .lastText {
  27152. padding: 0 5px 0 5px;
  27153. box-sizing: border-box;
  27154. font-size: 14px;
  27155. }
  27156. .lastImg > img {
  27157. width: 100%;
  27158. height: 100%;
  27159. }
  27160. /* .vedioTimeBox {
  27161. display: flex;
  27162. flex-direction: row;
  27163. align-items: center;
  27164. flex-wrap: nowrap;
  27165. position: relative;
  27166. } */
  27167. .navBox {
  27168. background: #fff;
  27169. height: calc(100% - 40px);
  27170. overflow-y: auto;
  27171. overflow-x: hidden;
  27172. }
  27173. .worksBox {
  27174. margin: 0 0 10px 25px;
  27175. border-bottom: 1px solid #eeeeee;
  27176. padding: 18px 20px;
  27177. border-radius: 4px;
  27178. width: 90%;
  27179. }
  27180. .worksBTitle {
  27181. font-size: 20px;
  27182. padding-bottom: 15px;
  27183. border-bottom: 1px solid #eeeeee;
  27184. display: flex;
  27185. align-items: center;
  27186. }
  27187. .greenBox {
  27188. width: 5px;
  27189. height: 30px;
  27190. background: #63b6fa;
  27191. margin-right: 5px;
  27192. }
  27193. .worksDetailBox {
  27194. display: flex;
  27195. width: 100%;
  27196. flex-direction: row;
  27197. flex-wrap: wrap;
  27198. align-items: flex-end;
  27199. justify-content: flex-start;
  27200. padding: 15px 5px;
  27201. box-sizing: border-box;
  27202. }
  27203. .works {
  27204. display: flex;
  27205. flex-direction: column;
  27206. flex-wrap: nowrap;
  27207. align-items: flex-start;
  27208. justify-content: flex-start;
  27209. align-content: center;
  27210. max-width: 240px;
  27211. width: calc(100% / 3 - 10px);
  27212. height: auto;
  27213. margin-right: 10px;
  27214. margin-bottom: 10px;
  27215. overflow: hidden;
  27216. height: 140px;
  27217. box-shadow: 0 0 6px 1px #dfdada;
  27218. border-radius: 15px;
  27219. }
  27220. .workImg {
  27221. width: 100%;
  27222. /* height: calc(100% - 40px); */
  27223. height: 105px;
  27224. position: relative;
  27225. }
  27226. .workImg > img {
  27227. width: 100%;
  27228. height: 100%;
  27229. object-fit: contain;
  27230. cursor: pointer;
  27231. }
  27232. .worksName {
  27233. height: 40px;
  27234. line-height: 40px;
  27235. display: flex;
  27236. width: 100%;
  27237. flex-direction: row;
  27238. flex-wrap: nowrap;
  27239. justify-content: space-between;
  27240. align-items: center;
  27241. margin: 0 0 0 10px;
  27242. }
  27243. .worksName > div:nth-child(1) {
  27244. width: 110px;
  27245. white-space: nowrap;
  27246. overflow: hidden;
  27247. text-overflow: ellipsis;
  27248. }
  27249. .worksName > div:nth-child(2) {
  27250. color: #b7b4b5;
  27251. }
  27252. .noWorksS {
  27253. padding: 15px 0;
  27254. display: flex;
  27255. flex-direction: row;
  27256. flex-wrap: wrap;
  27257. align-items: center;
  27258. justify-content: flex-start;
  27259. }
  27260. .noWorksName,
  27261. .isWorksName,
  27262. .isWorksName2 {
  27263. background: #ddebf8;
  27264. color: #000;
  27265. width: 90px;
  27266. height: 25px;
  27267. text-align: center;
  27268. line-height: 25px;
  27269. border-radius: 4px;
  27270. margin: 10px 15px 10px 0;
  27271. white-space: nowrap;
  27272. overflow: hidden;
  27273. padding: 5px;
  27274. text-overflow: ellipsis;
  27275. cursor: pointer;
  27276. border: 1px solid #ddebf8;
  27277. }
  27278. .noWorksName {
  27279. background: #fff;
  27280. color: #0061ff;
  27281. border: 1px solid #0061ff;
  27282. }
  27283. .noWorksName > span{
  27284. max-width: 100%;
  27285. display: block;
  27286. overflow: hidden;
  27287. text-overflow: ellipsis;
  27288. white-space: nowrap;
  27289. }
  27290. .noWorksName2 {
  27291. background: #fff;
  27292. color: #0061ff;
  27293. width: 90px;
  27294. height: 25px;
  27295. text-align: center;
  27296. line-height: 25px;
  27297. border-radius: 4px;
  27298. margin: 10px 15px 10px 0;
  27299. white-space: nowrap;
  27300. overflow: hidden;
  27301. padding: 5px;
  27302. text-overflow: ellipsis;
  27303. cursor: pointer;
  27304. border: 1px solid #0061ff;
  27305. }
  27306. .noWorksName2 > span {
  27307. max-width: 100%;
  27308. display: block;
  27309. overflow: hidden;
  27310. text-overflow: ellipsis;
  27311. white-space: nowrap;
  27312. }
  27313. .isWorksName2 {
  27314. width: 100px;
  27315. height: 40px;
  27316. line-height: 40px;
  27317. position: relative;
  27318. background: #dae6f9;
  27319. }
  27320. .isWorksName {
  27321. background: #e7ebf1 !important;
  27322. width: 100px;
  27323. height: 40px;
  27324. line-height: 40px;
  27325. position: relative;
  27326. color: #acb4bf;
  27327. border: 1px solid #cad1dc !important;
  27328. }
  27329. .isSelectName,
  27330. .noWorksName:hover {
  27331. background: #3383fa !important;
  27332. color: #fff !important;
  27333. border: 1px solid #3383fa !important;
  27334. }
  27335. .title {
  27336. background: #1e5cc9;
  27337. /* width: 98%; */
  27338. height: 45px;
  27339. color: #fff;
  27340. line-height: 45px;
  27341. padding-left: 20px;
  27342. box-sizing: border-box;
  27343. }
  27344. .textBox {
  27345. font-size: 20px;
  27346. width: 90%;
  27347. display: flex;
  27348. flex-direction: column;
  27349. align-items: center;
  27350. margin: 20px auto 0;
  27351. max-height: calc(100% - 75px);
  27352. overflow: auto;
  27353. }
  27354. .textContent {
  27355. font-size: 18px;
  27356. width: 95%;
  27357. max-width: 95%;
  27358. }
  27359. .answerBg {
  27360. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27361. background-size: 100% 100%;
  27362. width: 100%;
  27363. height: 100%;
  27364. color: #fff;
  27365. text-align: center;
  27366. display: flex;
  27367. flex-direction: column;
  27368. flex-wrap: nowrap;
  27369. align-items: center;
  27370. position: relative;
  27371. justify-content: center;
  27372. }
  27373. /* .answerBg > div:nth-child(1) { */
  27374. /* font-size: 22px;
  27375. padding: 25px 0 10px; */
  27376. /* } */
  27377. .answerContent {
  27378. width: 215px;
  27379. max-height: 60px;
  27380. word-break: break-all;
  27381. text-align: center;
  27382. /* white-space: nowrap; */
  27383. overflow: hidden;
  27384. text-overflow: ellipsis;
  27385. /* padding: 23px 0 0; */
  27386. -webkit-line-clamp: 3;
  27387. -webkit-box-orient: vertical;
  27388. display: -webkit-box;
  27389. font-size: 15px;
  27390. cursor: pointer;
  27391. }
  27392. .elist_input_box {
  27393. display: flex;
  27394. align-items: flex-start;
  27395. flex-wrap: nowrap;
  27396. padding: 10px 0 15px 30px;
  27397. flex-direction: column;
  27398. }
  27399. .elist_input {
  27400. /* width: 40%; */
  27401. width: 45%;
  27402. margin: 20px;
  27403. }
  27404. .elist_input .elist_input_box input {
  27405. font: inherit;
  27406. color: currentColor;
  27407. width: 200px;
  27408. padding: 8px 14px;
  27409. display: block;
  27410. min-width: 0;
  27411. outline: none;
  27412. border: 1px solid rgba(0, 0, 0, 0.23);
  27413. border-radius: 4px;
  27414. box-sizing: border-box;
  27415. background: #fff;
  27416. margin: 0 20px 0 0;
  27417. }
  27418. .elist_input .elist_input_box span {
  27419. height: 36px;
  27420. line-height: 36px;
  27421. color: rgb(82, 82, 82);
  27422. }
  27423. .elist_input .elist_input_box .remove {
  27424. height: 20px;
  27425. width: 20px;
  27426. background-size: 100% 100%;
  27427. background-position: unset;
  27428. margin-left: 5px;
  27429. }
  27430. .elist_input_box >>> .el-rate {
  27431. display: flex;
  27432. height: 36px;
  27433. align-items: center;
  27434. }
  27435. .elist_input_box .elist_inptu_text {
  27436. min-height: 50px;
  27437. /* width: 500px;
  27438. max-height: 150px; */
  27439. width: 100%;
  27440. line-height: 50px;
  27441. color: rgb(82, 82, 82);
  27442. overflow: auto;
  27443. text-indent: 5px;
  27444. background: #f7f6f9;
  27445. border-radius: 10px;
  27446. }
  27447. .elist_input_box .elist_inptu_text input {
  27448. width: 500px;
  27449. }
  27450. .elist_input_box >>> .el-rate__icon {
  27451. font-size: 24px;
  27452. }
  27453. .isClick {
  27454. background: #4d9def;
  27455. }
  27456. .bzBox {
  27457. display: flex;
  27458. flex-direction: row;
  27459. align-items: center;
  27460. }
  27461. .bzBox .yCss {
  27462. width: 7px;
  27463. height: 7px;
  27464. background: #fff;
  27465. margin: 0 16px 0 6px;
  27466. border-radius: 50%;
  27467. border: 5px solid #3681fc;
  27468. z-index: 99;
  27469. }
  27470. .bzBox > div:nth-child(2) {
  27471. font-size: 18px;
  27472. font-weight: bold;
  27473. color: #0e1e33;
  27474. }
  27475. .navTitile {
  27476. padding: 0 0px 0 15px;
  27477. font-size: 16px;
  27478. font-weight: bold;
  27479. color: #0e1e33;
  27480. height: 40px;
  27481. line-height: 40px;
  27482. }
  27483. .isTypeOne {
  27484. width: 240px;
  27485. height: 170px;
  27486. /* border: 1px solid #f8f8f8; */
  27487. border-radius: 10px;
  27488. box-shadow: 0 0 6px 1px #dfdada;
  27489. }
  27490. .e_add_top {
  27491. display: flex;
  27492. justify-content: space-between;
  27493. padding: 10px 20px;
  27494. border-radius: 3px;
  27495. background: #fff;
  27496. }
  27497. .e_add_title2 {
  27498. display: flex;
  27499. align-items: center;
  27500. }
  27501. .e_add_title2 span {
  27502. width: 40px;
  27503. }
  27504. .e_add_title {
  27505. display: flex;
  27506. align-items: center;
  27507. color: #b8b8b8;
  27508. font-size: 18px;
  27509. position: relative;
  27510. height: 40px;
  27511. }
  27512. .e_add_title span {
  27513. margin-right: 10px;
  27514. }
  27515. .e_add_title .el_input {
  27516. width: 300px;
  27517. }
  27518. .e_add_title >>> .el-input__inner {
  27519. width: 400px;
  27520. }
  27521. /* .e_add_btn {
  27522. } */
  27523. .e_add_content {
  27524. display: flex;
  27525. width: 100%;
  27526. max-width: 650px;
  27527. height: 550px;
  27528. }
  27529. .e_add_list {
  27530. background: #fff;
  27531. height: 500px;
  27532. width: 210px;
  27533. position: relative;
  27534. margin: 15px 5px 0 0;
  27535. flex-shrink: 0;
  27536. display: flex;
  27537. flex-direction: column;
  27538. }
  27539. .e_add_list_title {
  27540. font-size: 20px;
  27541. width: 100%;
  27542. box-sizing: border-box;
  27543. padding: 15px 40px;
  27544. text-align: center;
  27545. border-bottom: 1px solid #eaeaea;
  27546. position: relative;
  27547. display: flex;
  27548. align-items: center;
  27549. justify-content: center;
  27550. height: 57px;
  27551. background: #f6f6f6;
  27552. }
  27553. .e_add_list_title span {
  27554. overflow: hidden;
  27555. white-space: nowrap;
  27556. text-overflow: ellipsis;
  27557. }
  27558. .e_add_list_title img {
  27559. position: absolute;
  27560. right: 15px;
  27561. width: 25px;
  27562. cursor: pointer;
  27563. top: 50%;
  27564. transform: translateY(-50%);
  27565. }
  27566. .e_add_list_body {
  27567. height: calc(100% - 187px);
  27568. overflow: auto;
  27569. }
  27570. .e_add_list_child {
  27571. width: 100%;
  27572. display: flex;
  27573. align-items: center;
  27574. justify-content: center;
  27575. position: relative;
  27576. box-sizing: border-box;
  27577. padding: 15px 40px;
  27578. text-align: center;
  27579. }
  27580. .e_add_list_child span {
  27581. overflow: hidden;
  27582. white-space: nowrap;
  27583. text-overflow: ellipsis;
  27584. cursor: pointer;
  27585. }
  27586. .e_add_list_child img {
  27587. position: absolute;
  27588. right: 10px;
  27589. width: 21px;
  27590. cursor: pointer;
  27591. top: 50%;
  27592. transform: translateY(-50%);
  27593. }
  27594. .e_add_list_child + .e_add_list_child {
  27595. border-top: 1px solid #eaeaea;
  27596. }
  27597. .e_add_list_child .active {
  27598. color: #409eff;
  27599. }
  27600. .e_add_list_btn {
  27601. position: absolute;
  27602. bottom: 0;
  27603. height: 50px;
  27604. background: rgb(120, 120, 254);
  27605. width: 100%;
  27606. color: #fff;
  27607. font-size: 16px;
  27608. text-align: center;
  27609. line-height: 50px;
  27610. cursor: pointer;
  27611. }
  27612. .e_add_list_detail {
  27613. position: absolute;
  27614. bottom: 0;
  27615. height: 130px;
  27616. background: rgb(120, 120, 254);
  27617. width: 100%;
  27618. color: #fff;
  27619. font-size: 16px;
  27620. display: flex;
  27621. align-items: center;
  27622. justify-content: center;
  27623. }
  27624. .e_add_list_detail textarea {
  27625. height: 90%;
  27626. width: 95%;
  27627. border: none;
  27628. resize: none;
  27629. outline: none;
  27630. padding: 5px;
  27631. box-sizing: border-box;
  27632. }
  27633. .e_add_list_pbox {
  27634. width: 100%;
  27635. max-width: 650px;
  27636. /* height: 600px; */
  27637. }
  27638. .e_add_list_pbox_title {
  27639. height: 50px;
  27640. background: #fff;
  27641. display: flex;
  27642. align-items: center;
  27643. width: 100%;
  27644. box-sizing: border-box;
  27645. padding: 0 20px;
  27646. }
  27647. .type_title {
  27648. font-size: 18px;
  27649. font-weight: 700;
  27650. }
  27651. .type_content {
  27652. font-size: 16px;
  27653. /* margin-left: 30px; */
  27654. }
  27655. .type_content span + span {
  27656. margin-left: 20px;
  27657. }
  27658. .type_content span {
  27659. cursor: pointer;
  27660. padding-bottom: 5px;
  27661. box-sizing: border-box;
  27662. }
  27663. .type_content .active {
  27664. color: #409eff;
  27665. border-bottom: 2px solid #409eff;
  27666. }
  27667. .e_add_list_pbox_content {
  27668. height: calc(100% - 50px);
  27669. display: flex;
  27670. align-items: center;
  27671. width: 100%;
  27672. background: #fff;
  27673. }
  27674. .evaCss {
  27675. display: flex;
  27676. flex-direction: row;
  27677. flex-wrap: nowrap;
  27678. align-items: flex-start;
  27679. padding: 0 0 20px;
  27680. }
  27681. .cru_line {
  27682. position: absolute;
  27683. bottom: 0px;
  27684. transition: all 0.5s;
  27685. left: 0px;
  27686. width: 125px;
  27687. margin-left: -25px;
  27688. }
  27689. .isNoMessage {
  27690. width: 20%;
  27691. margin: 25% auto 0;
  27692. }
  27693. .isNoMessage > img {
  27694. width: 100%;
  27695. height: 100%;
  27696. }
  27697. .fullStyle >>> .el-dialog__body {
  27698. height: 100% !important;
  27699. }
  27700. .fullStyle >>> .el-dialog,
  27701. .fullStyle {
  27702. width: 100% !important;
  27703. max-width: 100% !important;
  27704. height: 100% !important;
  27705. margin: 0 !important;
  27706. }
  27707. .full_diy >>> .el-dialog {
  27708. margin: 0 !important;
  27709. height: 100%;
  27710. padding: 4px;
  27711. }
  27712. .full_diy >>> .el-dialog__body {
  27713. height: calc(100% - 100px);
  27714. }
  27715. .full_diy2 >>> .el-dialog__body {
  27716. height: calc(100% - 50px);
  27717. padding: 0;
  27718. }
  27719. .switchCss {
  27720. /* width: 100%; */
  27721. display: flex;
  27722. flex-direction: row;
  27723. flex-wrap: nowrap;
  27724. align-items: center;
  27725. /* justify-content: center; */
  27726. }
  27727. .isClickNav {
  27728. /* color: #499eef; */
  27729. color: #000;
  27730. }
  27731. .commentImg {
  27732. width: 25px;
  27733. height: 25px;
  27734. cursor: pointer;
  27735. }
  27736. .commentImg > img {
  27737. width: 100%;
  27738. height: 100%;
  27739. }
  27740. .comment {
  27741. background: #f9f9f9;
  27742. border-radius: 0 0 4px 4px;
  27743. display: flex;
  27744. flex-direction: row;
  27745. flex-wrap: nowrap;
  27746. align-items: center;
  27747. justify-content: flex-end;
  27748. height: 35px;
  27749. }
  27750. .commentList {
  27751. display: flex;
  27752. flex-direction: row;
  27753. flex-wrap: nowrap;
  27754. align-items: center;
  27755. justify-content: center;
  27756. align-content: center;
  27757. /* margin-left: 15px; */
  27758. /* margin-left: 8px; */
  27759. }
  27760. .scoreImg {
  27761. width: 17px;
  27762. height: 17px;
  27763. }
  27764. .studentDetail {
  27765. display: flex;
  27766. flex-direction: row;
  27767. flex-wrap: nowrap;
  27768. /* align-items: center; */
  27769. align-items: flex-start;
  27770. }
  27771. .tx {
  27772. width: 50px;
  27773. }
  27774. .tx > img {
  27775. width: 100%;
  27776. height: 100%;
  27777. }
  27778. .nameAndTime {
  27779. display: flex;
  27780. flex-direction: column;
  27781. flex-wrap: nowrap;
  27782. align-items: flex-start;
  27783. margin-left: 10px;
  27784. }
  27785. .worksAnswer {
  27786. color: #4078dd;
  27787. margin: 10px 0;
  27788. font-size: 16px;
  27789. position: relative;
  27790. }
  27791. .worksAnswer > img {
  27792. width: 500px;
  27793. height: 300px;
  27794. object-fit: contain;
  27795. margin: 0 auto;
  27796. display: block;
  27797. }
  27798. .commentTop {
  27799. border-bottom: 1px solid #eaeaea;
  27800. padding-bottom: 10px;
  27801. }
  27802. .commentBox {
  27803. padding-top: 15px;
  27804. }
  27805. .pl {
  27806. font-size: 18px;
  27807. }
  27808. .plPerson {
  27809. width: 100%;
  27810. }
  27811. .plName {
  27812. display: flex;
  27813. flex-direction: row;
  27814. flex-wrap: nowrap;
  27815. align-items: baseline;
  27816. color: #78787a;
  27817. width: 100%;
  27818. }
  27819. .deleteComment {
  27820. cursor: pointer;
  27821. margin-left: auto;
  27822. color: #237ade;
  27823. }
  27824. .plContent {
  27825. margin-top: 5px;
  27826. }
  27827. .evalCss {
  27828. background: #fff;
  27829. font-size: 18px;
  27830. }
  27831. .nav {
  27832. color: #9d9d9d;
  27833. padding: 5px 0 15px 20px;
  27834. }
  27835. .middleBox {
  27836. padding: 5px 0 15px 20px;
  27837. }
  27838. .pfBox {
  27839. padding-bottom: 30px;
  27840. }
  27841. .nameAndrate {
  27842. display: flex;
  27843. flex-direction: row;
  27844. flex-wrap: nowrap;
  27845. align-items: center;
  27846. padding-bottom: 10px;
  27847. height: 30px;
  27848. line-height: 30px;
  27849. }
  27850. .nameAndrate > div {
  27851. margin-left: 10px;
  27852. color: #000;
  27853. height: 30px;
  27854. }
  27855. .nameAndrate >>> .el-rate__icon {
  27856. font-size: 28px !important;
  27857. }
  27858. .pfBox > div:nth-child(2) {
  27859. background: #f7f6f9;
  27860. width: 400px;
  27861. min-height: 45px;
  27862. border-radius: 10px;
  27863. font-size: 16px;
  27864. display: flex;
  27865. flex-wrap: wrap;
  27866. align-items: center;
  27867. padding: 10px 20px;
  27868. box-sizing: border-box;
  27869. color: #000;
  27870. }
  27871. .bz {
  27872. display: flex;
  27873. flex-direction: row;
  27874. flex-wrap: nowrap;
  27875. align-items: flex-start;
  27876. }
  27877. .bz > div {
  27878. padding: 0 10px;
  27879. }
  27880. .select_box2_title {
  27881. background: #fff;
  27882. border-radius: 5px;
  27883. padding: 15px 10px;
  27884. box-sizing: border-box;
  27885. margin-bottom: 10px;
  27886. display: flex;
  27887. flex-direction: row;
  27888. flex-wrap: nowrap;
  27889. align-items: center;
  27890. }
  27891. .select_box2_title > div:nth-child(2) {
  27892. margin-left: 10px;
  27893. color: #c4c4c4;
  27894. }
  27895. .select_box2_box {
  27896. display: flex;
  27897. height: 500px;
  27898. }
  27899. .select_box2_img {
  27900. width: calc(100% - 310px);
  27901. height: 100%;
  27902. overflow: auto;
  27903. background: #fff;
  27904. border-radius: 5px;
  27905. }
  27906. .select_box2_img img {
  27907. width: 100%;
  27908. }
  27909. .select_box2_answer {
  27910. background: #fff;
  27911. margin-left: 10px;
  27912. border-radius: 5px;
  27913. width: 300px;
  27914. overflow: auto;
  27915. height: 90%;
  27916. display: flex;
  27917. flex-direction: column;
  27918. align-items: flex-start;
  27919. padding-top: 10px;
  27920. box-sizing: border-box;
  27921. position: relative;
  27922. }
  27923. .select_answer_title {
  27924. padding: 0 0 15px 20px;
  27925. color: #c4c4c4;
  27926. }
  27927. .select_box2_answer_box {
  27928. margin: 0 0 10px 20px;
  27929. width: 85%;
  27930. display: flex;
  27931. flex-direction: row;
  27932. flex-wrap: nowrap;
  27933. align-items: center;
  27934. }
  27935. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27936. color: #000;
  27937. }
  27938. .upAnswerCss {
  27939. position: absolute;
  27940. bottom: 15px;
  27941. right: 15px;
  27942. }
  27943. .upAnswerCss >>> .el-button {
  27944. width: 95px;
  27945. height: 35px;
  27946. line-height: 35px;
  27947. padding: 0;
  27948. }
  27949. .rightWidthCss {
  27950. width: 60%;
  27951. display: flex;
  27952. flex-direction: row;
  27953. align-items: flex-start;
  27954. }
  27955. .rightAnswer {
  27956. display: flex;
  27957. flex-direction: row;
  27958. flex-wrap: nowrap;
  27959. align-items: center;
  27960. color: red;
  27961. margin-bottom: 31px;
  27962. }
  27963. .rightAnswerCss {
  27964. display: flex;
  27965. flex-direction: column;
  27966. flex-wrap: nowrap;
  27967. padding-top: 60px;
  27968. }
  27969. .blueCss {
  27970. color: #767de1;
  27971. margin-left: 10px;
  27972. }
  27973. .redCss {
  27974. color: red;
  27975. }
  27976. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27977. color: rgb(0 123 255) !important;
  27978. }
  27979. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27980. color: rgb(0 123 255) !important;
  27981. }
  27982. .zuoyeYulan {
  27983. padding-top: 0;
  27984. font-size: 18px;
  27985. display: flex;
  27986. align-items: flex-end;
  27987. }
  27988. .buttonA {
  27989. margin-left: 10px;
  27990. padding: 0;
  27991. }
  27992. .displayBox {
  27993. margin-bottom: 10px;
  27994. display: block;
  27995. border-bottom: 3px solid #eee;
  27996. display: flex;
  27997. align-items: center;
  27998. }
  27999. .easy_comment {
  28000. width: calc(100% - 90px);
  28001. margin-left: 10px;
  28002. display: flex;
  28003. flex-wrap: wrap;
  28004. }
  28005. .easy_comment > div {
  28006. border: 1px solid #4a4a4a;
  28007. color: #666;
  28008. border-radius: 15px;
  28009. padding: 5px 10px;
  28010. font-size: 16px;
  28011. margin-bottom: 10px;
  28012. margin-right: 5px;
  28013. cursor: pointer;
  28014. }
  28015. .easy_comment div:hover {
  28016. border: 1px solid #f7ba2a;
  28017. color: #c69217;
  28018. }
  28019. .xuan_right_box {
  28020. padding: 10px 0;
  28021. background: #f0f4fa;
  28022. margin: 0 15px 0 25px;
  28023. border-bottom-left-radius: 5px;
  28024. border-bottom-right-radius: 5px;
  28025. width: 91.5%;
  28026. }
  28027. .tool_right_box {
  28028. display: flex;
  28029. align-items: center;
  28030. }
  28031. .tool_right_box >>> .katex {
  28032. font-size: 16px;
  28033. }
  28034. .tool_right_box + .tool_right_box {
  28035. margin-top: 10px;
  28036. }
  28037. .right_box_xuan {
  28038. border-radius: 5px;
  28039. padding: 5px;
  28040. margin-left: 10px;
  28041. min-width: 85px;
  28042. background: #fff;
  28043. color: #0061ff;
  28044. border: 1px solid #0061ff;
  28045. font-size: 14px;
  28046. }
  28047. .pButton:hover {
  28048. opacity: 1 !important;
  28049. }
  28050. .pButton {
  28051. position: fixed;
  28052. text-align: center;
  28053. cursor: pointer;
  28054. z-index: 999;
  28055. right: 20px;
  28056. top: 110px;
  28057. width: 50px;
  28058. height: 50px;
  28059. display: flex;
  28060. align-items: center;
  28061. justify-content: center;
  28062. border-radius: 5px;
  28063. }
  28064. .pzClass {
  28065. width: calc(100% - 340px);
  28066. }
  28067. .newDialogCss {
  28068. /* position: fixed;
  28069. right: 5%;
  28070. top: 50%;
  28071. width: 340px;
  28072. transform: translateY(-50%);
  28073. height: 60%;
  28074. box-shadow: 0px 0 8px 0px #555555;
  28075. border-radius: 15px;
  28076. z-index: 999; */
  28077. position: fixed;
  28078. right: 20px;
  28079. top: 101px;
  28080. width: 330px;
  28081. height: calc(100% - 80px);
  28082. z-index: 999;
  28083. background: #fff;
  28084. border-top-right-radius: 0px;
  28085. border-bottom-right-radius: 0px;
  28086. overflow: hidden;
  28087. }
  28088. .newDialogCss>.scoreList{
  28089. width:100%;
  28090. height:100%;
  28091. box-sizing:border-box;
  28092. padding:10px 15px;
  28093. overflow:auto;
  28094. padding-bottom:80px;
  28095. }
  28096. .pzTop {
  28097. color: #fff;
  28098. background: #000;
  28099. display: flex;
  28100. flex-direction: row;
  28101. flex-wrap: nowrap;
  28102. align-items: center;
  28103. justify-content: space-between;
  28104. height: 40px;
  28105. border-radius: 15px 15px 0 0;
  28106. user-select: none;
  28107. }
  28108. .pzTop2 .checkbox {
  28109. display: flex;
  28110. align-items: center;
  28111. padding: 5px 10px;
  28112. flex: 0 0 auto;
  28113. font-weight: bold;
  28114. border-bottom: 1px solid #eee;
  28115. justify-content: space-between;
  28116. }
  28117. .checkbox>.cb-tabList{
  28118. display:flex;
  28119. align-items:center;
  28120. }
  28121. .cb-tabList>div{
  28122. margin-right:20px;
  28123. font-weight:400;
  28124. cursor:pointer;
  28125. }
  28126. .cb-tabList>.cb-tabItem{
  28127. color:#1684FC;
  28128. position:relative;
  28129. }
  28130. .cb-tabItem::after{
  28131. content:"";
  28132. width:100%;
  28133. height:2px;
  28134. background:#1684FC;
  28135. position:absolute;
  28136. bottom:-5px;
  28137. left:0
  28138. }
  28139. .pzTop2 .check {
  28140. text-align: center;
  28141. cursor: pointer;
  28142. box-sizing: border-box;
  28143. display: flex;
  28144. }
  28145. .pzTop2 img {
  28146. width: 25px;
  28147. cursor: pointer;
  28148. }
  28149. .pzTop > div:nth-child(1) {
  28150. padding-left: 10px;
  28151. }
  28152. .pzTop > div:nth-child(2) {
  28153. width: 15px;
  28154. height: 15px;
  28155. padding-right: 10px;
  28156. cursor: pointer;
  28157. }
  28158. .pzTop > div:nth-child(2) > img {
  28159. width: 100%;
  28160. height: 100%;
  28161. }
  28162. .pzBox,
  28163. .noPzBox {
  28164. height: calc(100% - 60px);
  28165. /* background: #ededed; */
  28166. background: #fff;
  28167. /* border-radius: 0 0 15px 15px; */
  28168. }
  28169. .noPzBox {
  28170. display: flex;
  28171. flex-direction: column;
  28172. flex-wrap: nowrap;
  28173. justify-content: center;
  28174. align-items: center;
  28175. }
  28176. .pzList {
  28177. background: #f7f7f7;
  28178. width: 90%;
  28179. margin: 0 auto 15px;
  28180. border-radius: 5px;
  28181. }
  28182. .pzNavTop {
  28183. display: flex;
  28184. flex-direction: row;
  28185. flex-wrap: nowrap;
  28186. padding: 10px 10px 0 10px;
  28187. align-items: center;
  28188. }
  28189. .pzDelete {
  28190. cursor: pointer;
  28191. margin-left: auto;
  28192. font-size: 14px;
  28193. color: #afafaf;
  28194. }
  28195. .pzNavTop > div:nth-child(1) {
  28196. background: #3760af;
  28197. width: 35px;
  28198. height: 35px;
  28199. color: #fff;
  28200. text-align: center;
  28201. line-height: 35px;
  28202. border-radius: 50%;
  28203. font-size: 14px;
  28204. }
  28205. .pzNavTop > div:nth-child(2) {
  28206. font-size: 18px;
  28207. color: #959595;
  28208. margin-left: 5px;
  28209. }
  28210. .pzContent {
  28211. padding: 10px;
  28212. word-break: break-word;
  28213. }
  28214. .pzContent audio {
  28215. width: 100%;
  28216. }
  28217. .pzContent audio::-webkit-media-controls-panel {
  28218. background: #fff;
  28219. }
  28220. .pzContent >>> img {
  28221. max-width: 100%;
  28222. }
  28223. .pzListBox {
  28224. padding-top: 15px;
  28225. height: calc(100% - 110px);
  28226. overflow: auto;
  28227. }
  28228. .addPzButton {
  28229. position: relative;
  28230. margin-top: 3px;
  28231. width: 100%;
  28232. }
  28233. .addPzButton .img1 {
  28234. position: absolute;
  28235. top: 50%;
  28236. right: 25px;
  28237. transform: translateY(-50%);
  28238. height: 100%;
  28239. display: flex;
  28240. align-items: center;
  28241. }
  28242. .addPzButton .img1 div {
  28243. display: flex;
  28244. }
  28245. .addPzButton .img1 div img {
  28246. width: 28px;
  28247. margin-left: 10px;
  28248. cursor: pointer;
  28249. }
  28250. .addPzButton .img1 div span {
  28251. font-size: 14px;
  28252. margin: 4px 0 0 3px;
  28253. color: #afafaf;
  28254. }
  28255. .addPz {
  28256. background: #4b79ce;
  28257. width: 100px;
  28258. color: #fff;
  28259. font-size: 12px;
  28260. height: 30px;
  28261. margin: 0 auto;
  28262. text-align: center;
  28263. line-height: 30px;
  28264. border-radius: 10px;
  28265. cursor: pointer;
  28266. }
  28267. .addDialogCss {
  28268. position: fixed;
  28269. width: 600px;
  28270. height: 70%;
  28271. min-height: 450px;
  28272. box-shadow: 0px 0 8px 0px #555555;
  28273. border-radius: 15px;
  28274. z-index: 999;
  28275. left: 50%;
  28276. top: 50%;
  28277. margin: -18% 0 0 -300px;
  28278. }
  28279. .teacherPz {
  28280. display: flex;
  28281. flex-direction: row;
  28282. align-items: center;
  28283. flex-wrap: nowrap;
  28284. }
  28285. .teacherPzImg {
  28286. width: 30px;
  28287. height: 30px;
  28288. }
  28289. .teacherPzImg > img {
  28290. width: 100%;
  28291. height: 100%;
  28292. }
  28293. .addPzBox {
  28294. height: calc(100% - 40px);
  28295. background: #ededed;
  28296. border-bottom-left-radius: 15px;
  28297. border-bottom-right-radius: 15px;
  28298. }
  28299. .pzAudioClass {
  28300. margin: 15px 14px;
  28301. background: #fff;
  28302. height: 100%;
  28303. display: flex;
  28304. justify-content: center;
  28305. align-items: center;
  28306. }
  28307. .pzConText {
  28308. width: 95%;
  28309. height: 100%;
  28310. margin: 10px auto 0;
  28311. border: none;
  28312. background: #fff;
  28313. border-radius: 0px;
  28314. }
  28315. .pzConText >>> .text {
  28316. height: calc(100% - 82px);
  28317. }
  28318. .addTextCss {
  28319. background: #4b79ce;
  28320. width: 80px;
  28321. height: 30px;
  28322. text-align: center;
  28323. color: #fff;
  28324. line-height: 30px;
  28325. border-radius: 10px;
  28326. margin: 10px auto 0;
  28327. cursor: pointer;
  28328. }
  28329. .pzConText:focus-visible {
  28330. border: none !important;
  28331. }
  28332. .maxWidth {
  28333. width: 1000px;
  28334. }
  28335. .noPz {
  28336. width: 150px;
  28337. margin: 0 auto 20%;
  28338. }
  28339. .noPz > img {
  28340. width: 100%;
  28341. height: 100%;
  28342. }
  28343. .timeAndReply {
  28344. display: flex;
  28345. flex-direction: row;
  28346. flex-wrap: nowrap;
  28347. justify-content: space-between;
  28348. align-items: center;
  28349. font-size: 14px;
  28350. box-sizing: border-box;
  28351. padding: 0 10px 10px 0px;
  28352. }
  28353. .timeAndReply .time {
  28354. color: #bfbfbf;
  28355. padding: 0 0 0 10px;
  28356. box-sizing: border-box;
  28357. }
  28358. .timeAndReply > div:last-child {
  28359. cursor: pointer;
  28360. color: #777;
  28361. }
  28362. /* table 样式 */
  28363. .cont >>> table {
  28364. border-top: 1px solid #ccc;
  28365. border-left: 1px solid #ccc;
  28366. }
  28367. .cont >>> table td,
  28368. .cont >>> table th {
  28369. border-bottom: 1px solid #ccc;
  28370. border-right: 1px solid #ccc;
  28371. /* padding: 20px 5px; */
  28372. padding: 5px 10px;
  28373. max-width: 0px;
  28374. height: 30px;
  28375. vertical-align: baseline;
  28376. box-sizing: border-box;
  28377. }
  28378. .cont >>> table th {
  28379. border-bottom: 2px solid #ccc;
  28380. text-align: center;
  28381. }
  28382. /* blockquote 样式 */
  28383. .cont >>> blockquote {
  28384. display: block;
  28385. border-left: 8px solid #d0e5f2;
  28386. padding: 5px 10px;
  28387. margin: 10px 0;
  28388. line-height: 1.4;
  28389. font-size: 100%;
  28390. background-color: #f1f1f1;
  28391. }
  28392. /* code 样式 */
  28393. .cont >>> code {
  28394. display: inline-block;
  28395. /* *display: inline; */
  28396. zoom: 1;
  28397. background-color: #f1f1f1;
  28398. border-radius: 3px;
  28399. padding: 3px 5px;
  28400. margin: 0 3px;
  28401. }
  28402. .cont >>> pre code {
  28403. display: block;
  28404. }
  28405. /* ul ol 样式 */
  28406. .cont >>> ul,
  28407. ol {
  28408. margin: 10px 0 10px 20px;
  28409. }
  28410. .addPzCheck {
  28411. display: flex;
  28412. flex-direction: row;
  28413. flex-wrap: nowrap;
  28414. padding: 10px 15px 0;
  28415. }
  28416. .addPzCheck span {
  28417. cursor: pointer;
  28418. padding-bottom: 5px;
  28419. font-weight: bold;
  28420. }
  28421. .addPzCheck span + span {
  28422. margin-left: 10px;
  28423. }
  28424. .addPzCheck .isChooseActive {
  28425. color: #3e88f4;
  28426. border-bottom: 2px solid #2f80f3;
  28427. }
  28428. /* code 样式 */
  28429. .cont {
  28430. /* -webkit-user-modify: read-write; */
  28431. overflow-wrap: break-word;
  28432. -webkit-line-break: after-white-space;
  28433. word-break: break-word;
  28434. white-space: pre-line;
  28435. }
  28436. .scoreBox,
  28437. .scoreDetailBox {
  28438. display: flex;
  28439. align-items: center;
  28440. justify-content: flex-start;
  28441. margin-top: 20px;
  28442. font-size: 18px;
  28443. width: 100%;
  28444. }
  28445. .scoreBox .t,
  28446. .scoreDetailBox .t {
  28447. margin-right: 10px;
  28448. width: 100px;
  28449. text-align: right;
  28450. }
  28451. .scoreDetailBox {
  28452. align-items: flex-start;
  28453. }
  28454. .scoreDetailBox >>> .el-textarea {
  28455. width: calc(100% - 200px);
  28456. }
  28457. .scoreBox >>> .el-input {
  28458. width: 130px;
  28459. font-size: 38px;
  28460. }
  28461. .scoreBox >>> .el-input__inner {
  28462. height: 60px;
  28463. }
  28464. .answerScore {
  28465. position: absolute;
  28466. top: 10px;
  28467. right: 10px;
  28468. background: #0000008f;
  28469. border-radius: 5px;
  28470. padding: 3px 5px;
  28471. font-size: 14px;
  28472. color: #fff;
  28473. cursor: pointer;
  28474. }
  28475. .open_box .switch_box {
  28476. width: 100%;
  28477. margin: 0 auto;
  28478. display: flex;
  28479. justify-content: space-between;
  28480. }
  28481. .open_box .switch_box + .switch_box {
  28482. margin-top: 10px;
  28483. }
  28484. .deleteImg,.deleteImg1 {
  28485. width: 25px !important;
  28486. height: 25px !important;
  28487. cursor: pointer;
  28488. position: absolute;
  28489. top: 10px;
  28490. right: 10px;
  28491. }
  28492. .deleteImg2 {
  28493. width: 23px !important;
  28494. height: 23px !important;
  28495. top: 5px;
  28496. right: 5px;
  28497. }
  28498. .deleteImg1{
  28499. width: 23px !important;
  28500. height: 23px !important;
  28501. top: 5px !important;
  28502. right: 30px !important;
  28503. }
  28504. .rightW {
  28505. right: 40px;
  28506. }
  28507. .drawPBox {
  28508. display: flex;
  28509. flex-direction: column;
  28510. position: relative;
  28511. }
  28512. .drawPBox span {
  28513. font-size: 18px;
  28514. color: #606266;
  28515. padding-bottom: 10px;
  28516. margin: 10px 0;
  28517. border-bottom: 1px solid #eaeaea;
  28518. }
  28519. .drawPBox img {
  28520. width: 500px;
  28521. height: 300px;
  28522. object-fit: contain;
  28523. cursor: pointer;
  28524. margin: 0 auto;
  28525. }
  28526. .sentenBox {
  28527. background: #fff;
  28528. height: 450px;
  28529. overflow: auto;
  28530. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28531. background-position: 102%;
  28532. background-repeat: no-repeat;
  28533. background-size: 60%;
  28534. }
  28535. .addSen {
  28536. background: #409efe;
  28537. width: 90px;
  28538. color: #fff;
  28539. height: 35px;
  28540. text-align: center;
  28541. line-height: 35px;
  28542. border-radius: 5px;
  28543. float: right;
  28544. margin: 10px 20px 0 0;
  28545. cursor: pointer;
  28546. }
  28547. .sentenTop {
  28548. display: flex;
  28549. flex-direction: row;
  28550. flex-wrap: nowrap;
  28551. align-items: center;
  28552. padding: 55px 0 0 20px;
  28553. box-sizing: border-box;
  28554. }
  28555. .sentenTop > div:nth-child(2) {
  28556. width: 300px;
  28557. margin: 0 15px;
  28558. }
  28559. .sentenTop > div:nth-child(3) {
  28560. background: #409efe;
  28561. color: #fff;
  28562. width: 65px;
  28563. height: 35px;
  28564. text-align: center;
  28565. line-height: 35px;
  28566. border-radius: 5px;
  28567. cursor: pointer;
  28568. }
  28569. .cardList,
  28570. .cardList1 {
  28571. padding: 10px 0 10px 0;
  28572. display: flex;
  28573. flex-direction: row;
  28574. flex-wrap: wrap;
  28575. align-items: center;
  28576. box-sizing: border-box;
  28577. border-bottom: 1px solid #f4f4f4;
  28578. width: 98%;
  28579. margin: 0 auto;
  28580. min-width: 60%;
  28581. max-width: 85%;
  28582. }
  28583. .cardList1 {
  28584. padding: 10px 0 10px 10px !important;
  28585. margin: 0 !important;
  28586. }
  28587. .cardBox {
  28588. display: flex;
  28589. flex-direction: row;
  28590. flex-wrap: wrap;
  28591. align-items: center;
  28592. align-content: center;
  28593. }
  28594. .cardBox > div {
  28595. margin-bottom: 10px;
  28596. }
  28597. .isCard,
  28598. .isChooseCard,
  28599. .noCard,
  28600. .isCard1 {
  28601. min-width: 130px;
  28602. width: auto;
  28603. height: 60px;
  28604. text-align: center;
  28605. line-height: 60px;
  28606. font-size: 20px;
  28607. cursor: pointer;
  28608. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28609. background-size: cover;
  28610. transition: all 2s;
  28611. margin-right: 20px;
  28612. background-size: 100% 100%;
  28613. padding: 0 20px;
  28614. box-sizing: border-box;
  28615. }
  28616. .isCard > div,
  28617. .noCard > div,
  28618. .isCard1 > div {
  28619. white-space: nowrap;
  28620. overflow: hidden;
  28621. text-overflow: ellipsis;
  28622. width: 100%;
  28623. margin: 0 auto;
  28624. }
  28625. .noCard {
  28626. background-image: none;
  28627. }
  28628. .isCard1 {
  28629. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28630. }
  28631. .isChooseCard {
  28632. background-image: none;
  28633. border: 1px dashed #b9b9b9;
  28634. border-radius: 10px;
  28635. }
  28636. .card {
  28637. width: 130px;
  28638. height: 60px;
  28639. }
  28640. .card > img {
  28641. width: 100%;
  28642. height: 100%;
  28643. }
  28644. .rightCardBox {
  28645. margin: 10px 0 0 10px;
  28646. }
  28647. .rightCardBox > div:nth-child(1) {
  28648. margin-bottom: 10px;
  28649. }
  28650. .cardCss {
  28651. display: flex;
  28652. flex-direction: column;
  28653. flex-wrap: nowrap;
  28654. align-items: center;
  28655. border-bottom: 3px solid #b4c3d3;
  28656. padding: 0 0 5px 0;
  28657. margin-right: 10px;
  28658. }
  28659. .cardCss > div:nth-child(2) {
  28660. background: #5b7b9d;
  28661. color: #fff;
  28662. width: 20px;
  28663. height: 20px;
  28664. border-radius: 50%;
  28665. text-align: center;
  28666. line-height: 20px;
  28667. }
  28668. .isWrong {
  28669. display: flex;
  28670. flex-direction: row;
  28671. flex-wrap: nowrap;
  28672. align-content: center;
  28673. align-items: center;
  28674. }
  28675. .answerRight {
  28676. width: 25%;
  28677. }
  28678. .isTj {
  28679. display: flex;
  28680. flex-direction: row;
  28681. flex-wrap: nowrap;
  28682. align-items: center;
  28683. }
  28684. .isTj > div:nth-child(2) {
  28685. color: #727070;
  28686. margin-left: 10px;
  28687. }
  28688. .isTjImg {
  28689. width: 30px;
  28690. height: 30px;
  28691. }
  28692. .isTjImg > img {
  28693. width: 100%;
  28694. height: 100%;
  28695. }
  28696. .cardAnswerBox {
  28697. font-size: 18px;
  28698. width: 97%;
  28699. border: 5px;
  28700. padding: 0;
  28701. border-radius: 5px;
  28702. margin: 10px auto;
  28703. word-break: break-word;
  28704. }
  28705. .w_name {
  28706. margin-bottom: 10px;
  28707. }
  28708. .w_name span {
  28709. font-size: 16px;
  28710. }
  28711. .w_teachert {
  28712. width: 50px !important;
  28713. position: absolute;
  28714. height: auto !important;
  28715. z-index: 10;
  28716. right: 25px;
  28717. top: -25px;
  28718. }
  28719. /* .group_workBox {
  28720. } */
  28721. .group_workBox + .group_workBox {
  28722. margin-top: 20px;
  28723. }
  28724. .group_box {
  28725. padding-bottom: 20px;
  28726. border-bottom: 2px solid #f0f0f0;
  28727. margin-top: 10px;
  28728. }
  28729. .group_title {
  28730. display: flex;
  28731. align-items: center;
  28732. justify-content: space-between;
  28733. width: 95%;
  28734. }
  28735. .group_name {
  28736. background-image: url(../../assets/icon/groupN.png);
  28737. width: 220px;
  28738. background-size: 100% 100%;
  28739. height: 67px;
  28740. padding: 0 20px 0 43px;
  28741. box-sizing: border-box;
  28742. line-height: 63px;
  28743. color: #fff;
  28744. overflow: hidden;
  28745. white-space: nowrap;
  28746. text-overflow: ellipsis;
  28747. }
  28748. .group_work {
  28749. width: 100%;
  28750. padding: 0 10px;
  28751. box-sizing: border-box;
  28752. display: flex;
  28753. flex-wrap: wrap;
  28754. }
  28755. .g_d_box {
  28756. display: flex;
  28757. flex-flow: wrap;
  28758. justify-content: space-around;
  28759. }
  28760. .g_d_box .isChair {
  28761. background-image: url(../../assets/avatar.png) !important;
  28762. }
  28763. .g_d_group {
  28764. width: 500px;
  28765. margin-bottom: 80px;
  28766. }
  28767. .g_d_group_chair {
  28768. display: flex;
  28769. align-items: center;
  28770. justify-content: center;
  28771. }
  28772. .g_d_group_chair > div + div {
  28773. margin-left: 30px;
  28774. }
  28775. .g_d_group_chair > div,
  28776. .g_d_group_chair2 > div {
  28777. display: flex;
  28778. flex-direction: column;
  28779. align-items: center;
  28780. }
  28781. .g_d_group_chair > div > span:nth-child(1),
  28782. .g_d_group_chair2 > div > span:nth-child(1) {
  28783. background-image: url(../../assets/icon/chair.png);
  28784. width: 50px;
  28785. height: 50px;
  28786. display: block;
  28787. background-size: 100% 100%;
  28788. }
  28789. .g_d_group_tableBox {
  28790. display: flex;
  28791. align-items: center;
  28792. justify-content: center;
  28793. }
  28794. .g_d_group_chair2 {
  28795. display: flex;
  28796. flex-direction: column;
  28797. align-items: center;
  28798. justify-content: center;
  28799. }
  28800. .g_d_group_chair2 > div + div {
  28801. margin-top: 10px;
  28802. }
  28803. .g_d_group_table {
  28804. background-image: url(../../assets/icon/groupBg.png);
  28805. width: 354px;
  28806. height: 196px;
  28807. background-size: 100% 100%;
  28808. display: flex;
  28809. align-items: center;
  28810. justify-content: center;
  28811. flex-direction: column;
  28812. color: #fff;
  28813. }
  28814. .g_d_group_table > div:nth-child(1) {
  28815. font-size: 24px;
  28816. margin-bottom: 5px;
  28817. }
  28818. .g_d_group_table > div:nth-child(2) div {
  28819. cursor: pointer;
  28820. background: #2e77bf;
  28821. padding: 4px 10px;
  28822. border-radius: 5px;
  28823. }
  28824. /* .groupBox {
  28825. } */
  28826. .groupContent + .groupContent {
  28827. margin-top: 30px;
  28828. }
  28829. .groupTitle {
  28830. font-size: 24px;
  28831. color: rgb(80, 80, 80);
  28832. margin-bottom: 20px;
  28833. }
  28834. .groupName {
  28835. display: flex;
  28836. align-items: center;
  28837. }
  28838. .groupn {
  28839. font-size: 15px;
  28840. margin-right: 10px;
  28841. }
  28842. .groupName + .groupName {
  28843. margin-top: 15px;
  28844. }
  28845. .groupBtn {
  28846. margin-left: 10px;
  28847. }
  28848. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28849. text-align: left;
  28850. }
  28851. .g_d_btnBox {
  28852. display: flex;
  28853. justify-content: flex-end;
  28854. align-items: center;
  28855. margin-bottom: 20px;
  28856. }
  28857. .updateChair {
  28858. position: relative;
  28859. }
  28860. .updateChairBtn {
  28861. position: absolute;
  28862. width: 50px;
  28863. height: 50px;
  28864. overflow: hidden;
  28865. /* display: flex; */
  28866. align-items: center;
  28867. justify-content: center;
  28868. background: #00000087;
  28869. color: #fff;
  28870. border-radius: 50px;
  28871. display: none;
  28872. cursor: pointer;
  28873. }
  28874. .updateChair:hover .updateChairBtn {
  28875. display: flex;
  28876. }
  28877. .group_staic_box {
  28878. display: flex;
  28879. padding: 30px 40px 10px;
  28880. flex-wrap: wrap;
  28881. }
  28882. .group_staic {
  28883. /* width: 50%; */
  28884. margin-bottom: 20px;
  28885. display: flex;
  28886. align-items: center;
  28887. }
  28888. .group_staic span:nth-child(1) {
  28889. width: 150px;
  28890. text-align: right;
  28891. margin-right: 15px;
  28892. }
  28893. .group_staic span:nth-child(2) {
  28894. background: rgb(0 123 255);
  28895. color: #fff;
  28896. border-radius: 5px;
  28897. padding: 5px;
  28898. }
  28899. .codeFileBox {
  28900. height: 300px;
  28901. background: #fff;
  28902. display: flex;
  28903. align-items: center;
  28904. justify-content: center;
  28905. }
  28906. .codeFileBox img {
  28907. width: 200px;
  28908. margin: 0;
  28909. height: auto;
  28910. }
  28911. .codeFileBox div {
  28912. background: rgb(80, 142, 226);
  28913. color: #fff;
  28914. padding: 10px 20px;
  28915. border-radius: 25px;
  28916. cursor: pointer;
  28917. margin-left: 15px;
  28918. }
  28919. .radioBox {
  28920. display: flex;
  28921. flex-direction: column;
  28922. flex-wrap: nowrap;
  28923. align-items: flex-start;
  28924. }
  28925. .radioBox > div {
  28926. margin: 10px 0 0 10px;
  28927. }
  28928. /* .radioBox >>> .el-radio__input,
  28929. .radioBox >>> .el-checkbox__inner {
  28930. margin-left: 10px;
  28931. } */
  28932. .radioBox >>> .el-radio__label,
  28933. .radioBox >>> .el-checkbox__label {
  28934. display: flex;
  28935. align-items: center;
  28936. width: 100%;
  28937. }
  28938. .radioBox >>> .el-radio__label > span {
  28939. width: 100%;
  28940. display: -webkit-box;
  28941. overflow: hidden;
  28942. white-space: normal !important;
  28943. text-overflow: ellipsis;
  28944. word-wrap: break-word;
  28945. }
  28946. .inImg {
  28947. width: 100px;
  28948. cursor: pointer;
  28949. }
  28950. .inImg > img {
  28951. width: 100%;
  28952. height: 100%;
  28953. object-fit: cover;
  28954. }
  28955. .timuImgBox {
  28956. margin: 10px 0;
  28957. display: flex;
  28958. flex-direction: column;
  28959. flex-wrap: wrap;
  28960. align-items: flex-start;
  28961. }
  28962. .timuImg {
  28963. width: 150px;
  28964. margin: 5px 0;
  28965. cursor: pointer;
  28966. }
  28967. .timuImg > img {
  28968. width: 100%;
  28969. height: 100%;
  28970. object-fit: cover;
  28971. }
  28972. .worksTop {
  28973. display: flex;
  28974. flex-direction: row;
  28975. align-items: flex-end;
  28976. }
  28977. .worksTitle {
  28978. display: flex;
  28979. flex-direction: row;
  28980. flex-wrap: nowrap;
  28981. align-items: center;
  28982. }
  28983. .worksTitle::before,
  28984. .worksTop::before {
  28985. content: "";
  28986. display: block;
  28987. width: 3px;
  28988. height: 20px;
  28989. background: #0061ff;
  28990. border-radius: 3px;
  28991. margin: 0 5px 0 0;
  28992. }
  28993. .corOpen {
  28994. margin: 0 0 0 10px;
  28995. font-size: 14px;
  28996. cursor: pointer;
  28997. color: #505050;
  28998. }
  28999. .corOpen:hover {
  29000. color: #499eef;
  29001. }
  29002. .navCorOpenBox {
  29003. display: flex;
  29004. flex-direction: row;
  29005. align-items: center;
  29006. justify-content: space-between;
  29007. height: 55px;
  29008. background: #ffffff;
  29009. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29010. border-radius: 8px 8px 0px 0px;
  29011. z-index: 9;
  29012. position: relative;
  29013. }
  29014. .navCorOpen {
  29015. padding-right: 15px;
  29016. cursor: pointer;
  29017. width: 45px;
  29018. display: flex;
  29019. }
  29020. .navCorOpen > img {
  29021. width: 100%;
  29022. height: 100%;
  29023. }
  29024. .mlImg {
  29025. width: 40px !important;
  29026. min-width: 40px;
  29027. cursor: pointer;
  29028. transform: rotate(180deg);
  29029. }
  29030. .mlImg > img {
  29031. width: 100%;
  29032. height: 100%;
  29033. }
  29034. .navLeftCss {
  29035. width: 100% !important;
  29036. left: 0 !important;
  29037. }
  29038. .isContentCss {
  29039. width: 100% !important;
  29040. }
  29041. .isAllWidth {
  29042. width: 100% !important;
  29043. }
  29044. .group_switch {
  29045. margin-right: 10px;
  29046. height: 30px;
  29047. display: flex;
  29048. align-items: center;
  29049. }
  29050. .group_switch > span {
  29051. margin-right: 5px;
  29052. }
  29053. .fileC_box {
  29054. padding-top: 15px;
  29055. }
  29056. .fileC_box > .fileC_title {
  29057. padding: 10px 5px 14px 10px;
  29058. border-top: 1px solid #cad1dc;
  29059. font-size: 14px;
  29060. font-weight: 400;
  29061. color: #cad1dc;
  29062. width: calc(100% - 20px);
  29063. margin: 0 auto;
  29064. box-sizing: border-box;
  29065. }
  29066. .pl_select_box {
  29067. height: 40px;
  29068. line-height: 40px;
  29069. width: 100%;
  29070. cursor: pointer;
  29071. padding: 0 20px;
  29072. box-sizing: border-box;
  29073. border-radius: 5px;
  29074. border: 1px solid #d6d6d6;
  29075. white-space: nowrap;
  29076. overflow: hidden;
  29077. text-overflow: ellipsis;
  29078. background: #fff;
  29079. text-align: left;
  29080. }
  29081. .newButton {
  29082. width: 102px;
  29083. height: 36px;
  29084. background: #e7ebf1;
  29085. border-radius: 4px;
  29086. color: #0e1e33;
  29087. font-weight: 400;
  29088. font-size: 14px;
  29089. border: none;
  29090. float: right;
  29091. margin-left: 10px;
  29092. }
  29093. .el-table >>> .even_row {
  29094. background-color: #f0f4fa;
  29095. }
  29096. .stageBoxCss,
  29097. .stageBoxIsCss {
  29098. display: flex;
  29099. flex-direction: row;
  29100. flex-wrap: nowrap;
  29101. align-items: center;
  29102. height: 50px;
  29103. border-bottom: 1px solid #e2f5fc;
  29104. cursor: pointer;
  29105. width: 100%;
  29106. }
  29107. .stageBoxIsCss {
  29108. background: #0061ff;
  29109. color: #fff;
  29110. border-radius: 8px;
  29111. }
  29112. .closeTri,
  29113. .closeTri1 {
  29114. min-width: 15px;
  29115. width: 15px;
  29116. height: 15px;
  29117. }
  29118. .closeTri1 {
  29119. padding-left: 10px;
  29120. cursor: pointer;
  29121. }
  29122. .closeTri > img,
  29123. .closeTri1 > img {
  29124. width: 100%;
  29125. height: 100%;
  29126. /* transition: all .5s; */
  29127. }
  29128. .noToolBlue {
  29129. min-width: 10px;
  29130. width: 10px;
  29131. height: 10px;
  29132. background: #0061ff;
  29133. border-radius: 50%;
  29134. margin-left: 13px;
  29135. }
  29136. .stageChild,
  29137. .toolChild {
  29138. height: 0;
  29139. overflow: hidden;
  29140. transition: all 0.5s;
  29141. }
  29142. /* .toolChild { */
  29143. /* margin: 0 0 0 17px;
  29144. padding: 0 0 0 20px;
  29145. border-left: 1px solid #d7d7d7; */
  29146. /* } */
  29147. .toolChild > div + div{
  29148. margin-top:5px;
  29149. }
  29150. .gjCss {
  29151. display: flex;
  29152. flex-direction: row;
  29153. flex-wrap: nowrap;
  29154. align-items: center;
  29155. padding: 10px 0 10px 40px;
  29156. box-sizing: border-box;
  29157. font-size: 14px;
  29158. cursor: pointer;
  29159. border-radius:5px;
  29160. }
  29161. .toolChild > div {
  29162. position: relative;
  29163. width: 100%;
  29164. }
  29165. /* .toolChild > div::before { */
  29166. /* content: "";
  29167. width: 15px;
  29168. height: 1px;
  29169. background: #cad1dc;
  29170. position: absolute;
  29171. top: 24px;
  29172. left: -20px;
  29173. display: block; */
  29174. /* } */
  29175. .isGjCss {
  29176. /* color: #0061ff; */
  29177. color:#fff;
  29178. background: rgb(55, 129, 252);
  29179. /* background-color: #e0eafb !important;
  29180. color: #0061ff !important; */
  29181. }
  29182. .navItem {
  29183. background: #ffffff;
  29184. border-radius: 4px;
  29185. width: 100%;
  29186. margin: 10px auto;
  29187. position: relative;
  29188. height: 40px;
  29189. display: flex;
  29190. flex-direction: row;
  29191. flex-wrap: nowrap;
  29192. align-items: center;
  29193. }
  29194. .navItemList {
  29195. display: flex;
  29196. flex-direction: row;
  29197. flex-wrap: nowrap;
  29198. align-items: center;
  29199. padding: 0 13px;
  29200. cursor: pointer;
  29201. width: calc(100% - 60px);
  29202. height: 100%;
  29203. }
  29204. .navItemList > div:first-child {
  29205. min-width: 60px;
  29206. }
  29207. .navItemList > div:last-child {
  29208. width: calc(100% - 80px);
  29209. white-space: nowrap;
  29210. overflow: hidden;
  29211. text-overflow: ellipsis;
  29212. word-break: break-word;
  29213. }
  29214. /* .isItemList > div {
  29215. color: #fff !important;
  29216. } */
  29217. .tool_work_box {
  29218. width: 100%;
  29219. padding: 0 37px 0;
  29220. box-sizing: border-box;
  29221. }
  29222. .tool_box {
  29223. width: 100%;
  29224. padding: 0 0 0 20px;
  29225. }
  29226. .tool_type_box {
  29227. display: flex;
  29228. flex-direction: row;
  29229. align-items: baseline;
  29230. flex-wrap: nowrap;
  29231. justify-content: flex-start;
  29232. position: relative;
  29233. }
  29234. .toolSort {
  29235. display: flex;
  29236. flex-direction: row;
  29237. flex-wrap: wrap;
  29238. justify-content: flex-start;
  29239. align-items: flex-start;
  29240. padding: 0 0 15px 0;
  29241. }
  29242. .toolSort > div {
  29243. margin: 0 10px 0 0;
  29244. width: 135px;
  29245. box-sizing: border-box;
  29246. border: 2px solid transparent;
  29247. }
  29248. .tools {
  29249. width: 100%;
  29250. display: flex;
  29251. flex-direction: column;
  29252. flex-wrap: nowrap;
  29253. align-items: flex-start;
  29254. }
  29255. .whiteBIcon {
  29256. width: fit-content;
  29257. cursor: pointer;
  29258. display: flex;
  29259. flex-direction: column;
  29260. flex-wrap: nowrap;
  29261. align-items: center;
  29262. font-size: 14px;
  29263. }
  29264. .tool:hover {
  29265. border: 2px solid #a5c7ff;
  29266. border-radius: 5px;
  29267. }
  29268. .whiteBIcon > img {
  29269. width: 65px;
  29270. height: 100%;
  29271. }
  29272. .whiteBIcon > img {
  29273. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29274. border-radius: 15px;
  29275. }
  29276. .check {
  29277. /* width: 20px;
  29278. height: 20px; */
  29279. cursor: pointer;
  29280. margin: 10px 0;
  29281. position: absolute;
  29282. right: 2px;
  29283. top: -5px;
  29284. }
  29285. .noChoose,
  29286. .isChoose {
  29287. width: 15px;
  29288. height: 15px;
  29289. border-radius: 50%;
  29290. border: 1px solid #adadad;
  29291. }
  29292. .isChoose {
  29293. border: 4px solid #0363ff !important;
  29294. width: 10px;
  29295. height: 10px;
  29296. }
  29297. .isToolChoose {
  29298. border: 2px solid #5394ff !important;
  29299. border-radius: 5px;
  29300. box-shadow: 0 0 6px 0px #5394ff;
  29301. }
  29302. .checkDiv {
  29303. display: flex;
  29304. align-items: center;
  29305. }
  29306. .checkDiv span {
  29307. margin-left: 5px;
  29308. color: #858585;
  29309. }
  29310. .check img {
  29311. width: 20px;
  29312. height: 20px;
  29313. }
  29314. .lockTaskIcon {
  29315. width: 20px;
  29316. height: 20px;
  29317. position: absolute;
  29318. right: 10px;
  29319. top: 10px;
  29320. }
  29321. .lockTaskIcon > img {
  29322. width: 100%;
  29323. height: 100%;
  29324. }
  29325. .pick_box {
  29326. display: flex;
  29327. align-items: flex-start;
  29328. flex-wrap: wrap;
  29329. }
  29330. .selectBox {
  29331. width: 110px;
  29332. margin-left: 10px;
  29333. margin: 0 10px 0 auto;
  29334. }
  29335. .selectBox >>> .el-input__inner {
  29336. height: 30px;
  29337. line-height: 30px;
  29338. }
  29339. .selectBox >>> .el-input__icon {
  29340. line-height: 30px;
  29341. }
  29342. .sentenceTitle {
  29343. display: flex;
  29344. flex-direction: row;
  29345. flex-wrap: nowrap;
  29346. align-items: center;
  29347. }
  29348. .sentenceTitle::before {
  29349. content: attr(index);
  29350. background: #3681fc;
  29351. border-radius: 50%;
  29352. color: #fff;
  29353. width: 25px;
  29354. height: 25px;
  29355. min-width: 25px;
  29356. min-height: 25px;
  29357. text-align: center;
  29358. line-height: 25px;
  29359. margin-right: 5px;
  29360. }
  29361. .hfBox {
  29362. padding: 10px;
  29363. box-sizing: border-box;
  29364. }
  29365. .whoReplyWho {
  29366. display: flex;
  29367. flex-direction: row;
  29368. flex-wrap: nowrap;
  29369. align-items: baseline;
  29370. justify-content: flex-start;
  29371. }
  29372. .hfBottom {
  29373. display: flex;
  29374. flex-direction: row;
  29375. flex-wrap: nowrap;
  29376. align-items: center;
  29377. justify-content: space-between;
  29378. font-size: 14px;
  29379. }
  29380. .deleteHfItem {
  29381. cursor: pointer;
  29382. width: 20px;
  29383. height: 20px;
  29384. }
  29385. .deleteHfItem > img {
  29386. width: 100%;
  29387. height: 100%;
  29388. }
  29389. .whoReplyWho > .hfImg {
  29390. width: 12px;
  29391. height: 12px;
  29392. margin: 0 5px;
  29393. }
  29394. .whoReplyWho > .hfImg > img {
  29395. width: 100%;
  29396. height: 100%;
  29397. }
  29398. .hfContent {
  29399. padding-top: 10px;
  29400. box-sizing: border-box;
  29401. display: -webkit-box;
  29402. overflow: hidden;
  29403. white-space: normal !important;
  29404. text-overflow: ellipsis;
  29405. word-wrap: break-word;
  29406. -webkit-box-orient: vertical;
  29407. }
  29408. .hfTime {
  29409. text-align: left;
  29410. box-sizing: border-box;
  29411. padding: 10px 0 10px 0px;
  29412. color: #bfbfbf;
  29413. font-size: 14px;
  29414. }
  29415. .btnAllNT {
  29416. position: fixed;
  29417. bottom: 100px;
  29418. right: 40px;
  29419. z-index: 999;
  29420. display: flex;
  29421. flex-direction: row;
  29422. }
  29423. .btnAllNT > img {
  29424. cursor: pointer;
  29425. width: 80px;
  29426. }
  29427. .toolMask {
  29428. position: fixed;
  29429. width: 100%;
  29430. height: 100%;
  29431. background: #3f3c3c;
  29432. opacity: 0.5;
  29433. top: 0;
  29434. left: 0;
  29435. z-index: 999;
  29436. }
  29437. .addToolCss {
  29438. position: fixed;
  29439. z-index: 999;
  29440. background: #fff;
  29441. right: 5%;
  29442. bottom: 18%;
  29443. min-width: 1035px;
  29444. min-height: 300px;
  29445. border-radius: 10px;
  29446. box-shadow: 0 0 8px 1px #b2b2b2;
  29447. }
  29448. .toolTop {
  29449. display: flex;
  29450. flex-direction: row;
  29451. flex-wrap: nowrap;
  29452. justify-content: space-between;
  29453. align-items: center;
  29454. padding: 20px;
  29455. }
  29456. .toolTop > div:nth-child(2) {
  29457. width: 15px;
  29458. height: 15px;
  29459. padding-right: 10px;
  29460. cursor: pointer;
  29461. }
  29462. .toolTop > div:nth-child(2) > img {
  29463. width: 100%;
  29464. height: 100%;
  29465. }
  29466. .fullStyle>>>.el-dialog__body {
  29467. height: calc(100% - 125px) !important;
  29468. box-sizing: border-box;
  29469. padding: 30px 0 !important;
  29470. background: #fff !important;
  29471. }
  29472. .fullStyle>>>.el-dialog {
  29473. width: 100% !important;
  29474. max-width: 100% !important;
  29475. height: 100% !important;
  29476. margin: 0 !important;
  29477. }
  29478. .fullStyle {
  29479. width: 100% !important;
  29480. max-width: 100% !important;
  29481. height: 100% !important;
  29482. margin: 0 auto !important;
  29483. }
  29484. .fullStyle>>>.el-dialog__footer{
  29485. background: #fff !important;
  29486. }
  29487. .engUpBox {
  29488. width: 100%;
  29489. height: 100%;
  29490. }
  29491. .engTitle,
  29492. .engText {
  29493. display: flex;
  29494. flex-direction: row;
  29495. flex-wrap: nowrap;
  29496. align-items: flex-start;
  29497. padding: 0 20px 20px 20px;
  29498. box-sizing: border-box;
  29499. }
  29500. .engTitle > .div:first-child,
  29501. .engText > div:first-child {
  29502. min-width: 75px;
  29503. }
  29504. .correctBox{
  29505. width: 100%;
  29506. display: flex;
  29507. flex-direction: row;
  29508. flex-wrap: nowrap;
  29509. align-items: flex-start;
  29510. }
  29511. .oldBox{
  29512. width: 50%;
  29513. height: 100%;
  29514. display: flex;
  29515. flex-direction: column;
  29516. flex-wrap: nowrap;
  29517. align-items: center;
  29518. border-top: 1px solid #d9d9d9;
  29519. border-left: 1px solid #d9d9d9;
  29520. border-right: 1px solid #d9d9d9;
  29521. }
  29522. .oldBox>div:first-child{
  29523. width: 100%;
  29524. text-align: center;
  29525. background: #d9d9d9;
  29526. height: 35px;
  29527. line-height: 35px;
  29528. font-weight: bold;
  29529. }
  29530. .oldText{
  29531. width: 100%;
  29532. height: calc(100% - 35px);
  29533. overflow: auto;
  29534. margin: 10px 0;
  29535. display: flex;
  29536. flex-direction: column;
  29537. flex-wrap: nowrap;
  29538. align-content: center;
  29539. align-items: center;
  29540. }
  29541. .detailBox{
  29542. width: 50%;
  29543. padding: 10px;
  29544. background: #f6f6f6;
  29545. border-radius: 5px;
  29546. }
  29547. .oldDetail,.oldDetail1{
  29548. padding-bottom: 30px;
  29549. }
  29550. .oldImg{
  29551. width:30px;
  29552. height: 30px;
  29553. }
  29554. .oldImg>img{
  29555. width: 100%;
  29556. height: 100%;
  29557. }
  29558. .allName{
  29559. min-width: 200px;
  29560. white-space: nowrap;
  29561. overflow: hidden;
  29562. text-overflow: ellipsis;
  29563. word-break: break-word;
  29564. cursor: pointer;
  29565. text-align: center;
  29566. border: 1px solid #bcc2cc;
  29567. box-sizing: border-box;
  29568. }
  29569. .engUpTop{
  29570. max-height: 300px;
  29571. overflow: auto;
  29572. }
  29573. .isUpdateToolDetailClass{
  29574. padding: 0 !important;
  29575. }
  29576. .isUpdateToolDetailClass textarea{
  29577. padding:12px;
  29578. font-size: 16px;
  29579. min-height:100%;
  29580. width: 100%;
  29581. box-sizing:border-box;
  29582. outline: none;
  29583. border:none;
  29584. line-height: 30px;
  29585. resize: none;
  29586. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29587. color: #838383;
  29588. }
  29589. .show_taskD {
  29590. min-width: fit-content;
  29591. margin-left: 10px;
  29592. display: flex;
  29593. align-items: center;
  29594. font-size: 14px;
  29595. cursor: pointer;
  29596. color: #717c8d;
  29597. }
  29598. .show_taskD > img {
  29599. width: 15px;
  29600. margin-right: 5px;
  29601. transition: 0.2s all;
  29602. transform: rotate(-90deg);
  29603. }
  29604. .show_taskD.show > img {
  29605. transform: rotate(0deg);
  29606. }
  29607. .correctCss{
  29608. position: absolute;
  29609. bottom: -70px;
  29610. background: #409eff;
  29611. color: #fff;
  29612. }
  29613. .ScoreBtn {
  29614. background: rgba(87, 159, 248, 1);
  29615. display: flex;
  29616. justify-content: center;
  29617. align-items: center;
  29618. color: #fff;
  29619. font-size: 14px;
  29620. padding: 8px 12px;
  29621. border-radius: 5px;
  29622. cursor: pointer;
  29623. }
  29624. .max-height-popover .el-popover {
  29625. min-height: 200px;
  29626. max-height: 400px; /* 设置最大高度 */
  29627. overflow: auto; /* 超出部分显示滚动条 */
  29628. }
  29629. .stuLookScore {
  29630. position: absolute;
  29631. top: 12px;
  29632. right: 40px;
  29633. background: #0000008f;
  29634. border-radius: 5px;
  29635. padding: 3px 5px;
  29636. font-size: 14px;
  29637. color: #fff;
  29638. cursor: pointer;
  29639. }
  29640. .dialog_diyCopy >>> .el-dialog__header {
  29641. display: none !important;
  29642. }
  29643. .dialog_diyCopy >>> .el-dialog__body {
  29644. padding: 0 !important;
  29645. height: 100% !important;
  29646. }
  29647. .confirmOpenDigCss > div{
  29648. font-size: 14px;
  29649. color: rgba(0, 0, 0, 0.6);
  29650. }
  29651. .confirmOpenDigCss >>> .el-dialog{
  29652. border-radius: 6px;
  29653. }
  29654. .confirmOpenDigCss >>> .el-dialog__body{
  29655. padding: 25px !important;
  29656. }
  29657. .confirmOpenDigCss > span{
  29658. font-size: 16px;
  29659. font-weight: 600;
  29660. color: rgba(0, 0, 0, 0.8);
  29661. }
  29662. div::-webkit-scrollbar {
  29663. width: 10px;
  29664. height: 6px;
  29665. }
  29666. .Ovh{
  29667. margin: 5px 0;
  29668. width: 4em;
  29669. -webkit-line-clamp: 2;
  29670. display: -webkit-box;
  29671. -webkit-box-orient: vertical;
  29672. overflow: hidden;
  29673. text-overflow: ellipsis;
  29674. }
  29675. .renderedFor >>> .katex {
  29676. font-size: 18px;
  29677. width: 100%;
  29678. white-space: normal;
  29679. font-family: '黑体' !important;
  29680. }
  29681. .renderedFor >>> .katex .base{
  29682. display: inline !important;
  29683. display: contents !important;
  29684. }
  29685. .renderedFor>>> .katex .base .cjk_fallback{
  29686. white-space: normal !important;
  29687. display: inline !important;
  29688. }
  29689. .notop >>> .vjs-fluid{
  29690. padding-top: 0 !important;
  29691. }
  29692. </style>