studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 上课模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 20% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :style="tType=='2'?'width:calc(100% - 10px)':''" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  622. :key="diffKey"
  623. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  624. :src="pptImgUrl1"
  625. ></iframe>
  626. <iframe
  627. style="width: 100%; height: 100%; border: none"
  628. security="restricted"
  629. v-else
  630. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  631. :src="pptImgUrl1"
  632. ></iframe>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType === 16"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <iframe
  640. style="width: 100%; height: 100%; border: none"
  641. :src="pptImgUrl1"
  642. ></iframe>
  643. </div>
  644. <div
  645. class="wheel"
  646. v-if="showType == 3"
  647. style="width: 95%; margin: 0 auto"
  648. >
  649. <pdf
  650. :pdfUrl="pptImgUrl1"
  651. style="width: 100%; height: 100%; overflow: auto"
  652. ></pdf>
  653. </div>
  654. <div
  655. class="wheel"
  656. v-if="showType == 4"
  657. style="width: 95%; margin: 0 auto"
  658. >
  659. <el-image
  660. :src="pptImgUrl1"
  661. fit="contain"
  662. style="width: 100%; height: 100%; cursor: pointer"
  663. @click="previewImg(pptImgUrl1)"
  664. ></el-image>
  665. </div>
  666. </div>
  667. <div
  668. class="pButton"
  669. style="position: absolute; right: 20px; top: 0; z-index: 998"
  670. v-if="!contentDialog"
  671. @click="setContent(true)"
  672. >
  673. <!-- 批 -->
  674. <img
  675. src="../../assets/icon/newIcons/isLeft.png"
  676. style="width: 45px"
  677. alt=""
  678. />
  679. </div>
  680. <div
  681. v-if="contentDialog == true"
  682. :style="{
  683. width:
  684. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  685. showType === ''
  686. ? 'calc(100%)'
  687. : '300px',
  688. margin:
  689. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  690. showType === ''
  691. ? '0 15px'
  692. : '0 15px 0 0',
  693. }"
  694. >
  695. <div
  696. class="vedioList"
  697. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  698. style="height: 650px"
  699. >
  700. <div class="navCorOpenBox">
  701. <div class="navTitile">内容列表:</div>
  702. <div class="navCorOpen" @click="setContent(false)">
  703. <img
  704. src="../../assets/icon/newIcons/isRight.png"
  705. alt=""
  706. />
  707. </div>
  708. </div>
  709. <div class="navBox">
  710. <div
  711. v-show="
  712. vChapterData[0].length > 0 || fileC[0].length > 0
  713. "
  714. style="padding: 10px 0 25px 0"
  715. >
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in vChapterData[0]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 2">
  722. <div
  723. @click="lookVedio(vitem.url, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 6">
  738. <div
  739. @click="lookText(0, vindex)"
  740. class="navText"
  741. :class="isClickNav == vindex ? 'isClickNav' : ''"
  742. >
  743. {{ vitem.name }}.doc
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div
  756. class="navListItem"
  757. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  758. >
  759. <div
  760. @click="doUrl(vitem.url, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.title ? vitem.title : vitem.url }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. </div>
  776. <div class="navListItem" v-if="vitem.type == 3">
  777. <div
  778. @click="downFile(vitem, vindex)"
  779. class="navText"
  780. :class="isClickNav == vindex ? 'isClickNav' : ''"
  781. >
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="checkFileFull1(vitem.type, vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/allScreen.png"
  791. alt
  792. />
  793. </div>
  794. <div class="downIcon" @click="downloadFile2(vitem)">
  795. <img
  796. src="../../assets/icon/newIcon/down.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 12">
  802. <div class="navText" @click="downloadFile2(vitem)">
  803. <span v-if="vitem.text">{{ vitem.text }}-</span
  804. >{{ vitem.name }}
  805. </div>
  806. <div
  807. class="downIcon"
  808. @click="checkFileFull1(vitem.type, vitem)"
  809. >
  810. <img
  811. src="../../assets/icon/newIcon/allScreen.png"
  812. alt
  813. />
  814. </div>
  815. <div class="downIcon" @click="downloadFile2(vitem)">
  816. <img
  817. src="../../assets/icon/newIcon/down.png"
  818. alt
  819. />
  820. </div>
  821. </div>
  822. <div class="navListItem" v-if="vitem.type == 13">
  823. <div
  824. class="navText"
  825. @click="checkPhoto(vitem, vindex)"
  826. :class="isClickNav == vindex ? 'isClickNav' : ''"
  827. >
  828. {{ vitem.name }}
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 16">
  838. <div
  839. class="navText"
  840. @click="checkHtml(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div
  846. class="downIcon"
  847. @click="checkFileFull1(vitem.type, vitem)"
  848. >
  849. <img
  850. src="../../assets/icon/newIcon/allScreen.png"
  851. alt
  852. />
  853. </div>
  854. </div>
  855. </div>
  856. <div class="fileC_box" v-if="fileC[0].length > 0">
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[0]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. class="newButton"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px',
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 分析
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">学习资料</div>
  1071. </div>
  1072. <div v-if="tooC == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1088. style="position: absolute;right: 153px;top: -30px;">
  1089. 分析
  1090. </div>
  1091. <div
  1092. class="upload_toolBtn"
  1093. v-if="tType === '1'"
  1094. @click="
  1095. openStatisticalAnalysis(
  1096. tooC,
  1097. toolIndex,
  1098. taskCount,
  1099. 45
  1100. )
  1101. "
  1102. style="position: absolute;right: 33px;top: -30px;"
  1103. >
  1104. 统计分析
  1105. </div>
  1106. </div>
  1107. <div v-if="tooC == 45">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../../assets/icon/thirdToolList/choose.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">选择题</div>
  1114. <!-- &&worksStudent[toolIndex].length > 0 -->
  1115. <div
  1116. class="upload_toolBtn"
  1117. @click="
  1118. openChoseWorksDetailDialog(
  1119. tooC,
  1120. toolIndex,
  1121. taskCount,45
  1122. )
  1123. "
  1124. style="position: absolute;right: 33px;top: -30px;"
  1125. >
  1126. 分析
  1127. </div>
  1128. </div>
  1129. <!-- <div v-if="tooC == 5">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/score.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">量规评分</div>
  1136. </div> -->
  1137. <div v-if="tooC == 10">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/thirdToolList/time.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">倒计时</div>
  1144. </div>
  1145. <div v-if="tooC == 15">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/answer.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">问答</div>
  1152. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1153. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1154. 分析
  1155. </div>
  1156. </div>
  1157. <div v-if="tooC == 26">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/courseDesign.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">课程设计</div>
  1164. </div>
  1165. <div v-if="tooC == 18">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">训练服务器</div>
  1172. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1173. style="position: absolute;right: 33px;top: -30px;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 16">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/thirdToolList/work.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">作业提交</div>
  1184. </div>
  1185. <div v-if="tooC == 50">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/plwork.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">批量上传</div>
  1192. </div>
  1193. <div v-if="tooC == 21">
  1194. <img
  1195. @click="addTools(tooC, toolIndex, taskCount)"
  1196. src="../../assets/icon/fourthToolList/program.png"
  1197. alt
  1198. />
  1199. <div style="margin: 5px 0">AIoT Blockly</div>
  1200. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1201. style="position: absolute;right: 33px;top: -30px;">
  1202. 分析
  1203. </div>
  1204. </div>
  1205. <!-- <div v-if="tooC == 22">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/fourthToolList/program.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">AI体验</div>
  1212. </div> -->
  1213. <div v-if="tooC == 23">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AI Python</div>
  1220. </div>
  1221. <div v-if="tooC == 24">
  1222. <img
  1223. @click="addTools(tooC, toolIndex, taskCount)"
  1224. src="../../assets/icon/fourthToolList/AIprogram.png"
  1225. alt
  1226. />
  1227. <div style="margin: 5px 0">AI Blockly</div>
  1228. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1229. style="position: absolute;right: 33px;top: -30px;">
  1230. 分析
  1231. </div>
  1232. </div>
  1233. <div v-if="tooC == 25">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../../assets/icon/thirdToolList/evalua.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">目标管理</div>
  1240. </div>
  1241. <div v-if="tooC == 31">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../../assets/icon/secondToolList/networkPanel.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">数学画板</div>
  1248. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1249. style="position: absolute;right: 33px;top: -30px;">
  1250. 分析
  1251. </div>
  1252. </div>
  1253. <div v-if="tooC == 28">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/secondToolList/translation.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">翻译</div>
  1260. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1261. style="position: absolute;right: 33px;top: -30px;">
  1262. 分析
  1263. </div>
  1264. </div>
  1265. <div v-if="tooC == 37">
  1266. <img
  1267. @click="addTools(tooC, toolIndex, taskCount)"
  1268. src="../../assets/icon/secondToolList/mohe.png"
  1269. alt
  1270. />
  1271. <div style="margin: 5px 0">魔盒识字</div>
  1272. </div>
  1273. <div v-if="tooC == 38">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../../assets/icon/secondToolList/24game.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">24点</div>
  1280. </div>
  1281. <div v-if="tooC == 39">
  1282. <img
  1283. @click="addTools(tooC, toolIndex, taskCount)"
  1284. src="../../assets/icon/secondToolList/GeoGebra.png"
  1285. alt
  1286. />
  1287. <div style="margin: 5px 0">GeoGebra</div>
  1288. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1289. style="position: absolute;right: 33px;top: -30px;">
  1290. 分析
  1291. </div>
  1292. </div>
  1293. <div v-if="tooC == 32">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../../assets/icon/thirdToolList/code.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">源码编辑</div>
  1300. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1301. style="position: absolute;right: 153px;top: -42px;">
  1302. 分析
  1303. </div>
  1304. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1305. style="position: absolute;left: 110px;bottom: 30px;">
  1306. 上传文件
  1307. <input type="file" accept="*" style="display: none"
  1308. @change="beforeUpload1($event, 7, toolIndex)" />
  1309. </div> -->
  1310. </div>
  1311. <div v-if="tooC == 40">
  1312. <img
  1313. @click="addTools(tooC, toolIndex, taskCount)"
  1314. src="../../assets/icon/secondToolList/eval.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">个人评价</div>
  1318. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1319. style="position: absolute;right: 33px;top: -30px;">
  1320. 分析
  1321. </div>
  1322. </div>
  1323. <div v-if="tooC == 41">
  1324. <img
  1325. @click="addTools(tooC, toolIndex, taskCount)"
  1326. src="../../assets/icon/thirdToolList/select.png"
  1327. alt
  1328. />
  1329. <div style="margin: 5px 0">选择匹配</div>
  1330. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1331. style="position: absolute;right: 33px;top: -30px;">
  1332. 分析
  1333. </div>
  1334. </div>
  1335. <div v-if="tooC == 44">
  1336. <img
  1337. @click="addTools(tooC, toolIndex, taskCount)"
  1338. src="../../assets/icon/thirdToolList/hanClass.png"
  1339. alt
  1340. />
  1341. <div style="margin: 5px 0">汉字宫</div>
  1342. </div>
  1343. <div v-if="tooC == 47">
  1344. <img
  1345. @click="addTools(tooC, toolIndex, taskCount)"
  1346. src="../../assets/icon/fourthToolList/conSentences.png"
  1347. alt
  1348. />
  1349. <div style="margin: 5px 0">排序</div>
  1350. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1351. style="position: absolute;right: 33px;top: -30px;">
  1352. 分析
  1353. </div>
  1354. </div>
  1355. <div v-if="tooC == 48">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/fourthToolList/table.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">表格</div>
  1362. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1363. style="position: absolute;right: 33px;top: -30px;">
  1364. 分析
  1365. </div>
  1366. </div>
  1367. <div v-if="tooC == 52">
  1368. <img
  1369. @click="addTools(tooC, toolIndex, taskCount)"
  1370. src="../../assets/icon/fourthToolList/text.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">文档</div>
  1374. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1375. style="position: absolute;right: 33px;top: -30px;">
  1376. 分析
  1377. </div>
  1378. </div>
  1379. <div v-if="tooC == 49">
  1380. <img
  1381. @click="addTools(tooC, toolIndex, taskCount)"
  1382. src="../../assets/icon/fourthToolList/group.png"
  1383. alt
  1384. />
  1385. <div style="margin: 5px 0">学生分组</div>
  1386. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1387. style="position: absolute;right: 33px;top: -30px;">
  1388. 分析
  1389. </div>
  1390. </div>
  1391. <div v-if="tooC == 57">
  1392. <img
  1393. @click="addTools(tooC, toolIndex, taskCount)"
  1394. src="../../assets/icon/fourthToolList/cocopi.png"
  1395. alt
  1396. />
  1397. <div style="margin: 5px 0">CocoPi</div>
  1398. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1399. style="position: absolute;right: 33px;top: -30px;">
  1400. 分析
  1401. </div>
  1402. </div>
  1403. <div v-if="tooC == 58">
  1404. <img
  1405. @click="addTools(tooC, toolIndex, taskCount)"
  1406. src="../../assets/icon/fourthToolList/car.png"
  1407. alt
  1408. />
  1409. <div style="margin: 5px 0">模拟驾驶</div>
  1410. </div>
  1411. <div v-if="tooC == 59">
  1412. <img
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. src="../../assets/icon/fourthToolList/lineSearch.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">路径搜索</div>
  1418. </div>
  1419. <div v-if="tooC == 60">
  1420. <img
  1421. @click="addTools(tooC, toolIndex, taskCount)"
  1422. src="../../assets/icon/fourthToolList/deepLearning.png"
  1423. alt
  1424. />
  1425. <div style="margin: 5px 0">深度学习</div>
  1426. </div>
  1427. <div v-if="tooC == 61">
  1428. <img
  1429. @click="addTools(tooC, toolIndex, taskCount)"
  1430. src="../../assets/icon/fourthToolList/allHistory.png"
  1431. alt
  1432. />
  1433. <div style="margin: 5px 0">全历史</div>
  1434. </div>
  1435. <div v-if="tooC == 62">
  1436. <img
  1437. @click="addTools(tooC, toolIndex, taskCount)"
  1438. src="../../assets/icon/fourthToolList/interVideo.png"
  1439. alt
  1440. />
  1441. <div style="margin: 5px 0">交互视频</div>
  1442. </div>
  1443. <div v-if="tooC == 63">
  1444. <img
  1445. @click="addTools(tooC, toolIndex, taskCount)"
  1446. src="../../assets/icon/fourthToolList/Wood.png"
  1447. alt
  1448. />
  1449. <div style="margin: 5px 0">海龟编程</div>
  1450. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1451. style="position: absolute;right: 33px;top: -30px;">
  1452. 分析
  1453. </div>
  1454. </div>
  1455. <div v-if="tooC == 71">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../../assets/icon/fourthToolList/chatgpt.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">AI智能体</div>
  1462. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1463. style="position: absolute;right: 33px;top: -30px;">
  1464. 分析
  1465. </div>
  1466. </div>
  1467. <div v-if="tooC == 72">
  1468. <img
  1469. style="height: 85px;object-fit: cover;"
  1470. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1471. @click="addTools(tooC, toolIndex, taskCount)"
  1472. :src="tool.appJson.json.icon"
  1473. alt
  1474. />
  1475. <img
  1476. v-else
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/firstToolList/appStore.png"
  1479. alt
  1480. />
  1481. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1482. <!-- content to trigger tooltip here -->
  1483. <div class="Ovh">
  1484. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1485. </div>
  1486. </el-tooltip>
  1487. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1488. style="position: absolute;right: 33px;top: -30px;">
  1489. 分析
  1490. </div>
  1491. </div>
  1492. <div v-if="tooC == 65">
  1493. <img
  1494. @click="addTools(tooC, toolIndex, taskCount)"
  1495. src="../../assets/icon/firstToolList/pickPeople.png"
  1496. alt
  1497. />
  1498. <div style="margin: 5px 0">挑人</div>
  1499. </div>
  1500. <div v-if="tooC == 66">
  1501. <img
  1502. @click="addTools(tooC, toolIndex, taskCount)"
  1503. src="../../assets/icon/secondToolList/formulaEdi.png"
  1504. alt
  1505. />
  1506. <div style="margin: 5px 0">公式编辑</div>
  1507. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1508. style="position: absolute;right: 33px;top: -30px;">
  1509. 分析
  1510. </div>
  1511. </div>
  1512. <div v-if="tooC == 67">
  1513. <img
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. src="../../assets/icon/secondToolList/molStr.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">分子结构</div>
  1519. </div>
  1520. <div v-if="tooC == 68">
  1521. <img
  1522. @click="addTools(tooC, toolIndex, taskCount)"
  1523. src="../../assets/icon/secondToolList/timeAxis.png"
  1524. alt
  1525. />
  1526. <div style="margin: 5px 0">时间轴</div>
  1527. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1528. style="position: absolute;right: 33px;top: -30px;">
  1529. 分析
  1530. </div> -->
  1531. </div>
  1532. <div v-if="tooC == 69">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/secondToolList/english.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">英语写作</div>
  1539. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1540. style="position: absolute;right: 33px;top: -30px;">
  1541. 分析
  1542. </div>
  1543. </div>
  1544. <div v-if="tooC == 70">
  1545. <img
  1546. @click="addTools(tooC, toolIndex, taskCount)"
  1547. src="../../assets/icon/thirdToolList/englishVoice.png"
  1548. alt
  1549. />
  1550. <div style="margin: 5px 0">英语口语</div>
  1551. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1552. style="position: absolute;right: 33px;top: -30px;">
  1553. 分析
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. </div>
  1559. <div
  1560. class="tooldetail"
  1561. v-if="tool.toolDetail != ''"
  1562. :class="{
  1563. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1564. }"
  1565. >
  1566. <!-- <div class="toolTitle">工具描述</div> -->
  1567. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1568. <div
  1569. style="height:100%;"
  1570. v-html="contentConvent(tool.toolDetail)"
  1571. v-if="toolDetailIndex != toolIndex"
  1572. ></div>
  1573. <div v-else @click.stop="" style="height:100%;">
  1574. <textarea
  1575. @change="
  1576. () => {
  1577. $forceUpdate();
  1578. }
  1579. "
  1580. class="checkTextArea"
  1581. rows="3"
  1582. v-autoHeight="70"
  1583. type="text"
  1584. placeholder="请输入任务描述"
  1585. v-model="updateToolDetailInner"
  1586. ></textarea>
  1587. </div>
  1588. </div>
  1589. <el-button
  1590. type="primary"
  1591. v-if="tool.tool[0] == 32"
  1592. style="position: absolute; right: 30px; top: -45px"
  1593. @click="addImg($event)"
  1594. >上传作业<input
  1595. type="file"
  1596. accept="*"
  1597. style="display: none"
  1598. @change="beforeUpload1($event, 7, toolIndex)"
  1599. /></el-button>
  1600. <el-button
  1601. type="primary"
  1602. v-if="tool.tool[0] == 15"
  1603. style="position: absolute; right: 30px; top: -45px"
  1604. @click="openWordCloud(toolIndex)"
  1605. >生成词云</el-button
  1606. >
  1607. <el-button
  1608. type="primary"
  1609. v-if="
  1610. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1611. "
  1612. style="position: absolute; right: 30px; top: -45px"
  1613. @click="uploadWorks(toolIndex)"
  1614. >导出作业</el-button
  1615. >
  1616. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1617. position: absolute;
  1618. right: 30px;
  1619. transform: translateY(-130%);
  1620. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1621. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1622. </div>
  1623. <div
  1624. v-if="
  1625. tType &&
  1626. tType == 2 &&
  1627. !sIsOpen &&
  1628. tool.tool.indexOf(16) != -1
  1629. "
  1630. class="worksBox"
  1631. >
  1632. <div
  1633. class="zuoyeYulan"
  1634. v-if="workStudent[toolIndex].length > 0"
  1635. >
  1636. <span class="worksTitle">作业预览</span>
  1637. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1638. </div>
  1639. <div
  1640. class="worksDetailBox"
  1641. v-if="workStudent[toolIndex].length > 0"
  1642. >
  1643. <div
  1644. class="works"
  1645. style="
  1646. width: 200px;
  1647. height: 140px;
  1648. margin: 10px 10px 10px 0;
  1649. box-shadow: 0 0 6px 1px #dfdada;
  1650. "
  1651. v-for="(w, wIndex) in workStudent[toolIndex]"
  1652. :key="wIndex"
  1653. >
  1654. <div class="workImg" v-if="w.type == 0">
  1655. <img
  1656. :src="w.works"
  1657. @click="previewImg(w.works, w)"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <div
  1683. class="stuLookScore"
  1684. v-if="
  1685. w.userid == userid ||
  1686. (tType == 1 &&
  1687. courseDetail.state == 6 &&
  1688. ((chapInfoList[courseType].chapterInfo[0]
  1689. .taskJson[taskCount].eList &&
  1690. chapInfoList[courseType].chapterInfo[0]
  1691. .taskJson[taskCount].eList.length) ||
  1692. (tool.eList && tool.eList.length)))
  1693. "
  1694. >
  1695. <el-popover
  1696. placement="top"
  1697. width="318"
  1698. trigger="hover"
  1699. >
  1700. <markScore
  1701. :loading="AIloading[toolIndex][wIndex].loading"
  1702. :markScoreVisible="markScoreVisible"
  1703. :ref="`markSco${toolIndex}${wIndex}`"
  1704. @updateLoading="updateLoading"
  1705. @updateDocSco="updateDocSco"
  1706. @refreshOther="refreshOther"
  1707. @markScoreDig="markScoreDig"
  1708. :tool="tool"
  1709. :wIndex="wIndex"
  1710. :scoCon="w"
  1711. :toolIndex="toolIndex"
  1712. :key="refreshKey"
  1713. :stage="courseType"
  1714. :task="taskCount"
  1715. :scoTit="
  1716. chapInfoList[courseType].chapterInfo[0]
  1717. .taskJson[taskCount].eList
  1718. "
  1719. >
  1720. </markScore>
  1721. <div
  1722. @click="
  1723. markScoreDig2(
  1724. w.sName,
  1725. worksStudent,
  1726. w.userid,
  1727. toolIndex,
  1728. chapInfoList[courseType].chapterInfo[0]
  1729. .taskJson[taskCount].eList,
  1730. AIloading[toolIndex][wIndex].loading,
  1731. tool
  1732. )
  1733. "
  1734. slot="reference"
  1735. >
  1736. <span v-if="AIloading[toolIndex][wIndex].sco">
  1737. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1738. </span>
  1739. <span v-else>
  1740. 评分
  1741. </span>
  1742. </div>
  1743. </el-popover>
  1744. </div>
  1745. <img
  1746. class="deleteImg"
  1747. src="../../assets/deleteworks.png"
  1748. v-if="
  1749. w.userid == userid || tType == 1 || tType == 4
  1750. "
  1751. @click.stop="deleteWorks(w.wid)"
  1752. alt
  1753. />
  1754. </div>
  1755. <div class="workImg" v-if="w.type == 1">
  1756. <img :src="word" @click="openFile(w.works)" alt />
  1757. <div
  1758. class="answerScore"
  1759. v-if="w.score"
  1760. @click.stop="openScore(w)"
  1761. :class="{
  1762. rightW:
  1763. w.userid == userid || tType == 1 || tType == 4
  1764. }"
  1765. >
  1766. {{ JSON.parse(w.score).wScore }}分
  1767. </div>
  1768. <div
  1769. class="answerScore"
  1770. @click.stop="openScore(w)"
  1771. v-else-if="courseDetail.userid == userid"
  1772. :class="{
  1773. rightW:
  1774. w.userid == userid || tType == 1 || tType == 4
  1775. }"
  1776. >
  1777. 评分
  1778. </div>
  1779. <div
  1780. class="stuLookScore"
  1781. v-if="
  1782. w.userid == userid ||
  1783. (tType == 1 &&
  1784. courseDetail.state == 6 &&
  1785. ((chapInfoList[courseType].chapterInfo[0]
  1786. .taskJson[taskCount].eList &&
  1787. chapInfoList[courseType].chapterInfo[0]
  1788. .taskJson[taskCount].eList.length) ||
  1789. (tool.eList && tool.eList.length)))
  1790. "
  1791. >
  1792. <el-popover
  1793. placement="top"
  1794. width="318"
  1795. trigger="hover"
  1796. >
  1797. <markScore
  1798. :loading="AIloading[toolIndex][wIndex].loading"
  1799. :markScoreVisible="markScoreVisible"
  1800. :ref="`markSco${toolIndex}${wIndex}`"
  1801. @updateLoading="updateLoading"
  1802. @updateDocSco="updateDocSco"
  1803. @refreshOther="refreshOther"
  1804. @markScoreDig="markScoreDig"
  1805. :tool="tool"
  1806. :wIndex="wIndex"
  1807. :scoCon="w"
  1808. :toolIndex="toolIndex"
  1809. :key="refreshKey"
  1810. :stage="courseType"
  1811. :task="taskCount"
  1812. :scoTit="
  1813. chapInfoList[courseType].chapterInfo[0]
  1814. .taskJson[taskCount].eList
  1815. "
  1816. >
  1817. </markScore>
  1818. <div
  1819. @click="
  1820. markScoreDig2(
  1821. w.sName,
  1822. worksStudent,
  1823. w.userid,
  1824. toolIndex,
  1825. chapInfoList[courseType].chapterInfo[0]
  1826. .taskJson[taskCount].eList,
  1827. AIloading[toolIndex][wIndex].loading,
  1828. tool
  1829. )
  1830. "
  1831. slot="reference"
  1832. >
  1833. <span v-if="AIloading[toolIndex][wIndex].sco">
  1834. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1835. </span>
  1836. <span v-else>
  1837. 评分
  1838. </span>
  1839. </div>
  1840. </el-popover>
  1841. </div>
  1842. <img
  1843. class="deleteImg"
  1844. src="../../assets/deleteworks.png"
  1845. v-if="
  1846. w.userid == userid || tType == 1 || tType == 4
  1847. "
  1848. @click.stop="deleteWorks(w.wid)"
  1849. alt
  1850. />
  1851. </div>
  1852. <div class="workImg" v-if="w.type == 3">
  1853. <img
  1854. style="cursor: pointer"
  1855. :src="video"
  1856. @click="openVideo(w)"
  1857. alt
  1858. />
  1859. <div
  1860. class="answerScore"
  1861. v-if="w.score"
  1862. @click.stop="openScore(w)"
  1863. :class="{
  1864. rightW:
  1865. w.userid == userid || tType == 1 || tType == 4
  1866. }"
  1867. >
  1868. {{ JSON.parse(w.score).wScore }}分
  1869. </div>
  1870. <div
  1871. class="answerScore"
  1872. @click.stop="openScore(w)"
  1873. v-else-if="courseDetail.userid == userid"
  1874. :class="{
  1875. rightW:
  1876. w.userid == userid || tType == 1 || tType == 4
  1877. }"
  1878. >
  1879. 评分
  1880. </div>
  1881. <div
  1882. class="stuLookScore"
  1883. v-if="
  1884. w.userid == userid ||
  1885. (tType == 1 &&
  1886. courseDetail.state == 6 &&
  1887. ((chapInfoList[courseType].chapterInfo[0]
  1888. .taskJson[taskCount].eList &&
  1889. chapInfoList[courseType].chapterInfo[0]
  1890. .taskJson[taskCount].eList.length) ||
  1891. (tool.eList && tool.eList.length)))
  1892. "
  1893. >
  1894. <el-popover
  1895. placement="top"
  1896. width="318"
  1897. trigger="hover"
  1898. >
  1899. <markScore
  1900. :loading="AIloading[toolIndex][wIndex].loading"
  1901. :markScoreVisible="markScoreVisible"
  1902. :ref="`markSco${toolIndex}${wIndex}`"
  1903. @updateLoading="updateLoading"
  1904. @updateDocSco="updateDocSco"
  1905. @refreshOther="refreshOther"
  1906. @markScoreDig="markScoreDig"
  1907. :tool="tool"
  1908. :wIndex="wIndex"
  1909. :scoCon="w"
  1910. :toolIndex="toolIndex"
  1911. :key="refreshKey"
  1912. :stage="courseType"
  1913. :task="taskCount"
  1914. :scoTit="
  1915. chapInfoList[courseType].chapterInfo[0]
  1916. .taskJson[taskCount].eList
  1917. "
  1918. >
  1919. </markScore>
  1920. <div
  1921. @click="
  1922. markScoreDig2(
  1923. w.sName,
  1924. worksStudent,
  1925. w.userid,
  1926. toolIndex,
  1927. chapInfoList[courseType].chapterInfo[0]
  1928. .taskJson[taskCount].eList,
  1929. AIloading[toolIndex][wIndex].loading,
  1930. tool
  1931. )
  1932. "
  1933. slot="reference"
  1934. >
  1935. <span v-if="AIloading[toolIndex][wIndex].sco">
  1936. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1937. </span>
  1938. <span v-else>
  1939. 评分
  1940. </span>
  1941. </div>
  1942. </el-popover>
  1943. </div>
  1944. <img
  1945. class="deleteImg"
  1946. src="../../assets/deleteworks.png"
  1947. v-if="
  1948. w.userid == userid || tType == 1 || tType == 4
  1949. "
  1950. @click.stop="deleteWorks(w.wid)"
  1951. alt
  1952. />
  1953. </div>
  1954. <div class="workImg" v-if="w.type == 12">
  1955. <img
  1956. style="cursor: pointer"
  1957. :src="word2"
  1958. @click="downloadFile(w.works)"
  1959. alt
  1960. />
  1961. <div
  1962. class="answerScore"
  1963. v-if="w.score"
  1964. @click.stop="openScore(w)"
  1965. :class="{
  1966. rightW:
  1967. w.userid == userid || tType == 1 || tType == 4
  1968. }"
  1969. >
  1970. {{ JSON.parse(w.score).wScore }}分
  1971. </div>
  1972. <div
  1973. class="answerScore"
  1974. @click.stop="openScore(w)"
  1975. v-else-if="courseDetail.userid == userid"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4
  1979. }"
  1980. >
  1981. 评分
  1982. </div>
  1983. <div
  1984. class="stuLookScore"
  1985. v-if="
  1986. w.userid == userid ||
  1987. (tType == 1 &&
  1988. courseDetail.state == 6 &&
  1989. ((chapInfoList[courseType].chapterInfo[0]
  1990. .taskJson[taskCount].eList &&
  1991. chapInfoList[courseType].chapterInfo[0]
  1992. .taskJson[taskCount].eList.length) ||
  1993. (tool.eList && tool.eList.length)))
  1994. "
  1995. >
  1996. <el-popover
  1997. placement="top"
  1998. width="318"
  1999. trigger="hover"
  2000. >
  2001. <markScore
  2002. :loading="AIloading[toolIndex][wIndex].loading"
  2003. :markScoreVisible="markScoreVisible"
  2004. :ref="`markSco${toolIndex}${wIndex}`"
  2005. @updateLoading="updateLoading"
  2006. @updateDocSco="updateDocSco"
  2007. @refreshOther="refreshOther"
  2008. @markScoreDig="markScoreDig"
  2009. :tool="tool"
  2010. :wIndex="wIndex"
  2011. :scoCon="w"
  2012. :toolIndex="toolIndex"
  2013. :key="refreshKey"
  2014. :stage="courseType"
  2015. :task="taskCount"
  2016. :scoTit="
  2017. chapInfoList[courseType].chapterInfo[0]
  2018. .taskJson[taskCount].eList
  2019. "
  2020. >
  2021. </markScore>
  2022. <div
  2023. @click="
  2024. markScoreDig2(
  2025. w.sName,
  2026. worksStudent,
  2027. w.userid,
  2028. toolIndex,
  2029. chapInfoList[courseType].chapterInfo[0]
  2030. .taskJson[taskCount].eList,
  2031. AIloading[toolIndex][wIndex].loading,
  2032. tool
  2033. )
  2034. "
  2035. slot="reference"
  2036. >
  2037. <span v-if="AIloading[toolIndex][wIndex].sco">
  2038. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2039. </span>
  2040. <span v-else>
  2041. 评分
  2042. </span>
  2043. </div>
  2044. </el-popover>
  2045. </div>
  2046. <img
  2047. class="deleteImg"
  2048. src="../../assets/deleteworks.png"
  2049. v-if="
  2050. w.userid == userid || tType == 1 || tType == 4
  2051. "
  2052. @click.stop="deleteWorks(w.wid)"
  2053. alt
  2054. />
  2055. </div>
  2056. <div class="worksName">
  2057. <div>{{ w.sName }}</div>
  2058. </div>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. <div
  2063. v-if="
  2064. tType &&
  2065. tType == 2 &&
  2066. !sIsOpen &&
  2067. tool.tool.indexOf(32) != -1
  2068. "
  2069. class="worksBox"
  2070. >
  2071. <div
  2072. class="zuoyeYulan"
  2073. v-if="workStudent[toolIndex].length > 0"
  2074. >
  2075. <span class="worksTitle">作业预览</span>
  2076. </div>
  2077. <div
  2078. class="worksDetailBox"
  2079. v-if="workStudent[toolIndex].length > 0"
  2080. >
  2081. <div
  2082. class="works"
  2083. style="
  2084. width: 200px;
  2085. height: 140px;
  2086. margin: 10px 10px 10px 0;
  2087. box-shadow: 0 0 6px 1px #dfdada;
  2088. "
  2089. v-for="(w, wIndex) in workStudent[toolIndex]"
  2090. :key="wIndex"
  2091. >
  2092. <div class="workImg">
  2093. <img
  2094. :src="word2"
  2095. @click="downloadFile(w.works)"
  2096. alt
  2097. />
  2098. <div
  2099. class="answerScore"
  2100. v-if="w.score"
  2101. @click.stop="openScore(w)"
  2102. :class="{
  2103. rightW:
  2104. w.userid == userid || tType == 1 || tType == 4
  2105. }"
  2106. >
  2107. {{ JSON.parse(w.score).wScore }}分
  2108. </div>
  2109. <div
  2110. class="answerScore"
  2111. @click.stop="openScore(w)"
  2112. v-else-if="courseDetail.userid == userid"
  2113. :class="{
  2114. rightW:
  2115. w.userid == userid || tType == 1 || tType == 4
  2116. }"
  2117. >
  2118. 评分
  2119. </div>
  2120. <img
  2121. class="deleteImg"
  2122. src="../../assets/deleteworks.png"
  2123. v-if="
  2124. w.userid == userid || tType == 1 || tType == 4
  2125. "
  2126. @click.stop="deleteWorks(w.wid)"
  2127. alt
  2128. />
  2129. </div>
  2130. <div class="worksName">
  2131. <div>{{ w.sName }}</div>
  2132. </div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. <div
  2137. v-if="
  2138. tType &&
  2139. tType == 2 &&
  2140. !sIsOpen &&
  2141. tool.tool.indexOf(57) != -1
  2142. "
  2143. class="worksBox"
  2144. >
  2145. <div
  2146. class="zuoyeYulan"
  2147. v-if="workStudent[toolIndex].length > 0"
  2148. >
  2149. <span class="worksTitle">作业预览</span>
  2150. </div>
  2151. <div
  2152. class="worksDetailBox"
  2153. v-if="workStudent[toolIndex].length > 0"
  2154. >
  2155. <div
  2156. class="works"
  2157. style="
  2158. width: 200px;
  2159. height: 140px;
  2160. margin: 10px 10px 10px 0;
  2161. box-shadow: 0 0 6px 1px #dfdada;
  2162. "
  2163. v-for="(w, wIndex) in workStudent[toolIndex]"
  2164. :key="wIndex"
  2165. >
  2166. <div class="workImg">
  2167. <img
  2168. :src="word2"
  2169. @click="downloadFile(w.works)"
  2170. v-if="w.type == 12"
  2171. alt
  2172. />
  2173. <img
  2174. :src="word2"
  2175. @click="
  2176. openCocoPi(57, toolIndex, w.userid, w.sName)
  2177. "
  2178. v-else-if="w.type == 15"
  2179. alt
  2180. />
  2181. <div
  2182. class="answerScore"
  2183. v-if="w.score"
  2184. @click.stop="openScore(w)"
  2185. :class="{
  2186. rightW:
  2187. w.userid == userid || tType == 1 || tType == 4
  2188. }"
  2189. >
  2190. {{ JSON.parse(w.score).wScore }}分
  2191. </div>
  2192. <div
  2193. class="answerScore"
  2194. @click.stop="openScore(w)"
  2195. v-else-if="courseDetail.userid == userid"
  2196. :class="{
  2197. rightW:
  2198. w.userid == userid || tType == 1 || tType == 4
  2199. }"
  2200. >
  2201. 评分
  2202. </div>
  2203. <img
  2204. class="deleteImg"
  2205. src="../../assets/deleteworks.png"
  2206. v-if="
  2207. w.userid == userid || tType == 1 || tType == 4
  2208. "
  2209. @click.stop="deleteWorks(w.wid)"
  2210. alt
  2211. />
  2212. </div>
  2213. <div class="worksName">
  2214. <div>{{ w.sName }}</div>
  2215. </div>
  2216. </div>
  2217. </div>
  2218. </div>
  2219. <div
  2220. v-if="
  2221. tType &&
  2222. tType == 2 &&
  2223. !sIsOpen &&
  2224. tool.tool.indexOf(4) != -1
  2225. "
  2226. class="worksBox"
  2227. >
  2228. <div
  2229. class="zuoyeYulan"
  2230. v-if="workStudent[toolIndex].length > 0"
  2231. >
  2232. <span class="worksTitle">作业预览</span>
  2233. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2234. </div>
  2235. <div
  2236. class="worksDetailBox"
  2237. v-if="workStudent[toolIndex].length > 0"
  2238. >
  2239. <div
  2240. class="isWorksName2"
  2241. v-for="(w, wIndex) in workStudent[toolIndex]"
  2242. :key="wIndex"
  2243. @click="
  2244. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2245. "
  2246. >
  2247. {{ w.sName }}
  2248. <img
  2249. class="deleteImg deleteImg2"
  2250. src="../../assets/deleteworks.png"
  2251. v-if="w.userid == userid || tType == 1 || tType == 4"
  2252. @click.stop="deleteWorks(w.wid)"
  2253. alt
  2254. />
  2255. </div>
  2256. <!-- <div
  2257. class="works"
  2258. style="
  2259. width: 200px;
  2260. height: 140px;
  2261. border-radius: 10px;
  2262. box-shadow: 0 0 6px 1px #dfdada;
  2263. overflow: hidden;
  2264. "
  2265. v-for="(w, wIndex) in workStudent[toolIndex]"
  2266. :key="wIndex"
  2267. >
  2268. <div class="workImg">
  2269. <img
  2270. src="../../assets/icon/works/noImg.png"
  2271. @click="
  2272. openTools(
  2273. 4,
  2274. toolIndex,
  2275. taskCount,
  2276. w.works,
  2277. w.sName
  2278. )
  2279. "
  2280. alt
  2281. />
  2282. </div>
  2283. <div class="worksName">
  2284. <div>{{ w.sName }}</div>
  2285. <div>{{ w.time }}</div>
  2286. </div>
  2287. </div> -->
  2288. </div>
  2289. </div>
  2290. <div
  2291. v-if="
  2292. tType &&
  2293. ((tType == 2 && sIsOpen == true) ||
  2294. tType == 1 ||
  2295. tType == 4) &&
  2296. tool.tool.indexOf(62) != -1
  2297. "
  2298. class="worksBox"
  2299. >
  2300. <div
  2301. class="zuoyeYulan"
  2302. v-if="
  2303. worksStudent.length &&
  2304. worksStudent[toolIndex].length > 0
  2305. "
  2306. >
  2307. <div class="worksTop">
  2308. <div>作业预览</div>
  2309. <div
  2310. class="corOpen"
  2311. @click="contract(toolIndex)"
  2312. v-if="
  2313. isCloseList[toolIndex].isCloseBoolean &&
  2314. isCloseList[toolIndex].isClose == 0
  2315. "
  2316. >
  2317. 折叠
  2318. </div>
  2319. <div
  2320. class="corOpen"
  2321. @click="contract(toolIndex)"
  2322. v-if="isCloseList[toolIndex].isClose == 1"
  2323. >
  2324. 展开
  2325. </div>
  2326. </div>
  2327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2328. </div>
  2329. <div>
  2330. <div
  2331. :id="'tool-' + toolIndex"
  2332. :style="{
  2333. height:
  2334. isCloseList[toolIndex].isClose == 1
  2335. ? retrnToolHeight('tool-' + toolIndex)
  2336. : 'auto',
  2337. overflow:
  2338. isCloseList[toolIndex].isClose == 1
  2339. ? 'hidden'
  2340. : 'unset'
  2341. }"
  2342. class="worksDetailBox"
  2343. v-if="
  2344. worksStudent.length &&
  2345. worksStudent[toolIndex].length > 0
  2346. "
  2347. >
  2348. <div
  2349. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2350. :key="wIndex"
  2351. class="isWorksName2"
  2352. @click="
  2353. openTools(
  2354. 62,
  2355. toolIndex,
  2356. taskCount,
  2357. w.works,
  2358. w.sName
  2359. )
  2360. "
  2361. >
  2362. {{ w.sName }}
  2363. <img
  2364. class="deleteImg deleteImg2"
  2365. src="../../assets/deleteworks.png"
  2366. v-if="
  2367. w.userid == userid || tType == 1 || tType == 4
  2368. "
  2369. @click.stop="deleteWorks(w.wid)"
  2370. alt
  2371. />
  2372. </div>
  2373. </div>
  2374. </div>
  2375. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2376. 未提交
  2377. </div>
  2378. <div
  2379. class="noWorksS"
  2380. v-if="noWorksS && noWorksS[toolIndex].length"
  2381. >
  2382. <div
  2383. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2384. :key="sIndex"
  2385. class="noWorksName"
  2386. >
  2387. <el-tooltip
  2388. effect="dark"
  2389. :content="s.student"
  2390. placement="top"
  2391. >
  2392. <span>{{ s.student }}</span>
  2393. </el-tooltip>
  2394. </div>
  2395. </div>
  2396. </div>
  2397. <div
  2398. v-if="
  2399. tType &&
  2400. tType == 2 &&
  2401. !sIsOpen &&
  2402. tool.tool.indexOf(62) != -1
  2403. "
  2404. class="worksBox"
  2405. >
  2406. <div
  2407. class="zuoyeYulan"
  2408. v-if="workStudent[toolIndex].length > 0"
  2409. >
  2410. <span class="worksTitle">作业预览</span>
  2411. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2412. </div>
  2413. <div
  2414. class="worksDetailBox"
  2415. v-if="workStudent[toolIndex].length > 0"
  2416. >
  2417. <div
  2418. class="isWorksName2"
  2419. v-for="(w, wIndex) in workStudent[toolIndex]"
  2420. :key="wIndex"
  2421. @click="
  2422. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2423. "
  2424. >
  2425. {{ w.sName }}
  2426. <img
  2427. class="deleteImg deleteImg2"
  2428. src="../../assets/deleteworks.png"
  2429. v-if="w.userid == userid || tType == 1 || tType == 4"
  2430. @click.stop="deleteWorks(w.wid)"
  2431. alt
  2432. />
  2433. </div>
  2434. </div>
  2435. </div>
  2436. <div
  2437. v-if="
  2438. tType &&
  2439. tType == 2 &&
  2440. !sIsOpen &&
  2441. tool.tool.indexOf(45) != -1
  2442. "
  2443. class="worksBox"
  2444. >
  2445. <div
  2446. class="zuoyeYulan"
  2447. v-if="workStudent[toolIndex].length > 0"
  2448. >
  2449. <span class="worksTitle">作业预览</span>
  2450. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2451. </div>
  2452. <div
  2453. class="worksDetailBox"
  2454. v-if="workStudent[toolIndex].length > 0"
  2455. >
  2456. <div
  2457. class="isWorksName2"
  2458. v-for="(w, wIndex) in workStudent[toolIndex]"
  2459. :key="wIndex"
  2460. @click="
  2461. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2462. "
  2463. >
  2464. {{ w.sName }}
  2465. <img
  2466. class="deleteImg deleteImg2"
  2467. src="../../assets/deleteworks.png"
  2468. v-if="w.userid == userid || tType == 1 || tType == 4"
  2469. @click.stop="deleteWorks(w.wid)"
  2470. alt
  2471. />
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div
  2476. v-if="
  2477. tType &&
  2478. tType == 2 &&
  2479. !sIsOpen &&
  2480. tool.tool.indexOf(69) != -1
  2481. "
  2482. class="worksBox"
  2483. >
  2484. <div
  2485. class="zuoyeYulan"
  2486. v-if="workStudent[toolIndex].length > 0"
  2487. >
  2488. <span class="worksTitle">作业预览</span>
  2489. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2490. </div>
  2491. <div
  2492. class="worksDetailBox"
  2493. v-if="workStudent[toolIndex].length > 0"
  2494. >
  2495. <div
  2496. class="isWorksName2"
  2497. v-for="(w, wIndex) in workStudent[toolIndex]"
  2498. :key="wIndex"
  2499. @click="
  2500. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2501. "
  2502. >
  2503. {{ w.sName }}
  2504. <img
  2505. class="deleteImg deleteImg2"
  2506. src="../../assets/deleteworks.png"
  2507. v-if="w.userid == userid || tType == 1 || tType == 4"
  2508. @click.stop="deleteWorks(w.wid)"
  2509. alt
  2510. />
  2511. </div>
  2512. </div>
  2513. </div>
  2514. <div
  2515. v-if="
  2516. tType &&
  2517. tType == 2 &&
  2518. !sIsOpen &&
  2519. tool.tool.indexOf(15) != -1
  2520. "
  2521. class="worksBox"
  2522. >
  2523. <div
  2524. class="zuoyeYulan"
  2525. v-if="workStudent[toolIndex].length > 0"
  2526. >
  2527. <span class="worksTitle">作业预览</span>
  2528. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2529. </div>
  2530. <div
  2531. class="worksDetailBox"
  2532. v-if="workStudent[toolIndex].length > 0"
  2533. >
  2534. <div
  2535. class="works"
  2536. v-for="(w, wIndex) in workStudent[toolIndex]"
  2537. :key="wIndex"
  2538. >
  2539. <div class="workImg">
  2540. <!-- <img
  2541. src="../../assets/icon/works/noImg.png"
  2542. @click="openTools(15, toolIndex, taskCount, w.works)"
  2543. alt=""
  2544. />-->
  2545. <div class="answerBg">
  2546. <!-- <div>{{ w.sName }}</div> -->
  2547. <el-tooltip
  2548. class="item"
  2549. effect="light"
  2550. :content="JSON.parse(w.works)[0].answer"
  2551. placement="top"
  2552. >
  2553. <div class="answerContent">
  2554. {{ JSON.parse(w.works)[0].answer }}
  2555. </div>
  2556. </el-tooltip>
  2557. <div
  2558. class="answerScore"
  2559. v-if="w.score"
  2560. @click.stop="openScore(w)"
  2561. :class="{
  2562. rightW:
  2563. w.userid == userid || tType == 1 || tType == 4
  2564. }"
  2565. >
  2566. {{ JSON.parse(w.score).wScore }}分
  2567. </div>
  2568. <div
  2569. class="answerScore"
  2570. @click.stop="openScore(w)"
  2571. v-else-if="courseDetail.userid == userid"
  2572. :class="{
  2573. rightW:
  2574. w.userid == userid || tType == 1 || tType == 4
  2575. }"
  2576. >
  2577. 评分
  2578. </div>
  2579. <img
  2580. class="deleteImg"
  2581. src="../../assets/deleteworks.png"
  2582. v-if="
  2583. w.userid == userid || tType == 1 || tType == 4
  2584. "
  2585. @click.stop="deleteWorks(w.wid)"
  2586. alt
  2587. />
  2588. </div>
  2589. <div class="comment">
  2590. <div class="worksName">
  2591. <div>{{ w.sName }}</div>
  2592. </div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. </div>
  2598. <div
  2599. v-if="
  2600. tType &&
  2601. tType == 2 &&
  2602. !sIsOpen &&
  2603. tool.tool.indexOf(1) != -1
  2604. "
  2605. class="worksBox"
  2606. >
  2607. <div
  2608. class="zuoyeYulan"
  2609. v-if="workStudent[toolIndex].length > 0"
  2610. >
  2611. <span class="worksTitle">作业预览</span>
  2612. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2613. </div>
  2614. <div
  2615. class="worksDetailBox"
  2616. v-if="workStudent[toolIndex].length > 0"
  2617. >
  2618. <div
  2619. class="works"
  2620. style="
  2621. width: 200px;
  2622. height: 140px;
  2623. margin: 10px 10px 10px 0;
  2624. box-shadow: 0 0 6px 1px #dfdada;
  2625. "
  2626. v-for="(w, wIndex) in workStudent[toolIndex]"
  2627. :key="wIndex"
  2628. >
  2629. <div class="workImg">
  2630. <img
  2631. :src="w.works"
  2632. @click="previewImg(w.works, w)"
  2633. alt
  2634. />
  2635. <div
  2636. class="answerScore"
  2637. v-if="w.score"
  2638. @click.stop="openScore(w)"
  2639. :class="{
  2640. rightW:
  2641. w.userid == userid || tType == 1 || tType == 4
  2642. }"
  2643. >
  2644. {{ JSON.parse(w.score).wScore }}分
  2645. </div>
  2646. <div
  2647. class="answerScore"
  2648. @click.stop="openScore(w)"
  2649. v-else-if="courseDetail.userid == userid"
  2650. :class="{
  2651. rightW:
  2652. w.userid == userid || tType == 1 || tType == 4
  2653. }"
  2654. >
  2655. 评分
  2656. </div>
  2657. <div
  2658. class="stuLookScore"
  2659. v-if="
  2660. w.userid == userid ||
  2661. (tType == 1 &&
  2662. courseDetail.state == 6 &&
  2663. ((chapInfoList[courseType].chapterInfo[0]
  2664. .taskJson[taskCount].eList &&
  2665. chapInfoList[courseType].chapterInfo[0]
  2666. .taskJson[taskCount].eList.length) ||
  2667. (tool.eList && tool.eList.length)))
  2668. "
  2669. >
  2670. <el-popover
  2671. placement="top"
  2672. width="318"
  2673. trigger="hover"
  2674. >
  2675. <markScore
  2676. :loading="AIloading[toolIndex][wIndex].loading"
  2677. :markScoreVisible="markScoreVisible"
  2678. :ref="`markSco${toolIndex}${wIndex}`"
  2679. @updateLoading="updateLoading"
  2680. @updateDocSco="updateDocSco"
  2681. @refreshOther="refreshOther"
  2682. @markScoreDig="markScoreDig"
  2683. :tool="tool"
  2684. :wIndex="wIndex"
  2685. :scoCon="w"
  2686. :toolIndex="toolIndex"
  2687. :key="refreshKey"
  2688. :stage="courseType"
  2689. :task="taskCount"
  2690. :scoTit="
  2691. chapInfoList[courseType].chapterInfo[0]
  2692. .taskJson[taskCount].eList
  2693. "
  2694. >
  2695. </markScore>
  2696. <div
  2697. @click="
  2698. markScoreDig2(
  2699. w.sName,
  2700. worksStudent,
  2701. w.userid,
  2702. toolIndex,
  2703. chapInfoList[courseType].chapterInfo[0]
  2704. .taskJson[taskCount].eList,
  2705. AIloading[toolIndex][wIndex].loading,
  2706. tool
  2707. )
  2708. "
  2709. slot="reference"
  2710. >
  2711. <span v-if="AIloading[toolIndex][wIndex].sco">
  2712. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2713. </span>
  2714. <span v-else>
  2715. 评分
  2716. </span>
  2717. </div>
  2718. </el-popover>
  2719. </div>
  2720. <img
  2721. class="deleteImg"
  2722. src="../../assets/deleteworks.png"
  2723. v-if="
  2724. w.userid == userid || tType == 1 || tType == 4
  2725. "
  2726. @click.stop="deleteWorks(w.wid)"
  2727. alt
  2728. />
  2729. </div>
  2730. <div class="worksName">
  2731. <div>{{ w.sName }}</div>
  2732. </div>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. <div
  2737. v-if="
  2738. tType &&
  2739. tType == 2 &&
  2740. !sIsOpen &&
  2741. tool.tool.indexOf(3) != -1
  2742. "
  2743. class="worksBox"
  2744. >
  2745. <div
  2746. class="zuoyeYulan"
  2747. v-if="workStudent[toolIndex].length > 0"
  2748. >
  2749. <span class="worksTitle">作业预览</span>
  2750. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2751. </div>
  2752. <div
  2753. class="worksDetailBox"
  2754. v-if="workStudent[toolIndex].length > 0"
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. box-shadow: 0 0 6px 1px #dfdada;
  2763. "
  2764. v-for="(w, wIndex) in workStudent[toolIndex]"
  2765. :key="wIndex"
  2766. >
  2767. <div class="workImg">
  2768. <img
  2769. :src="w.works"
  2770. @click="previewImg(w.works, w)"
  2771. alt
  2772. />
  2773. <div
  2774. class="answerScore"
  2775. v-if="w.score"
  2776. @click.stop="openScore(w)"
  2777. :class="{
  2778. rightW:
  2779. w.userid == userid || tType == 1 || tType == 4
  2780. }"
  2781. >
  2782. {{ JSON.parse(w.score).wScore }}分
  2783. </div>
  2784. <div
  2785. class="answerScore"
  2786. @click.stop="openScore(w)"
  2787. v-else-if="courseDetail.userid == userid"
  2788. :class="{
  2789. rightW:
  2790. w.userid == userid || tType == 1 || tType == 4
  2791. }"
  2792. >
  2793. 评分
  2794. </div>
  2795. <div
  2796. class="stuLookScore"
  2797. v-if="
  2798. w.userid == userid ||
  2799. (tType == 1 &&
  2800. courseDetail.state == 6 &&
  2801. ((chapInfoList[courseType].chapterInfo[0]
  2802. .taskJson[taskCount].eList &&
  2803. chapInfoList[courseType].chapterInfo[0]
  2804. .taskJson[taskCount].eList.length) ||
  2805. (tool.eList && tool.eList.length)))
  2806. "
  2807. >
  2808. <el-popover
  2809. placement="top"
  2810. width="318"
  2811. trigger="hover"
  2812. >
  2813. <markScore
  2814. :loading="AIloading[toolIndex][wIndex].loading"
  2815. :markScoreVisible="markScoreVisible"
  2816. :ref="`markSco${toolIndex}${wIndex}`"
  2817. @updateLoading="updateLoading"
  2818. @updateDocSco="updateDocSco"
  2819. @refreshOther="refreshOther"
  2820. @markScoreDig="markScoreDig"
  2821. :tool="tool"
  2822. :wIndex="wIndex"
  2823. :scoCon="w"
  2824. :toolIndex="toolIndex"
  2825. :key="refreshKey"
  2826. :stage="courseType"
  2827. :task="taskCount"
  2828. :scoTit="
  2829. chapInfoList[courseType].chapterInfo[0]
  2830. .taskJson[taskCount].eList
  2831. "
  2832. >
  2833. </markScore>
  2834. <div
  2835. @click="
  2836. markScoreDig2(
  2837. w.sName,
  2838. worksStudent,
  2839. w.userid,
  2840. toolIndex,
  2841. chapInfoList[courseType].chapterInfo[0]
  2842. .taskJson[taskCount].eList,
  2843. AIloading[toolIndex][wIndex].loading,
  2844. tool
  2845. )
  2846. "
  2847. slot="reference"
  2848. >
  2849. <span v-if="AIloading[toolIndex][wIndex].sco">
  2850. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2851. </span>
  2852. <span v-else>
  2853. 评分
  2854. </span>
  2855. </div>
  2856. </el-popover>
  2857. </div>
  2858. <img
  2859. class="deleteImg"
  2860. src="../../assets/deleteworks.png"
  2861. v-if="
  2862. w.userid == userid || tType == 1 || tType == 4
  2863. "
  2864. @click.stop="deleteWorks(w.wid)"
  2865. alt
  2866. />
  2867. </div>
  2868. <div class="worksName">
  2869. <div>{{ w.sName }}</div>
  2870. </div>
  2871. </div>
  2872. </div>
  2873. </div>
  2874. <div
  2875. v-if="
  2876. tType &&
  2877. tType == 2 &&
  2878. !sIsOpen &&
  2879. tool.tool.indexOf(6) != -1
  2880. "
  2881. class="worksBox"
  2882. >
  2883. <div
  2884. class="zuoyeYulan"
  2885. v-if="workStudent[toolIndex].length > 0"
  2886. >
  2887. <span class="worksTitle">作业预览</span>
  2888. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2889. </div>
  2890. <div
  2891. class="worksDetailBox"
  2892. v-if="workStudent[toolIndex].length > 0"
  2893. >
  2894. <div
  2895. class="works"
  2896. style="
  2897. width: 200px;
  2898. height: 140px;
  2899. margin: 10px 10px 10px 0;
  2900. box-shadow: 0 0 6px 1px #dfdada;
  2901. "
  2902. v-for="(w, wIndex) in workStudent[toolIndex]"
  2903. :key="wIndex"
  2904. >
  2905. <div class="workImg">
  2906. <img
  2907. :src="w.works"
  2908. @click="previewImg(w.works, w)"
  2909. alt
  2910. />
  2911. <div
  2912. class="answerScore"
  2913. v-if="w.score"
  2914. @click.stop="openScore(w)"
  2915. :class="{
  2916. rightW:
  2917. w.userid == userid || tType == 1 || tType == 4
  2918. }"
  2919. >
  2920. {{ JSON.parse(w.score).wScore }}分
  2921. </div>
  2922. <div
  2923. class="answerScore"
  2924. @click.stop="openScore(w)"
  2925. v-else-if="courseDetail.userid == userid"
  2926. :class="{
  2927. rightW:
  2928. w.userid == userid || tType == 1 || tType == 4
  2929. }"
  2930. >
  2931. 评分
  2932. </div>
  2933. <img
  2934. class="deleteImg"
  2935. src="../../assets/deleteworks.png"
  2936. v-if="
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. "
  2939. @click.stop="deleteWorks(w.wid)"
  2940. alt
  2941. />
  2942. </div>
  2943. <div class="worksName">
  2944. <div>{{ w.sName }}</div>
  2945. </div>
  2946. </div>
  2947. </div>
  2948. </div>
  2949. <div
  2950. v-if="
  2951. tType &&
  2952. tType == 2 &&
  2953. !sIsOpen &&
  2954. tool.tool.indexOf(7) != -1
  2955. "
  2956. class="worksBox"
  2957. >
  2958. <div
  2959. class="zuoyeYulan"
  2960. v-if="workStudent[toolIndex].length > 0"
  2961. >
  2962. <span class="worksTitle">作业预览</span>
  2963. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2964. </div>
  2965. <div
  2966. class="worksDetailBox"
  2967. v-if="workStudent[toolIndex].length > 0"
  2968. >
  2969. <div
  2970. class="works"
  2971. style="
  2972. width: 200px;
  2973. height: 140px;
  2974. margin: 10px 10px 10px 0;
  2975. box-shadow: 0 0 6px 1px #dfdada;
  2976. "
  2977. v-for="(w, wIndex) in workStudent[toolIndex]"
  2978. :key="wIndex"
  2979. >
  2980. <div class="workImg">
  2981. <img
  2982. :src="w.works"
  2983. @click="previewImg(w.works, w)"
  2984. alt
  2985. />
  2986. <div
  2987. class="answerScore"
  2988. v-if="w.score"
  2989. @click.stop="openScore(w)"
  2990. :class="{
  2991. rightW:
  2992. w.userid == userid || tType == 1 || tType == 4
  2993. }"
  2994. >
  2995. {{ JSON.parse(w.score).wScore }}分
  2996. </div>
  2997. <div
  2998. class="answerScore"
  2999. @click.stop="openScore(w)"
  3000. v-else-if="courseDetail.userid == userid"
  3001. :class="{
  3002. rightW:
  3003. w.userid == userid || tType == 1 || tType == 4
  3004. }"
  3005. >
  3006. 评分
  3007. </div>
  3008. <div
  3009. class="stuLookScore"
  3010. v-if="
  3011. w.userid == userid ||
  3012. (tType == 1 &&
  3013. courseDetail.state == 6 &&
  3014. ((chapInfoList[courseType].chapterInfo[0]
  3015. .taskJson[taskCount].eList &&
  3016. chapInfoList[courseType].chapterInfo[0]
  3017. .taskJson[taskCount].eList.length) ||
  3018. (tool.eList && tool.eList.length)))
  3019. "
  3020. >
  3021. <el-popover
  3022. placement="top"
  3023. width="318"
  3024. trigger="hover"
  3025. >
  3026. <markScore
  3027. :loading="AIloading[toolIndex][wIndex].loading"
  3028. :markScoreVisible="markScoreVisible"
  3029. :ref="`markSco${toolIndex}${wIndex}`"
  3030. @updateLoading="updateLoading"
  3031. @updateDocSco="updateDocSco"
  3032. @refreshOther="refreshOther"
  3033. @markScoreDig="markScoreDig"
  3034. :tool="tool"
  3035. :wIndex="wIndex"
  3036. :scoCon="w"
  3037. :toolIndex="toolIndex"
  3038. :key="refreshKey"
  3039. :stage="courseType"
  3040. :task="taskCount"
  3041. :scoTit="
  3042. chapInfoList[courseType].chapterInfo[0]
  3043. .taskJson[taskCount].eList
  3044. "
  3045. >
  3046. </markScore>
  3047. <div
  3048. @click="
  3049. markScoreDig2(
  3050. w.sName,
  3051. worksStudent,
  3052. w.userid,
  3053. toolIndex,
  3054. chapInfoList[courseType].chapterInfo[0]
  3055. .taskJson[taskCount].eList,
  3056. AIloading[toolIndex][wIndex].loading,
  3057. tool
  3058. )
  3059. "
  3060. slot="reference"
  3061. >
  3062. <span v-if="AIloading[toolIndex][wIndex].sco">
  3063. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3064. </span>
  3065. <span v-else>
  3066. 评分
  3067. </span>
  3068. </div>
  3069. </el-popover>
  3070. </div>
  3071. <img
  3072. class="deleteImg"
  3073. src="../../assets/deleteworks.png"
  3074. v-if="
  3075. w.userid == userid || tType == 1 || tType == 4
  3076. "
  3077. @click.stop="deleteWorks(w.wid)"
  3078. alt
  3079. />
  3080. </div>
  3081. <div class="worksName">
  3082. <div>{{ w.sName }}</div>
  3083. </div>
  3084. </div>
  3085. </div>
  3086. </div>
  3087. <div
  3088. v-if="
  3089. tType &&
  3090. tType == 2 &&
  3091. !sIsOpen &&
  3092. tool.tool.indexOf(26) != -1
  3093. "
  3094. class="worksBox"
  3095. >
  3096. <div
  3097. class="zuoyeYulan"
  3098. v-if="workStudent[toolIndex].length > 0"
  3099. >
  3100. <span class="worksTitle">作业预览</span>
  3101. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3102. </div>
  3103. <div
  3104. class="worksDetailBox"
  3105. v-if="workStudent[toolIndex].length > 0"
  3106. >
  3107. <div
  3108. class="works"
  3109. style="
  3110. width: 200px;
  3111. height: 140px;
  3112. margin: 10px 10px 10px 0;
  3113. box-shadow: 0 0 6px 1px #dfdada;
  3114. "
  3115. v-for="(w, wIndex) in workStudent[toolIndex]"
  3116. :key="wIndex"
  3117. >
  3118. <div class="workImg">
  3119. <img
  3120. :src="w.works"
  3121. @click="previewImg(w.works, w)"
  3122. alt
  3123. />
  3124. <img
  3125. class="deleteImg"
  3126. src="../../assets/deleteworks.png"
  3127. v-if="
  3128. w.userid == userid || tType == 1 || tType == 4
  3129. "
  3130. @click.stop="deleteWorks(w.wid)"
  3131. alt
  3132. />
  3133. </div>
  3134. <div class="worksName">
  3135. <div>{{ w.sName }}</div>
  3136. </div>
  3137. </div>
  3138. </div>
  3139. </div>
  3140. <div
  3141. v-if="
  3142. tType &&
  3143. ((tType == 2 && sIsOpen == true) ||
  3144. tType == 1 ||
  3145. tType == 4) &&
  3146. tool.tool.indexOf(16) != -1
  3147. "
  3148. class="worksBox"
  3149. >
  3150. <div
  3151. class="zuoyeYulan"
  3152. style="display: flex;justify-content: space-between;align-items: center;"
  3153. v-if="
  3154. (worksStudent.length &&
  3155. worksStudent[toolIndex].length > 0) ||
  3156. (courseGroup.group && courseGroup.group.length)
  3157. "
  3158. >
  3159. <div class="worksTop">
  3160. <div>作业预览</div>
  3161. <div
  3162. class="corOpen"
  3163. @click="contract(toolIndex)"
  3164. v-if="
  3165. isCloseList[toolIndex].isCloseBoolean &&
  3166. isCloseList[toolIndex].isClose == 0
  3167. "
  3168. >
  3169. 折叠
  3170. </div>
  3171. <div
  3172. class="corOpen"
  3173. @click="contract(toolIndex)"
  3174. v-if="isCloseList[toolIndex].isClose == 1"
  3175. >
  3176. 展开
  3177. </div>
  3178. </div>
  3179. <div
  3180. style="display: flex;"
  3181. v-if="
  3182. (courseDetail.userid == userid ||
  3183. (courseDetail.course_teacher &&
  3184. courseDetail.course_teacher.indexOf(userid) !=
  3185. -1)) &&
  3186. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3187. taskCount
  3188. ].eList &&
  3189. chapInfoList[courseType].chapterInfo[0].taskJson[
  3190. taskCount
  3191. ].eList.length) ||
  3192. (tool.eList && tool.eList.length)) &&
  3193. courseDetail.state == 6
  3194. "
  3195. >
  3196. <!-- <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"> -->
  3197. <div
  3198. style="margin-right:10px"
  3199. class="ScoreBtn"
  3200. @click="
  3201. resetLoopEva(
  3202. worksStudent[toolIndex],
  3203. chapInfoList[courseType].chapterInfo[0].taskJson[
  3204. taskCount
  3205. ].eList,
  3206. courseType,
  3207. taskCount,
  3208. toolIndex,
  3209. tool.toolDetail,
  3210. worksStudent
  3211. )
  3212. "
  3213. >
  3214. 一键重置
  3215. </div>
  3216. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3217. <img
  3218. src="../../assets/icon/newIcons/rootImg.png"
  3219. alt=""
  3220. />
  3221. AI评分
  3222. </div>
  3223. <div
  3224. class="ScoreBtn"
  3225. v-else-if="!loopLoading[toolIndex].loading"
  3226. @click="
  3227. loopEva(
  3228. worksStudent[toolIndex],
  3229. chapInfoList[courseType].chapterInfo[0].taskJson[
  3230. taskCount
  3231. ].eList,
  3232. courseType,
  3233. taskCount,
  3234. toolIndex,
  3235. tool.toolDetail,
  3236. chapInfoList[courseType].chapterInfo[0].taskJson[
  3237. taskCount
  3238. ].taskDetail,
  3239. tool
  3240. )
  3241. "
  3242. >
  3243. <img
  3244. src="../../assets/icon/newIcons/rootImg.png"
  3245. alt=""
  3246. />
  3247. AI评分
  3248. </div>
  3249. <div class="ScoreBtn" v-else>
  3250. <img
  3251. src="../../assets/icon/newIcons/rootImg.png"
  3252. alt=""
  3253. />
  3254. 正在评分
  3255. </div>
  3256. </div>
  3257. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3258. </div>
  3259. <div
  3260. class="group_workBox"
  3261. v-for="(g, gindex) in courseGroup.group"
  3262. :key="gindex"
  3263. >
  3264. <div class="group_box">
  3265. <div class="group_title">
  3266. <el-tooltip
  3267. class="item"
  3268. effect="light"
  3269. :content="g.name"
  3270. placement="top"
  3271. >
  3272. <div class="group_name">{{ g.name }}</div>
  3273. </el-tooltip>
  3274. </div>
  3275. <div
  3276. class="group_work"
  3277. v-if="
  3278. g.works &&
  3279. g.works.length &&
  3280. g.works[toolIndex].length
  3281. "
  3282. >
  3283. <div
  3284. class="works"
  3285. style="
  3286. width: 200px;
  3287. height: 140px;
  3288. margin: 10px 10px 10px 0;
  3289. border-radius: 15px;
  3290. box-shadow: 0 0 6px 1px #dfdada;
  3291. "
  3292. v-for="(w, wIndex) in g.works[toolIndex]"
  3293. :key="wIndex"
  3294. :class="w.type == 1 ? 'isTypeOne' : ''"
  3295. >
  3296. <div class="workImg" v-if="w.type == 0">
  3297. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3298. <img
  3299. :src="w.works"
  3300. @click="previewImg(w.works, w)"
  3301. alt
  3302. />
  3303. <div
  3304. class="answerScore"
  3305. v-if="w.score"
  3306. @click.stop="openScore(w)"
  3307. :class="{
  3308. rightW:
  3309. w.userid == userid ||
  3310. tType == 1 ||
  3311. tType == 4 ||
  3312. w.ateacher == userid
  3313. }"
  3314. >
  3315. {{ JSON.parse(w.score).wScore }}分
  3316. </div>
  3317. <div
  3318. class="answerScore"
  3319. @click.stop="openScore(w)"
  3320. v-else-if="courseDetail.userid == userid"
  3321. :class="{
  3322. rightW:
  3323. w.userid == userid ||
  3324. tType == 1 ||
  3325. tType == 4 ||
  3326. w.ateacher == userid
  3327. }"
  3328. >
  3329. 评分
  3330. </div>
  3331. <img
  3332. class="deleteImg"
  3333. src="../../assets/deleteworks.png"
  3334. v-if="
  3335. w.userid == userid || tType == 1 || tType == 4
  3336. "
  3337. @click.stop="deleteWorks(w.wid)"
  3338. alt
  3339. />
  3340. </div>
  3341. <div class="workImg" v-if="w.type == 1">
  3342. <img :src="word" @click="openFile(w.works)" alt />
  3343. <!-- @click="openFile(w.works)" -->
  3344. <div
  3345. class="answerScore"
  3346. v-if="w.score"
  3347. @click.stop="openScore(w)"
  3348. :class="{
  3349. rightW:
  3350. w.userid == userid ||
  3351. tType == 1 ||
  3352. tType == 4 ||
  3353. w.ateacher == userid
  3354. }"
  3355. >
  3356. {{ JSON.parse(w.score).wScore }}分
  3357. </div>
  3358. <div
  3359. class="answerScore"
  3360. @click.stop="openScore(w)"
  3361. v-else-if="courseDetail.userid == userid"
  3362. :class="{
  3363. rightW:
  3364. w.userid == userid ||
  3365. tType == 1 ||
  3366. tType == 4 ||
  3367. w.ateacher == userid
  3368. }"
  3369. >
  3370. 评分
  3371. </div>
  3372. <img
  3373. class="deleteImg"
  3374. src="../../assets/deleteworks.png"
  3375. v-if="
  3376. w.userid == userid || tType == 1 || tType == 4
  3377. "
  3378. @click.stop="deleteWorks(w.wid)"
  3379. alt
  3380. />
  3381. </div>
  3382. <div class="workImg" v-if="w.type == 3">
  3383. <img
  3384. style="cursor: pointer"
  3385. :src="video"
  3386. @click="openVideo(w)"
  3387. alt
  3388. />
  3389. <!-- @click="openVideo(w.works)" -->
  3390. <div
  3391. class="answerScore"
  3392. v-if="w.score"
  3393. @click.stop="openScore(w)"
  3394. :class="{
  3395. rightW:
  3396. w.userid == userid ||
  3397. tType == 1 ||
  3398. tType == 4 ||
  3399. w.ateacher == userid
  3400. }"
  3401. >
  3402. {{ JSON.parse(w.score).wScore }}分
  3403. </div>
  3404. <div
  3405. class="answerScore"
  3406. @click.stop="openScore(w)"
  3407. v-else-if="courseDetail.userid == userid"
  3408. :class="{
  3409. rightW:
  3410. w.userid == userid ||
  3411. tType == 1 ||
  3412. tType == 4 ||
  3413. w.ateacher == userid
  3414. }"
  3415. >
  3416. 评分
  3417. </div>
  3418. <img
  3419. class="deleteImg"
  3420. src="../../assets/deleteworks.png"
  3421. v-if="
  3422. w.userid == userid || tType == 1 || tType == 4
  3423. "
  3424. @click.stop="deleteWorks(w.wid)"
  3425. alt
  3426. />
  3427. </div>
  3428. <div class="workImg" v-if="w.type == 12">
  3429. <img
  3430. style="cursor: pointer"
  3431. :src="word2"
  3432. @click="downloadFile(w.works)"
  3433. alt
  3434. />
  3435. <!-- @click="openVideo(w.works)" -->
  3436. <div
  3437. class="answerScore"
  3438. v-if="w.score"
  3439. @click.stop="openScore(w)"
  3440. :class="{
  3441. rightW:
  3442. w.userid == userid ||
  3443. tType == 1 ||
  3444. tType == 4 ||
  3445. w.ateacher == userid
  3446. }"
  3447. >
  3448. {{ JSON.parse(w.score).wScore }}分
  3449. </div>
  3450. <div
  3451. class="answerScore"
  3452. @click.stop="openScore(w)"
  3453. v-else-if="courseDetail.userid == userid"
  3454. :class="{
  3455. rightW:
  3456. w.userid == userid ||
  3457. tType == 1 ||
  3458. tType == 4 ||
  3459. w.ateacher == userid
  3460. }"
  3461. >
  3462. 评分
  3463. </div>
  3464. <img
  3465. class="deleteImg"
  3466. src="../../assets/deleteworks.png"
  3467. v-if="
  3468. w.userid == userid || tType == 1 || tType == 4
  3469. "
  3470. @click.stop="deleteWorks(w.wid)"
  3471. alt
  3472. />
  3473. </div>
  3474. <div class="comment" style="min-width: 200px">
  3475. <div class="worksName">
  3476. <div>{{ w.sName }}</div>
  3477. </div>
  3478. <div class="commentList">
  3479. <div class="commentList">
  3480. <div
  3481. class="commentImg"
  3482. @click="
  3483. isLikes(
  3484. w.wid,
  3485. userid,
  3486. 1,
  3487. null,
  3488. w.isLikes,
  3489. w.sName
  3490. )
  3491. "
  3492. >
  3493. <img
  3494. :src="w.isLikes == true ? likes : noLikes"
  3495. alt=""
  3496. />
  3497. </div>
  3498. <div>{{ w.likesCount }}</div>
  3499. </div>
  3500. <div
  3501. class="commentList"
  3502. style="margin-right: 15px"
  3503. >
  3504. <div
  3505. class="commentImg"
  3506. @click="
  3507. commentOther(
  3508. w,
  3509. toolIndex,
  3510. wIndex,
  3511. null,
  3512. g.id
  3513. )
  3514. "
  3515. >
  3516. <img
  3517. src="../../assets/icon/comment/comment.png"
  3518. alt=""
  3519. />
  3520. </div>
  3521. <div>{{ w.commentCount }}</div>
  3522. </div>
  3523. </div>
  3524. </div>
  3525. </div>
  3526. </div>
  3527. <div class="group_work" v-else>暂无提交作业</div>
  3528. </div>
  3529. </div>
  3530. <div
  3531. :id="'tool-' + toolIndex"
  3532. :style="{
  3533. height:
  3534. isCloseList[toolIndex].isClose == 1
  3535. ? retrnToolHeight('tool-' + toolIndex)
  3536. : 'auto',
  3537. overflow:
  3538. isCloseList[toolIndex].isClose == 1
  3539. ? 'hidden'
  3540. : 'unset'
  3541. }"
  3542. class="worksDetailBox"
  3543. v-if="
  3544. worksStudent.length &&
  3545. worksStudent[toolIndex].length > 0
  3546. "
  3547. >
  3548. <div
  3549. class="works"
  3550. style="
  3551. width: 200px;
  3552. height: 140px;
  3553. margin: 10px 10px 10px 0;
  3554. border-radius: 15px;
  3555. box-shadow: 0 0 6px 1px #dfdada;
  3556. "
  3557. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3558. :key="wIndex"
  3559. :class="w.type == 1 ? 'isTypeOne' : ''"
  3560. >
  3561. <div class="workImg" v-if="w.type == 0">
  3562. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3563. <img
  3564. :src="w.works"
  3565. @click="previewImg(w.works, w)"
  3566. alt
  3567. />
  3568. <div
  3569. class="answerScore"
  3570. v-if="w.score"
  3571. @click.stop="openScore(w)"
  3572. :class="{
  3573. rightW:
  3574. w.userid == userid ||
  3575. tType == 1 ||
  3576. tType == 4 ||
  3577. w.ateacher == userid
  3578. }"
  3579. >
  3580. {{ JSON.parse(w.score).wScore }}分
  3581. </div>
  3582. <div
  3583. class="answerScore"
  3584. @click.stop="openScore(w)"
  3585. v-else-if="
  3586. courseDetail.userid == userid &&
  3587. courseDetail.state != 6 &&
  3588. chapInfoList[courseType].chapterInfo[0]
  3589. .taskJson[taskCount].eList &&
  3590. chapInfoList[courseType].chapterInfo[0]
  3591. .taskJson[taskCount].eList.length
  3592. "
  3593. :class="{
  3594. rightW:
  3595. w.userid == userid ||
  3596. tType == 1 ||
  3597. tType == 4 ||
  3598. w.ateacher == userid
  3599. }"
  3600. >
  3601. 评分
  3602. </div>
  3603. <!-- <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"> -->
  3604. <div
  3605. v-else-if="
  3606. (courseDetail.userid == userid ||
  3607. (courseDetail.course_teacher &&
  3608. courseDetail.course_teacher.indexOf(userid) !=
  3609. -1) ||
  3610. (w.userid == userid && sIsOpen)) &&
  3611. courseDetail.state == 6 &&
  3612. ((chapInfoList[courseType].chapterInfo[0]
  3613. .taskJson[taskCount].eList &&
  3614. chapInfoList[courseType].chapterInfo[0]
  3615. .taskJson[taskCount].eList.length) ||
  3616. (tool.eList && tool.eList.length))
  3617. "
  3618. >
  3619. <el-popover
  3620. placement="top"
  3621. width="318"
  3622. :disabled="AIloading[toolIndex][wIndex].loading"
  3623. trigger="hover"
  3624. >
  3625. <markScore
  3626. :loading="AIloading[toolIndex][wIndex].loading"
  3627. :markScoreVisible="markScoreVisible"
  3628. :ref="`markSco${toolIndex}${wIndex}`"
  3629. @updateLoading="updateLoading"
  3630. @updateDocSco="updateDocSco"
  3631. @refreshOther="refreshOther"
  3632. @markScoreDig="markScoreDig"
  3633. :tool="tool"
  3634. :wIndex="wIndex"
  3635. :scoCon="w"
  3636. :toolIndex="toolIndex"
  3637. :key="refreshKey"
  3638. :stage="courseType"
  3639. :task="taskCount"
  3640. :scoTit="
  3641. chapInfoList[courseType].chapterInfo[0]
  3642. .taskJson[taskCount].eList
  3643. "
  3644. >
  3645. </markScore>
  3646. <div
  3647. class="answerScore"
  3648. @click="
  3649. markScoreDig2(
  3650. w.sName,
  3651. worksStudent,
  3652. w.userid,
  3653. toolIndex,
  3654. chapInfoList[courseType].chapterInfo[0]
  3655. .taskJson[taskCount].eList,
  3656. AIloading[toolIndex][wIndex].loading,
  3657. tool
  3658. )
  3659. "
  3660. slot="reference"
  3661. :class="{
  3662. rightW:
  3663. w.userid == userid ||
  3664. tType == 1 ||
  3665. tType == 4 ||
  3666. w.ateacher == userid
  3667. }"
  3668. >
  3669. <span v-if="AIloading[toolIndex][wIndex].sco">
  3670. {{
  3671. AIloading[toolIndex][wIndex].loading
  3672. ? "评分中"
  3673. : AIloading[toolIndex][wIndex].sco + "分"
  3674. }}
  3675. </span>
  3676. <span v-else>
  3677. {{
  3678. AIloading[toolIndex][wIndex].loading
  3679. ? "评分中"
  3680. : "评分"
  3681. }}
  3682. </span>
  3683. </div>
  3684. </el-popover>
  3685. </div>
  3686. <img
  3687. class="deleteImg"
  3688. src="../../assets/deleteworks.png"
  3689. v-if="
  3690. w.userid == userid || tType == 1 || tType == 4
  3691. "
  3692. @click.stop="deleteWorks(w.wid)"
  3693. alt
  3694. />
  3695. </div>
  3696. <div class="workImg" v-if="w.type == 1">
  3697. <img :src="word" @click="openFile(w.works)" alt />
  3698. <!-- @click="openFile(w.works)" -->
  3699. <div
  3700. class="answerScore"
  3701. v-if="w.score"
  3702. @click.stop="openScore(w)"
  3703. :class="{
  3704. rightW:
  3705. w.userid == userid ||
  3706. tType == 1 ||
  3707. tType == 4 ||
  3708. w.ateacher == userid
  3709. }"
  3710. >
  3711. {{ JSON.parse(w.score).wScore }}分
  3712. </div>
  3713. <div
  3714. class="answerScore"
  3715. @click.stop="openScore(w)"
  3716. v-else-if="
  3717. courseDetail.userid == userid &&
  3718. courseDetail.state != 6 &&
  3719. chapInfoList[courseType].chapterInfo[0]
  3720. .taskJson[taskCount].eList &&
  3721. chapInfoList[courseType].chapterInfo[0]
  3722. .taskJson[taskCount].eList.length
  3723. "
  3724. :class="{
  3725. rightW:
  3726. w.userid == userid ||
  3727. tType == 1 ||
  3728. tType == 4 ||
  3729. w.ateacher == userid
  3730. }"
  3731. >
  3732. 评分
  3733. </div>
  3734. <!-- <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"> -->
  3735. <div
  3736. v-else-if="
  3737. (courseDetail.userid == userid ||
  3738. (courseDetail.course_teacher &&
  3739. courseDetail.course_teacher.indexOf(userid) !=
  3740. -1) ||
  3741. (w.userid == userid && sIsOpen)) &&
  3742. courseDetail.state == 6 &&
  3743. ((chapInfoList[courseType].chapterInfo[0]
  3744. .taskJson[taskCount].eList &&
  3745. chapInfoList[courseType].chapterInfo[0]
  3746. .taskJson[taskCount].eList.length) ||
  3747. (tool.eList && tool.eList.length))
  3748. "
  3749. >
  3750. <el-popover
  3751. placement="top"
  3752. width="318"
  3753. :disabled="AIloading[toolIndex][wIndex].loading"
  3754. trigger="hover"
  3755. >
  3756. <markScore
  3757. :loading="AIloading[toolIndex][wIndex].loading"
  3758. :markScoreVisible="markScoreVisible"
  3759. :ref="`markSco${toolIndex}${wIndex}`"
  3760. @updateLoading="updateLoading"
  3761. @updateDocSco="updateDocSco"
  3762. @refreshOther="refreshOther"
  3763. @markScoreDig="markScoreDig"
  3764. :tool="tool"
  3765. :wIndex="wIndex"
  3766. :scoCon="w"
  3767. :toolIndex="toolIndex"
  3768. :key="refreshKey"
  3769. :stage="courseType"
  3770. :task="taskCount"
  3771. :scoTit="
  3772. chapInfoList[courseType].chapterInfo[0]
  3773. .taskJson[taskCount].eList
  3774. "
  3775. >
  3776. </markScore>
  3777. <div
  3778. class="answerScore"
  3779. @click="
  3780. markScoreDig2(
  3781. w.sName,
  3782. worksStudent,
  3783. w.userid,
  3784. toolIndex,
  3785. chapInfoList[courseType].chapterInfo[0]
  3786. .taskJson[taskCount].eList,
  3787. AIloading[toolIndex][wIndex].loading,
  3788. tool
  3789. )
  3790. "
  3791. slot="reference"
  3792. :class="{
  3793. rightW:
  3794. w.userid == userid ||
  3795. tType == 1 ||
  3796. tType == 4 ||
  3797. w.ateacher == userid
  3798. }"
  3799. >
  3800. <span v-if="AIloading[toolIndex][wIndex].sco">
  3801. {{
  3802. AIloading[toolIndex][wIndex].loading
  3803. ? "评分中"
  3804. : AIloading[toolIndex][wIndex].sco + "分"
  3805. }}
  3806. </span>
  3807. <span v-else>
  3808. {{
  3809. AIloading[toolIndex][wIndex].loading
  3810. ? "评分中"
  3811. : "评分"
  3812. }}
  3813. </span>
  3814. </div>
  3815. </el-popover>
  3816. </div>
  3817. <img
  3818. class="deleteImg"
  3819. src="../../assets/deleteworks.png"
  3820. v-if="
  3821. w.userid == userid || tType == 1 || tType == 4
  3822. "
  3823. @click.stop="deleteWorks(w.wid)"
  3824. alt
  3825. />
  3826. </div>
  3827. <div class="workImg" v-if="w.type == 3">
  3828. <img
  3829. style="cursor: pointer"
  3830. :src="video"
  3831. @click="openVideo(w)"
  3832. alt
  3833. />
  3834. <!-- @click="openVideo(w.works)" -->
  3835. <div
  3836. class="answerScore"
  3837. v-if="w.score"
  3838. @click.stop="openScore(w)"
  3839. :class="{
  3840. rightW:
  3841. w.userid == userid ||
  3842. tType == 1 ||
  3843. tType == 4 ||
  3844. w.ateacher == userid
  3845. }"
  3846. >
  3847. {{ JSON.parse(w.score).wScore }}分
  3848. </div>
  3849. <div
  3850. class="answerScore"
  3851. @click.stop="openScore(w)"
  3852. v-else-if="
  3853. courseDetail.userid == userid &&
  3854. courseDetail.state != 6 &&
  3855. chapInfoList[courseType].chapterInfo[0]
  3856. .taskJson[taskCount].eList &&
  3857. chapInfoList[courseType].chapterInfo[0]
  3858. .taskJson[taskCount].eList.length
  3859. "
  3860. :class="{
  3861. rightW:
  3862. w.userid == userid ||
  3863. tType == 1 ||
  3864. tType == 4 ||
  3865. w.ateacher == userid
  3866. }"
  3867. >
  3868. 评分
  3869. </div>
  3870. <!-- <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"> -->
  3871. <div
  3872. v-else-if="
  3873. (courseDetail.userid == userid ||
  3874. (courseDetail.course_teacher &&
  3875. courseDetail.course_teacher.indexOf(userid) !=
  3876. -1) ||
  3877. (w.userid == userid && sIsOpen)) &&
  3878. courseDetail.state == 6 &&
  3879. ((chapInfoList[courseType].chapterInfo[0]
  3880. .taskJson[taskCount].eList &&
  3881. chapInfoList[courseType].chapterInfo[0]
  3882. .taskJson[taskCount].eList.length) ||
  3883. (tool.eList && tool.eList.length))
  3884. "
  3885. >
  3886. <el-popover
  3887. placement="top"
  3888. width="318"
  3889. :disabled="AIloading[toolIndex][wIndex].loading"
  3890. trigger="hover"
  3891. >
  3892. <markScore
  3893. :loading="AIloading[toolIndex][wIndex].loading"
  3894. :markScoreVisible="markScoreVisible"
  3895. :ref="`markSco${toolIndex}${wIndex}`"
  3896. @updateLoading="updateLoading"
  3897. @updateDocSco="updateDocSco"
  3898. @refreshOther="refreshOther"
  3899. @markScoreDig="markScoreDig"
  3900. :tool="tool"
  3901. :wIndex="wIndex"
  3902. :scoCon="w"
  3903. :toolIndex="toolIndex"
  3904. :key="refreshKey"
  3905. :stage="courseType"
  3906. :task="taskCount"
  3907. :scoTit="
  3908. chapInfoList[courseType].chapterInfo[0]
  3909. .taskJson[taskCount].eList
  3910. "
  3911. >
  3912. </markScore>
  3913. <div
  3914. class="answerScore"
  3915. @click="
  3916. markScoreDig2(
  3917. w.sName,
  3918. worksStudent,
  3919. w.userid,
  3920. toolIndex,
  3921. chapInfoList[courseType].chapterInfo[0]
  3922. .taskJson[taskCount].eList,
  3923. AIloading[toolIndex][wIndex].loading,
  3924. tool
  3925. )
  3926. "
  3927. slot="reference"
  3928. :class="{
  3929. rightW:
  3930. w.userid == userid ||
  3931. tType == 1 ||
  3932. tType == 4 ||
  3933. w.ateacher == userid
  3934. }"
  3935. >
  3936. <span v-if="AIloading[toolIndex][wIndex].sco">
  3937. {{
  3938. AIloading[toolIndex][wIndex].loading
  3939. ? "评分中"
  3940. : AIloading[toolIndex][wIndex].sco + "分"
  3941. }}
  3942. </span>
  3943. <span v-else>
  3944. {{
  3945. AIloading[toolIndex][wIndex].loading
  3946. ? "评分中"
  3947. : "评分"
  3948. }}
  3949. </span>
  3950. </div>
  3951. </el-popover>
  3952. </div>
  3953. <img
  3954. class="deleteImg"
  3955. src="../../assets/deleteworks.png"
  3956. v-if="
  3957. w.userid == userid || tType == 1 || tType == 4
  3958. "
  3959. @click.stop="deleteWorks(w.wid)"
  3960. alt
  3961. />
  3962. </div>
  3963. <div class="workImg" v-if="w.type == 12">
  3964. <img
  3965. style="cursor: pointer"
  3966. :src="word2"
  3967. @click="downloadFile(w.works)"
  3968. alt
  3969. />
  3970. <!-- @click="openVideo(w.works)" -->
  3971. <div
  3972. class="answerScore"
  3973. v-if="w.score"
  3974. @click.stop="openScore(w)"
  3975. :class="{
  3976. rightW:
  3977. w.userid == userid ||
  3978. tType == 1 ||
  3979. tType == 4 ||
  3980. w.ateacher == userid
  3981. }"
  3982. >
  3983. {{ JSON.parse(w.score).wScore }}分
  3984. </div>
  3985. <div
  3986. class="answerScore"
  3987. @click.stop="openScore(w)"
  3988. v-else-if="
  3989. courseDetail.userid == userid &&
  3990. courseDetail.state != 6 &&
  3991. chapInfoList[courseType].chapterInfo[0]
  3992. .taskJson[taskCount].eList &&
  3993. chapInfoList[courseType].chapterInfo[0]
  3994. .taskJson[taskCount].eList.length
  3995. "
  3996. :class="{
  3997. rightW:
  3998. w.userid == userid ||
  3999. tType == 1 ||
  4000. tType == 4 ||
  4001. w.ateacher == userid
  4002. }"
  4003. >
  4004. 评分
  4005. </div>
  4006. <!-- <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"> -->
  4007. <div
  4008. v-else-if="
  4009. (courseDetail.userid == userid ||
  4010. (courseDetail.course_teacher &&
  4011. courseDetail.course_teacher.indexOf(userid) !=
  4012. -1) ||
  4013. (w.userid == userid && sIsOpen)) &&
  4014. courseDetail.state == 6 &&
  4015. ((chapInfoList[courseType].chapterInfo[0]
  4016. .taskJson[taskCount].eList &&
  4017. chapInfoList[courseType].chapterInfo[0]
  4018. .taskJson[taskCount].eList.length) ||
  4019. (tool.eList && tool.eList.length))
  4020. "
  4021. >
  4022. <el-popover
  4023. placement="top"
  4024. width="318"
  4025. :disabled="AIloading[toolIndex][wIndex].loading"
  4026. trigger="hover"
  4027. >
  4028. <markScore
  4029. :loading="AIloading[toolIndex][wIndex].loading"
  4030. :markScoreVisible="markScoreVisible"
  4031. :ref="`markSco${toolIndex}${wIndex}`"
  4032. @updateLoading="updateLoading"
  4033. @updateDocSco="updateDocSco"
  4034. @refreshOther="refreshOther"
  4035. @markScoreDig="markScoreDig"
  4036. :tool="tool"
  4037. :wIndex="wIndex"
  4038. :scoCon="w"
  4039. :toolIndex="toolIndex"
  4040. :key="refreshKey"
  4041. :stage="courseType"
  4042. :task="taskCount"
  4043. :scoTit="
  4044. chapInfoList[courseType].chapterInfo[0]
  4045. .taskJson[taskCount].eList
  4046. "
  4047. >
  4048. </markScore>
  4049. <div
  4050. class="answerScore"
  4051. @click="
  4052. markScoreDig2(
  4053. w.sName,
  4054. worksStudent,
  4055. w.userid,
  4056. toolIndex,
  4057. chapInfoList[courseType].chapterInfo[0]
  4058. .taskJson[taskCount].eList,
  4059. AIloading[toolIndex][wIndex].loading,
  4060. tool
  4061. )
  4062. "
  4063. slot="reference"
  4064. :class="{
  4065. rightW:
  4066. w.userid == userid ||
  4067. tType == 1 ||
  4068. tType == 4 ||
  4069. w.ateacher == userid
  4070. }"
  4071. >
  4072. <span v-if="AIloading[toolIndex][wIndex].sco">
  4073. {{
  4074. AIloading[toolIndex][wIndex].loading
  4075. ? "评分中"
  4076. : AIloading[toolIndex][wIndex].sco + "分"
  4077. }}
  4078. </span>
  4079. <span v-else>
  4080. {{
  4081. AIloading[toolIndex][wIndex].loading
  4082. ? "评分中"
  4083. : "评分"
  4084. }}
  4085. </span>
  4086. </div>
  4087. </el-popover>
  4088. </div>
  4089. <img
  4090. class="deleteImg"
  4091. src="../../assets/deleteworks.png"
  4092. v-if="
  4093. w.userid == userid || tType == 1 || tType == 4
  4094. "
  4095. @click.stop="deleteWorks(w.wid)"
  4096. alt
  4097. />
  4098. </div>
  4099. <div class="comment" style="min-width: 200px">
  4100. <div class="worksName">
  4101. <div>{{ w.sName }}</div>
  4102. </div>
  4103. <div class="commentList">
  4104. <div class="commentList">
  4105. <div
  4106. class="commentImg"
  4107. @click="
  4108. isLikes(
  4109. w.wid,
  4110. userid,
  4111. 1,
  4112. null,
  4113. w.isLikes,
  4114. w.sName
  4115. )
  4116. "
  4117. >
  4118. <img
  4119. :src="w.isLikes == true ? likes : noLikes"
  4120. alt=""
  4121. />
  4122. </div>
  4123. <div>{{ w.likesCount }}</div>
  4124. </div>
  4125. <div class="commentList" style="margin-right: 15px">
  4126. <div
  4127. class="commentImg"
  4128. @click="commentOther(w, toolIndex, wIndex)"
  4129. >
  4130. <img
  4131. src="../../assets/icon/comment/comment.png"
  4132. alt=""
  4133. />
  4134. </div>
  4135. <div>{{ w.commentCount }}</div>
  4136. </div>
  4137. </div>
  4138. </div>
  4139. </div>
  4140. </div>
  4141. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4142. 未提交
  4143. </div>
  4144. <div
  4145. class="noWorksS"
  4146. v-if="noWorksS && noWorksS[toolIndex].length"
  4147. >
  4148. <div
  4149. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4150. :key="sIndex"
  4151. class="noWorksName"
  4152. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4153. >
  4154. <el-tooltip
  4155. effect="dark"
  4156. :content="s.student"
  4157. placement="top"
  4158. >
  4159. <span>{{ s.student }}</span>
  4160. </el-tooltip>
  4161. </div>
  4162. </div>
  4163. </div>
  4164. <div
  4165. v-if="
  4166. tType &&
  4167. ((tType == 2 && sIsOpen == true) ||
  4168. tType == 1 ||
  4169. tType == 4) &&
  4170. tool.tool.indexOf(70) != -1
  4171. "
  4172. class="worksBox"
  4173. >
  4174. <div
  4175. class="zuoyeYulan"
  4176. v-if="
  4177. worksStudent.length &&
  4178. worksStudent[toolIndex].length > 0
  4179. "
  4180. >
  4181. <div class="worksTop">
  4182. <div>作业预览</div>
  4183. <div
  4184. class="corOpen"
  4185. @click="contract(toolIndex)"
  4186. v-if="
  4187. isCloseList[toolIndex].isCloseBoolean &&
  4188. isCloseList[toolIndex].isClose == 0
  4189. "
  4190. >
  4191. 折叠
  4192. </div>
  4193. <div
  4194. class="corOpen"
  4195. @click="contract(toolIndex)"
  4196. v-if="isCloseList[toolIndex].isClose == 1"
  4197. >
  4198. 展开
  4199. </div>
  4200. </div>
  4201. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4202. </div>
  4203. <div
  4204. :id="'tool-' + toolIndex"
  4205. :style="{
  4206. height:
  4207. isCloseList[toolIndex].isClose == 1
  4208. ? retrnToolHeight('tool-' + toolIndex)
  4209. : 'auto',
  4210. overflow:
  4211. isCloseList[toolIndex].isClose == 1
  4212. ? 'hidden'
  4213. : 'unset'
  4214. }"
  4215. class="worksDetailBox"
  4216. v-if="
  4217. worksStudent.length &&
  4218. worksStudent[toolIndex].length > 0
  4219. "
  4220. >
  4221. <div
  4222. class="works"
  4223. style="
  4224. width: 200px;
  4225. height: 140px;
  4226. margin: 10px 10px 10px 0;
  4227. border-radius: 15px;
  4228. box-shadow: 0 0 6px 1px #dfdada;
  4229. "
  4230. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4231. :key="wIndex"
  4232. :class="w.type == 1 ? 'isTypeOne' : ''"
  4233. >
  4234. <div
  4235. class="workImg"
  4236. @click.stop="openScore(w, toolIndex)"
  4237. >
  4238. <img :src="word" alt />
  4239. <img
  4240. class="deleteImg"
  4241. src="../../assets/deleteworks.png"
  4242. v-if="
  4243. w.userid == userid || tType == 1 || tType == 4
  4244. "
  4245. @click.stop="deleteWorks(w.wid)"
  4246. alt
  4247. />
  4248. </div>
  4249. <div class="comment" style="min-width: 200px">
  4250. <div class="worksName">
  4251. <div>{{ w.sName }}</div>
  4252. </div>
  4253. </div>
  4254. </div>
  4255. </div>
  4256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4257. 未提交
  4258. </div>
  4259. <div
  4260. class="noWorksS"
  4261. v-if="noWorksS && noWorksS[toolIndex].length"
  4262. >
  4263. <div
  4264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4265. :key="sIndex"
  4266. class="noWorksName"
  4267. >
  4268. <el-tooltip
  4269. effect="dark"
  4270. :content="s.student"
  4271. placement="top"
  4272. >
  4273. <span>{{ s.student }}</span>
  4274. </el-tooltip>
  4275. </div>
  4276. </div>
  4277. </div>
  4278. <div
  4279. v-if="
  4280. tType &&
  4281. tType == 2 &&
  4282. !sIsOpen &&
  4283. tool.tool.indexOf(70) != -1
  4284. "
  4285. class="worksBox"
  4286. >
  4287. <div
  4288. class="zuoyeYulan"
  4289. v-if="workStudent[toolIndex].length > 0"
  4290. >
  4291. <span class="worksTitle">作业预览</span>
  4292. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4293. </div>
  4294. <div
  4295. class="worksDetailBox"
  4296. v-if="workStudent[toolIndex].length > 0"
  4297. >
  4298. <div
  4299. class="works"
  4300. style="
  4301. width: 200px;
  4302. height: 140px;
  4303. margin: 10px 10px 10px 0;
  4304. box-shadow: 0 0 6px 1px #dfdada;
  4305. "
  4306. v-for="(w, wIndex) in workStudent[toolIndex]"
  4307. :key="wIndex"
  4308. >
  4309. <div
  4310. class="workImg"
  4311. @click.stop="openScore(w, toolIndex)"
  4312. >
  4313. <img :src="word" alt />
  4314. <img
  4315. class="deleteImg"
  4316. src="../../assets/deleteworks.png"
  4317. v-if="
  4318. w.userid == userid || tType == 1 || tType == 4
  4319. "
  4320. @click.stop="deleteWorks(w.wid)"
  4321. alt
  4322. />
  4323. </div>
  4324. <div class="worksName">
  4325. <div>{{ w.sName }}</div>
  4326. </div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. <div
  4331. v-if="
  4332. tType &&
  4333. ((tType == 2 && sIsOpen == true) ||
  4334. tType == 1 ||
  4335. tType == 4) &&
  4336. tool.tool.indexOf(32) != -1
  4337. "
  4338. class="worksBox"
  4339. >
  4340. <div
  4341. class="zuoyeYulan"
  4342. v-if="
  4343. worksStudent.length &&
  4344. worksStudent[toolIndex].length > 0
  4345. "
  4346. >
  4347. <div class="worksTop">
  4348. <div>作业预览</div>
  4349. <div
  4350. class="corOpen"
  4351. @click="contract(toolIndex)"
  4352. v-if="
  4353. isCloseList[toolIndex].isCloseBoolean &&
  4354. isCloseList[toolIndex].isClose == 0
  4355. "
  4356. >
  4357. 折叠
  4358. </div>
  4359. <div
  4360. class="corOpen"
  4361. @click="contract(toolIndex)"
  4362. v-if="isCloseList[toolIndex].isClose == 1"
  4363. >
  4364. 展开
  4365. </div>
  4366. </div>
  4367. </div>
  4368. <div
  4369. :id="'tool-' + toolIndex"
  4370. :style="{
  4371. height:
  4372. isCloseList[toolIndex].isClose == 1
  4373. ? retrnToolHeight('tool-' + toolIndex)
  4374. : 'auto',
  4375. overflow:
  4376. isCloseList[toolIndex].isClose == 1
  4377. ? 'hidden'
  4378. : 'unset'
  4379. }"
  4380. class="worksDetailBox"
  4381. v-if="
  4382. worksStudent.length &&
  4383. worksStudent[toolIndex].length > 0
  4384. "
  4385. >
  4386. <div
  4387. class="works"
  4388. style="
  4389. width: 200px;
  4390. height: 140px;
  4391. margin: 10px 10px 10px 0;
  4392. border-radius: 15px;
  4393. box-shadow: 0 0 6px 1px #dfdada;
  4394. "
  4395. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4396. :key="wIndex"
  4397. :class="w.type == 1 ? 'isTypeOne' : ''"
  4398. >
  4399. <div class="workImg">
  4400. <img
  4401. :src="word2"
  4402. @click="downloadFile(w.works)"
  4403. alt
  4404. />
  4405. <div
  4406. class="answerScore"
  4407. v-if="w.score"
  4408. @click.stop="openScore(w)"
  4409. :class="{
  4410. rightW:
  4411. w.userid == userid ||
  4412. tType == 1 ||
  4413. tType == 4 ||
  4414. w.ateacher == userid
  4415. }"
  4416. >
  4417. {{ JSON.parse(w.score).wScore }}分
  4418. </div>
  4419. <div
  4420. class="answerScore"
  4421. @click.stop="openScore(w)"
  4422. v-else-if="courseDetail.userid == userid"
  4423. :class="{
  4424. rightW:
  4425. w.userid == userid ||
  4426. tType == 1 ||
  4427. tType == 4 ||
  4428. w.ateacher == userid
  4429. }"
  4430. >
  4431. 评分
  4432. </div>
  4433. <img
  4434. class="deleteImg"
  4435. src="../../assets/deleteworks.png"
  4436. v-if="
  4437. w.userid == userid || tType == 1 || tType == 4
  4438. "
  4439. @click.stop="deleteWorks(w.wid)"
  4440. alt
  4441. />
  4442. </div>
  4443. <div class="comment" style="min-width: 200px">
  4444. <div class="worksName">
  4445. <div>{{ w.sName }}</div>
  4446. </div>
  4447. <div class="commentList">
  4448. <div class="commentList">
  4449. <div
  4450. class="commentImg"
  4451. @click="
  4452. isLikes(
  4453. w.wid,
  4454. userid,
  4455. 1,
  4456. null,
  4457. w.isLikes,
  4458. w.sName
  4459. )
  4460. "
  4461. >
  4462. <img
  4463. :src="w.isLikes == true ? likes : noLikes"
  4464. alt=""
  4465. />
  4466. </div>
  4467. <div>{{ w.likesCount }}</div>
  4468. </div>
  4469. <div class="commentList" style="margin-right: 15px">
  4470. <div
  4471. class="commentImg"
  4472. @click="commentOther(w, toolIndex, wIndex)"
  4473. >
  4474. <img
  4475. src="../../assets/icon/comment/comment.png"
  4476. alt=""
  4477. />
  4478. </div>
  4479. <div>{{ w.commentCount }}</div>
  4480. </div>
  4481. </div>
  4482. </div>
  4483. </div>
  4484. </div>
  4485. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4486. 未提交
  4487. </div>
  4488. <div
  4489. class="noWorksS"
  4490. v-if="noWorksS && noWorksS[toolIndex].length"
  4491. >
  4492. <div
  4493. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4494. :key="sIndex"
  4495. class="noWorksName"
  4496. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4497. >
  4498. <el-tooltip
  4499. effect="dark"
  4500. :content="s.student"
  4501. placement="top"
  4502. >
  4503. <span>{{ s.student }}</span>
  4504. </el-tooltip>
  4505. </div>
  4506. </div>
  4507. </div>
  4508. <div
  4509. v-if="
  4510. tType &&
  4511. ((tType == 2 && sIsOpen == true) ||
  4512. tType == 1 ||
  4513. tType == 4) &&
  4514. tool.tool.indexOf(57) != -1
  4515. "
  4516. class="worksBox"
  4517. >
  4518. <div
  4519. class="zuoyeYulan"
  4520. v-if="
  4521. worksStudent.length &&
  4522. worksStudent[toolIndex].length > 0
  4523. "
  4524. >
  4525. <div class="worksTop">
  4526. <div>作业预览</div>
  4527. <div
  4528. class="corOpen"
  4529. @click="contract(toolIndex)"
  4530. v-if="
  4531. isCloseList[toolIndex].isCloseBoolean &&
  4532. isCloseList[toolIndex].isClose == 0
  4533. "
  4534. >
  4535. 折叠
  4536. </div>
  4537. <div
  4538. class="corOpen"
  4539. @click="contract(toolIndex)"
  4540. v-if="isCloseList[toolIndex].isClose == 1"
  4541. >
  4542. 展开
  4543. </div>
  4544. </div>
  4545. </div>
  4546. <div
  4547. :id="'tool-' + toolIndex"
  4548. :style="{
  4549. height:
  4550. isCloseList[toolIndex].isClose == 1
  4551. ? retrnToolHeight('tool-' + toolIndex)
  4552. : 'auto',
  4553. overflow:
  4554. isCloseList[toolIndex].isClose == 1
  4555. ? 'hidden'
  4556. : 'unset'
  4557. }"
  4558. class="worksDetailBox"
  4559. v-if="
  4560. worksStudent.length &&
  4561. worksStudent[toolIndex].length > 0
  4562. "
  4563. >
  4564. <div
  4565. class="works"
  4566. style="
  4567. width: 200px;
  4568. height: 140px;
  4569. margin: 10px 10px 10px 0;
  4570. border-radius: 15px;
  4571. box-shadow: 0 0 6px 1px #dfdada;
  4572. "
  4573. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4574. :key="wIndex"
  4575. :class="w.type == 1 ? 'isTypeOne' : ''"
  4576. >
  4577. <div class="workImg">
  4578. <img
  4579. :src="word2"
  4580. @click="downloadFile(w.works)"
  4581. v-if="w.type == 12"
  4582. alt
  4583. />
  4584. <img
  4585. :src="word2"
  4586. @click="
  4587. openCocoPi(57, toolIndex, w.userid, w.sName)
  4588. "
  4589. v-else-if="w.type == 15"
  4590. alt
  4591. />
  4592. <div
  4593. class="answerScore"
  4594. v-if="w.score"
  4595. @click.stop="openScore(w)"
  4596. :class="{
  4597. rightW:
  4598. w.userid == userid ||
  4599. tType == 1 ||
  4600. tType == 4 ||
  4601. w.ateacher == userid
  4602. }"
  4603. >
  4604. {{ JSON.parse(w.score).wScore }}分
  4605. </div>
  4606. <div
  4607. class="answerScore"
  4608. @click.stop="openScore(w)"
  4609. v-else-if="
  4610. courseDetail.userid == userid &&
  4611. courseDetail.state != 6 &&
  4612. chapInfoList[courseType].chapterInfo[0]
  4613. .taskJson[taskCount].eList &&
  4614. chapInfoList[courseType].chapterInfo[0]
  4615. .taskJson[taskCount].eList.length
  4616. "
  4617. :class="{
  4618. rightW:
  4619. w.userid == userid ||
  4620. tType == 1 ||
  4621. tType == 4 ||
  4622. w.ateacher == userid
  4623. }"
  4624. >
  4625. 评分
  4626. </div>
  4627. <!-- <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"> -->
  4628. <div
  4629. v-else-if="
  4630. (courseDetail.userid == userid ||
  4631. (courseDetail.course_teacher &&
  4632. courseDetail.course_teacher.indexOf(userid) !=
  4633. -1) ||
  4634. (w.userid == userid && sIsOpen)) &&
  4635. courseDetail.state == 6 &&
  4636. ((chapInfoList[courseType].chapterInfo[0]
  4637. .taskJson[taskCount].eList &&
  4638. chapInfoList[courseType].chapterInfo[0]
  4639. .taskJson[taskCount].eList.length) ||
  4640. (tool.eList && tool.eList.length))
  4641. "
  4642. >
  4643. <el-popover
  4644. placement="top"
  4645. width="318"
  4646. :disabled="AIloading[toolIndex][wIndex].loading"
  4647. trigger="hover"
  4648. >
  4649. <markScore
  4650. :loading="AIloading[toolIndex][wIndex].loading"
  4651. :markScoreVisible="markScoreVisible"
  4652. :ref="`markSco${toolIndex}${wIndex}`"
  4653. @updateLoading="updateLoading"
  4654. @updateDocSco="updateDocSco"
  4655. @refreshOther="refreshOther"
  4656. @markScoreDig="markScoreDig"
  4657. :tool="tool"
  4658. :wIndex="wIndex"
  4659. :scoCon="w"
  4660. :toolIndex="toolIndex"
  4661. :key="refreshKey"
  4662. :stage="courseType"
  4663. :task="taskCount"
  4664. :scoTit="
  4665. chapInfoList[courseType].chapterInfo[0]
  4666. .taskJson[taskCount].eList
  4667. "
  4668. >
  4669. </markScore>
  4670. <div
  4671. class="answerScore"
  4672. @click="
  4673. markScoreDig2(
  4674. w.sName,
  4675. worksStudent,
  4676. w.userid,
  4677. toolIndex,
  4678. chapInfoList[courseType].chapterInfo[0]
  4679. .taskJson[taskCount].eList,
  4680. AIloading[toolIndex][wIndex].loading,
  4681. tool
  4682. )
  4683. "
  4684. slot="reference"
  4685. :class="{
  4686. rightW:
  4687. w.userid == userid ||
  4688. tType == 1 ||
  4689. tType == 4 ||
  4690. w.ateacher == userid
  4691. }"
  4692. >
  4693. <span v-if="AIloading[toolIndex][wIndex].sco">
  4694. {{
  4695. AIloading[toolIndex][wIndex].loading
  4696. ? "评分中"
  4697. : AIloading[toolIndex][wIndex].sco + "分"
  4698. }}
  4699. </span>
  4700. <span v-else>
  4701. {{
  4702. AIloading[toolIndex][wIndex].loading
  4703. ? "评分中"
  4704. : "评分"
  4705. }}
  4706. </span>
  4707. </div>
  4708. </el-popover>
  4709. </div>
  4710. <img
  4711. class="deleteImg"
  4712. src="../../assets/deleteworks.png"
  4713. v-if="
  4714. w.userid == userid || tType == 1 || tType == 4
  4715. "
  4716. @click.stop="deleteWorks(w.wid)"
  4717. alt
  4718. />
  4719. </div>
  4720. <div class="comment" style="min-width: 200px">
  4721. <div class="worksName">
  4722. <div>{{ w.sName }}</div>
  4723. </div>
  4724. <div class="commentList">
  4725. <div class="commentList">
  4726. <div
  4727. class="commentImg"
  4728. @click="
  4729. isLikes(
  4730. w.wid,
  4731. userid,
  4732. 1,
  4733. null,
  4734. w.isLikes,
  4735. w.sName
  4736. )
  4737. "
  4738. >
  4739. <img
  4740. :src="w.isLikes == true ? likes : noLikes"
  4741. alt=""
  4742. />
  4743. </div>
  4744. <div>{{ w.likesCount }}</div>
  4745. </div>
  4746. <div class="commentList" style="margin-right: 15px">
  4747. <div
  4748. class="commentImg"
  4749. @click="commentOther(w, toolIndex, wIndex)"
  4750. >
  4751. <img
  4752. src="../../assets/icon/comment/comment.png"
  4753. alt=""
  4754. />
  4755. </div>
  4756. <div>{{ w.commentCount }}</div>
  4757. </div>
  4758. </div>
  4759. </div>
  4760. </div>
  4761. </div>
  4762. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4763. 未提交
  4764. </div>
  4765. <div
  4766. class="noWorksS"
  4767. v-if="noWorksS && noWorksS[toolIndex].length"
  4768. >
  4769. <div
  4770. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4771. :key="sIndex"
  4772. class="noWorksName"
  4773. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4774. >
  4775. <el-tooltip
  4776. effect="dark"
  4777. :content="s.student"
  4778. placement="top"
  4779. >
  4780. <span>{{ s.student }}</span>
  4781. </el-tooltip>
  4782. </div>
  4783. </div>
  4784. </div>
  4785. <div
  4786. v-if="
  4787. tType &&
  4788. ((tType == 2 && sIsOpen == true) ||
  4789. tType == 1 ||
  4790. tType == 4) &&
  4791. tool.tool.indexOf(72) != -1
  4792. "
  4793. class="worksBox"
  4794. >
  4795. <div
  4796. class="zuoyeYulan"
  4797. style="display: flex;justify-content: space-between;align-items: center;"
  4798. v-if="
  4799. worksStudent.length &&
  4800. worksStudent[toolIndex].length > 0
  4801. "
  4802. >
  4803. <div class="worksTop">
  4804. <div>作业预览</div>
  4805. <div
  4806. class="corOpen"
  4807. @click="contract(toolIndex)"
  4808. v-if="
  4809. isCloseList[toolIndex].isCloseBoolean &&
  4810. isCloseList[toolIndex].isClose == 0
  4811. "
  4812. >
  4813. 折叠
  4814. </div>
  4815. <div
  4816. class="corOpen"
  4817. @click="contract(toolIndex)"
  4818. v-if="isCloseList[toolIndex].isClose == 1"
  4819. >
  4820. 展开
  4821. </div>
  4822. </div>
  4823. <div
  4824. style="display: flex;"
  4825. v-if="
  4826. (courseDetail.userid == userid ||
  4827. (courseDetail.course_teacher &&
  4828. courseDetail.course_teacher.indexOf(userid) !=
  4829. -1)) &&
  4830. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4831. taskCount
  4832. ].eList &&
  4833. chapInfoList[courseType].chapterInfo[0].taskJson[
  4834. taskCount
  4835. ].eList.length) ||
  4836. (tool.eList && tool.eList.length)) &&
  4837. courseDetail.state == 6
  4838. "
  4839. >
  4840. <!-- <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"> -->
  4841. <div
  4842. @click="
  4843. resetLoopEva(
  4844. worksStudent[toolIndex],
  4845. chapInfoList[courseType].chapterInfo[0].taskJson[
  4846. taskCount
  4847. ].eList,
  4848. courseType,
  4849. taskCount,
  4850. toolIndex,
  4851. tool.toolDetail,
  4852. tool
  4853. )
  4854. "
  4855. style="margin-right:10px"
  4856. class="ScoreBtn"
  4857. >
  4858. 一键重置
  4859. </div>
  4860. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4861. <img
  4862. src="../../assets/icon/newIcons/rootImg.png"
  4863. alt=""
  4864. />
  4865. AI评分
  4866. </div>
  4867. <div
  4868. class="ScoreBtn"
  4869. v-else-if="!loopLoading[toolIndex].loading"
  4870. @click="
  4871. loopEva(
  4872. worksStudent[toolIndex],
  4873. chapInfoList[courseType].chapterInfo[0].taskJson[
  4874. taskCount
  4875. ].eList,
  4876. courseType,
  4877. taskCount,
  4878. toolIndex,
  4879. tool.toolDetail,
  4880. chapInfoList[courseType].chapterInfo[0].taskJson[
  4881. taskCount
  4882. ].taskDetail,
  4883. tool
  4884. )
  4885. "
  4886. >
  4887. <img
  4888. src="../../assets/icon/newIcons/rootImg.png"
  4889. alt=""
  4890. />
  4891. AI评分
  4892. </div>
  4893. <div class="ScoreBtn" v-else>
  4894. <img
  4895. src="../../assets/icon/newIcons/rootImg.png"
  4896. alt=""
  4897. />
  4898. 正在评分
  4899. </div>
  4900. </div>
  4901. </div>
  4902. <div
  4903. :id="'tool-' + toolIndex"
  4904. :style="{
  4905. height:
  4906. isCloseList[toolIndex].isClose == 1
  4907. ? retrnToolHeight('tool-' + toolIndex)
  4908. : 'auto',
  4909. overflow:
  4910. isCloseList[toolIndex].isClose == 1
  4911. ? 'hidden'
  4912. : 'unset'
  4913. }"
  4914. class="worksDetailBox"
  4915. v-if="
  4916. worksStudent.length &&
  4917. worksStudent[toolIndex].length > 0
  4918. "
  4919. >
  4920. <div
  4921. class="works"
  4922. style="
  4923. width: 200px;
  4924. height: 140px;
  4925. margin: 10px 10px 10px 0;
  4926. border-radius: 15px;
  4927. box-shadow: 0 0 6px 1px #dfdada;
  4928. "
  4929. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4930. :key="wIndex"
  4931. :class="w.type == 1 ? 'isTypeOne' : ''"
  4932. >
  4933. <div class="workImg">
  4934. <!-- <img
  4935. :src="word2"
  4936. @click="downloadFile(w.works)"
  4937. v-if="w.type == 12"
  4938. alt
  4939. /> -->
  4940. <img
  4941. :src="word2"
  4942. @click="
  4943. openCocoFlow(w)
  4944. "
  4945. alt
  4946. />
  4947. <div
  4948. class="answerScore"
  4949. v-if="w.score"
  4950. @click.stop="openScore(w)"
  4951. :class="{
  4952. rightW:
  4953. w.userid == userid ||
  4954. tType == 1 ||
  4955. tType == 4 ||
  4956. w.ateacher == userid
  4957. }"
  4958. >
  4959. {{ JSON.parse(w.score).wScore }}分
  4960. </div>
  4961. <div
  4962. class="answerScore"
  4963. @click.stop="openScore(w)"
  4964. v-else-if="
  4965. courseDetail.userid == userid &&
  4966. courseDetail.state != 5 &&
  4967. chapInfoList[courseType].chapterInfo[0]
  4968. .taskJson[taskCount].eList &&
  4969. chapInfoList[courseType].chapterInfo[0]
  4970. .taskJson[taskCount].eList.length
  4971. "
  4972. :class="{
  4973. rightW:
  4974. w.userid == userid ||
  4975. tType == 1 ||
  4976. tType == 4 ||
  4977. w.ateacher == userid
  4978. }"
  4979. >
  4980. 评分
  4981. </div>
  4982. <div
  4983. v-else-if="
  4984. (courseDetail.userid == userid ||
  4985. (courseDetail.course_teacher &&
  4986. courseDetail.course_teacher.indexOf(userid) !=
  4987. -1) ||
  4988. (w.userid == userid && sIsOpen)) &&
  4989. courseDetail.state == 6 &&
  4990. ((chapInfoList[courseType].chapterInfo[0]
  4991. .taskJson[taskCount].eList &&
  4992. chapInfoList[courseType].chapterInfo[0]
  4993. .taskJson[taskCount].eList.length) ||
  4994. (tool.eList && tool.eList.length))
  4995. "
  4996. >
  4997. <!-- <div
  4998. class="answerScore"
  4999. @click="markScoreDig(w.userid,toolIndex)"
  5000. :class="{
  5001. rightW:
  5002. w.userid == userid ||
  5003. tType == 1 ||
  5004. tType == 4 ||
  5005. w.ateacher == userid,
  5006. }"
  5007. >
  5008. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5009. </div> -->
  5010. <!-- @show="handleShow(toolIndex,wIndex)"
  5011. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5012. <el-popover
  5013. placement="top"
  5014. width="318"
  5015. :disabled="AIloading[toolIndex][wIndex].loading"
  5016. trigger="hover"
  5017. >
  5018. <markScore
  5019. :loading="AIloading[toolIndex][wIndex].loading"
  5020. :markScoreVisible="markScoreVisible"
  5021. :ref="`markSco${toolIndex}${wIndex}`"
  5022. @updateLoading="updateLoading"
  5023. @updateDocSco="updateDocSco"
  5024. @refreshOther="refreshOther"
  5025. @markScoreDig="markScoreDig"
  5026. :tool="tool"
  5027. :wIndex="wIndex"
  5028. :scoCon="w"
  5029. :toolIndex="toolIndex"
  5030. :key="refreshKey"
  5031. :stage="courseType"
  5032. :task="taskCount"
  5033. :scoTit="
  5034. chapInfoList[courseType].chapterInfo[0]
  5035. .taskJson[taskCount].eList
  5036. "
  5037. >
  5038. </markScore>
  5039. <div
  5040. class="answerScore"
  5041. @click="
  5042. markScoreDig2(
  5043. w.sName,
  5044. worksStudent,
  5045. w.userid,
  5046. toolIndex,
  5047. chapInfoList[courseType].chapterInfo[0]
  5048. .taskJson[taskCount].eList,
  5049. AIloading[toolIndex][wIndex].loading,
  5050. tool
  5051. )
  5052. "
  5053. slot="reference"
  5054. :class="{
  5055. rightW:
  5056. w.userid == userid ||
  5057. tType == 1 ||
  5058. tType == 4 ||
  5059. w.ateacher == userid
  5060. }"
  5061. >
  5062. <span v-if="AIloading[toolIndex][wIndex].sco">
  5063. {{
  5064. AIloading[toolIndex][wIndex].loading
  5065. ? "评分中"
  5066. : AIloading[toolIndex][wIndex].sco + "分"
  5067. }}
  5068. </span>
  5069. <span v-else>
  5070. {{
  5071. AIloading[toolIndex][wIndex].loading
  5072. ? "评分中"
  5073. : "评分"
  5074. }}
  5075. </span>
  5076. </div>
  5077. </el-popover>
  5078. </div>
  5079. <img
  5080. class="deleteImg"
  5081. src="../../assets/deleteworks.png"
  5082. v-if="
  5083. w.userid == userid || tType == 1 || tType == 4
  5084. "
  5085. @click.stop="deleteWorks(w.wid)"
  5086. alt
  5087. />
  5088. </div>
  5089. <div class="comment" style="min-width: 200px">
  5090. <div class="worksName">
  5091. <div>{{ w.sName }}</div>
  5092. </div>
  5093. <div class="commentList">
  5094. <div class="commentList">
  5095. <div
  5096. class="commentImg"
  5097. @click="
  5098. isLikes(
  5099. w.wid,
  5100. userid,
  5101. 1,
  5102. null,
  5103. w.isLikes,
  5104. w.sName
  5105. )
  5106. "
  5107. >
  5108. <img
  5109. :src="w.isLikes == true ? likes : noLikes"
  5110. alt=""
  5111. />
  5112. </div>
  5113. <div>{{ w.likesCount }}</div>
  5114. </div>
  5115. <div class="commentList" style="margin-right: 15px">
  5116. <div
  5117. class="commentImg"
  5118. @click="commentOther(w, toolIndex, wIndex)"
  5119. >
  5120. <img
  5121. src="../../assets/icon/comment/comment.png"
  5122. alt=""
  5123. />
  5124. </div>
  5125. <div>{{ w.commentCount }}</div>
  5126. </div>
  5127. </div>
  5128. </div>
  5129. </div>
  5130. </div>
  5131. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5132. 未提交
  5133. </div>
  5134. <div
  5135. class="noWorksS"
  5136. v-if="noWorksS && noWorksS[toolIndex].length"
  5137. >
  5138. <div
  5139. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5140. :key="sIndex"
  5141. class="noWorksName"
  5142. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5143. >
  5144. <el-tooltip
  5145. effect="dark"
  5146. :content="s.student"
  5147. placement="top"
  5148. >
  5149. <span>{{ s.student }}</span>
  5150. </el-tooltip>
  5151. </div>
  5152. </div>
  5153. </div>
  5154. <div
  5155. v-if="
  5156. tType &&
  5157. tType == 2 &&
  5158. !sIsOpen &&
  5159. tool.tool.indexOf(72) != -1
  5160. "
  5161. class="worksBox"
  5162. >
  5163. <div
  5164. class="zuoyeYulan"
  5165. v-if="workStudent[toolIndex].length > 0"
  5166. >
  5167. <span class="worksTitle">作业预览</span>
  5168. </div>
  5169. <div
  5170. class="worksDetailBox"
  5171. v-if="workStudent[toolIndex].length > 0"
  5172. >
  5173. <div
  5174. class="works"
  5175. style="
  5176. width: 200px;
  5177. height: 140px;
  5178. margin: 10px 10px 10px 0;
  5179. box-shadow: 0 0 6px 1px #dfdada;
  5180. "
  5181. v-for="(w, wIndex) in workStudent[toolIndex]"
  5182. :key="wIndex"
  5183. >
  5184. <div class="workImg">
  5185. <!-- <img
  5186. :src="word2"
  5187. @click="downloadFile(w.works)"
  5188. v-if="w.type == 12"
  5189. alt
  5190. /> -->
  5191. <img
  5192. :src="word2"
  5193. @click="
  5194. openCocoFlow(w)
  5195. "
  5196. alt
  5197. />
  5198. <div
  5199. class="answerScore"
  5200. v-if="w.score"
  5201. @click.stop="openScore(w)"
  5202. :class="{
  5203. rightW:
  5204. w.userid == userid || tType == 1 || tType == 4
  5205. }"
  5206. >
  5207. {{ JSON.parse(w.score).wScore }}分
  5208. </div>
  5209. <div
  5210. class="answerScore"
  5211. @click.stop="openScore(w)"
  5212. v-else-if="courseDetail.userid == userid"
  5213. :class="{
  5214. rightW:
  5215. w.userid == userid || tType == 1 || tType == 4
  5216. }"
  5217. >
  5218. 评分
  5219. </div>
  5220. <div
  5221. class="stuLookScore"
  5222. v-if="
  5223. w.userid == userid ||
  5224. (tType == 1 &&
  5225. courseDetail.state == 6 &&
  5226. ((chapInfoList[courseType].chapterInfo[0]
  5227. .taskJson[taskCount].eList &&
  5228. chapInfoList[courseType].chapterInfo[0]
  5229. .taskJson[taskCount].eList.length) ||
  5230. (tool.eList && tool.eList.length)))
  5231. "
  5232. >
  5233. <el-popover
  5234. placement="top"
  5235. width="318"
  5236. trigger="hover"
  5237. >
  5238. <markScore
  5239. :loading="AIloading[toolIndex][wIndex].loading"
  5240. :markScoreVisible="markScoreVisible"
  5241. :ref="`markSco${toolIndex}${wIndex}`"
  5242. @updateLoading="updateLoading"
  5243. @updateDocSco="updateDocSco"
  5244. @refreshOther="refreshOther"
  5245. @markScoreDig="markScoreDig"
  5246. :tool="tool"
  5247. :wIndex="wIndex"
  5248. :scoCon="w"
  5249. :toolIndex="toolIndex"
  5250. :key="refreshKey"
  5251. :stage="courseType"
  5252. :task="taskCount"
  5253. :scoTit="
  5254. chapInfoList[courseType].chapterInfo[0]
  5255. .taskJson[taskCount].eList
  5256. "
  5257. >
  5258. </markScore>
  5259. <div
  5260. @click="
  5261. markScoreDig2(
  5262. w.sName,
  5263. worksStudent,
  5264. w.userid,
  5265. toolIndex,
  5266. chapInfoList[courseType].chapterInfo[0]
  5267. .taskJson[taskCount].eList,
  5268. AIloading[toolIndex][wIndex].loading,
  5269. tool
  5270. )
  5271. "
  5272. slot="reference"
  5273. >
  5274. <span v-if="AIloading[toolIndex][wIndex].sco">
  5275. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5276. </span>
  5277. <span v-else>
  5278. 评分
  5279. </span>
  5280. </div>
  5281. </el-popover>
  5282. </div>
  5283. <img
  5284. class="deleteImg"
  5285. src="../../assets/deleteworks.png"
  5286. v-if="
  5287. w.userid == userid || tType == 1 || tType == 4
  5288. "
  5289. @click.stop="deleteWorks(w.wid)"
  5290. alt
  5291. />
  5292. </div>
  5293. <div class="worksName">
  5294. <div>{{ w.sName }}</div>
  5295. </div>
  5296. </div>
  5297. </div>
  5298. </div>
  5299. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5300. <div
  5301. style="display: flex;justify-content: space-between;align-items: center;"
  5302. >
  5303. <div
  5304. class="zuoyeYulan"
  5305. v-if="
  5306. worksStudent.length &&
  5307. worksStudent[toolIndex].length > 0
  5308. "
  5309. >
  5310. <span class="worksTitle">作业预览</span>
  5311. <div
  5312. class="corOpen"
  5313. @click="contract(toolIndex)"
  5314. v-if="
  5315. isCloseList[toolIndex].isCloseBoolean &&
  5316. isCloseList[toolIndex].isClose == 0
  5317. "
  5318. >
  5319. 折叠
  5320. </div>
  5321. <div
  5322. class="corOpen"
  5323. @click="contract(toolIndex)"
  5324. v-if="isCloseList[toolIndex].isClose == 1"
  5325. >
  5326. 展开
  5327. </div>
  5328. </div>
  5329. <div
  5330. style="display: flex;"
  5331. v-if="
  5332. (courseDetail.userid == userid ||
  5333. (courseDetail.course_teacher &&
  5334. courseDetail.course_teacher.indexOf(userid) !=
  5335. -1)) &&
  5336. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5337. taskCount
  5338. ].eList &&
  5339. chapInfoList[courseType].chapterInfo[0].taskJson[
  5340. taskCount
  5341. ].eList.length) ||
  5342. (tool.eList && tool.eList.length)) &&
  5343. courseDetail.state == 6
  5344. "
  5345. >
  5346. <!-- <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 "> -->
  5347. <div
  5348. style="margin-right:10px"
  5349. class="ScoreBtn"
  5350. @click="
  5351. resetLoopEva(
  5352. worksStudent[toolIndex],
  5353. chapInfoList[courseType].chapterInfo[0].taskJson[
  5354. taskCount
  5355. ].eList,
  5356. courseType,
  5357. taskCount,
  5358. toolIndex,
  5359. tool.toolDetail,
  5360. worksStudent
  5361. )
  5362. "
  5363. >
  5364. 一键重置
  5365. </div>
  5366. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5367. <img
  5368. src="../../assets/icon/newIcons/rootImg.png"
  5369. alt=""
  5370. />
  5371. AI评分
  5372. </div>
  5373. <div
  5374. class="ScoreBtn"
  5375. v-else-if="!loopLoading[toolIndex].loading"
  5376. @click="
  5377. loopEva(
  5378. worksStudent[toolIndex],
  5379. chapInfoList[courseType].chapterInfo[0].taskJson[
  5380. taskCount
  5381. ].eList,
  5382. courseType,
  5383. taskCount,
  5384. toolIndex,
  5385. tool.toolDetail,
  5386. chapInfoList[courseType].chapterInfo[0].taskJson[
  5387. taskCount
  5388. ].taskDetail,
  5389. tool
  5390. )
  5391. "
  5392. >
  5393. <img
  5394. src="../../assets/icon/newIcons/rootImg.png"
  5395. alt=""
  5396. />
  5397. AI评分
  5398. </div>
  5399. <div class="ScoreBtn" v-else>
  5400. <img
  5401. src="../../assets/icon/newIcons/rootImg.png"
  5402. alt=""
  5403. />
  5404. 正在评分
  5405. </div>
  5406. </div>
  5407. </div>
  5408. <div
  5409. :id="'tool-' + toolIndex"
  5410. :style="{
  5411. height:
  5412. isCloseList[toolIndex].isClose == 1
  5413. ? retrnToolHeight('tool-' + toolIndex)
  5414. : 'auto',
  5415. overflow:
  5416. isCloseList[toolIndex].isClose == 1
  5417. ? 'hidden'
  5418. : 'unset'
  5419. }"
  5420. class="worksDetailBox"
  5421. v-if="
  5422. worksStudent.length &&
  5423. worksStudent[toolIndex].length > 0
  5424. "
  5425. >
  5426. <div
  5427. class="works"
  5428. style="
  5429. width: 200px;
  5430. height: 140px;
  5431. margin: 10px 10px 10px 0;
  5432. border-radius: 15px;
  5433. box-shadow: 0 0 6px 1px #dfdada;
  5434. "
  5435. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5436. :key="wIndex"
  5437. :class="w.type == 1 ? 'isTypeOne' : ''"
  5438. >
  5439. <div class="workImg" v-if="w.type == 0">
  5440. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5441. <img
  5442. :src="w.works"
  5443. @click="previewImg(w.works, w)"
  5444. alt
  5445. />
  5446. <div
  5447. class="answerScore"
  5448. v-if="w.score"
  5449. @click.stop="openScore(w)"
  5450. :class="{
  5451. rightW:
  5452. w.userid == userid ||
  5453. tType == 1 ||
  5454. tType == 4 ||
  5455. w.ateacher == userid
  5456. }"
  5457. >
  5458. {{ JSON.parse(w.score).wScore }}分
  5459. </div>
  5460. <div
  5461. class="answerScore"
  5462. @click.stop="openScore(w)"
  5463. v-else-if="
  5464. courseDetail.userid == userid &&
  5465. courseDetail.state != 6 &&
  5466. chapInfoList[courseType].chapterInfo[0]
  5467. .taskJson[taskCount].eList &&
  5468. chapInfoList[courseType].chapterInfo[0]
  5469. .taskJson[taskCount].eList.length
  5470. "
  5471. :class="{
  5472. rightW:
  5473. w.userid == userid ||
  5474. tType == 1 ||
  5475. tType == 4 ||
  5476. w.ateacher == userid
  5477. }"
  5478. >
  5479. 评分
  5480. </div>
  5481. <!-- <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"> -->
  5482. <div
  5483. v-else-if="
  5484. (courseDetail.userid == userid ||
  5485. (courseDetail.course_teacher &&
  5486. courseDetail.course_teacher.indexOf(userid) !=
  5487. -1) ||
  5488. (w.userid == userid && sIsOpen)) &&
  5489. courseDetail.state == 6 &&
  5490. ((chapInfoList[courseType].chapterInfo[0]
  5491. .taskJson[taskCount].eList &&
  5492. chapInfoList[courseType].chapterInfo[0]
  5493. .taskJson[taskCount].eList.length) ||
  5494. (tool.eList && tool.eList.length))
  5495. "
  5496. >
  5497. <el-popover
  5498. placement="top"
  5499. width="318"
  5500. :disabled="AIloading[toolIndex][wIndex].loading"
  5501. trigger="hover"
  5502. >
  5503. <markScore
  5504. :loading="AIloading[toolIndex][wIndex].loading"
  5505. :markScoreVisible="markScoreVisible"
  5506. :ref="`markSco${toolIndex}${wIndex}`"
  5507. @updateLoading="updateLoading"
  5508. @updateDocSco="updateDocSco"
  5509. @refreshOther="refreshOther"
  5510. @markScoreDig="markScoreDig"
  5511. :tool="tool"
  5512. :wIndex="wIndex"
  5513. :scoCon="w"
  5514. :toolIndex="toolIndex"
  5515. :key="refreshKey"
  5516. :stage="courseType"
  5517. :task="taskCount"
  5518. :scoTit="
  5519. chapInfoList[courseType].chapterInfo[0]
  5520. .taskJson[taskCount].eList
  5521. "
  5522. >
  5523. </markScore>
  5524. <div
  5525. class="answerScore"
  5526. @click="
  5527. markScoreDig2(
  5528. w.sName,
  5529. worksStudent,
  5530. w.userid,
  5531. toolIndex,
  5532. chapInfoList[courseType].chapterInfo[0]
  5533. .taskJson[taskCount].eList,
  5534. AIloading[toolIndex][wIndex].loading,
  5535. tool
  5536. )
  5537. "
  5538. slot="reference"
  5539. :class="{
  5540. rightW:
  5541. w.userid == userid ||
  5542. tType == 1 ||
  5543. tType == 4 ||
  5544. w.ateacher == userid
  5545. }"
  5546. >
  5547. <span v-if="AIloading[toolIndex][wIndex].sco">
  5548. {{
  5549. AIloading[toolIndex][wIndex].loading
  5550. ? "评分中"
  5551. : AIloading[toolIndex][wIndex].sco + "分"
  5552. }}
  5553. </span>
  5554. <span v-else>
  5555. {{
  5556. AIloading[toolIndex][wIndex].loading
  5557. ? "评分中"
  5558. : "评分"
  5559. }}
  5560. </span>
  5561. </div>
  5562. </el-popover>
  5563. </div>
  5564. <img
  5565. class="deleteImg"
  5566. src="../../assets/deleteworks.png"
  5567. v-if="
  5568. w.userid == userid || tType == 1 || tType == 4
  5569. "
  5570. @click.stop="deleteWorks(w.wid)"
  5571. alt
  5572. />
  5573. </div>
  5574. <div
  5575. class="workImg"
  5576. style="cursor: pointer"
  5577. v-if="w.type == 1"
  5578. >
  5579. <img :src="word" @click="openFile(w.works)" alt />
  5580. <!-- @click="openFile(w.works)" -->
  5581. <div
  5582. class="answerScore"
  5583. v-if="w.score"
  5584. @click.stop="openScore(w)"
  5585. :class="{
  5586. rightW:
  5587. w.userid == userid ||
  5588. tType == 1 ||
  5589. tType == 4 ||
  5590. w.ateacher == userid
  5591. }"
  5592. >
  5593. {{ JSON.parse(w.score).wScore }}分
  5594. </div>
  5595. <div
  5596. class="answerScore"
  5597. @click.stop="openScore(w)"
  5598. v-else-if="
  5599. courseDetail.userid == userid &&
  5600. courseDetail.state != 6 &&
  5601. chapInfoList[courseType].chapterInfo[0]
  5602. .taskJson[taskCount].eList &&
  5603. chapInfoList[courseType].chapterInfo[0]
  5604. .taskJson[taskCount].eList.length
  5605. "
  5606. :class="{
  5607. rightW:
  5608. w.userid == userid ||
  5609. tType == 1 ||
  5610. tType == 4 ||
  5611. w.ateacher == userid
  5612. }"
  5613. >
  5614. 评分
  5615. </div>
  5616. <!-- <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"> -->
  5617. <div
  5618. v-else-if="
  5619. (courseDetail.userid == userid ||
  5620. (courseDetail.course_teacher &&
  5621. courseDetail.course_teacher.indexOf(userid) !=
  5622. -1) ||
  5623. (w.userid == userid && sIsOpen)) &&
  5624. courseDetail.state == 6 &&
  5625. ((chapInfoList[courseType].chapterInfo[0]
  5626. .taskJson[taskCount].eList &&
  5627. chapInfoList[courseType].chapterInfo[0]
  5628. .taskJson[taskCount].eList.length) ||
  5629. (tool.eList && tool.eList.length))
  5630. "
  5631. >
  5632. <el-popover
  5633. placement="top"
  5634. width="318"
  5635. :disabled="AIloading[toolIndex][wIndex].loading"
  5636. trigger="hover"
  5637. >
  5638. <markScore
  5639. :loading="AIloading[toolIndex][wIndex].loading"
  5640. :markScoreVisible="markScoreVisible"
  5641. :ref="`markSco${toolIndex}${wIndex}`"
  5642. @updateLoading="updateLoading"
  5643. @updateDocSco="updateDocSco"
  5644. @refreshOther="refreshOther"
  5645. @markScoreDig="markScoreDig"
  5646. :tool="tool"
  5647. :wIndex="wIndex"
  5648. :scoCon="w"
  5649. :toolIndex="toolIndex"
  5650. :key="refreshKey"
  5651. :stage="courseType"
  5652. :task="taskCount"
  5653. :scoTit="
  5654. chapInfoList[courseType].chapterInfo[0]
  5655. .taskJson[taskCount].eList
  5656. "
  5657. >
  5658. </markScore>
  5659. <div
  5660. class="answerScore"
  5661. @click="
  5662. markScoreDig2(
  5663. w.sName,
  5664. worksStudent,
  5665. w.userid,
  5666. toolIndex,
  5667. chapInfoList[courseType].chapterInfo[0]
  5668. .taskJson[taskCount].eList,
  5669. AIloading[toolIndex][wIndex].loading,
  5670. tool
  5671. )
  5672. "
  5673. slot="reference"
  5674. :class="{
  5675. rightW:
  5676. w.userid == userid ||
  5677. tType == 1 ||
  5678. tType == 4 ||
  5679. w.ateacher == userid
  5680. }"
  5681. >
  5682. <span v-if="AIloading[toolIndex][wIndex].sco">
  5683. {{
  5684. AIloading[toolIndex][wIndex].loading
  5685. ? "评分中"
  5686. : AIloading[toolIndex][wIndex].sco + "分"
  5687. }}
  5688. </span>
  5689. <span v-else>
  5690. {{
  5691. AIloading[toolIndex][wIndex].loading
  5692. ? "评分中"
  5693. : "评分"
  5694. }}
  5695. </span>
  5696. </div>
  5697. </el-popover>
  5698. </div>
  5699. <img
  5700. class="deleteImg"
  5701. src="../../assets/deleteworks.png"
  5702. v-if="
  5703. w.userid == userid || tType == 1 || tType == 4
  5704. "
  5705. @click.stop="deleteWorks(w.wid)"
  5706. alt
  5707. />
  5708. </div>
  5709. <div class="workImg" v-if="w.type == 3">
  5710. <img
  5711. style="cursor: pointer"
  5712. :src="video"
  5713. @click="openVideo(w)"
  5714. alt
  5715. />
  5716. <!-- @click="openVideo(w.works)" -->
  5717. <div
  5718. class="answerScore"
  5719. v-if="w.score"
  5720. @click.stop="openScore(w)"
  5721. :class="{
  5722. rightW:
  5723. w.userid == userid ||
  5724. tType == 1 ||
  5725. tType == 4 ||
  5726. w.ateacher == userid
  5727. }"
  5728. >
  5729. {{ JSON.parse(w.score).wScore }}分
  5730. </div>
  5731. <div
  5732. class="answerScore"
  5733. @click.stop="openScore(w)"
  5734. v-else-if="
  5735. courseDetail.userid == userid &&
  5736. courseDetail.state != 6 &&
  5737. chapInfoList[courseType].chapterInfo[0]
  5738. .taskJson[taskCount].eList &&
  5739. chapInfoList[courseType].chapterInfo[0]
  5740. .taskJson[taskCount].eList.length
  5741. "
  5742. :class="{
  5743. rightW:
  5744. w.userid == userid ||
  5745. tType == 1 ||
  5746. tType == 4 ||
  5747. w.ateacher == userid
  5748. }"
  5749. >
  5750. 评分
  5751. </div>
  5752. <!-- <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"> -->
  5753. <div
  5754. v-else-if="
  5755. (courseDetail.userid == userid ||
  5756. (courseDetail.course_teacher &&
  5757. courseDetail.course_teacher.indexOf(userid) !=
  5758. -1) ||
  5759. (w.userid == userid && sIsOpen)) &&
  5760. courseDetail.state == 6 &&
  5761. ((chapInfoList[courseType].chapterInfo[0]
  5762. .taskJson[taskCount].eList &&
  5763. chapInfoList[courseType].chapterInfo[0]
  5764. .taskJson[taskCount].eList.length) ||
  5765. (tool.eList && tool.eList.length))
  5766. "
  5767. >
  5768. <el-popover
  5769. placement="top"
  5770. width="318"
  5771. :disabled="AIloading[toolIndex][wIndex].loading"
  5772. trigger="hover"
  5773. >
  5774. <markScore
  5775. :loading="AIloading[toolIndex][wIndex].loading"
  5776. :markScoreVisible="markScoreVisible"
  5777. :ref="`markSco${toolIndex}${wIndex}`"
  5778. @updateLoading="updateLoading"
  5779. @updateDocSco="updateDocSco"
  5780. @refreshOther="refreshOther"
  5781. @markScoreDig="markScoreDig"
  5782. :tool="tool"
  5783. :wIndex="wIndex"
  5784. :scoCon="w"
  5785. :toolIndex="toolIndex"
  5786. :key="refreshKey"
  5787. :stage="courseType"
  5788. :task="taskCount"
  5789. :scoTit="
  5790. chapInfoList[courseType].chapterInfo[0]
  5791. .taskJson[taskCount].eList
  5792. "
  5793. >
  5794. </markScore>
  5795. <div
  5796. class="answerScore"
  5797. @click="
  5798. markScoreDig2(
  5799. w.sName,
  5800. worksStudent,
  5801. w.userid,
  5802. toolIndex,
  5803. chapInfoList[courseType].chapterInfo[0]
  5804. .taskJson[taskCount].eList,
  5805. AIloading[toolIndex][wIndex].loading,
  5806. tool
  5807. )
  5808. "
  5809. slot="reference"
  5810. :class="{
  5811. rightW:
  5812. w.userid == userid ||
  5813. tType == 1 ||
  5814. tType == 4 ||
  5815. w.ateacher == userid
  5816. }"
  5817. >
  5818. <span v-if="AIloading[toolIndex][wIndex].sco">
  5819. {{
  5820. AIloading[toolIndex][wIndex].loading
  5821. ? "评分中"
  5822. : AIloading[toolIndex][wIndex].sco + "分"
  5823. }}
  5824. </span>
  5825. <span v-else>
  5826. {{
  5827. AIloading[toolIndex][wIndex].loading
  5828. ? "评分中"
  5829. : "评分"
  5830. }}
  5831. </span>
  5832. </div>
  5833. </el-popover>
  5834. </div>
  5835. <img
  5836. class="deleteImg"
  5837. src="../../assets/deleteworks.png"
  5838. v-if="
  5839. w.userid == userid || tType == 1 || tType == 4
  5840. "
  5841. @click.stop="deleteWorks(w.wid)"
  5842. alt
  5843. />
  5844. </div>
  5845. <div class="comment" style="min-width: 200px">
  5846. <div class="worksName">
  5847. <div
  5848. style="cursor: pointer"
  5849. @click="
  5850. openSname(w.sName, w.wid, toolIndex, w.userid)
  5851. "
  5852. >
  5853. {{ w.sName }}
  5854. </div>
  5855. </div>
  5856. <div class="commentList">
  5857. <div class="commentList">
  5858. <div
  5859. class="commentImg"
  5860. @click="
  5861. isLikes(
  5862. w.wid,
  5863. userid,
  5864. 1,
  5865. null,
  5866. w.isLikes,
  5867. w.sName
  5868. )
  5869. "
  5870. >
  5871. <img
  5872. :src="w.isLikes == true ? likes : noLikes"
  5873. alt=""
  5874. />
  5875. </div>
  5876. <div>{{ w.likesCount }}</div>
  5877. </div>
  5878. <div class="commentList" style="margin-right: 15px">
  5879. <div
  5880. class="commentImg"
  5881. @click="commentOther(w, toolIndex, wIndex)"
  5882. >
  5883. <img
  5884. src="../../assets/icon/comment/comment.png"
  5885. alt=""
  5886. />
  5887. </div>
  5888. <div>{{ w.commentCount }}</div>
  5889. </div>
  5890. </div>
  5891. </div>
  5892. </div>
  5893. </div>
  5894. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5895. 未提交
  5896. </div>
  5897. <div
  5898. class="noWorksS"
  5899. v-if="noWorksS && noWorksS[toolIndex].length"
  5900. >
  5901. <div
  5902. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5903. :key="sIndex"
  5904. class="noWorksName"
  5905. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5906. >
  5907. <el-tooltip
  5908. effect="dark"
  5909. :content="s.student"
  5910. placement="top"
  5911. >
  5912. <span>{{ s.student }}</span>
  5913. </el-tooltip>
  5914. </div>
  5915. </div>
  5916. </div>
  5917. <div
  5918. v-if="
  5919. tType &&
  5920. ((tType == 2 && sIsOpen == true) ||
  5921. tType == 1 ||
  5922. tType == 4) &&
  5923. tool.tool.indexOf(4) != -1 &&
  5924. (tool.askJson[0].answer ||
  5925. tool.askJson[0].answer === 0) &&
  5926. checkJson[toolIndex].length
  5927. "
  5928. class="xuan_right_box"
  5929. >
  5930. <div
  5931. class="tool_right_box"
  5932. v-for="(item, index) in tool.askJson"
  5933. :key="index"
  5934. >
  5935. <div style="width: calc(100% - 30px);">
  5936. <el-tooltip
  5937. effect="light"
  5938. :content="index + 1 + '、' + item.askstitle"
  5939. placement="top"
  5940. popper-class="text_tooltip"
  5941. >
  5942. <div
  5943. style="
  5944. width: calc(100% - 130px);
  5945. display: block;
  5946. white-space: nowrap;
  5947. overflow: hidden;
  5948. text-overflow: ellipsis;
  5949. word-break: break-word;
  5950. cursor: pointer;
  5951. "
  5952. >
  5953. {{ index + 1 + "、" + item.askstitle }}
  5954. </div>
  5955. </el-tooltip>
  5956. </div>
  5957. <div class="right_box_xuan">
  5958. <span>正确率</span>
  5959. <span>{{
  5960. (checkJson[toolIndex][index].right
  5961. ? checkJson[toolIndex][index].right
  5962. : 0) + "%"
  5963. }}</span>
  5964. </div>
  5965. </div>
  5966. </div>
  5967. <div
  5968. class="xuan_right_box"
  5969. style="background: unset; padding: 0 10px"
  5970. v-if="
  5971. tType &&
  5972. ((tType == 2 && sIsOpen == true) ||
  5973. tType == 1 ||
  5974. tType == 4) &&
  5975. tool.tool.indexOf(4) != -1
  5976. "
  5977. >
  5978. <AskStatic
  5979. v-if="
  5980. worksStudent.length &&
  5981. worksStudent[toolIndex].length > 0
  5982. "
  5983. :askJSON="tool"
  5984. :checkJson="checkJson[toolIndex]"
  5985. ></AskStatic>
  5986. </div>
  5987. <div
  5988. v-if="
  5989. tType &&
  5990. ((tType == 2 && sIsOpen == true) ||
  5991. tType == 1 ||
  5992. tType == 4) &&
  5993. tool.tool.indexOf(4) != -1
  5994. "
  5995. class="worksBox"
  5996. >
  5997. <div
  5998. class="zuoyeYulan"
  5999. v-if="
  6000. worksStudent.length &&
  6001. worksStudent[toolIndex].length > 0
  6002. "
  6003. >
  6004. <div class="worksTop">
  6005. <div>作业预览</div>
  6006. <div
  6007. class="corOpen"
  6008. @click="contract(toolIndex)"
  6009. v-if="
  6010. isCloseList[toolIndex].isCloseBoolean &&
  6011. isCloseList[toolIndex].isClose == 0
  6012. "
  6013. >
  6014. 折叠
  6015. </div>
  6016. <div
  6017. class="corOpen"
  6018. @click="contract(toolIndex)"
  6019. v-if="isCloseList[toolIndex].isClose == 1"
  6020. >
  6021. 展开
  6022. </div>
  6023. </div>
  6024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6025. </div>
  6026. <div>
  6027. <div
  6028. :id="'tool-' + toolIndex"
  6029. :style="{
  6030. height:
  6031. isCloseList[toolIndex].isClose == 1
  6032. ? retrnToolHeight('tool-' + toolIndex)
  6033. : 'auto',
  6034. overflow:
  6035. isCloseList[toolIndex].isClose == 1
  6036. ? 'hidden'
  6037. : 'unset'
  6038. }"
  6039. class="worksDetailBox"
  6040. v-if="
  6041. worksStudent.length &&
  6042. worksStudent[toolIndex].length > 0
  6043. "
  6044. >
  6045. <div
  6046. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6047. :key="wIndex"
  6048. class="isWorksName2"
  6049. @click="
  6050. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6051. "
  6052. >
  6053. {{ w.sName }}
  6054. <img
  6055. class="deleteImg deleteImg2"
  6056. src="../../assets/deleteworks.png"
  6057. v-if="
  6058. w.userid == userid || tType == 1 || tType == 4
  6059. "
  6060. @click.stop="deleteWorks(w.wid)"
  6061. alt
  6062. />
  6063. </div>
  6064. <!-- <div class="works" style="
  6065. width: 200px;
  6066. height: 140px;
  6067. border-radius: 10px;
  6068. box-shadow: 0 0 6px 1px #dfdada;
  6069. overflow: hidden;
  6070. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6071. <div class="workImg">
  6072. <img src="../../assets/icon/works/noImg.png" @click="
  6073. openTools(
  6074. 4,
  6075. toolIndex,
  6076. taskCount,
  6077. w.works,
  6078. w.sName
  6079. )
  6080. " alt />
  6081. </div>
  6082. <div class="worksName">
  6083. <div>{{ w.sName }}</div>
  6084. <div>{{ w.time }}</div>
  6085. </div>
  6086. </div> -->
  6087. </div>
  6088. </div>
  6089. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6090. 未提交
  6091. </div>
  6092. <div
  6093. class="noWorksS"
  6094. v-if="noWorksS && noWorksS[toolIndex].length"
  6095. >
  6096. <div
  6097. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6098. :key="sIndex"
  6099. class="noWorksName"
  6100. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6101. >
  6102. <el-tooltip
  6103. effect="dark"
  6104. :content="s.student"
  6105. placement="top"
  6106. >
  6107. <span>{{ s.student }}</span>
  6108. </el-tooltip>
  6109. </div>
  6110. </div>
  6111. </div>
  6112. <div
  6113. v-if="
  6114. tType &&
  6115. ((tType == 2 && sIsOpen == true) ||
  6116. tType == 1 ||
  6117. tType == 4) &&
  6118. tool.tool.indexOf(45) != -1 &&
  6119. (tool.testJson.testJson[0].answer ||
  6120. tool.testJson.testJson[0].answer === 0) &&
  6121. checkJson[toolIndex].length
  6122. "
  6123. class="xuan_right_box"
  6124. >
  6125. <div
  6126. class="tool_right_box"
  6127. v-for="(item, index) in tool.testJson.testJson"
  6128. :key="index"
  6129. >
  6130. <div class="right_box_xuan" style="margin-right: 10px">
  6131. <span>正确率</span>
  6132. <span>{{
  6133. (checkJson[toolIndex][index].right
  6134. ? checkJson[toolIndex][index].right
  6135. : 0) + "%"
  6136. }}</span>
  6137. </div>
  6138. <div style="width: calc(100% - 30px);">
  6139. <el-tooltip
  6140. effect="light"
  6141. :content="index + 1 + '、' + item.teststitle"
  6142. placement="top"
  6143. popper-class="text_tooltip"
  6144. >
  6145. <div
  6146. style="
  6147. width: calc(100% - 130px);
  6148. display: block;
  6149. white-space: nowrap;
  6150. overflow: hidden;
  6151. text-overflow: ellipsis;
  6152. word-break: break-word;
  6153. cursor: pointer;
  6154. "
  6155. >
  6156. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6157. </div>
  6158. </el-tooltip>
  6159. </div>
  6160. </div>
  6161. </div>
  6162. <div
  6163. class="xuan_right_box"
  6164. style="background: unset; padding: 0 10px; width: 91.5%"
  6165. v-if="
  6166. tType &&
  6167. ((tType == 2 && sIsOpen == true) ||
  6168. tType == 1 ||
  6169. tType == 4) &&
  6170. tool.tool.indexOf(45) != -1
  6171. "
  6172. >
  6173. <AskStatic2
  6174. v-if="
  6175. worksStudent.length &&
  6176. worksStudent[toolIndex].length > 0
  6177. "
  6178. :askJSON="tool"
  6179. :checkJson="checkJson[toolIndex]"
  6180. ></AskStatic2>
  6181. </div>
  6182. <div
  6183. v-if="
  6184. tType &&
  6185. ((tType == 2 && sIsOpen == true) ||
  6186. tType == 1 ||
  6187. tType == 4) &&
  6188. tool.tool.indexOf(45) != -1
  6189. "
  6190. class="worksBox"
  6191. >
  6192. <div
  6193. class="zuoyeYulan"
  6194. v-if="
  6195. worksStudent.length &&
  6196. worksStudent[toolIndex].length > 0
  6197. "
  6198. >
  6199. <div class="worksTop">
  6200. <div>作业预览</div>
  6201. <div
  6202. class="corOpen"
  6203. @click="contract(toolIndex)"
  6204. v-if="
  6205. isCloseList[toolIndex].isCloseBoolean &&
  6206. isCloseList[toolIndex].isClose == 0
  6207. "
  6208. >
  6209. 折叠
  6210. </div>
  6211. <div
  6212. class="corOpen"
  6213. @click="contract(toolIndex)"
  6214. v-if="isCloseList[toolIndex].isClose == 1"
  6215. >
  6216. 展开
  6217. </div>
  6218. </div>
  6219. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6220. </div>
  6221. <div>
  6222. <div
  6223. :id="'tool-' + toolIndex"
  6224. :style="{
  6225. height:
  6226. isCloseList[toolIndex].isClose == 1
  6227. ? retrnToolHeight('tool-' + toolIndex)
  6228. : 'auto',
  6229. overflow:
  6230. isCloseList[toolIndex].isClose == 1
  6231. ? 'hidden'
  6232. : 'unset'
  6233. }"
  6234. class="worksDetailBox"
  6235. v-if="
  6236. worksStudent.length &&
  6237. worksStudent[toolIndex].length > 0
  6238. "
  6239. >
  6240. <div
  6241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6242. :key="wIndex"
  6243. class="isWorksName2"
  6244. @click="
  6245. openTools(
  6246. 45,
  6247. toolIndex,
  6248. taskCount,
  6249. w.works,
  6250. w.sName
  6251. )
  6252. "
  6253. >
  6254. {{ w.sName }}
  6255. <img
  6256. class="deleteImg deleteImg2"
  6257. src="../../assets/deleteworks.png"
  6258. v-if="
  6259. w.userid == userid || tType == 1 || tType == 4
  6260. "
  6261. @click.stop="deleteWorks(w.wid)"
  6262. alt
  6263. />
  6264. </div>
  6265. </div>
  6266. </div>
  6267. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6268. 未提交
  6269. </div>
  6270. <div
  6271. class="noWorksS"
  6272. v-if="noWorksS && noWorksS[toolIndex].length"
  6273. >
  6274. <div
  6275. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6276. :key="sIndex"
  6277. class="noWorksName"
  6278. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6279. >
  6280. <el-tooltip
  6281. effect="dark"
  6282. :content="s.student"
  6283. placement="top"
  6284. >
  6285. <span>{{ s.student }}</span>
  6286. </el-tooltip>
  6287. </div>
  6288. </div>
  6289. </div>
  6290. <div
  6291. v-if="
  6292. tType &&
  6293. ((tType == 2 && sIsOpen == true) ||
  6294. tType == 1 ||
  6295. tType == 4) &&
  6296. tool.tool.indexOf(69) != -1
  6297. "
  6298. class="worksBox"
  6299. >
  6300. <div
  6301. class="zuoyeYulan"
  6302. v-if="
  6303. worksStudent.length &&
  6304. worksStudent[toolIndex].length > 0
  6305. "
  6306. >
  6307. <div class="worksTop">
  6308. <div>作业预览</div>
  6309. <div
  6310. class="corOpen"
  6311. @click="contract(toolIndex)"
  6312. v-if="
  6313. isCloseList[toolIndex].isCloseBoolean &&
  6314. isCloseList[toolIndex].isClose == 0
  6315. "
  6316. >
  6317. 折叠
  6318. </div>
  6319. <div
  6320. class="corOpen"
  6321. @click="contract(toolIndex)"
  6322. v-if="isCloseList[toolIndex].isClose == 1"
  6323. >
  6324. 展开
  6325. </div>
  6326. </div>
  6327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6328. </div>
  6329. <div>
  6330. <div
  6331. :id="'tool-' + toolIndex"
  6332. :style="{
  6333. height:
  6334. isCloseList[toolIndex].isClose == 1
  6335. ? retrnToolHeight('tool-' + toolIndex)
  6336. : 'auto',
  6337. overflow:
  6338. isCloseList[toolIndex].isClose == 1
  6339. ? 'hidden'
  6340. : 'unset'
  6341. }"
  6342. class="worksDetailBox"
  6343. v-if="
  6344. worksStudent.length &&
  6345. worksStudent[toolIndex].length > 0
  6346. "
  6347. >
  6348. <div
  6349. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6350. :key="wIndex"
  6351. class="isWorksName2"
  6352. style="width: 160px;height: 65px;line-height: 65px;"
  6353. @click="
  6354. openTools(
  6355. 69,
  6356. toolIndex,
  6357. taskCount,
  6358. w.works,
  6359. w.sName,
  6360. w.wid
  6361. )
  6362. "
  6363. >
  6364. {{ w.sName }}
  6365. <img
  6366. class="deleteImg1"
  6367. src="../../assets/evaEnglish.png"
  6368. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6369. alt
  6370. v-if="
  6371. (courseDetail &&
  6372. (courseDetail.userid == userid ||
  6373. (courseDetail.course_teacher &&
  6374. courseDetail.course_teacher.indexOf(
  6375. userid
  6376. ) != -1))) ||
  6377. w.aiCode || w.teacherCode
  6378. "
  6379. />
  6380. <img
  6381. class="deleteImg deleteImg2"
  6382. src="../../assets/deleteworks.png"
  6383. v-if="
  6384. w.userid == userid || tType == 1 || tType == 4
  6385. "
  6386. @click.stop="deleteWorks(w.wid)"
  6387. alt
  6388. />
  6389. </div>
  6390. </div>
  6391. </div>
  6392. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6393. 未提交
  6394. </div>
  6395. <div
  6396. class="noWorksS"
  6397. v-if="noWorksS && noWorksS[toolIndex].length"
  6398. >
  6399. <div
  6400. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6401. :key="sIndex"
  6402. class="noWorksName"
  6403. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6404. >
  6405. <el-tooltip
  6406. effect="dark"
  6407. :content="s.student"
  6408. placement="top"
  6409. >
  6410. <span>{{ s.student }}</span>
  6411. </el-tooltip>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div
  6416. v-if="
  6417. tType &&
  6418. ((tType == 2 && sIsOpen == true) ||
  6419. tType == 1 ||
  6420. tType == 4) &&
  6421. tool.tool.indexOf(15) != -1
  6422. "
  6423. class="worksBox"
  6424. >
  6425. <div
  6426. class="zuoyeYulan"
  6427. v-if="
  6428. (worksStudent.length &&
  6429. worksStudent[toolIndex].length > 0) ||
  6430. (courseGroup.group && courseGroup.group.length)
  6431. "
  6432. >
  6433. <div class="worksTop">
  6434. <div>作业预览</div>
  6435. <div
  6436. class="corOpen"
  6437. @click="contract(toolIndex)"
  6438. v-if="
  6439. isCloseList[toolIndex].isCloseBoolean &&
  6440. isCloseList[toolIndex].isClose == 0
  6441. "
  6442. >
  6443. 折叠
  6444. </div>
  6445. <div
  6446. class="corOpen"
  6447. @click="contract(toolIndex)"
  6448. v-if="isCloseList[toolIndex].isClose == 1"
  6449. >
  6450. 展开
  6451. </div>
  6452. </div>
  6453. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6454. </div>
  6455. <div
  6456. class="group_workBox"
  6457. v-for="(g, gindex) in courseGroup.group"
  6458. :key="gindex"
  6459. >
  6460. <div class="group_box">
  6461. <div class="group_title">
  6462. <el-tooltip
  6463. class="item"
  6464. effect="light"
  6465. :content="g.name"
  6466. placement="top"
  6467. >
  6468. <div class="group_name">{{ g.name }}</div>
  6469. </el-tooltip>
  6470. </div>
  6471. <div
  6472. class="group_work"
  6473. v-if="
  6474. g.works &&
  6475. g.works.length &&
  6476. g.works[toolIndex].length
  6477. "
  6478. >
  6479. <div
  6480. class="works"
  6481. v-for="(w, wIndex) in g.works[toolIndex]"
  6482. :key="wIndex"
  6483. >
  6484. <div
  6485. class="workImg"
  6486. style="
  6487. border-radius: 15px;
  6488. box-shadow: 0px 0px 5px 5px #eee;
  6489. "
  6490. >
  6491. <div
  6492. class="answerBg"
  6493. style="border-radius: 15px 15px 0 0"
  6494. @click="
  6495. commentOther(w, toolIndex, wIndex, null, g.id)
  6496. "
  6497. >
  6498. <div class="answerContent">
  6499. {{ JSON.parse(w.works)[0].answer }}
  6500. </div>
  6501. <div
  6502. class="answerScore"
  6503. v-if="w.score"
  6504. @click.stop="openScore(w)"
  6505. :class="{
  6506. rightW:
  6507. w.userid == userid ||
  6508. tType == 1 ||
  6509. tType == 4
  6510. }"
  6511. >
  6512. {{ JSON.parse(w.score).wScore }}分
  6513. </div>
  6514. <div
  6515. class="answerScore"
  6516. @click.stop="openScore(w)"
  6517. v-else-if="
  6518. courseDetail.userid == userid &&
  6519. courseDetail.state != 6 &&
  6520. chapInfoList[courseType].chapterInfo[0]
  6521. .taskJson[taskCount].eList &&
  6522. chapInfoList[courseType].chapterInfo[0]
  6523. .taskJson[taskCount].eList.length
  6524. "
  6525. :class="{
  6526. rightW:
  6527. w.userid == userid ||
  6528. tType == 1 ||
  6529. tType == 4
  6530. }"
  6531. >
  6532. 评分
  6533. </div>
  6534. <!-- <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"> -->
  6535. <div
  6536. v-else-if="
  6537. (courseDetail.userid == userid ||
  6538. (courseDetail.course_teacher &&
  6539. courseDetail.course_teacher.indexOf(
  6540. userid
  6541. ) != -1) ||
  6542. (w.userid == userid && sIsOpen)) &&
  6543. courseDetail.state == 6 &&
  6544. ((chapInfoList[courseType].chapterInfo[0]
  6545. .taskJson[taskCount].eList &&
  6546. chapInfoList[courseType].chapterInfo[0]
  6547. .taskJson[taskCount].eList.length) ||
  6548. (tool.eList && tool.eList.length))
  6549. "
  6550. >
  6551. <el-popover
  6552. placement="top"
  6553. width="318"
  6554. :disabled="
  6555. AIloading[toolIndex][wIndex].loading
  6556. "
  6557. trigger="hover"
  6558. >
  6559. <markScore
  6560. :loading="
  6561. AIloading[toolIndex][wIndex].loading
  6562. "
  6563. :markScoreVisible="markScoreVisible"
  6564. :ref="`markSco${toolIndex}${wIndex}`"
  6565. @updateLoading="updateLoading"
  6566. @updateDocSco="updateDocSco"
  6567. @refreshOther="refreshOther"
  6568. @markScoreDig="markScoreDig"
  6569. :tool="tool"
  6570. :wIndex="wIndex"
  6571. :scoCon="w"
  6572. :toolIndex="toolIndex"
  6573. :key="refreshKey"
  6574. :stage="courseType"
  6575. :task="taskCount"
  6576. :scoTit="
  6577. chapInfoList[courseType].chapterInfo[0]
  6578. .taskJson[taskCount].eList
  6579. "
  6580. >
  6581. </markScore>
  6582. <div
  6583. class="answerScore"
  6584. @click.stop="
  6585. markScoreDig2(
  6586. w.sName,
  6587. worksStudent,
  6588. w.userid,
  6589. toolIndex,
  6590. chapInfoList[courseType]
  6591. .chapterInfo[0].taskJson[taskCount]
  6592. .eList,
  6593. AIloading[toolIndex][wIndex].loading,
  6594. tool
  6595. )
  6596. "
  6597. slot="reference"
  6598. :class="{
  6599. rightW:
  6600. w.userid == userid ||
  6601. tType == 1 ||
  6602. tType == 4 ||
  6603. w.ateacher == userid
  6604. }"
  6605. >
  6606. <span
  6607. v-if="AIloading[toolIndex][wIndex].sco"
  6608. >
  6609. {{
  6610. AIloading[toolIndex][wIndex].loading
  6611. ? "评分中"
  6612. : AIloading[toolIndex][wIndex].sco +
  6613. "分"
  6614. }}
  6615. </span>
  6616. <span v-else>
  6617. {{
  6618. AIloading[toolIndex][wIndex].loading
  6619. ? "评分中"
  6620. : "评分"
  6621. }}
  6622. </span>
  6623. </div>
  6624. </el-popover>
  6625. </div>
  6626. <img
  6627. class="deleteImg"
  6628. src="../../assets/deleteworks.png"
  6629. v-if="
  6630. w.userid == userid ||
  6631. tType == 1 ||
  6632. tType == 4
  6633. "
  6634. @click.stop="deleteWorks(w.wid)"
  6635. alt
  6636. />
  6637. </div>
  6638. <div class="comment">
  6639. <div class="worksName">
  6640. <div>{{ w.sName }}</div>
  6641. </div>
  6642. <div class="commentList">
  6643. <div
  6644. class="commentImg"
  6645. @click="
  6646. isLikes(
  6647. w.wid,
  6648. userid,
  6649. 1,
  6650. null,
  6651. w.isLikes,
  6652. w.sName
  6653. )
  6654. "
  6655. >
  6656. <img
  6657. :src="w.isLikes == true ? likes : noLikes"
  6658. alt=""
  6659. />
  6660. </div>
  6661. <div>{{ w.likesCount }}</div>
  6662. </div>
  6663. <div
  6664. class="commentList"
  6665. style="margin-right: 15px"
  6666. >
  6667. <div
  6668. class="commentImg"
  6669. @click="
  6670. commentOther(
  6671. w,
  6672. toolIndex,
  6673. wIndex,
  6674. null,
  6675. g.id
  6676. )
  6677. "
  6678. >
  6679. <img
  6680. src="../../assets/icon/comment/comment.png"
  6681. alt=""
  6682. />
  6683. </div>
  6684. <div>{{ w.commentCount }}</div>
  6685. </div>
  6686. </div>
  6687. </div>
  6688. </div>
  6689. </div>
  6690. <div class="group_work" v-else>暂无提交作业</div>
  6691. </div>
  6692. </div>
  6693. <div
  6694. :id="'tool-' + toolIndex"
  6695. :style="{
  6696. height:
  6697. isCloseList[toolIndex].isClose == 1
  6698. ? retrnToolHeight('tool-' + toolIndex)
  6699. : 'auto',
  6700. overflow:
  6701. isCloseList[toolIndex].isClose == 1
  6702. ? 'hidden'
  6703. : 'unset'
  6704. }"
  6705. class="worksDetailBox"
  6706. v-if="
  6707. worksStudent.length &&
  6708. worksStudent[toolIndex].length > 0
  6709. "
  6710. >
  6711. <div
  6712. class="works"
  6713. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6714. :key="wIndex"
  6715. >
  6716. <div
  6717. class="workImg"
  6718. style="
  6719. border-radius: 15px;
  6720. box-shadow: 0px 0px 5px 5px #eee;
  6721. "
  6722. >
  6723. <!-- <img
  6724. src="../../assets/icon/works/noImg.png"
  6725. @click="openTools(15, toolIndex, taskCount, w.works)"
  6726. alt=""
  6727. />-->
  6728. <div
  6729. class="answerBg"
  6730. style="border-radius: 15px 15px 0 0"
  6731. @click="commentOther(w, toolIndex, wIndex)"
  6732. >
  6733. <!-- <div>{{ w.sName }}</div> -->
  6734. <div class="answerContent">
  6735. {{ JSON.parse(w.works)[0].answer }}
  6736. </div>
  6737. <div
  6738. class="answerScore"
  6739. v-if="w.score"
  6740. @click.stop="openScore(w)"
  6741. :class="{
  6742. rightW:
  6743. w.userid == userid || tType == 1 || tType == 4
  6744. }"
  6745. >
  6746. {{ JSON.parse(w.score).wScore }}分
  6747. </div>
  6748. <div
  6749. class="answerScore"
  6750. @click.stop="openScore(w)"
  6751. v-else-if="
  6752. courseDetail.userid == userid &&
  6753. courseDetail.state != 6 &&
  6754. chapInfoList[courseType].chapterInfo[0]
  6755. .taskJson[taskCount].eList &&
  6756. chapInfoList[courseType].chapterInfo[0]
  6757. .taskJson[taskCount].eList.length
  6758. "
  6759. :class="{
  6760. rightW:
  6761. w.userid == userid || tType == 1 || tType == 4
  6762. }"
  6763. >
  6764. 评分
  6765. </div>
  6766. <!-- <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"> -->
  6767. <div
  6768. v-else-if="
  6769. (courseDetail.userid == userid ||
  6770. (courseDetail.course_teacher &&
  6771. courseDetail.course_teacher.indexOf(
  6772. userid
  6773. ) != -1) ||
  6774. (w.userid == userid && sIsOpen)) &&
  6775. courseDetail.state == 6 &&
  6776. ((chapInfoList[courseType].chapterInfo[0]
  6777. .taskJson[taskCount].eList &&
  6778. chapInfoList[courseType].chapterInfo[0]
  6779. .taskJson[taskCount].eList.length) ||
  6780. (tool.eList && tool.eList.length))
  6781. "
  6782. >
  6783. <el-popover
  6784. placement="top"
  6785. width="318"
  6786. :disabled="AIloading[toolIndex][wIndex].loading"
  6787. trigger="hover"
  6788. >
  6789. <markScore
  6790. :loading="
  6791. AIloading[toolIndex][wIndex].loading
  6792. "
  6793. :markScoreVisible="markScoreVisible"
  6794. :ref="`markSco${toolIndex}${wIndex}`"
  6795. @updateLoading="updateLoading"
  6796. @updateDocSco="updateDocSco"
  6797. @refreshOther="refreshOther"
  6798. @markScoreDig="markScoreDig"
  6799. :tool="tool"
  6800. :wIndex="wIndex"
  6801. :scoCon="w"
  6802. :toolIndex="toolIndex"
  6803. :key="refreshKey"
  6804. :stage="courseType"
  6805. :task="taskCount"
  6806. :scoTit="
  6807. chapInfoList[courseType].chapterInfo[0]
  6808. .taskJson[taskCount].eList
  6809. "
  6810. >
  6811. </markScore>
  6812. <div
  6813. class="answerScore"
  6814. @click.stop="
  6815. markScoreDig2(
  6816. w.sName,
  6817. worksStudent,
  6818. w.userid,
  6819. toolIndex,
  6820. chapInfoList[courseType].chapterInfo[0]
  6821. .taskJson[taskCount].eList,
  6822. AIloading[toolIndex][wIndex].loading,
  6823. tool
  6824. )
  6825. "
  6826. slot="reference"
  6827. :class="{
  6828. rightW:
  6829. w.userid == userid ||
  6830. tType == 1 ||
  6831. tType == 4 ||
  6832. w.ateacher == userid
  6833. }"
  6834. >
  6835. <span v-if="AIloading[toolIndex][wIndex].sco">
  6836. {{
  6837. AIloading[toolIndex][wIndex].loading
  6838. ? "评分中"
  6839. : AIloading[toolIndex][wIndex].sco +
  6840. "分"
  6841. }}
  6842. </span>
  6843. <span v-else>
  6844. {{
  6845. AIloading[toolIndex][wIndex].loading
  6846. ? "评分中"
  6847. : "评分"
  6848. }}
  6849. </span>
  6850. </div>
  6851. </el-popover>
  6852. </div>
  6853. <img
  6854. class="deleteImg"
  6855. src="../../assets/deleteworks.png"
  6856. v-if="
  6857. w.userid == userid || tType == 1 || tType == 4
  6858. "
  6859. @click.stop="deleteWorks(w.wid)"
  6860. alt
  6861. />
  6862. </div>
  6863. <div class="comment">
  6864. <div class="worksName">
  6865. <div>{{ w.sName }}</div>
  6866. </div>
  6867. <div class="commentList">
  6868. <div
  6869. class="commentImg"
  6870. @click="
  6871. isLikes(
  6872. w.wid,
  6873. userid,
  6874. 1,
  6875. null,
  6876. w.isLikes,
  6877. w.sName
  6878. )
  6879. "
  6880. >
  6881. <img
  6882. :src="w.isLikes == true ? likes : noLikes"
  6883. alt=""
  6884. />
  6885. </div>
  6886. <div>{{ w.likesCount }}</div>
  6887. </div>
  6888. <div class="commentList" style="margin-right: 15px">
  6889. <div
  6890. class="commentImg"
  6891. @click="commentOther(w, toolIndex, wIndex)"
  6892. >
  6893. <img
  6894. src="../../assets/icon/comment/comment.png"
  6895. alt=""
  6896. />
  6897. </div>
  6898. <div>{{ w.commentCount }}</div>
  6899. </div>
  6900. </div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6905. 未提交
  6906. </div>
  6907. <div
  6908. class="noWorksS"
  6909. v-if="noWorksS && noWorksS[toolIndex].length"
  6910. >
  6911. <div
  6912. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6913. :key="sIndex"
  6914. class="noWorksName"
  6915. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6916. >
  6917. <el-tooltip
  6918. effect="dark"
  6919. :content="s.student"
  6920. placement="top"
  6921. >
  6922. <span>{{ s.student }}</span>
  6923. </el-tooltip>
  6924. </div>
  6925. </div>
  6926. </div>
  6927. <div
  6928. v-if="
  6929. tType &&
  6930. ((tType == 2 && sIsOpen == true) ||
  6931. tType == 1 ||
  6932. tType == 4) &&
  6933. tool.tool.indexOf(1) != -1
  6934. "
  6935. class="worksBox"
  6936. >
  6937. <div
  6938. class="zuoyeYulan"
  6939. style="display: flex;justify-content: space-between;align-items: center;"
  6940. v-if="
  6941. (worksStudent.length &&
  6942. worksStudent[toolIndex].length > 0) ||
  6943. (courseGroup.group && courseGroup.group.length)
  6944. "
  6945. >
  6946. <div class="worksTop">
  6947. <div>作业预览</div>
  6948. <div
  6949. class="corOpen"
  6950. @click="contract(toolIndex)"
  6951. v-if="
  6952. isCloseList[toolIndex].isCloseBoolean &&
  6953. isCloseList[toolIndex].isClose == 0
  6954. "
  6955. >
  6956. 折叠
  6957. </div>
  6958. <div
  6959. class="corOpen"
  6960. @click="contract(toolIndex)"
  6961. v-if="isCloseList[toolIndex].isClose == 1"
  6962. >
  6963. 展开
  6964. </div>
  6965. </div>
  6966. <div
  6967. style="display: flex;"
  6968. v-if="
  6969. (courseDetail.userid == userid ||
  6970. (courseDetail.course_teacher &&
  6971. courseDetail.course_teacher.indexOf(userid) !=
  6972. -1)) &&
  6973. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6974. taskCount
  6975. ].eList &&
  6976. chapInfoList[courseType].chapterInfo[0].taskJson[
  6977. taskCount
  6978. ].eList.length) ||
  6979. (tool.eList && tool.eList.length)) &&
  6980. courseDetail.state == 6
  6981. "
  6982. >
  6983. <div
  6984. style="margin-right:10px"
  6985. class="ScoreBtn"
  6986. @click="
  6987. resetLoopEva(
  6988. worksStudent[toolIndex],
  6989. chapInfoList[courseType].chapterInfo[0].taskJson[
  6990. taskCount
  6991. ].eList,
  6992. courseType,
  6993. taskCount,
  6994. toolIndex,
  6995. tool.toolDetail,
  6996. worksStudent
  6997. )
  6998. "
  6999. >
  7000. 一键重置
  7001. </div>
  7002. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7003. <img
  7004. src="../../assets/icon/newIcons/rootImg.png"
  7005. alt=""
  7006. />
  7007. AI评分
  7008. </div>
  7009. <div
  7010. class="ScoreBtn"
  7011. v-else-if="!loopLoading[toolIndex].loading"
  7012. @click="
  7013. loopEva(
  7014. worksStudent[toolIndex],
  7015. chapInfoList[courseType].chapterInfo[0].taskJson[
  7016. taskCount
  7017. ].eList,
  7018. courseType,
  7019. taskCount,
  7020. toolIndex,
  7021. tool.toolDetail,
  7022. chapInfoList[courseType].chapterInfo[0].taskJson[
  7023. taskCount
  7024. ].taskDetail,
  7025. tool
  7026. )
  7027. "
  7028. >
  7029. <img
  7030. src="../../assets/icon/newIcons/rootImg.png"
  7031. alt=""
  7032. />
  7033. AI评分
  7034. </div>
  7035. <div class="ScoreBtn" v-else>
  7036. <img
  7037. src="../../assets/icon/newIcons/rootImg.png"
  7038. alt=""
  7039. />
  7040. 正在评分
  7041. </div>
  7042. </div>
  7043. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7044. </div>
  7045. <div
  7046. class="group_workBox"
  7047. v-for="(g, gindex) in courseGroup.group"
  7048. :key="gindex"
  7049. >
  7050. <div class="group_box">
  7051. <div class="group_title">
  7052. <el-tooltip
  7053. class="item"
  7054. effect="light"
  7055. :content="g.name"
  7056. placement="top"
  7057. >
  7058. <div class="group_name">{{ g.name }}</div>
  7059. </el-tooltip>
  7060. </div>
  7061. <div
  7062. class="group_work"
  7063. v-if="
  7064. g.works &&
  7065. g.works.length &&
  7066. g.works[toolIndex].length
  7067. "
  7068. >
  7069. <div
  7070. class="works"
  7071. style="
  7072. width: 200px;
  7073. height: 140px;
  7074. margin: 10px 10px 10px 0;
  7075. border-radius: 15px;
  7076. box-shadow: 0 0 6px 1px #dfdada;
  7077. "
  7078. v-for="(w, wIndex) in g.works[toolIndex]"
  7079. :key="wIndex"
  7080. :class="w.type == 1 ? 'isTypeOne' : ''"
  7081. >
  7082. <div class="workImg">
  7083. <img
  7084. :src="w.works"
  7085. @click="previewImg(w.works, w)"
  7086. alt
  7087. />
  7088. <div
  7089. class="answerScore"
  7090. v-if="w.score"
  7091. @click.stop="openScore(w)"
  7092. :class="{
  7093. rightW:
  7094. w.userid == userid ||
  7095. tType == 1 ||
  7096. tType == 4
  7097. }"
  7098. >
  7099. {{ JSON.parse(w.score).wScore }}分
  7100. </div>
  7101. <div
  7102. class="answerScore"
  7103. @click.stop="openScore(w)"
  7104. v-else-if="courseDetail.userid == userid"
  7105. :class="{
  7106. rightW:
  7107. w.userid == userid ||
  7108. tType == 1 ||
  7109. tType == 4
  7110. }"
  7111. >
  7112. 评分
  7113. </div>
  7114. <img
  7115. class="deleteImg"
  7116. src="../../assets/deleteworks.png"
  7117. v-if="
  7118. w.userid == userid || tType == 1 || tType == 4
  7119. "
  7120. @click.stop="deleteWorks(w.wid)"
  7121. alt
  7122. />
  7123. </div>
  7124. <div class="comment" style="min-width: 200px">
  7125. <div class="worksName">
  7126. <div>{{ w.sName }}</div>
  7127. </div>
  7128. <div class="commentList">
  7129. <div class="commentList">
  7130. <div
  7131. class="commentImg"
  7132. @click="
  7133. isLikes(
  7134. w.wid,
  7135. userid,
  7136. 1,
  7137. null,
  7138. w.isLikes,
  7139. w.sName
  7140. )
  7141. "
  7142. >
  7143. <img
  7144. :src="w.isLikes == true ? likes : noLikes"
  7145. alt=""
  7146. />
  7147. </div>
  7148. <div>{{ w.likesCount }}</div>
  7149. </div>
  7150. <div
  7151. class="commentList"
  7152. style="margin-right: 15px"
  7153. >
  7154. <div
  7155. class="commentImg"
  7156. @click="
  7157. commentOther(
  7158. w,
  7159. toolIndex,
  7160. wIndex,
  7161. null,
  7162. g.id
  7163. )
  7164. "
  7165. >
  7166. <img
  7167. src="../../assets/icon/comment/comment.png"
  7168. alt=""
  7169. />
  7170. </div>
  7171. <div>{{ w.commentCount }}</div>
  7172. </div>
  7173. </div>
  7174. </div>
  7175. </div>
  7176. </div>
  7177. <div class="group_work" v-else>暂无提交作业</div>
  7178. </div>
  7179. </div>
  7180. <div
  7181. :id="'tool-' + toolIndex"
  7182. :style="{
  7183. height:
  7184. isCloseList[toolIndex].isClose == 1
  7185. ? retrnToolHeight('tool-' + toolIndex)
  7186. : 'auto',
  7187. overflow:
  7188. isCloseList[toolIndex].isClose == 1
  7189. ? 'hidden'
  7190. : 'unset'
  7191. }"
  7192. class="worksDetailBox"
  7193. v-if="
  7194. worksStudent.length &&
  7195. worksStudent[toolIndex].length > 0
  7196. "
  7197. >
  7198. <div
  7199. class="works"
  7200. style="
  7201. width: 200px;
  7202. height: 140px;
  7203. margin: 10px 10px 10px 0;
  7204. border-radius: 15px;
  7205. box-shadow: 0 0 6px 1px #dfdada;
  7206. "
  7207. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7208. :key="wIndex"
  7209. >
  7210. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7211. <div class="workImg">
  7212. <img
  7213. :src="w.works"
  7214. @click="previewImg(w.works, w)"
  7215. alt
  7216. />
  7217. <div
  7218. class="answerScore"
  7219. v-if="w.score"
  7220. @click.stop="openScore(w)"
  7221. :class="{
  7222. rightW:
  7223. w.userid == userid || tType == 1 || tType == 4
  7224. }"
  7225. >
  7226. {{ JSON.parse(w.score).wScore }}分
  7227. </div>
  7228. <div
  7229. class="answerScore"
  7230. @click.stop="openScore(w)"
  7231. v-else-if="
  7232. courseDetail.userid == userid &&
  7233. courseDetail.state != 6 &&
  7234. chapInfoList[courseType].chapterInfo[0]
  7235. .taskJson[taskCount].eList &&
  7236. chapInfoList[courseType].chapterInfo[0]
  7237. .taskJson[taskCount].eList.length
  7238. "
  7239. :class="{
  7240. rightW:
  7241. w.userid == userid || tType == 1 || tType == 4
  7242. }"
  7243. >
  7244. 评分
  7245. </div>
  7246. <div
  7247. v-else-if="
  7248. (courseDetail.userid == userid ||
  7249. (courseDetail.course_teacher &&
  7250. courseDetail.course_teacher.indexOf(userid) !=
  7251. -1) ||
  7252. (courseDetail.course_teacher &&
  7253. courseDetail.course_teacher.indexOf(userid) !=
  7254. -1) ||
  7255. (courseDetail.course_teacher &&
  7256. courseDetail.course_teacher.indexOf(userid) !=
  7257. -1) ||
  7258. (w.userid == userid && sIsOpen)) &&
  7259. courseDetail.state == 6 &&
  7260. ((chapInfoList[courseType].chapterInfo[0]
  7261. .taskJson[taskCount].eList &&
  7262. chapInfoList[courseType].chapterInfo[0]
  7263. .taskJson[taskCount].eList.length) ||
  7264. (tool.eList && tool.eList.length))
  7265. "
  7266. >
  7267. <el-popover
  7268. placement="top"
  7269. width="318"
  7270. :disabled="AIloading[toolIndex][wIndex].loading"
  7271. trigger="hover"
  7272. >
  7273. <markScore
  7274. :loading="AIloading[toolIndex][wIndex].loading"
  7275. :markScoreVisible="markScoreVisible"
  7276. :ref="`markSco${toolIndex}${wIndex}`"
  7277. @updateLoading="updateLoading"
  7278. @updateDocSco="updateDocSco"
  7279. @refreshOther="refreshOther"
  7280. @markScoreDig="markScoreDig"
  7281. :tool="tool"
  7282. :wIndex="wIndex"
  7283. :scoCon="w"
  7284. :toolIndex="toolIndex"
  7285. :key="refreshKey"
  7286. :stage="courseType"
  7287. :task="taskCount"
  7288. :scoTit="
  7289. chapInfoList[courseType].chapterInfo[0]
  7290. .taskJson[taskCount].eList
  7291. "
  7292. >
  7293. </markScore>
  7294. <div
  7295. class="answerScore"
  7296. @click="
  7297. markScoreDig2(
  7298. w.sName,
  7299. worksStudent,
  7300. w.userid,
  7301. toolIndex,
  7302. chapInfoList[courseType].chapterInfo[0]
  7303. .taskJson[taskCount].eList,
  7304. AIloading[toolIndex][wIndex].loading,
  7305. tool
  7306. )
  7307. "
  7308. slot="reference"
  7309. :class="{
  7310. rightW:
  7311. w.userid == userid ||
  7312. tType == 1 ||
  7313. tType == 4 ||
  7314. w.ateacher == userid
  7315. }"
  7316. >
  7317. <span v-if="AIloading[toolIndex][wIndex].sco">
  7318. {{
  7319. AIloading[toolIndex][wIndex].loading
  7320. ? "评分中"
  7321. : AIloading[toolIndex][wIndex].sco + "分"
  7322. }}
  7323. </span>
  7324. <span v-else>
  7325. {{
  7326. AIloading[toolIndex][wIndex].loading
  7327. ? "评分中"
  7328. : "评分"
  7329. }}
  7330. </span>
  7331. </div>
  7332. </el-popover>
  7333. </div>
  7334. <img
  7335. class="deleteImg"
  7336. src="../../assets/deleteworks.png"
  7337. v-if="
  7338. w.userid == userid || tType == 1 || tType == 4
  7339. "
  7340. @click.stop="deleteWorks(w.wid)"
  7341. alt
  7342. />
  7343. </div>
  7344. <div class="comment" style="min-width: 200px">
  7345. <div class="worksName">
  7346. <div>{{ w.sName }}</div>
  7347. </div>
  7348. <div class="commentList">
  7349. <div class="commentList">
  7350. <div
  7351. class="commentImg"
  7352. @click="
  7353. isLikes(
  7354. w.wid,
  7355. userid,
  7356. 1,
  7357. null,
  7358. w.isLikes,
  7359. w.sName
  7360. )
  7361. "
  7362. >
  7363. <img
  7364. :src="w.isLikes == true ? likes : noLikes"
  7365. alt=""
  7366. />
  7367. </div>
  7368. <div>{{ w.likesCount }}</div>
  7369. </div>
  7370. <div class="commentList" style="margin-right: 15px">
  7371. <div
  7372. class="commentImg"
  7373. @click="commentOther(w, toolIndex, wIndex)"
  7374. >
  7375. <img
  7376. src="../../assets/icon/comment/comment.png"
  7377. alt=""
  7378. />
  7379. </div>
  7380. <div>{{ w.commentCount }}</div>
  7381. </div>
  7382. </div>
  7383. </div>
  7384. </div>
  7385. </div>
  7386. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7387. 未提交
  7388. </div>
  7389. <div
  7390. class="noWorksS"
  7391. v-if="noWorksS && noWorksS[toolIndex].length"
  7392. >
  7393. <div
  7394. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7395. :key="sIndex"
  7396. class="noWorksName"
  7397. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7398. >
  7399. <el-tooltip
  7400. effect="dark"
  7401. :content="s.student"
  7402. placement="top"
  7403. >
  7404. <span>{{ s.student }}</span>
  7405. </el-tooltip>
  7406. </div>
  7407. </div>
  7408. </div>
  7409. <div
  7410. v-if="
  7411. tType &&
  7412. ((tType == 2 && sIsOpen == true) ||
  7413. tType == 1 ||
  7414. tType == 4) &&
  7415. tool.tool.indexOf(3) != -1
  7416. "
  7417. class="worksBox"
  7418. >
  7419. <div
  7420. class="zuoyeYulan"
  7421. style="display: flex;justify-content: space-between;align-items: center;"
  7422. v-if="
  7423. (worksStudent.length &&
  7424. worksStudent[toolIndex].length > 0) ||
  7425. (courseGroup.group && courseGroup.group.length)
  7426. "
  7427. >
  7428. <div class="worksTop">
  7429. <div>作业预览</div>
  7430. <div
  7431. class="corOpen"
  7432. @click="contract(toolIndex)"
  7433. v-if="
  7434. isCloseList[toolIndex].isCloseBoolean &&
  7435. isCloseList[toolIndex].isClose == 0
  7436. "
  7437. >
  7438. 折叠
  7439. </div>
  7440. <div
  7441. class="corOpen"
  7442. @click="contract(toolIndex)"
  7443. v-if="isCloseList[toolIndex].isClose == 1"
  7444. >
  7445. 展开
  7446. </div>
  7447. </div>
  7448. <div
  7449. style="display: flex;"
  7450. v-if="
  7451. (courseDetail.userid == userid ||
  7452. (courseDetail.course_teacher &&
  7453. courseDetail.course_teacher.indexOf(userid) !=
  7454. -1)) &&
  7455. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7456. taskCount
  7457. ].eList &&
  7458. chapInfoList[courseType].chapterInfo[0].taskJson[
  7459. taskCount
  7460. ].eList.length) ||
  7461. (tool.eList && tool.eList.length)) &&
  7462. courseDetail.state == 6
  7463. "
  7464. >
  7465. <div
  7466. style="margin-right:10px"
  7467. class="ScoreBtn"
  7468. @click="
  7469. resetLoopEva(
  7470. worksStudent[toolIndex],
  7471. chapInfoList[courseType].chapterInfo[0].taskJson[
  7472. taskCount
  7473. ].eList,
  7474. courseType,
  7475. taskCount,
  7476. toolIndex,
  7477. tool.toolDetail,
  7478. worksStudent
  7479. )
  7480. "
  7481. >
  7482. 一键重置
  7483. </div>
  7484. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7485. <img
  7486. src="../../assets/icon/newIcons/rootImg.png"
  7487. alt=""
  7488. />
  7489. AI评分
  7490. </div>
  7491. <div
  7492. class="ScoreBtn"
  7493. v-else-if="!loopLoading[toolIndex].loading"
  7494. @click="
  7495. loopEva(
  7496. worksStudent[toolIndex],
  7497. chapInfoList[courseType].chapterInfo[0].taskJson[
  7498. taskCount
  7499. ].eList,
  7500. courseType,
  7501. taskCount,
  7502. toolIndex,
  7503. tool.toolDetail,
  7504. chapInfoList[courseType].chapterInfo[0].taskJson[
  7505. taskCount
  7506. ].taskDetail,
  7507. tool
  7508. )
  7509. "
  7510. >
  7511. <img
  7512. src="../../assets/icon/newIcons/rootImg.png"
  7513. alt=""
  7514. />
  7515. AI评分
  7516. </div>
  7517. <div class="ScoreBtn" v-else>
  7518. <img
  7519. src="../../assets/icon/newIcons/rootImg.png"
  7520. alt=""
  7521. />
  7522. 正在评分
  7523. </div>
  7524. </div>
  7525. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7526. </div>
  7527. <div
  7528. class="group_workBox"
  7529. v-for="(g, gindex) in courseGroup.group"
  7530. :key="gindex"
  7531. >
  7532. <div class="group_box">
  7533. <div class="group_title">
  7534. <el-tooltip
  7535. class="item"
  7536. effect="light"
  7537. :content="g.name"
  7538. placement="top"
  7539. >
  7540. <div class="group_name">{{ g.name }}</div>
  7541. </el-tooltip>
  7542. </div>
  7543. <div
  7544. class="group_work"
  7545. v-if="
  7546. g.works &&
  7547. g.works.length &&
  7548. g.works[toolIndex].length
  7549. "
  7550. >
  7551. <div
  7552. class="works"
  7553. style="
  7554. width: 200px;
  7555. height: 140px;
  7556. margin: 10px 10px 10px 0;
  7557. border-radius: 15px;
  7558. box-shadow: 0 0 6px 1px #dfdada;
  7559. "
  7560. v-for="(w, wIndex) in g.works[toolIndex]"
  7561. :key="wIndex"
  7562. :class="w.type == 1 ? 'isTypeOne' : ''"
  7563. >
  7564. <div class="workImg">
  7565. <img
  7566. :src="w.works"
  7567. @click="previewImg(w.works, w)"
  7568. alt
  7569. />
  7570. <div
  7571. class="answerScore"
  7572. v-if="w.score"
  7573. @click.stop="openScore(w)"
  7574. :class="{
  7575. rightW:
  7576. w.userid == userid ||
  7577. tType == 1 ||
  7578. tType == 4
  7579. }"
  7580. >
  7581. {{ JSON.parse(w.score).wScore }}分
  7582. </div>
  7583. <div
  7584. class="answerScore"
  7585. @click.stop="openScore(w)"
  7586. v-else-if="courseDetail.userid == userid"
  7587. :class="{
  7588. rightW:
  7589. w.userid == userid ||
  7590. tType == 1 ||
  7591. tType == 4
  7592. }"
  7593. >
  7594. 评分
  7595. </div>
  7596. <img
  7597. class="deleteImg"
  7598. src="../../assets/deleteworks.png"
  7599. v-if="
  7600. w.userid == userid || tType == 1 || tType == 4
  7601. "
  7602. @click.stop="deleteWorks(w.wid)"
  7603. alt
  7604. />
  7605. </div>
  7606. <div class="comment" style="min-width: 200px">
  7607. <div class="worksName">
  7608. <div>{{ w.sName }}</div>
  7609. </div>
  7610. <div class="commentList">
  7611. <div class="commentList">
  7612. <div
  7613. class="commentImg"
  7614. @click="
  7615. isLikes(
  7616. w.wid,
  7617. userid,
  7618. 1,
  7619. null,
  7620. w.isLikes,
  7621. w.sName
  7622. )
  7623. "
  7624. >
  7625. <img
  7626. :src="w.isLikes == true ? likes : noLikes"
  7627. alt=""
  7628. />
  7629. </div>
  7630. <div>{{ w.likesCount }}</div>
  7631. </div>
  7632. <div
  7633. class="commentList"
  7634. style="margin-right: 15px"
  7635. >
  7636. <div
  7637. class="commentImg"
  7638. @click="
  7639. commentOther(
  7640. w,
  7641. toolIndex,
  7642. wIndex,
  7643. null,
  7644. g.id
  7645. )
  7646. "
  7647. >
  7648. <img
  7649. src="../../assets/icon/comment/comment.png"
  7650. alt=""
  7651. />
  7652. </div>
  7653. <div>{{ w.commentCount }}</div>
  7654. </div>
  7655. </div>
  7656. </div>
  7657. </div>
  7658. </div>
  7659. <div class="group_work" v-else>暂无提交作业</div>
  7660. </div>
  7661. </div>
  7662. <div
  7663. :id="'tool-' + toolIndex"
  7664. :style="{
  7665. height:
  7666. isCloseList[toolIndex].isClose == 1
  7667. ? retrnToolHeight('tool-' + toolIndex)
  7668. : 'auto',
  7669. overflow:
  7670. isCloseList[toolIndex].isClose == 1
  7671. ? 'hidden'
  7672. : 'unset'
  7673. }"
  7674. class="worksDetailBox"
  7675. v-if="
  7676. worksStudent.length &&
  7677. worksStudent[toolIndex].length > 0
  7678. "
  7679. >
  7680. <div
  7681. class="works"
  7682. style="
  7683. width: 200px;
  7684. height: 140px;
  7685. margin: 10px 10px 10px 0;
  7686. border-radius: 15px;
  7687. box-shadow: 0 0 6px 1px #dfdada;
  7688. "
  7689. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7690. :key="wIndex"
  7691. >
  7692. <!-- @click="previewImg(w.works)" -->
  7693. <div class="workImg">
  7694. <img
  7695. :src="w.works"
  7696. @click="previewImg(w.works, w)"
  7697. alt
  7698. />
  7699. <div
  7700. class="answerScore"
  7701. v-if="w.score"
  7702. @click.stop="openScore(w)"
  7703. :class="{
  7704. rightW:
  7705. w.userid == userid || tType == 1 || tType == 4
  7706. }"
  7707. >
  7708. {{ JSON.parse(w.score).wScore }}分
  7709. </div>
  7710. <div
  7711. class="answerScore"
  7712. @click.stop="openScore(w)"
  7713. v-else-if="
  7714. courseDetail.userid == userid &&
  7715. courseDetail.state != 6 &&
  7716. chapInfoList[courseType].chapterInfo[0]
  7717. .taskJson[taskCount].eList &&
  7718. chapInfoList[courseType].chapterInfo[0]
  7719. .taskJson[taskCount].eList.length
  7720. "
  7721. :class="{
  7722. rightW:
  7723. w.userid == userid || tType == 1 || tType == 4
  7724. }"
  7725. >
  7726. 评分
  7727. </div>
  7728. <!-- <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"> -->
  7729. <div
  7730. v-else-if="
  7731. (courseDetail.userid == userid ||
  7732. (courseDetail.course_teacher &&
  7733. courseDetail.course_teacher.indexOf(userid) !=
  7734. -1) ||
  7735. (w.userid == userid && sIsOpen)) &&
  7736. courseDetail.state == 6 &&
  7737. ((chapInfoList[courseType].chapterInfo[0]
  7738. .taskJson[taskCount].eList &&
  7739. chapInfoList[courseType].chapterInfo[0]
  7740. .taskJson[taskCount].eList.length) ||
  7741. (tool.eList && tool.eList.length))
  7742. "
  7743. >
  7744. <el-popover
  7745. placement="top"
  7746. width="318"
  7747. :disabled="AIloading[toolIndex][wIndex].loading"
  7748. trigger="hover"
  7749. >
  7750. <markScore
  7751. :loading="AIloading[toolIndex][wIndex].loading"
  7752. :markScoreVisible="markScoreVisible"
  7753. :ref="`markSco${toolIndex}${wIndex}`"
  7754. @updateLoading="updateLoading"
  7755. @updateDocSco="updateDocSco"
  7756. @refreshOther="refreshOther"
  7757. @markScoreDig="markScoreDig"
  7758. :tool="tool"
  7759. :wIndex="wIndex"
  7760. :scoCon="w"
  7761. :toolIndex="toolIndex"
  7762. :key="refreshKey"
  7763. :stage="courseType"
  7764. :task="taskCount"
  7765. :scoTit="
  7766. chapInfoList[courseType].chapterInfo[0]
  7767. .taskJson[taskCount].eList
  7768. "
  7769. >
  7770. </markScore>
  7771. <div
  7772. class="answerScore"
  7773. @click="
  7774. markScoreDig2(
  7775. w.sName,
  7776. worksStudent,
  7777. w.userid,
  7778. toolIndex,
  7779. chapInfoList[courseType].chapterInfo[0]
  7780. .taskJson[taskCount].eList,
  7781. AIloading[toolIndex][wIndex].loading,
  7782. tool
  7783. )
  7784. "
  7785. slot="reference"
  7786. :class="{
  7787. rightW:
  7788. w.userid == userid ||
  7789. tType == 1 ||
  7790. tType == 4 ||
  7791. w.ateacher == userid
  7792. }"
  7793. >
  7794. <span v-if="AIloading[toolIndex][wIndex].sco">
  7795. {{
  7796. AIloading[toolIndex][wIndex].loading
  7797. ? "评分中"
  7798. : AIloading[toolIndex][wIndex].sco + "分"
  7799. }}
  7800. </span>
  7801. <span v-else>
  7802. {{
  7803. AIloading[toolIndex][wIndex].loading
  7804. ? "评分中"
  7805. : "评分"
  7806. }}
  7807. </span>
  7808. </div>
  7809. </el-popover>
  7810. </div>
  7811. <img
  7812. class="deleteImg"
  7813. src="../../assets/deleteworks.png"
  7814. v-if="
  7815. w.userid == userid || tType == 1 || tType == 4
  7816. "
  7817. @click.stop="deleteWorks(w.wid)"
  7818. alt
  7819. />
  7820. </div>
  7821. <div class="comment" style="min-width: 200px">
  7822. <div class="worksName">
  7823. <div>{{ w.sName }}</div>
  7824. </div>
  7825. <div class="commentList">
  7826. <div class="commentList">
  7827. <div
  7828. class="commentImg"
  7829. @click="
  7830. isLikes(
  7831. w.wid,
  7832. userid,
  7833. 1,
  7834. null,
  7835. w.isLikes,
  7836. w.sName
  7837. )
  7838. "
  7839. >
  7840. <img
  7841. :src="w.isLikes == true ? likes : noLikes"
  7842. alt=""
  7843. />
  7844. </div>
  7845. <div>{{ w.likesCount }}</div>
  7846. </div>
  7847. <div class="commentList" style="margin-right: 15px">
  7848. <div
  7849. class="commentImg"
  7850. @click="commentOther(w, toolIndex, wIndex)"
  7851. >
  7852. <img
  7853. src="../../assets/icon/comment/comment.png"
  7854. alt=""
  7855. />
  7856. </div>
  7857. <div>{{ w.commentCount }}</div>
  7858. </div>
  7859. </div>
  7860. </div>
  7861. </div>
  7862. </div>
  7863. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7864. 未提交
  7865. </div>
  7866. <div
  7867. class="noWorksS"
  7868. v-if="noWorksS && noWorksS[toolIndex].length"
  7869. >
  7870. <div
  7871. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7872. :key="sIndex"
  7873. class="noWorksName"
  7874. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7875. >
  7876. <el-tooltip
  7877. effect="dark"
  7878. :content="s.student"
  7879. placement="top"
  7880. >
  7881. <span>{{ s.student }}</span>
  7882. </el-tooltip>
  7883. </div>
  7884. </div>
  7885. </div>
  7886. <div
  7887. v-if="
  7888. tType &&
  7889. ((tType == 2 && sIsOpen == true) ||
  7890. tType == 1 ||
  7891. tType == 4) &&
  7892. tool.tool.indexOf(6) != -1
  7893. "
  7894. class="worksBox"
  7895. >
  7896. <div
  7897. class="zuoyeYulan"
  7898. v-if="
  7899. (worksStudent.length &&
  7900. worksStudent[toolIndex].length > 0) ||
  7901. (courseGroup.group && courseGroup.group.length)
  7902. "
  7903. >
  7904. <div class="worksTop">
  7905. <div>作业预览</div>
  7906. <div
  7907. class="corOpen"
  7908. @click="contract(toolIndex)"
  7909. v-if="
  7910. isCloseList[toolIndex].isCloseBoolean &&
  7911. isCloseList[toolIndex].isClose == 0
  7912. "
  7913. >
  7914. 折叠
  7915. </div>
  7916. <div
  7917. class="corOpen"
  7918. @click="contract(toolIndex)"
  7919. v-if="isCloseList[toolIndex].isClose == 1"
  7920. >
  7921. 展开
  7922. </div>
  7923. </div>
  7924. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7925. </div>
  7926. <div
  7927. class="group_workBox"
  7928. v-for="(g, gindex) in courseGroup.group"
  7929. :key="gindex"
  7930. >
  7931. <div class="group_box">
  7932. <div class="group_title">
  7933. <el-tooltip
  7934. class="item"
  7935. effect="light"
  7936. :content="g.name"
  7937. placement="top"
  7938. >
  7939. <div class="group_name">{{ g.name }}</div>
  7940. </el-tooltip>
  7941. </div>
  7942. <div
  7943. class="group_work"
  7944. v-if="
  7945. g.works &&
  7946. g.works.length &&
  7947. g.works[toolIndex].length
  7948. "
  7949. >
  7950. <div
  7951. class="works"
  7952. style="
  7953. width: 200px;
  7954. height: 140px;
  7955. margin: 10px 10px 10px 0;
  7956. border-radius: 15px;
  7957. box-shadow: 0 0 6px 1px #dfdada;
  7958. "
  7959. v-for="(w, wIndex) in g.works[toolIndex]"
  7960. :key="wIndex"
  7961. :class="w.type == 1 ? 'isTypeOne' : ''"
  7962. >
  7963. <div class="workImg">
  7964. <img
  7965. :src="w.works"
  7966. @click="previewImg(w.works, w)"
  7967. alt
  7968. />
  7969. <div
  7970. class="answerScore"
  7971. v-if="w.score"
  7972. @click.stop="openScore(w)"
  7973. :class="{
  7974. rightW:
  7975. w.userid == userid ||
  7976. tType == 1 ||
  7977. tType == 4
  7978. }"
  7979. >
  7980. {{ JSON.parse(w.score).wScore }}分
  7981. </div>
  7982. <div
  7983. class="answerScore"
  7984. @click.stop="openScore(w)"
  7985. v-else-if="courseDetail.userid == userid"
  7986. :class="{
  7987. rightW:
  7988. w.userid == userid ||
  7989. tType == 1 ||
  7990. tType == 4
  7991. }"
  7992. >
  7993. 评分
  7994. </div>
  7995. <img
  7996. class="deleteImg"
  7997. src="../../assets/deleteworks.png"
  7998. v-if="
  7999. w.userid == userid || tType == 1 || tType == 4
  8000. "
  8001. @click.stop="deleteWorks(w.wid)"
  8002. alt
  8003. />
  8004. </div>
  8005. <div class="comment" style="min-width: 200px">
  8006. <div class="worksName">
  8007. <div>{{ w.sName }}</div>
  8008. </div>
  8009. <div class="commentList">
  8010. <div class="commentList">
  8011. <div
  8012. class="commentImg"
  8013. @click="
  8014. isLikes(
  8015. w.wid,
  8016. userid,
  8017. 1,
  8018. null,
  8019. w.isLikes,
  8020. w.sName
  8021. )
  8022. "
  8023. >
  8024. <img
  8025. :src="w.isLikes == true ? likes : noLikes"
  8026. alt=""
  8027. />
  8028. </div>
  8029. <div>{{ w.likesCount }}</div>
  8030. </div>
  8031. <div
  8032. class="commentList"
  8033. style="margin-right: 15px"
  8034. >
  8035. <div
  8036. class="commentImg"
  8037. @click="
  8038. commentOther(
  8039. w,
  8040. toolIndex,
  8041. wIndex,
  8042. null,
  8043. g.id
  8044. )
  8045. "
  8046. >
  8047. <img
  8048. src="../../assets/icon/comment/comment.png"
  8049. alt=""
  8050. />
  8051. </div>
  8052. <div>{{ w.commentCount }}</div>
  8053. </div>
  8054. </div>
  8055. </div>
  8056. </div>
  8057. </div>
  8058. <div class="group_work" v-else>暂无提交作业</div>
  8059. </div>
  8060. </div>
  8061. <div
  8062. :id="'tool-' + toolIndex"
  8063. :style="{
  8064. height:
  8065. isCloseList[toolIndex].isClose == 1
  8066. ? retrnToolHeight('tool-' + toolIndex)
  8067. : 'auto',
  8068. overflow:
  8069. isCloseList[toolIndex].isClose == 1
  8070. ? 'hidden'
  8071. : 'unset'
  8072. }"
  8073. class="worksDetailBox"
  8074. v-if="
  8075. worksStudent.length &&
  8076. worksStudent[toolIndex].length > 0
  8077. "
  8078. >
  8079. <div
  8080. class="works"
  8081. style="
  8082. width: 200px;
  8083. height: 140px;
  8084. margin: 10px 10px 10px 0;
  8085. border-radius: 15px;
  8086. box-shadow: 0 0 6px 1px #dfdada;
  8087. "
  8088. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8089. :key="wIndex"
  8090. >
  8091. <!-- @click="previewImg(w.works)" -->
  8092. <div class="workImg">
  8093. <img
  8094. :src="w.works"
  8095. @click="previewImg(w.works, w)"
  8096. alt
  8097. />
  8098. <div
  8099. class="answerScore"
  8100. v-if="w.score"
  8101. @click.stop="openScore(w)"
  8102. :class="{
  8103. rightW:
  8104. w.userid == userid || tType == 1 || tType == 4
  8105. }"
  8106. >
  8107. {{ JSON.parse(w.score).wScore }}分
  8108. </div>
  8109. <div
  8110. class="answerScore"
  8111. @click.stop="openScore(w)"
  8112. v-else-if="courseDetail.userid == userid"
  8113. :class="{
  8114. rightW:
  8115. w.userid == userid || tType == 1 || tType == 4
  8116. }"
  8117. >
  8118. 评分
  8119. </div>
  8120. <img
  8121. class="deleteImg"
  8122. src="../../assets/deleteworks.png"
  8123. v-if="
  8124. w.userid == userid || tType == 1 || tType == 4
  8125. "
  8126. @click.stop="deleteWorks(w.wid)"
  8127. alt
  8128. />
  8129. </div>
  8130. <div class="comment" style="min-width: 200px">
  8131. <div class="worksName">
  8132. <div>{{ w.sName }}</div>
  8133. </div>
  8134. <div class="commentList">
  8135. <div class="commentList">
  8136. <div
  8137. class="commentImg"
  8138. @click="
  8139. isLikes(
  8140. w.wid,
  8141. userid,
  8142. 1,
  8143. null,
  8144. w.isLikes,
  8145. w.sName
  8146. )
  8147. "
  8148. >
  8149. <img
  8150. :src="w.isLikes == true ? likes : noLikes"
  8151. alt=""
  8152. />
  8153. </div>
  8154. <div>{{ w.likesCount }}</div>
  8155. </div>
  8156. <div class="commentList" style="margin-right: 15px">
  8157. <div
  8158. class="commentImg"
  8159. @click="commentOther(w, toolIndex, wIndex)"
  8160. >
  8161. <img
  8162. src="../../assets/icon/comment/comment.png"
  8163. alt=""
  8164. />
  8165. </div>
  8166. <div>{{ w.commentCount }}</div>
  8167. </div>
  8168. </div>
  8169. </div>
  8170. </div>
  8171. </div>
  8172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8173. 未提交
  8174. </div>
  8175. <div
  8176. class="noWorksS"
  8177. v-if="noWorksS && noWorksS[toolIndex].length"
  8178. >
  8179. <div
  8180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8181. :key="sIndex"
  8182. class="noWorksName"
  8183. >
  8184. <el-tooltip
  8185. effect="dark"
  8186. :content="s.student"
  8187. placement="top"
  8188. >
  8189. <span>{{ s.student }}</span>
  8190. </el-tooltip>
  8191. </div>
  8192. </div>
  8193. </div>
  8194. <div
  8195. v-if="
  8196. tType &&
  8197. ((tType == 2 && sIsOpen == true) ||
  8198. tType == 1 ||
  8199. tType == 4) &&
  8200. tool.tool.indexOf(7) != -1
  8201. "
  8202. class="worksBox"
  8203. >
  8204. <div
  8205. class="zuoyeYulan"
  8206. style="display: flex;justify-content: space-between;align-items: center;"
  8207. v-if="
  8208. (worksStudent.length &&
  8209. worksStudent[toolIndex].length > 0) ||
  8210. (courseGroup.group && courseGroup.group.length)
  8211. "
  8212. >
  8213. <div class="worksTop">
  8214. <div>作业预览</div>
  8215. <div
  8216. class="corOpen"
  8217. @click="contract(toolIndex)"
  8218. v-if="
  8219. isCloseList[toolIndex].isCloseBoolean &&
  8220. isCloseList[toolIndex].isClose == 0
  8221. "
  8222. >
  8223. 折叠
  8224. </div>
  8225. <div
  8226. class="corOpen"
  8227. @click="contract(toolIndex)"
  8228. v-if="isCloseList[toolIndex].isClose == 1"
  8229. >
  8230. 展开
  8231. </div>
  8232. </div>
  8233. <div
  8234. style="display: flex;"
  8235. v-if="
  8236. (courseDetail.userid == userid ||
  8237. (courseDetail.course_teacher &&
  8238. courseDetail.course_teacher.indexOf(userid) !=
  8239. -1)) &&
  8240. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8241. taskCount
  8242. ].eList &&
  8243. chapInfoList[courseType].chapterInfo[0].taskJson[
  8244. taskCount
  8245. ].eList.length) ||
  8246. (tool.eList && tool.eList.length)) &&
  8247. courseDetail.state == 6
  8248. "
  8249. >
  8250. <div
  8251. style="margin-right:10px"
  8252. class="ScoreBtn"
  8253. @click="
  8254. resetLoopEva(
  8255. worksStudent[toolIndex],
  8256. chapInfoList[courseType].chapterInfo[0].taskJson[
  8257. taskCount
  8258. ].eList,
  8259. courseType,
  8260. taskCount,
  8261. toolIndex,
  8262. tool.toolDetail,
  8263. worksStudent
  8264. )
  8265. "
  8266. >
  8267. 一键重置
  8268. </div>
  8269. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8270. <img
  8271. src="../../assets/icon/newIcons/rootImg.png"
  8272. alt=""
  8273. />
  8274. AI评分
  8275. </div>
  8276. <div
  8277. class="ScoreBtn"
  8278. v-else-if="!loopLoading[toolIndex].loading"
  8279. @click="
  8280. loopEva(
  8281. worksStudent[toolIndex],
  8282. chapInfoList[courseType].chapterInfo[0].taskJson[
  8283. taskCount
  8284. ].eList,
  8285. courseType,
  8286. taskCount,
  8287. toolIndex,
  8288. tool.toolDetail,
  8289. chapInfoList[courseType].chapterInfo[0].taskJson[
  8290. taskCount
  8291. ].taskDetail,
  8292. tool
  8293. )
  8294. "
  8295. >
  8296. <img
  8297. src="../../assets/icon/newIcons/rootImg.png"
  8298. alt=""
  8299. />
  8300. AI评分
  8301. </div>
  8302. <div class="ScoreBtn" v-else>
  8303. <img
  8304. src="../../assets/icon/newIcons/rootImg.png"
  8305. alt=""
  8306. />
  8307. 正在评分
  8308. </div>
  8309. </div>
  8310. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8311. </div>
  8312. <div
  8313. class="group_workBox"
  8314. v-for="(g, gindex) in courseGroup.group"
  8315. :key="gindex"
  8316. >
  8317. <div class="group_box">
  8318. <div class="group_title">
  8319. <el-tooltip
  8320. class="item"
  8321. effect="light"
  8322. :content="g.name"
  8323. placement="top"
  8324. >
  8325. <div class="group_name">{{ g.name }}</div>
  8326. </el-tooltip>
  8327. </div>
  8328. <div
  8329. class="group_work"
  8330. v-if="
  8331. g.works &&
  8332. g.works.length &&
  8333. g.works[toolIndex].length
  8334. "
  8335. >
  8336. <div
  8337. class="works"
  8338. style="
  8339. width: 200px;
  8340. height: 140px;
  8341. margin: 10px 10px 10px 0;
  8342. border-radius: 15px;
  8343. box-shadow: 0 0 6px 1px #dfdada;
  8344. "
  8345. v-for="(w, wIndex) in g.works[toolIndex]"
  8346. :key="wIndex"
  8347. :class="w.type == 1 ? 'isTypeOne' : ''"
  8348. >
  8349. <div class="workImg">
  8350. <img
  8351. :src="w.works"
  8352. @click="previewImg(w.works, w)"
  8353. alt
  8354. />
  8355. <div
  8356. class="answerScore"
  8357. v-if="w.score"
  8358. @click.stop="openScore(w)"
  8359. :class="{
  8360. rightW:
  8361. w.userid == userid ||
  8362. tType == 1 ||
  8363. tType == 4
  8364. }"
  8365. >
  8366. {{ JSON.parse(w.score).wScore }}分
  8367. </div>
  8368. <div
  8369. class="answerScore"
  8370. @click.stop="openScore(w)"
  8371. v-else-if="courseDetail.userid == userid"
  8372. :class="{
  8373. rightW:
  8374. w.userid == userid ||
  8375. tType == 1 ||
  8376. tType == 4
  8377. }"
  8378. >
  8379. 评分
  8380. </div>
  8381. <img
  8382. class="deleteImg"
  8383. src="../../assets/deleteworks.png"
  8384. v-if="
  8385. w.userid == userid || tType == 1 || tType == 4
  8386. "
  8387. @click.stop="deleteWorks(w.wid)"
  8388. alt
  8389. />
  8390. </div>
  8391. <div class="comment" style="min-width: 200px">
  8392. <div class="worksName">
  8393. <div>{{ w.sName }}</div>
  8394. </div>
  8395. <div class="commentList">
  8396. <div class="commentList">
  8397. <div
  8398. class="commentImg"
  8399. @click="
  8400. isLikes(
  8401. w.wid,
  8402. userid,
  8403. 1,
  8404. null,
  8405. w.isLikes,
  8406. w.sName
  8407. )
  8408. "
  8409. >
  8410. <img
  8411. :src="w.isLikes == true ? likes : noLikes"
  8412. alt=""
  8413. />
  8414. </div>
  8415. <div>{{ w.likesCount }}</div>
  8416. </div>
  8417. <div
  8418. class="commentList"
  8419. style="margin-right: 15px"
  8420. >
  8421. <div
  8422. class="commentImg"
  8423. @click="
  8424. commentOther(
  8425. w,
  8426. toolIndex,
  8427. wIndex,
  8428. null,
  8429. g.id
  8430. )
  8431. "
  8432. >
  8433. <img
  8434. src="../../assets/icon/comment/comment.png"
  8435. alt=""
  8436. />
  8437. </div>
  8438. <div>{{ w.commentCount }}</div>
  8439. </div>
  8440. </div>
  8441. </div>
  8442. </div>
  8443. </div>
  8444. <div class="group_work" v-else>暂无提交作业</div>
  8445. </div>
  8446. </div>
  8447. <div
  8448. :id="'tool-' + toolIndex"
  8449. :style="{
  8450. height:
  8451. isCloseList[toolIndex].isClose == 1
  8452. ? retrnToolHeight('tool-' + toolIndex)
  8453. : 'auto',
  8454. overflow:
  8455. isCloseList[toolIndex].isClose == 1
  8456. ? 'hidden'
  8457. : 'unset'
  8458. }"
  8459. class="worksDetailBox"
  8460. v-if="
  8461. worksStudent.length &&
  8462. worksStudent[toolIndex].length > 0
  8463. "
  8464. >
  8465. <div
  8466. class="works"
  8467. style="
  8468. width: 200px;
  8469. height: 140px;
  8470. margin: 10px 10px 10px 0;
  8471. border-radius: 15px;
  8472. box-shadow: 0 0 6px 1px #dfdada;
  8473. "
  8474. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8475. :key="wIndex"
  8476. >
  8477. <!-- @click="previewImg(w.works)" -->
  8478. <div class="workImg">
  8479. <img
  8480. :src="w.works"
  8481. @click="previewImg(w.works, w)"
  8482. alt
  8483. />
  8484. <div
  8485. class="answerScore"
  8486. v-if="w.score"
  8487. @click.stop="openScore(w)"
  8488. :class="{
  8489. rightW:
  8490. w.userid == userid || tType == 1 || tType == 4
  8491. }"
  8492. >
  8493. {{ JSON.parse(w.score).wScore }}分
  8494. </div>
  8495. <div
  8496. class="answerScore"
  8497. @click.stop="openScore(w)"
  8498. v-else-if="
  8499. courseDetail.userid == userid &&
  8500. courseDetail.state != 6 &&
  8501. chapInfoList[courseType].chapterInfo[0]
  8502. .taskJson[taskCount].eList &&
  8503. chapInfoList[courseType].chapterInfo[0]
  8504. .taskJson[taskCount].eList.length
  8505. "
  8506. :class="{
  8507. rightW:
  8508. w.userid == userid || tType == 1 || tType == 4
  8509. }"
  8510. >
  8511. 评分
  8512. </div>
  8513. <!-- <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"> -->
  8514. <div
  8515. v-else-if="
  8516. (courseDetail.userid == userid ||
  8517. (courseDetail.course_teacher &&
  8518. courseDetail.course_teacher.indexOf(userid) !=
  8519. -1) ||
  8520. (w.userid == userid && sIsOpen)) &&
  8521. courseDetail.state == 6 &&
  8522. ((chapInfoList[courseType].chapterInfo[0]
  8523. .taskJson[taskCount].eList &&
  8524. chapInfoList[courseType].chapterInfo[0]
  8525. .taskJson[taskCount].eList.length) ||
  8526. (tool.eList && tool.eList.length))
  8527. "
  8528. >
  8529. <el-popover
  8530. placement="top"
  8531. width="318"
  8532. :disabled="AIloading[toolIndex][wIndex].loading"
  8533. trigger="hover"
  8534. >
  8535. <markScore
  8536. :loading="AIloading[toolIndex][wIndex].loading"
  8537. :markScoreVisible="markScoreVisible"
  8538. :ref="`markSco${toolIndex}${wIndex}`"
  8539. @updateLoading="updateLoading"
  8540. @updateDocSco="updateDocSco"
  8541. @refreshOther="refreshOther"
  8542. @markScoreDig="markScoreDig"
  8543. :tool="tool"
  8544. :wIndex="wIndex"
  8545. :scoCon="w"
  8546. :toolIndex="toolIndex"
  8547. :key="refreshKey"
  8548. :stage="courseType"
  8549. :task="taskCount"
  8550. :scoTit="
  8551. chapInfoList[courseType].chapterInfo[0]
  8552. .taskJson[taskCount].eList
  8553. "
  8554. >
  8555. </markScore>
  8556. <div
  8557. class="answerScore"
  8558. @click="
  8559. markScoreDig2(
  8560. w.sName,
  8561. worksStudent,
  8562. w.userid,
  8563. toolIndex,
  8564. chapInfoList[courseType].chapterInfo[0]
  8565. .taskJson[taskCount].eList,
  8566. AIloading[toolIndex][wIndex].loading,
  8567. tool
  8568. )
  8569. "
  8570. slot="reference"
  8571. :class="{
  8572. rightW:
  8573. w.userid == userid ||
  8574. tType == 1 ||
  8575. tType == 4 ||
  8576. w.ateacher == userid
  8577. }"
  8578. >
  8579. <span v-if="AIloading[toolIndex][wIndex].sco">
  8580. {{
  8581. AIloading[toolIndex][wIndex].loading
  8582. ? "评分中"
  8583. : AIloading[toolIndex][wIndex].sco + "分"
  8584. }}
  8585. </span>
  8586. <span v-else>
  8587. {{
  8588. AIloading[toolIndex][wIndex].loading
  8589. ? "评分中"
  8590. : "评分"
  8591. }}
  8592. </span>
  8593. </div>
  8594. </el-popover>
  8595. </div>
  8596. <img
  8597. class="deleteImg"
  8598. src="../../assets/deleteworks.png"
  8599. v-if="
  8600. w.userid == userid || tType == 1 || tType == 4
  8601. "
  8602. @click.stop="deleteWorks(w.wid)"
  8603. alt
  8604. />
  8605. </div>
  8606. <div class="comment" style="min-width: 200px">
  8607. <div class="worksName">
  8608. <div>{{ w.sName }}</div>
  8609. </div>
  8610. <div class="commentList">
  8611. <div class="commentList">
  8612. <div
  8613. class="commentImg"
  8614. @click="
  8615. isLikes(
  8616. w.wid,
  8617. userid,
  8618. 1,
  8619. null,
  8620. w.isLikes,
  8621. w.sName
  8622. )
  8623. "
  8624. >
  8625. <img
  8626. :src="w.isLikes == true ? likes : noLikes"
  8627. alt=""
  8628. />
  8629. </div>
  8630. <div>{{ w.likesCount }}</div>
  8631. </div>
  8632. <div class="commentList" style="margin-right: 15px">
  8633. <div
  8634. class="commentImg"
  8635. @click="commentOther(w, toolIndex, wIndex)"
  8636. >
  8637. <img
  8638. src="../../assets/icon/comment/comment.png"
  8639. alt=""
  8640. />
  8641. </div>
  8642. <div>{{ w.commentCount }}</div>
  8643. </div>
  8644. </div>
  8645. </div>
  8646. </div>
  8647. </div>
  8648. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8649. 未提交
  8650. </div>
  8651. <div
  8652. class="noWorksS"
  8653. v-if="noWorksS && noWorksS[toolIndex].length"
  8654. >
  8655. <div
  8656. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8657. :key="sIndex"
  8658. class="noWorksName"
  8659. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8660. >
  8661. <el-tooltip
  8662. effect="dark"
  8663. :content="s.student"
  8664. placement="top"
  8665. >
  8666. <span>{{ s.student }}</span>
  8667. </el-tooltip>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. <div
  8672. v-if="
  8673. tType &&
  8674. ((tType == 2 && sIsOpen == true) ||
  8675. tType == 1 ||
  8676. tType == 4) &&
  8677. tool.tool.indexOf(26) != -1
  8678. "
  8679. class="worksBox"
  8680. >
  8681. <div
  8682. class="zuoyeYulan"
  8683. v-if="
  8684. worksStudent.length &&
  8685. worksStudent[toolIndex].length > 0
  8686. "
  8687. >
  8688. <div class="worksTop">
  8689. <div>作业预览</div>
  8690. <div
  8691. class="corOpen"
  8692. @click="contract(toolIndex)"
  8693. v-if="
  8694. isCloseList[toolIndex].isCloseBoolean &&
  8695. isCloseList[toolIndex].isClose == 0
  8696. "
  8697. >
  8698. 折叠
  8699. </div>
  8700. <div
  8701. class="corOpen"
  8702. @click="contract(toolIndex)"
  8703. v-if="isCloseList[toolIndex].isClose == 1"
  8704. >
  8705. 展开
  8706. </div>
  8707. </div>
  8708. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8709. </div>
  8710. <div
  8711. :id="'tool-' + toolIndex"
  8712. :style="{
  8713. height:
  8714. isCloseList[toolIndex].isClose == 1
  8715. ? retrnToolHeight('tool-' + toolIndex)
  8716. : 'auto',
  8717. overflow:
  8718. isCloseList[toolIndex].isClose == 1
  8719. ? 'hidden'
  8720. : 'unset'
  8721. }"
  8722. class="worksDetailBox"
  8723. v-if="
  8724. worksStudent.length &&
  8725. worksStudent[toolIndex].length > 0
  8726. "
  8727. >
  8728. <div
  8729. class="works"
  8730. style="width: 240px; height: 140px; overflow: hidden"
  8731. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8732. :key="wIndex"
  8733. :class="w.type == 1 ? 'isTypeOne' : ''"
  8734. >
  8735. <div class="workImg" v-if="w.type == 0">
  8736. <img
  8737. :src="w.works"
  8738. @click="previewImg(w.works, w)"
  8739. alt
  8740. />
  8741. <img
  8742. class="deleteImg"
  8743. src="../../assets/deleteworks.png"
  8744. v-if="
  8745. w.userid == userid || tType == 1 || tType == 4
  8746. "
  8747. @click.stop="deleteWorks(w.wid)"
  8748. alt
  8749. />
  8750. </div>
  8751. <div class="workImg" v-if="w.type == 1">
  8752. <img :src="word" @click="openFile(w.works)" alt />
  8753. <img
  8754. class="deleteImg"
  8755. src="../../assets/deleteworks.png"
  8756. v-if="
  8757. w.userid == userid || tType == 1 || tType == 4
  8758. "
  8759. @click.stop="deleteWorks(w.wid)"
  8760. alt
  8761. />
  8762. </div>
  8763. <div class="worksName">
  8764. <div>{{ w.sName }}</div>
  8765. </div>
  8766. </div>
  8767. </div>
  8768. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8769. 未提交
  8770. </div>
  8771. <div
  8772. class="noWorksS"
  8773. v-if="noWorksS && noWorksS[toolIndex].length"
  8774. >
  8775. <div
  8776. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8777. :key="sIndex"
  8778. class="noWorksName"
  8779. >
  8780. <el-tooltip
  8781. effect="dark"
  8782. :content="s.student"
  8783. placement="top"
  8784. >
  8785. <span>{{ s.student }}</span>
  8786. </el-tooltip>
  8787. </div>
  8788. </div>
  8789. </div>
  8790. <div
  8791. v-if="
  8792. tType &&
  8793. ((tType == 2 && sIsOpen == true) ||
  8794. tType == 1 ||
  8795. tType == 4) &&
  8796. tool.tool.indexOf(40) != -1
  8797. "
  8798. class="worksBox"
  8799. >
  8800. <div
  8801. class="zuoyeYulan"
  8802. v-if="
  8803. worksStudent.length &&
  8804. worksStudent[toolIndex].length > 0
  8805. "
  8806. >
  8807. <div class="worksTop">
  8808. <div>作业预览</div>
  8809. <div
  8810. class="corOpen"
  8811. @click="contract(toolIndex)"
  8812. v-if="
  8813. isCloseList[toolIndex].isCloseBoolean &&
  8814. isCloseList[toolIndex].isClose == 0
  8815. "
  8816. >
  8817. 折叠
  8818. </div>
  8819. <div
  8820. class="corOpen"
  8821. @click="contract(toolIndex)"
  8822. v-if="isCloseList[toolIndex].isClose == 1"
  8823. >
  8824. 展开
  8825. </div>
  8826. </div>
  8827. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8828. </div>
  8829. <div
  8830. :id="'tool-' + toolIndex"
  8831. :style="{
  8832. height:
  8833. isCloseList[toolIndex].isClose == 1
  8834. ? retrnToolHeight('tool-' + toolIndex)
  8835. : 'auto',
  8836. overflow:
  8837. isCloseList[toolIndex].isClose == 1
  8838. ? 'hidden'
  8839. : 'unset'
  8840. }"
  8841. class="worksDetailBox"
  8842. v-if="
  8843. worksStudent.length &&
  8844. worksStudent[toolIndex].length > 0
  8845. "
  8846. >
  8847. <div
  8848. class="works"
  8849. style="
  8850. width: 200px;
  8851. height: 140px;
  8852. margin: 10px 10px 10px 0;
  8853. border-radius: 15px;
  8854. box-shadow: 0 0 6px 1px #dfdada;
  8855. "
  8856. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8857. :key="wIndex"
  8858. :class="w.type == 1 ? 'isTypeOne' : ''"
  8859. >
  8860. <div class="workImg">
  8861. <img
  8862. src="../../assets/icon/works/noImg.png"
  8863. @click="openPj(w.works, toolIndex)"
  8864. alt
  8865. />
  8866. <img
  8867. class="deleteImg"
  8868. src="../../assets/deleteworks.png"
  8869. v-if="
  8870. w.userid == userid || tType == 1 || tType == 4
  8871. "
  8872. @click.stop="deleteWorks(w.wid)"
  8873. alt
  8874. />
  8875. </div>
  8876. <div class="comment" style="min-width: 200px">
  8877. <div class="worksName">
  8878. <div>{{ w.sName }}</div>
  8879. </div>
  8880. <div class="commentList">
  8881. <div class="commentList">
  8882. <div
  8883. class="commentImg"
  8884. @click="
  8885. isLikes(
  8886. w.wid,
  8887. userid,
  8888. 1,
  8889. null,
  8890. w.isLikes,
  8891. w.sName
  8892. )
  8893. "
  8894. >
  8895. <img
  8896. :src="w.isLikes == true ? likes : noLikes"
  8897. alt=""
  8898. />
  8899. </div>
  8900. <div>{{ w.likesCount }}</div>
  8901. </div>
  8902. <div class="commentList" style="margin-right: 15px">
  8903. <div
  8904. class="commentImg"
  8905. @click="commentOther(w, toolIndex, wIndex)"
  8906. >
  8907. <img
  8908. src="../../assets/icon/comment/comment.png"
  8909. alt=""
  8910. />
  8911. </div>
  8912. <div>{{ w.commentCount }}</div>
  8913. </div>
  8914. </div>
  8915. </div>
  8916. </div>
  8917. </div>
  8918. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8919. 未提交
  8920. </div>
  8921. <div
  8922. class="noWorksS"
  8923. v-if="noWorksS && noWorksS[toolIndex].length"
  8924. >
  8925. <div
  8926. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8927. :key="sIndex"
  8928. class="noWorksName"
  8929. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8930. >
  8931. <el-tooltip
  8932. effect="dark"
  8933. :content="s.student"
  8934. placement="top"
  8935. >
  8936. <span>{{ s.student }}</span>
  8937. </el-tooltip>
  8938. </div>
  8939. </div>
  8940. </div>
  8941. <div
  8942. v-if="
  8943. tType &&
  8944. tType == 2 &&
  8945. !sIsOpen &&
  8946. tool.tool.indexOf(40) != -1
  8947. "
  8948. class="worksBox"
  8949. >
  8950. <div
  8951. class="zuoyeYulan"
  8952. v-if="workStudent[toolIndex].length > 0"
  8953. >
  8954. <span class="worksTitle">作业预览</span>
  8955. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8956. </div>
  8957. <div
  8958. class="worksDetailBox"
  8959. v-if="workStudent[toolIndex].length > 0"
  8960. >
  8961. <div
  8962. class="works"
  8963. style="
  8964. width: 200px;
  8965. height: 140px;
  8966. margin: 10px 10px 10px 0;
  8967. "
  8968. v-for="(w, wIndex) in workStudent[toolIndex]"
  8969. :key="wIndex"
  8970. >
  8971. <div class="workImg">
  8972. <img
  8973. src="../../assets/icon/works/noImg.png"
  8974. @click="openPj(w.works, toolIndex)"
  8975. alt
  8976. />
  8977. <img
  8978. class="deleteImg"
  8979. src="../../assets/deleteworks.png"
  8980. v-if="
  8981. w.userid == userid || tType == 1 || tType == 4
  8982. "
  8983. @click.stop="deleteWorks(w.wid)"
  8984. alt
  8985. />
  8986. </div>
  8987. <div class="worksName">
  8988. <div>{{ w.sName }}</div>
  8989. </div>
  8990. </div>
  8991. </div>
  8992. </div>
  8993. <div
  8994. v-if="
  8995. tType &&
  8996. ((tType == 2 && sIsOpen == true) ||
  8997. tType == 1 ||
  8998. tType == 4) &&
  8999. tool.tool.indexOf(41) != -1
  9000. "
  9001. >
  9002. <AnswerData2
  9003. v-if="
  9004. worksStudent.length &&
  9005. worksStudent[toolIndex].length > 0
  9006. "
  9007. :problemJson="tool.selectJson.answer"
  9008. :people="worksStudent[toolIndex]"
  9009. ></AnswerData2>
  9010. </div>
  9011. <div
  9012. v-if="
  9013. tType &&
  9014. ((tType == 2 && sIsOpen == true) ||
  9015. tType == 1 ||
  9016. tType == 4) &&
  9017. tool.tool.indexOf(41) != -1
  9018. "
  9019. class="worksBox"
  9020. >
  9021. <div
  9022. class="zuoyeYulan"
  9023. v-if="
  9024. worksStudent.length &&
  9025. worksStudent[toolIndex].length > 0
  9026. "
  9027. >
  9028. <div class="worksTop">
  9029. <div>作业预览</div>
  9030. <div
  9031. class="corOpen"
  9032. @click="contract(toolIndex)"
  9033. v-if="
  9034. isCloseList[toolIndex].isCloseBoolean &&
  9035. isCloseList[toolIndex].isClose == 0
  9036. "
  9037. >
  9038. 折叠
  9039. </div>
  9040. <div
  9041. class="corOpen"
  9042. @click="contract(toolIndex)"
  9043. v-if="isCloseList[toolIndex].isClose == 1"
  9044. >
  9045. 展开
  9046. </div>
  9047. </div>
  9048. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9049. </div>
  9050. <div
  9051. :id="'tool-' + toolIndex"
  9052. :style="{
  9053. height:
  9054. isCloseList[toolIndex].isClose == 1
  9055. ? retrnToolHeight('tool-' + toolIndex)
  9056. : 'auto',
  9057. overflow:
  9058. isCloseList[toolIndex].isClose == 1
  9059. ? 'hidden'
  9060. : 'unset'
  9061. }"
  9062. class="worksDetailBox"
  9063. v-if="
  9064. worksStudent.length &&
  9065. worksStudent[toolIndex].length > 0
  9066. "
  9067. >
  9068. <div
  9069. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9070. :key="wIndex"
  9071. class="isWorksName2"
  9072. @click="openXz(w, toolIndex)"
  9073. >
  9074. {{ w.sName }}
  9075. <img
  9076. class="deleteImg deleteImg2"
  9077. src="../../assets/deleteworks.png"
  9078. v-if="w.userid == userid || tType == 1 || tType == 4"
  9079. @click.stop="deleteWorks(w.wid)"
  9080. alt
  9081. />
  9082. </div>
  9083. <!-- <div
  9084. class="works"
  9085. style="
  9086. width: 200px;
  9087. height: 140px;
  9088. margin: 10px 10px 10px 0;
  9089. border-radius: 15px;
  9090. box-shadow: 0 0 6px 1px #dfdada;
  9091. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9092. :class="w.type == 5 ? 'isTypeOne' : ''">
  9093. <div class="workImg">
  9094. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9095. </div>
  9096. <div class="worksName">
  9097. <div>{{ w.sName }}</div>
  9098. </div>
  9099. </div> -->
  9100. </div>
  9101. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9102. 未提交
  9103. </div>
  9104. <div
  9105. class="noWorksS"
  9106. v-if="noWorksS && noWorksS[toolIndex].length"
  9107. >
  9108. <div
  9109. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9110. :key="sIndex"
  9111. class="noWorksName"
  9112. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9113. >
  9114. <el-tooltip
  9115. effect="dark"
  9116. :content="s.student"
  9117. placement="top"
  9118. >
  9119. <span>{{ s.student }}</span>
  9120. </el-tooltip>
  9121. </div>
  9122. </div>
  9123. </div>
  9124. <div
  9125. v-if="
  9126. tType &&
  9127. tType == 2 &&
  9128. !sIsOpen &&
  9129. tool.tool.indexOf(41) != -1
  9130. "
  9131. class="worksBox"
  9132. >
  9133. <div
  9134. class="zuoyeYulan"
  9135. v-if="workStudent[toolIndex].length > 0"
  9136. >
  9137. <span class="worksTitle">作业预览</span>
  9138. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9139. </div>
  9140. <div
  9141. class="worksDetailBox"
  9142. v-if="workStudent[toolIndex].length > 0"
  9143. >
  9144. <div
  9145. class="works"
  9146. style="
  9147. width: 200px;
  9148. height: 140px;
  9149. margin: 10px 10px 10px 0;
  9150. "
  9151. v-for="(w, wIndex) in workStudent[toolIndex]"
  9152. :key="wIndex"
  9153. >
  9154. <div class="workImg">
  9155. <img
  9156. src="../../assets/icon/works/noImg.png"
  9157. @click="openXz(w, toolIndex)"
  9158. alt
  9159. />
  9160. <img
  9161. class="deleteImg"
  9162. src="../../assets/deleteworks.png"
  9163. v-if="
  9164. w.userid == userid || tType == 1 || tType == 4
  9165. "
  9166. @click.stop="deleteWorks(w.wid)"
  9167. alt
  9168. />
  9169. </div>
  9170. <div class="worksName">
  9171. <div>{{ w.sName }}</div>
  9172. </div>
  9173. </div>
  9174. </div>
  9175. </div>
  9176. <div v-if="false" class="xuan_right_box">
  9177. <div
  9178. class="tool_right_box"
  9179. v-for="(item, index) in tool.sentenceList"
  9180. :key="index"
  9181. >
  9182. <div>
  9183. <span
  9184. style="word-break: break-all; white-space: normal"
  9185. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9186. >
  9187. </div>
  9188. <div class="right_box_xuan">
  9189. <span>正确率</span>
  9190. <span>{{
  9191. (checkJson[toolIndex][index].right
  9192. ? checkJson[toolIndex][index].right
  9193. : 0) + "%"
  9194. }}</span>
  9195. </div>
  9196. <div class="right_box_xuan">
  9197. <span>答对人数</span>
  9198. <span>{{
  9199. checkJson[toolIndex][index].rightPerson.length
  9200. }}</span>
  9201. </div>
  9202. </div>
  9203. </div>
  9204. <div
  9205. v-if="
  9206. tType &&
  9207. ((tType == 2 && sIsOpen == true) ||
  9208. tType == 1 ||
  9209. tType == 4) &&
  9210. tool.tool.indexOf(47) != -1
  9211. "
  9212. >
  9213. <AnswerData
  9214. v-if="
  9215. checkJson[toolIndex].length &&
  9216. (tool.sentenceList || tool.sentenceList.length > 0)
  9217. "
  9218. :people="checkJson[toolIndex]"
  9219. ></AnswerData>
  9220. </div>
  9221. <div
  9222. v-if="
  9223. tType &&
  9224. tType == 2 &&
  9225. !sIsOpen &&
  9226. tool.tool.indexOf(47) != -1
  9227. "
  9228. class="worksBox"
  9229. >
  9230. <div
  9231. class="zuoyeYulan"
  9232. v-if="workStudent[toolIndex].length > 0"
  9233. >
  9234. <span class="worksTitle">作业预览</span>
  9235. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9236. </div>
  9237. <div
  9238. class="worksDetailBox"
  9239. v-if="workStudent[toolIndex].length > 0"
  9240. >
  9241. <div
  9242. class="works"
  9243. style="
  9244. width: 200px;
  9245. height: 140px;
  9246. margin: 10px 10px 10px 0;
  9247. "
  9248. v-for="(w, wIndex) in workStudent[toolIndex]"
  9249. :key="wIndex"
  9250. >
  9251. <!-- @click="openXz(w, toolIndex)" -->
  9252. <div class="workImg" @click="openSen(w, toolIndex)">
  9253. <img src="../../assets/icon/works/noImg.png" alt />
  9254. <img
  9255. class="deleteImg"
  9256. src="../../assets/deleteworks.png"
  9257. v-if="
  9258. w.userid == userid || tType == 1 || tType == 4
  9259. "
  9260. @click.stop="deleteWorks(w.wid)"
  9261. alt
  9262. />
  9263. </div>
  9264. <div class="worksName">
  9265. <div>
  9266. {{ w.sName }}
  9267. </div>
  9268. </div>
  9269. </div>
  9270. </div>
  9271. </div>
  9272. <div
  9273. v-if="
  9274. tType &&
  9275. ((tType == 2 && sIsOpen == true) ||
  9276. tType == 1 ||
  9277. tType == 4) &&
  9278. tool.tool.indexOf(47) != -1
  9279. "
  9280. class="worksBox"
  9281. >
  9282. <div
  9283. class="zuoyeYulan"
  9284. v-if="
  9285. worksStudent.length &&
  9286. worksStudent[toolIndex].length > 0
  9287. "
  9288. >
  9289. <div class="worksTop">
  9290. <div>作业预览</div>
  9291. <div
  9292. class="corOpen"
  9293. @click="contract(toolIndex)"
  9294. v-if="
  9295. isCloseList[toolIndex].isCloseBoolean &&
  9296. isCloseList[toolIndex].isClose == 0
  9297. "
  9298. >
  9299. 折叠
  9300. </div>
  9301. <div
  9302. class="corOpen"
  9303. @click="contract(toolIndex)"
  9304. v-if="isCloseList[toolIndex].isClose == 1"
  9305. >
  9306. 展开
  9307. </div>
  9308. </div>
  9309. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9310. </div>
  9311. <div
  9312. :id="'tool-' + toolIndex"
  9313. :style="{
  9314. height:
  9315. isCloseList[toolIndex].isClose == 1
  9316. ? retrnToolHeight('tool-' + toolIndex)
  9317. : 'auto',
  9318. overflow:
  9319. isCloseList[toolIndex].isClose == 1
  9320. ? 'hidden'
  9321. : 'unset'
  9322. }"
  9323. class="worksDetailBox"
  9324. v-if="
  9325. worksStudent.length &&
  9326. worksStudent[toolIndex].length > 0
  9327. "
  9328. >
  9329. <!-- @click="openXz(w, toolIndex)" -->
  9330. <div
  9331. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9332. :key="wIndex"
  9333. class="isWorksName2"
  9334. @click="openSen(w, toolIndex)"
  9335. >
  9336. {{ w.sName }}
  9337. <img
  9338. class="deleteImg deleteImg2"
  9339. src="../../assets/deleteworks.png"
  9340. v-if="w.userid == userid || tType == 1 || tType == 4"
  9341. @click.stop="deleteWorks(w.wid)"
  9342. alt
  9343. />
  9344. </div>
  9345. </div>
  9346. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9347. 未提交
  9348. </div>
  9349. <div
  9350. class="noWorksS"
  9351. v-if="noWorksS && noWorksS[toolIndex].length"
  9352. >
  9353. <div
  9354. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9355. :key="sIndex"
  9356. class="noWorksName"
  9357. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9358. >
  9359. <el-tooltip
  9360. effect="dark"
  9361. :content="s.student"
  9362. placement="top"
  9363. >
  9364. <span>{{ s.student }}</span>
  9365. </el-tooltip>
  9366. </div>
  9367. </div>
  9368. </div>
  9369. <div
  9370. v-if="
  9371. tType &&
  9372. ((tType == 2 && sIsOpen == true) ||
  9373. tType == 1 ||
  9374. tType == 4) &&
  9375. tool.tool.indexOf(48) != -1
  9376. "
  9377. class="worksBox"
  9378. >
  9379. <div
  9380. class="zuoyeYulan"
  9381. style="display: flex;justify-content: space-between;align-items: center;"
  9382. v-if="
  9383. worksStudent.length &&
  9384. worksStudent[toolIndex].length > 0
  9385. "
  9386. >
  9387. <div class="worksTop">
  9388. <div>作业预览</div>
  9389. <div
  9390. class="corOpen"
  9391. @click="contract(toolIndex)"
  9392. v-if="
  9393. isCloseList[toolIndex].isCloseBoolean &&
  9394. isCloseList[toolIndex].isClose == 0
  9395. "
  9396. >
  9397. 折叠
  9398. </div>
  9399. <div
  9400. class="corOpen"
  9401. @click="contract(toolIndex)"
  9402. v-if="isCloseList[toolIndex].isClose == 1"
  9403. >
  9404. 展开
  9405. </div>
  9406. </div>
  9407. <div
  9408. style="display: flex;"
  9409. v-if="
  9410. (courseDetail.userid == userid ||
  9411. (courseDetail.course_teacher &&
  9412. courseDetail.course_teacher.indexOf(userid) !=
  9413. -1)) &&
  9414. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9415. taskCount
  9416. ].eList &&
  9417. chapInfoList[courseType].chapterInfo[0].taskJson[
  9418. taskCount
  9419. ].eList.length) ||
  9420. (tool.eList && tool.eList.length)) &&
  9421. courseDetail.state == 6
  9422. "
  9423. >
  9424. <div
  9425. style="margin-right:10px"
  9426. class="ScoreBtn"
  9427. @click="
  9428. resetLoopEva(
  9429. worksStudent[toolIndex],
  9430. chapInfoList[courseType].chapterInfo[0].taskJson[
  9431. taskCount
  9432. ].eList,
  9433. courseType,
  9434. taskCount,
  9435. toolIndex,
  9436. tool.toolDetail,
  9437. worksStudent
  9438. )
  9439. "
  9440. >
  9441. 一键重置
  9442. </div>
  9443. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9444. <img
  9445. src="../../assets/icon/newIcons/rootImg.png"
  9446. alt=""
  9447. />
  9448. AI评分
  9449. </div>
  9450. <div
  9451. class="ScoreBtn"
  9452. v-else-if="!loopLoading[toolIndex].loading"
  9453. @click="
  9454. loopEva(
  9455. worksStudent[toolIndex],
  9456. chapInfoList[courseType].chapterInfo[0].taskJson[
  9457. taskCount
  9458. ].eList,
  9459. courseType,
  9460. taskCount,
  9461. toolIndex,
  9462. tool.toolDetail,
  9463. chapInfoList[courseType].chapterInfo[0].taskJson[
  9464. taskCount
  9465. ].taskDetail,
  9466. tool
  9467. )
  9468. "
  9469. >
  9470. <img
  9471. src="../../assets/icon/newIcons/rootImg.png"
  9472. alt=""
  9473. />
  9474. AI评分
  9475. </div>
  9476. <div class="ScoreBtn" v-else>
  9477. <img
  9478. src="../../assets/icon/newIcons/rootImg.png"
  9479. alt=""
  9480. />
  9481. 正在评分
  9482. </div>
  9483. </div>
  9484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9485. </div>
  9486. <div
  9487. :id="'tool-' + toolIndex"
  9488. :style="{
  9489. height:
  9490. isCloseList[toolIndex].isClose == 1
  9491. ? retrnToolHeight('tool-' + toolIndex)
  9492. : 'auto',
  9493. overflow:
  9494. isCloseList[toolIndex].isClose == 1
  9495. ? 'hidden'
  9496. : 'unset'
  9497. }"
  9498. class="worksDetailBox"
  9499. v-if="
  9500. worksStudent.length &&
  9501. worksStudent[toolIndex].length > 0
  9502. "
  9503. >
  9504. <div
  9505. class="works"
  9506. style="
  9507. width: 200px;
  9508. height: 140px;
  9509. margin: 10px 10px 10px 0;
  9510. border-radius: 15px;
  9511. box-shadow: 0 0 6px 1px #dfdada;
  9512. "
  9513. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9514. :key="wIndex"
  9515. :class="w.type == 1 ? 'isTypeOne' : ''"
  9516. >
  9517. <div class="workImg">
  9518. <img :src="word" @click="openTable(w)" alt />
  9519. <!-- @click="openFile(w.works)" -->
  9520. <div
  9521. class="answerScore"
  9522. v-if="w.score"
  9523. @click.stop="openScore(w)"
  9524. :class="{
  9525. rightW:
  9526. w.userid == userid ||
  9527. tType == 1 ||
  9528. tType == 4 ||
  9529. w.ateacher == userid
  9530. }"
  9531. >
  9532. {{ JSON.parse(w.score).wScore }}分
  9533. </div>
  9534. <div
  9535. class="answerScore"
  9536. @click.stop="openScore(w)"
  9537. v-else-if="
  9538. courseDetail.userid == userid &&
  9539. courseDetail.state != 6 &&
  9540. chapInfoList[courseType].chapterInfo[0]
  9541. .taskJson[taskCount].eList &&
  9542. chapInfoList[courseType].chapterInfo[0]
  9543. .taskJson[taskCount].eList.length
  9544. "
  9545. :class="{
  9546. rightW:
  9547. w.userid == userid ||
  9548. tType == 1 ||
  9549. tType == 4 ||
  9550. w.ateacher == userid
  9551. }"
  9552. >
  9553. 评分
  9554. </div>
  9555. <!-- <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"> -->
  9556. <div
  9557. v-else-if="
  9558. (courseDetail.userid == userid ||
  9559. (courseDetail.course_teacher &&
  9560. courseDetail.course_teacher.indexOf(userid) !=
  9561. -1) ||
  9562. (w.userid == userid && sIsOpen)) &&
  9563. courseDetail.state == 6 &&
  9564. ((chapInfoList[courseType].chapterInfo[0]
  9565. .taskJson[taskCount].eList &&
  9566. chapInfoList[courseType].chapterInfo[0]
  9567. .taskJson[taskCount].eList.length) ||
  9568. (tool.eList && tool.eList.length))
  9569. "
  9570. >
  9571. <el-popover
  9572. placement="top"
  9573. width="318"
  9574. :disabled="AIloading[toolIndex][wIndex].loading"
  9575. trigger="hover"
  9576. >
  9577. <markScore
  9578. :loading="AIloading[toolIndex][wIndex].loading"
  9579. :markScoreVisible="markScoreVisible"
  9580. :ref="`markSco${toolIndex}${wIndex}`"
  9581. @updateLoading="updateLoading"
  9582. @updateDocSco="updateDocSco"
  9583. @refreshOther="refreshOther"
  9584. @markScoreDig="markScoreDig"
  9585. :tool="tool"
  9586. :wIndex="wIndex"
  9587. :scoCon="w"
  9588. :toolIndex="toolIndex"
  9589. :key="refreshKey"
  9590. :stage="courseType"
  9591. :task="taskCount"
  9592. :scoTit="
  9593. chapInfoList[courseType].chapterInfo[0]
  9594. .taskJson[taskCount].eList
  9595. "
  9596. >
  9597. </markScore>
  9598. <div
  9599. class="answerScore"
  9600. @click="
  9601. markScoreDig2(
  9602. w.sName,
  9603. worksStudent,
  9604. w.userid,
  9605. toolIndex,
  9606. chapInfoList[courseType].chapterInfo[0]
  9607. .taskJson[taskCount].eList,
  9608. AIloading[toolIndex][wIndex].loading,
  9609. tool
  9610. )
  9611. "
  9612. slot="reference"
  9613. :class="{
  9614. rightW:
  9615. w.userid == userid ||
  9616. tType == 1 ||
  9617. tType == 4 ||
  9618. w.ateacher == userid
  9619. }"
  9620. >
  9621. <span v-if="AIloading[toolIndex][wIndex].sco">
  9622. {{
  9623. AIloading[toolIndex][wIndex].loading
  9624. ? "评分中"
  9625. : AIloading[toolIndex][wIndex].sco + "分"
  9626. }}
  9627. </span>
  9628. <span v-else>
  9629. {{
  9630. AIloading[toolIndex][wIndex].loading
  9631. ? "评分中"
  9632. : "评分"
  9633. }}
  9634. </span>
  9635. </div>
  9636. </el-popover>
  9637. </div>
  9638. <img
  9639. class="deleteImg"
  9640. src="../../assets/deleteworks.png"
  9641. v-if="
  9642. w.userid == userid || tType == 1 || tType == 4
  9643. "
  9644. @click.stop="deleteWorks(w.wid)"
  9645. alt
  9646. />
  9647. </div>
  9648. <div class="comment" style="min-width: 200px">
  9649. <div class="worksName">
  9650. <div>{{ w.sName }}</div>
  9651. </div>
  9652. <div class="commentList">
  9653. <div class="commentList">
  9654. <div
  9655. class="commentImg"
  9656. @click="
  9657. isLikes(
  9658. w.wid,
  9659. userid,
  9660. 1,
  9661. null,
  9662. w.isLikes,
  9663. w.sName
  9664. )
  9665. "
  9666. >
  9667. <img
  9668. :src="w.isLikes == true ? likes : noLikes"
  9669. alt=""
  9670. />
  9671. </div>
  9672. <div>{{ w.likesCount }}</div>
  9673. </div>
  9674. <div class="commentList" style="margin-right: 15px">
  9675. <div
  9676. class="commentImg"
  9677. @click="commentOther(w, toolIndex, wIndex)"
  9678. >
  9679. <img
  9680. src="../../assets/icon/comment/comment.png"
  9681. alt=""
  9682. />
  9683. </div>
  9684. <div>{{ w.commentCount }}</div>
  9685. </div>
  9686. </div>
  9687. </div>
  9688. </div>
  9689. </div>
  9690. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9691. 未提交
  9692. </div>
  9693. <div
  9694. class="noWorksS"
  9695. v-if="noWorksS && noWorksS[toolIndex].length"
  9696. >
  9697. <div
  9698. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9699. :key="sIndex"
  9700. class="noWorksName"
  9701. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9702. >
  9703. <el-tooltip
  9704. effect="dark"
  9705. :content="s.student"
  9706. placement="top"
  9707. >
  9708. <span>{{ s.student }}</span>
  9709. </el-tooltip>
  9710. </div>
  9711. </div>
  9712. </div>
  9713. <div
  9714. v-if="
  9715. tType &&
  9716. tType == 2 &&
  9717. !sIsOpen &&
  9718. tool.tool.indexOf(48) != -1
  9719. "
  9720. class="worksBox"
  9721. >
  9722. <div
  9723. class="zuoyeYulan"
  9724. v-if="workStudent[toolIndex].length > 0"
  9725. >
  9726. <span class="worksTitle">作业预览</span>
  9727. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9728. </div>
  9729. <div
  9730. class="worksDetailBox"
  9731. v-if="workStudent[toolIndex].length > 0"
  9732. >
  9733. <div
  9734. class="works"
  9735. style="
  9736. width: 200px;
  9737. height: 140px;
  9738. margin: 10px 10px 10px 0;
  9739. box-shadow: 0 0 6px 1px #dfdada;
  9740. "
  9741. v-for="(w, wIndex) in workStudent[toolIndex]"
  9742. :key="wIndex"
  9743. >
  9744. <div class="workImg">
  9745. <img :src="word" @click="openTable(w)" alt />
  9746. <div
  9747. class="answerScore"
  9748. v-if="w.score"
  9749. @click.stop="openScore(w)"
  9750. :class="{
  9751. rightW:
  9752. w.userid == userid || tType == 1 || tType == 4
  9753. }"
  9754. >
  9755. {{ JSON.parse(w.score).wScore }}分
  9756. </div>
  9757. <div
  9758. class="answerScore"
  9759. @click.stop="openScore(w)"
  9760. v-else-if="courseDetail.userid == userid"
  9761. :class="{
  9762. rightW:
  9763. w.userid == userid || tType == 1 || tType == 4
  9764. }"
  9765. >
  9766. 评分
  9767. </div>
  9768. <div
  9769. class="stuLookScore"
  9770. v-if="
  9771. w.userid == userid ||
  9772. (tType == 1 &&
  9773. courseDetail.state == 6 &&
  9774. ((chapInfoList[courseType].chapterInfo[0]
  9775. .taskJson[taskCount].eList &&
  9776. chapInfoList[courseType].chapterInfo[0]
  9777. .taskJson[taskCount].eList.length) ||
  9778. (tool.eList && tool.eList.length)))
  9779. "
  9780. >
  9781. <el-popover
  9782. placement="top"
  9783. width="318"
  9784. trigger="hover"
  9785. >
  9786. <markScore
  9787. :loading="AIloading[toolIndex][wIndex].loading"
  9788. :markScoreVisible="markScoreVisible"
  9789. :ref="`markSco${toolIndex}${wIndex}`"
  9790. @updateLoading="updateLoading"
  9791. @updateDocSco="updateDocSco"
  9792. @refreshOther="refreshOther"
  9793. @markScoreDig="markScoreDig"
  9794. :tool="tool"
  9795. :wIndex="wIndex"
  9796. :scoCon="w"
  9797. :toolIndex="toolIndex"
  9798. :key="refreshKey"
  9799. :stage="courseType"
  9800. :task="taskCount"
  9801. :scoTit="
  9802. chapInfoList[courseType].chapterInfo[0]
  9803. .taskJson[taskCount].eList
  9804. "
  9805. >
  9806. </markScore>
  9807. <div
  9808. @click="
  9809. markScoreDig2(
  9810. w.sName,
  9811. worksStudent,
  9812. w.userid,
  9813. toolIndex,
  9814. chapInfoList[courseType].chapterInfo[0]
  9815. .taskJson[taskCount].eList,
  9816. AIloading[toolIndex][wIndex].loading,
  9817. tool
  9818. )
  9819. "
  9820. slot="reference"
  9821. >
  9822. <span v-if="AIloading[toolIndex][wIndex].sco">
  9823. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9824. </span>
  9825. <span v-else>
  9826. 评分
  9827. </span>
  9828. </div>
  9829. </el-popover>
  9830. </div>
  9831. <img
  9832. class="deleteImg"
  9833. src="../../assets/deleteworks.png"
  9834. v-if="
  9835. w.userid == userid || tType == 1 || tType == 4
  9836. "
  9837. @click.stop="deleteWorks(w.wid)"
  9838. alt
  9839. />
  9840. </div>
  9841. <div class="worksName">
  9842. <div>{{ w.sName }}</div>
  9843. </div>
  9844. </div>
  9845. </div>
  9846. </div>
  9847. <div
  9848. v-if="
  9849. tType &&
  9850. ((tType == 2 && sIsOpen == true) ||
  9851. tType == 1 ||
  9852. tType == 4) &&
  9853. tool.tool.indexOf(52) != -1
  9854. "
  9855. class="worksBox"
  9856. >
  9857. <div
  9858. class="zuoyeYulan"
  9859. style="display: flex;justify-content: space-between;align-items: center;"
  9860. v-if="
  9861. worksStudent.length &&
  9862. worksStudent[toolIndex].length > 0
  9863. "
  9864. >
  9865. <div class="worksTop">
  9866. <div>作业预览</div>
  9867. <div
  9868. class="corOpen"
  9869. @click="contract(toolIndex)"
  9870. v-if="
  9871. isCloseList[toolIndex].isCloseBoolean &&
  9872. isCloseList[toolIndex].isClose == 0
  9873. "
  9874. >
  9875. 折叠
  9876. </div>
  9877. <div
  9878. class="corOpen"
  9879. @click="contract(toolIndex)"
  9880. v-if="isCloseList[toolIndex].isClose == 1"
  9881. >
  9882. 展开
  9883. </div>
  9884. </div>
  9885. <div
  9886. style="display: flex;"
  9887. v-if="
  9888. (courseDetail.userid == userid ||
  9889. (courseDetail.course_teacher &&
  9890. courseDetail.course_teacher.indexOf(userid) !=
  9891. -1)) &&
  9892. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9893. taskCount
  9894. ].eList &&
  9895. chapInfoList[courseType].chapterInfo[0].taskJson[
  9896. taskCount
  9897. ].eList.length) ||
  9898. (tool.eList && tool.eList.length)) &&
  9899. courseDetail.state == 6
  9900. "
  9901. >
  9902. <!-- <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"> -->
  9903. <div
  9904. @click="
  9905. resetLoopEva(
  9906. worksStudent[toolIndex],
  9907. chapInfoList[courseType].chapterInfo[0].taskJson[
  9908. taskCount
  9909. ].eList,
  9910. courseType,
  9911. taskCount,
  9912. toolIndex,
  9913. tool.toolDetail,
  9914. tool
  9915. )
  9916. "
  9917. style="margin-right:10px"
  9918. class="ScoreBtn"
  9919. >
  9920. 一键重置
  9921. </div>
  9922. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9923. <img
  9924. src="../../assets/icon/newIcons/rootImg.png"
  9925. alt=""
  9926. />
  9927. AI评分
  9928. </div>
  9929. <div
  9930. class="ScoreBtn"
  9931. v-else-if="!loopLoading[toolIndex].loading"
  9932. @click="
  9933. loopEva(
  9934. worksStudent[toolIndex],
  9935. chapInfoList[courseType].chapterInfo[0].taskJson[
  9936. taskCount
  9937. ].eList,
  9938. courseType,
  9939. taskCount,
  9940. toolIndex,
  9941. tool.toolDetail,
  9942. chapInfoList[courseType].chapterInfo[0].taskJson[
  9943. taskCount
  9944. ].taskDetail,
  9945. tool
  9946. )
  9947. "
  9948. >
  9949. <img
  9950. src="../../assets/icon/newIcons/rootImg.png"
  9951. alt=""
  9952. />
  9953. AI评分
  9954. </div>
  9955. <div class="ScoreBtn" v-else>
  9956. <img
  9957. src="../../assets/icon/newIcons/rootImg.png"
  9958. alt=""
  9959. />
  9960. 正在评分
  9961. </div>
  9962. </div>
  9963. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9964. </div>
  9965. <div
  9966. :id="'tool-' + toolIndex"
  9967. :style="{
  9968. height:
  9969. isCloseList[toolIndex].isClose == 1
  9970. ? retrnToolHeight('tool-' + toolIndex)
  9971. : 'auto',
  9972. overflow:
  9973. isCloseList[toolIndex].isClose == 1
  9974. ? 'hidden'
  9975. : 'unset'
  9976. }"
  9977. class="worksDetailBox"
  9978. v-if="
  9979. worksStudent.length &&
  9980. worksStudent[toolIndex].length > 0
  9981. "
  9982. >
  9983. <div
  9984. class="works"
  9985. style="
  9986. width: 200px;
  9987. height: 140px;
  9988. margin: 10px 10px 10px 0;
  9989. border-radius: 15px;
  9990. box-shadow: 0 0 6px 1px #dfdada;
  9991. "
  9992. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9993. :key="wIndex"
  9994. :class="w.type == 1 ? 'isTypeOne' : ''"
  9995. >
  9996. <div class="workImg">
  9997. <img :src="word" @click="openWord(w)" alt />
  9998. <!-- @click="openFile(w.works)" -->
  9999. <div
  10000. class="answerScore"
  10001. v-if="w.score"
  10002. @click.stop="openScore(w)"
  10003. :class="{
  10004. rightW:
  10005. w.userid == userid ||
  10006. tType == 1 ||
  10007. tType == 4 ||
  10008. w.ateacher == userid
  10009. }"
  10010. >
  10011. {{ JSON.parse(w.score).wScore }}分
  10012. </div>
  10013. <div
  10014. class="answerScore"
  10015. @click.stop="openScore(w)"
  10016. v-else-if="
  10017. courseDetail.userid == userid &&
  10018. courseDetail.state != 6 &&
  10019. chapInfoList[courseType].chapterInfo[0]
  10020. .taskJson[taskCount].eList &&
  10021. chapInfoList[courseType].chapterInfo[0]
  10022. .taskJson[taskCount].eList.length
  10023. "
  10024. :class="{
  10025. rightW:
  10026. w.userid == userid ||
  10027. tType == 1 ||
  10028. tType == 4 ||
  10029. w.ateacher == userid
  10030. }"
  10031. >
  10032. 评分
  10033. </div>
  10034. <!-- <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"> -->
  10035. <div
  10036. v-else-if="
  10037. (courseDetail.userid == userid ||
  10038. (courseDetail.course_teacher &&
  10039. courseDetail.course_teacher.indexOf(userid) !=
  10040. -1) ||
  10041. (w.userid == userid && sIsOpen)) &&
  10042. courseDetail.state == 6 &&
  10043. ((chapInfoList[courseType].chapterInfo[0]
  10044. .taskJson[taskCount].eList &&
  10045. chapInfoList[courseType].chapterInfo[0]
  10046. .taskJson[taskCount].eList.length) ||
  10047. (tool.eList && tool.eList.length))
  10048. "
  10049. >
  10050. <!-- <div
  10051. class="answerScore"
  10052. @click="markScoreDig(w.userid,toolIndex)"
  10053. :class="{
  10054. rightW:
  10055. w.userid == userid ||
  10056. tType == 1 ||
  10057. tType == 4 ||
  10058. w.ateacher == userid,
  10059. }"
  10060. >
  10061. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10062. </div> -->
  10063. <!-- @show="handleShow(toolIndex,wIndex)"
  10064. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10065. <el-popover
  10066. placement="top"
  10067. width="318"
  10068. :disabled="AIloading[toolIndex][wIndex].loading"
  10069. trigger="hover"
  10070. >
  10071. <markScore
  10072. :loading="AIloading[toolIndex][wIndex].loading"
  10073. :markScoreVisible="markScoreVisible"
  10074. :ref="`markSco${toolIndex}${wIndex}`"
  10075. @updateLoading="updateLoading"
  10076. @updateDocSco="updateDocSco"
  10077. @refreshOther="refreshOther"
  10078. @markScoreDig="markScoreDig"
  10079. :tool="tool"
  10080. :wIndex="wIndex"
  10081. :scoCon="w"
  10082. :toolIndex="toolIndex"
  10083. :key="refreshKey"
  10084. :stage="courseType"
  10085. :task="taskCount"
  10086. :scoTit="
  10087. chapInfoList[courseType].chapterInfo[0]
  10088. .taskJson[taskCount].eList
  10089. "
  10090. >
  10091. </markScore>
  10092. <div
  10093. class="answerScore"
  10094. @click="
  10095. markScoreDig2(
  10096. w.sName,
  10097. worksStudent,
  10098. w.userid,
  10099. toolIndex,
  10100. chapInfoList[courseType].chapterInfo[0]
  10101. .taskJson[taskCount].eList,
  10102. AIloading[toolIndex][wIndex].loading,
  10103. tool
  10104. )
  10105. "
  10106. slot="reference"
  10107. :class="{
  10108. rightW:
  10109. w.userid == userid ||
  10110. tType == 1 ||
  10111. tType == 4 ||
  10112. w.ateacher == userid
  10113. }"
  10114. >
  10115. <span v-if="AIloading[toolIndex][wIndex].sco">
  10116. {{
  10117. AIloading[toolIndex][wIndex].loading
  10118. ? "评分中"
  10119. : AIloading[toolIndex][wIndex].sco + "分"
  10120. }}
  10121. </span>
  10122. <span v-else>
  10123. {{
  10124. AIloading[toolIndex][wIndex].loading
  10125. ? "评分中"
  10126. : "评分"
  10127. }}
  10128. </span>
  10129. </div>
  10130. </el-popover>
  10131. </div>
  10132. <img
  10133. class="deleteImg"
  10134. src="../../assets/deleteworks.png"
  10135. v-if="
  10136. w.userid == userid || tType == 1 || tType == 4
  10137. "
  10138. @click.stop="deleteWorks(w.wid)"
  10139. alt
  10140. />
  10141. </div>
  10142. <div class="comment" style="min-width: 200px">
  10143. <div class="worksName">
  10144. <div>{{ w.sName }}</div>
  10145. </div>
  10146. <div class="commentList">
  10147. <div class="commentList">
  10148. <div
  10149. class="commentImg"
  10150. @click="
  10151. isLikes(
  10152. w.wid,
  10153. userid,
  10154. 1,
  10155. null,
  10156. w.isLikes,
  10157. w.sName
  10158. )
  10159. "
  10160. >
  10161. <img
  10162. :src="w.isLikes == true ? likes : noLikes"
  10163. alt=""
  10164. />
  10165. </div>
  10166. <div>{{ w.likesCount }}</div>
  10167. </div>
  10168. <div class="commentList" style="margin-right: 15px">
  10169. <div
  10170. class="commentImg"
  10171. @click="commentOther(w, toolIndex, wIndex)"
  10172. >
  10173. <img
  10174. src="../../assets/icon/comment/comment.png"
  10175. alt=""
  10176. />
  10177. </div>
  10178. <div>{{ w.commentCount }}</div>
  10179. </div>
  10180. </div>
  10181. </div>
  10182. </div>
  10183. </div>
  10184. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10185. 未提交
  10186. </div>
  10187. <div
  10188. class="noWorksS"
  10189. v-if="noWorksS && noWorksS[toolIndex].length"
  10190. >
  10191. <div
  10192. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10193. :key="sIndex"
  10194. class="noWorksName"
  10195. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10196. >
  10197. <el-tooltip
  10198. effect="dark"
  10199. :content="s.student"
  10200. placement="top"
  10201. >
  10202. <span>{{ s.student }}</span>
  10203. </el-tooltip>
  10204. </div>
  10205. </div>
  10206. </div>
  10207. <div
  10208. v-if="
  10209. tType &&
  10210. tType == 2 &&
  10211. !sIsOpen &&
  10212. tool.tool.indexOf(52) != -1
  10213. "
  10214. class="worksBox"
  10215. >
  10216. <div
  10217. class="zuoyeYulan"
  10218. v-if="workStudent[toolIndex].length > 0"
  10219. >
  10220. <span class="worksTitle">作业预览</span>
  10221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10222. </div>
  10223. <div
  10224. class="worksDetailBox"
  10225. v-if="workStudent[toolIndex].length > 0"
  10226. >
  10227. <div
  10228. class="works"
  10229. style="
  10230. width: 200px;
  10231. height: 140px;
  10232. margin: 10px 10px 10px 0;
  10233. box-shadow: 0 0 6px 1px #dfdada;
  10234. "
  10235. v-for="(w, wIndex) in workStudent[toolIndex]"
  10236. :key="wIndex"
  10237. >
  10238. <div class="workImg">
  10239. <img :src="word" @click="openWord(w)" alt />
  10240. <div
  10241. class="answerScore"
  10242. v-if="w.score"
  10243. @click.stop="openScore(w)"
  10244. :class="{
  10245. rightW:
  10246. w.userid == userid || tType == 1 || tType == 4
  10247. }"
  10248. >
  10249. {{ JSON.parse(w.score).wScore }}分
  10250. </div>
  10251. <div
  10252. class="answerScore"
  10253. @click.stop="openScore(w)"
  10254. v-else-if="courseDetail.userid == userid"
  10255. :class="{
  10256. rightW:
  10257. w.userid == userid || tType == 1 || tType == 4
  10258. }"
  10259. >
  10260. 评分
  10261. </div>
  10262. <div
  10263. class="stuLookScore"
  10264. v-if="
  10265. w.userid == userid ||
  10266. (tType == 1 &&
  10267. courseDetail.state == 6 &&
  10268. ((chapInfoList[courseType].chapterInfo[0]
  10269. .taskJson[taskCount].eList &&
  10270. chapInfoList[courseType].chapterInfo[0]
  10271. .taskJson[taskCount].eList.length) ||
  10272. (tool.eList && tool.eList.length)))
  10273. "
  10274. >
  10275. <el-popover
  10276. placement="top"
  10277. width="318"
  10278. trigger="hover"
  10279. >
  10280. <markScore
  10281. :loading="AIloading[toolIndex][wIndex].loading"
  10282. :markScoreVisible="markScoreVisible"
  10283. :ref="`markSco${toolIndex}${wIndex}`"
  10284. @updateLoading="updateLoading"
  10285. @updateDocSco="updateDocSco"
  10286. @refreshOther="refreshOther"
  10287. @markScoreDig="markScoreDig"
  10288. :tool="tool"
  10289. :wIndex="wIndex"
  10290. :scoCon="w"
  10291. :toolIndex="toolIndex"
  10292. :key="refreshKey"
  10293. :stage="courseType"
  10294. :task="taskCount"
  10295. :scoTit="
  10296. chapInfoList[courseType].chapterInfo[0]
  10297. .taskJson[taskCount].eList
  10298. "
  10299. >
  10300. </markScore>
  10301. <div
  10302. @click="
  10303. markScoreDig2(
  10304. w.sName,
  10305. worksStudent,
  10306. w.userid,
  10307. toolIndex,
  10308. chapInfoList[courseType].chapterInfo[0]
  10309. .taskJson[taskCount].eList,
  10310. AIloading[toolIndex][wIndex].loading,
  10311. tool
  10312. )
  10313. "
  10314. slot="reference"
  10315. >
  10316. <span v-if="AIloading[toolIndex][wIndex].sco">
  10317. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10318. </span>
  10319. <span v-else>
  10320. 评分
  10321. </span>
  10322. </div>
  10323. </el-popover>
  10324. </div>
  10325. <img
  10326. class="deleteImg"
  10327. src="../../assets/deleteworks.png"
  10328. v-if="
  10329. w.userid == userid || tType == 1 || tType == 4
  10330. "
  10331. @click.stop="deleteWorks(w.wid)"
  10332. alt
  10333. />
  10334. </div>
  10335. <div class="worksName">
  10336. <div>{{ w.sName }}</div>
  10337. </div>
  10338. </div>
  10339. </div>
  10340. </div>
  10341. <div
  10342. v-if="tool.tool.indexOf(49) != -1"
  10343. class="xuan_right_box"
  10344. style="margin: 0 15px 0 25px; width: 93%"
  10345. >
  10346. <div
  10347. v-if="courseDetail.userid == userid"
  10348. style="
  10349. display: flex;
  10350. justify-content: flex-end;
  10351. margin-right: 10px;
  10352. "
  10353. >
  10354. <el-button
  10355. type="primary"
  10356. size="small"
  10357. @click="addTools(49, toolIndex, taskCount)"
  10358. >分组设置</el-button
  10359. >
  10360. </div>
  10361. <div
  10362. v-if="groupStudentUid[toolIndex]"
  10363. class="group_staic_box"
  10364. >
  10365. <div
  10366. v-for="(gp, gd) in tool.groupJson.group"
  10367. :key="gd"
  10368. class="group_staic"
  10369. >
  10370. <span> {{ gp.name }}</span>
  10371. <span>
  10372. 目前人数{{
  10373. groupStudentUid[toolIndex][gd].length
  10374. }}人</span
  10375. >
  10376. </div>
  10377. </div>
  10378. </div>
  10379. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10380. <div
  10381. class="zuoyeYulan"
  10382. v-if="
  10383. worksStudent.length &&
  10384. worksStudent[toolIndex].length > 0
  10385. "
  10386. >
  10387. <span class="worksTitle">作业预览</span>
  10388. </div>
  10389. <div>
  10390. <div
  10391. class="group_workBox"
  10392. v-for="(g, gindex) in tool.groupJson.group"
  10393. :key="gindex"
  10394. >
  10395. <div
  10396. class="group_box"
  10397. v-if="
  10398. groupStudentUid[toolIndex] &&
  10399. worksStudent[toolIndex] &&
  10400. (worksStudent[toolIndex][gindex].length ||
  10401. groupStudentUid[toolIndex][gindex].indexOf(
  10402. userid
  10403. ) != -1)
  10404. "
  10405. >
  10406. <div class="group_title">
  10407. <el-tooltip
  10408. class="item"
  10409. effect="light"
  10410. :content="g.name"
  10411. placement="top"
  10412. >
  10413. <div class="group_name">{{ g.name }}</div>
  10414. </el-tooltip>
  10415. <el-button
  10416. type="primary"
  10417. v-if="
  10418. groupStudentUid[toolIndex][gindex].indexOf(
  10419. userid
  10420. ) != -1
  10421. "
  10422. @click="groupUpload(toolIndex, taskCount, gindex)"
  10423. >上传作业</el-button
  10424. >
  10425. </div>
  10426. <div class="group_work">
  10427. <div
  10428. class="works"
  10429. style="
  10430. width: 200px;
  10431. height: 140px;
  10432. margin: 10px 10px 10px 0;
  10433. border-radius: 15px;
  10434. box-shadow: 0 0 6px 1px #dfdada;
  10435. "
  10436. v-for="(w, wIndex) in worksStudent[toolIndex][
  10437. gindex
  10438. ]"
  10439. :key="wIndex"
  10440. :class="w.type == 1 ? 'isTypeOne' : ''"
  10441. >
  10442. <div class="workImg" v-if="w.type == 0">
  10443. <img
  10444. :src="w.works"
  10445. @click="previewImg(w.works, w)"
  10446. alt
  10447. />
  10448. <div
  10449. class="answerScore"
  10450. v-if="w.score"
  10451. @click.stop="openScore(w)"
  10452. :class="{
  10453. rightW:
  10454. w.userid == userid ||
  10455. tType == 1 ||
  10456. tType == 4 ||
  10457. w.ateacher == userid
  10458. }"
  10459. >
  10460. {{ JSON.parse(w.score).wScore }}分
  10461. </div>
  10462. <div
  10463. class="answerScore"
  10464. @click.stop="openScore(w)"
  10465. v-else-if="courseDetail.userid == userid"
  10466. :class="{
  10467. rightW:
  10468. w.userid == userid ||
  10469. tType == 1 ||
  10470. tType == 4 ||
  10471. w.ateacher == userid
  10472. }"
  10473. >
  10474. 评分
  10475. </div>
  10476. <img
  10477. class="deleteImg"
  10478. src="../../assets/deleteworks.png"
  10479. v-if="
  10480. w.userid == userid ||
  10481. tType == 1 ||
  10482. tType == 4
  10483. "
  10484. @click.stop="deleteWorks(w.wid)"
  10485. alt
  10486. />
  10487. </div>
  10488. <div class="workImg" v-if="w.type == 1">
  10489. <img
  10490. :src="word"
  10491. @click="openFile(w.works)"
  10492. alt
  10493. />
  10494. <!-- @click="openFile(w.works)" -->
  10495. <div
  10496. class="answerScore"
  10497. v-if="w.score"
  10498. @click.stop="openScore(w)"
  10499. :class="{
  10500. rightW:
  10501. w.userid == userid ||
  10502. tType == 1 ||
  10503. tType == 4 ||
  10504. w.ateacher == userid
  10505. }"
  10506. >
  10507. {{ JSON.parse(w.score).wScore }}分
  10508. </div>
  10509. <div
  10510. class="answerScore"
  10511. @click.stop="openScore(w)"
  10512. v-else-if="courseDetail.userid == userid"
  10513. :class="{
  10514. rightW:
  10515. w.userid == userid ||
  10516. tType == 1 ||
  10517. tType == 4 ||
  10518. w.ateacher == userid
  10519. }"
  10520. >
  10521. 评分
  10522. </div>
  10523. <img
  10524. class="deleteImg"
  10525. src="../../assets/deleteworks.png"
  10526. v-if="
  10527. w.userid == userid ||
  10528. tType == 1 ||
  10529. tType == 4
  10530. "
  10531. @click.stop="deleteWorks(w.wid)"
  10532. alt
  10533. />
  10534. </div>
  10535. <div class="workImg" v-if="w.type == 3">
  10536. <img
  10537. style="cursor: pointer"
  10538. :src="video"
  10539. @click="openVideo(w)"
  10540. alt
  10541. />
  10542. <!-- @click="openVideo(w.works)" -->
  10543. <div
  10544. class="answerScore"
  10545. v-if="w.score"
  10546. @click.stop="openScore(w)"
  10547. :class="{
  10548. rightW:
  10549. w.userid == userid ||
  10550. tType == 1 ||
  10551. tType == 4 ||
  10552. w.ateacher == userid
  10553. }"
  10554. >
  10555. {{ JSON.parse(w.score).wScore }}分
  10556. </div>
  10557. <div
  10558. class="answerScore"
  10559. @click.stop="openScore(w)"
  10560. v-else-if="courseDetail.userid == userid"
  10561. :class="{
  10562. rightW:
  10563. w.userid == userid ||
  10564. tType == 1 ||
  10565. tType == 4 ||
  10566. w.ateacher == userid
  10567. }"
  10568. >
  10569. 评分
  10570. </div>
  10571. <img
  10572. class="deleteImg"
  10573. src="../../assets/deleteworks.png"
  10574. v-if="
  10575. w.userid == userid ||
  10576. tType == 1 ||
  10577. tType == 4
  10578. "
  10579. @click.stop="deleteWorks(w.wid)"
  10580. alt
  10581. />
  10582. </div>
  10583. <div class="workImg" v-if="w.type == 12">
  10584. <img
  10585. style="cursor: pointer"
  10586. :src="word2"
  10587. @click="downloadFile(w.works)"
  10588. alt
  10589. />
  10590. <!-- @click="openVideo(w.works)" -->
  10591. <div
  10592. class="answerScore"
  10593. v-if="w.score"
  10594. @click.stop="openScore(w)"
  10595. :class="{
  10596. rightW:
  10597. w.userid == userid ||
  10598. tType == 1 ||
  10599. tType == 4 ||
  10600. w.ateacher == userid
  10601. }"
  10602. >
  10603. {{ JSON.parse(w.score).wScore }}分
  10604. </div>
  10605. <div
  10606. class="answerScore"
  10607. @click.stop="openScore(w)"
  10608. v-else-if="courseDetail.userid == userid"
  10609. :class="{
  10610. rightW:
  10611. w.userid == userid ||
  10612. tType == 1 ||
  10613. tType == 4 ||
  10614. w.ateacher == userid
  10615. }"
  10616. >
  10617. 评分
  10618. </div>
  10619. <img
  10620. class="deleteImg"
  10621. src="../../assets/deleteworks.png"
  10622. v-if="
  10623. w.userid == userid ||
  10624. tType == 1 ||
  10625. tType == 4
  10626. "
  10627. @click.stop="deleteWorks(w.wid)"
  10628. alt
  10629. />
  10630. </div>
  10631. <div class="comment" style="min-width: 200px">
  10632. <div class="worksName">
  10633. <div>{{ w.sName }}</div>
  10634. </div>
  10635. <div class="commentList">
  10636. <div class="commentList">
  10637. <div
  10638. class="commentImg"
  10639. @click="
  10640. isLikes(
  10641. w.wid,
  10642. userid,
  10643. 1,
  10644. null,
  10645. w.isLikes,
  10646. w.sName
  10647. )
  10648. "
  10649. >
  10650. <img
  10651. :src="
  10652. w.isLikes == true ? likes : noLikes
  10653. "
  10654. alt=""
  10655. />
  10656. </div>
  10657. <div>{{ w.likesCount }}</div>
  10658. </div>
  10659. <div
  10660. class="commentList"
  10661. style="margin-right: 15px"
  10662. >
  10663. <div
  10664. class="commentImg"
  10665. @click="
  10666. commentOther(
  10667. w,
  10668. toolIndex,
  10669. wIndex,
  10670. gindex
  10671. )
  10672. "
  10673. >
  10674. <img
  10675. src="../../assets/icon/comment/comment.png"
  10676. alt=""
  10677. />
  10678. </div>
  10679. <div>{{ w.commentCount }}</div>
  10680. </div>
  10681. </div>
  10682. </div>
  10683. </div>
  10684. </div>
  10685. </div>
  10686. </div>
  10687. </div>
  10688. </div>
  10689. <div
  10690. style="width:92%;margin: 0 0 0 40px;"
  10691. v-if="
  10692. courseDetail.state == 6 && tool.eList && tool.eList.length
  10693. "
  10694. >
  10695. <evaTable :eList="tool.eList"></evaTable>
  10696. </div>
  10697. </div>
  10698. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10699. 上传文件
  10700. <input
  10701. type="file"
  10702. accept="image/png, image/gif, image/jpeg"
  10703. style="display: none"
  10704. @change="beforeUpload1($event, 2, index)"
  10705. />
  10706. </div>-->
  10707. </div>
  10708. </div>
  10709. <!-- <div
  10710. class="vedioBox"
  10711. style="margin-top: 10px"
  10712. v-if="
  10713. courseDetail.userid == userid ||
  10714. (courseDetail.course_teacher &&
  10715. courseDetail.course_teacher.indexOf(userid) != -1)
  10716. "
  10717. :style="{
  10718. borderRadius:
  10719. !(
  10720. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10721. .toolChoose[0].tool &&
  10722. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10723. .toolChoose[0].tool.length > 0
  10724. ) &&
  10725. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10726. .taskDetail == '' &&
  10727. vChapterData[taskCount].length == 0 &&
  10728. fileC[taskCount].length == 0
  10729. ? '0 0 20px 20px'
  10730. : '20px',
  10731. }"
  10732. >
  10733. <div
  10734. class="queTop"
  10735. @click="isClose = !isClose"
  10736. style="
  10737. padding: 15px 0 15px 37px;
  10738. justify-content: space-between;
  10739. "
  10740. >
  10741. <div class="queTopTitle">新增工具</div>
  10742. <div class="queTopRight">
  10743. <div class="queTopClose" v-if="isClose == 0">
  10744. 展开
  10745. <div class="closeImg">
  10746. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10747. </div>
  10748. </div>
  10749. <div class="queTopClose" v-if="isClose == 1">
  10750. 折叠
  10751. <div class="openImg">
  10752. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10753. </div>
  10754. </div>
  10755. <el-button
  10756. style="margin: 0 30px 0 auto"
  10757. type="primary"
  10758. size="small"
  10759. v-if="isClose == 1 && checktoolArray.length > 0"
  10760. @click.stop="addToolChoose"
  10761. >确定</el-button
  10762. >
  10763. </div>
  10764. </div>
  10765. <div
  10766. class="tool_work_box"
  10767. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10768. >
  10769. <div class="tool_box">
  10770. <div class="tool_type_box">
  10771. <div class="chooseWho">
  10772. <div
  10773. :class="toolType == 0 ? 'isChooseActive' : ''"
  10774. @click="(toolType = 0), $forceUpdate()"
  10775. >
  10776. 互动类
  10777. </div>
  10778. <div
  10779. :class="toolType == 1 ? 'isChooseActive' : ''"
  10780. @click="(toolType = 1), $forceUpdate()"
  10781. >
  10782. 思维类
  10783. </div>
  10784. <div
  10785. :class="toolType == 2 ? 'isChooseActive' : ''"
  10786. @click="(toolType = 2), $forceUpdate()"
  10787. >
  10788. 测评类
  10789. </div>
  10790. <div
  10791. :class="toolType == 3 ? 'isChooseActive' : ''"
  10792. @click="(toolType = 3), $forceUpdate()"
  10793. >
  10794. 编程类
  10795. </div>
  10796. <div
  10797. :class="toolType == 5 ? 'isChooseActive' : ''"
  10798. @click="(toolType = 5), $forceUpdate()"
  10799. >
  10800. 学科类
  10801. </div>
  10802. </div>
  10803. </div>
  10804. <div>
  10805. <div class="toolSort" v-if="toolType == 0">
  10806. <div class="tool">
  10807. <div class="whiteBIcon" @click="addTools2(10)">
  10808. <img
  10809. src="../../assets/icon/thirdToolList/time.png"
  10810. alt
  10811. />
  10812. <div style="margin: 5px 0">倒计时</div>
  10813. </div>
  10814. <div class="check" @click="addTools2(10)">
  10815. <img
  10816. src="../../assets/icon/checkNo.png"
  10817. alt
  10818. v-if="checktoolArray.indexOf(10) == -1"
  10819. />
  10820. <div class="checkDiv" v-else>
  10821. <img src="../../assets/icon/checkedIs.png" alt /><span
  10822. >已选择</span
  10823. >
  10824. </div>
  10825. </div>
  10826. </div>
  10827. <div class="tool">
  10828. <div class="whiteBIcon" @click="addTools2(65)">
  10829. <img
  10830. src="../../assets/icon/firstToolList/pickPeople.png"
  10831. alt
  10832. />
  10833. <div style="margin: 5px 0">挑人</div>
  10834. </div>
  10835. <div class="check" @click="addTools2(65)">
  10836. <img
  10837. src="../../assets/icon/checkNo.png"
  10838. alt
  10839. v-if="checktoolArray.indexOf(65) == -1"
  10840. />
  10841. <div class="checkDiv" v-else>
  10842. <img src="../../assets/icon/checkedIs.png" alt /><span
  10843. >已选择</span
  10844. >
  10845. </div>
  10846. </div>
  10847. </div>
  10848. </div>
  10849. <div class="toolSort" v-if="toolType == 1">
  10850. <div class="tool">
  10851. <div class="whiteBIcon" @click="addTools2(7)">
  10852. <img
  10853. src="../../assets/icon/secondToolList/mindNetwork.png"
  10854. alt
  10855. />
  10856. <div style="margin: 5px 0">思维网格</div>
  10857. </div>
  10858. <div class="check" @click="addTools2(7)">
  10859. <img
  10860. src="../../assets/icon/checkNo.png"
  10861. alt
  10862. v-if="checktoolArray.indexOf(7) == -1"
  10863. />
  10864. <div class="checkDiv" v-else>
  10865. <img src="../../assets/icon/checkedIs.png" alt /><span
  10866. >已选择</span
  10867. >
  10868. </div>
  10869. </div>
  10870. </div>
  10871. <div class="tool">
  10872. <div class="whiteBIcon" @click="addTools2(1)">
  10873. <img
  10874. src="../../assets/icon/secondToolList/whiteBoard.png"
  10875. alt
  10876. />
  10877. <div style="margin: 5px 0">电子白板</div>
  10878. </div>
  10879. <div class="check" @click="addTools2(1)">
  10880. <img
  10881. src="../../assets/icon/checkNo.png"
  10882. alt
  10883. v-if="checktoolArray.indexOf(1) == -1"
  10884. />
  10885. <div class="checkDiv" v-else>
  10886. <img src="../../assets/icon/checkedIs.png" alt /><span
  10887. >已选择</span
  10888. >
  10889. </div>
  10890. </div>
  10891. </div>
  10892. <div class="tool">
  10893. <div class="whiteBIcon" @click="addTools2(52)">
  10894. <img
  10895. src="../../assets/icon/fourthToolList/text.png"
  10896. alt
  10897. />
  10898. <div style="margin: 5px 0">文档</div>
  10899. </div>
  10900. <div class="check" @click="addTools2(52)">
  10901. <img
  10902. src="../../assets/icon/checkNo.png"
  10903. alt
  10904. v-if="checktoolArray.indexOf(52) == -1"
  10905. />
  10906. <div class="checkDiv" v-else>
  10907. <img src="../../assets/icon/checkedIs.png" alt /><span
  10908. >已选择</span
  10909. >
  10910. </div>
  10911. </div>
  10912. </div>
  10913. <div class="tool">
  10914. <div class="whiteBIcon" @click="addTools2(3)">
  10915. <img
  10916. src="../../assets/icon/secondToolList/mindMapping.png"
  10917. alt
  10918. />
  10919. <div style="margin: 5px 0">思维导图</div>
  10920. </div>
  10921. <div class="check" @click="addTools2(3)">
  10922. <img
  10923. src="../../assets/icon/checkNo.png"
  10924. alt
  10925. v-if="checktoolArray.indexOf(3) == -1"
  10926. />
  10927. <div class="checkDiv" v-else>
  10928. <img src="../../assets/icon/checkedIs.png" alt /><span
  10929. >已选择</span
  10930. >
  10931. </div>
  10932. </div>
  10933. </div>
  10934. <div class="tool">
  10935. <div class="whiteBIcon" @click="addTools2(48)">
  10936. <img
  10937. src="../../assets/icon/fourthToolList/table.png"
  10938. alt
  10939. />
  10940. <div style="margin: 5px 0">表格</div>
  10941. </div>
  10942. <div class="check" @click="addTools2(48)">
  10943. <img
  10944. src="../../assets/icon/checkNo.png"
  10945. alt
  10946. v-if="checktoolArray.indexOf(48) == -1"
  10947. />
  10948. <div class="checkDiv" v-else>
  10949. <img src="../../assets/icon/checkedIs.png" alt /><span
  10950. >已选择</span
  10951. >
  10952. </div>
  10953. </div>
  10954. </div>
  10955. </div>
  10956. <div class="toolSort" v-if="toolType == 6">
  10957. <div v-show="tooC == 49">
  10958. <img
  10959. @click="addTools(tooC, toolIndex, taskCount)"
  10960. src="../../assets/icon/fourthToolList/group.png"
  10961. alt
  10962. />
  10963. <div style="margin: 5px 0">学生分组</div>
  10964. </div>
  10965. </div>
  10966. <div class="toolSort" v-if="toolType == 2">
  10967. <div class="tool">
  10968. <div class="whiteBIcon" @click="addTools2(16)">
  10969. <img
  10970. src="../../assets/icon/thirdToolList/work.png"
  10971. alt
  10972. />
  10973. <div style="margin: 5px 0">作业提交</div>
  10974. </div>
  10975. <div class="check" @click="addTools2(16)">
  10976. <img
  10977. src="../../assets/icon/checkNo.png"
  10978. alt
  10979. v-if="checktoolArray.indexOf(16) == -1"
  10980. />
  10981. <div class="checkDiv" v-else>
  10982. <img src="../../assets/icon/checkedIs.png" alt /><span
  10983. >已选择</span
  10984. >
  10985. </div>
  10986. </div>
  10987. </div>
  10988. <div class="tool">
  10989. <div class="whiteBIcon" @click="addTools2(50)">
  10990. <img
  10991. src="../../assets/icon/thirdToolList/plwork.png"
  10992. alt
  10993. />
  10994. <div style="margin: 5px 0">批量上传</div>
  10995. </div>
  10996. <div class="check" @click="addTools2(50)">
  10997. <img
  10998. src="../../assets/icon/checkNo.png"
  10999. alt
  11000. v-if="checktoolArray.indexOf(50) == -1"
  11001. />
  11002. <div class="checkDiv" v-else>
  11003. <img src="../../assets/icon/checkedIs.png" alt /><span
  11004. >已选择</span
  11005. >
  11006. </div>
  11007. </div>
  11008. </div>
  11009. </div>
  11010. <div class="toolSort" v-if="toolType == 3">
  11011. <div class="tool">
  11012. <div class="whiteBIcon" @click="addTools2(18)">
  11013. <img
  11014. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11015. alt
  11016. />
  11017. <div style="margin: 5px 0">训练平台</div>
  11018. </div>
  11019. <div class="check" @click="addTools2(18)">
  11020. <img
  11021. src="../../assets/icon/checkNo.png"
  11022. alt
  11023. v-if="checktoolArray.indexOf(18) == -1"
  11024. />
  11025. <div class="checkDiv" v-else>
  11026. <img src="../../assets/icon/checkedIs.png" alt /><span
  11027. >已选择</span
  11028. >
  11029. </div>
  11030. </div>
  11031. </div>
  11032. <div class="tool">
  11033. <div class="whiteBIcon" @click="addTools2(21)">
  11034. <img
  11035. src="../../assets/icon/fourthToolList/program.png"
  11036. alt
  11037. />
  11038. <div style="margin: 5px 0">AIoT Blockly</div>
  11039. </div>
  11040. <div class="check" @click="addTools2(21)">
  11041. <img
  11042. src="../../assets/icon/checkNo.png"
  11043. alt
  11044. v-if="checktoolArray.indexOf(21) == -1"
  11045. />
  11046. <div class="checkDiv" v-else>
  11047. <img src="../../assets/icon/checkedIs.png" alt /><span
  11048. >已选择</span
  11049. >
  11050. </div>
  11051. </div>
  11052. </div>
  11053. <div class="tool">
  11054. <div class="whiteBIcon" @click="addTools2(23)">
  11055. <img
  11056. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11057. alt
  11058. />
  11059. <div style="margin: 5px 0">AI Python</div>
  11060. </div>
  11061. <div class="check" @click="addTools2(23)">
  11062. <img
  11063. src="../../assets/icon/checkNo.png"
  11064. alt
  11065. v-if="checktoolArray.indexOf(23) == -1"
  11066. />
  11067. <div class="checkDiv" v-else>
  11068. <img src="../../assets/icon/checkedIs.png" alt /><span
  11069. >已选择</span
  11070. >
  11071. </div>
  11072. </div>
  11073. </div>
  11074. <div class="tool">
  11075. <div class="whiteBIcon" @click="addTools2(24)">
  11076. <img
  11077. src="../../assets/icon/fourthToolList/AIprogram.png"
  11078. alt
  11079. />
  11080. <div style="margin: 5px 0">AI Blockly</div>
  11081. </div>
  11082. <div class="check" @click="addTools2(24)">
  11083. <img
  11084. src="../../assets/icon/checkNo.png"
  11085. alt
  11086. v-if="checktoolArray.indexOf(24) == -1"
  11087. />
  11088. <div class="checkDiv" v-else>
  11089. <img src="../../assets/icon/checkedIs.png" alt /><span
  11090. >已选择</span
  11091. >
  11092. </div>
  11093. </div>
  11094. </div>
  11095. <div class="tool">
  11096. <div class="whiteBIcon" @click="addTools2(32)">
  11097. <img
  11098. src="../../assets/icon/thirdToolList/code.png"
  11099. alt
  11100. />
  11101. <div style="margin: 5px 0">源码编辑</div>
  11102. </div>
  11103. <div class="check" @click="addTools2(32)">
  11104. <img
  11105. src="../../assets/icon/checkNo.png"
  11106. alt
  11107. v-if="checktoolArray.indexOf(32) == -1"
  11108. />
  11109. <div class="checkDiv" v-else>
  11110. <img src="../../assets/icon/checkedIs.png" alt /><span
  11111. >已选择</span
  11112. >
  11113. </div>
  11114. </div>
  11115. </div>
  11116. <div class="tool">
  11117. <div class="whiteBIcon" @click="addTools2(57)">
  11118. <img
  11119. src="../../assets/icon/fourthToolList/cocopi.png"
  11120. alt
  11121. />
  11122. <div style="margin: 5px 0">CocoPi</div>
  11123. </div>
  11124. <div class="check" @click="addTools2(57)">
  11125. <img
  11126. src="../../assets/icon/checkNo.png"
  11127. alt
  11128. v-if="checktoolArray.indexOf(57) == -1"
  11129. />
  11130. <div class="checkDiv" v-else>
  11131. <img src="../../assets/icon/checkedIs.png" alt /><span
  11132. >已选择</span
  11133. >
  11134. </div>
  11135. </div>
  11136. </div>
  11137. <div class="tool">
  11138. <div class="whiteBIcon" @click="addTools2(63)">
  11139. <img
  11140. src="../../assets/icon/fourthToolList/Wood.png"
  11141. alt
  11142. />
  11143. <div style="margin: 5px 0">海龟编程</div>
  11144. </div>
  11145. <div class="check" @click="addTools2(63)">
  11146. <img
  11147. src="../../assets/icon/checkNo.png"
  11148. alt
  11149. v-if="checktoolArray.indexOf(63) == -1"
  11150. />
  11151. <div class="checkDiv" v-else>
  11152. <img src="../../assets/icon/checkedIs.png" alt /><span
  11153. >已选择</span
  11154. >
  11155. </div>
  11156. </div>
  11157. </div>
  11158. </div>
  11159. <div class="toolSort" v-if="toolType == 5">
  11160. <div class="tool">
  11161. <div class="whiteBIcon" @click="addTools2(28)">
  11162. <img
  11163. src="../../assets/icon/secondToolList/translation.png"
  11164. alt
  11165. />
  11166. <div style="margin: 5px 0">翻译</div>
  11167. </div>
  11168. <div class="check" @click="addTools2(28)">
  11169. <img
  11170. src="../../assets/icon/checkNo.png"
  11171. alt
  11172. v-if="checktoolArray.indexOf(28) == -1"
  11173. />
  11174. <div class="checkDiv" v-else>
  11175. <img src="../../assets/icon/checkedIs.png" alt /><span
  11176. >已选择</span
  11177. >
  11178. </div>
  11179. </div>
  11180. </div>
  11181. <div class="tool">
  11182. <div class="whiteBIcon" @click="addTools2(31)">
  11183. <img
  11184. src="../../assets/icon/secondToolList/networkPanel.png"
  11185. alt
  11186. />
  11187. <div style="margin: 5px 0">数字画板</div>
  11188. </div>
  11189. <div class="check" @click="addTools2(31)">
  11190. <img
  11191. src="../../assets/icon/checkNo.png"
  11192. alt
  11193. v-if="checktoolArray.indexOf(31) == -1"
  11194. />
  11195. <div class="checkDiv" v-else>
  11196. <img src="../../assets/icon/checkedIs.png" alt /><span
  11197. >已选择</span
  11198. >
  11199. </div>
  11200. </div>
  11201. </div>
  11202. <div class="tool">
  11203. <div class="whiteBIcon" @click="addTools2(39)">
  11204. <img
  11205. src="../../assets/icon/secondToolList/GeoGebra.png"
  11206. alt
  11207. />
  11208. <div style="margin: 5px 0">GeoGebra</div>
  11209. </div>
  11210. <div class="check" @click="addTools2(39)">
  11211. <img
  11212. src="../../assets/icon/checkNo.png"
  11213. alt
  11214. v-if="checktoolArray.indexOf(39) == -1"
  11215. />
  11216. <div class="checkDiv" v-else>
  11217. <img src="../../assets/icon/checkedIs.png" alt /><span
  11218. >已选择</span
  11219. >
  11220. </div>
  11221. </div>
  11222. </div>
  11223. <div class="tool">
  11224. <div class="whiteBIcon" @click="addTools2(66)">
  11225. <img
  11226. src="../../assets/icon/secondToolList/formulaEdi.png"
  11227. alt
  11228. />
  11229. <div style="margin: 5px 0">公式编辑</div>
  11230. </div>
  11231. <div class="check" @click="addTools2(66)">
  11232. <img
  11233. src="../../assets/icon/checkNo.png"
  11234. alt
  11235. v-if="checktoolArray.indexOf(66) == -1"
  11236. />
  11237. <div class="checkDiv" v-else>
  11238. <img src="../../assets/icon/checkedIs.png" alt /><span
  11239. >已选择</span
  11240. >
  11241. </div>
  11242. </div>
  11243. </div>
  11244. <div class="tool">
  11245. <div class="whiteBIcon" @click="addTools2(67)">
  11246. <img
  11247. src="../../assets/icon/secondToolList/molStr.png"
  11248. alt
  11249. />
  11250. <div style="margin: 5px 0">分子结构</div>
  11251. </div>
  11252. <div class="check" @click="addTools2(67)">
  11253. <img
  11254. src="../../assets/icon/checkNo.png"
  11255. alt
  11256. v-if="checktoolArray.indexOf(67) == -1"
  11257. />
  11258. <div class="checkDiv" v-else>
  11259. <img src="../../assets/icon/checkedIs.png" alt /><span
  11260. >已选择</span
  11261. >
  11262. </div>
  11263. </div>
  11264. </div>
  11265. <div class="tool">
  11266. <div class="whiteBIcon" @click="addTools2(68)">
  11267. <img
  11268. src="../../assets/icon/secondToolList/timeAxis.png"
  11269. alt
  11270. />
  11271. <div style="margin: 5px 0">时间轴</div>
  11272. </div>
  11273. <div class="check" @click="addTools2(68)">
  11274. <img
  11275. src="../../assets/icon/checkNo.png"
  11276. alt
  11277. v-if="checktoolArray.indexOf(68) == -1"
  11278. />
  11279. <div class="checkDiv" v-else>
  11280. <img src="../../assets/icon/checkedIs.png" alt /><span
  11281. >已选择</span
  11282. >
  11283. </div>
  11284. </div>
  11285. </div>
  11286. </div>
  11287. <div class="toolSort" v-if="toolType == 7">
  11288. <div class="tool">
  11289. <div class="whiteBIcon" @click="addTools2(40)">
  11290. <img
  11291. src="../../assets/icon/secondToolList/eval.png"
  11292. alt
  11293. />
  11294. <div style="margin: 5px 0">个人评价</div>
  11295. </div>
  11296. <div class="check" @click="addTools2(40)">
  11297. <img
  11298. src="../../assets/icon/checkNo.png"
  11299. alt
  11300. v-if="checktoolArray.indexOf(40) == -1"
  11301. />
  11302. <div class="checkDiv" v-else>
  11303. <img src="../../assets/icon/checkedIs.png" alt /><span
  11304. >已选择</span
  11305. >
  11306. </div>
  11307. </div>
  11308. </div>
  11309. </div>
  11310. <div class="toolSort" v-if="toolType == 4">
  11311. <div class="tool">
  11312. <div class="whiteBIcon" @click="addTools2(26)">
  11313. <img
  11314. src="../../assets/icon/thirdToolList/courseDesign.png"
  11315. alt
  11316. />
  11317. <div style="margin: 5px 0">课程设计</div>
  11318. </div>
  11319. <div class="check" @click="addTools2(26)">
  11320. <img
  11321. src="../../assets/icon/checkNo.png"
  11322. alt
  11323. v-if="checktoolArray.indexOf(26) == -1"
  11324. />
  11325. <div class="checkDiv" v-else>
  11326. <img src="../../assets/icon/checkedIs.png" alt /><span
  11327. >已选择</span
  11328. >
  11329. </div>
  11330. </div>
  11331. </div>
  11332. <div class="tool">
  11333. <div class="whiteBIcon" @click="addTools2(25)">
  11334. <img
  11335. src="../../assets/icon/thirdToolList/evalua.png"
  11336. alt
  11337. />
  11338. <div style="margin: 5px 0">目标管理</div>
  11339. </div>
  11340. <div class="check" @click="addTools2(25)">
  11341. <img
  11342. src="../../assets/icon/checkNo.png"
  11343. alt
  11344. v-if="checktoolArray.indexOf(25) == -1"
  11345. />
  11346. <div class="checkDiv" v-else>
  11347. <img src="../../assets/icon/checkedIs.png" alt /><span
  11348. >已选择</span
  11349. >
  11350. </div>
  11351. </div>
  11352. </div>
  11353. </div>
  11354. </div>
  11355. </div>
  11356. </div>
  11357. </div> -->
  11358. <div
  11359. class="vedioBox"
  11360. style="margin-top: 10px; border-radius: 20px"
  11361. v-if="
  11362. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11363. .eList &&
  11364. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11365. .eList.length &&
  11366. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11367. .eList.length > 0 &&
  11368. tType != 2
  11369. "
  11370. >
  11371. <div
  11372. class="queTop"
  11373. style="
  11374. font-size: 20px;
  11375. padding: 15px 0 15px 37px;
  11376. font-weight: bold;
  11377. "
  11378. >
  11379. <!-- <div class="question" style="width: 30px">
  11380. <img src="../assets/icon/toolIcon.png" alt />
  11381. </div>
  11382. <div class="queTitle">
  11383. <div>工具</div>
  11384. </div>-->
  11385. 评一评
  11386. </div>
  11387. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11388. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  11389. <el-table
  11390. :data="
  11391. chapInfoList[courseType].chapterInfo[0].taskJson[
  11392. taskCount
  11393. ].eList
  11394. "
  11395. :header-cell-style="{ background: '#F0F4FA' }"
  11396. :row-class-name="tableRowClassName"
  11397. border
  11398. stripe
  11399. style="width: 100%"
  11400. >
  11401. <el-table-column
  11402. label="评价名称"
  11403. align="center"
  11404. >
  11405. <template slot-scope="scope"
  11406. ><div>{{ scope.row.value }}</div></template
  11407. >
  11408. </el-table-column>
  11409. <el-table-column
  11410. label="评价描述"
  11411. align="center"
  11412. >
  11413. <template slot-scope="scope"
  11414. ><div>
  11415. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11416. </div></template
  11417. >
  11418. </el-table-column>
  11419. <el-table-column label="目标" align="center">
  11420. <template slot-scope="scope"
  11421. ><div>
  11422. {{
  11423. scope.row.target
  11424. ? scope.row.target[scope.row.target.length - 1]
  11425. : "-"
  11426. }}
  11427. </div></template
  11428. ></el-table-column
  11429. >
  11430. </el-table>
  11431. <!-- <div
  11432. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11433. .chapterInfo[0].taskJson[taskCount].eList"
  11434. :key="eIndex"
  11435. class="elist_input_box"
  11436. >
  11437. <div style="width: 95%">
  11438. <div
  11439. style="
  11440. display: flex;
  11441. flex-direction: row;
  11442. flex-wrap: nowrap;
  11443. align-items: center;
  11444. "
  11445. >
  11446. <div style="max-width: calc(100% - 285px)">
  11447. <span>{{ eItem.value }}</span>
  11448. </div>
  11449. <div
  11450. style="
  11451. padding-left: 25px;
  11452. display: flex;
  11453. flex-direction: row;
  11454. align-items: center;
  11455. "
  11456. >
  11457. <el-rate
  11458. v-model="eItem.score"
  11459. :colors="colors"
  11460. disabled
  11461. ></el-rate>
  11462. </div>
  11463. </div>
  11464. <div class="elist_inptu_text" style="padding-left: 10px">
  11465. <span v-if="eItem.detail != ''">{{
  11466. eItem.detail
  11467. }}</span>
  11468. <span v-else style="color: #b2b1b3; font-size: 14px"
  11469. >暂无描述...</span
  11470. >
  11471. </div>
  11472. </div>
  11473. </div> -->
  11474. </div>
  11475. <div
  11476. v-if="evalua"
  11477. style="
  11478. border: 1px solid #e5e5e5;
  11479. max-width: 650px;
  11480. width: 100%;
  11481. margin-top: 20px;
  11482. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11483. "
  11484. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  11485. >
  11486. <div class="e_add_top">
  11487. <div class="e_add_title" style="width: 100%">
  11488. <!-- <span>目标管理名称</span> -->
  11489. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  11490. <img
  11491. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  11492. src="../../assets/line.png"
  11493. class="cru_line"
  11494. style="
  11495. width: 125px;
  11496. height: 20px;
  11497. bottom: -10px;
  11498. left: 5px;
  11499. "
  11500. />
  11501. <!-- <el-input
  11502. v-model="eTitle"
  11503. placeholder="请输入名称"
  11504. @change="setMindData"
  11505. ></el-input>-->
  11506. <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>
  11507. <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>
  11508. </div>
  11509. </div>
  11510. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  11511. <div class="e_add_list_pbox">
  11512. <div class="e_add_list_pbox_title">
  11513. <!-- <span class="type_title">切换模式</span> -->
  11514. <div class="type_content">
  11515. <span
  11516. :class="{ active: typeMode == 1 }"
  11517. @click="typeMode = 1"
  11518. >目标树</span
  11519. >
  11520. <span
  11521. :class="{ active: typeMode == 2 }"
  11522. @click="typeMode = 2"
  11523. >目标罗盘</span
  11524. >
  11525. <!-- <span
  11526. :class="{ active: typeMode == 3 }"
  11527. @click="typeMode = 3"
  11528. >目标看板</span
  11529. > -->
  11530. </div>
  11531. </div>
  11532. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  11533. <Mind
  11534. :showBar="false"
  11535. :mindData="data"
  11536. style="width: 100%"
  11537. v-show="typeMode == 1"
  11538. ></Mind>
  11539. <Sunburst
  11540. :Josn="eJson"
  11541. :num="eJSONNum"
  11542. style="width: 100%"
  11543. v-if="typeMode == 2"
  11544. ></Sunburst>
  11545. <SeeBoard
  11546. :Josn="eJson"
  11547. :num="eJSONNum"
  11548. :ename="eTitle"
  11549. style="width: 100%"
  11550. v-if="typeMode == 3"
  11551. >
  11552. </SeeBoard>
  11553. </div>
  11554. </div>
  11555. </div>
  11556. </div>
  11557. </div>
  11558. </div>
  11559. <!-- <div
  11560. class="project_box"
  11561. style="margin-top: 15px; padding-bottom: 30px"
  11562. >
  11563. <div
  11564. style="
  11565. display: flex;
  11566. flex-wrap: nowrap;
  11567. flex-direction: column;
  11568. position: relative;
  11569. "
  11570. >
  11571. <div class="queTop">
  11572. <div class="question">
  11573. <img src="../../assets/icon/homeWork.png" alt="" />
  11574. </div>
  11575. <div class="queTitle">
  11576. <div>作业提交<span>(提交图文视频等)</span></div>
  11577. <div>:任务:{{ task.task }}</div>
  11578. </div>
  11579. </div>
  11580. <div class="ediBottom">
  11581. <div
  11582. class="addEditor"
  11583. style="margin-top: 23px"
  11584. @click="openAddWork"
  11585. v-if="!isNoHomeWork"
  11586. >
  11587. 选择文件
  11588. </div>
  11589. <div
  11590. class="addEditor"
  11591. style="margin-top: 23px"
  11592. @click="openAddWork"
  11593. v-else
  11594. >
  11595. 已提交
  11596. </div>
  11597. </div>
  11598. </div>
  11599. </div>-->
  11600. </div>
  11601. </div>
  11602. <el-dialog
  11603. title="作业提交"
  11604. :visible.sync="dialogVisible"
  11605. :append-to-body="true"
  11606. width="500px"
  11607. :before-close="handleClose"
  11608. class="dialog_change"
  11609. >
  11610. <div class="marginT">
  11611. <div>上传文件</div>
  11612. <div style="display: flex; gap: 10px">
  11613. <div
  11614. class="chapter_add"
  11615. @click="addImg($event)"
  11616. v-if="studyJuri[0].cover.length == 0"
  11617. >
  11618. <div class="up_photo">
  11619. <img src="../../assets/icon/uploadImg.png" alt />
  11620. </div>
  11621. <!-- <input
  11622. type="file"
  11623. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11624. style="display: none"
  11625. @change="beforeUpload1($event, 1)"
  11626. /> -->
  11627. <input
  11628. type="file"
  11629. accept="*"
  11630. style="display: none"
  11631. @change="beforeUpload1($event, 1)"
  11632. />
  11633. <!-- <input
  11634. type="file"
  11635. accept="image/*"
  11636. capture="camera"
  11637. style="display: none"
  11638. @change="beforeUpload1($event, 1)"
  11639. /> -->
  11640. </div>
  11641. <div
  11642. class="chapter_add"
  11643. @click="addImg($event)"
  11644. v-if="studyJuri[0].cover.length == 0"
  11645. >
  11646. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11647. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11648. </div>
  11649. <input
  11650. type="file"
  11651. accept="image/*"
  11652. capture="camera"
  11653. style="display: none"
  11654. @change="beforeUpload1($event, 1)"
  11655. />
  11656. </div>
  11657. </div>
  11658. <div
  11659. class="chapter_add"
  11660. style="
  11661. display: flex;
  11662. width: 100%;
  11663. flex-direction: row;
  11664. flex-wrap: wrap;
  11665. justify-content: flex-start;
  11666. padding: 15px 0;
  11667. "
  11668. v-if="studyJuri[0].cover.length > 0"
  11669. >
  11670. <div class="upCover">
  11671. <img
  11672. :src="studyJuri[0].cover[0].url"
  11673. alt
  11674. v-if="fileType == 0"
  11675. />
  11676. <img :src="word" alt v-else-if="fileType == 1" />
  11677. <img :src="video" alt v-else-if="fileType == 2" />
  11678. <img :src="word2" alt v-else-if="fileType == 3" />
  11679. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11680. <div class="deleteWord" @click="clean(1)">
  11681. <img src="../../assets/icon/deleteWorks.png" alt />
  11682. </div>
  11683. </div>
  11684. </div>
  11685. </div>
  11686. <div
  11687. class="upload_send"
  11688. @click="addCourseWorksCopy(taskCount)"
  11689. v-if="!proVisible"
  11690. >
  11691. 提交
  11692. </div>
  11693. </el-dialog>
  11694. </div>
  11695. </div>
  11696. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11697. <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(
  11698. '/courseDetail?userid=' +
  11699. userid +
  11700. '&oid=' +
  11701. oid +
  11702. '&org=' +
  11703. org +
  11704. '&cid=' +
  11705. classId +
  11706. '&courseId=' +
  11707. id +
  11708. '&tType=' +
  11709. tType +
  11710. '&screenType=' +
  11711. screenType
  11712. )"></classRoomHelper>
  11713. <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(
  11714. '/courseDetail?userid=' +
  11715. userid +
  11716. '&oid=' +
  11717. oid +
  11718. '&org=' +
  11719. org +
  11720. '&cid=' +
  11721. classId +
  11722. '&courseId=' +
  11723. id +
  11724. '&tType=' +
  11725. tType +
  11726. '&screenType=' +
  11727. screenType
  11728. )"></studentClassRoomHelper>
  11729. <div
  11730. class="pButton"
  11731. @click="(pzDialog = true), selectPz()"
  11732. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11733. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11734. >
  11735. <!-- 批 -->
  11736. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11737. </div>
  11738. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11739. <div class="pzTop2">
  11740. <!-- <div>评论</div>
  11741. <div @click="pzDialog = false">
  11742. <img src="../../assets/close1.png" alt="" />
  11743. </div> -->
  11744. <div class="checkbox">
  11745. <!-- <div class="check" style="font-size: 25px; position: unset">
  11746. 评论
  11747. </div> -->
  11748. <div class="cb-tabList">
  11749. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11750. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11751. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11752. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11753. </div>
  11754. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11755. <el-option label="时间降序" :value="1"></el-option>
  11756. <el-option label="时间升序" :value="2"></el-option>
  11757. <el-option label="我的评课" :value="3"></el-option>
  11758. </el-select>
  11759. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11760. </div>
  11761. </div>
  11762. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11763. <div class="pzListBox" v-if="pzList && pzList.length">
  11764. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11765. <div class="pzNavTop">
  11766. <div>评</div>
  11767. <div>
  11768. {{
  11769. pz.username && pz.username.length > 5
  11770. ? pz.username.substring(0, 5) + "..."
  11771. : pz.username
  11772. }}的评论
  11773. </div>
  11774. <div
  11775. class="pzDelete"
  11776. v-if="pz.userid == userid"
  11777. @click="deletePz(pz.id)"
  11778. >
  11779. 删除
  11780. </div>
  11781. </div>
  11782. <div
  11783. @click="checkImg(getImgList(pz.content))"
  11784. class="pzContent cont"
  11785. v-html="pz.content"
  11786. v-if="pz.type == '1'"
  11787. ></div>
  11788. <div class="pzContent" v-if="pz.type == '2'">
  11789. <audio :src="pz.content" controls="controls" ref="audio">
  11790. Your browser does not support the audio element.
  11791. </audio>
  11792. </div>
  11793. <div class="pzContent" v-if="pz.type == '3'">
  11794. <img
  11795. :src="pz.content"
  11796. style="width: 90%; margin: 0 auto; display: block"
  11797. @click="previewImg(pz.content)"
  11798. />
  11799. </div>
  11800. <div class="timeAndReply">
  11801. <div class="time">
  11802. {{ pz.time }}
  11803. </div>
  11804. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11805. </div>
  11806. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11807. <div
  11808. v-for="(h, hIndex) in pz.hfList"
  11809. :key="hIndex"
  11810. class="hfItem"
  11811. >
  11812. <div class="whoReplyWho">
  11813. <div class="hfName">{{ h.username }}</div>
  11814. <div class="hfImg">
  11815. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11816. </div>
  11817. <div class="hfName">{{ pz.username }}</div>
  11818. </div>
  11819. <div class="hfContent" v-html="h.content"></div>
  11820. <div class="hfBottom">
  11821. <div class="hfTime">{{ h.time }}</div>
  11822. <div
  11823. class="deleteHfItem"
  11824. @click="deleteReply(h.id)"
  11825. v-if="userid == h.userid"
  11826. >
  11827. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11828. </div>
  11829. </div>
  11830. </div>
  11831. </div>
  11832. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11833. <div class="replyInput">
  11834. <el-input v-model="reply[pzIndex]"></el-input>
  11835. </div>
  11836. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11837. </div> -->
  11838. </div>
  11839. </div>
  11840. <div class="noPz" v-else>
  11841. <img src="../../assets/icon/noPz.png" alt="" />
  11842. </div>
  11843. <div class="addPzButton">
  11844. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11845. 添加评论
  11846. </div>
  11847. <!-- <div class="img1">
  11848. <div @click="(addPzDialog = true), (pzType = 2)">
  11849. <img src="../../assets/audio.png" /><span>音频</span>
  11850. </div>
  11851. </div> -->
  11852. </div>
  11853. </div>
  11854. <div class="scoreList" v-if="commentTagShow==1">
  11855. <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"/>
  11856. </div>
  11857. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11858. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11859. </div>
  11860. </div>
  11861. <div
  11862. v-if="toolDialogVisible == true"
  11863. class="toolMask"
  11864. @click="toolDialogVisible = false"
  11865. ></div>
  11866. <div v-if="toolDialogVisible == true" class="addToolCss">
  11867. <div class="toolTop">
  11868. <div style="font-weight: bold">新增工具</div>
  11869. <div @click="toolDialogVisible = false">
  11870. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11871. </div>
  11872. </div>
  11873. <div class="tool_box">
  11874. <div class="tool_type_box">
  11875. <div class="chooseWho">
  11876. <div
  11877. :class="toolType == 0 ? 'isChooseActive' : ''"
  11878. @click="(toolType = 0), $forceUpdate()"
  11879. >
  11880. 互动类
  11881. </div>
  11882. <div
  11883. :class="toolType == 1 ? 'isChooseActive' : ''"
  11884. @click="(toolType = 1), $forceUpdate()"
  11885. >
  11886. 思维类
  11887. </div>
  11888. <div
  11889. :class="toolType == 2 ? 'isChooseActive' : ''"
  11890. @click="(toolType = 2), $forceUpdate()"
  11891. >
  11892. 测评类
  11893. </div>
  11894. <div
  11895. :class="toolType == 3 ? 'isChooseActive' : ''"
  11896. @click="(toolType = 3), $forceUpdate()"
  11897. >
  11898. 编程类
  11899. </div>
  11900. <div
  11901. :class="toolType == 5 ? 'isChooseActive' : ''"
  11902. @click="(toolType = 5), $forceUpdate()"
  11903. >
  11904. 学科类
  11905. </div>
  11906. </div>
  11907. </div>
  11908. <div>
  11909. <div class="toolSort" v-if="toolType == 0">
  11910. <div
  11911. class="tool"
  11912. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11913. @click="addTools2(10)"
  11914. >
  11915. <div class="whiteBIcon">
  11916. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11917. <div style="margin: 5px 0">倒计时</div>
  11918. </div>
  11919. <div class="check">
  11920. <div
  11921. v-if="checktoolArray.indexOf(10) == -1"
  11922. class="noChoose"
  11923. ></div>
  11924. <div v-else class="isChoose"></div>
  11925. </div>
  11926. </div>
  11927. <div
  11928. class="tool"
  11929. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11930. @click="addTools2(65)"
  11931. >
  11932. <div class="whiteBIcon">
  11933. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11934. <div style="margin: 5px 0">挑人</div>
  11935. </div>
  11936. <div class="check">
  11937. <div
  11938. v-if="checktoolArray.indexOf(65) == -1"
  11939. class="noChoose"
  11940. ></div>
  11941. <div v-else class="isChoose"></div>
  11942. </div>
  11943. </div>
  11944. </div>
  11945. <div class="toolSort" v-if="toolType == 1">
  11946. <div
  11947. class="tool"
  11948. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11949. @click="addTools2(7)"
  11950. >
  11951. <div class="whiteBIcon">
  11952. <img
  11953. src="../../assets/icon/secondToolList/mindNetwork.png"
  11954. alt
  11955. />
  11956. <div style="margin: 5px 0">思维网格</div>
  11957. </div>
  11958. <div class="check">
  11959. <div
  11960. v-if="checktoolArray.indexOf(7) == -1"
  11961. class="noChoose"
  11962. ></div>
  11963. <div v-else class="isChoose"></div>
  11964. </div>
  11965. </div>
  11966. <div
  11967. class="tool"
  11968. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11969. @click="addTools2(1)"
  11970. >
  11971. <div class="whiteBIcon">
  11972. <img
  11973. src="../../assets/icon/secondToolList/whiteBoard.png"
  11974. alt
  11975. />
  11976. <div style="margin: 5px 0">电子白板</div>
  11977. </div>
  11978. <div class="check">
  11979. <div
  11980. v-if="checktoolArray.indexOf(1) == -1"
  11981. class="noChoose"
  11982. ></div>
  11983. <div v-else class="isChoose"></div>
  11984. </div>
  11985. </div>
  11986. <div
  11987. class="tool"
  11988. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11989. @click="addTools2(52)"
  11990. >
  11991. <div class="whiteBIcon">
  11992. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11993. <div style="margin: 5px 0">文档</div>
  11994. </div>
  11995. <div class="check">
  11996. <div
  11997. v-if="checktoolArray.indexOf(52) == -1"
  11998. class="noChoose"
  11999. ></div>
  12000. <div v-else class="isChoose"></div>
  12001. </div>
  12002. </div>
  12003. <div
  12004. class="tool"
  12005. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12006. @click="addTools2(3)"
  12007. >
  12008. <div class="whiteBIcon">
  12009. <img
  12010. src="../../assets/icon/secondToolList/mindMapping.png"
  12011. alt
  12012. />
  12013. <div style="margin: 5px 0">思维导图</div>
  12014. </div>
  12015. <div class="check">
  12016. <div
  12017. v-if="checktoolArray.indexOf(3) == -1"
  12018. class="noChoose"
  12019. ></div>
  12020. <div v-else class="isChoose"></div>
  12021. </div>
  12022. </div>
  12023. <div
  12024. class="tool"
  12025. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12026. @click="addTools2(48)"
  12027. >
  12028. <div class="whiteBIcon">
  12029. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12030. <div style="margin: 5px 0">表格</div>
  12031. </div>
  12032. <div class="check">
  12033. <div
  12034. v-if="checktoolArray.indexOf(48) == -1"
  12035. class="noChoose"
  12036. ></div>
  12037. <div v-else class="isChoose"></div>
  12038. </div>
  12039. </div>
  12040. </div>
  12041. <div class="toolSort" v-if="toolType == 6">
  12042. <div v-show="tooC == 49">
  12043. <img
  12044. @click="addTools(tooC, toolIndex, taskCount)"
  12045. src="../../assets/icon/fourthToolList/group.png"
  12046. alt
  12047. />
  12048. <div style="margin: 5px 0">学生分组</div>
  12049. </div>
  12050. </div>
  12051. <div class="toolSort" v-if="toolType == 2">
  12052. <div
  12053. class="tool"
  12054. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12055. @click="addTools2(16)"
  12056. >
  12057. <div class="whiteBIcon">
  12058. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12059. <div style="margin: 5px 0">作业提交</div>
  12060. </div>
  12061. <div class="check">
  12062. <div
  12063. v-if="checktoolArray.indexOf(16) == -1"
  12064. class="noChoose"
  12065. ></div>
  12066. <div v-else class="isChoose"></div>
  12067. </div>
  12068. </div>
  12069. <div
  12070. class="tool"
  12071. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12072. @click="addTools2(50)"
  12073. >
  12074. <div class="whiteBIcon">
  12075. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12076. <div style="margin: 5px 0">批量上传</div>
  12077. </div>
  12078. <div class="check">
  12079. <div
  12080. v-if="checktoolArray.indexOf(50) == -1"
  12081. class="noChoose"
  12082. ></div>
  12083. <div v-else class="isChoose"></div>
  12084. </div>
  12085. </div>
  12086. </div>
  12087. <div class="toolSort" v-if="toolType == 3">
  12088. <div
  12089. class="tool"
  12090. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12091. @click="addTools2(18)"
  12092. >
  12093. <div class="whiteBIcon">
  12094. <img
  12095. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12096. alt
  12097. />
  12098. <div style="margin: 5px 0">训练平台</div>
  12099. </div>
  12100. <div class="check">
  12101. <div
  12102. v-if="checktoolArray.indexOf(18) == -1"
  12103. class="noChoose"
  12104. ></div>
  12105. <div v-else class="isChoose"></div>
  12106. </div>
  12107. </div>
  12108. <div
  12109. class="tool"
  12110. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12111. @click="addTools2(21)"
  12112. >
  12113. <div class="whiteBIcon">
  12114. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12115. <div style="margin: 5px 0">AIoT Blockly</div>
  12116. </div>
  12117. <div class="check">
  12118. <div
  12119. v-if="checktoolArray.indexOf(21) == -1"
  12120. class="noChoose"
  12121. ></div>
  12122. <div v-else class="isChoose"></div>
  12123. </div>
  12124. </div>
  12125. <div
  12126. class="tool"
  12127. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12128. @click="addTools2(23)"
  12129. >
  12130. <div class="whiteBIcon">
  12131. <img
  12132. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12133. alt
  12134. />
  12135. <div style="margin: 5px 0">AI Python</div>
  12136. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  12137. style="position: absolute;right: 33px;top: -30px;">
  12138. 分析
  12139. </div>
  12140. </div>
  12141. <div class="check">
  12142. <div
  12143. v-if="checktoolArray.indexOf(23) == -1"
  12144. class="noChoose"
  12145. ></div>
  12146. <div v-else class="isChoose"></div>
  12147. </div>
  12148. </div>
  12149. <div
  12150. class="tool"
  12151. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12152. @click="addTools2(24)"
  12153. >
  12154. <div class="whiteBIcon">
  12155. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12156. <div style="margin: 5px 0">AI Blockly</div>
  12157. </div>
  12158. <div class="check">
  12159. <div
  12160. v-if="checktoolArray.indexOf(24) == -1"
  12161. class="noChoose"
  12162. ></div>
  12163. <div v-else class="isChoose"></div>
  12164. </div>
  12165. </div>
  12166. <div
  12167. class="tool"
  12168. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12169. @click="addTools2(32)"
  12170. >
  12171. <div class="whiteBIcon">
  12172. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12173. <div style="margin: 5px 0">源码编辑</div>
  12174. </div>
  12175. <div class="check">
  12176. <div
  12177. v-if="checktoolArray.indexOf(32) == -1"
  12178. class="noChoose"
  12179. ></div>
  12180. <div v-else class="isChoose"></div>
  12181. </div>
  12182. </div>
  12183. <div
  12184. class="tool"
  12185. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12186. @click="addTools2(57)"
  12187. >
  12188. <div class="whiteBIcon">
  12189. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12190. <div style="margin: 5px 0">CocoPi</div>
  12191. </div>
  12192. <div class="check">
  12193. <div
  12194. v-if="checktoolArray.indexOf(57) == -1"
  12195. class="noChoose"
  12196. ></div>
  12197. <div v-else class="isChoose"></div>
  12198. </div>
  12199. </div>
  12200. <div
  12201. class="tool"
  12202. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12203. @click="addTools2(63)"
  12204. >
  12205. <div class="whiteBIcon">
  12206. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12207. <div style="margin: 5px 0">海龟编程</div>
  12208. </div>
  12209. <div class="check">
  12210. <div
  12211. v-if="checktoolArray.indexOf(63) == -1"
  12212. class="noChoose"
  12213. ></div>
  12214. <div v-else class="isChoose"></div>
  12215. </div>
  12216. </div>
  12217. <div
  12218. class="tool"
  12219. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12220. @click="addTools2(71)"
  12221. >
  12222. <div class="whiteBIcon">
  12223. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12224. <div style="margin: 5px 0">AI智能体</div>
  12225. </div>
  12226. <div class="check">
  12227. <div
  12228. v-if="checktoolArray.indexOf(71) == -1"
  12229. class="noChoose"
  12230. ></div>
  12231. <div v-else class="isChoose"></div>
  12232. </div>
  12233. </div>
  12234. </div>
  12235. <div class="toolSort" v-if="toolType == 7">
  12236. <div
  12237. class="tool"
  12238. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12239. @click="addTools2(40)"
  12240. >
  12241. <div class="whiteBIcon">
  12242. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12243. <div style="margin: 5px 0">个人评价</div>
  12244. </div>
  12245. <div class="check">
  12246. <div
  12247. v-if="checktoolArray.indexOf(40) == -1"
  12248. class="noChoose"
  12249. ></div>
  12250. <div v-else class="isChoose"></div>
  12251. </div>
  12252. </div>
  12253. </div>
  12254. <div class="toolSort" v-if="toolType == 5">
  12255. <div
  12256. class="tool"
  12257. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12258. @click="addTools2(28)"
  12259. >
  12260. <div class="whiteBIcon">
  12261. <img
  12262. src="../../assets/icon/secondToolList/translation.png"
  12263. alt
  12264. />
  12265. <div style="margin: 5px 0">翻译</div>
  12266. </div>
  12267. <div class="check">
  12268. <div
  12269. v-if="checktoolArray.indexOf(28) == -1"
  12270. class="noChoose"
  12271. ></div>
  12272. <div v-else class="isChoose"></div>
  12273. </div>
  12274. </div>
  12275. <div
  12276. class="tool"
  12277. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12278. @click="addTools2(31)"
  12279. >
  12280. <div class="whiteBIcon">
  12281. <img
  12282. src="../../assets/icon/secondToolList/networkPanel.png"
  12283. alt
  12284. />
  12285. <div style="margin: 5px 0">数字画板</div>
  12286. </div>
  12287. <div class="check">
  12288. <div
  12289. v-if="checktoolArray.indexOf(31) == -1"
  12290. class="noChoose"
  12291. ></div>
  12292. <div v-else class="isChoose"></div>
  12293. </div>
  12294. </div>
  12295. <div
  12296. class="tool"
  12297. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12298. @click="addTools2(39)"
  12299. >
  12300. <div class="whiteBIcon">
  12301. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12302. <div style="margin: 5px 0">GeoGebra</div>
  12303. </div>
  12304. <div class="check">
  12305. <div
  12306. v-if="checktoolArray.indexOf(39) == -1"
  12307. class="noChoose"
  12308. ></div>
  12309. <div v-else class="isChoose"></div>
  12310. </div>
  12311. </div>
  12312. <div
  12313. class="tool"
  12314. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12315. @click="addTools2(66)"
  12316. >
  12317. <div class="whiteBIcon">
  12318. <img
  12319. src="../../assets/icon/secondToolList/formulaEdi.png"
  12320. alt
  12321. />
  12322. <div style="margin: 5px 0">公式编辑</div>
  12323. </div>
  12324. <div class="check">
  12325. <div
  12326. v-if="checktoolArray.indexOf(66) == -1"
  12327. class="noChoose"
  12328. ></div>
  12329. <div v-else class="isChoose"></div>
  12330. </div>
  12331. </div>
  12332. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12333. <div class="whiteBIcon" @click="addTools2(67)">
  12334. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12335. <div style="margin: 5px 0">分子结构</div>
  12336. </div>
  12337. <div class="check" @click="addTools2(67)">
  12338. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12339. <div v-else class="isChoose"></div>
  12340. </div>
  12341. </div> -->
  12342. <div
  12343. class="tool"
  12344. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12345. @click="addTools2(68)"
  12346. >
  12347. <div class="whiteBIcon">
  12348. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12349. <div style="margin: 5px 0">时间轴</div>
  12350. </div>
  12351. <div class="check">
  12352. <div
  12353. v-if="checktoolArray.indexOf(68) == -1"
  12354. class="noChoose"
  12355. ></div>
  12356. <div v-else class="isChoose"></div>
  12357. </div>
  12358. </div>
  12359. <!-- <div
  12360. class="tool"
  12361. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12362. @click="addTools2(69)"
  12363. >
  12364. <div class="whiteBIcon">
  12365. <img src="../../assets/icon/secondToolList/english.png" alt />
  12366. <div style="margin: 5px 0">英语写作</div>
  12367. </div>
  12368. <div class="check">
  12369. <div
  12370. v-if="checktoolArray.indexOf(69) == -1"
  12371. class="noChoose"
  12372. ></div>
  12373. <div v-else class="isChoose"></div>
  12374. </div>
  12375. </div> -->
  12376. </div>
  12377. <div class="toolSort" v-if="toolType == 4">
  12378. <div
  12379. class="tool"
  12380. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12381. @click="addTools2(26)"
  12382. >
  12383. <div class="whiteBIcon">
  12384. <img
  12385. src="../../assets/icon/thirdToolList/courseDesign.png"
  12386. alt
  12387. />
  12388. <div style="margin: 5px 0">课程设计</div>
  12389. </div>
  12390. <div class="check">
  12391. <div
  12392. v-if="checktoolArray.indexOf(26) == -1"
  12393. class="noChoose"
  12394. ></div>
  12395. <div v-else class="isChoose"></div>
  12396. </div>
  12397. </div>
  12398. <div
  12399. class="tool"
  12400. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12401. @click="addTools2(25)"
  12402. >
  12403. <div class="whiteBIcon">
  12404. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12405. <div style="margin: 5px 0">目标管理</div>
  12406. </div>
  12407. <div class="check">
  12408. <div
  12409. v-if="checktoolArray.indexOf(25) == -1"
  12410. class="noChoose"
  12411. ></div>
  12412. <div v-else class="isChoose"></div>
  12413. </div>
  12414. </div>
  12415. </div>
  12416. </div>
  12417. </div>
  12418. <span
  12419. slot="footer"
  12420. class="dialog-footer"
  12421. style="display: block; text-align: center; padding: 0 0 10px 0"
  12422. >
  12423. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12424. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12425. </span>
  12426. </div>
  12427. <div
  12428. v-if="replyDialogVisible == true"
  12429. class="addDialogCss"
  12430. v-el-drag-dialog
  12431. >
  12432. <div class="pzTop">
  12433. <div class="teacherPz">
  12434. <div class="teacherPzImg">
  12435. <img src="../../assets/icon/teacherPz.png" alt="" />
  12436. </div>
  12437. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12438. </div>
  12439. <div @click="replyDialogVisible = false">
  12440. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12441. </div>
  12442. </div>
  12443. <div class="addPzBox">
  12444. <!-- <div class="addPzCheck">
  12445. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12446. >文本</span
  12447. >
  12448. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12449. >音频</span
  12450. >
  12451. </div> -->
  12452. <div style="height: calc(100% - 50px)">
  12453. <editor-bar
  12454. class="binfo_input pzConText"
  12455. style="width: 100% !important; margin: 0 auto"
  12456. placeholder="请输入回复描述"
  12457. v-model="reply"
  12458. @change="change"
  12459. ></editor-bar>
  12460. </div>
  12461. <div class="addTextCss" @click="addHf">确定</div>
  12462. </div>
  12463. </div>
  12464. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12465. <div class="pzTop">
  12466. <div class="teacherPz">
  12467. <div class="teacherPzImg">
  12468. <img src="../../assets/icon/teacherPz.png" alt="" />
  12469. </div>
  12470. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12471. </div>
  12472. <div @click="addPzDialog = false">
  12473. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12474. </div>
  12475. </div>
  12476. <div class="addPzBox">
  12477. <div class="addPzCheck">
  12478. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12479. >文本</span
  12480. >
  12481. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12482. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12483. >音频</span
  12484. >
  12485. </div>
  12486. <div style="height: calc(100% - 95px)">
  12487. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12488. v-if="pzType == 1"></textarea> -->
  12489. <editor-bar
  12490. class="binfo_input pzConText"
  12491. style="width: 100% !important"
  12492. placeholder="请输入任务描述"
  12493. v-model="pzConText"
  12494. @change="change"
  12495. v-if="pzType == 1"
  12496. ></editor-bar>
  12497. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12498. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12499. <div @click="addImg($event)">
  12500. <el-button type="primary">上传图片</el-button>
  12501. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12502. @change="beforeUpload1($event, 4)" />
  12503. </div>
  12504. </div> -->
  12505. </div>
  12506. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12507. 确定
  12508. </div>
  12509. </div>
  12510. </div>
  12511. <div v-if="proVisible" class="mask">
  12512. <div class="progressBox">
  12513. <!-- <div id="closePro" class="closeCss">
  12514. <img src="../../assets/icon/close.png" alt />
  12515. </div> -->
  12516. <div class="lbox">
  12517. <img src="../../assets/loading.gif" />上传中,请稍后
  12518. </div>
  12519. <div style="margin-bottom: 10px">
  12520. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12521. </div>
  12522. <el-progress
  12523. :text-inside="true"
  12524. :stroke-width="20"
  12525. :percentage="progress"
  12526. style="width: 80%"
  12527. ></el-progress>
  12528. </div>
  12529. </div>
  12530. <div v-if="proVisible2" class="mask">
  12531. <div class="progressBox">
  12532. <div class="lbox">
  12533. <img src="../../assets/loading.gif" />上传中,请稍后
  12534. </div>
  12535. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12536. </div>
  12537. </div>
  12538. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12539. <img width="100%" :src="dialogImageUrl" alt />
  12540. </el-dialog>
  12541. <el-dialog
  12542. :title="noteName != '' ? noteName : '查看问卷'"
  12543. :visible.sync="dialogVisible5"
  12544. :append-to-body="true"
  12545. width="1000px"
  12546. :before-close="handleClose"
  12547. class="dialog_diy dialog_diy3"
  12548. >
  12549. <div>
  12550. <div
  12551. class="a_add_title"
  12552. style="
  12553. display: flex;
  12554. flex-direction: row;
  12555. align-items: center;
  12556. justify-content: center;
  12557. "
  12558. >
  12559. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12560. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12561. </div>
  12562. <div class="a_addBox">
  12563. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12564. 题目内容
  12565. </div>
  12566. <div
  12567. class="a_add_box"
  12568. v-for="(item1, index1) in askJson.askCount"
  12569. :key="index1"
  12570. >
  12571. <div class="a_add_head">
  12572. <div style="display: flex">
  12573. <span class="askIndex"> {{ index1 + 1 }}</span>
  12574. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12575. </div>
  12576. <img
  12577. v-if="askJson.askJson[index1].img"
  12578. :src="askJson.askJson[index1].img"
  12579. style="height: 300px; margin-top: 10px; max-width: 100%"
  12580. />
  12581. </div>
  12582. <div class="a_add_body">
  12583. <div class="a_add_input">
  12584. <el-radio-group
  12585. v-model="radio[index1]"
  12586. v-if="
  12587. askJson.askJson[index1].type == '1' ||
  12588. !askJson.askJson[index1].type
  12589. "
  12590. >
  12591. <el-radio
  12592. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12593. .checkList"
  12594. :key="checkIndex"
  12595. :label="checkIndex"
  12596. :disabled="isAnswer"
  12597. class="redioStyle"
  12598. ><span v-html="item2"></span
  12599. ></el-radio>
  12600. </el-radio-group>
  12601. <el-checkbox-group
  12602. v-model="radio[index1]"
  12603. v-if="askJson.askJson[index1].type == '2'"
  12604. >
  12605. <el-checkbox
  12606. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12607. .checkList"
  12608. :key="checkIndex1"
  12609. :label="checkIndex1"
  12610. :disabled="isAnswer"
  12611. class="redioStyle"
  12612. ><span v-html="item2"></span>
  12613. </el-checkbox>
  12614. </el-checkbox-group>
  12615. </div>
  12616. </div>
  12617. </div>
  12618. </div>
  12619. </div>
  12620. <span slot="footer" class="dialog-footer">
  12621. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12622. >取 消</el-button
  12623. >
  12624. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12625. >确 定</el-button
  12626. >
  12627. </span>
  12628. </el-dialog>
  12629. <el-dialog
  12630. :title="noteName != '' ? noteName : '查看问卷'"
  12631. :visible.sync="dialogVisible5Teacher"
  12632. :append-to-body="true"
  12633. width="1000px"
  12634. :before-close="handleClose"
  12635. class="dialog_diy dialog_diy3"
  12636. >
  12637. <div>
  12638. <div class="w_name">
  12639. 学生姓名:<span>{{ sStudent.student }}</span>
  12640. </div>
  12641. <div
  12642. class="a_add_title"
  12643. style="
  12644. display: flex;
  12645. flex-direction: row;
  12646. align-items: center;
  12647. justify-content: center;
  12648. "
  12649. >
  12650. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12651. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12652. </div>
  12653. <div class="a_addBox">
  12654. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12655. 题目内容
  12656. </div>
  12657. <div
  12658. class="a_add_box"
  12659. v-for="(item1, index1) in askJson.askCount"
  12660. :key="index1"
  12661. >
  12662. <div class="a_add_head">
  12663. <div style="display: flex">
  12664. <span class="askIndex">{{ index1 + 1 }}</span>
  12665. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12666. </div>
  12667. <img
  12668. v-if="askJson.askJson[index1].img"
  12669. :src="askJson.askJson[index1].img"
  12670. style="height: 300px; margin-top: 10px; max-width: 100%"
  12671. />
  12672. </div>
  12673. <div class="a_add_body">
  12674. <div class="a_add_input">
  12675. <el-radio-group
  12676. v-model="radio[index1]"
  12677. v-if="
  12678. askJson.askJson[index1].type == '1' ||
  12679. !askJson.askJson[index1].type
  12680. "
  12681. >
  12682. <el-radio
  12683. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12684. .checkList"
  12685. :key="checkIndex"
  12686. :label="checkIndex"
  12687. :disabled="isAnswer"
  12688. class="redioStyle"
  12689. ><span v-html="item2"></span
  12690. ></el-radio>
  12691. </el-radio-group>
  12692. <el-checkbox-group
  12693. v-model="radio[index1]"
  12694. v-if="askJson.askJson[index1].type == '2'"
  12695. >
  12696. <el-checkbox
  12697. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12698. .checkList"
  12699. :key="checkIndex1"
  12700. :label="checkIndex1"
  12701. :disabled="isAnswer"
  12702. class="redioStyle"
  12703. ><span v-html="item2"></span>
  12704. </el-checkbox>
  12705. </el-checkbox-group>
  12706. </div>
  12707. </div>
  12708. </div>
  12709. </div>
  12710. </div>
  12711. <span slot="footer" class="dialog-footer">
  12712. <el-button
  12713. @click="dialogVisible5Teacher = false"
  12714. v-show="noteName == ''"
  12715. >取 消</el-button
  12716. >
  12717. <el-button
  12718. type="primary"
  12719. @click="addStudentAskTeacher"
  12720. v-show="noteName == ''"
  12721. >确 定</el-button
  12722. >
  12723. </span>
  12724. </el-dialog>
  12725. <el-dialog
  12726. :title="noteName != '' ? noteName : '查看选择题'"
  12727. :visible.sync="dialogVisibleChoice"
  12728. :append-to-body="true"
  12729. width="1000px"
  12730. :before-close="handleClose"
  12731. class="dialog_diy dialog_diy3"
  12732. >
  12733. <div>
  12734. <!-- <div class="a_add_title" style="
  12735. display: flex;
  12736. flex-direction: row;
  12737. align-items: center;
  12738. justify-content: center;
  12739. ">
  12740. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12741. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12742. </div> -->
  12743. <div class="a_addBox">
  12744. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12745. 题目内容
  12746. </div>
  12747. <div
  12748. class="a_add_box"
  12749. v-for="(item1, index1) in testJson.testCount"
  12750. :key="index1"
  12751. >
  12752. <div class="a_add_head">
  12753. <div style="display: flex">
  12754. <span class="askIndex">{{ index1 + 1 }}</span>
  12755. <div
  12756. v-if="testJson.testJson[index1].type == '1'"
  12757. style="margin-right: 5px; min-width: 70px"
  12758. >
  12759. (单选题)
  12760. </div>
  12761. <div
  12762. v-if="testJson.testJson[index1].type == '2'"
  12763. style="margin-right: 5px; min-width: 70px"
  12764. >
  12765. (多选题)
  12766. </div>
  12767. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12768. </div>
  12769. <img
  12770. v-if="testJson.testJson[index1].img"
  12771. :src="testJson.testJson[index1].img"
  12772. style="height: 300px; margin-top: 10px; max-width: 100%"
  12773. />
  12774. </div>
  12775. <div
  12776. class="timuImgBox"
  12777. v-if="
  12778. testJson.testJson[index1].timuList &&
  12779. testJson.testJson[index1].timuList.length
  12780. "
  12781. >
  12782. <div
  12783. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12784. :key="tIndex"
  12785. class="timuImg"
  12786. @click.stop="previewImg(timg.src)"
  12787. >
  12788. <img :src="timg.src" alt="" />
  12789. </div>
  12790. </div>
  12791. <div class="a_add_body">
  12792. <div class="a_add_input">
  12793. <el-radio-group
  12794. v-model="radio[index1]"
  12795. v-if="testJson.testJson[index1].type == '1'"
  12796. >
  12797. <div class="radioBox">
  12798. <el-radio
  12799. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12800. .checkList"
  12801. :key="checkIndex"
  12802. :label="checkIndex"
  12803. :disabled="isAnswer"
  12804. class="redioStyle"
  12805. >
  12806. <div
  12807. style="margin-right: 10px"
  12808. v-if="item2 && item2.imgType && item2.imgType == 1"
  12809. >
  12810. <div class="inImg" @click.stop="previewImg(item2.src)">
  12811. <img :src="item2.src" alt="" />
  12812. </div>
  12813. </div>
  12814. <span v-else v-html="item2"></span>
  12815. </el-radio>
  12816. </div>
  12817. </el-radio-group>
  12818. <el-checkbox-group
  12819. v-model="radio[index1]"
  12820. v-if="testJson.testJson[index1].type == '2'"
  12821. >
  12822. <div class="radioBox">
  12823. <el-checkbox
  12824. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12825. .checkList"
  12826. :key="checkIndex"
  12827. :label="checkIndex"
  12828. :disabled="isAnswer"
  12829. class="redioStyle"
  12830. >
  12831. <div
  12832. style="margin-right: 10px"
  12833. v-if="item2 && item2.imgType && item2.imgType == 1"
  12834. >
  12835. <div class="inImg" @click.stop="previewImg(item2.src)">
  12836. <img :src="item2.src" alt="" />
  12837. </div>
  12838. </div>
  12839. <span v-else v-html="item2"></span>
  12840. </el-checkbox>
  12841. </div>
  12842. </el-checkbox-group>
  12843. </div>
  12844. </div>
  12845. </div>
  12846. </div>
  12847. </div>
  12848. <span slot="footer" class="dialog-footer">
  12849. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12850. >取 消</el-button
  12851. >
  12852. <el-button
  12853. type="primary"
  12854. @click="addStudentTest"
  12855. v-show="noteName == ''"
  12856. >确 定</el-button
  12857. >
  12858. </span>
  12859. </el-dialog>
  12860. <el-dialog
  12861. :title="noteName != '' ? noteName : '查看选择题'"
  12862. :visible.sync="dialogVisibleChoiceTeacher"
  12863. :append-to-body="true"
  12864. width="1000px"
  12865. :before-close="handleClose"
  12866. class="dialog_diy dialog_diy3"
  12867. >
  12868. <div>
  12869. <div class="w_name">
  12870. 学生姓名:<span>{{ sStudent.student }}</span>
  12871. </div>
  12872. <div class="a_addBox">
  12873. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12874. 题目内容
  12875. </div>
  12876. <div
  12877. class="a_add_box"
  12878. v-for="(item1, index1) in testJson.testCount"
  12879. :key="index1"
  12880. >
  12881. <div class="a_add_head">
  12882. <div style="display: flex">
  12883. <span class="askIndex">{{ index1 + 1 }}</span>
  12884. <div
  12885. v-if="testJson.testJson[index1].type == '1'"
  12886. style="margin-right: 5px; min-width: 70px"
  12887. >
  12888. (单选题)
  12889. </div>
  12890. <div
  12891. v-if="testJson.testJson[index1].type == '2'"
  12892. style="margin-right: 5px; min-width: 70px"
  12893. >
  12894. (多选题)
  12895. </div>
  12896. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12897. </div>
  12898. <img
  12899. v-if="testJson.testJson[index1].img"
  12900. :src="testJson.testJson[index1].img"
  12901. style="height: 300px; margin-top: 10px; max-width: 100%"
  12902. />
  12903. </div>
  12904. <div
  12905. class="timuImgBox"
  12906. v-if="
  12907. testJson.testJson[index1].timuList &&
  12908. testJson.testJson[index1].timuList.length
  12909. "
  12910. >
  12911. <div
  12912. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12913. :key="tIndex"
  12914. class="timuImg"
  12915. @click.stop="previewImg(timg.src)"
  12916. >
  12917. <img :src="timg.src" alt="" />
  12918. </div>
  12919. </div>
  12920. <div class="a_add_body">
  12921. <div class="a_add_input">
  12922. <el-radio-group
  12923. v-model="radio[index1]"
  12924. v-if="testJson.testJson[index1].type == '1'"
  12925. >
  12926. <div class="radioBox">
  12927. <el-radio
  12928. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12929. .checkList"
  12930. :key="checkIndex"
  12931. :label="checkIndex"
  12932. :disabled="isAnswer"
  12933. class="redioStyle"
  12934. >
  12935. <div
  12936. style="margin-right: 10px"
  12937. v-if="item2 && item2.imgType && item2.imgType == 1"
  12938. >
  12939. <div class="inImg" @click.stop="previewImg(item2.src)">
  12940. <img :src="item2.src" alt="" />
  12941. </div>
  12942. </div>
  12943. <span v-else v-html="item2"></span>
  12944. </el-radio>
  12945. </div>
  12946. </el-radio-group>
  12947. <el-checkbox-group
  12948. v-model="radio[index1]"
  12949. v-if="testJson.testJson[index1].type == '2'"
  12950. >
  12951. <div class="radioBox">
  12952. <el-checkbox
  12953. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12954. .checkList"
  12955. :key="checkIndex"
  12956. :label="checkIndex"
  12957. :disabled="isAnswer"
  12958. class="redioStyle"
  12959. >
  12960. <div
  12961. style="margin-right: 10px"
  12962. v-if="item2 && item2.imgType && item2.imgType == 1"
  12963. >
  12964. <div class="inImg" @click.stop="previewImg(item2.src)">
  12965. <img :src="item2.src" alt="" />
  12966. </div>
  12967. </div>
  12968. <span v-else v-html="item2"></span>
  12969. </el-checkbox>
  12970. </div>
  12971. </el-checkbox-group>
  12972. </div>
  12973. </div>
  12974. </div>
  12975. </div>
  12976. </div>
  12977. <span slot="footer" class="dialog-footer">
  12978. <el-button
  12979. @click="dialogVisibleChoiceTeacher = false"
  12980. v-show="noteName == ''"
  12981. >取 消</el-button
  12982. >
  12983. <el-button
  12984. type="primary"
  12985. @click="addStudentTestTeacher"
  12986. v-show="noteName == ''"
  12987. >确 定</el-button
  12988. >
  12989. </span>
  12990. </el-dialog>
  12991. <el-dialog
  12992. title="查看富文本"
  12993. :visible.sync="dialogVisible1"
  12994. :append-to-body="true"
  12995. width="500px"
  12996. :before-close="handleClose"
  12997. class="dialog_diy textCss"
  12998. >
  12999. <el-form style="font-size: 20px">
  13000. <el-form-item label="文本标题" class="textTitle">
  13001. <div style="font-size: 20px">{{ text.name }}</div>
  13002. </el-form-item>
  13003. <div>富文本内容</div>
  13004. <div
  13005. v-html="text.url"
  13006. style="font-size: 18px; padding: 40px 0 0 0"
  13007. ></div>
  13008. </el-form>
  13009. <span slot="footer" class="dialog-footer">
  13010. <el-button type="primary" @click="dialogVisible1 = false"
  13011. >确定</el-button
  13012. >
  13013. </span>
  13014. </el-dialog>
  13015. <el-dialog
  13016. title="文件预览"
  13017. :visible.sync="dialogVisible3"
  13018. width="50%"
  13019. :before-close="handleClose"
  13020. class="dialog_diy"
  13021. :class="{ fullStyle: full }"
  13022. >
  13023. <div slot="title" class="header-title">
  13024. <div style="color: #fff">文件预览</div>
  13025. <div style="position: absolute; top: 19px; right: 50px">
  13026. <img
  13027. src="../../assets/full.png"
  13028. style="height: 16px; cursor: pointer"
  13029. alt=""
  13030. @click="fullTools"
  13031. />
  13032. </div>
  13033. </div>
  13034. <pdf
  13035. v-if="showPDF"
  13036. :pdfUrl="pptImgUrl"
  13037. style="width: 100%; height: 520px; overflow: auto"
  13038. :class="{ fullStyle: full }"
  13039. ></pdf>
  13040. <iframe
  13041. v-else
  13042. :src="pptImgUrl"
  13043. frameborder="0"
  13044. width="100%"
  13045. height="600"
  13046. :class="{ fullStyle: full }"
  13047. ></iframe>
  13048. </el-dialog>
  13049. <el-dialog
  13050. title="文件预览"
  13051. :visible.sync="dialogVisible6"
  13052. width="50%"
  13053. :before-close="handleClose"
  13054. class="dialog_diy"
  13055. >
  13056. <iframe
  13057. :src="pptImgUrl1"
  13058. frameborder="0"
  13059. width="100%"
  13060. height="600"
  13061. ></iframe>
  13062. </el-dialog>
  13063. <el-dialog
  13064. title="提示"
  13065. :visible.sync="dialogVisible4"
  13066. :append-to-body="true"
  13067. width="800px"
  13068. :before-close="handleClose"
  13069. class="dialog_diy notice"
  13070. >
  13071. <div>此功能暂未开放!</div>
  13072. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13073. </el-dialog>
  13074. <el-dialog
  13075. title="问答"
  13076. :visible.sync="answerDialogVisible"
  13077. :append-to-body="true"
  13078. width="800px"
  13079. :before-close="handleClose"
  13080. class="dialog_diy"
  13081. >
  13082. <div>
  13083. <div
  13084. style="
  13085. display: flex;
  13086. flex-wrap: nowrap;
  13087. flex-direction: column;
  13088. position: relative;
  13089. "
  13090. >
  13091. <div class="queTop" style="padding: 20px 0 20px 0">
  13092. <div class="question">
  13093. <img src="../../assets/icon/question.png" alt />
  13094. </div>
  13095. <div class="queTitle">
  13096. <div style="width: 90px; min-width: 90px">提问:</div>
  13097. <div>{{ answerQ }}</div>
  13098. </div>
  13099. </div>
  13100. <div class="ediBottom">
  13101. <textarea
  13102. rows="6"
  13103. class="binfo_input"
  13104. cols
  13105. style="width: 95%; height: 120px"
  13106. v-model="questionAnswer"
  13107. ></textarea>
  13108. </div>
  13109. </div>
  13110. </div>
  13111. <div slot="footer">
  13112. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13113. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13114. </div>
  13115. </el-dialog>
  13116. <el-dialog
  13117. title="问答"
  13118. :visible.sync="answerDialogVisibleTeacher"
  13119. :append-to-body="true"
  13120. width="800px"
  13121. :before-close="handleClose"
  13122. class="dialog_diy"
  13123. >
  13124. <div>
  13125. <div class="w_name">
  13126. 学生姓名:<span>{{ sStudent.student }}</span>
  13127. </div>
  13128. <div
  13129. style="
  13130. display: flex;
  13131. flex-wrap: nowrap;
  13132. flex-direction: column;
  13133. position: relative;
  13134. "
  13135. >
  13136. <div class="queTop" style="padding: 20px 0 20px 0">
  13137. <div class="question">
  13138. <img src="../../assets/icon/question.png" alt />
  13139. </div>
  13140. <div class="queTitle">
  13141. <div style="width: 90px; min-width: 90px">提问:</div>
  13142. <div>{{ answerQ }}</div>
  13143. </div>
  13144. </div>
  13145. <div class="ediBottom">
  13146. <textarea
  13147. rows="6"
  13148. class="binfo_input"
  13149. cols
  13150. style="width: 95%; height: 120px"
  13151. v-model="questionAnswer"
  13152. ></textarea>
  13153. </div>
  13154. </div>
  13155. </div>
  13156. <div slot="footer">
  13157. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13158. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13159. </div>
  13160. </el-dialog>
  13161. <el-dialog
  13162. title="倒计时"
  13163. :visible.sync="timeDialogVisible"
  13164. :append-to-body="true"
  13165. width="800px"
  13166. :before-close="handleClose"
  13167. class="dialog_diy"
  13168. >
  13169. <div>
  13170. <div style="margin-bottom: 20px; color: #999">
  13171. 提示:点击“+”或“-”修改倒计时时长。
  13172. </div>
  13173. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13174. </div>
  13175. <div slot="footer">
  13176. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13177. </div>
  13178. </el-dialog>
  13179. <el-dialog
  13180. title="权限设置"
  13181. :visible.sync="juriVisible"
  13182. :append-to-body="true"
  13183. width="400px"
  13184. :before-close="handleClose"
  13185. class="dialog_diy"
  13186. >
  13187. <div>
  13188. <div class="open_box">
  13189. <div class="switch_box">
  13190. <span>允许学生查看所有作业</span>
  13191. <el-switch
  13192. v-model="sIsOpen"
  13193. active-text=""
  13194. class="switchCss"
  13195. @change="updateSLook"
  13196. ></el-switch>
  13197. </div>
  13198. <div
  13199. class="switch_box"
  13200. v-if="
  13201. (courseDetail.userid == userid ||
  13202. (courseDetail.course_teacher &&
  13203. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13204. "
  13205. >
  13206. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13207. <span>禁止学生查看阶段</span>
  13208. <el-switch
  13209. v-model="IsLookOpen"
  13210. active-text=""
  13211. class="switchCss"
  13212. @change="updateLookOpen"
  13213. ></el-switch>
  13214. </div>
  13215. <div class="switch_box" v-if="courseDetail.userid == userid">
  13216. <span>开启跟随模式</span>
  13217. <el-switch
  13218. v-model="IsFollow"
  13219. active-text=""
  13220. class="switchCss"
  13221. @change="updateFollow"
  13222. ></el-switch>
  13223. </div>
  13224. </div>
  13225. </div>
  13226. <div slot="footer">
  13227. <el-button
  13228. style="background: #409efe; color: #fff"
  13229. @click="juriVisible = false"
  13230. >关 闭</el-button
  13231. >
  13232. </div>
  13233. </el-dialog>
  13234. <el-dialog
  13235. title="查看视频"
  13236. :visible.sync="videoVisible"
  13237. :append-to-body="true"
  13238. width="1000px"
  13239. :before-close="handleClose"
  13240. class="dialog_diy1"
  13241. >
  13242. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13243. <video-player
  13244. class="video-player vjs-custom-skin"
  13245. :playsinline="true"
  13246. :options="videoDetail"
  13247. @play="onPlayerPlay($event)"
  13248. style="width: 100%; height: 100%"
  13249. ></video-player>
  13250. </div>
  13251. <div slot="footer">
  13252. <el-button
  13253. style="background: #409efe; color: #fff"
  13254. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13255. >
  13256. 关 闭</el-button
  13257. >
  13258. </div>
  13259. </el-dialog>
  13260. <el-dialog
  13261. title="查看详情"
  13262. :visible.sync="commentDialogVisible"
  13263. :append-to-body="true"
  13264. width="800px"
  13265. :before-close="handleClose"
  13266. class="dialog_diy"
  13267. >
  13268. <div class="commentTop">
  13269. <div class="studentDetail">
  13270. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13271. <div class="nameAndTime">
  13272. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13273. <div>{{ commentDetail.time }}</div>
  13274. </div>
  13275. <div
  13276. class="returnBtn"
  13277. style="margin-left: auto; width: 80px"
  13278. v-if="
  13279. commentDetail.works &&
  13280. commentDetail.type == 0 &&
  13281. (tType == 1 || tType == 4)
  13282. "
  13283. @click="
  13284. showPicturePaint(
  13285. commentDetail.img ? commentDetail.img : commentDetail.works
  13286. )
  13287. "
  13288. >
  13289. 教师批注
  13290. </div>
  13291. </div>
  13292. <div
  13293. class="worksAnswer"
  13294. v-if="commentDetail.works && commentDetail.type == 2"
  13295. >
  13296. {{ JSON.parse(commentDetail.works)[0].answer }}
  13297. </div>
  13298. <div
  13299. class="worksAnswer"
  13300. v-if="commentDetail.works && commentDetail.type == 1"
  13301. >
  13302. <img
  13303. src="../../assets/teacherWork.png"
  13304. v-if="commentDetail.ateacher"
  13305. class="w_teachert"
  13306. />
  13307. <pdf
  13308. v-if="showPDF"
  13309. :pdfUrl="pptImgUrl"
  13310. style="width: 100%; height: 520px; overflow: auto"
  13311. :class="{ fullStyle: full }"
  13312. ></pdf>
  13313. <iframe
  13314. v-else
  13315. :src="pptImgUrl"
  13316. frameborder="0"
  13317. width="100%"
  13318. height="600"
  13319. :class="{ fullStyle: full }"
  13320. ></iframe>
  13321. </div>
  13322. <div
  13323. class="worksAnswer"
  13324. v-if="commentDetail.works && commentDetail.type == 0"
  13325. >
  13326. <img
  13327. src="../../assets/teacherWork.png"
  13328. v-if="commentDetail.ateacher"
  13329. class="w_teachert"
  13330. style="right: 105px"
  13331. />
  13332. <img
  13333. :src="commentDetail.works"
  13334. alt=""
  13335. @click="previewImg(commentDetail.works)"
  13336. />
  13337. </div>
  13338. <div
  13339. class="worksAnswer"
  13340. v-if="commentDetail.works && commentDetail.type == 3"
  13341. >
  13342. <img
  13343. src="../../assets/teacherWork.png"
  13344. v-if="commentDetail.ateacher"
  13345. class="w_teachert"
  13346. />
  13347. <video-player
  13348. class="video-player vjs-custom-skin"
  13349. :playsinline="true"
  13350. :options="videoDetail"
  13351. @play="onPlayerPlay($event)"
  13352. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13353. ></video-player>
  13354. </div>
  13355. <div
  13356. class="worksAnswer"
  13357. v-if="commentDetail.works && commentDetail.type == 10"
  13358. >
  13359. <div class="cont" v-html="commentDetail.works.text"></div>
  13360. </div>
  13361. <div
  13362. class="worksAnswer codeFileBox"
  13363. v-if="commentDetail.works && commentDetail.type == 12"
  13364. @click="downloadFile(commentDetail.works)"
  13365. >
  13366. <img src="../../assets/icon/codeFile.png" />
  13367. <div>点击下载文件</div>
  13368. </div>
  13369. <div
  13370. class="worksAnswer codeFileBox"
  13371. v-if="commentDetail.works && commentDetail.type == 15"
  13372. @click="
  13373. openCocoPi(
  13374. 57,
  13375. commentIndexJson.toolIndex,
  13376. commentDetail.userid,
  13377. commentDetail.sName
  13378. )
  13379. "
  13380. >
  13381. <img src="../../assets/icon/codeFile.png" />
  13382. <div>点击打开CocoPi</div>
  13383. </div>
  13384. <div
  13385. class="worksAnswer"
  13386. v-if="commentDetail.works && commentDetail.type == 13"
  13387. >
  13388. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13389. </div>
  13390. <div
  13391. class="worksAnswer"
  13392. v-if="commentDetail.works && commentDetail.type == 4"
  13393. >
  13394. <div class="evalCss">
  13395. <div class="nav">请选择星星进行评分</div>
  13396. <div class="middleBox" v-if="eScore.eStar">
  13397. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13398. <div class="nameAndrate">
  13399. <div>{{ e.value }}</div>
  13400. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13401. </div>
  13402. <div v-if="e.detail">{{ e.detail }}</div>
  13403. </div>
  13404. <div class="bz">
  13405. <textarea
  13406. disabled
  13407. rows="4"
  13408. class="pj"
  13409. style="
  13410. padding: 10px 5px;
  13411. width: 70%;
  13412. background: #f7f6f9;
  13413. font-size: 14px;
  13414. text-indent: 10px;
  13415. color: #000;
  13416. "
  13417. cols
  13418. v-model="eScore.eBzText"
  13419. placeholder="请输入评价内容..."
  13420. ></textarea>
  13421. </div>
  13422. </div>
  13423. </div>
  13424. </div>
  13425. <div class="comment">
  13426. <div class="commentList">
  13427. <div class="commentImg">
  13428. <img
  13429. @click="
  13430. isLikes(
  13431. commentDetail.wid,
  13432. userid,
  13433. 1,
  13434. null,
  13435. commentDetail.isLikes,
  13436. commentDetail.sName
  13437. )
  13438. "
  13439. :src="commentDetail.isLikes == true ? likes : noLikes"
  13440. alt=""
  13441. />
  13442. </div>
  13443. <div>{{ commentDetail.likesCount }}</div>
  13444. </div>
  13445. <div class="commentList">
  13446. <div class="commentImg">
  13447. <img src="../../assets/icon/comment/comment.png" alt="" />
  13448. </div>
  13449. <div>{{ commentDetail.commentCount }}</div>
  13450. </div>
  13451. </div>
  13452. <div class="drawPBox" v-if="commentDetail.img">
  13453. <span>教师批注</span>
  13454. <img
  13455. :src="commentDetail.img"
  13456. alt=""
  13457. @click="previewImg(commentDetail.img)"
  13458. />
  13459. <span
  13460. class="deleteImg"
  13461. v-if="tType == 1 || tType == 4"
  13462. @click.stop="deletePicturePaint(commentDetail.wid)"
  13463. style="
  13464. font-size: 14px;
  13465. width: auto !important;
  13466. color: #b4b4b4;
  13467. top: unset;
  13468. bottom: 0;
  13469. border: none;
  13470. padding: 0;
  13471. height: auto !important;
  13472. margin: 0;
  13473. "
  13474. >删除</span
  13475. >
  13476. </div>
  13477. </div>
  13478. <div class="commentBox">
  13479. <div class="pl">评论:</div>
  13480. <div style="max-height: 200px; overflow: auto">
  13481. <div
  13482. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13483. style="padding: 10px 0 0 0"
  13484. >
  13485. <div
  13486. class="studentDetail"
  13487. style="padding-top: 10px"
  13488. v-for="(co, coIndex) in commentDetail.commentJson"
  13489. :key="coIndex"
  13490. >
  13491. <div class="tx" style="min-width: 50px">
  13492. <img src="../../assets/avatar.png" alt="" />
  13493. </div>
  13494. <div class="plPerson">
  13495. <div class="plName">
  13496. <div>{{ co.commentPeople }}</div>
  13497. <div style="margin-left: 5px">
  13498. {{ co.commentTime }}
  13499. </div>
  13500. <div
  13501. class="deleteComment"
  13502. v-if="userid == co.userid"
  13503. @click="deleteComment(co.wid)"
  13504. >
  13505. 删除
  13506. </div>
  13507. </div>
  13508. <div class="plContent">{{ co.commentText }}</div>
  13509. </div>
  13510. </div>
  13511. </div>
  13512. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13513. </div>
  13514. </div>
  13515. <div style="margin-top: 10px">
  13516. <div class="displayBox">
  13517. <div
  13518. style="
  13519. color: #556db4;
  13520. font-size: 14px;
  13521. font-weight: bold;
  13522. padding-bottom: 10px;
  13523. "
  13524. >
  13525. 评价
  13526. </div>
  13527. <div class="easy_comment" v-if="false">
  13528. <div
  13529. v-for="(p, pIndex) in PlTextList"
  13530. :key="pIndex"
  13531. @click="fastText(p, 1)"
  13532. >
  13533. {{ p }}
  13534. </div>
  13535. </div>
  13536. </div>
  13537. <div>
  13538. <textarea
  13539. rows="3"
  13540. class="pj"
  13541. style="padding: 10px 5px"
  13542. cols
  13543. v-model="commentText"
  13544. placeholder="请输入评论"
  13545. ></textarea>
  13546. </div>
  13547. </div>
  13548. <div slot="footer">
  13549. <el-button
  13550. @click="
  13551. (commentDialogVisible = false),
  13552. (commentIndexJson = {}),
  13553. videoDetail.sources && videoDetail.sources[0]
  13554. ? (videoDetail.sources[0].src = '')
  13555. : ''
  13556. "
  13557. >取 消</el-button
  13558. >
  13559. <el-button
  13560. type="primary"
  13561. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  13562. >确 定</el-button
  13563. >
  13564. </div>
  13565. </el-dialog>
  13566. <el-dialog
  13567. title="查看文档"
  13568. :visible.sync="fullDialogVisible"
  13569. :append-to-body="true"
  13570. width="100%"
  13571. :before-close="handleClose"
  13572. :show-close="false"
  13573. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13574. >
  13575. <div slot="title" class="header-title">
  13576. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13577. <div v-else style="color: #fff">查看文档</div>
  13578. <div
  13579. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  13580. style="
  13581. cursor: pointer;
  13582. position: absolute;
  13583. top: 20px;
  13584. right: 20px;
  13585. color: #fff;
  13586. "
  13587. >
  13588. 退出全屏
  13589. </div>
  13590. </div>
  13591. <div style="height: 100%;position: relative;">
  13592. <el-button
  13593. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13594. size="medium"
  13595. type="primary"
  13596. @click="
  13597. () => {
  13598. (fullDialogVisible = false),
  13599. changeSplitScreenBehavior({ code: 99 });
  13600. }
  13601. "
  13602. style="
  13603. cursor: pointer;
  13604. position: absolute;
  13605. top: 10px;
  13606. right: 20px;
  13607. color: #fff;
  13608. "
  13609. >
  13610. 退出全屏
  13611. </el-button>
  13612. <div
  13613. class="wheel"
  13614. v-if="fulltype == 1"
  13615. style="
  13616. box-shadow: 0 0 6px 1px #f2f2f2;
  13617. height:100%;
  13618. width: 100%;
  13619. background: #f1f1f1;
  13620. "
  13621. >
  13622. <div class="title" style="width: 100%; box-sizing: border-box">
  13623. 查看文档
  13624. </div>
  13625. <el-form class="textBox" style="height: 90%">
  13626. <el-form-item class="textTitle">
  13627. <div style="font-size: 22px">
  13628. {{ fullUrl.name }}
  13629. </div>
  13630. </el-form-item>
  13631. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13632. <div
  13633. v-html="fullUrl.url"
  13634. class="textContent"
  13635. style="height: auto"
  13636. ></div>
  13637. </el-form>
  13638. </div>
  13639. <div
  13640. class="wheel"
  13641. v-else-if="
  13642. (fulltype == 2 || fulltype == 4) &&
  13643. fullUrl.indexOf(
  13644. 'https://view.officeapps.live.com/op/view.aspx?src='
  13645. ) != -1
  13646. "
  13647. style="width: 100%;height:100%; margin: 0 auto"
  13648. >
  13649. <iframe
  13650. style="width: 100%; height: 100%; border: none"
  13651. :src="fullUrl"
  13652. ></iframe>
  13653. </div>
  13654. <iframe
  13655. style="width: 100%; height: 100%; border: none"
  13656. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13657. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13658. :src="fullUrl"
  13659. ></iframe>
  13660. <iframe
  13661. style="width: 100%; height: 100%; border: none"
  13662. security="restricted"
  13663. v-else-if="(fulltype == 2 || fulltype == 4)"
  13664. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13665. :src="fullUrl"
  13666. ></iframe>
  13667. <pdf
  13668. v-else-if="fulltype == 3"
  13669. :pdfUrl="fullUrl"
  13670. style="width: 100%; height: 100%; overflow: auto"
  13671. ></pdf>
  13672. <iframe
  13673. style="width: 100%; height: 100%; border: none"
  13674. security="restricted"
  13675. v-if="(fulltype == 16)"
  13676. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13677. :src="fullUrl"
  13678. ></iframe>
  13679. </div>
  13680. <!-- <div slot="footer">
  13681. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13682. </div> -->
  13683. </el-dialog>
  13684. <el-dialog
  13685. title="个人评价"
  13686. :visible.sync="studentEvalDialogVisible"
  13687. :append-to-body="true"
  13688. width="800px"
  13689. :before-close="handleClose"
  13690. class="dialog_diy"
  13691. >
  13692. <div class="evalCss">
  13693. <div class="nav">请选择星星进行评分</div>
  13694. <div class="middleBox" v-if="eScore.eStar">
  13695. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13696. <div class="nameAndrate">
  13697. <div>{{ e.value }}</div>
  13698. <el-rate
  13699. v-model="eScore.eStar[eIndex]"
  13700. :disabled="isStar"
  13701. ></el-rate>
  13702. </div>
  13703. <div v-if="e.detail">{{ e.detail }}</div>
  13704. </div>
  13705. <div class="easy_comment" v-if="false">
  13706. <div
  13707. v-for="(p, pIndex) in PlTextList"
  13708. :key="pIndex"
  13709. @click="fastText(p, 2)"
  13710. >
  13711. {{ p }}
  13712. </div>
  13713. </div>
  13714. <div class="bz">
  13715. <textarea
  13716. :disabled="isStar"
  13717. rows="4"
  13718. class="pj"
  13719. style="
  13720. padding: 10px 5px;
  13721. width: 70%;
  13722. background: #f7f6f9;
  13723. font-size: 14px;
  13724. text-indent: 10px;
  13725. "
  13726. cols
  13727. v-model="eScore.eBzText"
  13728. placeholder="请输入评价内容..."
  13729. ></textarea>
  13730. </div>
  13731. </div>
  13732. </div>
  13733. <div slot="footer">
  13734. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13735. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13736. >确 定</el-button
  13737. >
  13738. </div>
  13739. </el-dialog>
  13740. <el-dialog
  13741. title="个人评价"
  13742. :visible.sync="studentEvalDialogVisibleTeacher"
  13743. :append-to-body="true"
  13744. width="800px"
  13745. :before-close="handleClose"
  13746. class="dialog_diy"
  13747. >
  13748. <div class="w_name">
  13749. 学生姓名:<span>{{ sStudent.student }}</span>
  13750. </div>
  13751. <div class="evalCss">
  13752. <div class="nav">请选择星星进行评分</div>
  13753. <div class="middleBox" v-if="eScore.eStar">
  13754. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13755. <div class="nameAndrate">
  13756. <div>{{ e.value }}</div>
  13757. <el-rate
  13758. v-model="eScore.eStar[eIndex]"
  13759. :disabled="isStar"
  13760. ></el-rate>
  13761. </div>
  13762. <div v-if="e.detail">{{ e.detail }}</div>
  13763. </div>
  13764. <div class="easy_comment" v-if="false">
  13765. <div
  13766. v-for="(p, pIndex) in PlTextList"
  13767. :key="pIndex"
  13768. @click="fastText(p, 2)"
  13769. >
  13770. {{ p }}
  13771. </div>
  13772. </div>
  13773. <div class="bz">
  13774. <textarea
  13775. :disabled="isStar"
  13776. rows="4"
  13777. class="pj"
  13778. style="
  13779. padding: 10px 5px;
  13780. width: 70%;
  13781. background: #f7f6f9;
  13782. font-size: 14px;
  13783. text-indent: 10px;
  13784. "
  13785. cols
  13786. v-model="eScore.eBzText"
  13787. placeholder="请输入评价内容..."
  13788. ></textarea>
  13789. </div>
  13790. </div>
  13791. </div>
  13792. <div slot="footer">
  13793. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13794. >取 消</el-button
  13795. >
  13796. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13797. >确 定</el-button
  13798. >
  13799. </div>
  13800. </el-dialog>
  13801. <el-dialog
  13802. title="选择匹配"
  13803. :visible.sync="dialogVisibleSelect"
  13804. :append-to-body="true"
  13805. width="90%"
  13806. :before-close="handleClose"
  13807. class="dialog_diy dialog_diy3"
  13808. >
  13809. <div v-if="selectJson">
  13810. <div class="select_box2">
  13811. <div class="select_box2_title">
  13812. <div>选择匹配</div>
  13813. <div>请选择对应的答案进行答题!</div>
  13814. </div>
  13815. <div class="select_box2_box">
  13816. <div class="select_box2_img">
  13817. <img
  13818. :src="selectJson.url"
  13819. @click="previewImg(selectJson.url)"
  13820. alt=""
  13821. />
  13822. </div>
  13823. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13824. <div style="padding-top: 15px">
  13825. <div class="select_answer_title" v-if="isSelect">
  13826. {{ selectAnswer.stu }}
  13827. </div>
  13828. <div class="select_answer_title" v-else>
  13829. 根据题目选择对应答案
  13830. </div>
  13831. <div
  13832. class="select_box2_answer_box"
  13833. v-for="(item2, checkIndex) in selectJson.select"
  13834. :key="checkIndex"
  13835. >
  13836. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13837. <el-select
  13838. :disabled="isSelect"
  13839. v-model="selectAnswer.answer[checkIndex]"
  13840. placeholder="请选择正确答案"
  13841. >
  13842. <el-option
  13843. v-for="(e, eIndex) in selectJson.select"
  13844. :key="eIndex"
  13845. :label="e"
  13846. :value="eIndex"
  13847. >
  13848. </el-option>
  13849. </el-select>
  13850. </div>
  13851. </div>
  13852. <div
  13853. class="rightAnswerCss"
  13854. v-if="isSelect && (tType == 1 || tType == 4)"
  13855. >
  13856. <div
  13857. v-for="(a, aIndex) in selectJson.answer"
  13858. :key="aIndex"
  13859. class="rightAnswer"
  13860. >
  13861. <div
  13862. v-if="selectAnswer.answer[aIndex] === a"
  13863. style="color: #767de1"
  13864. >
  13865. 回答正确
  13866. </div>
  13867. <div v-else>回答错误</div>
  13868. <div
  13869. style="margin-left: 10px"
  13870. v-if="selectAnswer.answer[aIndex] !== a"
  13871. >
  13872. 正确答案:
  13873. </div>
  13874. <div
  13875. :class="
  13876. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13877. "
  13878. >
  13879. {{ selectJson.select[a] }}
  13880. </div>
  13881. </div>
  13882. </div>
  13883. </div>
  13884. <div class="upAnswerCss">
  13885. <el-button
  13886. type="primary"
  13887. @click="addSelectAnswer"
  13888. v-if="!isSelect"
  13889. >提交答案</el-button
  13890. >
  13891. </div>
  13892. </div>
  13893. </div>
  13894. </div>
  13895. </el-dialog>
  13896. <el-dialog
  13897. title="选择匹配"
  13898. :visible.sync="dialogVisibleSelectTeacher"
  13899. :append-to-body="true"
  13900. width="90%"
  13901. :before-close="handleClose"
  13902. class="dialog_diy dialog_diy3"
  13903. >
  13904. <div v-if="selectJson">
  13905. <div class="w_name">
  13906. 学生姓名:<span>{{ sStudent.student }}</span>
  13907. </div>
  13908. <div class="select_box2">
  13909. <div class="select_box2_title">
  13910. <div>选择匹配</div>
  13911. <div>请选择对应的答案进行答题!</div>
  13912. </div>
  13913. <div class="select_box2_box">
  13914. <div class="select_box2_img">
  13915. <img
  13916. :src="selectJson.url"
  13917. @click="previewImg(selectJson.url)"
  13918. alt=""
  13919. />
  13920. </div>
  13921. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13922. <div style="padding-top: 15px">
  13923. <div class="select_answer_title" v-if="isSelect">
  13924. {{ selectAnswer.stu }}
  13925. </div>
  13926. <div class="select_answer_title" v-else>
  13927. 根据题目选择对应答案
  13928. </div>
  13929. <div
  13930. class="select_box2_answer_box"
  13931. v-for="(item2, checkIndex) in selectJson.select"
  13932. :key="checkIndex"
  13933. >
  13934. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13935. <el-select
  13936. :disabled="isSelect"
  13937. v-model="selectAnswer.answer[checkIndex]"
  13938. placeholder="请选择正确答案"
  13939. >
  13940. <el-option
  13941. v-for="(e, eIndex) in selectJson.select"
  13942. :key="eIndex"
  13943. :label="e"
  13944. :value="eIndex"
  13945. >
  13946. </el-option>
  13947. </el-select>
  13948. </div>
  13949. </div>
  13950. <div
  13951. class="rightAnswerCss"
  13952. v-if="isSelect && (tType == 1 || tType == 4)"
  13953. >
  13954. <div
  13955. v-for="(a, aIndex) in selectJson.answer"
  13956. :key="aIndex"
  13957. class="rightAnswer"
  13958. >
  13959. <div
  13960. v-if="selectAnswer.answer[aIndex] === a"
  13961. style="color: #767de1"
  13962. >
  13963. 回答正确
  13964. </div>
  13965. <div v-else>回答错误</div>
  13966. <div
  13967. style="margin-left: 10px"
  13968. v-if="selectAnswer.answer[aIndex] !== a"
  13969. >
  13970. 正确答案:
  13971. </div>
  13972. <div
  13973. :class="
  13974. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13975. "
  13976. >
  13977. {{ selectJson.select[a] }}
  13978. </div>
  13979. </div>
  13980. </div>
  13981. </div>
  13982. <div class="upAnswerCss">
  13983. <el-button
  13984. type="primary"
  13985. @click="addSelectAnswerTeacher"
  13986. v-if="!isSelect"
  13987. >提交答案</el-button
  13988. >
  13989. </div>
  13990. </div>
  13991. </div>
  13992. </div>
  13993. </el-dialog>
  13994. <el-dialog
  13995. title="教师评分"
  13996. :visible.sync="dialogVisibleScore"
  13997. :append-to-body="true"
  13998. width="800px"
  13999. :before-close="handleClose"
  14000. class="dialog_diy"
  14001. >
  14002. <div>
  14003. <div class="studentDetail">
  14004. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14005. <div class="nameAndTime">
  14006. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14007. <div>{{ commentDetail.time }}</div>
  14008. </div>
  14009. </div>
  14010. <div
  14011. class="worksAnswer"
  14012. v-if="commentDetail.works && commentDetail.type == 2"
  14013. >
  14014. {{ JSON.parse(commentDetail.works)[0].answer }}
  14015. </div>
  14016. <div
  14017. class="worksAnswer"
  14018. v-if="commentDetail.works && commentDetail.type == 1"
  14019. >
  14020. <pdf
  14021. v-if="showPDF"
  14022. :pdfUrl="pptImgUrl"
  14023. style="width: 100%; height: 520px; overflow: auto"
  14024. :class="{ fullStyle: full }"
  14025. ></pdf>
  14026. <iframe
  14027. v-else
  14028. :src="pptImgUrl"
  14029. frameborder="0"
  14030. width="100%"
  14031. height="600"
  14032. :class="{ fullStyle: full }"
  14033. ></iframe>
  14034. </div>
  14035. <div
  14036. class="worksAnswer"
  14037. v-if="commentDetail.works && commentDetail.type == 0"
  14038. >
  14039. <img
  14040. :src="commentDetail.works"
  14041. alt=""
  14042. @click="previewImg(commentDetail.works)"
  14043. />
  14044. </div>
  14045. <div
  14046. class="worksAnswer"
  14047. v-if="commentDetail.works && commentDetail.type == 3"
  14048. >
  14049. <video-player
  14050. class="video-player vjs-custom-skin"
  14051. :playsinline="true"
  14052. :options="videoDetail"
  14053. @play="onPlayerPlay($event)"
  14054. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14055. ></video-player>
  14056. </div>
  14057. <div
  14058. class="worksAnswer codeFileBox"
  14059. v-if="commentDetail.works && commentDetail.type == 12"
  14060. @click="downloadFile(commentDetail.works)"
  14061. >
  14062. <img src="../../assets/icon/codeFile.png" />
  14063. <div>点击下载文件</div>
  14064. </div>
  14065. <div
  14066. class="worksAnswer codeFileBox"
  14067. v-if="commentDetail.works && commentDetail.type == 15"
  14068. @click="
  14069. openCocoPi(
  14070. 57,
  14071. commentIndexJson.toolIndex,
  14072. commentDetail.userid,
  14073. commentDetail.sName
  14074. )
  14075. "
  14076. >
  14077. <img src="../../assets/icon/codeFile.png" />
  14078. <div>点击打开CocoPi</div>
  14079. </div>
  14080. <div
  14081. class="worksAnswer"
  14082. v-if="commentDetail.works && commentDetail.type == 13"
  14083. >
  14084. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14085. </div>
  14086. <div class="scoreBox">
  14087. <span class="t">请输入分数</span>
  14088. <el-input-number
  14089. :disabled="courseDetail.userid != userid"
  14090. v-model="wScore"
  14091. :controls="false"
  14092. :min="0"
  14093. :max="100"
  14094. ></el-input-number>
  14095. </div>
  14096. <div class="scoreDetailBox">
  14097. <span class="t">评分评论</span>
  14098. <el-input
  14099. type="textarea"
  14100. :rows="5"
  14101. :disabled="courseDetail.userid != userid"
  14102. resize="none"
  14103. v-model="scoreDetail"
  14104. placeholder="请输入对学生的评价"
  14105. >
  14106. </el-input>
  14107. </div>
  14108. </div>
  14109. <span slot="footer" class="dialog-footer">
  14110. <el-button
  14111. @click="
  14112. (dialogVisibleScore = false),
  14113. (commentIndexJson = {}),
  14114. videoDetail.sources && videoDetail.sources[0]
  14115. ? (videoDetail.sources[0].src = '')
  14116. : ''
  14117. "
  14118. >取 消</el-button
  14119. >
  14120. <el-button
  14121. type="primary"
  14122. v-if="courseDetail.userid == userid"
  14123. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  14124. >确 定
  14125. </el-button>
  14126. </span>
  14127. </el-dialog>
  14128. <el-dialog
  14129. title="排序"
  14130. :visible.sync="dialogVisibleSentence"
  14131. :append-to-body="true"
  14132. width="1000px"
  14133. :before-close="handleClose"
  14134. class="dialog_diy dialog_diy3"
  14135. >
  14136. <div>
  14137. <div class="sentenBox">
  14138. <div
  14139. v-for="(st, stIndex) in sentenceList"
  14140. :key="stIndex"
  14141. style="padding-bottom: 20px"
  14142. >
  14143. <div
  14144. style="padding: 15px 0 10px 20px"
  14145. class="sentenceTitle"
  14146. :index="stIndex + 1"
  14147. >
  14148. 题目{{ stIndex + 1 }}:请选择正确顺序
  14149. </div>
  14150. <div class="cardList" v-if="st.chooseSenList">
  14151. <div class="cardBox">
  14152. <div
  14153. v-for="(r, rIndex) in st.chooseSenList"
  14154. :key="rIndex"
  14155. @click="returnCard(r, stIndex, rIndex)"
  14156. >
  14157. <el-tooltip
  14158. class="item"
  14159. effect="light"
  14160. :content="r"
  14161. placement="top"
  14162. v-if="r != '' && r != undefined"
  14163. >
  14164. <div
  14165. :class="{
  14166. isCard: r,
  14167. isChooseCard: r == '' || r == undefined,
  14168. }"
  14169. >
  14170. <div>{{ r }}</div>
  14171. </div>
  14172. </el-tooltip>
  14173. <div
  14174. :class="{
  14175. isCard: r,
  14176. isChooseCard: r == '' || r == undefined,
  14177. }"
  14178. v-else
  14179. >
  14180. <div>{{ r }}</div>
  14181. </div>
  14182. </div>
  14183. </div>
  14184. </div>
  14185. <div class="cardList" v-if="st.addChangeSen">
  14186. <div class="cardBox">
  14187. <div
  14188. v-for="(s, sIndex) in st.addChangeSen"
  14189. :key="sIndex"
  14190. @click="setRightAnswer(s, stIndex, sIndex)"
  14191. >
  14192. <el-tooltip
  14193. class="item"
  14194. effect="light"
  14195. :content="s"
  14196. placement="top"
  14197. v-if="s != '' && s != undefined"
  14198. >
  14199. <div
  14200. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14201. >
  14202. <div>{{ s }}</div>
  14203. </div>
  14204. </el-tooltip>
  14205. <div
  14206. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14207. v-else
  14208. >
  14209. <div>{{ s }}</div>
  14210. </div>
  14211. </div>
  14212. </div>
  14213. </div>
  14214. </div>
  14215. </div>
  14216. </div>
  14217. <span slot="footer" class="dialog-footer">
  14218. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14219. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14220. </span>
  14221. </el-dialog>
  14222. <el-dialog
  14223. title="排序"
  14224. :visible.sync="dialogVisibleSentenceTeacher"
  14225. :append-to-body="true"
  14226. width="1000px"
  14227. :before-close="handleClose"
  14228. class="dialog_diy dialog_diy3"
  14229. >
  14230. <div>
  14231. <div class="w_name">
  14232. 学生姓名:<span>{{ sStudent.student }}</span>
  14233. </div>
  14234. <div class="sentenBox">
  14235. <div
  14236. v-for="(st, stIndex) in sentenceList"
  14237. :key="stIndex"
  14238. style="padding-bottom: 20px"
  14239. >
  14240. <div
  14241. style="padding: 15px 0 10px 20px"
  14242. class="sentenceTitle"
  14243. :index="stIndex + 1"
  14244. >
  14245. 题目{{ stIndex + 1 }}:请选择正确顺序
  14246. </div>
  14247. <div class="cardList" v-if="st.chooseSenList">
  14248. <div class="cardBox">
  14249. <div
  14250. v-for="(r, rIndex) in st.chooseSenList"
  14251. :key="rIndex"
  14252. @click="returnCard(r, stIndex, rIndex)"
  14253. >
  14254. <el-tooltip
  14255. class="item"
  14256. effect="light"
  14257. :content="r"
  14258. placement="top"
  14259. v-if="r != '' && r != undefined"
  14260. >
  14261. <div
  14262. :class="{
  14263. isCard: r,
  14264. isChooseCard: r == '' || r == undefined,
  14265. }"
  14266. >
  14267. <div>{{ r }}</div>
  14268. </div>
  14269. </el-tooltip>
  14270. <div
  14271. :class="{
  14272. isCard: r,
  14273. isChooseCard: r == '' || r == undefined,
  14274. }"
  14275. v-else
  14276. >
  14277. <div>{{ r }}</div>
  14278. </div>
  14279. </div>
  14280. </div>
  14281. </div>
  14282. <div class="cardList" v-if="st.addChangeSen">
  14283. <div class="cardBox">
  14284. <div
  14285. v-for="(s, sIndex) in st.addChangeSen"
  14286. :key="sIndex"
  14287. @click="setRightAnswer(s, stIndex, sIndex)"
  14288. >
  14289. <el-tooltip
  14290. class="item"
  14291. effect="light"
  14292. :content="s"
  14293. placement="top"
  14294. v-if="s != '' && s != undefined"
  14295. >
  14296. <div
  14297. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14298. >
  14299. <div>{{ s }}</div>
  14300. </div>
  14301. </el-tooltip>
  14302. <div
  14303. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14304. v-else
  14305. >
  14306. <div>{{ s }}</div>
  14307. </div>
  14308. </div>
  14309. </div>
  14310. </div>
  14311. </div>
  14312. </div>
  14313. </div>
  14314. <span slot="footer" class="dialog-footer">
  14315. <el-button @click="dialogVisibleSentenceTeacher = false"
  14316. >取 消</el-button
  14317. >
  14318. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14319. </span>
  14320. </el-dialog>
  14321. <el-dialog
  14322. title="排序"
  14323. :visible.sync="dialogVisibleSentence1"
  14324. :append-to-body="true"
  14325. width="1000px"
  14326. :before-close="handleClose"
  14327. class="dialog_diy dialog_diy3"
  14328. >
  14329. <div>
  14330. <div class="sentenBox">
  14331. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14332. {{ sentenceList1.stuName }}的作业
  14333. </div>
  14334. <div
  14335. v-for="(st, stIndex) in sentenceList1"
  14336. :key="stIndex"
  14337. style="padding-bottom: 20px"
  14338. >
  14339. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14340. 第{{ stIndex + 1 }}题
  14341. </div>
  14342. <div class="isWrong">
  14343. <div class="cardList1" v-if="st.chooseSenList">
  14344. <div class="cardBox">
  14345. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14346. <el-tooltip
  14347. class="item"
  14348. effect="light"
  14349. :content="s"
  14350. placement="top"
  14351. >
  14352. <div class="isCard">
  14353. <div>{{ s }}</div>
  14354. </div>
  14355. </el-tooltip>
  14356. </div>
  14357. </div>
  14358. <div class="cardAnswerBox">
  14359. 组成句子:{{ st.chooseSenList.join(" ") }}
  14360. </div>
  14361. </div>
  14362. <div v-if="tType == 2" class="isTj">
  14363. <div class="isTjImg">
  14364. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14365. </div>
  14366. <div>已提交</div>
  14367. </div>
  14368. <div
  14369. class="answerRight isTj"
  14370. v-if="
  14371. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14372. (tType == 1 || tType == 4)
  14373. "
  14374. >
  14375. <div class="isTjImg">
  14376. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14377. </div>
  14378. <div>回答正确</div>
  14379. </div>
  14380. <div
  14381. class="answerRight isTj"
  14382. v-if="
  14383. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14384. (tType == 1 || tType == 4)
  14385. "
  14386. >
  14387. <div class="isTjImg">
  14388. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14389. </div>
  14390. <div>回答错误</div>
  14391. </div>
  14392. </div>
  14393. <div
  14394. v-if="
  14395. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14396. (tType == 1 || tType == 4)
  14397. "
  14398. >
  14399. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14400. <div
  14401. class="cardList"
  14402. v-if="st.rightAnswer"
  14403. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14404. >
  14405. <div class="cardBox">
  14406. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14407. <el-tooltip
  14408. class="item"
  14409. effect="light"
  14410. :content="r"
  14411. placement="top"
  14412. >
  14413. <div class="isCard1">
  14414. <div>{{ r }}</div>
  14415. </div>
  14416. </el-tooltip>
  14417. </div>
  14418. </div>
  14419. <div class="cardAnswerBox">
  14420. 组成句子:{{ st.rightAnswer.join(" ") }}
  14421. </div>
  14422. </div>
  14423. </div>
  14424. </div>
  14425. </div>
  14426. </div>
  14427. <span slot="footer" class="dialog-footer">
  14428. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14429. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14430. >确 定</el-button
  14431. >
  14432. </span>
  14433. </el-dialog>
  14434. <el-dialog
  14435. title="教师提交作业"
  14436. :visible.sync="dialogVisibleWorks"
  14437. :append-to-body="true"
  14438. width="500px"
  14439. :before-close="handleClose"
  14440. class="dialog_change"
  14441. >
  14442. <div class="marginT">
  14443. <div class="w_name">
  14444. 学生姓名:<span>{{ sStudent.student }}</span>
  14445. </div>
  14446. <div>上传文件</div>
  14447. <div style="display: flex; gap: 10px">
  14448. <div
  14449. class="chapter_add"
  14450. @click="addImg($event)"
  14451. v-if="studyJuri[0].cover.length == 0"
  14452. >
  14453. <div class="up_photo">
  14454. <img src="../../assets/icon/uploadImg.png" alt />
  14455. </div>
  14456. <!-- <input
  14457. type="file"
  14458. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14459. style="display: none"
  14460. @change="beforeUpload1($event, 1)"
  14461. /> -->
  14462. <input
  14463. type="file"
  14464. accept="*"
  14465. style="display: none"
  14466. @change="beforeUpload1($event, 1)"
  14467. />
  14468. <!-- <input
  14469. type="file"
  14470. accept="image/*"
  14471. capture="camera"
  14472. style="display: none"
  14473. @change="beforeUpload1($event, 1)"
  14474. /> -->
  14475. </div>
  14476. <div
  14477. class="chapter_add"
  14478. @click="addImg($event)"
  14479. v-if="studyJuri[0].cover.length == 0"
  14480. >
  14481. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14482. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14483. </div>
  14484. <input
  14485. type="file"
  14486. accept="image/*"
  14487. capture="camera"
  14488. style="display: none"
  14489. @change="beforeUpload1($event, 1)"
  14490. />
  14491. </div>
  14492. </div>
  14493. <!-- capture="camera" -->
  14494. <div
  14495. class="chapter_add"
  14496. style="
  14497. display: flex;
  14498. width: 100%;
  14499. flex-direction: row;
  14500. flex-wrap: wrap;
  14501. justify-content: flex-start;
  14502. padding: 15px 0;
  14503. "
  14504. v-if="studyJuri[0].cover.length > 0"
  14505. >
  14506. <div class="upCover">
  14507. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14508. <img :src="word" alt v-else-if="fileType == 1" />
  14509. <img :src="video" alt v-else-if="fileType == 2" />
  14510. <img :src="word2" alt v-else-if="fileType == 3" />
  14511. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14512. <div class="deleteWord" @click="clean(1)">
  14513. <img src="../../assets/icon/deleteWorks.png" alt />
  14514. </div>
  14515. </div>
  14516. </div>
  14517. </div>
  14518. <div
  14519. class="upload_send"
  14520. @click="addCourseWorksTeacher(taskCount)"
  14521. v-if="!proVisible"
  14522. >
  14523. 提交
  14524. </div>
  14525. </el-dialog>
  14526. <ImgDraw
  14527. :drawShow="drawShow"
  14528. @closeDraw="closeDraw"
  14529. @addImgDraw="addImgDraw"
  14530. :bg="bg"
  14531. ></ImgDraw>
  14532. <el-dialog
  14533. title="表格"
  14534. :visible.sync="dialogVisibleTable"
  14535. :append-to-body="true"
  14536. width="95%"
  14537. :before-close="handleClose"
  14538. class="dialog_diy"
  14539. >
  14540. <el-form>
  14541. <div
  14542. style="
  14543. display: flex;
  14544. align-items: center;
  14545. justify-content: space-between;
  14546. "
  14547. >
  14548. <span>表格内容</span>
  14549. <el-button type="primary" size="small" @click="returnTableText"
  14550. >还原模板</el-button
  14551. >
  14552. </div>
  14553. <Table
  14554. v-model="tableJson.text"
  14555. @change="change"
  14556. v-if="dialogVisibleTable"
  14557. ></Table>
  14558. </el-form>
  14559. <span slot="footer" class="dialog-footer">
  14560. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14561. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14562. </span>
  14563. </el-dialog>
  14564. <el-dialog
  14565. title="表格"
  14566. :visible.sync="dialogVisibleTableTeacher"
  14567. :append-to-body="true"
  14568. width="95%"
  14569. :before-close="handleClose"
  14570. class="dialog_diy"
  14571. >
  14572. <el-form>
  14573. <div class="w_name">
  14574. 学生姓名:<span>{{ sStudent.student }}</span>
  14575. </div>
  14576. <div>表格内容</div>
  14577. <Table
  14578. v-model="tableJson.text"
  14579. @change="change"
  14580. v-if="dialogVisibleTableTeacher"
  14581. ></Table>
  14582. </el-form>
  14583. <span slot="footer" class="dialog-footer">
  14584. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14585. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14586. </span>
  14587. </el-dialog>
  14588. <el-dialog
  14589. title="文档"
  14590. :visible.sync="dialogVisibleWord"
  14591. :append-to-body="true"
  14592. width="95%"
  14593. :before-close="handleClose"
  14594. class="dialog_diy"
  14595. >
  14596. <el-form>
  14597. <div
  14598. style="
  14599. display: flex;
  14600. align-items: center;
  14601. justify-content: space-between;
  14602. "
  14603. >
  14604. <span>文档内容</span>
  14605. <el-button type="primary" size="small" @click="returnWordText"
  14606. >还原模板</el-button
  14607. >
  14608. </div>
  14609. <editor-bar
  14610. v-model="wordJson.text"
  14611. v-if="dialogVisibleWord"
  14612. ></editor-bar>
  14613. </el-form>
  14614. <span slot="footer" class="dialog-footer">
  14615. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14616. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14617. </span>
  14618. </el-dialog>
  14619. <el-dialog
  14620. title="文档"
  14621. :visible.sync="dialogVisibleWordTeacher"
  14622. :append-to-body="true"
  14623. width="95%"
  14624. :before-close="handleClose"
  14625. class="dialog_diy"
  14626. >
  14627. <el-form>
  14628. <div class="w_name">
  14629. 学生姓名:<span>{{ sStudent.student }}</span>
  14630. </div>
  14631. <div>文档内容</div>
  14632. <editor-bar
  14633. v-model="wordJson.text"
  14634. v-if="dialogVisibleWordTeacher"
  14635. ></editor-bar>
  14636. </el-form>
  14637. <span slot="footer" class="dialog-footer">
  14638. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14639. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14640. </span>
  14641. </el-dialog>
  14642. <el-dialog
  14643. title="表格"
  14644. :visible.sync="dialogVisibleTable2"
  14645. :append-to-body="true"
  14646. width="95%"
  14647. :before-close="handleClose"
  14648. class="dialog_diy"
  14649. >
  14650. <el-form>
  14651. <div class="cont" v-html="tableJson.text"></div>
  14652. </el-form>
  14653. <span slot="footer" class="dialog-footer">
  14654. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14655. </span>
  14656. </el-dialog>
  14657. <el-dialog
  14658. title="文档"
  14659. :visible.sync="dialogVisibleTable3"
  14660. :append-to-body="true"
  14661. width="95%"
  14662. :before-close="handleClose"
  14663. class="dialog_diy"
  14664. >
  14665. <el-form>
  14666. <div class="cont" v-html="tableJson.text"></div>
  14667. </el-form>
  14668. <span slot="footer" class="dialog-footer">
  14669. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14670. </span>
  14671. </el-dialog>
  14672. <el-dialog
  14673. title="分组设置"
  14674. :visible.sync="dialogVisibleGroup"
  14675. :append-to-body="true"
  14676. width="95%"
  14677. :before-close="handleClose"
  14678. class="dialog_diy"
  14679. >
  14680. <div v-if="dialogVisibleGroup">
  14681. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14682. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14683. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14684. </div>
  14685. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14686. @click="lockChair">
  14687. 锁定位置
  14688. </div>
  14689. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14690. 解锁位置
  14691. </div> -->
  14692. <div class="group_switch">
  14693. <span>开放选座</span>
  14694. <el-switch
  14695. v-model="islock"
  14696. active-text=""
  14697. class="switchCss"
  14698. @change="lockChair"
  14699. ></el-switch>
  14700. </div>
  14701. <div
  14702. type="primary"
  14703. @click="updateGroup"
  14704. class="returnBtn"
  14705. style="background-color: #225bc7"
  14706. >
  14707. 分组设置
  14708. </div>
  14709. </div>
  14710. <div>
  14711. <div
  14712. class="g_d_box"
  14713. v-if="groupJson.group && groupStudent[toolindex]"
  14714. >
  14715. <div
  14716. class="g_d_group"
  14717. v-for="(g, gindex) in groupJson.group"
  14718. :key="gindex"
  14719. >
  14720. <div class="g_d_group_chair">
  14721. <div v-if="groupJson.number > 1">
  14722. <span
  14723. :class="{
  14724. isChair:
  14725. groupStudent[toolindex][gindex] &&
  14726. groupStudent[toolindex][gindex][0],
  14727. updateChair:
  14728. courseDetail.userid == userid &&
  14729. groupStudent[toolindex][gindex] &&
  14730. groupStudent[toolindex][gindex][0] &&
  14731. groupJson.islock == 2,
  14732. }"
  14733. ><span
  14734. class="updateChairBtn"
  14735. @click="
  14736. updateGroupChair(
  14737. groupStudent[toolindex][gindex] &&
  14738. groupStudent[toolindex][gindex][0]
  14739. )
  14740. "
  14741. >修改</span
  14742. ></span
  14743. ><span>{{
  14744. groupStudent[toolindex][gindex] &&
  14745. groupStudent[toolindex][gindex][0]
  14746. ? groupStudent[toolindex][gindex] &&
  14747. groupStudent[toolindex][gindex][0].name
  14748. : "空位置"
  14749. }}</span>
  14750. </div>
  14751. <div v-if="groupJson.number > 4">
  14752. <span
  14753. :class="{
  14754. isChair:
  14755. groupStudent[toolindex][gindex] &&
  14756. groupStudent[toolindex][gindex][4],
  14757. updateChair:
  14758. courseDetail.userid == userid &&
  14759. groupStudent[toolindex][gindex] &&
  14760. groupStudent[toolindex][gindex][4] &&
  14761. groupJson.islock == 2,
  14762. }"
  14763. ><span
  14764. class="updateChairBtn"
  14765. @click="
  14766. updateGroupChair(
  14767. groupStudent[toolindex][gindex] &&
  14768. groupStudent[toolindex][gindex][4]
  14769. )
  14770. "
  14771. >修改</span
  14772. ></span
  14773. ><span>{{
  14774. groupStudent[toolindex][gindex] &&
  14775. groupStudent[toolindex][gindex][4]
  14776. ? groupStudent[toolindex][gindex] &&
  14777. groupStudent[toolindex][gindex][4].name
  14778. : "空位置"
  14779. }}</span>
  14780. </div>
  14781. <div v-if="groupJson.number > 8">
  14782. <span
  14783. :class="{
  14784. isChair:
  14785. groupStudent[toolindex][gindex] &&
  14786. groupStudent[toolindex][gindex][8],
  14787. updateChair:
  14788. courseDetail.userid == userid &&
  14789. groupStudent[toolindex][gindex] &&
  14790. groupStudent[toolindex][gindex][8] &&
  14791. groupJson.islock == 2,
  14792. }"
  14793. ><span
  14794. class="updateChairBtn"
  14795. @click="
  14796. updateGroupChair(
  14797. groupStudent[toolindex][gindex] &&
  14798. groupStudent[toolindex][gindex][8]
  14799. )
  14800. "
  14801. >修改</span
  14802. ></span
  14803. ><span>{{
  14804. groupStudent[toolindex][gindex] &&
  14805. groupStudent[toolindex][gindex][8]
  14806. ? groupStudent[toolindex][gindex] &&
  14807. groupStudent[toolindex][gindex][8].name
  14808. : "空位置"
  14809. }}</span>
  14810. </div>
  14811. </div>
  14812. <div class="g_d_group_tableBox">
  14813. <div class="g_d_group_chair2">
  14814. <div v-if="groupJson.number > 2">
  14815. <span
  14816. :class="{
  14817. isChair:
  14818. groupStudent[toolindex][gindex] &&
  14819. groupStudent[toolindex][gindex][2],
  14820. updateChair:
  14821. courseDetail.userid == userid &&
  14822. groupStudent[toolindex][gindex] &&
  14823. groupStudent[toolindex][gindex][2] &&
  14824. groupJson.islock == 2,
  14825. }"
  14826. ><span
  14827. class="updateChairBtn"
  14828. @click="
  14829. updateGroupChair(
  14830. groupStudent[toolindex][gindex] &&
  14831. groupStudent[toolindex][gindex][2]
  14832. )
  14833. "
  14834. >修改</span
  14835. ></span
  14836. ><span>{{
  14837. groupStudent[toolindex][gindex] &&
  14838. groupStudent[toolindex][gindex][2]
  14839. ? groupStudent[toolindex][gindex] &&
  14840. groupStudent[toolindex][gindex][2].name
  14841. : "空位置"
  14842. }}</span>
  14843. </div>
  14844. <div v-if="groupJson.number > 6">
  14845. <span
  14846. :class="{
  14847. isChair:
  14848. groupStudent[toolindex][gindex] &&
  14849. groupStudent[toolindex][gindex][6],
  14850. updateChair:
  14851. courseDetail.userid == userid &&
  14852. groupStudent[toolindex][gindex] &&
  14853. groupStudent[toolindex][gindex][6] &&
  14854. groupJson.islock == 2,
  14855. }"
  14856. ><span
  14857. class="updateChairBtn"
  14858. @click="
  14859. updateGroupChair(
  14860. groupStudent[toolindex][gindex] &&
  14861. groupStudent[toolindex][gindex][6]
  14862. )
  14863. "
  14864. >修改</span
  14865. ></span
  14866. ><span>{{
  14867. groupStudent[toolindex][gindex] &&
  14868. groupStudent[toolindex][gindex][6]
  14869. ? groupStudent[toolindex][gindex] &&
  14870. groupStudent[toolindex][gindex][6].name
  14871. : "空位置"
  14872. }}</span>
  14873. </div>
  14874. </div>
  14875. <div class="g_d_group_table">
  14876. <div>
  14877. {{ g.name }}
  14878. </div>
  14879. <div>
  14880. <div
  14881. v-if="
  14882. courseDetail.userid == userid && groupJson.islock == 2
  14883. "
  14884. @click="deleteGroupChair(gindex)"
  14885. >
  14886. 移除组员
  14887. </div>
  14888. <div
  14889. @click="selectGroup(gindex)"
  14890. v-else-if="
  14891. groupStudentUid[toolindex] &&
  14892. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14893. "
  14894. >
  14895. 加入分组
  14896. </div>
  14897. <div
  14898. @click="
  14899. exitGroup(
  14900. groupStudent[toolindex][gindex] &&
  14901. groupStudent[toolindex][gindex][
  14902. groupStudentUid[toolindex][gindex].indexOf(userid)
  14903. ].id
  14904. )
  14905. "
  14906. v-else-if="
  14907. groupStudentUid[toolindex] &&
  14908. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14909. "
  14910. >
  14911. 退出分组
  14912. </div>
  14913. </div>
  14914. </div>
  14915. <div class="g_d_group_chair2">
  14916. <div v-if="groupJson.number > 3">
  14917. <span
  14918. :class="{
  14919. isChair:
  14920. groupStudent[toolindex][gindex] &&
  14921. groupStudent[toolindex][gindex][3],
  14922. updateChair:
  14923. courseDetail.userid == userid &&
  14924. groupStudent[toolindex][gindex] &&
  14925. groupStudent[toolindex][gindex][3] &&
  14926. groupJson.islock == 2,
  14927. }"
  14928. ><span
  14929. class="updateChairBtn"
  14930. @click="
  14931. updateGroupChair(
  14932. groupStudent[toolindex][gindex] &&
  14933. groupStudent[toolindex][gindex][3]
  14934. )
  14935. "
  14936. >修改</span
  14937. ></span
  14938. ><span>{{
  14939. groupStudent[toolindex][gindex] &&
  14940. groupStudent[toolindex][gindex][3]
  14941. ? groupStudent[toolindex][gindex] &&
  14942. groupStudent[toolindex][gindex][3].name
  14943. : "空位置"
  14944. }}</span>
  14945. </div>
  14946. <div v-if="groupJson.number > 7">
  14947. <span
  14948. :class="{
  14949. isChair:
  14950. groupStudent[toolindex][gindex] &&
  14951. groupStudent[toolindex][gindex][7],
  14952. updateChair:
  14953. courseDetail.userid == userid &&
  14954. groupStudent[toolindex][gindex] &&
  14955. groupStudent[toolindex][gindex][7] &&
  14956. groupJson.islock == 2,
  14957. }"
  14958. ><span
  14959. class="updateChairBtn"
  14960. @click="
  14961. updateGroupChair(
  14962. groupStudent[toolindex][gindex] &&
  14963. groupStudent[toolindex][gindex][7]
  14964. )
  14965. "
  14966. >修改</span
  14967. ></span
  14968. ><span>{{
  14969. groupStudent[toolindex][gindex] &&
  14970. groupStudent[toolindex][gindex][7]
  14971. ? groupStudent[toolindex][gindex] &&
  14972. groupStudent[toolindex][gindex][7].name
  14973. : "空位置"
  14974. }}</span>
  14975. </div>
  14976. </div>
  14977. </div>
  14978. <div class="g_d_group_chair">
  14979. <div v-if="groupJson.number > 1">
  14980. <span
  14981. :class="{
  14982. isChair:
  14983. groupStudent[toolindex][gindex] &&
  14984. groupStudent[toolindex][gindex][1],
  14985. updateChair:
  14986. courseDetail.userid == userid &&
  14987. groupStudent[toolindex][gindex] &&
  14988. groupStudent[toolindex][gindex][1] &&
  14989. groupJson.islock == 2,
  14990. }"
  14991. ><span
  14992. class="updateChairBtn"
  14993. @click="
  14994. updateGroupChair(
  14995. groupStudent[toolindex][gindex] &&
  14996. groupStudent[toolindex][gindex][1]
  14997. )
  14998. "
  14999. >修改</span
  15000. ></span
  15001. ><span>{{
  15002. groupStudent[toolindex][gindex] &&
  15003. groupStudent[toolindex][gindex][1]
  15004. ? groupStudent[toolindex][gindex] &&
  15005. groupStudent[toolindex][gindex][1].name
  15006. : "空位置"
  15007. }}</span>
  15008. </div>
  15009. <div v-if="groupJson.number > 5">
  15010. <span
  15011. :class="{
  15012. isChair:
  15013. groupStudent[toolindex][gindex] &&
  15014. groupStudent[toolindex][gindex][5],
  15015. updateChair:
  15016. courseDetail.userid == userid &&
  15017. groupStudent[toolindex][gindex] &&
  15018. groupStudent[toolindex][gindex][5] &&
  15019. groupJson.islock == 2,
  15020. }"
  15021. ><span
  15022. class="updateChairBtn"
  15023. @click="
  15024. updateGroupChair(
  15025. groupStudent[toolindex][gindex] &&
  15026. groupStudent[toolindex][gindex][5]
  15027. )
  15028. "
  15029. >修改</span
  15030. ></span
  15031. ><span>{{
  15032. groupStudent[toolindex][gindex] &&
  15033. groupStudent[toolindex][gindex][5]
  15034. ? groupStudent[toolindex][gindex] &&
  15035. groupStudent[toolindex][gindex][5].name
  15036. : "空位置"
  15037. }}</span>
  15038. </div>
  15039. <div v-if="groupJson.number > 9">
  15040. <span
  15041. :class="{
  15042. isChair:
  15043. groupStudent[toolindex][gindex] &&
  15044. groupStudent[toolindex][gindex][9],
  15045. updateChair:
  15046. courseDetail.userid == userid &&
  15047. groupStudent[toolindex][gindex] &&
  15048. groupStudent[toolindex][gindex][9] &&
  15049. groupJson.islock == 2,
  15050. }"
  15051. ><span
  15052. class="updateChairBtn"
  15053. @click="
  15054. updateGroupChair(
  15055. groupStudent[toolindex][gindex] &&
  15056. groupStudent[toolindex][gindex][9]
  15057. )
  15058. "
  15059. >修改</span
  15060. ></span
  15061. ><span>{{
  15062. groupStudent[toolindex][gindex] &&
  15063. groupStudent[toolindex][gindex][9]
  15064. ? groupStudent[toolindex][gindex] &&
  15065. groupStudent[toolindex][gindex][9].name
  15066. : "空位置"
  15067. }}</span>
  15068. </div>
  15069. </div>
  15070. </div>
  15071. </div>
  15072. </div>
  15073. </div>
  15074. <span slot="footer" class="dialog-footer">
  15075. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15076. </span>
  15077. </el-dialog>
  15078. <el-dialog
  15079. title="分组设置"
  15080. :visible.sync="dialogVisibleGroup2"
  15081. :append-to-body="true"
  15082. width="650px"
  15083. :before-close="handleClose"
  15084. class="dialog_diy"
  15085. >
  15086. <div class="groupBox">
  15087. <div v-if="groupJson2.group" class="groupContent">
  15088. <div class="groupTitle">请设置小组数量及名称</div>
  15089. <div
  15090. v-for="(item, index) in groupJson2.group"
  15091. :key="index"
  15092. class="groupName"
  15093. >
  15094. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15095. <el-input
  15096. v-model="item.name"
  15097. placeholder="请输入名称..."
  15098. style="width: 250px"
  15099. ></el-input>
  15100. <!-- <div class="groupBtn">
  15101. <el-button type="primary" size="small" @click="addGroup(index)">
  15102. 添加</el-button>
  15103. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15104. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15105. </div> -->
  15106. </div>
  15107. </div>
  15108. <div class="groupContent">
  15109. <div class="groupTitle">请设置每组人数</div>
  15110. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15111. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15112. <el-input
  15113. v-model="groupJson2.number"
  15114. style="width: 150px"
  15115. placeholder="请输入2-10的数字"
  15116. @change="numberPan"
  15117. ></el-input>
  15118. </div>
  15119. </div>
  15120. <span slot="footer" class="dialog-footer">
  15121. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15122. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15123. </span>
  15124. </el-dialog>
  15125. <el-dialog
  15126. title="作业提交"
  15127. :visible.sync="dialogVisibleGroupWork"
  15128. :append-to-body="true"
  15129. width="500px"
  15130. :before-close="handleClose"
  15131. class="dialog_change"
  15132. >
  15133. <div class="marginT">
  15134. <div>上传文件</div>
  15135. <div
  15136. class="chapter_add"
  15137. @click="addImg($event)"
  15138. v-if="studyJuri[0].cover.length == 0"
  15139. >
  15140. <div class="up_photo">
  15141. <img src="../../assets/icon/uploadImg.png" alt />
  15142. </div>
  15143. <!-- <input
  15144. type="file"
  15145. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15146. style="display: none"
  15147. @change="beforeUpload1($event, 1)"
  15148. /> -->
  15149. <input
  15150. type="file"
  15151. accept="*"
  15152. style="display: none"
  15153. @change="beforeUpload1($event, 1)"
  15154. />
  15155. </div>
  15156. <!-- capture="camera" -->
  15157. <div
  15158. class="chapter_add"
  15159. style="
  15160. display: flex;
  15161. width: 100%;
  15162. flex-direction: row;
  15163. flex-wrap: wrap;
  15164. justify-content: flex-start;
  15165. padding: 15px 0;
  15166. "
  15167. v-if="studyJuri[0].cover.length > 0"
  15168. >
  15169. <div class="upCover">
  15170. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15171. <img :src="word" alt v-else-if="fileType == 1" />
  15172. <img :src="video" alt v-else-if="fileType == 2" />
  15173. <img :src="word2" alt v-else-if="fileType == 3" />
  15174. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15175. <div class="deleteWord" @click="clean(1)">
  15176. <img src="../../assets/icon/deleteWorks.png" alt />
  15177. </div>
  15178. </div>
  15179. </div>
  15180. </div>
  15181. <div
  15182. class="upload_send"
  15183. @click="addCourseWorks2(taskCount)"
  15184. v-if="!proVisible"
  15185. >
  15186. 提交
  15187. </div>
  15188. </el-dialog>
  15189. <el-dialog
  15190. title="修改分组"
  15191. :visible.sync="dialogVisibleUpdateGroup"
  15192. :append-to-body="true"
  15193. width="350px"
  15194. :before-close="handleClose"
  15195. class="dialog_diy"
  15196. >
  15197. <div>
  15198. <h2>
  15199. {{ this.updateGroupUser.name }}
  15200. </h2>
  15201. <div style="color: rgb(171 171 171); margin-top: 10px">
  15202. 请选择要进入的分组
  15203. </div>
  15204. <el-radio-group v-model="checkChair">
  15205. <el-radio
  15206. style="display: block; margin-top: 20px"
  15207. v-for="(item, index) in updateGroupArray"
  15208. :label="item.label"
  15209. :key="index"
  15210. >{{ item.name }}</el-radio
  15211. >
  15212. </el-radio-group>
  15213. </div>
  15214. <span slot="footer" class="dialog-footer">
  15215. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15216. <el-button type="primary" @click="updateChair">确定</el-button>
  15217. </span>
  15218. </el-dialog>
  15219. <el-dialog
  15220. title="移除组员"
  15221. :visible.sync="dialogVisibleDeleteGroup"
  15222. :append-to-body="true"
  15223. width="350px"
  15224. :before-close="handleClose"
  15225. class="dialog_diy"
  15226. >
  15227. <div>
  15228. <h2>
  15229. {{ this.deleteGroupArray.name }}
  15230. </h2>
  15231. <div style="color: rgb(171 171 171); margin-top: 10px">
  15232. 请选择要删除的组员
  15233. </div>
  15234. <el-checkbox-group v-model="checkDeleteGroup">
  15235. <el-checkbox
  15236. style="display: flex; margin-top: 20px"
  15237. v-for="(item, index) in deleteGroupUser"
  15238. :label="item.userid"
  15239. :key="index"
  15240. >{{ item.name }}</el-checkbox
  15241. >
  15242. </el-checkbox-group>
  15243. </div>
  15244. <span slot="footer" class="dialog-footer">
  15245. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15246. <el-button type="primary" @click="deleteChair">确定</el-button>
  15247. </span>
  15248. </el-dialog>
  15249. <el-dialog
  15250. title="批量上传"
  15251. :visible.sync="dialogVisiblePl"
  15252. :append-to-body="true"
  15253. width="700px"
  15254. :before-close="handleClose"
  15255. class="dialog_change"
  15256. >
  15257. <div class="marginT">
  15258. <div class="plworkBox">
  15259. <div
  15260. class="chapter_add"
  15261. style="
  15262. display: flex;
  15263. width: 150px;
  15264. flex-direction: row;
  15265. flex-wrap: wrap;
  15266. justify-content: flex-start;
  15267. margin: 0 10px 10px 0;
  15268. "
  15269. v-for="(item, index) in plworkFile"
  15270. :key="index"
  15271. >
  15272. <div class="upCover2">
  15273. <img
  15274. :src="item.url"
  15275. alt
  15276. v-if="item.fileType == 1"
  15277. @click="previewImg(item.url)"
  15278. />
  15279. <img :src="word" alt v-else-if="item.fileType == 4" />
  15280. <img :src="video" alt v-else />
  15281. <!-- <span class="picName">{{ item.name }}</span> -->
  15282. <!-- <el-input
  15283. v-model="item.username"
  15284. placeholder="请输入学生名字"
  15285. style="margin-top: 10px"
  15286. ></el-input> -->
  15287. <div
  15288. class="pl_select_box"
  15289. @click="
  15290. getUpdateMore(true, checkUpload(), item.username, index)
  15291. "
  15292. >
  15293. {{ getSName(item.username) }}
  15294. </div>
  15295. <!-- <el-select
  15296. style="margin-top: 10px"
  15297. v-model="item.username"
  15298. filterable
  15299. allow-create
  15300. placeholder="请选择学生"
  15301. >
  15302. <el-option
  15303. v-for="item1 in checkUpload()"
  15304. :key="item1.userid"
  15305. :label="item1.name ? item1.name : item1.username"
  15306. :value="item1.userid"
  15307. >
  15308. </el-option>
  15309. </el-select> -->
  15310. <div class="deleteWord" @click="clean2(index)">
  15311. <img src="../../assets/icon/deleteWorks.png" alt />
  15312. </div>
  15313. </div>
  15314. </div>
  15315. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15316. <div class="up_photo2">
  15317. <img src="../../assets/icon/plwork.png" alt />
  15318. <span>点击上传文件</span>
  15319. </div>
  15320. <input
  15321. type="file"
  15322. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15323. multiple="multiple"
  15324. style="display: none"
  15325. @change="beforeUpload3($event, 6)"
  15326. />
  15327. </div>
  15328. </div>
  15329. </div>
  15330. <!-- capture="camera" -->
  15331. <div
  15332. class="upload_send"
  15333. @click="addCourseWorksPl(taskCount)"
  15334. v-if="!proVisible2"
  15335. >
  15336. 提交
  15337. </div>
  15338. </el-dialog>
  15339. <el-dialog
  15340. title="修改名称"
  15341. :visible.sync="dialogVisibleSname"
  15342. width="500px"
  15343. :before-close="handleClose"
  15344. class="dialog_diy"
  15345. center
  15346. >
  15347. <div
  15348. style="
  15349. text-align: center;
  15350. display: flex;
  15351. align-items: center;
  15352. justify-content: center;
  15353. "
  15354. >
  15355. <span class="tian1">名称</span>
  15356. <div
  15357. class="pl_select_box"
  15358. style="margin-left: 10px; width: 200px"
  15359. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15360. >
  15361. {{ getSName(worksSName) }}
  15362. </div>
  15363. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15364. placeholder="请选择学生">
  15365. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15366. :value="item.userid">
  15367. </el-option>
  15368. </el-select> -->
  15369. <!-- <el-input
  15370. v-model="worksSName"
  15371. style="width: 250px; margin: 15px 0px"
  15372. ></el-input> -->
  15373. </div>
  15374. <span slot="footer" class="dialog-footer">
  15375. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15376. <el-button type="primary" @click="updateName">确 定</el-button>
  15377. </span>
  15378. </el-dialog>
  15379. <el-dialog
  15380. title="英语写作"
  15381. :visible.sync="engDialogVisible"
  15382. :append-to-body="true"
  15383. width="800px"
  15384. :before-close="handleClose"
  15385. class="dialog_diy"
  15386. >
  15387. <onlineWrite
  15388. v-if="engDialogVisible"
  15389. :englishList="englishList"
  15390. :myAnswerList1="myAnswerList1"
  15391. ref="engJson"
  15392. ></onlineWrite>
  15393. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15394. <el-button @click="engDialogVisible = false">取 消</el-button>
  15395. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15396. </span>
  15397. </el-dialog>
  15398. <el-dialog
  15399. title="英语写作"
  15400. :visible.sync="engUpdateDialogVisible"
  15401. :append-to-body="true"
  15402. width="800px"
  15403. :before-close="handleClose"
  15404. class="dialog_diy fullStyle"
  15405. >
  15406. <div class="engUpBox">
  15407. <div class="engUpTop">
  15408. <div class="engTitle">
  15409. <div>作文题目:</div>
  15410. <div>{{ englishList1.engTitle }}</div>
  15411. </div>
  15412. <div class="engText">
  15413. <div>作文内容:</div>
  15414. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  15415. </div>
  15416. </div>
  15417. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  15418. <div class="oldBox">
  15419. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15420. <div class="oldText">
  15421. <div class="detailBox">
  15422. <div class="oldDetail">
  15423. <div>标题:</div>
  15424. <div>{{ oldEnglishJson.engTitle }} </div>
  15425. </div>
  15426. <div class="oldDetail1">
  15427. <div>正文:</div>
  15428. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  15429. </div>
  15430. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  15431. <div>图片:</div>
  15432. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  15433. </div>
  15434. </div>
  15435. </div>
  15436. </div>
  15437. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15438. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15439. <div class="oldText">
  15440. <div class="detailBox" style="position: relative;">
  15441. <div class="oldDetail">
  15442. <div>标题:</div>
  15443. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15444. <div v-else v-html="newEnglishList.engTitle"></div>
  15445. </div>
  15446. <div class="oldDetail">
  15447. <div>正文:</div>
  15448. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15449. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15450. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15451. </div>
  15452. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15453. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15454. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15455. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15456. </div>
  15457. </div>
  15458. </div>
  15459. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15460. <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">
  15461. <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>
  15462. <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>
  15463. </div>
  15464. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  15465. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  15466. <div class="detailBox" style="position: relative;">
  15467. <div class="oldDetail">
  15468. <div>标题:</div>
  15469. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  15470. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15471. </div>
  15472. <div class="oldDetail">
  15473. <div>正文:</div>
  15474. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  15475. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  15476. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  15477. </div>
  15478. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15479. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15480. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15481. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15482. </div>
  15483. </div>
  15484. <div class="oldText" v-else-if="newEngIndex == -1">
  15485. <div class="detailBox" style="position: relative;">
  15486. <div class="oldDetail">
  15487. <div>标题:</div>
  15488. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15489. <div v-else v-html="newEnglishList.engTitle"></div>
  15490. </div>
  15491. <div class="oldDetail">
  15492. <div>正文:</div>
  15493. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15494. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15495. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15496. </div>
  15497. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15498. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15499. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15500. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15501. </div>
  15502. </div>
  15503. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  15504. <div class="detailBox" style="position: relative;">
  15505. <div class="oldDetail">
  15506. <div>标题:</div>
  15507. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15508. <div v-else>
  15509. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  15510. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15511. </div>
  15512. </div>
  15513. <div class="oldDetail">
  15514. <div>正文:</div>
  15515. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  15516. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15517. <div v-else>
  15518. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  15519. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15520. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  15521. </div>
  15522. </div>
  15523. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15524. <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>
  15525. <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>
  15526. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15527. </div>
  15528. </div>
  15529. </div>
  15530. </div>
  15531. </div>
  15532. <span slot="footer" class="dialog-footer">
  15533. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15534. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15535. </span>
  15536. </el-dialog>
  15537. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  15538. <interVideo
  15539. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15540. :videoJson="videoJson"
  15541. :userid="userid"
  15542. :id="id"
  15543. :courseType="courseType"
  15544. :taskCount="taskCount"
  15545. :toolindex="toolindex"
  15546. :videoType="videoType"
  15547. ></interVideo>
  15548. <UpdateMore
  15549. :dialogVisibleMember.sync="dialogVisibleMember"
  15550. :cList="uploadStudentJuri"
  15551. :userid="userid"
  15552. :searchTN="worksSName2"
  15553. @setPlname="setPlname"
  15554. ></UpdateMore>
  15555. <!-- <wordCloud
  15556. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15557. :data="wordCloudData"
  15558. ></wordCloud> -->
  15559. <el-dialog
  15560. title="词云"
  15561. :visible.sync="dialogVisibleWordCloud"
  15562. width="30%"
  15563. class="dialog_diy"
  15564. :before-close="handleClose">
  15565. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15566. </el-dialog>
  15567. <el-dialog
  15568. title="挑人"
  15569. :visible.sync="dialogVisiblePickPeople"
  15570. width="650px"
  15571. :before-close="handleClose"
  15572. class="dialog_diy"
  15573. center
  15574. >
  15575. <div class="pick_box">
  15576. <div
  15577. class="noWorksName"
  15578. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15579. v-for="(item, index) in uploadStudentJuri"
  15580. :key="index"
  15581. @click="pickStudent(item)"
  15582. >
  15583. {{ item.name }}
  15584. </div>
  15585. </div>
  15586. </el-dialog>
  15587. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  15588. :englishVoiceJson='englishVoiceJson'
  15589. :userid="userid"
  15590. :id="id"
  15591. :courseType="courseType"
  15592. :taskCount="taskCount"
  15593. :toolindex="toolindex"
  15594. @selectSWorks="selectSWorks"
  15595. @selectStudent="selectStudent"
  15596. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15597. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15598. :userid="userid"
  15599. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15600. :commentDetail="commentDetail"
  15601. :courseDetail="courseDetail"
  15602. :wScore="wScore"
  15603. :scoreDetail="scoreDetail"
  15604. @selectSWorks="selectSWorks"
  15605. @selectStudent="selectStudent"></checkEnglishVoice>
  15606. <el-dialog
  15607. title="教师评分"
  15608. :visible.sync="markScoreVisible"
  15609. :append-to-body="true"
  15610. width="1000px"
  15611. :fullscreen="markfullscreen"
  15612. :before-close="markScorehandleClose"
  15613. class="markScore_diy"
  15614. >
  15615. <div slot="title">
  15616. <div class="markScore_diyTit">
  15617. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15618. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15619. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15620. </div>
  15621. </div>
  15622. </div>
  15623. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15624. <!-- @updateDocSco="updateDocSco" -->
  15625. <markDialog
  15626. :key="markScoreVisible.toString()"
  15627. :uid="markScoreUid"
  15628. :toolIndex="markScoretoolIndex"
  15629. :stage="courseType"
  15630. :task="taskCount"
  15631. :taskDetail="
  15632. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15633. "
  15634. :tool="toolListS"
  15635. :languageSetting="languageSetting"
  15636. :scoTit="markScoreTit"
  15637. :tType="tType"
  15638. :sIsOpen="sIsOpen"
  15639. :markScoreworksStudent="markScoreworksStudent"
  15640. :markScoreVisible="markScoreVisible"
  15641. ></markDialog>
  15642. </el-dialog>
  15643. <!-- 查看Txt,md等文件 -->
  15644. <el-dialog
  15645. title="文件预览"
  15646. :visible.sync="dialogVisibleTxt"
  15647. width="50%"
  15648. :before-close="handleCloseTxt"
  15649. class="dialog_diy"
  15650. :class="{ fullStyle: full }"
  15651. >
  15652. <div slot="title" class="header-title">
  15653. <div style="color: #fff">文件预览</div>
  15654. <div style="position: absolute; top: 19px; right: 50px">
  15655. <img
  15656. src="../../assets/full.png"
  15657. style="height: 16px; cursor: pointer"
  15658. alt=""
  15659. @click="fullTools"
  15660. />
  15661. </div>
  15662. </div>
  15663. <div>{{ TxtMd }}</div>
  15664. </el-dialog>
  15665. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15666. <choseWorksDetailDialog
  15667. ref="choseWorksDetailDialogRef"
  15668. :worksStudentData="worksStudent"
  15669. :noWorksSData="noWorksS"
  15670. :chapInfoListData="chapInfoList"
  15671. :courseType="courseType"
  15672. :taskCount="taskCount"
  15673. :tType="tType"
  15674. :sIsOpen="sIsOpen"
  15675. :courseDetail="courseDetail"
  15676. :groupStudent2="groupStudent"
  15677. :groupStudentUid2="groupStudentUid"
  15678. :oid="oid"
  15679. :org="org"
  15680. @getCourseDetail="getCourseDetail"
  15681. @selectSLook="selectSLook"
  15682. @selectSWorks="selectSWorks"
  15683. @selectStudent="selectStudent"
  15684. @openWord="openWord"
  15685. @openScore="openScore"
  15686. @deleteWorks="deleteWorks"
  15687. @openTools="openTools"
  15688. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15689. />
  15690. <el-dialog
  15691. :visible.sync="confirmOpenDig"
  15692. width="500px"
  15693. :modal="false"
  15694. class="confirmOpenDigCss dialog_diyCopy"
  15695. :before-close="handleClose">
  15696. <div style="display: flex;align-items: center;">
  15697. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15698. <span>“{{ courseDetail.title }}”开课啦</span>
  15699. </div>
  15700. <div style="margin: 20px 0 35px;">
  15701. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15702. <div>要认真听讲哦~</div>
  15703. </div>
  15704. <div style="text-align: center;">
  15705. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15706. </div>
  15707. </el-dialog>
  15708. <appStoreC ref="appStoreC"
  15709. :sStudent="sStudent"
  15710. :courseType="courseType"
  15711. :taskCount="taskCount"
  15712. :toolindex="toolindex"
  15713. @selectSWorks="selectSWorks"
  15714. @selectStudent="selectStudent"
  15715. ></appStoreC>
  15716. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15717. </div>
  15718. </template>
  15719. <script>
  15720. import "../../common/aws-sdk-2.235.1.min.js";
  15721. // import pdf from "../components/pdf3";
  15722. import pdf from "../components/vpdf";
  15723. import AskStatic from "../components/askStatic";
  15724. import AskStatic2 from "../components/askStatic2";
  15725. import AnswerData2 from "../components/answerData2";
  15726. import AnswerData from "../components/answerData";
  15727. import EditorBar from "../tools/wangEnduit.vue";
  15728. import Table from "../tools/table.vue";
  15729. import Time from "../tools/time.vue";
  15730. import Mind from "../tools/jsmind.vue";
  15731. import Sunburst from "../tools/sunburst";
  15732. import SeeBoard from "../tools/seeBoard";
  15733. import * as imageConversion from "image-conversion";
  15734. import Audio from "../components/audio.vue";
  15735. import ImgDraw from "../tools/imgDraw/imgDraw";
  15736. import { Empty } from "element-ui";
  15737. import RecordRTC from "recordrtc";
  15738. import interVideo from "../interVideo/index.vue";
  15739. import UpdateMore from "../updateMore/updateMore.vue";
  15740. import wordCloud from "../wordCloud/index.vue";
  15741. import axios from "axios";
  15742. import JSZip from "jszip";
  15743. import FileSaver from "file-saver";
  15744. import onlineWrite from "./commpont/onlineWrite";
  15745. import englishEva from "../components/englishEva";
  15746. import * as Diff from 'diff'
  15747. import EnglishVoice from '../EnglishVoice2/index.vue'
  15748. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15749. import correctText from '../components/correctText.vue'
  15750. import scoreItem from '../scoreList/scoreItem.vue'
  15751. import scoreZong from '../scoreZong/index.vue'
  15752. import classRoomHelper from '../classRoomHelper/index.vue'
  15753. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15754. import MarkdownIt from "markdown-it";
  15755. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15756. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15757. import { v4 as uuidv4 } from "uuid";
  15758. import markScore from "./commpont/markScore";
  15759. import markDialog from "./commpont/markDialog";
  15760. import evaTable from "./commpont/evaTable";
  15761. import choseWordCloud from '../components/choseWordCloud.vue'
  15762. import appStoreC from "../components/appStoreC.vue";
  15763. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15764. import { myMixin } from "@/mixins/mixin.js"
  15765. import { tools as toolsList } from "@/common/tools2.js";
  15766. import katex from 'katex'
  15767. import 'katex/dist/katex.min.css'
  15768. var OpenCC = require("opencc-js");
  15769. let converter = OpenCC.Converter({
  15770. from: "hk",
  15771. to: "cn"
  15772. });
  15773. const getFile = (url) => {
  15774. return new Promise((resolve, reject) => {
  15775. var credentials = {
  15776. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15777. secretAccessKey: "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",
  15778. }; //秘钥形式的登录上传
  15779. window.AWS.config.update(credentials);
  15780. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15781. let url2 = url;
  15782. let _url2 = "";
  15783. if (
  15784. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15785. ) {
  15786. _url2 = url2.split(
  15787. "https://view.officeapps.live.com/op/view.aspx?src="
  15788. )[1];
  15789. } else {
  15790. _url2 = url2;
  15791. }
  15792. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15793. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15794. var params = {
  15795. Bucket: "ccrb",
  15796. Key: name
  15797. };
  15798. s3.getObject(params, function (err, data) {
  15799. if (err) {
  15800. console.log(err, err.stack)
  15801. resolve({ data: 1 });
  15802. }else {
  15803. resolve({ data: data.Body });
  15804. console.log(data);
  15805. } // sxuccessful response
  15806. });
  15807. // axios({
  15808. // method: "get",
  15809. // url,
  15810. // responseType: "blob",
  15811. // })
  15812. // .then((data) => {
  15813. // resolve({ data: data.data });
  15814. // })
  15815. // .catch((error) => {
  15816. // resolve({ data: 1 });
  15817. // // reject(error.toString());
  15818. // });
  15819. });
  15820. };
  15821. export default {
  15822. mixins: [ myMixin ],
  15823. components: {
  15824. choseWordCloud,
  15825. EditorBar,
  15826. Time,
  15827. pdf,
  15828. AskStatic,
  15829. AskStatic2,
  15830. Mind,
  15831. Sunburst,
  15832. SeeBoard,
  15833. AnswerData2,
  15834. AnswerData,
  15835. Audio,
  15836. ImgDraw,
  15837. Table,
  15838. interVideo,
  15839. UpdateMore,
  15840. wordCloud,
  15841. onlineWrite,
  15842. englishEva,
  15843. EnglishVoice,
  15844. checkEnglishVoice,
  15845. correctText,
  15846. scoreItem,
  15847. classRoomHelper,
  15848. scoreZong,
  15849. markScore,
  15850. markDialog,
  15851. evaTable,
  15852. statisticalAnalysis,
  15853. choseWorksDetailDialog,
  15854. appStoreC,
  15855. cocoFlowDia,
  15856. studentClassRoomHelper
  15857. },
  15858. data() {
  15859. return {
  15860. homeWorkLoading:false,
  15861. toolsList: toolsList,
  15862. wordCloudKey: 0,
  15863. bg: null,
  15864. drawShow: false,
  15865. dialogVisible: false,
  15866. dialogVisiblePl: false,
  15867. commentDialogVisible: false,
  15868. dialogVisibleMember: false,
  15869. dialogVisibleWordCloud: false,
  15870. videoVisible: false,
  15871. isStar: false,
  15872. studentEvalDialogVisible: false,
  15873. studentEvalDialogVisibleTeacher: false,
  15874. dialogVisibleSelect: false,
  15875. dialogVisibleSelectTeacher: false,
  15876. dialogVisibleScore: false,
  15877. dialogVisibleENScore: false,
  15878. dialogVisibleSentence: false,
  15879. dialogVisibleSentenceTeacher: false,
  15880. dialogVisibleSentence1: false,
  15881. dialogVisibleWorks: false,
  15882. dialogVisibleTable: false,
  15883. dialogVisibleTableTeacher: false,
  15884. dialogVisibleWord: false,
  15885. dialogVisibleWordTeacher: false,
  15886. dialogVisibleTable2: false,
  15887. dialogVisibleTable3: false,
  15888. dialogVisibleGroupWork: false,
  15889. dialogVisibleUpdateGroup: false,
  15890. dialogVisibleDeleteGroup: false,
  15891. dialogVisibleSname: false,
  15892. dialogVisibleVideo: false,
  15893. dialogVisiblePickPeople: false,
  15894. worksSName: "",
  15895. classJuri: [],
  15896. uploadStudentJuri: [],
  15897. uploadCid: "",
  15898. snameWid: "",
  15899. sStudent: {},
  15900. sTool: "",
  15901. bzText: "",
  15902. commentDetail: [],
  15903. selectAnswer: [],
  15904. videoDetail: {},
  15905. selectJson: {},
  15906. eScore: { eBzText: "", eStar: [] },
  15907. id: this.$route.query.courseId,
  15908. userid: this.$route.query.userid,
  15909. classId: this.$route.query.cid,
  15910. // courseTypeLine: this.$route.query.type,
  15911. oid: this.$route.query.oid,
  15912. org: this.$route.query.org,
  15913. tType: this.$route.query.tType,
  15914. courseType: this.$route.query.type,
  15915. screenType: this.$route.query.screenType,
  15916. tcid2: this.$route.query.tcid,
  15917. tcid: "",
  15918. pptImgUrl: "",
  15919. pptImgUrl1: "",
  15920. commentText: "",
  15921. full: false,
  15922. sIsOpen: false,
  15923. IsLookOpen: false,
  15924. IsFollow: false,
  15925. pzDialog: false,
  15926. contentDialog: false,
  15927. mlDialog: false,
  15928. type: 1,
  15929. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15930. sentenceList1: [],
  15931. tableJson: [],
  15932. tableJsonO: [],
  15933. wordJson: [],
  15934. wordJsonO: [],
  15935. vedio: [],
  15936. text: [],
  15937. textList: [],
  15938. line: [],
  15939. lineList: [],
  15940. chapTools: [],
  15941. chapToolList: [],
  15942. file: [],
  15943. fileC: [],
  15944. vedioTime: [],
  15945. upToolImg: "",
  15946. preTime: 0,
  15947. rateList: {
  15948. ca: 0,
  15949. },
  15950. rateParams: [],
  15951. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15952. studyJuri: [
  15953. {
  15954. content: "",
  15955. cover: [],
  15956. upVedio: [],
  15957. upFile: [],
  15958. },
  15959. ],
  15960. isClose: 0,
  15961. plworkFile: [],
  15962. mr: require("../../assets/vedioPic.png"),
  15963. word: require("../../assets/icon/isWord.png"),
  15964. word2: require("../../assets/icon/word2.png"),
  15965. video: require("../../assets/icon/isVideo.png"),
  15966. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15967. likes: require("../../assets/icon/comment/likes.png"),
  15968. scoreImg: require("../../assets/score.png"),
  15969. courseDetail: {},
  15970. reply: "",
  15971. isSelect: false,
  15972. chapInfo: [],
  15973. chapInfoList: [],
  15974. taskCount: 0,
  15975. imgList: [],
  15976. noImgList: [],
  15977. pzList: [],
  15978. timeWorkList: [],
  15979. PlTextList: [
  15980. "Excellent!",
  15981. "nice!",
  15982. "很有创意!",
  15983. "还不错哦~",
  15984. "继续努力哦~",
  15985. ],
  15986. isClickNav: "",
  15987. navId: "",
  15988. playerOptions: {
  15989. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15990. autoplay: false, //如果true,浏览器准备好时开始回放。
  15991. muted: false, // 默认情况下将会消除任何音频。
  15992. loop: false, // 导致视频一结束就重新开始。
  15993. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15994. language: "zh-CN",
  15995. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15996. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15997. sources: [
  15998. {
  15999. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16000. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16001. },
  16002. ],
  16003. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16004. // poster: dataRes.imgUrl, //你的封面地址
  16005. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16006. controlBar: {
  16007. timeDivider: true, //当前时间和持续时间的分隔符
  16008. durationDisplay: true, //显示持续时间
  16009. remainingTimeDisplay: false, //是否显示剩余时间功能
  16010. fullscreenToggle: true, //全屏按钮
  16011. },
  16012. },
  16013. playerOptions1: {
  16014. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16015. autoplay: false, //如果true,浏览器准备好时开始回放。
  16016. muted: false, // 默认情况下将会消除任何音频。
  16017. loop: false, // 导致视频一结束就重新开始。
  16018. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16019. language: "zh-CN",
  16020. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16021. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16022. sources: [
  16023. {
  16024. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16025. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16026. },
  16027. ],
  16028. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16029. // poster: dataRes.imgUrl, //你的封面地址
  16030. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16031. controlBar: {
  16032. timeDivider: true, //当前时间和持续时间的分隔符
  16033. durationDisplay: true, //显示持续时间
  16034. remainingTimeDisplay: false, //是否显示剩余时间功能
  16035. fullscreenToggle: true, //全屏按钮
  16036. },
  16037. },
  16038. playerO: {},
  16039. noneBtnImg: false,
  16040. proVisible: false,
  16041. proVisible2: false,
  16042. progress: 0,
  16043. isFinishSize: 0,
  16044. isAllSize: 0,
  16045. questionAnswer: "",
  16046. answerQ: "", //问答标题
  16047. rateJson: [],
  16048. wbCount: 0,
  16049. wordCount: 0,
  16050. mindCount: 0,
  16051. askCount: 0,
  16052. noteCount: 0,
  16053. mindNetWorkCount: 0,
  16054. libraryCount: 0,
  16055. workCount: 0,
  16056. timeCount: 0,
  16057. answerCount: 0,
  16058. trainCount: 0,
  16059. evalCount: 0,
  16060. dialogImageUrl: "",
  16061. pictureDialog: false,
  16062. toolTypeList: [],
  16063. dialogVisible1: false,
  16064. dialogVisible2: false,
  16065. dialogVisible3: false,
  16066. dialogVisible6: false,
  16067. dialogVisible4: false,
  16068. isNoHomeWork: false,
  16069. dialogVisible5: false,
  16070. dialogVisible5Teacher: false,
  16071. dialogVisibleChoice: false,
  16072. dialogVisibleChoiceTeacher: false,
  16073. answerDialogVisible: false,
  16074. answerDialogVisibleTeacher: false,
  16075. juriVisible: false,
  16076. timeDialogVisible: false,
  16077. replyDialogVisible: false,
  16078. toolDialogVisible: false,
  16079. engDialogVisible: false,
  16080. engUpdateDialogVisible:false,
  16081. engEvaDialogVisible: false,
  16082. evaEngJson: {
  16083. teacherJson: {},
  16084. studentJson: {},
  16085. message: {},
  16086. },
  16087. isNoUserid:false,
  16088. engListLength:0,
  16089. engWid:"",
  16090. newEnglishList:{
  16091. engTitle:"",
  16092. engText:"",
  16093. },
  16094. newEnglishList1:[],
  16095. oldEnglishJson:{},
  16096. oldEnglishJson1:{},
  16097. englishList1:{},
  16098. englishList:{},
  16099. myAnswerList1:{},
  16100. topHeight:0,
  16101. newEngIndex:-1,
  16102. englishToolIndex:0,
  16103. userMes:{},
  16104. englishToolIndex:0,
  16105. replyIndex: 0,
  16106. replyPid: "",
  16107. radio: [],
  16108. isAsk: false,
  16109. askJson: {
  16110. askCount: 1,
  16111. askTitle: "",
  16112. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16113. },
  16114. testJson: {},
  16115. englishList: {},
  16116. topHeight:0,
  16117. checkJson: [],
  16118. askList: [],
  16119. answerList: [],
  16120. navList: [],
  16121. addPzDialog: false,
  16122. pzConText: "",
  16123. worksStudent: [],
  16124. isCloseList: [],
  16125. workStudent: [],
  16126. groupStudent: [],
  16127. groupStudentUid: [],
  16128. noWorksS: [],
  16129. isWorksS: [],
  16130. noWorksStudent: [],
  16131. toolindex: 0,
  16132. toolDetailIndex: null,
  16133. groupIndex: 0,
  16134. workTypeB: false,
  16135. workTypeC: false,
  16136. isAnswer: false,
  16137. isHovered: false,
  16138. isHovered1: false,
  16139. isHovered2: false,
  16140. commentTagShow:0,
  16141. timer: null,
  16142. timer2: null,
  16143. opertimer: null,
  16144. showType: '',
  16145. fileType: 0,
  16146. showPDF: false,
  16147. noteName: "",
  16148. evaJuri: [],
  16149. evalua: "",
  16150. eTitle: "",
  16151. eName: "",
  16152. eJson: {},
  16153. fid: "", //一级
  16154. sid: "", //二级
  16155. tid: "", //二级
  16156. typeMode: 1,
  16157. eJSONNum: 0,
  16158. Etype: 1,
  16159. data: {
  16160. meta: {
  16161. name: "example",
  16162. author: "dd@163.com",
  16163. version: "0.2",
  16164. },
  16165. format: "node_array",
  16166. data: [{ id: "root", isroot: true, topic: "" }],
  16167. },
  16168. fullDialogVisible: false,
  16169. fulltype: "",
  16170. fullUrl: "",
  16171. commentIndexJson: {},
  16172. Stbodywidth: 0,
  16173. ispzType: 0,
  16174. pzType: 1,
  16175. wScore: 0,
  16176. scoreDetail: "",
  16177. videoStart: false,
  16178. recorder: null,
  16179. groupJson: {},
  16180. islock: false,
  16181. groupJson2: {},
  16182. dialogVisibleGroup: false,
  16183. dialogVisibleGroup2: false,
  16184. updateGroupArray: [],
  16185. updateGroupUser: {},
  16186. deleteGroupUser: [],
  16187. deleteGroupArray: {},
  16188. checkChair: "",
  16189. checkDeleteGroup: [],
  16190. inviteCode: "",
  16191. courseGroupStudent: [],
  16192. courseGroupStudentUid: [],
  16193. courseGroup: {},
  16194. isGroup: false,
  16195. toolIndex: null,
  16196. tool: {},
  16197. isWorkTool: [
  16198. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  16199. ], //, 40
  16200. videoJson: {},
  16201. videoType:0,
  16202. toolType: 0,
  16203. checktoolArray: [],
  16204. vChapterData: [],
  16205. isUpdateToolDetail: false,
  16206. isUpdateToolDetail1: false,
  16207. updateToolDetailInner: "",
  16208. checkboxList: [],
  16209. plIndex: "",
  16210. worksSName2: "",
  16211. worksSid: "",
  16212. wordCloudData: [],
  16213. isPickStudent: [],
  16214. pzStype: 1,
  16215. myAnList: {},
  16216. downLoading: false,
  16217. greyType: false,
  16218. correctWord: [],
  16219. EnglishVoiceDialog: false,
  16220. englishVoiceJson: {},
  16221. englishVoiceJsonWork:[],
  16222. scoreList:{
  16223. listdata:[],
  16224. isScoreList:[],
  16225. },
  16226. classRoomHelperWidth: '85px',
  16227. orgArray:[],
  16228. oidArray:[],
  16229. splitScreenData:{
  16230. isOpen:false,
  16231. userId:"",
  16232. uid:"",
  16233. myUid:"",
  16234. loading:false,
  16235. behavior:null,
  16236. },
  16237. confirmOpenDig:false,
  16238. confirmOpenDigData:'',
  16239. refreshKey: 0,
  16240. AIloading: [],
  16241. worksStudentCopy: [],
  16242. loopLoading: [],
  16243. markScoreVisible: false,
  16244. markScoretoolIndex: 0,
  16245. markScoreUid: "",
  16246. markScoreTit: {},
  16247. markfullscreen: false,
  16248. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16249. markScoreworksStudent: [],
  16250. finalMarkList: -1,
  16251. isaiNum: 0,
  16252. dialogVisibleTxt: false,
  16253. TxtMd: "",
  16254. languageSetting: 0, //0中文 1繁体 2英文
  16255. toolListS: [],
  16256. commentDetailCopy: "",
  16257. diffKey:"1"
  16258. };
  16259. },
  16260. methods: {
  16261. //查看应用中心作业
  16262. openCocoFlow(w){
  16263. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16264. },
  16265. getAIJ() {
  16266. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16267. let oid = res.data[0];
  16268. let org = res.data[1];
  16269. let oidArray = [];
  16270. let orgArray = [];
  16271. oid.forEach(i => oidArray.push(i.oid));
  16272. org.forEach(i => orgArray.push(i.oid));
  16273. this.orgArray = orgArray;
  16274. this.oidArray = oidArray;
  16275. });
  16276. },
  16277. // 评分弹框全屏
  16278. markFullScreenBtn() {
  16279. this.markfullscreen = !this.markfullscreen;
  16280. },
  16281. insertMemorandum(_html) {
  16282. //保存行为操作
  16283. //variable
  16284. //btn
  16285. let params = [
  16286. {
  16287. uid: this.userid,
  16288. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16289. content: _html
  16290. }
  16291. ];
  16292. console.log(params);
  16293. this.ajax
  16294. .post(
  16295. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16296. params
  16297. )
  16298. .then(res => {
  16299. if (res.data == 1) {
  16300. console.log("保存操作成功");
  16301. } else {
  16302. console.log("保存操作失败");
  16303. }
  16304. })
  16305. .catch(e => {
  16306. console.log("保存操作失败");
  16307. console.log(e);
  16308. });
  16309. },
  16310. // 获取文档id
  16311. createFileid(url) {
  16312. let _this = this;
  16313. return new Promise((resolve, reject) => {
  16314. try {
  16315. _this.ajax
  16316. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16317. url: url
  16318. })
  16319. .then(res => {
  16320. let _data = res.data.FunctionResponse;
  16321. if (_data.result && _data.result.id) {
  16322. resolve(_data.result.id);
  16323. } else {
  16324. resolve(1);
  16325. }
  16326. })
  16327. .catch(function(error) {
  16328. resolve(1);
  16329. });
  16330. } catch (e) {
  16331. resolve(1);
  16332. }
  16333. });
  16334. },
  16335. // 一键重置
  16336. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16337. let jude = false;
  16338. this.AIloading.forEach((e, index) => {
  16339. if (index == toolIndex) {
  16340. e.forEach(k => {
  16341. if (k.loading == true) jude = true;
  16342. });
  16343. }
  16344. });
  16345. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16346. this.$confirm("确认一键重置?")
  16347. .then(_ => {
  16348. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16349. })
  16350. .catch(_ => {});
  16351. },
  16352. // 一键重置
  16353. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16354. for (let index = 0; index < con.length; index++) {
  16355. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16356. }
  16357. this.$message.success("重置完成");
  16358. // this.refreshAssembly();
  16359. this.worksStudent.forEach((e, index) => {
  16360. if (toolIndex == index) {
  16361. console.log("6666");
  16362. e.forEach((i, inx) => {
  16363. let mk = `markSco${index}${inx}`;
  16364. this.$refs[mk][0].getData();
  16365. });
  16366. }
  16367. });
  16368. },
  16369. // 一键重置
  16370. allEmptySco(uid, stage, task, toolIndex) {
  16371. let params = [
  16372. {
  16373. cid: this.id,
  16374. uid: uid,
  16375. s: stage,
  16376. t: task,
  16377. tool: toolIndex ? toolIndex : ""
  16378. }
  16379. ];
  16380. return new Promise(resolve => {
  16381. this.ajax
  16382. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16383. .then(res => {
  16384. resolve(1);
  16385. })
  16386. .catch(err => {
  16387. console.error(err);
  16388. });
  16389. }).catch(error => {
  16390. console.log(error);
  16391. });
  16392. },
  16393. // AI评分循环打分
  16394. async loopEva(
  16395. con,
  16396. tit,
  16397. stage,
  16398. task,
  16399. toolIndex,
  16400. toolDetail,
  16401. taskDetail,
  16402. toolList
  16403. ) {
  16404. let jude = false;
  16405. this.AIloading.forEach((e, index) => {
  16406. if (index == toolIndex) {
  16407. e.forEach(k => {
  16408. if (k.loading == true) jude = true;
  16409. });
  16410. }
  16411. });
  16412. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16413. this.AIloading.forEach((e, index) => {
  16414. if (index == toolIndex) {
  16415. e.forEach(k => {
  16416. k.loading = true;
  16417. });
  16418. }
  16419. });
  16420. this.loopLoading[toolIndex].loading = true;
  16421. let laws = "";
  16422. let std = "";
  16423. let text = "";
  16424. if (toolList && toolList.eList && toolList.eList.length) {
  16425. for (let i = 0; i < toolList.eList.length; i++) {
  16426. if (toolList.eList[i].isai == 1) {
  16427. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16428. }
  16429. }
  16430. for (let i = 0; i < toolList.eList.length; i++) {
  16431. if (toolList.eList[i].isai == 1) {
  16432. let a = toolList.eList[i].detail;
  16433. if (isNaN(parseFloat(a)) && a) {
  16434. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16435. } else {
  16436. var result = a;
  16437. }
  16438. std += `纬度${i}:“${result}”, \n`;
  16439. }
  16440. }
  16441. for (let i = 0; i < toolList.eList.length; i++) {
  16442. if (toolList.eList[i].isai == 1) {
  16443. let a = toolList.eList[i].detail;
  16444. if (isNaN(parseFloat(a)) && a) {
  16445. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16446. } else {
  16447. var result = a;
  16448. }
  16449. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16450. }
  16451. }
  16452. } else {
  16453. let titRule = 0;
  16454. let titRule2 = 0;
  16455. tit.forEach((e, index) => {
  16456. if (!e.isai) {
  16457. e.isai = 1;
  16458. }
  16459. });
  16460. tit.forEach((e, index) => {
  16461. if (e.isai == 1) {
  16462. titRule2++;
  16463. if (e.rule) {
  16464. titRule++;
  16465. }
  16466. }
  16467. });
  16468. if (titRule != titRule2) {
  16469. this.AIloading.forEach((e, index) => {
  16470. if (index == toolIndex) {
  16471. e.forEach(k => {
  16472. k.loading = false;
  16473. });
  16474. }
  16475. });
  16476. this.loopLoading[toolIndex].loading = false;
  16477. this.$message.info("细则努力生成中,请稍候……");
  16478. return;
  16479. }
  16480. for (let i = 0; i < tit.length; i++) {
  16481. if (tit[i].isai == 1) {
  16482. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16483. }
  16484. }
  16485. for (let i = 0; i < tit.length; i++) {
  16486. if (tit[i].isai == 1) {
  16487. let a = tit[i].detail;
  16488. if (isNaN(parseFloat(a)) && a) {
  16489. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16490. } else {
  16491. var result = a;
  16492. }
  16493. std += `纬度${i}:“${result}”, \n`;
  16494. }
  16495. }
  16496. for (let i = 0; i < tit.length; i++) {
  16497. if (tit[i].isai == 1) {
  16498. let a = tit[i].detail;
  16499. if (isNaN(parseFloat(a)) && a) {
  16500. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16501. } else {
  16502. var result = a;
  16503. }
  16504. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16505. }
  16506. }
  16507. }
  16508. let forAllList = [];
  16509. // console.log('con',con)
  16510. for (let i = 0; i < con.length; i++) {
  16511. let _fileid = "";
  16512. let wok = con[i].works;
  16513. // console.log('con',con);
  16514. // console.log('con[i].type',con[i].type);
  16515. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16516. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16517. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16518. _fileid = await this.createFileid(con[i].works);
  16519. } else {
  16520. this.AIloading[toolIndex][i].loading = false;
  16521. continue;
  16522. }
  16523. }
  16524. // console.log('con[i].type',con[i])
  16525. // console.log('con[i].type',con[i].type)
  16526. if (_fileid == 1 || con[i].type == 3) {
  16527. this.AIloading[toolIndex][i].loading = false;
  16528. continue;
  16529. }
  16530. let msg = `NOTICE
  16531. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16532. Language: ${this.getLang()}
  16533. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16534. Instruction: Based on the context, follow "Format example", write content.
  16535. #目标#
  16536. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16537. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16538. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16539. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16540. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16541. #评分资料#
  16542. 评价标准:${std}
  16543. 评价细则:${laws}
  16544. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16545. 任务描述:${taskDetail}
  16546. 工具描述:${toolDetail}
  16547. #输出要求#
  16548. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16549. “评语”控制在150字左右。
  16550. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16551. #输出格式#
  16552. [${text}{'comment':'评语(150个汉字左右)'}]
  16553. `;
  16554. let mk = `markSco${toolIndex}${i}`;
  16555. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16556. msg,
  16557. con[i].userid,
  16558. stage,
  16559. task,
  16560. _fileid,
  16561. con[i].type
  16562. );
  16563. forAllList.push(mkAwit);
  16564. }
  16565. Promise.all(forAllList)
  16566. .then(values => {
  16567. console.log("values", values);
  16568. this.$message({
  16569. message: "评价成功",
  16570. type: "success"
  16571. });
  16572. // this.refreshKey++
  16573. // this.worksStudent.forEach((e,index)=>{
  16574. // if(toolIndex == index){
  16575. // e.forEach((i,inx)=>{
  16576. // let mk = `markSco${index}${inx}`
  16577. // this.$refs[mk][0].getData()
  16578. // })
  16579. // }
  16580. // })
  16581. this.AIloading[toolIndex].forEach(e => {
  16582. e.loading = false;
  16583. });
  16584. this.loopLoading[toolIndex].loading = false;
  16585. })
  16586. .catch(reason => {
  16587. console.error("reasonreasonreasonreasonreason", reason);
  16588. // 输出“失败原因”
  16589. });
  16590. },
  16591. // 获取评价细则
  16592. againEva(i, k) {
  16593. let msg = `NOTICE
  16594. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16595. Language: ${this.getLang()}
  16596. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16597. Instruction: Based on the context, follow "Format example", write content.
  16598. #Context
  16599. ##要求
  16600. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16601. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16602. ##制定标准资料
  16603. 评价维度:${
  16604. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16605. }
  16606. 维度描述:${
  16607. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16608. }
  16609. # Format example
  16610. ==
  16611. 0 星,作业内容与作业要求无关;
  16612. 1 星,没有识别问题和需求;
  16613. 2 星,问题或需求没有被清晰理解或准确识别;
  16614. 3 星,问题或需求的一部分被识别;
  16615. 4 星,问题或需求的大部分被识别;
  16616. 5 星,问题或需求都被识别。
  16617. ==
  16618. `;
  16619. let params = {
  16620. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16621. message: [
  16622. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16623. ],
  16624. session_name: uuidv4(),
  16625. userId: this.userid,
  16626. file_ids: [],
  16627. model: "gpt-4o-2024-11-20"
  16628. };
  16629. // console.log('params',params);
  16630. this.ajax
  16631. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16632. .then(response => {
  16633. let data = response.data.FunctionResponse;
  16634. // console.log("data", data);
  16635. if (data.message) {
  16636. let content = data.message;
  16637. var regex = new RegExp("==([^=]+)==");
  16638. let match = content.match(regex);
  16639. if (match) {
  16640. content = match[1].trim().replaceAll(" ", "");
  16641. // 获取匹配到的内容并去除两端空格
  16642. // console.log('contentInsideDoubleEquals', content);
  16643. if (
  16644. content.indexOf("0星") == -1 ||
  16645. content.indexOf("2星") == -1 ||
  16646. content.indexOf("3星") == -1 ||
  16647. content.indexOf("4星") == -1 ||
  16648. content.indexOf("5星") == -1
  16649. ) {
  16650. console.log("未有星级。");
  16651. this.againEva(i, k);
  16652. return;
  16653. }
  16654. // return
  16655. } else {
  16656. console.log("未找到匹配的内容。");
  16657. this.againEva(i, k);
  16658. return;
  16659. }
  16660. let elist = JSON.parse(
  16661. JSON.stringify(
  16662. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16663. )
  16664. );
  16665. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16666. elist.rule = JSON.parse(
  16667. JSON.stringify(content.replaceAll("#", ""))
  16668. );
  16669. this.$set(
  16670. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16671. k,
  16672. elist
  16673. );
  16674. this.$forceUpdate();
  16675. let params2 = [
  16676. {
  16677. cid: this.id,
  16678. chapters: JSON.stringify(this.chapInfoList),
  16679. uid: this.userid,
  16680. unitIndex: this.courseType
  16681. }
  16682. ];
  16683. this.ajax
  16684. .post(this.$store.state.api + "updateWorkNew4", params2)
  16685. .then(res => {
  16686. this.getCourseDetail(2);
  16687. this.$forceUpdate();
  16688. })
  16689. .catch(err => {
  16690. this.$message.error("网络不佳");
  16691. console.error(err);
  16692. });
  16693. // 进行进一步处理或解析outputContent
  16694. // } else {
  16695. // console.log("No match found for # Output section.");
  16696. // }
  16697. }
  16698. })
  16699. .catch(error => {
  16700. console.log(error);
  16701. });
  16702. },
  16703. // 关闭评分弹框
  16704. markScorehandleClose(done) {
  16705. // this.refreshKey++
  16706. this.worksStudent.forEach((e, index) => {
  16707. if (this.markScoretoolIndex == index) {
  16708. e.forEach((i, inx) => {
  16709. let mk = `markSco${index}${inx}`;
  16710. if (this.$refs[mk] && this.$refs[mk][0]) {
  16711. this.$refs[mk][0].getData();
  16712. }
  16713. });
  16714. }
  16715. });
  16716. done();
  16717. },
  16718. // 关闭txtMd预览弹框
  16719. handleCloseTxt(done) {
  16720. this.TxtMd = "";
  16721. done();
  16722. },
  16723. // Txt,Md作业查看
  16724. lookTxt(val) {
  16725. this.dialogVisibleTxt = true;
  16726. this.TxtMd = "";
  16727. getFile(val).then(res => {
  16728. this.TxtMd = res.data;
  16729. });
  16730. },
  16731. // 组件刷新
  16732. refreshAssembly(val) {
  16733. this.refreshKey++;
  16734. // console.log(this.refreshKey)
  16735. },
  16736. updateLoading(payload) {
  16737. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16738. },
  16739. handleShow(toolIndex, val) {
  16740. let mk = `markSco${toolIndex}${val}`;
  16741. // console.log(mk);
  16742. this.$refs[mk][0].getData();
  16743. },
  16744. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16745. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16746. // console.log('this.AIloading',this.AIloading)
  16747. let jude = false;
  16748. this.AIloading.forEach((e, index) => {
  16749. if (index == tidx) {
  16750. e.forEach(k => {
  16751. if (k.loading == true) jude = true;
  16752. });
  16753. }
  16754. });
  16755. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16756. if (val) return;
  16757. // console.log(uname,worksStudent,uid,tidx,titlist)
  16758. this.markScoreTit = titlist;
  16759. this.markScoreUid = uid;
  16760. this.toolListS = toolList;
  16761. this.markScoretoolIndex = tidx;
  16762. this.markScoreworksStudent = worksStudent;
  16763. this.markfullscreen = false;
  16764. this.markScoreVisible = true;
  16765. if (this.tType == 1) {
  16766. this.insertMemorandum(
  16767. `查看<span class="variable">${uname}</span>的作业`
  16768. );
  16769. }
  16770. },
  16771. // 点击markScore显示评分框
  16772. markScoreDig(data) {
  16773. // console.log('data',data)
  16774. let jude = false;
  16775. this.AIloading.forEach((e, index) => {
  16776. if (index == data.val2) {
  16777. e.forEach(k => {
  16778. if (k.loading == true) jude = true;
  16779. });
  16780. }
  16781. });
  16782. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16783. this.markScoreTit = data.tit;
  16784. this.markScoreUid = data.val;
  16785. this.markScoretoolIndex = data.val2;
  16786. this.markfullscreen = false;
  16787. this.markScoreVisible = true;
  16788. this.insertMemorandum(
  16789. `查看<span class="variable">${data.uname}</span>的作业`
  16790. );
  16791. },
  16792. // 刷新其他组件分数
  16793. refreshOther(v) {
  16794. // console.log('v',v)
  16795. this.AIloading[v.tid].forEach((e, i) => {
  16796. if (i == v.wid) {
  16797. e.loading = false;
  16798. }
  16799. });
  16800. // this.worksStudent.forEach((e,index)=>{
  16801. // if(toolIndex != index){
  16802. // e.forEach((i,inx)=>{
  16803. // let mk = `markSco${index}${inx}`
  16804. // this.$refs[mk][0].getData()
  16805. // })
  16806. // }
  16807. // })
  16808. },
  16809. updateDocSco(payload) {
  16810. // console.log('payload',payload)
  16811. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16812. },
  16813. gx(){
  16814. this.$forceUpdate();
  16815. },
  16816. isUpdateCorrect(t,p){
  16817. if(this.greyType == false){
  16818. this.isUpdateText = t;
  16819. this.greyType = true;
  16820. }else{
  16821. if(p == 1){
  16822. this.newEnglishList.engText = this.isUpdateText;
  16823. }else if(p == 2){
  16824. this.oldEnglishJson1.engText = this.isUpdateText;
  16825. }else if(p == 3){
  16826. this.newEnglishList.engText = this.isUpdateText;
  16827. }else{
  16828. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16829. }
  16830. this.greyType = false
  16831. }
  16832. },
  16833. aiCorrect(t,p){
  16834. let aiText = "";
  16835. const loading = this.$loading.service({
  16836. background: "rgba(255, 255, 255)",
  16837. target: document.querySelectorAll(".loadingText")[0],
  16838. });
  16839. let param = {
  16840. model: "gpt-3.5-turbo",
  16841. temperature: 0,
  16842. max_tokens: 2048,
  16843. top_p: 1,
  16844. frequency_penalty: 0,
  16845. presence_penalty: 0,
  16846. messages: [
  16847. {
  16848. role: "user",
  16849. content:
  16850.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16851. },
  16852. ],
  16853. uid: this.userid,
  16854. stream: false,
  16855. };
  16856. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16857. (res) => {
  16858. if (
  16859. res.data.FunctionResponse &&
  16860. res.data.FunctionResponse.result &&
  16861. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16862. ) {
  16863. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16864. return;
  16865. }
  16866. aiText =
  16867. res.data.FunctionResponse.choices[0].message.content;
  16868. aiText = aiText.replace(/%/g,"%25");
  16869. // let w = "";
  16870. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16871. // for(var k = 0;k<a.length;k++){
  16872. // //diffWordsWithSpace
  16873. // if(a.length > 1){
  16874. // if(a[k].added == true){
  16875. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16876. // }else if(a[k].removed == true){
  16877. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16878. // }else{
  16879. // w += '<span>' + a[k].value + '</span>';
  16880. // }
  16881. // }else{
  16882. // if(p == 1){
  16883. // w = this.newEnglishList.engText;
  16884. // }else if(p == 2){
  16885. // w = this.oldEnglishJson1.engText;
  16886. // }else if(p == 3){
  16887. // w = this.newEnglishList.engText;
  16888. // }else{
  16889. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16890. // }
  16891. // }
  16892. // }
  16893. if(p == 1){
  16894. this.newEnglishList.engText = aiText;
  16895. }else if(p == 2){
  16896. this.oldEnglishJson1.engText = aiText;
  16897. }else if(p == 3){
  16898. this.newEnglishList.engText = aiText;
  16899. }else{
  16900. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16901. }
  16902. loading.close();
  16903. },
  16904. (err) => {
  16905. console.log(err);
  16906. loading.close();
  16907. }
  16908. );
  16909. },
  16910. addToolChoose() {
  16911. if (!this.checktoolArray.length) {
  16912. this.$message.error("请选择要添加的任务");
  16913. return;
  16914. }
  16915. if (
  16916. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16917. this.taskCount
  16918. ].toolChoose[0].tool.length
  16919. ) {
  16920. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16921. this.taskCount
  16922. ].toolChoose[0].tool = this.checktoolArray;
  16923. } else {
  16924. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16925. this.taskCount
  16926. ].toolChoose.push({
  16927. tool: this.checktoolArray,
  16928. toolDetail: "",
  16929. toolType: 0,
  16930. askCount: 1,
  16931. askTitle: "",
  16932. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16933. });
  16934. }
  16935. let params = [
  16936. {
  16937. cid: this.id,
  16938. chapters: JSON.stringify(this.chapInfoList),
  16939. uid: this.userid,
  16940. unitIndex: this.courseType,
  16941. },
  16942. ];
  16943. this.ajax
  16944. .post(this.$store.state.api + "updateWorkNew4", params)
  16945. .then((res) => {
  16946. this.$message({
  16947. message: "添加成功",
  16948. type: "success",
  16949. });
  16950. this.checktoolArray = [];
  16951. this.getCourseDetail(2);
  16952. this.checkBz(
  16953. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16954. this.taskCount
  16955. ].toolChoose.length - 1
  16956. );
  16957. this.toolDialogVisible = false;
  16958. this.refreshCourse();
  16959. this.$forceUpdate();
  16960. })
  16961. .catch((err) => {
  16962. console.error(err);
  16963. });
  16964. },
  16965. checkBz(index) {
  16966. this.isUpdateToolDetail = false;
  16967. this.$forceUpdate();
  16968. setTimeout(() => {
  16969. document.scrollingElement.scrollTop =
  16970. document.querySelectorAll(".filebox")[index].offsetTop +
  16971. document.querySelector(".student_body").offsetTop;
  16972. }, 500);
  16973. },
  16974. updateToolDetail(i, type) {
  16975. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16976. this.toolDetailIndex = i
  16977. this.isUpdateToolDetail1 = true;
  16978. setTimeout(() => {
  16979. this.updateToolDetailInner = JSON.parse(
  16980. JSON.stringify(
  16981. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16982. this.taskCount
  16983. ].toolChoose[i].toolDetail
  16984. )
  16985. );
  16986. document.querySelector(".checkTextArea").focus();
  16987. }, 0);
  16988. } else if((this.isUpdateToolDetail1 && type != 2)){
  16989. // this.toolDetailIndex = i;
  16990. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16991. this.taskCount
  16992. ].toolChoose[i].toolDetail = JSON.parse(
  16993. JSON.stringify(this.updateToolDetailInner)
  16994. );
  16995. let params = [
  16996. {
  16997. cid: this.id,
  16998. chapters: JSON.stringify(this.chapInfoList),
  16999. uid: this.userid,
  17000. unitIndex: this.courseType,
  17001. },
  17002. ];
  17003. this.ajax
  17004. .post(this.$store.state.api + "updateWorkNew4", params)
  17005. .then((res) => {
  17006. this.isUpdateToolDetail1 = false;
  17007. this.$message({
  17008. message: "修改成功",
  17009. type: "success",
  17010. });
  17011. this.toolDetailIndex = null;
  17012. this.updateToolDetailInner = "";
  17013. this.getCourseDetail(2);
  17014. this.$forceUpdate();
  17015. })
  17016. .catch((err) => {
  17017. console.error(err);
  17018. });
  17019. } else if((this.isUpdateToolDetail1 && type == 2)){
  17020. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17021. this.taskCount
  17022. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17023. JSON.stringify(this.updateToolDetailInner)
  17024. );
  17025. let params = [
  17026. {
  17027. cid: this.id,
  17028. chapters: JSON.stringify(this.chapInfoList),
  17029. uid: this.userid,
  17030. unitIndex: this.courseType,
  17031. },
  17032. ];
  17033. this.ajax
  17034. .post(this.$store.state.api + "updateWorkNew4", params)
  17035. .then((res) => {
  17036. this.$message({
  17037. message: "修改成功",
  17038. type: "success",
  17039. });
  17040. this.toolDetailIndex = i;
  17041. this.isUpdateToolDetail1 = true;
  17042. setTimeout(() => {
  17043. this.updateToolDetailInner = JSON.parse(
  17044. JSON.stringify(
  17045. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17046. this.taskCount
  17047. ].toolChoose[i].toolDetail
  17048. )
  17049. );
  17050. document.querySelector(".checkTextArea").focus();
  17051. }, 0);
  17052. this.getCourseDetail(2);
  17053. this.$forceUpdate();
  17054. })
  17055. .catch((err) => {
  17056. console.error(err);
  17057. });
  17058. }
  17059. },
  17060. jumpGj(i, j, k, l) {
  17061. this.refreshAssembly();
  17062. for (var z = 0; z < this.navList.length; z++) {
  17063. for (var q = 0; q < this.navList[z].task.length; q++) {
  17064. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17065. this.navList[z].task[q].tool[w].isTool = false;
  17066. }
  17067. }
  17068. }
  17069. console.log(this.navList);
  17070. this.navList[i].task[j].tool[k].isTool =
  17071. !this.navList[i].task[j].tool[k].isTool;
  17072. var a = document.scrollingElement;
  17073. let target = document.querySelector(`#gj${k}`);
  17074. if (target) {
  17075. // target.scrollIntoView(true);
  17076. // setTimeout(() => {
  17077. // a.scrollTop = a.scrollTop - 150;
  17078. // }, 0);
  17079. target.scrollIntoView();
  17080. setTimeout(()=>{
  17081. let scrollBody = document.querySelector('.body_student').parentElement
  17082. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17083. }, 0);
  17084. }
  17085. this.navId = ""
  17086. let flag = this.courseType == i;
  17087. let flag2 = this.taskCount == j
  17088. if (l) {
  17089. this.courseType = i;
  17090. // this.navId = l;
  17091. this.taskCount = j;
  17092. this.selectPz();
  17093. this.getHomeWork();
  17094. this.getCourseDetail(2);
  17095. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17096. if(flag){
  17097. if(flag2){
  17098. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17099. }else{
  17100. 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>`)
  17101. }
  17102. }else{
  17103. 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>`)
  17104. }
  17105. }
  17106. // var b = this.$refs["bz" + k][0];
  17107. // a.scrollTop = b.offsetTop;
  17108. },
  17109. addTools2(i) {
  17110. if (i == 4) {
  17111. // this.openTools2(4);
  17112. this.$message.error("暂未开放");
  17113. return;
  17114. }
  17115. if (i == 45) {
  17116. // this.openTools2(45);
  17117. this.$message.error("暂未开放");
  17118. return;
  17119. }
  17120. if (i == 47) {
  17121. // this.openTools2(47);
  17122. this.$message.error("暂未开放");
  17123. return;
  17124. }
  17125. if (i == 49) {
  17126. // this.openTools2(49);
  17127. this.$message.error("暂未开放");
  17128. return;
  17129. }
  17130. if (i == 62) {
  17131. // this.openTools(itemTaskIndex, 62, toolIndex);
  17132. this.$message.error("暂未开放");
  17133. return;
  17134. }
  17135. if (i == 15) {
  17136. // this.openTools(itemTaskIndex, 15, toolIndex);
  17137. this.$message.error("暂未开放");
  17138. return;
  17139. }
  17140. if (i == 40) {
  17141. // this.openTools(itemTaskIndex, 40, toolIndex);
  17142. this.$message.error("暂未开放");
  17143. return;
  17144. }
  17145. if (i == 41) {
  17146. // this.openTools(itemTaskIndex, 41, toolIndex);
  17147. this.$message.error("暂未开放");
  17148. return;
  17149. }
  17150. if (i == 42) {
  17151. // this.openTools(itemTaskIndex, 42, toolIndex);
  17152. this.$message.error("暂未开放");
  17153. return;
  17154. }
  17155. if (this.checktoolArray.length > 0) {
  17156. if (this.checktoolArray.indexOf(i) != -1) {
  17157. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17158. } else {
  17159. this.checktoolArray = [];
  17160. this.checktoolArray.push(i);
  17161. }
  17162. } else {
  17163. this.checktoolArray.push(i);
  17164. }
  17165. this.$forceUpdate();
  17166. },
  17167. jump() {
  17168. window.topU.postMessage({ tools: "43" }, "*");
  17169. },
  17170. getUpdateMore(f, checkboxList, searchTN, index) {
  17171. this.dialogVisibleMember = f;
  17172. this.checkboxList = checkboxList;
  17173. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17174. this.plIndex = index;
  17175. },
  17176. setPlname(a) {
  17177. if (this.plworkFile.length) {
  17178. this.plworkFile[this.plIndex].username = a;
  17179. } else {
  17180. this.worksSName = a;
  17181. }
  17182. this.dialogVisibleMember = false;
  17183. },
  17184. previewImg(url,w) {
  17185. this.$hevueImgPreview(url);
  17186. if(w){
  17187. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17188. }
  17189. },
  17190. checkImg(list) {
  17191. if (!list.length) {
  17192. return;
  17193. }
  17194. this.$hevueImgPreview({
  17195. multiple: true, // 开启多图预览模式
  17196. imgList: list, // 需要预览的多图数组
  17197. });
  17198. },
  17199. change(val) {
  17200. console.log(val);
  17201. },
  17202. goTo(path) {
  17203. this.$router.push(path);
  17204. },
  17205. handlePictureCardPreview(url) {
  17206. this.dialogImageUrl = url;
  17207. this.pictureDialog = true;
  17208. },
  17209. clean(type) {
  17210. if (type == 1) {
  17211. this.studyJuri[0].cover.splice(0, 1);
  17212. } else if (type == 2) {
  17213. this.studyJuri[0].upVedio.splice(0, 1);
  17214. } else {
  17215. this.studyJuri[0].upFile.splice(0, 1);
  17216. }
  17217. },
  17218. clean2(index) {
  17219. this.plworkFile.splice(index, 1);
  17220. },
  17221. handleClose(done) {
  17222. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17223. this.videoDetail.sources[0].src = "";
  17224. }
  17225. this.commentIndexJson = {};
  17226. this.changeSplitScreenBehavior({code:99})
  17227. done();
  17228. },
  17229. fullTools() {
  17230. this.full = !this.full;
  17231. },
  17232. imgChange(file, fileList, type) {
  17233. if (type == 1) {
  17234. var _tmp = this.studyJuri[0].cover;
  17235. } else if (type == 2) {
  17236. var _tmp = this.studyJuri[0].upVedio;
  17237. } else {
  17238. var _tmp = this.studyJuri[0].upFile;
  17239. }
  17240. this.noneBtnImg = _tmp.length >= 1;
  17241. },
  17242. setContent(bool) {
  17243. this.contentDialog = bool;
  17244. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17245. document.querySelector(".workd_media").style.height = "650px";
  17246. } else if (document.querySelector(".workd_media")) {
  17247. document.querySelector(".workd_media").style.height = "auto";
  17248. }
  17249. },
  17250. setContent2(bool) {
  17251. this.mlDialog = bool;
  17252. if (
  17253. bool &&
  17254. this.contentDialog &&
  17255. document.querySelector(".workd_media")
  17256. ) {
  17257. document.querySelector(".workd_media").style.height = "650px";
  17258. } else if (document.querySelector(".workd_media")) {
  17259. document.querySelector(".workd_media").style.height = "auto";
  17260. }
  17261. },
  17262. openToolAll() {
  17263. this.toolDialogVisible = true;
  17264. },
  17265. addImg(e) {
  17266. var el = e.currentTarget;
  17267. // this.$message.success('触发上传')
  17268. el.getElementsByTagName("input")[0].click();
  17269. e.target.value = "";
  17270. },
  17271. addSelectAnswer() {
  17272. let params = [
  17273. {
  17274. uid: this.userid,
  17275. cid: this.id,
  17276. stage: this.courseType,
  17277. task: this.taskCount,
  17278. tool: this.toolindex,
  17279. content: this.selectAnswer.answer,
  17280. type: 7,
  17281. },
  17282. ];
  17283. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17284. this.homeWorkLoading = true
  17285. this.ajax
  17286. .post(this.$store.state.api + "addCourseWorks", params)
  17287. .then((res) => {
  17288. this.$message({
  17289. message: "提交成功",
  17290. type: "success",
  17291. });
  17292. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17293. setTimeout(() => {
  17294. this.homeWorkLoading = false
  17295. }, 500);
  17296. this.dialogVisibleSelect = false;
  17297. // this.selectAnswer = {};
  17298. this.selectSWorks();
  17299. this.selectStudent();
  17300. })
  17301. .catch((err) => {
  17302. setTimeout(() => {
  17303. this.homeWorkLoading = false
  17304. }, 500);
  17305. this.$message.error("提交失败");
  17306. console.error(err);
  17307. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17308. });
  17309. },
  17310. addSelectAnswerTeacher() {
  17311. let params = [
  17312. {
  17313. uid: this.sStudent.userid,
  17314. cid: this.id,
  17315. stage: this.courseType,
  17316. task: this.taskCount,
  17317. tool: this.toolindex,
  17318. content: this.selectAnswer.answer,
  17319. type: 7,
  17320. },
  17321. ];
  17322. this.ajax
  17323. .post(this.$store.state.api + "addCourseWorks", params)
  17324. .then((res) => {
  17325. this.$message({
  17326. message: "提交成功",
  17327. type: "success",
  17328. });
  17329. this.dialogVisibleSelectTeacher = false;
  17330. // this.selectAnswer = {};
  17331. this.selectSWorks();
  17332. this.selectStudent();
  17333. })
  17334. .catch((err) => {
  17335. this.$message.error("提交失败");
  17336. console.error(err);
  17337. });
  17338. },
  17339. addSenWorks() {
  17340. for (var i = 0; i < this.sentenceList.length; i++) {
  17341. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17342. if (
  17343. this.sentenceList[i].chooseSenList[j] == undefined ||
  17344. this.sentenceList[i].chooseSenList[j] == ""
  17345. ) {
  17346. this.$message.error("请将答案填写完整!");
  17347. return;
  17348. }
  17349. }
  17350. }
  17351. let params = [
  17352. {
  17353. uid: this.userid,
  17354. cid: this.id,
  17355. stage: this.courseType,
  17356. task: this.taskCount,
  17357. tool: this.toolindex,
  17358. content: JSON.stringify(this.sentenceList),
  17359. type: 9,
  17360. },
  17361. ];
  17362. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17363. this.homeWorkLoading = true
  17364. this.ajax
  17365. .post(this.$store.state.api + "addCourseWorks", params)
  17366. .then((res) => {
  17367. this.$message({
  17368. message: "提交成功",
  17369. type: "success",
  17370. });
  17371. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17372. setTimeout(() => {
  17373. this.homeWorkLoading = false
  17374. }, 500);
  17375. this.dialogVisibleSentence = false;
  17376. // this.selectAnswer = {};
  17377. this.selectSWorks();
  17378. this.selectStudent();
  17379. })
  17380. .catch((err) => {
  17381. setTimeout(() => {
  17382. this.homeWorkLoading = false
  17383. }, 500);
  17384. this.$message.error("提交失败");
  17385. console.error(err);
  17386. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17387. });
  17388. },
  17389. addSenWorksTeacher() {
  17390. for (var i = 0; i < this.sentenceList.length; i++) {
  17391. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17392. if (
  17393. this.sentenceList[i].chooseSenList[j] == undefined ||
  17394. this.sentenceList[i].chooseSenList[j] == ""
  17395. ) {
  17396. this.$message.error("请将答案填写完整!");
  17397. return;
  17398. }
  17399. }
  17400. }
  17401. let params = [
  17402. {
  17403. uid: this.sStudent.userid,
  17404. cid: this.id,
  17405. stage: this.courseType,
  17406. task: this.taskCount,
  17407. tool: this.toolindex,
  17408. content: JSON.stringify(this.sentenceList),
  17409. type: 9,
  17410. },
  17411. ];
  17412. this.ajax
  17413. .post(this.$store.state.api + "addCourseWorks", params)
  17414. .then((res) => {
  17415. this.$message({
  17416. message: "提交成功",
  17417. type: "success",
  17418. });
  17419. this.dialogVisibleSentenceTeacher = false;
  17420. // this.selectAnswer = {};
  17421. this.selectSWorks();
  17422. this.selectStudent();
  17423. })
  17424. .catch((err) => {
  17425. this.$message.error("提交失败");
  17426. console.error(err);
  17427. });
  17428. },
  17429. returnTableText() {
  17430. this.$confirm("确定还原此模板吗?", "提示", {
  17431. confirmButtonText: "确定",
  17432. cancelButtonText: "取消",
  17433. type: "warning",
  17434. })
  17435. .then(() => {
  17436. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17437. })
  17438. .catch(() => {});
  17439. },
  17440. addTableWorks() {
  17441. let params = [
  17442. {
  17443. uid: this.userid,
  17444. cid: this.id,
  17445. stage: this.courseType,
  17446. task: this.taskCount,
  17447. tool: this.toolindex,
  17448. content: JSON.stringify(this.tableJson),
  17449. type: 10,
  17450. },
  17451. ];
  17452. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17453. this.homeWorkLoading = true
  17454. this.ajax
  17455. .post(this.$store.state.api + "addCourseWorks", params)
  17456. .then((res) => {
  17457. this.$message({
  17458. message: "提交成功",
  17459. type: "success",
  17460. });
  17461. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17462. setTimeout(() => {
  17463. this.homeWorkLoading = false
  17464. }, 500);
  17465. this.dialogVisibleTable = false;
  17466. // this.selectAnswer = {};
  17467. this.selectSWorks();
  17468. this.selectStudent();
  17469. })
  17470. .catch((err) => {
  17471. this.$message.error("提交失败");
  17472. console.error(err);
  17473. setTimeout(() => {
  17474. this.homeWorkLoading = false
  17475. }, 500);
  17476. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17477. });
  17478. },
  17479. tableRowClassName({ row, rowIndex }) {
  17480. if ((rowIndex + 1) % 2 === 0) {
  17481. return "even_row";
  17482. } else {
  17483. return "";
  17484. }
  17485. },
  17486. addTableWorksTeacher() {
  17487. let params = [
  17488. {
  17489. uid: this.sStudent.userid,
  17490. cid: this.id,
  17491. stage: this.courseType,
  17492. task: this.taskCount,
  17493. tool: this.toolindex,
  17494. content: JSON.stringify(this.tableJson),
  17495. type: 10,
  17496. },
  17497. ];
  17498. this.ajax
  17499. .post(this.$store.state.api + "addCourseWorks", params)
  17500. .then((res) => {
  17501. this.$message({
  17502. message: "提交成功",
  17503. type: "success",
  17504. });
  17505. this.dialogVisibleTableTeacher = false;
  17506. // this.selectAnswer = {};
  17507. this.selectSWorks();
  17508. this.selectStudent();
  17509. })
  17510. .catch((err) => {
  17511. this.$message.error("提交失败");
  17512. console.error(err);
  17513. });
  17514. },
  17515. returnWordText() {
  17516. this.$confirm("确定还原此模板吗?", "提示", {
  17517. confirmButtonText: "确定",
  17518. cancelButtonText: "取消",
  17519. type: "warning",
  17520. })
  17521. .then(() => {
  17522. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17523. })
  17524. .catch(() => {});
  17525. },
  17526. addWordWorks() {
  17527. let params = [
  17528. {
  17529. uid: this.userid,
  17530. cid: this.id,
  17531. stage: this.courseType,
  17532. task: this.taskCount,
  17533. tool: this.toolindex,
  17534. content: JSON.stringify(this.wordJson),
  17535. type: 13,
  17536. atool: 52,
  17537. },
  17538. ];
  17539. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17540. this.homeWorkLoading = true
  17541. this.ajax
  17542. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17543. .then((res) => {
  17544. this.$message({
  17545. message: "提交成功",
  17546. type: "success",
  17547. });
  17548. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17549. setTimeout(() => {
  17550. this.homeWorkLoading = false
  17551. }, 500);
  17552. this.dialogVisibleWord = false;
  17553. // this.selectAnswer = {};
  17554. this.selectSWorks();
  17555. this.selectStudent();
  17556. })
  17557. .catch((err) => {
  17558. this.$message.error("提交失败");
  17559. console.error(err);
  17560. setTimeout(() => {
  17561. this.homeWorkLoading = false
  17562. }, 500);
  17563. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17564. });
  17565. },
  17566. addWordWorksTeacher() {
  17567. let params = [
  17568. {
  17569. uid: this.sStudent.userid,
  17570. cid: this.id,
  17571. stage: this.courseType,
  17572. task: this.taskCount,
  17573. tool: this.toolindex,
  17574. content: JSON.stringify(this.wordJson),
  17575. type: 13,
  17576. atool: 52,
  17577. },
  17578. ];
  17579. this.ajax
  17580. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17581. .then((res) => {
  17582. this.$message({
  17583. message: "提交成功",
  17584. type: "success",
  17585. });
  17586. this.dialogVisibleWordTeacher = false;
  17587. // this.selectAnswer = {};
  17588. this.selectSWorks();
  17589. this.selectStudent();
  17590. })
  17591. .catch((err) => {
  17592. this.$message.error("提交失败");
  17593. console.error(err);
  17594. });
  17595. },
  17596. addCourseWorksCopy(i) {
  17597. let arr = this.workStudent[this.toolindex].filter(e => {
  17598. return (e.userid = this.userid);
  17599. });
  17600. if (arr.length > 0) {
  17601. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17602. confirmButtonText: "确定",
  17603. cancelButtonText: "取消",
  17604. type: "warning"
  17605. })
  17606. .then(() => {
  17607. this.addCourseWorks(i);
  17608. })
  17609. .catch(() => {});
  17610. } else {
  17611. this.addCourseWorks(i);
  17612. }
  17613. },
  17614. addCourseWorks(i) {
  17615. var typesql;
  17616. if (this.fileType === 0) {
  17617. typesql = 1;
  17618. } else if (this.fileType === 1) {
  17619. typesql = 4;
  17620. } else if (this.fileType === 2) {
  17621. typesql = 5;
  17622. } else if (this.fileType === 3) {
  17623. typesql = 12;
  17624. }
  17625. if (!this.studyJuri[0].cover[0].url) {
  17626. this.$message.error("请上传文件");
  17627. return;
  17628. }
  17629. let params = [
  17630. {
  17631. uid: this.userid,
  17632. cid: this.id,
  17633. stage: this.courseType,
  17634. task: i,
  17635. tool: this.toolindex,
  17636. content: this.studyJuri[0].cover[0].url,
  17637. type: typesql,
  17638. },
  17639. ];
  17640. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17641. this.homeWorkLoading = true
  17642. this.ajax
  17643. .post(this.$store.state.api + "addCourseWorksR", params)
  17644. .then((res) => {
  17645. this.$message({
  17646. message: "提交成功",
  17647. type: "success",
  17648. });
  17649. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17650. setTimeout(() => {
  17651. this.homeWorkLoading = false
  17652. }, 500);
  17653. this.studyJuri[0].cover = [];
  17654. this.dialogVisible = false;
  17655. this.getCourseDetail(2);
  17656. })
  17657. .catch((err) => {
  17658. this.$message.error("提交失败");
  17659. console.error(err);
  17660. setTimeout(() => {
  17661. this.homeWorkLoading = false
  17662. }, 500);
  17663. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17664. });
  17665. },
  17666. addCourseWorksPl(i) {
  17667. let _files = this.plworkFile;
  17668. var c = 1;
  17669. for (var k = 0; k < _files.length; k++) {
  17670. if (!_files[k].username) {
  17671. c = 2;
  17672. }
  17673. }
  17674. if (c == 2) {
  17675. this.$message.error("请填写学生姓名");
  17676. return;
  17677. }
  17678. let params = [
  17679. {
  17680. ateacher: this.userid,
  17681. cid: this.id,
  17682. stage: this.courseType,
  17683. task: i,
  17684. tool: this.toolindex,
  17685. content: JSON.stringify(_files),
  17686. },
  17687. ];
  17688. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17689. this.homeWorkLoading = true
  17690. this.ajax
  17691. .post(this.$store.state.api + "addCourseWorksPl", params)
  17692. .then((res) => {
  17693. this.$message({
  17694. message: "提交成功",
  17695. type: "success",
  17696. });
  17697. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17698. setTimeout(() => {
  17699. this.homeWorkLoading = false
  17700. }, 500);
  17701. this.plworkFile = [];
  17702. this.dialogVisiblePl = false;
  17703. this.getCourseDetail(2);
  17704. })
  17705. .catch((err) => {
  17706. this.$message.error("提交失败");
  17707. console.error(err);
  17708. setTimeout(() => {
  17709. this.homeWorkLoading = false
  17710. }, 500);
  17711. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17712. });
  17713. },
  17714. addCourseWorks2(i) {
  17715. var typesql;
  17716. if (this.fileType === 0) {
  17717. typesql = 0;
  17718. } else if (this.fileType === 1) {
  17719. typesql = 1;
  17720. } else if (this.fileType === 2) {
  17721. typesql = 3;
  17722. } else if (this.fileType === 3) {
  17723. typesql = 12;
  17724. }
  17725. if (!this.studyJuri[0].cover[0].url) {
  17726. this.$message.error("请上传文件");
  17727. return;
  17728. }
  17729. let params = [
  17730. {
  17731. uid: this.userid,
  17732. cid: this.id,
  17733. stage: this.courseType,
  17734. task: i,
  17735. tool: this.toolindex,
  17736. content: JSON.stringify({
  17737. type: typesql,
  17738. groupIndex: this.groupIndex,
  17739. url: this.studyJuri[0].cover[0].url,
  17740. }),
  17741. type: 11,
  17742. atool: 49,
  17743. text: "",
  17744. },
  17745. ];
  17746. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17747. this.homeWorkLoading = true
  17748. this.ajax
  17749. .post(this.$store.state.api + "addCourseWorks5", params)
  17750. .then((res) => {
  17751. this.$message({
  17752. message: "提交成功",
  17753. type: "success",
  17754. });
  17755. setTimeout(() => {
  17756. this.homeWorkLoading = false
  17757. }, 500);
  17758. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17759. type: typesql,
  17760. groupIndex: this.groupIndex,
  17761. url: this.studyJuri[0].cover[0].url,
  17762. }),type: "course_tool_sub" }, "success")
  17763. this.studyJuri[0].cover = [];
  17764. this.dialogVisibleGroupWork = false;
  17765. this.getCourseDetail(2);
  17766. })
  17767. .catch((err) => {
  17768. this.$message.error("提交失败");
  17769. console.error(err);
  17770. setTimeout(() => {
  17771. this.homeWorkLoading = false
  17772. }, 500);
  17773. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17774. type: typesql,
  17775. groupIndex: this.groupIndex,
  17776. url: this.studyJuri[0].cover[0].url,
  17777. }),type: "course_tool_sub" }, err)
  17778. });
  17779. },
  17780. addEnglishWork() {
  17781. this.myAnList = this.$refs['engJson'].myAnswerList;
  17782. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17783. this.$message.error("请输入作文标题和正文!");
  17784. return;
  17785. }
  17786. let params = [
  17787. {
  17788. uid: this.userid,
  17789. cid: this.id,
  17790. stage: this.courseType,
  17791. task: this.taskCount,
  17792. tool: this.englishToolIndex,
  17793. content: JSON.stringify(this.myAnList),
  17794. type: 16,
  17795. atool: 69,
  17796. text: "",
  17797. },
  17798. ];
  17799. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17800. this.homeWorkLoading = true
  17801. this.ajax
  17802. .post(this.$store.state.api + "addCourseWorks5", params)
  17803. .then((res) => {
  17804. this.$message({
  17805. message: "提交成功",
  17806. type: "success",
  17807. });
  17808. setTimeout(() => {
  17809. this.homeWorkLoading = false
  17810. }, 500);
  17811. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17812. data: JSON.stringify(this.myAnList),
  17813. type: "course_tool_sub" }, "success")
  17814. this.myAnList = {};
  17815. this.englishList = {};
  17816. this.englishToolIndex = 0;
  17817. this.engDialogVisible = false;
  17818. this.selectSWorks();
  17819. this.selectStudent();
  17820. })
  17821. .catch((err) => {
  17822. this.$message.error("提交失败");
  17823. console.error(err);
  17824. setTimeout(() => {
  17825. this.homeWorkLoading = false
  17826. }, 500);
  17827. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17828. data: JSON.stringify(this.myAnList),
  17829. type: "course_tool_sub" }, err)
  17830. });
  17831. },
  17832. addCourseWorksGong(i, data, tool) {
  17833. let params = [
  17834. {
  17835. uid: this.userid,
  17836. cid: this.id,
  17837. stage: this.courseType,
  17838. task: this.taskCount,
  17839. tool: i,
  17840. content: data,
  17841. type: 12,
  17842. atool: tool,
  17843. text: "",
  17844. },
  17845. ];
  17846. this.ajax
  17847. .post(this.$store.state.api + "addCourseWorks5", params)
  17848. .then((res) => {
  17849. this.$message({
  17850. message: "提交成功",
  17851. type: "success",
  17852. });
  17853. this.studyJuri[0].cover = [];
  17854. this.selectSWorks();
  17855. this.selectStudent();
  17856. })
  17857. .catch((err) => {
  17858. this.$message.error("提交失败");
  17859. console.error(err);
  17860. });
  17861. },
  17862. addCourseWorksGongTeacher(i, data, tool) {
  17863. let params = [
  17864. {
  17865. uid: this.sStudent.userid,
  17866. cid: this.id,
  17867. stage: this.courseType,
  17868. task: this.taskCount,
  17869. tool: i,
  17870. content: data,
  17871. type: 12,
  17872. atool: tool,
  17873. text: "",
  17874. },
  17875. ];
  17876. this.ajax
  17877. .post(this.$store.state.api + "addCourseWorks5", params)
  17878. .then((res) => {
  17879. this.$message({
  17880. message: "提交成功",
  17881. type: "success",
  17882. });
  17883. this.studyJuri[0].cover = [];
  17884. this.dialogVisibleWorks = false;
  17885. this.selectSWorks();
  17886. this.selectStudent();
  17887. })
  17888. .catch((err) => {
  17889. this.$message.error("提交失败");
  17890. console.error(err);
  17891. });
  17892. },
  17893. addCourseWorksGongPl(i, data, tool, type) {
  17894. let params = [
  17895. {
  17896. uid: this.sStudent.userid,
  17897. cid: this.id,
  17898. stage: this.courseType,
  17899. task: this.taskCount,
  17900. tool: i,
  17901. content: data,
  17902. type: type,
  17903. atool: tool,
  17904. text: "",
  17905. },
  17906. ];
  17907. this.ajax
  17908. .post(this.$store.state.api + "addCourseWorks5", params)
  17909. .then((res) => {
  17910. this.$message({
  17911. message: "提交成功",
  17912. type: "success",
  17913. });
  17914. this.studyJuri[0].cover = [];
  17915. this.dialogVisibleWorks = false;
  17916. this.selectSWorks();
  17917. this.selectStudent();
  17918. })
  17919. .catch((err) => {
  17920. this.$message.error("提交失败");
  17921. console.error(err);
  17922. });
  17923. },
  17924. addCourseWorksTeacher(i) {
  17925. var typesql;
  17926. if (this.sTool == 32) {
  17927. this.addCourseWorksGongTeacher(
  17928. this.toolindex,
  17929. this.studyJuri[0].cover[0].url,
  17930. this.sTool
  17931. );
  17932. return;
  17933. }
  17934. if (this.fileType === 0) {
  17935. typesql = 1;
  17936. } else if (this.fileType === 1) {
  17937. typesql = 4;
  17938. } else if (this.fileType === 2) {
  17939. typesql = 5;
  17940. } else if (this.fileType === 3) {
  17941. typesql = 12;
  17942. }
  17943. if (this.sTool == 50) {
  17944. this.addCourseWorksGongPl(
  17945. this.toolindex,
  17946. this.studyJuri[0].cover[0].url,
  17947. this.sTool,
  17948. typesql
  17949. );
  17950. return;
  17951. }
  17952. if (!this.studyJuri[0].cover[0].url) {
  17953. this.$message.error("请上传文件");
  17954. return;
  17955. }
  17956. let params = [
  17957. {
  17958. uid: this.sStudent.userid,
  17959. cid: this.id,
  17960. stage: this.courseType,
  17961. task: i,
  17962. tool: this.toolindex,
  17963. content: this.studyJuri[0].cover[0].url,
  17964. type: typesql,
  17965. ateacher: this.userid,
  17966. },
  17967. ];
  17968. this.ajax
  17969. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17970. .then((res) => {
  17971. this.$message({
  17972. message: "提交成功",
  17973. type: "success",
  17974. });
  17975. this.studyJuri[0].cover = [];
  17976. this.dialogVisibleWorks = false;
  17977. this.getCourseDetail(2);
  17978. })
  17979. .catch((err) => {
  17980. this.$message.error("提交失败");
  17981. console.error(err);
  17982. });
  17983. },
  17984. selectUploadStudent(type) {
  17985. const loading = this.$loading.service({
  17986. background: "rgba(255, 255, 255, 0.7)",
  17987. target: document.body,
  17988. });
  17989. let params = {
  17990. cid: this.uploadCid,
  17991. oid: this.oid,
  17992. cn: "",
  17993. };
  17994. this.ajax
  17995. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17996. .then((res) => {
  17997. loading.close();
  17998. var studentK = [];
  17999. if (this.isWorksS[this.toolindex].length > 0) {
  18000. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18001. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18002. }
  18003. studentK = studentK.join(",");
  18004. }
  18005. this.uploadStudentJuri = res.data[0].filter((el) => {
  18006. return studentK.indexOf(el.userid) == -1;
  18007. });
  18008. if (this.worksSName && this.worksSid) {
  18009. this.uploadStudentJuri.push({
  18010. userid: this.worksSid,
  18011. name: this.worksSName,
  18012. });
  18013. }
  18014. if (type == 1) {
  18015. this.plworkFile = [];
  18016. this.dialogVisibleSname = true;
  18017. } else if (type == 2) {
  18018. this.dialogVisiblePl = true;
  18019. }
  18020. })
  18021. .catch((err) => {
  18022. loading.close();
  18023. console.error(err);
  18024. });
  18025. },
  18026. selectPickStudent() {
  18027. const loading = this.$loading.service({
  18028. background: "rgba(255, 255, 255, 0.7)",
  18029. target: document.body,
  18030. });
  18031. let params = {
  18032. cid: this.uploadCid,
  18033. oid: this.oid,
  18034. cn: "",
  18035. };
  18036. this.ajax
  18037. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18038. .then((res) => {
  18039. loading.close();
  18040. this.uploadStudentJuri = res.data[0];
  18041. this.dialogVisiblePickPeople = true;
  18042. })
  18043. .catch((err) => {
  18044. loading.close();
  18045. console.error(err);
  18046. });
  18047. },
  18048. arrayToArray(arrayo, arrayt) {
  18049. let array1 = arrayo;
  18050. let array2 = arrayt;
  18051. let commonElements = [];
  18052. for (let i = 0; i < array1.length; i++) {
  18053. for (let j = 0; j < array2.length; j++) {
  18054. if (array1[i] === array2[j]) {
  18055. commonElements.push(array1[i]);
  18056. }
  18057. }
  18058. }
  18059. return commonElements;
  18060. },
  18061. selectWorksStudent() {
  18062. let params = {
  18063. oid: this.oid,
  18064. cid: this.courseDetail.juri,
  18065. };
  18066. this.ajax
  18067. .get(this.$store.state.api + "selectWorksStudent", params)
  18068. .then((res) => {
  18069. var a = res.data[0];
  18070. for (var i = 0; i < this.isWorksS.length; i++) {
  18071. this.noWorksS[i] = [];
  18072. var studentK = [];
  18073. if (this.isWorksS[i].length > 0) {
  18074. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18075. studentK.push(this.isWorksS[i][z].uid);
  18076. }
  18077. studentK = studentK.join(",");
  18078. for (var j = 0; j < a.length; j++) {
  18079. if (studentK.indexOf(a[j].userid) == -1) {
  18080. if (this.tcid) {
  18081. // a[j].classid.indexOf(this.tcid) != -1
  18082. if (
  18083. this.arrayToArray(
  18084. a[j].classid.split(","),
  18085. this.tcid.split(",")
  18086. ).length
  18087. ) {
  18088. this.noWorksS[i].push({
  18089. student: a[j].name,
  18090. userid: a[j].userid,
  18091. });
  18092. }
  18093. } else {
  18094. this.noWorksS[i].push({
  18095. student: a[j].name,
  18096. userid: a[j].userid,
  18097. });
  18098. }
  18099. }
  18100. }
  18101. } else {
  18102. for (var k = 0; k < a.length; k++) {
  18103. if (this.tcid) {
  18104. if (
  18105. this.arrayToArray(
  18106. a[k].classid.split(","),
  18107. this.tcid.split(",")
  18108. ).length
  18109. ) {
  18110. this.noWorksS[i].push({
  18111. student: a[k].name,
  18112. userid: a[k].userid,
  18113. });
  18114. }
  18115. } else {
  18116. this.noWorksS[i].push({
  18117. student: a[k].name,
  18118. userid: a[k].userid,
  18119. });
  18120. }
  18121. }
  18122. }
  18123. }
  18124. this.$forceUpdate();
  18125. if (
  18126. Object.keys(this.commentDetail).length &&
  18127. Object.keys(this.commentIndexJson).length &&
  18128. !this.dialogVisibleScore && !this.dialogVisibleENScore
  18129. ) {
  18130. let a = 1;
  18131. let c = this.commentIndexJson;
  18132. if (
  18133. this.commentIndexJson.gindex ||
  18134. this.commentIndexJson.gindex === 0
  18135. ) {
  18136. for (
  18137. var i = 0;
  18138. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18139. i++
  18140. ) {
  18141. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18142. groupA: for (var k = 0; k < _el.length; k++) {
  18143. let el = _el[k];
  18144. if (el.wid == this.commentDetail.wid) {
  18145. a = 2;
  18146. this.commentOther(
  18147. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18148. this.commentIndexJson.toolIndex,
  18149. k,
  18150. this.commentIndexJson.gindex
  18151. );
  18152. break groupA;
  18153. }
  18154. }
  18155. }
  18156. if (a === 1) {
  18157. this.commentDetail = [];
  18158. this.commentIndexJson = {};
  18159. this.commentDialogVisible = false;
  18160. this.$message("此作业已被删除");
  18161. }
  18162. } else {
  18163. if (this.isGroup && this.commentIndexJson.gid) {
  18164. groupA: for (
  18165. var i = 0;
  18166. i < this.courseGroup.group.length;
  18167. i++
  18168. ) {
  18169. let _group = this.courseGroup.group[i];
  18170. if (_group.id == this.commentIndexJson.gid) {
  18171. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18172. for (var k = 0; k < _el2.length; k++) {
  18173. let el2 = _el2[k];
  18174. if (el2.wid == this.commentDetail.wid) {
  18175. a = 2;
  18176. this.commentOther(
  18177. _el2[k],
  18178. this.commentIndexJson.toolIndex,
  18179. k,
  18180. null,
  18181. this.commentIndexJson.gid
  18182. );
  18183. break groupA;
  18184. }
  18185. }
  18186. }
  18187. }
  18188. }
  18189. if (a == 1) {
  18190. for (
  18191. var i = 0;
  18192. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18193. i++
  18194. ) {
  18195. let el =
  18196. this.worksStudent[this.commentIndexJson.toolIndex][i];
  18197. if (el.wid == this.commentDetail.wid) {
  18198. a = 2;
  18199. this.commentOther(
  18200. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18201. this.commentIndexJson.toolIndex,
  18202. i
  18203. );
  18204. break;
  18205. }
  18206. }
  18207. }
  18208. if (a === 1) {
  18209. this.commentDetail = [];
  18210. this.commentIndexJson = {};
  18211. this.commentDialogVisible = false;
  18212. this.$message("此作业已被删除");
  18213. }
  18214. }
  18215. }
  18216. })
  18217. .catch((err) => {
  18218. console.error(err);
  18219. });
  18220. },
  18221. selectStudent() {
  18222. //学生查看自己作业
  18223. let params = {
  18224. uid: this.userid,
  18225. cid: this.id,
  18226. s: this.courseType,
  18227. t: this.taskCount,
  18228. };
  18229. this.ajax
  18230. .get(this.$store.state.api + "selectStudentWorks", params)
  18231. .then((res) => {
  18232. var a =
  18233. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18234. this.taskCount
  18235. ].toolChoose;
  18236. var b = res.data[0];
  18237. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18238. var y = [
  18239. "AVI",
  18240. "NAVI",
  18241. "MPEG",
  18242. "ASF",
  18243. "MOV",
  18244. "WMV",
  18245. "3GP",
  18246. "RM",
  18247. "RMVB",
  18248. "FLV",
  18249. "F4V",
  18250. "H.264",
  18251. "H.265",
  18252. "REAL VIDEO",
  18253. "MKV",
  18254. "WebM",
  18255. "HDDVD",
  18256. "MP4",
  18257. "MPG",
  18258. "M4V",
  18259. "MGV",
  18260. "OGV",
  18261. "QTM",
  18262. "STR",
  18263. "AMC",
  18264. "DVX",
  18265. "EVO",
  18266. "DAT",
  18267. "OGG",
  18268. "OGM",
  18269. ];
  18270. for (var i = 0; i < a.length; i++) {
  18271. this.workStudent[i] = [];
  18272. for (var j = 0; j < b.length; j++) {
  18273. if (i == b[j].tool) {
  18274. if (
  18275. (b[j].type == 1 ||
  18276. b[j].type == 4 ||
  18277. b[j].type == 5 ||
  18278. b[j].type == 6 ||
  18279. b[j].type == 12 ||
  18280. b[j].type == 7) &&
  18281. a[i].tool[0] != 15 &&
  18282. a[i].tool[0] != 4 &&
  18283. a[i].tool[0] != 45 &&
  18284. a[i].tool[0] != 50 &&
  18285. a[i].tool[0] != 32 &&
  18286. a[i].tool[0] != 57 &&
  18287. a[i].tool[0] != 52 &&
  18288. a[i].tool[0] != 69
  18289. ) {
  18290. if (
  18291. c.indexOf(
  18292. b[j].content
  18293. .split(".")
  18294. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18295. ) != -1 &&
  18296. a[i].tool[0] == 16 &&
  18297. b[j].atool != 50
  18298. ) {
  18299. this.workStudent[i].push({
  18300. works: b[j].content,
  18301. sName: b[j].name,
  18302. score: b[j].score,
  18303. img: b[j].img,
  18304. type: 1,
  18305. time: b[j].time,
  18306. userid: b[j].userid,
  18307. wid: b[j].id,
  18308. });
  18309. } else if (
  18310. y.indexOf(
  18311. b[j].content
  18312. .split(".")
  18313. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18314. ) != -1 &&
  18315. a[i].tool[0] == 16 &&
  18316. b[j].atool != 50
  18317. ) {
  18318. this.workStudent[i].push({
  18319. userid: b[j].userid,
  18320. wid: b[j].id,
  18321. works: b[j].content,
  18322. sName: b[j].name,
  18323. score: b[j].score,
  18324. img: b[j].img,
  18325. type: 3,
  18326. time: b[j].time,
  18327. });
  18328. } else if (b[j].type == 6 && b[j].atool != 50) {
  18329. this.workStudent[i].push({
  18330. userid: b[j].userid,
  18331. wid: b[j].id,
  18332. works: b[j].content,
  18333. sName: b[j].name,
  18334. score: b[j].score,
  18335. img: b[j].img,
  18336. type: 4,
  18337. time: b[j].time,
  18338. });
  18339. } else if (b[j].type == 7 && b[j].atool != 50) {
  18340. this.workStudent[i].push({
  18341. userid: b[j].userid,
  18342. wid: b[j].id,
  18343. works: b[j].content,
  18344. sName: b[j].name,
  18345. score: b[j].score,
  18346. img: b[j].img,
  18347. type: 5,
  18348. time: b[j].time,
  18349. });
  18350. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18351. this.workStudent[i].push({
  18352. works: b[j].content,
  18353. sName: b[j].name,
  18354. score: b[j].score,
  18355. img: b[j].img,
  18356. type: 12,
  18357. time: b[j].time,
  18358. userid: b[j].userid,
  18359. wid: b[j].id,
  18360. });
  18361. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18362. this.workStudent[i].push({
  18363. works: b[j].content,
  18364. sName: b[j].name,
  18365. score: b[j].score,
  18366. img: b[j].img,
  18367. type: 0,
  18368. time: b[j].time,
  18369. userid: b[j].userid,
  18370. wid: b[j].id,
  18371. });
  18372. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18373. this.workStudent[i].push({
  18374. works: b[j].content,
  18375. sName: b[j].name,
  18376. score: b[j].score,
  18377. img: b[j].img,
  18378. type: 0,
  18379. time: b[j].time,
  18380. userid: b[j].userid,
  18381. wid: b[j].id,
  18382. });
  18383. }
  18384. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18385. this.workStudent[i].push({
  18386. works: b[j].content,
  18387. sName: b[j].name,
  18388. score: b[j].score,
  18389. img: b[j].img,
  18390. type: 2,
  18391. time: b[j].time,
  18392. userid: b[j].userid,
  18393. wid: b[j].id,
  18394. });
  18395. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18396. this.workStudent[i].push({
  18397. works: b[j].content,
  18398. sName: b[j].name,
  18399. score: b[j].score,
  18400. img: b[j].img,
  18401. type: 20,
  18402. time: b[j].time,
  18403. userid: b[j].userid,
  18404. wid: b[j].id,
  18405. });
  18406. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18407. //问卷
  18408. this.workStudent[i].push({
  18409. works: b[j].content,
  18410. sName: b[j].name,
  18411. score: b[j].score,
  18412. img: b[j].img,
  18413. type: 2,
  18414. time: b[j].time,
  18415. userid: b[j].userid,
  18416. wid: b[j].id,
  18417. });
  18418. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18419. //选择题
  18420. this.workStudent[i].push({
  18421. works: b[j].content,
  18422. sName: b[j].name,
  18423. score: b[j].score,
  18424. img: b[j].img,
  18425. type: 8,
  18426. time: b[j].time,
  18427. userid: b[j].userid,
  18428. wid: b[j].id,
  18429. });
  18430. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18431. //选择题
  18432. this.workStudent[i].push({
  18433. works: b[j].content,
  18434. sName: b[j].name,
  18435. score: b[j].score,
  18436. img: b[j].img,
  18437. type: 9,
  18438. time: b[j].time,
  18439. userid: b[j].userid,
  18440. wid: b[j].id,
  18441. });
  18442. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18443. //选择题
  18444. this.workStudent[i].push({
  18445. works: b[j].content,
  18446. sName: b[j].name,
  18447. score: b[j].score,
  18448. img: b[j].img,
  18449. type: 10,
  18450. time: b[j].time,
  18451. userid: b[j].userid,
  18452. wid: b[j].id,
  18453. });
  18454. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18455. //选择题
  18456. this.workStudent[i].push({
  18457. works: b[j].content,
  18458. sName: b[j].name,
  18459. score: b[j].score,
  18460. img: b[j].img,
  18461. type: 13,
  18462. time: b[j].time,
  18463. userid: b[j].userid,
  18464. wid: b[j].id,
  18465. });
  18466. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18467. //选择题
  18468. this.workStudent[i].push({
  18469. works: b[j].content,
  18470. sName: b[j].name,
  18471. score: b[j].score,
  18472. img: b[j].img,
  18473. type: 12,
  18474. time: b[j].time,
  18475. userid: b[j].userid,
  18476. wid: b[j].id,
  18477. });
  18478. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18479. //选择题
  18480. this.workStudent[i].push({
  18481. works: b[j].content,
  18482. sName: b[j].name,
  18483. score: b[j].score,
  18484. img: b[j].img,
  18485. type: 12,
  18486. time: b[j].time,
  18487. userid: b[j].userid,
  18488. wid: b[j].id,
  18489. });
  18490. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18491. //选择题
  18492. this.workStudent[i].push({
  18493. works: b[j].content,
  18494. sName: b[j].name,
  18495. score: b[j].score,
  18496. img: b[j].img,
  18497. type: 15,
  18498. time: b[j].time,
  18499. userid: b[j].userid,
  18500. wid: b[j].id,
  18501. });
  18502. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18503. //英语写作
  18504. this.workStudent[i].push({
  18505. works: b[j].content,
  18506. sName: b[j].name,
  18507. score: b[j].score,
  18508. img: b[j].img,
  18509. type: 16,
  18510. time: b[j].time,
  18511. userid: b[j].userid,
  18512. wid: b[j].id,
  18513. aiCode: b[j].aiCode,
  18514. teacherCode: b[j].teacherCode
  18515. });
  18516. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18517. //英语口语
  18518. this.workStudent[i].push({
  18519. works: b[j].content,
  18520. sName: b[j].name,
  18521. score: b[j].score,
  18522. img: b[j].img,
  18523. type: 17,
  18524. time: b[j].time,
  18525. userid: b[j].userid,
  18526. wid: b[j].id,
  18527. });
  18528. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18529. //交互视频
  18530. this.workStudent[i].push({
  18531. works: b[j].content,
  18532. sName: b[j].name,
  18533. score: b[j].score,
  18534. img: b[j].img,
  18535. type: 14,
  18536. time: b[j].time,
  18537. userid: b[j].userid,
  18538. wid: b[j].id,
  18539. });
  18540. }
  18541. }
  18542. }
  18543. }
  18544. })
  18545. .catch((err) => {
  18546. console.error(err);
  18547. });
  18548. },
  18549. openVideo(w) {
  18550. this.videoDetail = {};
  18551. this.playerOptions1.sources[0].src = w.works;
  18552. this.videoDetail = this.playerOptions1;
  18553. this.videoVisible = true;
  18554. },
  18555. isLikes(wid, uid, t, c, isLikes,sName) {
  18556. if (isLikes == false) {
  18557. let params = [
  18558. {
  18559. wid: wid,
  18560. lid: uid,
  18561. t: t,
  18562. c: c,
  18563. },
  18564. ];
  18565. this.ajax
  18566. .post(this.$store.state.api + "insertComment", params)
  18567. .then((res) => {
  18568. this.$message({
  18569. message: "点赞成功",
  18570. type: "success",
  18571. });
  18572. this.selectSWorks();
  18573. this.selectStudent();
  18574. if(this.tType!=2){
  18575. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18576. }
  18577. })
  18578. .catch((err) => {
  18579. this.$message.error("点赞失败");
  18580. console.error(err);
  18581. });
  18582. } else {
  18583. let params = {
  18584. wid: wid,
  18585. lid: uid,
  18586. type: t,
  18587. };
  18588. this.ajax
  18589. .get(this.$store.state.api + "deleteComment", params)
  18590. .then((res) => {
  18591. this.$message({
  18592. message: "取消点赞成功",
  18593. type: "success",
  18594. });
  18595. this.selectSWorks();
  18596. this.selectStudent();
  18597. })
  18598. .catch((err) => {
  18599. console.error(err);
  18600. });
  18601. }
  18602. },
  18603. deleteComment(wid) {
  18604. this.$confirm("确定删除此评论吗?", "提示", {
  18605. confirmButtonText: "确定",
  18606. cancelButtonText: "取消",
  18607. type: "warning",
  18608. })
  18609. .then(() => {
  18610. let params = {
  18611. id: wid,
  18612. };
  18613. this.ajax
  18614. .get(this.$store.state.api + "deleteComment2", params)
  18615. .then((res) => {
  18616. this.$message({
  18617. message: "删除评论成功",
  18618. type: "success",
  18619. });
  18620. this.selectSWorks();
  18621. this.selectStudent();
  18622. })
  18623. .catch((err) => {
  18624. console.error(err);
  18625. });
  18626. })
  18627. .catch(() => {});
  18628. },
  18629. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18630. this.commentIndexJson = {
  18631. toolIndex: toolIndex,
  18632. wIndex: wIndex,
  18633. gindex: gindex,
  18634. gid: gid,
  18635. };
  18636. this.commentDetail = [];
  18637. this.commentDialogVisible = true;
  18638. this.commentDetail = w;
  18639. if (w.works && w.type == 1) {
  18640. // this.pptImgUrl = "";
  18641. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18642. if (
  18643. a.indexOf(
  18644. w.works
  18645. .split(".")
  18646. [w.works.split(".").length - 1].toLocaleUpperCase()
  18647. ) != -1
  18648. ) {
  18649. let _uuurl = await this.checkLink(w.works);
  18650. console.log(_uuurl)
  18651. this.pptImgUrl =
  18652. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18653. this.showPDF = false;
  18654. } else if (
  18655. w.works
  18656. .split(".")
  18657. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18658. ) {
  18659. this.pptImgUrl = w.works;
  18660. this.showPDF = true;
  18661. }
  18662. } else if (w.works && w.type == 3) {
  18663. this.videoDetail = {};
  18664. this.playerOptions1.sources[0].src = w.works;
  18665. this.videoDetail = this.playerOptions1;
  18666. // this.videoVisible = true;
  18667. } else if (w.works && w.type == 4) {
  18668. this.eScore = JSON.parse(w.works);
  18669. this.rateJson =
  18670. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18671. this.taskCount
  18672. ].toolChoose[toolIndex].rateJson;
  18673. } else if (w.works && w.type == 10) {
  18674. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18675. } else if (w.works && w.type == 13) {
  18676. this.wordJson =
  18677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18678. this.taskCount
  18679. ].toolChoose[toolIndex].wordJson;
  18680. }
  18681. },
  18682. async openScore(w, index) {
  18683. this.wScore = 0;
  18684. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18685. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18686. this.commentDetail = [];
  18687. if(w.type == 17){
  18688. this.dialogVisibleENScore = true;
  18689. }else{
  18690. this.dialogVisibleScore = true;
  18691. }
  18692. this.commentDetail = w;
  18693. if (w.works && w.type == 1) {
  18694. this.pptImgUrl = "";
  18695. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18696. if (
  18697. a.indexOf(
  18698. w.works
  18699. .split(".")
  18700. [w.works.split(".").length - 1].toLocaleUpperCase()
  18701. ) != -1
  18702. ) {
  18703. let _uuurl = await this.checkLink(w.works);
  18704. console.log(_uuurl)
  18705. this.pptImgUrl =
  18706. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18707. this.showPDF = false;
  18708. } else if (
  18709. w.works
  18710. .split(".")
  18711. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18712. ) {
  18713. this.pptImgUrl = w.works;
  18714. this.showPDF = true;
  18715. }
  18716. } else if (w.works && w.type == 3) {
  18717. this.videoDetail = {};
  18718. this.playerOptions1.sources[0].src = w.works;
  18719. this.videoDetail = this.playerOptions1;
  18720. }else if(w.type == 17){
  18721. let englishVoiceJson = {}
  18722. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18723. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18724. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18725. .toolChoose[index].englishVoiceJson
  18726. : {};
  18727. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18728. }
  18729. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18730. },
  18731. addComment(wid, uid, t,detail) {
  18732. if (this.commentText == "") {
  18733. this.$message.error("请输入评论");
  18734. return;
  18735. }
  18736. let params2 = [
  18737. {
  18738. wid: wid,
  18739. lid: uid,
  18740. t: t,
  18741. },
  18742. ];
  18743. this.ajax
  18744. .post(this.$store.state.api + "getComment", params2)
  18745. .then((res) => {
  18746. if (res.data[0].length > 0) {
  18747. this.$message.error("一个作业只能评论一条");
  18748. } else {
  18749. let params = [
  18750. {
  18751. wid: wid,
  18752. lid: uid,
  18753. t: t,
  18754. c: this.commentText,
  18755. },
  18756. ];
  18757. this.ajax
  18758. .post(this.$store.state.api + "insertComment", params)
  18759. .then((res) => {
  18760. this.$message({
  18761. message: "评论成功",
  18762. type: "success",
  18763. });
  18764. this.commentText = "";
  18765. this.selectSWorks();
  18766. this.selectStudent();
  18767. if(this.tType!=2){
  18768. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18769. }
  18770. })
  18771. .catch((err) => {
  18772. this.$message.error("评论失败");
  18773. console.error(err);
  18774. });
  18775. }
  18776. })
  18777. .catch((err) => {
  18778. // this.$message.error("评论失败");
  18779. console.error(err);
  18780. });
  18781. },
  18782. scoreWork(wid,sName) {
  18783. if (this.wScore == 0) {
  18784. this.$message.error("请评分");
  18785. return;
  18786. }
  18787. let params = [
  18788. {
  18789. wid: wid,
  18790. score: JSON.stringify({
  18791. wScore: this.wScore,
  18792. detail: this.scoreDetail,
  18793. }),
  18794. },
  18795. ];
  18796. this.ajax
  18797. .post(this.$store.state.api + "scoreWork", params)
  18798. .then((res) => {
  18799. this.$message({
  18800. message: "评分成功",
  18801. type: "success",
  18802. });
  18803. this.wScore = 0;
  18804. this.scoreDetail = "";
  18805. this.dialogVisibleScore = false;
  18806. this.selectSWorks();
  18807. this.selectStudent();
  18808. if(this.tType!=2){
  18809. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18810. }
  18811. })
  18812. .catch((err) => {
  18813. this.$message.error("评分失败");
  18814. console.error(err);
  18815. });
  18816. },
  18817. openXz(w, i) {
  18818. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18819. .taskJson[this.taskCount].toolChoose[i].selectJson
  18820. ? JSON.parse(
  18821. JSON.stringify(
  18822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18823. this.taskCount
  18824. ].toolChoose[i].selectJson
  18825. )
  18826. )
  18827. : { url: "", select: [], answer: [] };
  18828. var a = w.works.split(",");
  18829. for (var k = 0; k < a.length; k++) {
  18830. a[k] = parseInt(a[k]);
  18831. }
  18832. this.selectAnswer = { answer: a, stu: w.sName };
  18833. this.isSelect = true;
  18834. this.dialogVisibleSelect = true;
  18835. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18836. },
  18837. openSen(w, i) {
  18838. this.sentenceList1 = JSON.parse(w.works);
  18839. this.sentenceList1.stuName = w.sName;
  18840. this.dialogVisibleSentence1 = true;
  18841. },
  18842. openPj(w, toolindex) {
  18843. this.isStar = true;
  18844. this.eScore = JSON.parse(w);
  18845. this.rateJson =
  18846. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18847. this.taskCount
  18848. ].toolChoose[toolindex].rateJson;
  18849. this.studentEvalDialogVisible = true;
  18850. },
  18851. openEnglishEva(id,i){
  18852. let params = {
  18853. wid: id
  18854. };
  18855. this.ajax
  18856. .get(this.$store.state.api + "selectEngWork", params)
  18857. .then((res) => {
  18858. this.evaEngJson.message = res.data[0][0];
  18859. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18860. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18861. .toolChoose[i].englishList;
  18862. this.engEvaDialogVisible = true;
  18863. })
  18864. .catch((err) => {
  18865. console.error(err);
  18866. });
  18867. },
  18868. deleteWorks(id) {
  18869. this.$confirm("确定删除此作业吗?", "提示", {
  18870. confirmButtonText: "确定",
  18871. cancelButtonText: "取消",
  18872. type: "warning",
  18873. })
  18874. .then(() => {
  18875. let params = [
  18876. {
  18877. id: id,
  18878. },
  18879. ];
  18880. this.ajax
  18881. .post(this.$store.state.api + "deleteCourseWork", params)
  18882. .then((res) => {
  18883. this.$message({
  18884. message: "删除成功",
  18885. type: "success",
  18886. });
  18887. this.selectStudent();
  18888. this.selectSWorks();
  18889. this.selectSLook();
  18890. })
  18891. .catch((err) => {
  18892. this.$message.error("网络异常");
  18893. console.error(err);
  18894. });
  18895. })
  18896. .catch(() => {});
  18897. },
  18898. noIsAi() {
  18899. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18900. },
  18901. getLang() {
  18902. let lang = "";
  18903. if (this.languageSetting == 0) {
  18904. lang = "Chinese.";
  18905. } else if (this.languageSetting == 1) {
  18906. lang = "Traditional Chinese.";
  18907. } else if (this.languageSetting == 2) {
  18908. lang = "English.";
  18909. }
  18910. return lang;
  18911. },
  18912. selectSWorks(gindex) {
  18913. //教师查看全部作业
  18914. let params = {
  18915. cid: this.id,
  18916. s: this.courseType,
  18917. t: this.taskCount
  18918. };
  18919. this.ajax
  18920. .get(this.$store.state.api + "selectSWorks", params)
  18921. .then(res => {
  18922. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18923. this.taskCount
  18924. ].toolChoose;
  18925. var b = res.data[0];
  18926. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18927. var y = [
  18928. "AVI",
  18929. "NAVI",
  18930. "MPEG",
  18931. "ASF",
  18932. "MOV",
  18933. "WMV",
  18934. "3GP",
  18935. "RM",
  18936. "RMVB",
  18937. "FLV",
  18938. "F4V",
  18939. "H.264",
  18940. "H.265",
  18941. "REAL VIDEO",
  18942. "MKV",
  18943. "WebM",
  18944. "HDDVD",
  18945. "MP4",
  18946. "MPG",
  18947. "M4V",
  18948. "MGV",
  18949. "OGV",
  18950. "QTM",
  18951. "STR",
  18952. "AMC",
  18953. "DVX",
  18954. "EVO",
  18955. "DAT",
  18956. "OGG",
  18957. "OGM"
  18958. ];
  18959. var d = res.data[1];
  18960. var e = res.data[2];
  18961. var f = res.data[3];
  18962. let _worksStudent = [];
  18963. var _worksStudent2 = [];
  18964. for (var i = 0; i < a.length; i++) {
  18965. _worksStudent[i] = [];
  18966. _worksStudent2[i] = [];
  18967. if (
  18968. !this.isCloseList[i] ||
  18969. this.isCloseList[i].isClose == undefined
  18970. ) {
  18971. this.isCloseList[i] = { isClose: 0 };
  18972. }
  18973. this.groupStudent[i] = [];
  18974. this.groupStudentUid[i] = [];
  18975. if (this.isGroup) {
  18976. for (
  18977. var groupI = 0;
  18978. groupI < this.courseGroup.group.length;
  18979. groupI++
  18980. ) {
  18981. this.courseGroup.group[groupI].works[i] = [];
  18982. }
  18983. }
  18984. this.isWorksS[i] = [];
  18985. this.checkJson[i] = [];
  18986. if (a[i].tool[0] == 49) {
  18987. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18988. this.groupStudent[i][gA] = [];
  18989. this.groupStudentUid[i][gA] = [];
  18990. _worksStudent[i][gA] = [];
  18991. _worksStudent2[i][gA] = [];
  18992. this.isCloseList[i][gA] = [];
  18993. for (var g = 0; g < f.length; g++) {
  18994. if (
  18995. f[g].ttype == 2 &&
  18996. this.tcid &&
  18997. this.arrayToArray(
  18998. f[g].classid ? f[g].classid.split(",") : [],
  18999. this.tcid.split(",")
  19000. ).length == 0
  19001. ) {
  19002. continue;
  19003. }
  19004. let _classId = this.arrayToArray(
  19005. this.courseDetail.juri
  19006. ? this.courseDetail.juri.split(",")
  19007. : [],
  19008. this.classId ? this.classId.split(",") : []
  19009. );
  19010. if (
  19011. gA == f[g].group &&
  19012. f[g].tool == i &&
  19013. (this.arrayToArray(
  19014. f[g].classid ? f[g].classid.split(",") : [],
  19015. this.tcid.split(",")
  19016. ).length !== 0 ||
  19017. this.arrayToArray(
  19018. f[g].classid ? f[g].classid.split(",") : [],
  19019. _classId
  19020. ).length !== 0 ||
  19021. (!this.tcid && this.tType == "1") ||
  19022. this.courseDetail.juri === "" ||
  19023. f[g].ttype == 1)
  19024. ) {
  19025. this.groupStudent[i][gA].push(f[g]);
  19026. this.groupStudentUid[i][gA].push(f[g].userid);
  19027. }
  19028. }
  19029. }
  19030. this.$forceUpdate();
  19031. }
  19032. for (var j = 0; j < b.length; j++) {
  19033. if (
  19034. b[j].ttype == 2 &&
  19035. this.tcid &&
  19036. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19037. .length == 0
  19038. ) {
  19039. continue;
  19040. }
  19041. var likesCount = 0;
  19042. var commentCount = 0;
  19043. var isLikes = false;
  19044. var commentJson = [];
  19045. var likeJson = [];
  19046. var data = b[j];
  19047. if (i == b[j].tool) {
  19048. if (data.type == 2 && a[i].tool[0] == 4) {
  19049. // if(JSON.parse(data.content)[0].anwer){
  19050. var checkL =
  19051. JSON.parse(data.content)[0].anwer instanceof Array
  19052. ? JSON.parse(data.content)[0].anwer
  19053. : JSON.parse(data.content)[0].anwer.split(",");
  19054. for (var z = 0; z < checkL.length; z++) {
  19055. if (!this.checkJson[i][z]) {
  19056. this.checkJson[i].push({
  19057. checkCount: [],
  19058. checkPerson: [],
  19059. rightPerson: []
  19060. });
  19061. }
  19062. if (!this.checkJson[i][z].checkCount.length) {
  19063. this.checkJson[i][z].checkCount = [];
  19064. let _askItemCount = JSON.parse(data.content)[0].askJson
  19065. .askJson[z].askItem;
  19066. for (var aic = 0; aic < _askItemCount; aic++) {
  19067. this.checkJson[i][z].checkCount.push(0);
  19068. }
  19069. }
  19070. if (checkL[z] instanceof Array) {
  19071. if (
  19072. JSON.parse(data.content)[0]
  19073. .anwer.sort()
  19074. .join(",") == checkL[z].sort().join(",")
  19075. ) {
  19076. this.checkJson[i][z].rightPerson.push(data.name);
  19077. }
  19078. for (var q = 0; q < checkL[z].length; q++) {
  19079. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19080. ? this.checkJson[i][z].checkPerson[
  19081. parseInt(checkL[z][q])
  19082. ].push(data.name)
  19083. : (this.checkJson[i][z].checkPerson[
  19084. parseInt(checkL[z][q])
  19085. ] = [data.name]);
  19086. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19087. ? this.checkJson[i][z].checkCount[
  19088. parseInt(checkL[z][q])
  19089. ]++
  19090. : (this.checkJson[i][z].checkCount[
  19091. parseInt(checkL[z][q])
  19092. ] = 1);
  19093. }
  19094. } else {
  19095. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19096. this.checkJson[i][z].rightPerson.push(data.name);
  19097. }
  19098. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19099. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19100. ? this.checkJson[i][z].checkPerson[
  19101. parseInt(checkL[z])
  19102. ].push(data.name)
  19103. : (this.checkJson[i][z].checkPerson[
  19104. parseInt(checkL[z])
  19105. ] = [data.name]);
  19106. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19107. ? this.checkJson[i][z].checkCount[
  19108. parseInt(checkL[z])
  19109. ]++
  19110. : (this.checkJson[i][z].checkCount[
  19111. parseInt(checkL[z])
  19112. ] = 1);
  19113. }
  19114. }
  19115. }
  19116. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19117. var checkL = JSON.parse(data.content)[0].anwer;
  19118. for (var z = 0; z < checkL.length; z++) {
  19119. if (!this.checkJson[i][z]) {
  19120. this.checkJson[i].push({
  19121. checkCount: [],
  19122. checkPerson: [],
  19123. rightPerson: []
  19124. });
  19125. }
  19126. if (!this.checkJson[i][z].checkCount.length) {
  19127. this.checkJson[i][z].checkCount = [];
  19128. let _askItemCount = JSON.parse(data.content)[0].testJson
  19129. .testJson[z].testItem;
  19130. for (var aic = 0; aic < _askItemCount; aic++) {
  19131. this.checkJson[i][z].checkCount.push(0);
  19132. }
  19133. }
  19134. if (checkL[z] instanceof Array) {
  19135. if (
  19136. JSON.parse(data.content)[0]
  19137. .testJson.testJson[z].answer.sort()
  19138. .join(",") == checkL[z].sort().join(",")
  19139. ) {
  19140. this.checkJson[i][z].rightPerson.push(data.name);
  19141. }
  19142. for (var q = 0; q < checkL[z].length; q++) {
  19143. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19144. ? this.checkJson[i][z].checkPerson[
  19145. parseInt(checkL[z][q])
  19146. ].push(data.name)
  19147. : (this.checkJson[i][z].checkPerson[
  19148. parseInt(checkL[z][q])
  19149. ] = [data.name]);
  19150. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19151. ? this.checkJson[i][z].checkCount[
  19152. parseInt(checkL[z][q])
  19153. ]++
  19154. : (this.checkJson[i][z].checkCount[
  19155. parseInt(checkL[z][q])
  19156. ] = 1);
  19157. }
  19158. } else {
  19159. if (
  19160. JSON.parse(data.content)[0].testJson.testJson[z]
  19161. .answer == checkL[z]
  19162. ) {
  19163. this.checkJson[i][z].rightPerson.push(data.name);
  19164. }
  19165. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19166. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19167. ? this.checkJson[i][z].checkPerson[
  19168. parseInt(checkL[z])
  19169. ].push(data.name)
  19170. : (this.checkJson[i][z].checkPerson[
  19171. parseInt(checkL[z])
  19172. ] = [data.name]);
  19173. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19174. ? this.checkJson[i][z].checkCount[
  19175. parseInt(checkL[z])
  19176. ]++
  19177. : (this.checkJson[i][z].checkCount[
  19178. parseInt(checkL[z])
  19179. ] = 1);
  19180. }
  19181. }
  19182. }
  19183. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19184. var checkL = JSON.parse(data.content);
  19185. for (var z = 0; z < checkL.length; z++) {
  19186. if (!this.checkJson[i][z]) {
  19187. this.checkJson[i].push({
  19188. checkCount: [],
  19189. checkPerson: [],
  19190. rightPerson: []
  19191. });
  19192. }
  19193. this.checkJson[i][z].checkPerson.push(data.name);
  19194. if (
  19195. checkL[z].chooseSenList.toString() ==
  19196. checkL[z].rightAnswer.toString()
  19197. ) {
  19198. this.checkJson[i][z].rightPerson.push(data.name);
  19199. }
  19200. }
  19201. }
  19202. for (var k = 0; k < d.length; k++) {
  19203. //点赞
  19204. if (d[k].workId == b[j].id) {
  19205. likesCount++;
  19206. likeJson.push(d[k]);
  19207. if (d[k].likesId == this.userid) {
  19208. isLikes = true;
  19209. }
  19210. }
  19211. }
  19212. for (var l = 0; l < e.length; l++) {
  19213. //评论
  19214. if (e[l].workId == b[j].id) {
  19215. if (e[l].comment != "") {
  19216. commentCount++;
  19217. commentJson.push({
  19218. commentText: e[l].comment,
  19219. commentTime: e[l].commentTime,
  19220. commentPeople: e[l].commentPeople,
  19221. userid: e[l].userid,
  19222. wid: e[l].id
  19223. });
  19224. }
  19225. }
  19226. }
  19227. if (
  19228. (b[j].type == 1 ||
  19229. b[j].type == 4 ||
  19230. b[j].type == 5 ||
  19231. b[j].type == 6 ||
  19232. b[j].type == 12 ||
  19233. b[j].type == 7) &&
  19234. a[i].tool[0] != 15 &&
  19235. a[i].tool[0] != 4 &&
  19236. a[i].tool[0] != 45 &&
  19237. a[i].tool[0] != 50 &&
  19238. a[i].tool[0] != 32 &&
  19239. a[i].tool[0] != 57 &&
  19240. a[i].tool[0] != 52
  19241. ) {
  19242. if (
  19243. c.indexOf(
  19244. b[j].content
  19245. .split(".")
  19246. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19247. ) != -1 &&
  19248. a[i].tool[0] == 16 &&
  19249. b[j].atool != 50
  19250. ) {
  19251. let _works = {
  19252. userid: b[j].userid,
  19253. ateacher: b[j].ateacher,
  19254. wid: b[j].id,
  19255. works: b[j].content,
  19256. sName: b[j].name,
  19257. type: 1,
  19258. ttype: b[j].ttype,
  19259. time: b[j].time,
  19260. score: b[j].score,
  19261. img: b[j].img,
  19262. likesCount: likesCount,
  19263. commentCount: commentCount,
  19264. isLikes: isLikes,
  19265. commentJson: commentJson,
  19266. likeJson: likeJson
  19267. };
  19268. if (this.isGroup) {
  19269. let isGw = 1;
  19270. for (
  19271. var groupI = 0;
  19272. groupI < this.courseGroup.group.length;
  19273. groupI++
  19274. ) {
  19275. let gid = this.courseGroup.group[groupI].id;
  19276. if (
  19277. this.courseGroupStudentUid[gid].indexOf(
  19278. b[j].userid
  19279. ) != -1
  19280. ) {
  19281. isGw = 2;
  19282. this.courseGroup.group[groupI].works[i].push(_works);
  19283. break;
  19284. }
  19285. }
  19286. if (isGw == 1) {
  19287. _worksStudent[i].push(_works);
  19288. }
  19289. } else {
  19290. _worksStudent[i].push(_works);
  19291. }
  19292. _worksStudent2[i].push(_works);
  19293. this.isWorksS[i].push({
  19294. uid: b[j].userid,
  19295. sName: b[j].name
  19296. });
  19297. } else if (
  19298. y.indexOf(
  19299. b[j].content
  19300. .split(".")
  19301. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19302. ) != -1 &&
  19303. a[i].tool[0] == 16 &&
  19304. b[j].atool != 50
  19305. ) {
  19306. let _works = {
  19307. userid: b[j].userid,
  19308. ateacher: b[j].ateacher,
  19309. wid: b[j].id,
  19310. works: b[j].content,
  19311. sName: b[j].name,
  19312. type: 3,
  19313. ttype: b[j].ttype,
  19314. time: b[j].time,
  19315. score: b[j].score,
  19316. img: b[j].img,
  19317. likesCount: likesCount,
  19318. commentCount: commentCount,
  19319. isLikes: isLikes,
  19320. commentJson: commentJson,
  19321. likeJson: likeJson
  19322. };
  19323. if (this.isGroup) {
  19324. let isGw = 1;
  19325. for (
  19326. var groupI = 0;
  19327. groupI < this.courseGroup.group.length;
  19328. groupI++
  19329. ) {
  19330. let gid = this.courseGroup.group[groupI].id;
  19331. if (
  19332. this.courseGroupStudentUid[gid].indexOf(
  19333. b[j].userid
  19334. ) != -1
  19335. ) {
  19336. isGw = 2;
  19337. this.courseGroup.group[groupI].works[i].push(_works);
  19338. break;
  19339. }
  19340. }
  19341. if (isGw == 1) {
  19342. _worksStudent[i].push(_works);
  19343. }
  19344. } else {
  19345. _worksStudent[i].push(_works);
  19346. }
  19347. _worksStudent2[i].push(_works);
  19348. this.isWorksS[i].push({
  19349. uid: b[j].userid,
  19350. sName: b[j].name
  19351. });
  19352. } else if (b[j].type == 6 && b[j].atool != 50) {
  19353. let _works = {
  19354. userid: b[j].userid,
  19355. ateacher: b[j].ateacher,
  19356. wid: b[j].id,
  19357. works: b[j].content,
  19358. sName: b[j].name,
  19359. type: 4,
  19360. ttype: b[j].ttype,
  19361. time: b[j].time,
  19362. score: b[j].score,
  19363. img: b[j].img,
  19364. likesCount: likesCount,
  19365. commentCount: commentCount,
  19366. isLikes: isLikes,
  19367. commentJson: commentJson,
  19368. likeJson: likeJson
  19369. };
  19370. _worksStudent[i].push(_works);
  19371. _worksStudent2[i].push(_works);
  19372. this.isWorksS[i].push({
  19373. uid: b[j].userid,
  19374. sName: b[j].name
  19375. });
  19376. } else if (b[j].type == 7 && b[j].atool != 50) {
  19377. let _work = {
  19378. userid: b[j].userid,
  19379. ateacher: b[j].ateacher,
  19380. wid: b[j].id,
  19381. works: b[j].content,
  19382. sName: b[j].name,
  19383. type: 5,
  19384. ttype: b[j].ttype,
  19385. time: b[j].time,
  19386. score: b[j].score,
  19387. img: b[j].img,
  19388. likesCount: likesCount,
  19389. commentCount: commentCount,
  19390. isLikes: isLikes,
  19391. commentJson: commentJson,
  19392. likeJson: likeJson
  19393. };
  19394. _worksStudent[i].push(_work);
  19395. _worksStudent2[i].push(_work);
  19396. this.isWorksS[i].push({
  19397. uid: b[j].userid,
  19398. sName: b[j].name
  19399. });
  19400. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19401. let _works = {
  19402. userid: b[j].userid,
  19403. ateacher: b[j].ateacher,
  19404. wid: b[j].id,
  19405. works: b[j].content,
  19406. sName: b[j].name,
  19407. type: 12,
  19408. ttype: b[j].ttype,
  19409. time: b[j].time,
  19410. score: b[j].score,
  19411. img: b[j].img,
  19412. likesCount: likesCount,
  19413. commentCount: commentCount,
  19414. isLikes: isLikes,
  19415. commentJson: commentJson,
  19416. likeJson: likeJson
  19417. };
  19418. if (this.isGroup) {
  19419. let isGw = 1;
  19420. for (
  19421. var groupI = 0;
  19422. groupI < this.courseGroup.group.length;
  19423. groupI++
  19424. ) {
  19425. let gid = this.courseGroup.group[groupI].id;
  19426. if (
  19427. this.courseGroupStudentUid[gid].indexOf(
  19428. b[j].userid
  19429. ) != -1
  19430. ) {
  19431. isGw = 2;
  19432. this.courseGroup.group[groupI].works[i].push(_works);
  19433. break;
  19434. }
  19435. }
  19436. if (isGw == 1) {
  19437. _worksStudent[i].push(_works);
  19438. }
  19439. } else {
  19440. _worksStudent[i].push(_works);
  19441. }
  19442. _worksStudent2[i].push(_works);
  19443. this.isWorksS[i].push({
  19444. uid: b[j].userid,
  19445. sName: b[j].name
  19446. });
  19447. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19448. let _works = {
  19449. userid: b[j].userid,
  19450. ateacher: b[j].ateacher,
  19451. wid: b[j].id,
  19452. works: b[j].content,
  19453. sName: b[j].name,
  19454. type: 0,
  19455. ttype: b[j].ttype,
  19456. time: b[j].time,
  19457. score: b[j].score,
  19458. img: b[j].img,
  19459. likesCount: likesCount,
  19460. commentCount: commentCount,
  19461. isLikes: isLikes,
  19462. commentJson: commentJson,
  19463. likeJson: likeJson
  19464. };
  19465. if (this.isGroup) {
  19466. let isGw = 1;
  19467. for (
  19468. var groupI = 0;
  19469. groupI < this.courseGroup.group.length;
  19470. groupI++
  19471. ) {
  19472. let gid = this.courseGroup.group[groupI].id;
  19473. if (
  19474. this.courseGroupStudentUid[gid].indexOf(
  19475. b[j].userid
  19476. ) != -1
  19477. ) {
  19478. isGw = 2;
  19479. this.courseGroup.group[groupI].works[i].push(_works);
  19480. break;
  19481. }
  19482. }
  19483. if (isGw == 1) {
  19484. _worksStudent[i].push(_works);
  19485. }
  19486. } else {
  19487. _worksStudent[i].push(_works);
  19488. }
  19489. _worksStudent2[i].push(_works);
  19490. this.isWorksS[i].push({
  19491. uid: b[j].userid,
  19492. sName: b[j].name
  19493. });
  19494. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19495. let _works = {
  19496. userid: b[j].userid,
  19497. ateacher: b[j].ateacher,
  19498. wid: b[j].id,
  19499. works: b[j].content,
  19500. sName: b[j].name,
  19501. type: 0,
  19502. ttype: b[j].ttype,
  19503. time: b[j].time,
  19504. score: b[j].score,
  19505. img: b[j].img,
  19506. likesCount: likesCount,
  19507. commentCount: commentCount,
  19508. isLikes: isLikes,
  19509. commentJson: commentJson,
  19510. likeJson: likeJson
  19511. };
  19512. if (this.isGroup) {
  19513. let isGw = 1;
  19514. for (
  19515. var groupI = 0;
  19516. groupI < this.courseGroup.group.length;
  19517. groupI++
  19518. ) {
  19519. let gid = this.courseGroup.group[groupI].id;
  19520. if (
  19521. this.courseGroupStudentUid[gid].indexOf(
  19522. b[j].userid
  19523. ) != -1
  19524. ) {
  19525. isGw = 2;
  19526. this.courseGroup.group[groupI].works[i].push(_works);
  19527. break;
  19528. }
  19529. }
  19530. if (isGw == 1) {
  19531. _worksStudent[i].push(_works);
  19532. }
  19533. } else {
  19534. _worksStudent[i].push(_works);
  19535. }
  19536. _worksStudent2[i].push(_works);
  19537. this.isWorksS[i].push({
  19538. uid: b[j].userid,
  19539. sName: b[j].name
  19540. });
  19541. }
  19542. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19543. let _works = {
  19544. userid: b[j].userid,
  19545. ateacher: b[j].ateacher,
  19546. wid: b[j].id,
  19547. works: b[j].content,
  19548. sName: b[j].name,
  19549. type: 2,
  19550. ttype: b[j].ttype,
  19551. time: b[j].time,
  19552. score: b[j].score,
  19553. img: b[j].img,
  19554. likesCount: likesCount,
  19555. commentCount: commentCount,
  19556. isLikes: isLikes,
  19557. commentJson: commentJson,
  19558. likeJson: likeJson
  19559. };
  19560. if (this.isGroup) {
  19561. let isGw = 1;
  19562. for (
  19563. var groupI = 0;
  19564. groupI < this.courseGroup.group.length;
  19565. groupI++
  19566. ) {
  19567. let gid = this.courseGroup.group[groupI].id;
  19568. if (
  19569. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19570. -1
  19571. ) {
  19572. isGw = 2;
  19573. this.courseGroup.group[groupI].works[i].push(_works);
  19574. break;
  19575. }
  19576. }
  19577. if (isGw == 1) {
  19578. _worksStudent[i].push(_works);
  19579. }
  19580. } else {
  19581. _worksStudent[i].push(_works);
  19582. }
  19583. _worksStudent2[i].push(_works);
  19584. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19585. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19586. let _works = {
  19587. userid: b[j].userid,
  19588. ateacher: b[j].ateacher,
  19589. wid: b[j].id,
  19590. works: b[j].content,
  19591. sName: b[j].name,
  19592. type: 20,
  19593. ttype: b[j].ttype,
  19594. time: b[j].time,
  19595. score: b[j].score,
  19596. img: b[j].img,
  19597. likesCount: likesCount,
  19598. commentCount: commentCount,
  19599. isLikes: isLikes,
  19600. commentJson: commentJson,
  19601. likeJson: likeJson
  19602. };
  19603. if (this.isGroup) {
  19604. let isGw = 1;
  19605. for (
  19606. var groupI = 0;
  19607. groupI < this.courseGroup.group.length;
  19608. groupI++
  19609. ) {
  19610. let gid = this.courseGroup.group[groupI].id;
  19611. if (
  19612. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19613. -1
  19614. ) {
  19615. isGw = 2;
  19616. this.courseGroup.group[groupI].works[i].push(_works);
  19617. break;
  19618. }
  19619. }
  19620. if (isGw == 1) {
  19621. _worksStudent[i].push(_works);
  19622. }
  19623. } else {
  19624. _worksStudent[i].push(_works);
  19625. }
  19626. _worksStudent2[i].push(_works);
  19627. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19628. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19629. //问卷
  19630. let _work = {
  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: 2,
  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. _worksStudent[i].push(_work);
  19648. _worksStudent2[i].push(_work);
  19649. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19650. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19651. //选择题
  19652. let _work = {
  19653. userid: b[j].userid,
  19654. ateacher: b[j].ateacher,
  19655. wid: b[j].id,
  19656. works: b[j].content,
  19657. sName: b[j].name,
  19658. type: 8,
  19659. ttype: b[j].ttype,
  19660. time: b[j].time,
  19661. score: b[j].score,
  19662. img: b[j].img,
  19663. likesCount: likesCount,
  19664. commentCount: commentCount,
  19665. isLikes: isLikes,
  19666. commentJson: commentJson,
  19667. likeJson: likeJson
  19668. };
  19669. _worksStudent[i].push(_work);
  19670. _worksStudent2[i].push(_work);
  19671. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19672. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19673. //选择题
  19674. let _work = {
  19675. userid: b[j].userid,
  19676. ateacher: b[j].ateacher,
  19677. wid: b[j].id,
  19678. works: b[j].content,
  19679. sName: b[j].name,
  19680. type: 9,
  19681. ttype: b[j].ttype,
  19682. time: b[j].time,
  19683. score: b[j].score,
  19684. img: b[j].img,
  19685. likesCount: likesCount,
  19686. commentCount: commentCount,
  19687. isLikes: isLikes,
  19688. commentJson: commentJson,
  19689. likeJson: likeJson
  19690. };
  19691. _worksStudent[i].push(_work);
  19692. _worksStudent2[i].push(_work);
  19693. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19694. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19695. //选择题
  19696. let _work = {
  19697. userid: b[j].userid,
  19698. ateacher: b[j].ateacher,
  19699. wid: b[j].id,
  19700. works: b[j].content,
  19701. sName: b[j].name,
  19702. type: 10,
  19703. ttype: b[j].ttype,
  19704. time: b[j].time,
  19705. score: b[j].score,
  19706. img: b[j].img,
  19707. likesCount: likesCount,
  19708. commentCount: commentCount,
  19709. isLikes: isLikes,
  19710. commentJson: commentJson,
  19711. likeJson: likeJson
  19712. };
  19713. _worksStudent[i].push(_work);
  19714. _worksStudent2[i].push(_work);
  19715. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19716. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19717. //选择题
  19718. let _work = {
  19719. userid: b[j].userid,
  19720. ateacher: b[j].ateacher,
  19721. wid: b[j].id,
  19722. works: b[j].content,
  19723. sName: b[j].name,
  19724. type: 13,
  19725. ttype: b[j].ttype,
  19726. time: b[j].time,
  19727. score: b[j].score,
  19728. img: b[j].img,
  19729. likesCount: likesCount,
  19730. commentCount: commentCount,
  19731. isLikes: isLikes,
  19732. commentJson: commentJson,
  19733. likeJson: likeJson
  19734. };
  19735. _worksStudent[i].push(_work);
  19736. _worksStudent2[i].push(_work);
  19737. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19738. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19739. //选择题
  19740. let _work = {
  19741. userid: b[j].userid,
  19742. ateacher: b[j].ateacher,
  19743. wid: b[j].id,
  19744. works: b[j].content,
  19745. sName: b[j].name,
  19746. type: 16,
  19747. ttype: b[j].ttype,
  19748. time: b[j].time,
  19749. score: b[j].score,
  19750. img: b[j].img,
  19751. likesCount: likesCount,
  19752. commentCount: commentCount,
  19753. isLikes: isLikes,
  19754. commentJson: commentJson,
  19755. aiCode: b[j].aiCode,
  19756. teacherCode: b[j].teacherCode,
  19757. likeJson: likeJson
  19758. };
  19759. _worksStudent[i].push(_work);
  19760. _worksStudent2[i].push(_work);
  19761. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19762. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19763. //选择题
  19764. let _work = {
  19765. userid: b[j].userid,
  19766. ateacher: b[j].ateacher,
  19767. wid: b[j].id,
  19768. works: b[j].content,
  19769. sName: b[j].name,
  19770. type: 17,
  19771. ttype: b[j].ttype,
  19772. time: b[j].time,
  19773. score: b[j].score,
  19774. img: b[j].img,
  19775. likesCount: likesCount,
  19776. commentCount: commentCount,
  19777. isLikes: isLikes,
  19778. commentJson: commentJson,
  19779. likeJson: likeJson
  19780. };
  19781. _worksStudent[i].push(_work);
  19782. _worksStudent2[i].push(_work);
  19783. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19784. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19785. //交互视频
  19786. let _work = {
  19787. userid: b[j].userid,
  19788. ateacher: b[j].ateacher,
  19789. wid: b[j].id,
  19790. works: b[j].content,
  19791. sName: b[j].name,
  19792. type: 14,
  19793. ttype: b[j].ttype,
  19794. time: b[j].time,
  19795. score: b[j].score,
  19796. img: b[j].img,
  19797. likesCount: likesCount,
  19798. commentCount: commentCount,
  19799. isLikes: isLikes,
  19800. commentJson: commentJson,
  19801. likeJson: likeJson
  19802. };
  19803. _worksStudent[i].push(_work);
  19804. _worksStudent2[i].push(_work);
  19805. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19806. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19807. let _gindex = JSON.parse(b[j].content);
  19808. if (
  19809. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19810. b[j].userid
  19811. ) != -1
  19812. ) {
  19813. let _work = {
  19814. userid: b[j].userid,
  19815. ateacher: b[j].ateacher,
  19816. wid: b[j].id,
  19817. works: _gindex.url,
  19818. sName: b[j].name,
  19819. type: _gindex.type,
  19820. ttype: b[j].ttype,
  19821. time: b[j].time,
  19822. score: b[j].score,
  19823. img: b[j].img,
  19824. likesCount: likesCount,
  19825. commentCount: commentCount,
  19826. isLikes: isLikes,
  19827. commentJson: commentJson,
  19828. likeJson: likeJson
  19829. };
  19830. _worksStudent[i][_gindex.groupIndex].push(_work);
  19831. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19832. }
  19833. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19834. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19835. let _work = {
  19836. userid: b[j].userid,
  19837. ateacher: b[j].ateacher,
  19838. wid: b[j].id,
  19839. works: b[j].content,
  19840. sName: b[j].name ? b[j].name : b[j].userid,
  19841. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19842. ttype: b[j].ttype,
  19843. time: b[j].time,
  19844. score: b[j].score,
  19845. img: b[j].img,
  19846. likesCount: likesCount,
  19847. commentCount: commentCount,
  19848. isLikes: isLikes,
  19849. commentJson: commentJson,
  19850. likeJson: likeJson
  19851. };
  19852. _worksStudent[i].push(_work);
  19853. _worksStudent2[i].push(_work);
  19854. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19855. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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 ? b[j].name : b[j].userid,
  19862. type: 12,
  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 (
  19877. a[i].tool[0] == 57 &&
  19878. b[j].atool == 57 &&
  19879. b[j].type == 12
  19880. ) {
  19881. let _work = {
  19882. userid: b[j].userid,
  19883. ateacher: b[j].ateacher,
  19884. wid: b[j].id,
  19885. works: b[j].content,
  19886. sName: b[j].name ? b[j].name : b[j].userid,
  19887. type: 12,
  19888. ttype: b[j].ttype,
  19889. time: b[j].time,
  19890. score: b[j].score,
  19891. img: b[j].img,
  19892. likesCount: likesCount,
  19893. commentCount: commentCount,
  19894. isLikes: isLikes,
  19895. commentJson: commentJson,
  19896. likeJson: likeJson
  19897. };
  19898. _worksStudent[i].push(_work);
  19899. _worksStudent2[i].push(_work);
  19900. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19901. } else if (
  19902. a[i].tool[0] == 57 &&
  19903. b[j].atool == 57 &&
  19904. b[j].type == 15
  19905. ) {
  19906. let _work = {
  19907. userid: b[j].userid,
  19908. ateacher: b[j].ateacher,
  19909. wid: b[j].id,
  19910. works: b[j].content,
  19911. sName: b[j].name ? b[j].name : b[j].userid,
  19912. type: 15,
  19913. ttype: b[j].ttype,
  19914. time: b[j].time,
  19915. score: b[j].score,
  19916. img: b[j].img,
  19917. likesCount: likesCount,
  19918. commentCount: commentCount,
  19919. isLikes: isLikes,
  19920. commentJson: commentJson,
  19921. likeJson: likeJson
  19922. };
  19923. _worksStudent[i].push(_work);
  19924. _worksStudent2[i].push(_work);
  19925. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19926. }
  19927. }
  19928. }
  19929. if (_worksStudent[i] && _worksStudent[i].length) {
  19930. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19931. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19932. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19933. var scoreA = parseFloat(jscoreA);
  19934. var scoreB = parseFloat(jscoreB);
  19935. if (scoreA == scoreB) {
  19936. return b.likesCount - a.likesCount;
  19937. }
  19938. return scoreB - scoreA;
  19939. });
  19940. if (this.isGroup) {
  19941. for (
  19942. var groupI = 0;
  19943. groupI < this.courseGroup.group.length;
  19944. groupI++
  19945. ) {
  19946. this.courseGroup.group[groupI].works[
  19947. i
  19948. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19949. a,
  19950. b
  19951. ) {
  19952. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19953. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19954. var scoreA = parseFloat(jscoreA);
  19955. var scoreB = parseFloat(jscoreB);
  19956. if (scoreA == scoreB) {
  19957. return b.likesCount - a.likesCount;
  19958. }
  19959. return scoreB - scoreA;
  19960. });
  19961. }
  19962. }
  19963. }
  19964. }
  19965. this.timeWorkList = _worksStudent2;
  19966. for (var i = 0; i < a.length; i++) {
  19967. for (var j = 0; j < b.length; j++) {
  19968. var data = b[j];
  19969. if (i == b[j].tool) {
  19970. if (data.type == 2 || data.type == 8) {
  19971. for (var z = 0; z < this.checkJson[i].length; z++) {
  19972. this.checkJson[i][z].checkPerent = [];
  19973. this.checkJson[i][z].right = Math.round(
  19974. (this.checkJson[i][z].rightPerson.length /
  19975. parseInt(_worksStudent[i].length)) *
  19976. 100
  19977. );
  19978. let aaaa = this.checkJson[i][z];
  19979. for (
  19980. var k = 0;
  19981. k < this.checkJson[i][z].checkCount.length;
  19982. k++
  19983. ) {
  19984. this.checkJson[i][z].checkPerent.push(
  19985. Math.round(
  19986. (this.checkJson[i][z].checkCount[k] /
  19987. parseInt(_worksStudent[i].length)) *
  19988. 100
  19989. )
  19990. );
  19991. }
  19992. }
  19993. } else if (data.type == 9) {
  19994. for (var z = 0; z < this.checkJson[i].length; z++) {
  19995. this.checkJson[i][z].checkPerent = [];
  19996. this.checkJson[i][z].right = Math.round(
  19997. (this.checkJson[i][z].rightPerson.length /
  19998. this.checkJson[i][z].checkPerson.length) *
  19999. 100
  20000. );
  20001. }
  20002. }
  20003. }
  20004. }
  20005. }
  20006. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20007. this.joinGroup(gindex);
  20008. }
  20009. this.worksStudent = _worksStudent;
  20010. if (
  20011. JSON.stringify(this.worksStudentCopy) !=
  20012. JSON.stringify(this.worksStudent)
  20013. ) {
  20014. console.log("88888999999");
  20015. this.worksStudentCopy = this.worksStudent;
  20016. this.AIloading = [];
  20017. this.loopLoading = [];
  20018. this.worksStudent.forEach((e, index) => {
  20019. this.loopLoading.push({ loading: false });
  20020. this.AIloading.push([]);
  20021. e.forEach(k => {
  20022. this.AIloading[index].push({ loading: false, sco: 0 });
  20023. });
  20024. });
  20025. this.refreshAssembly();
  20026. }
  20027. this.selectWorksStudent();
  20028. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20029. this.$nextTick(() => {
  20030. setTimeout(() => {
  20031. setTimeout(() => {
  20032. this.panToolHeight("tool-" + ci);
  20033. }, 500);
  20034. }, 0);
  20035. });
  20036. }
  20037. })
  20038. .catch(err => {
  20039. console.error(err);
  20040. });
  20041. },
  20042. pngToWhiteBg(file) {
  20043. const _file = file;
  20044. let read = new FileReader();
  20045. read.readAsDataURL(file); // 文件转base64
  20046. return new Promise((resolve, reject) => {
  20047. read.onload = (e) => {
  20048. let img = new Image();
  20049. img.src = e.target.result;
  20050. img.onload = async () => {
  20051. // 生成canvas
  20052. let canvas = document.createElement("canvas");
  20053. let context = canvas.getContext("2d");
  20054. // 绘制图片到canvas上
  20055. canvas.width = img.width;
  20056. canvas.height = img.height;
  20057. // 在canvas绘制前填充白色背景
  20058. context.fillStyle = "#fff";
  20059. context.fillRect(0, 0, canvas.width, canvas.height);
  20060. context.drawImage(img, 0, 0);
  20061. let base64 = canvas.toDataURL(file["type"], 1);
  20062. let newFile = this.dataUrlToFile(base64, _file);
  20063. resolve(newFile);
  20064. };
  20065. };
  20066. });
  20067. },
  20068. dataUrlToFile(dataurl, file) {
  20069. let arr = dataurl.split(","),
  20070. mime = arr[0].match(/:(.*?);/)[1],
  20071. bstr = atob(arr[1]),
  20072. n = bstr.length,
  20073. u8arr = new Uint8Array(n);
  20074. while (n--) {
  20075. u8arr[n] = bstr.charCodeAt(n);
  20076. }
  20077. // return new Blob([u8arr], { type: mime });
  20078. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20079. type: mime,
  20080. });
  20081. },
  20082. async beforeUpload1(event, type, i) {
  20083. // this.$message.success('进入上传')
  20084. var file = "";
  20085. if (type == 5) {
  20086. file = event;
  20087. } else {
  20088. file = event.target.files[0];
  20089. }
  20090. var credentials = {
  20091. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20092. secretAccessKey: "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",
  20093. }; //秘钥形式的登录上传
  20094. window.AWS.config.update(credentials);
  20095. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20096. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20097. var _this = this;
  20098. _this.progress = 0;
  20099. _this.proVisible = true;
  20100. _this.isFinishSize = 0;
  20101. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20102. var b = [
  20103. "DOC",
  20104. "DOCX",
  20105. "DOCM",
  20106. "DOTM",
  20107. "DOTX",
  20108. "PPTX",
  20109. "PPSX",
  20110. "PPT",
  20111. "PPS",
  20112. "PPTM",
  20113. "POTM",
  20114. "PPAM",
  20115. "POTX",
  20116. "PPSM",
  20117. ];
  20118. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20119. var photoA = [
  20120. "BMP",
  20121. "GIF",
  20122. "PNG",
  20123. "JPEG",
  20124. "JPEG",
  20125. "JPG",
  20126. "TIF",
  20127. "PCX",
  20128. "TGA",
  20129. "EXIF",
  20130. "FPX",
  20131. "SVG",
  20132. "APNG",
  20133. ];
  20134. // if (
  20135. // b.indexOf(
  20136. // file.name
  20137. // .split(".")
  20138. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20139. // ) != -1
  20140. // ) {
  20141. // if (file.size / 1024 / 1024 > 10) {
  20142. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20143. // return;
  20144. // }
  20145. // } else if (
  20146. // excelA.indexOf(
  20147. // file.name
  20148. // .split(".")
  20149. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20150. // ) != "-1"
  20151. // ) {
  20152. // if (file.size / 1024 / 1024 > 5) {
  20153. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20154. // return;
  20155. // }
  20156. // }
  20157. if (
  20158. photoA.indexOf(
  20159. file.name
  20160. .split(".")
  20161. [file.name.split(".").length - 1].toLocaleUpperCase()
  20162. ) != -1 &&
  20163. type != 4
  20164. ) {
  20165. // const blob = await imageConversion.compress(file, 0.8)
  20166. file = await this.pngToWhiteBg(file);
  20167. const blob = await imageConversion.compressAccurately(file, 256);
  20168. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20169. file = new File([blob], file.name, { type: file.type });
  20170. }
  20171. if (file) {
  20172. var params = {
  20173. Key:
  20174. file.name.split(".")[0] +
  20175. new Date().getTime() +
  20176. "." +
  20177. file.name.split(".")[file.name.split(".").length - 1],
  20178. ContentType: file.type,
  20179. Body: file,
  20180. "Access-Control-Allow-Credentials": "*",
  20181. ACL: "public-read",
  20182. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20183. var options = {
  20184. // partSize: 2048 * 1024 * 1024,
  20185. partSize: 1024 * 1024 * 1024,
  20186. queueSize: 2,
  20187. leavePartsOnError: true,
  20188. };
  20189. bucket
  20190. .upload(params, options)
  20191. .on("httpUploadProgress", function (evt) {
  20192. //这里可以写进度条
  20193. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20194. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20195. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20196. })
  20197. .send(function (err, data) {
  20198. _this.progress = 100;
  20199. _this.isFinishSize = _this.isAllSize;
  20200. setTimeout(() => {
  20201. _this.proVisible = false;
  20202. }, 1000);
  20203. if (err) {
  20204. var a = _this.$refs.upload1.uploadFiles;
  20205. a.splice(a.length - 1, a.length);
  20206. _this.$message.error("上传失败");
  20207. } else {
  20208. // _this.$message.success('上传成功')
  20209. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20210. var c = [
  20211. "AVI",
  20212. "NAVI",
  20213. "MPEG",
  20214. "ASF",
  20215. "MOV",
  20216. "WMV",
  20217. "3GP",
  20218. "RM",
  20219. "RMVB",
  20220. "FLV",
  20221. "F4V",
  20222. "H.264",
  20223. "H.265",
  20224. "REAL VIDEO",
  20225. "MKV",
  20226. "WebM",
  20227. "HDDVD",
  20228. "MP4",
  20229. "MPG",
  20230. "M4V",
  20231. "MGV",
  20232. "OGV",
  20233. "QTM",
  20234. "STR",
  20235. "AMC",
  20236. "DVX",
  20237. "EVO",
  20238. "DAT",
  20239. "OGG",
  20240. "OGM",
  20241. ];
  20242. if (type == 1) {
  20243. _this.studyJuri[0].cover.push({
  20244. name: file.name,
  20245. url: data.Location,
  20246. uid: file.uid,
  20247. });
  20248. if (
  20249. c.indexOf(
  20250. _this.studyJuri[0].cover[0].url
  20251. .split(".")
  20252. [
  20253. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20254. ].toLocaleUpperCase()
  20255. ) != -1
  20256. ) {
  20257. _this.fileType = 2;
  20258. } else if (
  20259. b.indexOf(
  20260. _this.studyJuri[0].cover[0].url
  20261. .split(".")
  20262. [
  20263. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20264. ].toLocaleUpperCase()
  20265. ) != -1
  20266. ) {
  20267. _this.fileType = 1;
  20268. } else if (
  20269. photoA.indexOf(
  20270. _this.studyJuri[0].cover[0].url
  20271. .split(".")
  20272. [
  20273. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20274. ].toLocaleUpperCase()
  20275. ) != -1
  20276. ) {
  20277. _this.fileType = 0;
  20278. } else {
  20279. _this.fileType = 3;
  20280. }
  20281. _this.imgChange(null, null, type);
  20282. } else if (type == 2) {
  20283. _this.upToolImg = data.Location;
  20284. _this.imgChange(null, null, type);
  20285. _this.addCourseWorks(i);
  20286. } else if (type == 4) {
  20287. _this.addPz("3", data.Location);
  20288. } else if (type == 5) {
  20289. _this.addImgDrawImG(data.Location);
  20290. } else if (type == 6) {
  20291. var _ftype = 1;
  20292. if (
  20293. c.indexOf(
  20294. data.Location.split(".")[
  20295. data.Location.split(".").length - 1
  20296. ].toLocaleUpperCase()
  20297. ) != -1
  20298. ) {
  20299. _ftype = 5;
  20300. } else if (
  20301. b.indexOf(
  20302. data.Location.split(".")[
  20303. data.Location.split(".").length - 1
  20304. ].toLocaleUpperCase()
  20305. ) != -1
  20306. ) {
  20307. _ftype = 4;
  20308. } else {
  20309. _ftype = 1;
  20310. }
  20311. _this.plworkFile.push({
  20312. name: file.name,
  20313. url: data.Location,
  20314. uid: file.uid,
  20315. fileType: _ftype,
  20316. username:
  20317. _this.plworkFile.length > 10
  20318. ? _this.plworkFile.length + 1
  20319. : "0" + (_this.plworkFile.length + 1),
  20320. });
  20321. } else if (type == 7) {
  20322. _this.addCourseWorksGong(i, data.Location, 32);
  20323. } else if (type == 8) {
  20324. _this.addCourseWorksGong(i, data.Location, 57);
  20325. }
  20326. _this.imgChange(null, null, type);
  20327. console.log(data.Location);
  20328. // _this.$message.success('上传成功'+data.Location)
  20329. }
  20330. });
  20331. }
  20332. },
  20333. async beforeUpload3(event, type, i) {
  20334. // this.$message.success('进入上传')
  20335. let file = "";
  20336. let cfindex2 = 0;
  20337. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20338. file = event.target.files[cfindex];
  20339. var credentials = {
  20340. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20341. secretAccessKey: "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",
  20342. }; //秘钥形式的登录上传
  20343. window.AWS.config.update(credentials);
  20344. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20345. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20346. var _this = this;
  20347. // _this.progress = 0;
  20348. _this.proVisible2 = true;
  20349. var b = [
  20350. "DOC",
  20351. "DOCX",
  20352. "DOCM",
  20353. "DOTM",
  20354. "DOTX",
  20355. "PPTX",
  20356. "PPSX",
  20357. "PPT",
  20358. "PPS",
  20359. "PPTM",
  20360. "POTM",
  20361. "PPAM",
  20362. "POTX",
  20363. "PPSM",
  20364. ];
  20365. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20366. var photoA = [
  20367. "BMP",
  20368. "GIF",
  20369. "PNG",
  20370. "JPEG",
  20371. "JPG",
  20372. "TIF",
  20373. "PCX",
  20374. "TGA",
  20375. "EXIF",
  20376. "FPX",
  20377. "SVG",
  20378. "APNG",
  20379. ];
  20380. if (
  20381. photoA.indexOf(
  20382. file.name
  20383. .split(".")
  20384. [file.name.split(".").length - 1].toLocaleUpperCase()
  20385. ) != -1 &&
  20386. type != 4
  20387. ) {
  20388. // const blob = await imageConversion.compress(file, 0.8)
  20389. file = await this.pngToWhiteBg(file);
  20390. const blob = await imageConversion.compressAccurately(file, 256);
  20391. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20392. file = new File([blob], file.name, { type: file.type });
  20393. }
  20394. if (file) {
  20395. var params = {
  20396. Key:
  20397. file.name.split(".")[0] +
  20398. new Date().getTime() +
  20399. "." +
  20400. file.name.split(".")[file.name.split(".").length - 1],
  20401. ContentType: file.type,
  20402. Body: file,
  20403. "Access-Control-Allow-Credentials": "*",
  20404. ACL: "public-read",
  20405. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20406. var options = {
  20407. // partSize: 2048 * 1024 * 1024,
  20408. partSize: 1024 * 1024 * 1024,
  20409. queueSize: 2,
  20410. leavePartsOnError: true,
  20411. };
  20412. bucket
  20413. .upload(params, options)
  20414. .on("httpUploadProgress", function (evt) {
  20415. //这里可以写进度条
  20416. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20417. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20418. })
  20419. .send(function (err, data) {
  20420. // _this.progress = 100;
  20421. cfindex2++;
  20422. setTimeout(() => {
  20423. if (
  20424. cfindex2 == event.target.files.length - 1 ||
  20425. cfindex2 > event.target.files.length - 1
  20426. ) {
  20427. _this.proVisible2 = false;
  20428. }
  20429. }, 1000);
  20430. if (err) {
  20431. var a = _this.$refs.upload1.uploadFiles;
  20432. a.splice(a.length - 1, a.length);
  20433. _this.$message.error("上传失败");
  20434. } else {
  20435. // _this.$message.success('上传成功')
  20436. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20437. var c = [
  20438. "AVI",
  20439. "NAVI",
  20440. "MPEG",
  20441. "ASF",
  20442. "MOV",
  20443. "WMV",
  20444. "3GP",
  20445. "RM",
  20446. "RMVB",
  20447. "FLV",
  20448. "F4V",
  20449. "H.264",
  20450. "H.265",
  20451. "REAL VIDEO",
  20452. "MKV",
  20453. "WebM",
  20454. "HDDVD",
  20455. "MP4",
  20456. "MPG",
  20457. "M4V",
  20458. "MGV",
  20459. "OGV",
  20460. "QTM",
  20461. "STR",
  20462. "AMC",
  20463. "DVX",
  20464. "EVO",
  20465. "DAT",
  20466. "OGG",
  20467. "OGM",
  20468. ];
  20469. if (type == 1) {
  20470. _this.studyJuri[0].cover.push({
  20471. name: file.name,
  20472. url: data.Location,
  20473. uid: file.uid,
  20474. });
  20475. if (
  20476. c.indexOf(
  20477. _this.studyJuri[0].cover[0].url
  20478. .split(".")
  20479. [
  20480. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20481. ].toLocaleUpperCase()
  20482. ) != -1
  20483. ) {
  20484. _this.fileType = 2;
  20485. } else if (
  20486. b.indexOf(
  20487. _this.studyJuri[0].cover[0].url
  20488. .split(".")
  20489. [
  20490. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20491. ].toLocaleUpperCase()
  20492. ) != -1
  20493. ) {
  20494. _this.fileType = 1;
  20495. } else {
  20496. _this.fileType = 0;
  20497. }
  20498. _this.imgChange(null, null, type);
  20499. } else if (type == 2) {
  20500. _this.upToolImg = data.Location;
  20501. _this.imgChange(null, null, type);
  20502. _this.addCourseWorks(i);
  20503. } else if (type == 4) {
  20504. _this.addPz("3", data.Location);
  20505. } else if (type == 5) {
  20506. _this.addImgDrawImG(data.Location);
  20507. } else if (type == 6) {
  20508. var _ftype = 1;
  20509. if (
  20510. c.indexOf(
  20511. data.Location.split(".")[
  20512. data.Location.split(".").length - 1
  20513. ].toLocaleUpperCase()
  20514. ) != -1
  20515. ) {
  20516. _ftype = 5;
  20517. } else if (
  20518. b.indexOf(
  20519. data.Location.split(".")[
  20520. data.Location.split(".").length - 1
  20521. ].toLocaleUpperCase()
  20522. ) != -1
  20523. ) {
  20524. _ftype = 4;
  20525. } else {
  20526. _ftype = 1;
  20527. }
  20528. _this.plworkFile.push({
  20529. name: file.name,
  20530. url: data.Location,
  20531. uid: file.uid,
  20532. fileType: _ftype,
  20533. username:
  20534. _this.plworkFile.length + 1 > 9
  20535. ? _this.plworkFile.length + 1
  20536. : "0" + (_this.plworkFile.length + 1),
  20537. });
  20538. }
  20539. _this.imgChange(null, null, type);
  20540. console.log(data.Location);
  20541. // _this.$message.success('上传成功'+data.Location)
  20542. }
  20543. });
  20544. }
  20545. }
  20546. },
  20547. beforeUpload2(event, type) {
  20548. var file = event.target.files[0];
  20549. var credentials = {
  20550. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20551. secretAccessKey: "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",
  20552. }; //秘钥形式的登录上传
  20553. window.AWS.config.update(credentials);
  20554. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20555. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20556. var _this = this;
  20557. _this.progress = 0;
  20558. _this.proVisible = true;
  20559. if (file) {
  20560. var params = {
  20561. Key:
  20562. file.name.split(".")[0] +
  20563. new Date().getTime() +
  20564. "." +
  20565. file.name.split(".")[file.name.split(".").length - 1],
  20566. ContentType: file.type,
  20567. Body: file,
  20568. "Access-Control-Allow-Credentials": "*",
  20569. ACL: "public-read",
  20570. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20571. var options = {
  20572. partSize: 2048 * 1024 * 1024,
  20573. queueSize: 2,
  20574. leavePartsOnError: true,
  20575. };
  20576. bucket
  20577. .upload(params, options)
  20578. .on("httpUploadProgress", function (evt) {
  20579. //这里可以写进度条
  20580. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20581. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20582. })
  20583. .send(function (err, data) {
  20584. _this.progress = 100;
  20585. setTimeout(() => {
  20586. _this.proVisible = false;
  20587. }, 1000);
  20588. if (err) {
  20589. var a = _this.$refs.upload1.uploadFiles;
  20590. a.splice(a.length - 1, a.length);
  20591. _this.$message.error("上传失败");
  20592. } else {
  20593. if (type == 2) {
  20594. _this.studyJuri[0].upVedio.push({
  20595. name: file.name,
  20596. url: data.Location,
  20597. uid: file.uid,
  20598. });
  20599. _this.imgChange(null, null, type);
  20600. } else if (type == 3) {
  20601. _this.studyJuri[0].upFile.push({
  20602. name: file.name,
  20603. url: data.Location,
  20604. uid: file.uid,
  20605. });
  20606. _this.imgChange(null, null, type);
  20607. }
  20608. console.log(data.Location);
  20609. }
  20610. });
  20611. }
  20612. },
  20613. allScrell() {
  20614. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20615. },
  20616. nextOrpreSteps(t) {
  20617. if (this.IsFollow && this.tType == 2) {
  20618. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20619. return;
  20620. }
  20621. var b = this.chapInfoList.length - 1;
  20622. if (t == 0) {
  20623. if (this.courseType == 0) {
  20624. if (this.taskCount == 0) {
  20625. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20626. if (this.IsLookOpen) {
  20627. if (
  20628. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20629. ) {
  20630. if (
  20631. this.courseDetail.userid != this.userid &&
  20632. (!this.courseDetail.course_teacher ||
  20633. (this.courseDetail.course_teacher &&
  20634. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20635. ) {
  20636. this.$message.error("任务未解锁");
  20637. } else {
  20638. this.$message.error("上一任务未解锁");
  20639. }
  20640. return;
  20641. }
  20642. }
  20643. this.navList[this.courseType].isOpen = false;
  20644. this.courseType = b;
  20645. this.taskCount =
  20646. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20647. .length - 1;
  20648. this.navList[this.courseType].isOpen = true;
  20649. } else {
  20650. this.taskCount--;
  20651. }
  20652. } else {
  20653. if (this.taskCount == 0) {
  20654. this.navList[this.courseType].isOpen = false;
  20655. this.courseType--;
  20656. this.taskCount =
  20657. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20658. .length - 1;
  20659. this.navList[this.courseType].isOpen = true;
  20660. } else {
  20661. this.taskCount--;
  20662. }
  20663. }
  20664. } else {
  20665. if (this.courseType == b) {
  20666. if (
  20667. this.taskCount ==
  20668. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20669. 1
  20670. ) {
  20671. this.navList[this.courseType].isOpen = false;
  20672. this.courseType = 0;
  20673. this.taskCount = 0;
  20674. this.navList[this.courseType].isOpen = true;
  20675. } else {
  20676. var bbb = parseInt(this.taskCount) + 1;
  20677. if (
  20678. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20679. .isLook &&
  20680. this.courseDetail.userid != this.userid &&
  20681. (!this.courseDetail.course_teacher ||
  20682. (this.courseDetail.course_teacher &&
  20683. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20684. this.IsLookOpen
  20685. ) {
  20686. this.$message.error("任务未解锁");
  20687. return;
  20688. }
  20689. this.taskCount++;
  20690. if (this.IsLookOpen) {
  20691. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20692. this.taskCount
  20693. ].isLook = true;
  20694. this.addCourseState(3);
  20695. }
  20696. }
  20697. } else {
  20698. if (
  20699. this.taskCount ==
  20700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20701. 1
  20702. ) {
  20703. var bbb = parseInt(this.courseType) + 1;
  20704. if (
  20705. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20706. this.courseDetail.userid != this.userid &&
  20707. (!this.courseDetail.course_teacher ||
  20708. (this.courseDetail.course_teacher &&
  20709. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20710. this.IsLookOpen
  20711. ) {
  20712. this.$message.error("任务未解锁");
  20713. return;
  20714. }
  20715. this.navList[this.courseType].isOpen = false;
  20716. this.courseType++;
  20717. this.taskCount = 0;
  20718. this.navList[this.courseType].isOpen = true;
  20719. } else {
  20720. var bbb = parseInt(this.taskCount) + 1;
  20721. if (
  20722. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20723. .isLook &&
  20724. this.courseDetail.userid != this.userid &&
  20725. (!this.courseDetail.course_teacher ||
  20726. (this.courseDetail.course_teacher &&
  20727. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20728. this.IsLookOpen
  20729. ) {
  20730. this.$message.error("任务未解锁");
  20731. return;
  20732. }
  20733. this.taskCount++;
  20734. }
  20735. if (this.IsLookOpen) {
  20736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20737. this.taskCount
  20738. ].isLook = true;
  20739. this.addCourseState(3);
  20740. }
  20741. }
  20742. // if (
  20743. // this.taskCount ==
  20744. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20745. // ) {
  20746. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20747. // } else {
  20748. // this.taskCount++;
  20749. // }
  20750. }
  20751. document.scrollingElement.scrollTop = 0;
  20752. // this.showType = 7;
  20753. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20754. // if (this.vedio[this.taskCount].length > 0) {
  20755. // var a =
  20756. // document.getElementsByClassName("box_course")[this.taskCount]
  20757. // .offsetHeight;
  20758. // document.getElementsByClassName("vedioList")[
  20759. // this.taskCount
  20760. // ].style.height = a + "px";
  20761. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20762. // a - 40 + "px";
  20763. // }
  20764. this.isNoHomeWork = false;
  20765. (this.studyJuri = [
  20766. {
  20767. content: "",
  20768. cover: [],
  20769. upVedio: [],
  20770. upFile: [],
  20771. },
  20772. ]),
  20773. (this.radio = []);
  20774. this.isClickNav = "";
  20775. this.selectPz();
  20776. this.getHomeWork();
  20777. this.getCourseDetail(2);
  20778. this.$forceUpdate();
  20779. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  20780. this.setCTask();
  20781. }
  20782. },
  20783. openTask(s, n, i) {
  20784. if (this.IsFollow && this.tType == 2) {
  20785. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20786. return;
  20787. }
  20788. if (this.IsLookOpen &&
  20789. this.courseDetail.userid != this.userid &&
  20790. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20791. if (
  20792. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20793. this.courseDetail.userid != this.userid &&
  20794. (!this.courseDetail.course_teacher ||
  20795. (this.courseDetail.course_teacher &&
  20796. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20797. ) {
  20798. this.$message.error("任务未解锁");
  20799. return;
  20800. }
  20801. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20802. if (
  20803. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20804. .isLook
  20805. ) {
  20806. this.$message.error("上一任务未解锁");
  20807. return;
  20808. }
  20809. } else if (s > this.courseType) {
  20810. if (n > 0) {
  20811. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20812. this.$message.error("上一任务未解锁");
  20813. return;
  20814. }
  20815. } else {
  20816. if (
  20817. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20818. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20819. ].isLook
  20820. ) {
  20821. this.$message.error("上一任务未解锁");
  20822. return;
  20823. }
  20824. }
  20825. }
  20826. }
  20827. if (this.navList[s].task[n].isOpen == true) {
  20828. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20829. return;
  20830. }
  20831. let flag = this.courseType==s;
  20832. this.courseType = s;
  20833. this.navId = i;
  20834. this.taskCount = n;
  20835. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20836. this.navList[this.courseType].task[this.taskCount].isOpen =
  20837. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20838. if (this.IsLookOpen) {
  20839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20840. this.taskCount
  20841. ].isLook = true;
  20842. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20843. this.addCourseState(3,yym);
  20844. }
  20845. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20846. this.isCloseList[ci].isClose = 0;
  20847. this.isCloseList[ci].isCloseBoolean = false;
  20848. this.$nextTick(()=>{
  20849. setTimeout(()=>{
  20850. setTimeout(()=>{
  20851. this.panToolHeight('tool-'+ci);
  20852. }, 0)
  20853. }, 0)
  20854. })
  20855. }
  20856. // this.showType = 7;
  20857. this.isNoHomeWork = false;
  20858. (this.studyJuri = [
  20859. {
  20860. content: "",
  20861. cover: [],
  20862. upVedio: [],
  20863. upFile: [],
  20864. },
  20865. ]),
  20866. (this.radio = []);
  20867. document.scrollingElement.scrollTop = 0;
  20868. // setTimeout(() => {
  20869. // let a = document.getElementById(i);
  20870. // if (a.offsetTop - 110 == 0) {
  20871. // window.scrollTo(0, 0);
  20872. // } else {
  20873. // window.scrollTo(0, a.offsetTop);
  20874. // }
  20875. // }, 0);
  20876. for (var z = 0; z < this.navList.length; z++) {
  20877. for (var q = 0; q < this.navList[z].task.length; q++) {
  20878. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20879. this.navList[z].task[q].tool[w].isTool = false;
  20880. }
  20881. }
  20882. }
  20883. this.selectPz();
  20884. this.getHomeWork();
  20885. this.getCourseDetail(2);
  20886. if(flag){
  20887. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20888. }else{
  20889. 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>`)
  20890. }
  20891. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  20892. this.setCTask();
  20893. }
  20894. },
  20895. get(i) {
  20896. if (this.IsFollow && this.tType == 2) {
  20897. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20898. return;
  20899. }
  20900. // for(var k=0;k<this.navList.length;k++){
  20901. // this.navList[k].isOpen = false;
  20902. // }
  20903. // this.navList[i].isOpen = true;
  20904. this.navList[i].isOpen = !this.navList[i].isOpen;
  20905. if (this.navList[i].isOpen) {
  20906. this.openTask(i, 0, i + "-0");
  20907. }
  20908. },
  20909. addQuestion() {
  20910. this.answerList.push({
  20911. answerTitle: this.answerQ,
  20912. answer: this.questionAnswer,
  20913. });
  20914. let params = [
  20915. {
  20916. uid: this.userid,
  20917. cid: this.id,
  20918. stage: this.courseType,
  20919. task: this.taskCount,
  20920. tool: this.toolindex,
  20921. content: JSON.stringify(this.answerList),
  20922. type: 3,
  20923. },
  20924. ];
  20925. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  20926. this.homeWorkLoading = true
  20927. this.ajax
  20928. .post(this.$store.state.api + "addCourseWorks", params)
  20929. .then((res) => {
  20930. this.$message({
  20931. message: "提交成功",
  20932. type: "success",
  20933. });
  20934. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  20935. setTimeout(() => {
  20936. this.homeWorkLoading = false
  20937. }, 500);
  20938. this.answerList = [];
  20939. this.answerDialogVisible = false;
  20940. this.selectStudent();
  20941. this.selectSWorks();
  20942. this.selectSLook();
  20943. })
  20944. .catch((err) => {
  20945. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  20946. setTimeout(() => {
  20947. this.homeWorkLoading = false
  20948. }, 500);
  20949. this.$message.error("提交失败");
  20950. console.error(err);
  20951. });
  20952. },
  20953. addQuestionTeacher() {
  20954. this.answerList.push({
  20955. answerTitle: this.answerQ,
  20956. answer: this.questionAnswer,
  20957. });
  20958. let params = [
  20959. {
  20960. uid: this.sStudent.userid,
  20961. cid: this.id,
  20962. stage: this.courseType,
  20963. task: this.taskCount,
  20964. tool: this.toolindex,
  20965. content: JSON.stringify(this.answerList),
  20966. type: 3,
  20967. ateacher: this.userid,
  20968. },
  20969. ];
  20970. this.ajax
  20971. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20972. .then((res) => {
  20973. this.$message({
  20974. message: "提交成功",
  20975. type: "success",
  20976. });
  20977. this.answerList = [];
  20978. this.questionAnswer = "";
  20979. this.answerDialogVisibleTeacher = false;
  20980. this.selectStudent();
  20981. this.selectSWorks();
  20982. this.selectSLook();
  20983. })
  20984. .catch((err) => {
  20985. this.$message.error("提交失败");
  20986. console.error(err);
  20987. });
  20988. },
  20989. refreshCourse() {
  20990. // window.location.reload();
  20991. this.navList = [];
  20992. this.getCourseDetail(1);
  20993. },
  20994. getCourseDetail(type, gindex) {
  20995. let loading;
  20996. if (type != 2) {
  20997. loading = this.$loading.service({
  20998. background: "rgba(255, 255, 255, 0.7)",
  20999. target: document.querySelector(".student_table"),
  21000. });
  21001. }
  21002. this.downLoading = false
  21003. // this.navList[0].isOpen = false;
  21004. // this.navList[this.courseType].isOpen = true;
  21005. // this.courseType = this.courseTypeLine;
  21006. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21007. let params = {
  21008. courseId: this.id,
  21009. };
  21010. this.ajax
  21011. .get(this.$store.state.api + "selectCourseDetail3", params)
  21012. .then((res) => {
  21013. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21014. if (type != 2) {
  21015. loading.close();
  21016. if (
  21017. this.courseType >
  21018. JSON.parse(res.data[0][0].chapters).length - 1
  21019. ) {
  21020. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21021. }
  21022. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21023. .chapterInfo[0].taskJson;
  21024. var b = [
  21025. "AVI",
  21026. "NAVI",
  21027. "MPEG",
  21028. "ASF",
  21029. "MOV",
  21030. "WMV",
  21031. "3GP",
  21032. "RM",
  21033. "RMVB",
  21034. "FLV",
  21035. "F4V",
  21036. "H.264",
  21037. "H.265",
  21038. "REAL VIDEO",
  21039. "MKV",
  21040. "WebM",
  21041. "HDDVD",
  21042. "MP4",
  21043. "MPG",
  21044. "M4V",
  21045. "MGV",
  21046. "OGV",
  21047. "QTM",
  21048. "STR",
  21049. "AMC",
  21050. "DVX",
  21051. "EVO",
  21052. "DAT",
  21053. "OGG",
  21054. "OGM",
  21055. "MP3",
  21056. ];
  21057. let _chapterData = [];
  21058. for (var i = 0; i < a.length; i++) {
  21059. var c = a[i].chapterData;
  21060. this.vedio[i] = [];
  21061. this.textList[i] = [];
  21062. this.lineList[i] = [];
  21063. this.chapToolList[i] = [];
  21064. this.file[i] = [];
  21065. this.fileC[i] = [];
  21066. _chapterData[i] = c.filter((el) => {
  21067. return el.type != 12;
  21068. });
  21069. this.fileC[i] = c.filter((el) => {
  21070. return el.type == 12;
  21071. });
  21072. if (this.tType == 2) {
  21073. if (this.fileC[i].length) {
  21074. let yym1 = this.fileC[i].filter(e=>{
  21075. if(!converter(e.name).includes(converter("教案"))){
  21076. return e
  21077. }
  21078. })
  21079. this.fileC[i] = yym1
  21080. }
  21081. }
  21082. // else if (c[j].type == 12) {
  21083. // this.fileC[i].push(c[j]);
  21084. // }
  21085. for (var j = 0; j < c.length; j++) {
  21086. if (c[j].type == 7) {
  21087. this.chapToolList[i].push(c[j]);
  21088. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21089. this.lineList[i].push(c[j]);
  21090. } else if (c[j].type == 6) {
  21091. this.textList[i].push(c[j]);
  21092. } else {
  21093. if (
  21094. b.indexOf(
  21095. c[j].url
  21096. .split(".")
  21097. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21098. ) != -1
  21099. ) {
  21100. this.vedio[i].push(c[j]);
  21101. } else {
  21102. this.file[i].push(c[j]);
  21103. }
  21104. }
  21105. }
  21106. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21107. d.sources[0].src =
  21108. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21109. this.playerO[i] = d;
  21110. }
  21111. this.courseDetail = res.data[0][0];
  21112. if(this.tType == 2){
  21113. this.tcid = this.arrayToArray(
  21114. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21115. this.classId ? this.classId.split(",") : []
  21116. ).join(",");
  21117. }else{
  21118. this.tcid = this.arrayToArray(
  21119. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21120. this.tcid2 ? this.tcid2.split(",") : []
  21121. ).join(",");
  21122. }
  21123. this.evalua = res.data[0][0].evaId;
  21124. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21125. this.courseType
  21126. ];
  21127. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21128. if (this.tcid && res.data[1].length) {
  21129. let _inviteA = [];
  21130. for (var ik = 0; ik < res.data[1].length; ik++) {
  21131. _inviteA.push({
  21132. cid: res.data[1][ik].classid,
  21133. ic: res.data[1][ik].code,
  21134. });
  21135. }
  21136. for (var ik = 0; ik < _inviteA.length; ik++) {
  21137. if (
  21138. this.arrayToArray(
  21139. _inviteA[ik].cid.split(","),
  21140. this.tcid.split(",")
  21141. ).length
  21142. ) {
  21143. this.inviteCode = _inviteA[ik].ic;
  21144. break;
  21145. }
  21146. }
  21147. }
  21148. for (var l = 0; l < this.chapInfoList.length; l++) {
  21149. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21150. for (var m = 0; m < w.length; m++) {
  21151. w[m].id = l + "-" + m;
  21152. }
  21153. }
  21154. let taskCount = 0;
  21155. if (
  21156. _chapterData[taskCount].length &&
  21157. _chapterData[taskCount][0].type == 2
  21158. ) {
  21159. this.showType = 0;
  21160. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21161. } else {
  21162. if (_chapterData[taskCount].length > 0) {
  21163. let _url = _chapterData[taskCount][0].url;
  21164. if (
  21165. _chapterData[taskCount][0].type == 8 ||
  21166. _chapterData[taskCount][0].type == 14 ||
  21167. _chapterData[taskCount][0].type == 15
  21168. ) {
  21169. this.showType = 2;
  21170. if (
  21171. _url.indexOf("https://") == -1 &&
  21172. _url.indexOf("http://") == -1
  21173. ) {
  21174. _url = "https://" + _url;
  21175. }
  21176. this.pptImgUrl1 = _url;
  21177. } else if (_chapterData[taskCount][0].type == 3) {
  21178. if (
  21179. _url
  21180. .split(".")
  21181. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21182. ) {
  21183. this.showType = 3;
  21184. this.pptImgUrl1 = _url;
  21185. } else if (
  21186. this.isAssetTypeAnImage(
  21187. _url
  21188. .split(".")
  21189. [_url.split(".").length - 1].toLocaleLowerCase()
  21190. )
  21191. ) {
  21192. this.showType = 4;
  21193. this.pptImgUrl1 = _url;
  21194. } else {
  21195. this.showType = 2;
  21196. this.pptImgUrl1 =
  21197. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21198. encodeURIComponent(_url);
  21199. }
  21200. } else if (_chapterData[taskCount][0].type == 13) {
  21201. this.showType = 4;
  21202. this.pptImgUrl1 = _url;
  21203. } else if (_chapterData[taskCount][0].type == 6) {
  21204. this.showType = 1;
  21205. this.text = this.textList[taskCount][0];
  21206. }
  21207. }
  21208. }
  21209. this.isClickNav = 0;
  21210. if (
  21211. !_chapterData[taskCount].length ||
  21212. _chapterData[taskCount][0].type == 12
  21213. ) {
  21214. this.isClickNav = "";
  21215. this.showType = "";
  21216. }
  21217. if (this.tType == 2) {
  21218. _chapterData.forEach((e,i)=>{
  21219. if (e.length) {
  21220. let yym = e.filter(k=>{
  21221. if(!converter(k.name).includes(converter("教案"))){
  21222. return k
  21223. }
  21224. })
  21225. _chapterData[i] = yym
  21226. }
  21227. })
  21228. }
  21229. this.vChapterData = _chapterData;
  21230. } else {
  21231. // this.showType = 0;
  21232. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21233. .chapterInfo[0].taskJson;
  21234. var b = [
  21235. "AVI",
  21236. "NAVI",
  21237. "MPEG",
  21238. "ASF",
  21239. "MOV",
  21240. "WMV",
  21241. "3GP",
  21242. "RM",
  21243. "RMVB",
  21244. "FLV",
  21245. "F4V",
  21246. "H.264",
  21247. "H.265",
  21248. "REAL VIDEO",
  21249. "MKV",
  21250. "WebM",
  21251. "HDDVD",
  21252. "MP4",
  21253. "MPG",
  21254. "M4V",
  21255. "MGV",
  21256. "OGV",
  21257. "QTM",
  21258. "STR",
  21259. "AMC",
  21260. "DVX",
  21261. "EVO",
  21262. "DAT",
  21263. "OGG",
  21264. "OGM",
  21265. "MP3",
  21266. ];
  21267. let _chapterData = [];
  21268. for (var i = 0; i < a.length; i++) {
  21269. var c = a[i].chapterData;
  21270. this.vedio[i] = [];
  21271. this.textList[i] = [];
  21272. this.lineList[i] = [];
  21273. this.chapToolList[i] = [];
  21274. this.file[i] = [];
  21275. this.fileC[i] = [];
  21276. _chapterData[i] = c.filter((el) => {
  21277. return el.type != 12;
  21278. });
  21279. this.fileC[i] = c.filter((el) => {
  21280. return el.type == 12;
  21281. });
  21282. if (this.tType == 2) {
  21283. if (this.fileC[i].length) {
  21284. let yym1 = this.fileC[i].filter(e=>{
  21285. if(!converter(e.name).includes(converter("教案"))){
  21286. return e
  21287. }
  21288. })
  21289. this.fileC[i] = yym1
  21290. }
  21291. }
  21292. for (var j = 0; j < c.length; j++) {
  21293. if (c[j].type == 7) {
  21294. this.chapToolList[i].push(c[j]);
  21295. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21296. this.lineList[i].push(c[j]);
  21297. } else if (c[j].type == 6) {
  21298. this.textList[i].push(c[j]);
  21299. } else {
  21300. if (
  21301. b.indexOf(
  21302. c[j].url
  21303. .split(".")
  21304. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21305. ) != -1
  21306. ) {
  21307. this.vedio[i].push(c[j]);
  21308. } else {
  21309. this.file[i].push(c[j]);
  21310. }
  21311. }
  21312. }
  21313. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21314. d.sources[0].src =
  21315. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21316. this.playerO[i] = d;
  21317. }
  21318. let taskCount = 0;
  21319. if (
  21320. _chapterData[taskCount].length &&
  21321. _chapterData[taskCount][0].type == 2
  21322. ) {
  21323. // this.showType = 0;
  21324. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21325. } else {
  21326. if (_chapterData[taskCount].length > 0) {
  21327. let _url = _chapterData[taskCount][0].url;
  21328. if (
  21329. _chapterData[taskCount][0].type == 8 ||
  21330. _chapterData[taskCount][0].type == 14 ||
  21331. _chapterData[taskCount][0].type == 15
  21332. ) {
  21333. // this.showType = 2;
  21334. if (
  21335. _url.indexOf("https://") == -1 &&
  21336. _url.indexOf("http://") == -1
  21337. ) {
  21338. _url = "https://" + _url;
  21339. }
  21340. // this.pptImgUrl1 = _url;
  21341. } else if (_chapterData[taskCount][0].type == 3) {
  21342. if (
  21343. _url
  21344. .split(".")
  21345. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21346. ) {
  21347. // this.showType = 3;
  21348. // this.pptImgUrl1 = _url;
  21349. } else if (
  21350. this.isAssetTypeAnImage(
  21351. _url
  21352. .split(".")
  21353. [_url.split(".").length - 1].toLocaleLowerCase()
  21354. )
  21355. ) {
  21356. // this.showType = 4;
  21357. // this.pptImgUrl1 = _url;
  21358. } else {
  21359. // this.showType = 2;
  21360. // this.pptImgUrl1 =
  21361. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  21362. // encodeURIComponent(_url);
  21363. }
  21364. } else if (_chapterData[taskCount][0].type == 13) {
  21365. // this.showType = 4;
  21366. // this.pptImgUrl1 = _url;
  21367. } else if (_chapterData[taskCount][0].type == 6) {
  21368. this.showType = 1;
  21369. this.text = this.textList[taskCount][0];
  21370. }
  21371. }
  21372. }
  21373. this.isClickNav = 0;
  21374. if (
  21375. !_chapterData[taskCount].length ||
  21376. _chapterData[taskCount][0].type == 12
  21377. ) {
  21378. this.isClickNav = "";
  21379. // this.showType = "";
  21380. }
  21381. if (this.tType == 2) {
  21382. _chapterData.forEach((e,i)=>{
  21383. if (e.length) {
  21384. let yym = e.filter(k=>{
  21385. if(!converter(k.name).includes(converter("教案"))){
  21386. return k
  21387. }
  21388. })
  21389. _chapterData[i] = yym
  21390. }
  21391. })
  21392. }
  21393. this.vChapterData = _chapterData;
  21394. this.$forceUpdate();
  21395. }
  21396. if (res.data[0][0].setting) {
  21397. try {
  21398. this.languageSetting =
  21399. JSON.parse(res.data[0][0].setting).languageSetting ||
  21400. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21401. ? JSON.parse(res.data[0][0].setting).languageSetting
  21402. : 0;
  21403. } catch (error) {
  21404. console.error(error);
  21405. }
  21406. }
  21407. // finalMarkList用来判断哪个工具为评分工具
  21408. if (this.courseDetail.state == 6) {
  21409. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21410. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21411. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21412. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21413. // // 没有的话在选其他工具为评分工具
  21414. // if(adc.length > 0){
  21415. // for (let k = chap.length - 1; k >= 0; k--) {
  21416. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21417. // this.finalMarkList = k;
  21418. // break;
  21419. // }
  21420. // }
  21421. // }else{
  21422. // for (let k = chap.length - 1; k >= 0; k--) {
  21423. // 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) {
  21424. // this.finalMarkList = k;
  21425. // break;
  21426. // }
  21427. // }
  21428. // }
  21429. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21430. // 不然会无限循环报错,会很难受
  21431. let aiSNum = 0;
  21432. if (
  21433. chapInfoListCopy[this.taskCount].eList &&
  21434. chapInfoListCopy[this.taskCount].eList.length
  21435. ) {
  21436. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21437. if (e.isai == 2) {
  21438. aiSNum++;
  21439. }
  21440. });
  21441. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21442. this.isaiNum = aiSNum;
  21443. } else {
  21444. this.isaiNum = 0;
  21445. }
  21446. // for (
  21447. // let k = 0;
  21448. // k < chapInfoListCopy[this.taskCount].eList.length;
  21449. // k++
  21450. // ) {
  21451. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21452. // this.againEva(this.taskCount, k);
  21453. // }
  21454. // }
  21455. }
  21456. }
  21457. // else {
  21458. // this.courseDetail = res.data[0][0];
  21459. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21460. // }
  21461. let _this = this;
  21462. if (_this.timer) {
  21463. clearInterval(_this.timer);
  21464. _this.timer = null;
  21465. }
  21466. // if (_this.timer2) {
  21467. // clearInterval(_this.timer2);
  21468. // _this.timer2 = null;
  21469. // }
  21470. if (_this.tcid) {
  21471. _this.getCourseGroup(gindex);
  21472. } else {
  21473. _this.selectSWorks(gindex);
  21474. }
  21475. _this.selectStudent();
  21476. _this.selectSLook();
  21477. _this.getPick();
  21478. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21479. // _this.setCTask();
  21480. // }
  21481. if (_this.dialogVisibleGroup) {
  21482. _this.groupJson =
  21483. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21484. _this.taskCount
  21485. ].toolChoose[_this.toolindex].groupJson;
  21486. }
  21487. _this.$nextTick(() => {
  21488. setTimeout(() => {
  21489. _this.checkEva();
  21490. }, 1000);
  21491. });
  21492. _this.timer = setInterval(function () {
  21493. // _this.getCourseDetail(2);
  21494. if (_this.tcid) {
  21495. _this.getCourseGroup();
  21496. } else {
  21497. _this.selectSWorks();
  21498. }
  21499. _this.selectStudent();
  21500. _this.selectSLook();
  21501. _this.getPick();
  21502. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21503. // _this.setCTask();
  21504. // }
  21505. if (_this.dialogVisibleGroup) {
  21506. _this.groupJson =
  21507. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21508. _this.taskCount
  21509. ].toolChoose[_this.toolindex].groupJson;
  21510. }
  21511. if (_this.tType == 4 || _this.ispzType == 4) {
  21512. _this.selectPz();
  21513. }
  21514. }, 5000);
  21515. if (_this.timer2 == null) {
  21516. _this.timer2 = setInterval(()=> {
  21517. _this.getSplitScreenData();//获取分屏数据
  21518. }, 5000);
  21519. }
  21520. _this.$nextTick(function () {
  21521. setTimeout(() => {
  21522. // var a =
  21523. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21524. // document.getElementsByClassName("vedioList")[0].style.height =
  21525. // a + "px";
  21526. // document.getElementsByClassName("navBox")[0].style.height =
  21527. // a - 40 + "px";
  21528. // if (_this.vedio[_this.taskCount].length > 0) {
  21529. // _this.vedioTime = [];
  21530. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21531. // _this.vedioTime[i] = document.getElementsByClassName(
  21532. // "vjs-duration-display"
  21533. // )[i].textContent;
  21534. // }
  21535. // }
  21536. }, 1000);
  21537. });
  21538. })
  21539. .catch((err) => {
  21540. loading.close();
  21541. console.error(err);
  21542. });
  21543. },
  21544. getCourseGroup(gindex) {
  21545. let params = {
  21546. cid: this.id,
  21547. classid: this.tcid ? this.tcid : "1",
  21548. };
  21549. this.ajax
  21550. .get(this.$store.state.api + "getCourseGroup", params)
  21551. .then((res) => {
  21552. if (res.data && res.data[0].length) {
  21553. if (!this.isGroup) {
  21554. let courseGroup = JSON.parse(res.data[0][0].group);
  21555. courseGroup.group = courseGroup.group.filter((el) => {
  21556. el.works = [];
  21557. return el;
  21558. });
  21559. if (courseGroup.isopen == 2) {
  21560. this.isGroup = false;
  21561. this.selectSWorks(gindex);
  21562. return;
  21563. }
  21564. this.courseGroup = courseGroup;
  21565. let groupPerson = res.data[1];
  21566. let group = JSON.parse(res.data[0][0].group).group;
  21567. let courseGroupStudent = {};
  21568. let courseGroupStudentUid = {};
  21569. for (var i = 0; i < group.length; i++) {
  21570. courseGroupStudent[group[i].id] = [];
  21571. courseGroupStudentUid[group[i].id] = [];
  21572. for (var j = 0; j < groupPerson.length; j++) {
  21573. if (groupPerson[j].groupCid == group[i].id) {
  21574. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21575. courseGroupStudentUid[group[i].id].push(
  21576. groupPerson[j].userid
  21577. );
  21578. }
  21579. }
  21580. }
  21581. this.courseGroupStudent = courseGroupStudent;
  21582. this.courseGroupStudentUid = courseGroupStudentUid;
  21583. }
  21584. if (this.courseGroup.isopen == 2) {
  21585. this.isGroup = false;
  21586. } else {
  21587. this.isGroup = true;
  21588. }
  21589. this.selectSWorks(gindex);
  21590. } else {
  21591. this.selectSWorks(gindex);
  21592. this.isGroup = false;
  21593. }
  21594. })
  21595. .catch((err) => {
  21596. // this.$message.error("网络不佳");
  21597. console.error(err);
  21598. });
  21599. },
  21600. setOperationTime() {
  21601. let _this = this;
  21602. if (_this.opertimer) {
  21603. clearInterval(_this.opertimer);
  21604. _this.opertimer = null;
  21605. }
  21606. _this.opertimer = setInterval(() => {
  21607. _this.setoTime("600");
  21608. }, 600000);
  21609. },
  21610. setoTime(time) {
  21611. let params = [
  21612. {
  21613. uid: this.userid,
  21614. cid: this.id,
  21615. type: "2",
  21616. time: time,
  21617. },
  21618. ];
  21619. this.ajax
  21620. .post(this.$store.state.api + "addOperationTimeT2", params)
  21621. .then((res) => {})
  21622. .catch((err) => {
  21623. console.error(err);
  21624. });
  21625. },
  21626. addPz(type, content) {
  21627. if (type == "1" && this.pzConText == "") {
  21628. this.$message.error("评论不能为空!");
  21629. return;
  21630. }
  21631. let params = [
  21632. {
  21633. cid: this.id,
  21634. uid: this.userid,
  21635. s: this.courseType,
  21636. t: this.taskCount,
  21637. c: type == "1" ? this.pzConText : content,
  21638. type: type,
  21639. },
  21640. ];
  21641. this.ajax
  21642. .post(this.$store.state.api + "addPz2", params)
  21643. .then((res) => {
  21644. this.$message({
  21645. message: "添加成功",
  21646. type: "success",
  21647. });
  21648. this.pzConText = "";
  21649. this.addPzDialog = false;
  21650. this.selectPz();
  21651. if(this.tType!=2){
  21652. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21653. }
  21654. })
  21655. .catch((err) => {
  21656. this.$message.error("添加失败");
  21657. console.error(err);
  21658. });
  21659. },
  21660. setReplyIndex(id, i) {
  21661. this.replyIndex = i;
  21662. this.replyPid = id;
  21663. this.replyDialogVisible = true;
  21664. },
  21665. addHf() {
  21666. if (this.reply == "") {
  21667. this.$message.error("回复不能为空!");
  21668. return;
  21669. }
  21670. let params = [
  21671. {
  21672. cid: this.id,
  21673. uid: this.userid,
  21674. s: this.courseType,
  21675. t: this.taskCount,
  21676. type: "1",
  21677. ct: 2,
  21678. pid: this.replyPid,
  21679. c: this.reply,
  21680. },
  21681. ];
  21682. this.ajax
  21683. .post(this.$store.state.api + "addHf", params)
  21684. .then((res) => {
  21685. this.reply = "";
  21686. this.$message({
  21687. message: "回复成功",
  21688. type: "success",
  21689. });
  21690. this.replyDialogVisible = false;
  21691. this.selectPz();
  21692. })
  21693. .catch((err) => {
  21694. this.$message.error("回复失败");
  21695. console.error(err);
  21696. });
  21697. },
  21698. deletePz(id) {
  21699. this.$confirm("确定删除此评论吗?", "提示", {
  21700. confirmButtonText: "确定",
  21701. cancelButtonText: "取消",
  21702. type: "warning",
  21703. })
  21704. .then(() => {
  21705. let params = [
  21706. {
  21707. id: id,
  21708. },
  21709. ];
  21710. this.ajax
  21711. .post(this.$store.state.api + "deletePz", params)
  21712. .then((res) => {
  21713. this.$message({
  21714. message: "删除成功",
  21715. type: "success",
  21716. });
  21717. this.selectPz();
  21718. })
  21719. .catch((err) => {
  21720. this.$message.error("网络异常");
  21721. console.error(err);
  21722. });
  21723. })
  21724. .catch(() => {});
  21725. },
  21726. deleteReply(id) {
  21727. this.$confirm("确定删除此回复吗?", "提示", {
  21728. confirmButtonText: "确定",
  21729. cancelButtonText: "取消",
  21730. type: "warning",
  21731. })
  21732. .then(() => {
  21733. let params = [
  21734. {
  21735. id: id,
  21736. },
  21737. ];
  21738. this.ajax
  21739. .post(this.$store.state.api + "deleteReply", params)
  21740. .then((res) => {
  21741. this.$message({
  21742. message: "删除成功",
  21743. type: "success",
  21744. });
  21745. this.selectPz();
  21746. })
  21747. .catch((err) => {
  21748. this.$message.error("网络异常");
  21749. console.error(err);
  21750. });
  21751. })
  21752. .catch(() => {});
  21753. },
  21754. setPz() {
  21755. if (this.ispzType == 4) {
  21756. this.ispzType = 0;
  21757. this.pzDialog = false;
  21758. return;
  21759. }
  21760. this.ispzType = 4;
  21761. this.pzDialog = true;
  21762. this.selectPz();
  21763. },
  21764. selectPz() {
  21765. let params = {
  21766. cid: this.id,
  21767. s: this.courseType,
  21768. t: this.taskCount,
  21769. type: this.pzStype,
  21770. uid: this.userid,
  21771. };
  21772. this.ajax
  21773. .get(this.$store.state.api + "selectPzListType", params)
  21774. .then((res) => {
  21775. this.pzList = res.data[0];
  21776. var a = res.data[1];
  21777. for (var i = 0; i < a.length; i++) {
  21778. for (var j = 0; j < this.pzList.length; j++) {
  21779. if (!this.pzList[j].hfList) {
  21780. this.pzList[j].hfList = [];
  21781. }
  21782. if (a[i].pid == this.pzList[j].id) {
  21783. this.pzList[j].hfList.push(a[i]);
  21784. }
  21785. }
  21786. }
  21787. })
  21788. .catch((err) => {
  21789. console.error(err);
  21790. });
  21791. },
  21792. // selectHf() {
  21793. // let params = {
  21794. // cid: this.id,
  21795. // s: this.courseType,
  21796. // t: this.taskCount,
  21797. // };
  21798. // this.ajax
  21799. // .get(this.$store.state.api + "selectHfList", params)
  21800. // .then((res) => {
  21801. // var a = res.data[0];
  21802. // for (var i = 0; i < a.length; i++) {
  21803. // for (var j = 0; j < this.pzList.length; j++) {
  21804. // if (!this.pzList[i].hfList) {
  21805. // this.pzList[i].hfList = [];
  21806. // }
  21807. // if (a[i].pid == this.pzList[j].id) {
  21808. // this.pzList[i].hfList.push(a[i]);
  21809. // }
  21810. // }
  21811. // }
  21812. // })
  21813. // .catch((err) => {
  21814. // console.error(err);
  21815. // });
  21816. // },
  21817. updateSLook() {
  21818. let params = {
  21819. sopen: this.sIsOpen == false ? 1 : 2,
  21820. cid: this.id,
  21821. };
  21822. this.ajax
  21823. .get(this.$store.state.api + "updateCourseSLook", params)
  21824. .then((res) => {
  21825. if (this.sIsOpen == true) {
  21826. this.$message({
  21827. message: "权限设置成功",
  21828. type: "success",
  21829. });
  21830. } else {
  21831. this.$message({
  21832. message: "权限关闭成功",
  21833. type: "success",
  21834. });
  21835. }
  21836. })
  21837. .catch((err) => {
  21838. console.error(err);
  21839. });
  21840. },
  21841. updateFollow() {
  21842. let params = [
  21843. {
  21844. sopen: this.IsFollow == false ? 1 : 2,
  21845. cid: this.id,
  21846. },
  21847. ];
  21848. this.ajax
  21849. .post(this.$store.state.api + "updateCourseFollow", params)
  21850. .then((res) => {
  21851. if (this.IsFollow == true) {
  21852. this.$message({
  21853. message: "开启成功",
  21854. type: "success",
  21855. });
  21856. } else {
  21857. this.$message({
  21858. message: "关闭成功",
  21859. type: "success",
  21860. });
  21861. }
  21862. this.setCTask();
  21863. })
  21864. .catch((err) => {
  21865. console.error(err);
  21866. });
  21867. },
  21868. setCTask() {
  21869. let params = [
  21870. {
  21871. sopen: this.courseType + "-" + this.taskCount,
  21872. cid: this.id,
  21873. },
  21874. ];
  21875. this.ajax
  21876. .post(this.$store.state.api + "updateCourseFollowC", params)
  21877. .then((res) => {})
  21878. .catch((err) => {
  21879. console.error(err);
  21880. });
  21881. },
  21882. updateLookOpen() {
  21883. let params = [
  21884. {
  21885. sopen: this.IsLookOpen == false ? 1 : 2,
  21886. cid: this.id,
  21887. },
  21888. ];
  21889. this.ajax
  21890. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21891. .then((res) => {
  21892. if (this.IsLookOpen == true) {
  21893. // if (this.courseType != 0 && this.taskCount != 0) {
  21894. // this.openTask(0, 0, "0-0");
  21895. // }
  21896. this.$message({
  21897. message: "权限设置成功",
  21898. type: "success",
  21899. });
  21900. } else {
  21901. this.$message({
  21902. message: "权限关闭成功",
  21903. type: "success",
  21904. });
  21905. }
  21906. this.getCourseState(2);
  21907. })
  21908. .catch((err) => {
  21909. console.error(err);
  21910. });
  21911. },
  21912. selectSLook() {
  21913. let params = {
  21914. cid: this.id,
  21915. };
  21916. this.ajax
  21917. .get(this.$store.state.api + "selectCourseSLook", params)
  21918. .then((res) => {
  21919. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21920. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21921. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21922. if (!this.IsLookOpen) {
  21923. this.setNavList();
  21924. }
  21925. // else {
  21926. this.getCourseState(1);
  21927. // }
  21928. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21929. this.setContent2(false);
  21930. let _followC = res.data[0][0].followC.split("-");
  21931. if (
  21932. this.courseType != _followC[0] ||
  21933. this.taskCount != _followC[1]
  21934. ) {
  21935. this.navList[this.courseType].isOpen = false;
  21936. this.courseType = _followC[0];
  21937. this.navList[this.courseType].isOpen = true;
  21938. this.taskCount = parseInt(_followC[1]);
  21939. this.navId = res.data[0][0].followC;
  21940. document.scrollingElement.scrollTop = 0;
  21941. this.getCourseDetail(2);
  21942. }
  21943. }
  21944. })
  21945. .catch((err) => {
  21946. console.error(err);
  21947. });
  21948. },
  21949. setNavList() {
  21950. if (this.navList.length == 0) {
  21951. this.navList = [];
  21952. var copyList = [];
  21953. for (var l = 0; l < this.chapInfoList.length; l++) {
  21954. var q = this.chapInfoList[l].dyName;
  21955. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21956. var e;
  21957. copyList.push({
  21958. dyName: q,
  21959. isOpen: l === 0 ? true : false,
  21960. task: [],
  21961. });
  21962. for (var r = 0; r < w.length; r++) {
  21963. e = w[r].task;
  21964. if (this.chapInfoList[l].easy == 1) {
  21965. copyList[l].task.push({
  21966. taskName: q,
  21967. id: l + "-" + r,
  21968. isLook: w[r].isLook,
  21969. isOpen: r === 0 ? true : false,
  21970. tool: [],
  21971. });
  21972. } else {
  21973. copyList[l].task.push({
  21974. taskName: e,
  21975. id: l + "-" + r,
  21976. isLook: w[r].isLook,
  21977. isOpen: r === 0 ? true : false,
  21978. tool: [],
  21979. });
  21980. }
  21981. var t = w[r].toolChoose;
  21982. for (var k = 0; k < t.length; k++) {
  21983. var tool = t[k].tool[0];
  21984. copyList[l].task[r].tool.push({
  21985. tool: tool,
  21986. isTool: false,
  21987. });
  21988. }
  21989. // this.navId = this.navId ? this.navId : l + "-" + r;
  21990. // this.navId = l + "-" + r;
  21991. }
  21992. }
  21993. this.navList = copyList;
  21994. this.navList[0].isOpen = false;
  21995. this.navList[this.courseType].isOpen = true;
  21996. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21997. } else {
  21998. this.setNavList2();
  21999. }
  22000. },
  22001. setNavList2() {
  22002. for (var l = 0; l < this.chapInfoList.length; l++) {
  22003. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22004. for (var r = 0; r < w.length; r++) {
  22005. this.navList[l].task[r].isLook = w[r].isLook;
  22006. }
  22007. }
  22008. if (
  22009. this.IsLookOpen &&
  22010. !this.navList[this.courseType].task[this.taskCount].isLook
  22011. ) {
  22012. this.openTask(0, 0, "0-0");
  22013. }
  22014. this.$forceUpdate();
  22015. },
  22016. getCourseState(type) {
  22017. let params = {
  22018. cid: this.id,
  22019. };
  22020. this.ajax
  22021. .get(this.$store.state.api + "getCourseState", params)
  22022. .then((res) => {
  22023. // if (res.data[0].length > 0) {
  22024. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22025. // }
  22026. if (res.data[0].length > 0 && type == 1) {
  22027. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22028. this.setNavList();
  22029. this.$forceUpdate();
  22030. } else if (res.data[0].length > 0 && type == 2) {
  22031. this.addCourseState(2);
  22032. } else {
  22033. // this.addCourseState(1);
  22034. }
  22035. })
  22036. .catch((err) => {
  22037. console.error(err);
  22038. });
  22039. },
  22040. addCourseState(type,val = '') {
  22041. let _state = val ? val : this.chapInfoList;
  22042. // this.courseType this.taskCount
  22043. if (type == 1 || type == 2) {
  22044. for (var i = 0; i < _state.length; i++) {
  22045. let el = _state[i].chapterInfo[0].taskJson;
  22046. for (var j = 0; j < el.length; j++) {
  22047. // if (i == 0 && j == 0) {
  22048. // el[j].isLook = true;
  22049. // } else {
  22050. // el[j].isLook = false;
  22051. // }
  22052. if (
  22053. this.courseType > i ||
  22054. (this.courseType == i && this.taskCount + 1 > j)
  22055. ) {
  22056. el[j].isLook = true;
  22057. } else {
  22058. el[j].isLook = false;
  22059. }
  22060. }
  22061. }
  22062. }
  22063. let params = [
  22064. {
  22065. cid: this.id,
  22066. state: JSON.stringify(_state),
  22067. },
  22068. ];
  22069. this.ajax
  22070. .post(
  22071. this.$store.state.api +
  22072. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22073. params
  22074. )
  22075. .then((res) => {
  22076. if (this.IsLookOpen) {
  22077. this.setNavList();
  22078. }
  22079. if (type == 3 && type == 2) {
  22080. this.getCourseState(1);
  22081. }
  22082. })
  22083. .catch((err) => {
  22084. console.error(err);
  22085. });
  22086. },
  22087. getHomeWork() {
  22088. let params = {
  22089. cid: this.id,
  22090. stage: this.courseType,
  22091. task: this.taskCount,
  22092. uid: this.userid,
  22093. };
  22094. this.ajax
  22095. .get(this.$store.state.api + "selectWork", params)
  22096. .then((res) => {
  22097. if (res.data[0].length > 0) {
  22098. this.studyJuri = JSON.parse(res.data[0][0].content);
  22099. this.isNoHomeWork = true;
  22100. }
  22101. })
  22102. .catch((err) => {
  22103. console.error(err);
  22104. });
  22105. },
  22106. isAssetTypeAnImage(ext) {
  22107. return (
  22108. [
  22109. "png",
  22110. "jpg",
  22111. "jpeg",
  22112. "bmp",
  22113. "gif",
  22114. "webp",
  22115. "psd",
  22116. "svg",
  22117. "tiff",
  22118. ].indexOf(ext) !== -1
  22119. );
  22120. },
  22121. switchVideo(media) {
  22122. this.playerO = {};
  22123. this.playerOptions.poster = "";
  22124. this.playerOptions.sources[0].src = media;
  22125. this.playerO = this.playerOptions;
  22126. },
  22127. onPlayerPlay() {},
  22128. onPlayerTimeupdate(player) {
  22129. let gklog = player.cache_.currentTime; //当前播放的秒数
  22130. let a = player.cache_.duration; //视频的总时长
  22131. let gklog2 = parseInt(gklog);
  22132. // if(gklog2 == '3'){
  22133. // player.pause()
  22134. // setTimeout(()=>{
  22135. // player.currentTime(gklog2+1)
  22136. // player.play()
  22137. // },1000)
  22138. // }
  22139. console.log(" onPlayerTimeupdate!", gklog);
  22140. console.log(" onPlayerTimeupdate!", gklog2);
  22141. },
  22142. lookVedio(u, i) {
  22143. this.isClickNav = "";
  22144. // this.playerOptions.sources[0].src = u;
  22145. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22146. d.sources[0].src = u;
  22147. this.playerO[0] = d;
  22148. this.showType = 0;
  22149. // this.isClickNav = "video" + i;
  22150. this.isClickNav = i;
  22151. this.$forceUpdate();
  22152. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  22153. },
  22154. lookText(i, t) {
  22155. this.isClickNav = "";
  22156. // this.text = this.textList[i][t];
  22157. this.text = this.vChapterData[i][t];
  22158. // this.dialogVisible1 = true;
  22159. this.showType = 1;
  22160. // this.isClickNav = "text" + t;
  22161. this.isClickNav = t;
  22162. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  22163. },
  22164. lookTools(i, t) {
  22165. this.chapTools = this.chapToolList[i][t];
  22166. this.dialogVisible2 = true;
  22167. },
  22168. async openFile(f) {
  22169. this.pptImgUrl = "";
  22170. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22171. if (
  22172. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22173. -1
  22174. ) {
  22175. let _uuurl = await this.checkLink(f);
  22176. console.log(_uuurl)
  22177. this.pptImgUrl =
  22178. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22179. this.showPDF = false;
  22180. this.dialogVisible3 = true;
  22181. } else if (
  22182. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22183. ) {
  22184. this.pptImgUrl = f;
  22185. this.showPDF = true;
  22186. this.dialogVisible3 = true;
  22187. }
  22188. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  22189. },
  22190. openTable(f) {
  22191. this.tableJson = JSON.parse(f.works);
  22192. this.dialogVisibleTable2 = true;
  22193. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22194. },
  22195. openWord(f) {
  22196. this.tableJson = JSON.parse(f.works);
  22197. this.dialogVisibleTable3 = true;
  22198. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22199. },
  22200. doUrl(url, i) {
  22201. this.isClickNav = "";
  22202. this.pptImgUrl1 = "";
  22203. this.showType = 2;
  22204. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22205. url = "https://" + url;
  22206. }
  22207. this.pptImgUrl1 = "";
  22208. this.diffKey = new Date().getTime();
  22209. setTimeout(() => {
  22210. this.pptImgUrl1 = url;
  22211. }, 500);
  22212. // this.isClickNav = "line" + i;
  22213. this.isClickNav = i;
  22214. this.$forceUpdate();
  22215. },
  22216. checkPhoto(f, i) {
  22217. this.showType = 4;
  22218. this.pptImgUrl1 = f.url;
  22219. this.isClickNav = i;
  22220. this.$forceUpdate();
  22221. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22222. },
  22223. checkHtml(f, i){
  22224. this.showType = 16;
  22225. this.pptImgUrl1 = f.url;
  22226. this.isClickNav = i;
  22227. this.$forceUpdate();
  22228. },
  22229. async downFile(f, i) {
  22230. this.isClickNav = "";
  22231. this.pptImgUrl1 = "";
  22232. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22233. if (
  22234. a.indexOf(
  22235. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22236. ) != -1
  22237. ) {
  22238. let _uuurl = await this.checkLink(f.url);
  22239. console.log(_uuurl)
  22240. this.pptImgUrl1 =
  22241. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22242. // this.dialogVisible3 = true;
  22243. this.showType = 2;
  22244. } else if (
  22245. this.isAssetTypeAnImage(
  22246. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22247. )
  22248. ) {
  22249. this.showType = 4;
  22250. this.pptImgUrl1 = f.url;
  22251. } else if (
  22252. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22253. "PDF"
  22254. ) {
  22255. this.pptImgUrl1 = f.url;
  22256. // this.dialogVisible3 = true;
  22257. this.showType = 3;
  22258. } else {
  22259. window.open(this.file[i].url);
  22260. }
  22261. // this.isClickNav = "word" + i;
  22262. this.isClickNav = i;
  22263. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22264. },
  22265. downFileList(i) {
  22266. window.open(this.noImgList[i].url);
  22267. },
  22268. openAddWork() {
  22269. this.dialogVisible = true;
  22270. },
  22271. addBzWorks() {
  22272. let params = [
  22273. {
  22274. uid: this.userid,
  22275. cid: this.id,
  22276. stage: this.courseType,
  22277. task: this.taskCount,
  22278. tool: this.toolindex,
  22279. content: JSON.stringify(this.eScore),
  22280. type: 6,
  22281. },
  22282. ];
  22283. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22284. this.homeWorkLoading = true
  22285. this.ajax
  22286. .post(this.$store.state.api + "addCourseWorks", params)
  22287. .then((res) => {
  22288. this.$message({
  22289. message: "提交成功",
  22290. type: "success",
  22291. });
  22292. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22293. setTimeout(() => {
  22294. this.homeWorkLoading = false
  22295. }, 500);
  22296. this.eScore = { eBzText: "", eStar: [] };
  22297. this.studentEvalDialogVisible = false;
  22298. this.selectSWorks();
  22299. })
  22300. .catch((err) => {
  22301. this.$message.error("提交失败");
  22302. console.error(err);
  22303. setTimeout(() => {
  22304. this.homeWorkLoading = false
  22305. }, 500);
  22306. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22307. });
  22308. },
  22309. addBzWorksTeacher() {
  22310. let params = [
  22311. {
  22312. uid: this.sStudent.userid,
  22313. cid: this.id,
  22314. stage: this.courseType,
  22315. task: this.taskCount,
  22316. tool: this.toolindex,
  22317. content: JSON.stringify(this.eScore),
  22318. type: 6,
  22319. },
  22320. ];
  22321. this.ajax
  22322. .post(this.$store.state.api + "addCourseWorks", params)
  22323. .then((res) => {
  22324. this.$message({
  22325. message: "提交成功",
  22326. type: "success",
  22327. });
  22328. this.eScore = { eBzText: "", eStar: [] };
  22329. this.studentEvalDialogVisibleTeacher = false;
  22330. this.selectSWorks();
  22331. })
  22332. .catch((err) => {
  22333. this.$message.error("提交失败");
  22334. console.error(err);
  22335. });
  22336. },
  22337. addStudentAsk() {
  22338. if (!this.radio.length) {
  22339. this.$message.error("请选择选项");
  22340. return;
  22341. }
  22342. for (var i = 0; i < this.askJson.askCount; i++) {
  22343. if (
  22344. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22345. (this.radio[i] !== 0 && !this.radio[i])
  22346. ) {
  22347. this.$message.error("请选择选项");
  22348. return;
  22349. }
  22350. }
  22351. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22352. let params = [
  22353. {
  22354. uid: this.userid,
  22355. cid: this.id,
  22356. stage: this.courseType,
  22357. task: this.taskCount,
  22358. tool: this.toolindex,
  22359. content: JSON.stringify(this.askList),
  22360. type: 2,
  22361. },
  22362. ];
  22363. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22364. this.homeWorkLoading = true
  22365. this.ajax
  22366. .post(this.$store.state.api + "addCourseWorks", params)
  22367. .then((res) => {
  22368. this.$message({
  22369. message: "提交成功",
  22370. type: "success",
  22371. });
  22372. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22373. setTimeout(() => {
  22374. this.homeWorkLoading = false
  22375. }, 500);
  22376. this.askList = [];
  22377. this.dialogVisible5 = false;
  22378. this.selectStudent();
  22379. this.selectSWorks();
  22380. this.selectSLook();
  22381. })
  22382. .catch((err) => {
  22383. this.$message.error("提交失败");
  22384. console.error(err);
  22385. setTimeout(() => {
  22386. this.homeWorkLoading = false
  22387. }, 500);
  22388. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22389. });
  22390. },
  22391. addStudentAskTeacher() {
  22392. if (!this.radio.length) {
  22393. this.$message.error("请选择选项");
  22394. return;
  22395. }
  22396. for (var i = 0; i < this.askJson.askCount; i++) {
  22397. if (
  22398. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22399. (this.radio[i] !== 0 && !this.radio[i])
  22400. ) {
  22401. this.$message.error("请选择选项");
  22402. return;
  22403. }
  22404. }
  22405. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22406. let params = [
  22407. {
  22408. uid: this.sStudent.userid,
  22409. cid: this.id,
  22410. stage: this.courseType,
  22411. task: this.taskCount,
  22412. tool: this.toolindex,
  22413. content: JSON.stringify(this.askList),
  22414. type: 2,
  22415. },
  22416. ];
  22417. this.ajax
  22418. .post(this.$store.state.api + "addCourseWorks", params)
  22419. .then((res) => {
  22420. this.$message({
  22421. message: "提交成功",
  22422. type: "success",
  22423. });
  22424. this.askList = [];
  22425. this.dialogVisible5Teacher = false;
  22426. this.selectStudent();
  22427. this.selectSWorks();
  22428. this.selectSLook();
  22429. })
  22430. .catch((err) => {
  22431. this.$message.error("提交失败");
  22432. console.error(err);
  22433. });
  22434. },
  22435. addStudentTest() {
  22436. if (!this.radio.length) {
  22437. this.$message.error("请选择选项");
  22438. return;
  22439. }
  22440. for (var i = 0; i < this.testJson.testCount; i++) {
  22441. if (
  22442. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22443. (this.radio[i] !== 0 && !this.radio[i])
  22444. ) {
  22445. this.$message.error("请选择选项");
  22446. return;
  22447. }
  22448. }
  22449. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22450. let params = [
  22451. {
  22452. uid: this.userid,
  22453. cid: this.id,
  22454. stage: this.courseType,
  22455. task: this.taskCount,
  22456. tool: this.toolindex,
  22457. content: JSON.stringify(this.askList),
  22458. type: 8,
  22459. },
  22460. ];
  22461. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22462. this.homeWorkLoading = true
  22463. this.ajax
  22464. .post(this.$store.state.api + "addCourseWorks", params)
  22465. .then((res) => {
  22466. this.$message({
  22467. message: "提交成功",
  22468. type: "success",
  22469. });
  22470. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22471. setTimeout(() => {
  22472. this.homeWorkLoading = false
  22473. }, 500);
  22474. this.askList = [];
  22475. this.dialogVisibleChoice = false;
  22476. this.selectStudent();
  22477. this.selectSWorks();
  22478. this.selectSLook();
  22479. })
  22480. .catch((err) => {
  22481. this.$message.error("提交失败");
  22482. console.error(err);
  22483. setTimeout(() => {
  22484. this.homeWorkLoading = false
  22485. }, 500);
  22486. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22487. });
  22488. },
  22489. addStudentTestTeacher() {
  22490. if (!this.radio.length) {
  22491. this.$message.error("请选择选项");
  22492. return;
  22493. }
  22494. for (var i = 0; i < this.testJson.testCount; i++) {
  22495. if (
  22496. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22497. (this.radio[i] !== 0 && !this.radio[i])
  22498. ) {
  22499. this.$message.error("请选择选项");
  22500. return;
  22501. }
  22502. }
  22503. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22504. let params = [
  22505. {
  22506. uid: this.sStudent.userid,
  22507. cid: this.id,
  22508. stage: this.courseType,
  22509. task: this.taskCount,
  22510. tool: this.toolindex,
  22511. content: JSON.stringify(this.askList),
  22512. type: 8,
  22513. },
  22514. ];
  22515. this.ajax
  22516. .post(this.$store.state.api + "addCourseWorks", params)
  22517. .then((res) => {
  22518. this.$message({
  22519. message: "提交成功",
  22520. type: "success",
  22521. });
  22522. this.askList = [];
  22523. this.dialogVisibleChoiceTeacher = false;
  22524. this.selectStudent();
  22525. this.selectSWorks();
  22526. this.selectSLook();
  22527. })
  22528. .catch((err) => {
  22529. this.$message.error("提交失败");
  22530. console.error(err);
  22531. });
  22532. },
  22533. addWork() {
  22534. if (this.studyJuri[0].content == "") {
  22535. this.$message.error("请将信息填写完整");
  22536. return;
  22537. } else if (this.studyJuri[0].cover.length == 0) {
  22538. this.$message.error("请将信息填写完整");
  22539. return;
  22540. } else if (this.studyJuri[0].upVedio.length == 0) {
  22541. this.$message.error("请将信息填写完整");
  22542. return;
  22543. }
  22544. if (this.isNoHomeWork) {
  22545. this.$confirm(
  22546. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22547. "提示",
  22548. {
  22549. confirmButtonText: "确定",
  22550. cancelButtonText: "取消",
  22551. type: "warning",
  22552. }
  22553. )
  22554. .then(() => {
  22555. let params = [
  22556. {
  22557. uid: this.userid,
  22558. cid: this.id,
  22559. stage: this.courseType,
  22560. task: this.taskCount,
  22561. content: JSON.stringify(this.studyJuri),
  22562. },
  22563. ];
  22564. this.ajax
  22565. .post(this.$store.state.api + "addWorks", params)
  22566. .then((res) => {
  22567. this.$message({
  22568. message: "提交成功",
  22569. type: "success",
  22570. });
  22571. this.isNoHomeWork = true;
  22572. this.dialogVisible = false;
  22573. })
  22574. .catch((err) => {
  22575. this.$message.error("提交失败");
  22576. console.error(err);
  22577. });
  22578. })
  22579. .catch(() => {});
  22580. } else {
  22581. let params = [
  22582. {
  22583. uid: this.userid,
  22584. cid: this.id,
  22585. stage: this.courseType,
  22586. task: this.taskCount,
  22587. content: JSON.stringify(this.studyJuri),
  22588. },
  22589. ];
  22590. this.ajax
  22591. .post(this.$store.state.api + "addWorks", params)
  22592. .then((res) => {
  22593. this.$message({
  22594. message: "提交成功",
  22595. type: "success",
  22596. });
  22597. this.isNoHomeWork = true;
  22598. this.dialogVisible = false;
  22599. })
  22600. .catch((err) => {
  22601. this.$message.error("提交失败");
  22602. console.error(err);
  22603. });
  22604. }
  22605. },
  22606. selectCount() {
  22607. let params = {
  22608. cid: this.id,
  22609. chid: this.courseType,
  22610. uid: this.userid,
  22611. };
  22612. this.ajax
  22613. .get(this.$store.state.api + "selectToolsCount", params)
  22614. .then((res) => {
  22615. for (var i = 0; i < res.data[0].length; i++) {
  22616. if (res.data[0][i].tools == 1) {
  22617. this.wbCount = res.data[0][i].count;
  22618. } else if (res.data[0][i].tools == 2) {
  22619. this.wordCount = res.data[0][i].count;
  22620. } else if (res.data[0][i].tools == 3) {
  22621. this.mindCount = res.data[0][i].count;
  22622. } else if (res.data[0][i].tools == 4) {
  22623. this.askCount = res.data[0][i].count;
  22624. } else if (res.data[0][i].tools == 6) {
  22625. this.noteCount = res.data[0][i].count;
  22626. } else if (res.data[0][i].tools == 7) {
  22627. this.mindNetWorkCount = res.data[0][i].count;
  22628. } else if (res.data[0][i].tools == 8) {
  22629. this.libraryCount = res.data[0][i].count;
  22630. } else if (res.data[0][i].tools == 16) {
  22631. this.workCount = res.data[0][i].count;
  22632. } else if (res.data[0][i].tools == 10) {
  22633. this.timeCount = res.data[0][i].count;
  22634. } else if (res.data[0][i].tools == 15) {
  22635. this.answerCount = res.data[0][i].count;
  22636. } else if (res.data[0][i].tools == 18) {
  22637. this.trainCount = res.data[0][i].count;
  22638. }
  22639. }
  22640. })
  22641. .catch((err) => {
  22642. console.error(err);
  22643. });
  22644. },
  22645. openTools(t, i, index, c, sName,id) {
  22646. var z = JSON.parse(c);
  22647. this.noteName = sName;
  22648. if (t == 4) {
  22649. this.radio = [];
  22650. this.isAnswer = false;
  22651. let b = z[0].anwer;
  22652. this.radio = b;
  22653. this.askJson = z[0].askJson;
  22654. this.isAnswer = true;
  22655. this.dialogVisible5 = true;
  22656. } else if (t == 45) {
  22657. this.radio = [];
  22658. this.isAnswer = false;
  22659. let b = z[0].anwer;
  22660. this.radio = b;
  22661. this.testJson = z[0].testJson;
  22662. this.isAnswer = true;
  22663. this.dialogVisibleChoice = true;
  22664. }else if(t == 69){
  22665. this.oldEnglishJson1 = {}
  22666. this.oldEnglishJson = {}
  22667. this.englishList1 = {}
  22668. this.newEngIndex = -1;
  22669. this.isNoUserid = false;
  22670. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22671. .toolChoose[i].englishList;
  22672. this.oldEnglishJson = z;
  22673. this.engWid = id;
  22674. this.newEnglishList = { engTitle:"",engText:"" }
  22675. this.newEnglishList1 = []
  22676. this.selectEngC(id,z);
  22677. }else if(t == 62){
  22678. this.videoType = 1;
  22679. this.videoJson = {};
  22680. this.videoJson = JSON.parse(c);
  22681. // this.videoJson =
  22682. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22683. // index
  22684. // ].toolChoose[i].videoJson;
  22685. this.dialogVisibleVideo = true;
  22686. }
  22687. // else if (t == 15) {
  22688. // this.answerQ = "";
  22689. // this.questionAnswer = "";
  22690. // this.answerQ = z[0].answerTitle;
  22691. // this.questionAnswer = z[0].answer;
  22692. // this.answerDialogVisible = true;
  22693. // }
  22694. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22695. },
  22696. fastText(p, t) {
  22697. if (t == 1) {
  22698. this.commentText += p;
  22699. } else {
  22700. this.eScore.eBzText += p;
  22701. }
  22702. },
  22703. addTools(t, i, index) {
  22704. var a = 0;
  22705. // this.taskCount = index;
  22706. this.toolindex = i;
  22707. if (t == 1) {
  22708. if (this.wbCount > 0) {
  22709. this.updateCount(this.wbCount, t);
  22710. } else {
  22711. this.wbCount++;
  22712. a = this.wbCount;
  22713. this.toolsCount(a, t);
  22714. }
  22715. window.topU.postMessage(
  22716. {
  22717. tools: "1",
  22718. cid: this.id,
  22719. stage: this.courseType,
  22720. task: this.taskCount,
  22721. tool: i,
  22722. },
  22723. "*"
  22724. );
  22725. } else if (t == 2) {
  22726. if (this.wordCount > 0) {
  22727. this.updateCount(this.wordCount, t);
  22728. } else {
  22729. this.wordCount++;
  22730. a = this.wordCount;
  22731. this.toolsCount(a, t);
  22732. }
  22733. window.topU.postMessage({ tools: "2" }, "*");
  22734. } else if (t == 3) {
  22735. if (this.mindCount > 0) {
  22736. this.updateCount(this.mindCount, t);
  22737. } else {
  22738. this.mindCount++;
  22739. a = this.mindCount;
  22740. this.toolsCount(a, t);
  22741. }
  22742. window.topU.postMessage(
  22743. {
  22744. tools: "3",
  22745. cid: this.id,
  22746. stage: this.courseType,
  22747. task: this.taskCount,
  22748. tool: i,
  22749. },
  22750. "*"
  22751. );
  22752. } else if (t == 4) {
  22753. this.radio = [];
  22754. this.noteName = "";
  22755. this.isAnswer = false;
  22756. if (this.askCount > 0) {
  22757. this.updateCount(this.askCount, t);
  22758. } else {
  22759. this.askCount++;
  22760. a = this.askCount;
  22761. this.toolsCount(a, t);
  22762. }
  22763. if (!this.dialogVisible2) {
  22764. this.askJson.askJson =
  22765. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22766. index
  22767. ].toolChoose[i].askJson;
  22768. this.askJson.askTitle =
  22769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22770. index
  22771. ].toolChoose[i].askTitle;
  22772. this.askJson.askCount =
  22773. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22774. index
  22775. ].toolChoose[i].askCount;
  22776. } else {
  22777. this.askJson.askJson = this.chapTools.askJson.askJson;
  22778. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22779. this.askJson.askCount = this.chapTools.askJson.askCount;
  22780. }
  22781. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22782. if (this.askJson.askJson[k].type == "2") {
  22783. this.radio.push([]);
  22784. } else {
  22785. this.radio.push("");
  22786. }
  22787. }
  22788. this.dialogVisible5 = true;
  22789. // window.topU.postMessage({ tools: "4" }, "*");
  22790. } else if (t == 45) {
  22791. this.noteName = "";
  22792. this.radio = [];
  22793. this.isAnswer = false;
  22794. if (this.askCount > 0) {
  22795. this.updateCount(this.askCount, t);
  22796. } else {
  22797. this.askCount++;
  22798. a = this.askCount;
  22799. this.toolsCount(a, t);
  22800. }
  22801. this.testJson =
  22802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22803. index
  22804. ].toolChoose[i].testJson;
  22805. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22806. if (this.testJson.testJson[k].type == "2") {
  22807. this.radio.push([]);
  22808. } else {
  22809. this.radio.push("");
  22810. }
  22811. }
  22812. this.dialogVisibleChoice = true;
  22813. // window.topU.postMessage({ tools: "4" }, "*");
  22814. } else if (t == 5) {
  22815. if (this.scoreCount > 0) {
  22816. this.updateCount(this.scoreCount, t);
  22817. } else {
  22818. this.scoreCount++;
  22819. a = this.scoreCount;
  22820. this.toolsCount(a, t);
  22821. }
  22822. this.dialogVisible4 = true;
  22823. // window.topU.postMessage({ tools: "5" }, "*");
  22824. } else if (t == 6) {
  22825. if (this.noteCount > 0) {
  22826. this.updateCount(this.noteCount, t);
  22827. } else {
  22828. this.noteCount++;
  22829. a = this.noteCount;
  22830. this.toolsCount(a, t);
  22831. }
  22832. window.topU.postMessage(
  22833. {
  22834. tools: "6",
  22835. cid: this.id,
  22836. stage: this.courseType,
  22837. task: this.taskCount,
  22838. tool: i,
  22839. },
  22840. "*"
  22841. );
  22842. } else if (t == 7) {
  22843. if (this.mindNetWorkCount > 0) {
  22844. this.updateCount(this.mindNetWorkCount, t);
  22845. } else {
  22846. this.mindNetWorkCount++;
  22847. a = this.mindNetWorkCount;
  22848. this.toolsCount(a, t);
  22849. }
  22850. window.topU.postMessage(
  22851. {
  22852. tools: "7",
  22853. cid: this.id,
  22854. stage: this.courseType,
  22855. task: this.taskCount,
  22856. tool: i,
  22857. },
  22858. "*"
  22859. );
  22860. } else if (t == 16) {
  22861. if (this.workCount > 0) {
  22862. this.updateCount(this.workCount, t);
  22863. } else {
  22864. this.workCount++;
  22865. a = this.workCount;
  22866. this.toolsCount(a, t);
  22867. }
  22868. this.dialogVisible = true;
  22869. } else if (t == 50) {
  22870. if (this.tType == 2) {
  22871. this.$message.error("不支持学生使用");
  22872. return;
  22873. }
  22874. this.plworkFile = [];
  22875. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22876. if (!this.uploadCid) {
  22877. this.$message.error(
  22878. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22879. );
  22880. return;
  22881. }
  22882. // this.uploadCid =
  22883. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22884. // index
  22885. // ].toolChoose[i].uploadJson[0];
  22886. this.selectUploadStudent(2);
  22887. } else if (t == 8) {
  22888. if (this.libraryCount > 0) {
  22889. this.updateCount(this.libraryCount, t);
  22890. } else {
  22891. this.libraryCount++;
  22892. a = this.libraryCount;
  22893. this.toolsCount(a, t);
  22894. }
  22895. window.topU.postMessage({ tools: "8" }, "*");
  22896. } else if (t == 17) {
  22897. if (this.libraryCount > 0) {
  22898. this.updateCount(this.libraryCount, t);
  22899. } else {
  22900. this.libraryCount++;
  22901. a = this.libraryCount;
  22902. this.toolsCount(a, t);
  22903. }
  22904. window.topU.postMessage({ tools: "17" }, "*");
  22905. } else if (t == 18) {
  22906. if (this.trainCount > 0) {
  22907. this.updateCount(this.trainCount, t);
  22908. } else {
  22909. this.trainCount++;
  22910. a = this.trainCount;
  22911. this.toolsCount(a, t);
  22912. }
  22913. window.topU.postMessage({ tools: "18" }, "*");
  22914. } else if (t == 10) {
  22915. if (this.timeCount > 0) {
  22916. this.updateCount(this.timeCount, t);
  22917. } else {
  22918. this.timeCount++;
  22919. a = this.timeCount;
  22920. this.toolsCount(a, t);
  22921. }
  22922. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22923. .taskJson[index].toolChoose[i].preTime
  22924. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22925. .toolChoose[i].preTime
  22926. : "";
  22927. this.timeDialogVisible = true;
  22928. } else if (t == 15) {
  22929. this.answerQ = "";
  22930. this.questionAnswer = "";
  22931. if (this.answerCount > 0) {
  22932. this.updateCount(this.answerCount, t);
  22933. } else {
  22934. this.answerCount++;
  22935. a = this.answerCount;
  22936. this.toolsCount(a, t);
  22937. }
  22938. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22939. .taskJson[index].toolChoose[i].answerQ
  22940. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22941. .toolChoose[i].answerQ
  22942. : "";
  22943. this.answerDialogVisible = true;
  22944. } else if (t == 21) {
  22945. window.topU.postMessage({ tools: "21" }, "*");
  22946. } else if (t == 22) {
  22947. window.topU.postMessage({ tools: "22" }, "*");
  22948. } else if (t == 23) {
  22949. window.topU.postMessage({ tools: "23" }, "*");
  22950. } else if (t == 24) {
  22951. window.topU.postMessage({ tools: "24" }, "*");
  22952. } else if (t == 25) {
  22953. window.topU.postMessage({ tools: "25" }, "*");
  22954. } else if (t == 31) {
  22955. window.topU.postMessage({ tools: "31" }, "*");
  22956. } else if (t == 28) {
  22957. window.topU.postMessage({ tools: "28" }, "*");
  22958. } else if (t == 37) {
  22959. window.topU.postMessage({ tools: "37" }, "*");
  22960. } else if (t == 38) {
  22961. window.topU.postMessage({ tools: "38" }, "*");
  22962. } else if (t == 39) {
  22963. window.topU.postMessage({ tools: "39" }, "*");
  22964. } else if (t == 32) {
  22965. window.topU.postMessage({ tools: "32" }, "*");
  22966. } else if (t == 66) {
  22967. window.topU.postMessage({ tools: "66" }, "*");
  22968. } else if (t == 67) {
  22969. window.topU.postMessage({ tools: "67" }, "*");
  22970. } else if (t == 68) {
  22971. window.topU.postMessage({ tools: "68" }, "*");
  22972. } else if (t == 57) {
  22973. // window.topU.postMessage({ tools: "57" }, "*");
  22974. window.topU.postMessage(
  22975. {
  22976. tools: "57u",
  22977. cid: this.id,
  22978. stage: this.courseType,
  22979. task: this.taskCount,
  22980. tool: i,
  22981. },
  22982. "*"
  22983. );
  22984. } else if (t == 58) {
  22985. window.topU.postMessage({ tools: "58" }, "*");
  22986. } else if (t == 59) {
  22987. window.topU.postMessage({ tools: "59" }, "*");
  22988. } else if (t == 60) {
  22989. window.topU.postMessage({ tools: "60" }, "*");
  22990. } else if (t == 61) {
  22991. window.topU.postMessage({ tools: "61" }, "*");
  22992. } else if (t == 63) {
  22993. window.topU.postMessage({ tools: "63" }, "*");
  22994. } else if (t == 71) {
  22995. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22996. // this.$message.error("该工具不可使用");
  22997. // return
  22998. // }
  22999. window.topU.postMessage({ tools: "71" }, "*");
  23000. } else if (t == 72) {
  23001. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23002. .taskJson[index].toolChoose[i].appJson
  23003. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23004. .toolChoose[i].appJson
  23005. : "";
  23006. if(!item || !item.url){
  23007. this.$message.error("应用连接为空, 请到课程管理中添加");
  23008. return;
  23009. }
  23010. if (!document.fullscreenElement) {
  23011. this.enterFullScreen();
  23012. }
  23013. this.$refs.appStoreC.getData(item.url,this.userid)
  23014. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23015. // window.open(item.url, "_blank");
  23016. } else if (t == 69) {
  23017. if (this.worksStudent[i].length) {
  23018. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23019. if (this.userid == this.worksStudent[i][k].userid) {
  23020. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  23021. break;
  23022. } else {
  23023. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23024. }
  23025. }
  23026. } else {
  23027. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23028. }
  23029. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23030. .taskJson[index].toolChoose[i].englishList
  23031. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23032. .toolChoose[i].englishList
  23033. : {};
  23034. this.englishToolIndex = i;
  23035. this.myAnList = this.myAnswerList1;
  23036. this.engDialogVisible = true;
  23037. } else if (t == 70) {
  23038. if (this.worksStudent[i].length) {
  23039. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23040. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  23041. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  23042. break;
  23043. } else {
  23044. this.englishVoiceJsonWork = [];
  23045. }
  23046. }
  23047. } else {
  23048. this.englishVoiceJsonWork = [];
  23049. }
  23050. let englishVoiceJson = {}
  23051. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23052. .taskJson[index].toolChoose[i].englishVoiceJson
  23053. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23054. .toolChoose[i].englishVoiceJson
  23055. : {};
  23056. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23057. this.EnglishVoiceDialog = true;
  23058. } else if (t == 65) {
  23059. if (this.tType == 2) {
  23060. this.$message.error("不支持学生使用");
  23061. return;
  23062. }
  23063. this.uploadCid = this.tcid;
  23064. if (!this.uploadCid) {
  23065. this.$message.error(
  23066. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23067. );
  23068. return;
  23069. }
  23070. this.selectPickStudent();
  23071. } else if (t == 26) {
  23072. window.topU.postMessage(
  23073. {
  23074. tools: "26",
  23075. cid: this.id,
  23076. stage: this.courseType,
  23077. task: this.taskCount,
  23078. tool: i,
  23079. },
  23080. "*"
  23081. );
  23082. } else if (t == 40) {
  23083. if (this.evalCount > 0) {
  23084. this.updateCount(this.evalCount, t);
  23085. } else {
  23086. this.evalCount++;
  23087. a = this.evalCount;
  23088. this.toolsCount(a, t);
  23089. }
  23090. this.eScore = { eBzText: "", eStar: [] };
  23091. if (this.worksStudent[i].length) {
  23092. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23093. if (this.userid == this.worksStudent[i][k].userid) {
  23094. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23095. this.rateJson =
  23096. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23097. index
  23098. ].toolChoose[i].rateJson;
  23099. break;
  23100. } else {
  23101. this.rateJson =
  23102. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23103. index
  23104. ].toolChoose[i].rateJson;
  23105. }
  23106. }
  23107. } else {
  23108. this.rateJson =
  23109. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23110. index
  23111. ].toolChoose[i].rateJson;
  23112. }
  23113. this.isStar = false;
  23114. this.studentEvalDialogVisible = true;
  23115. } else if (t == 41) {
  23116. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23117. .taskJson[index].toolChoose[i].selectJson
  23118. ? JSON.parse(
  23119. JSON.stringify(
  23120. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23121. index
  23122. ].toolChoose[i].selectJson
  23123. )
  23124. )
  23125. : { url: "", select: [], answer: [] };
  23126. if (this.worksStudent[i].length) {
  23127. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23128. if (this.userid == this.worksStudent[i][k].userid) {
  23129. var a = this.worksStudent[i][k].works.split(",");
  23130. for (var ki = 0; ki < a.length; ki++) {
  23131. a[ki] = parseInt(a[ki]);
  23132. }
  23133. this.selectAnswer = {
  23134. answer: a,
  23135. stu: this.worksStudent[i][k].sName,
  23136. };
  23137. break;
  23138. } else {
  23139. this.selectAnswer = { answer: [], stu: "" };
  23140. }
  23141. }
  23142. } else {
  23143. this.selectAnswer = { answer: [], stu: "" };
  23144. }
  23145. this.isSelect = false;
  23146. this.dialogVisibleSelect = true;
  23147. } else if (t == 44) {
  23148. window.topU.postMessage({ tools: "44" }, "*");
  23149. } else if (t == 47) {
  23150. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23151. .taskJson[index].toolChoose[i].sentenceList
  23152. ? JSON.parse(
  23153. JSON.stringify(
  23154. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23155. index
  23156. ].toolChoose[i].sentenceList
  23157. )
  23158. )
  23159. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23160. for (var q = 0; q < this.sentenceList.length; q++) {
  23161. this.sentenceList[q].chooseSenList = [];
  23162. this.sentenceList[q].addChangeSen = [];
  23163. this.sentenceList[q].addChangeSen = JSON.parse(
  23164. JSON.stringify(this.sentenceList[q].addSentence)
  23165. );
  23166. this.sentenceList[q].chooseSenList.length =
  23167. this.sentenceList[q].rightAnswer.length;
  23168. }
  23169. this.dialogVisibleSentence = true;
  23170. } else if (t == 48) {
  23171. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23172. .taskJson[index].toolChoose[i].tableJson
  23173. ? JSON.parse(
  23174. JSON.stringify(
  23175. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23176. index
  23177. ].toolChoose[i].tableJson
  23178. )
  23179. )
  23180. : { text: "" };
  23181. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23182. if (this.worksStudent[i].length) {
  23183. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23184. if (this.userid == this.worksStudent[i][k].userid) {
  23185. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23186. break;
  23187. }
  23188. }
  23189. }
  23190. this.dialogVisibleTable = true;
  23191. } else if (t == 52) {
  23192. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23193. .taskJson[index].toolChoose[i].wordJson
  23194. ? JSON.parse(
  23195. JSON.stringify(
  23196. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23197. index
  23198. ].toolChoose[i].wordJson
  23199. )
  23200. )
  23201. : { text: "" };
  23202. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23203. if (this.worksStudent[i].length) {
  23204. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23205. if (this.userid == this.worksStudent[i][k].userid) {
  23206. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23207. break;
  23208. }
  23209. }
  23210. }
  23211. this.dialogVisibleWord = true;
  23212. } else if (t == 49) {
  23213. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  23214. return
  23215. }
  23216. this.groupJson =
  23217. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23218. index
  23219. ].toolChoose[i].groupJson;
  23220. this.islock = this.groupJson.islock == 1 ? true : false;
  23221. this.dialogVisibleGroup = true;
  23222. } else if (t == 62) {
  23223. this.videoType = 0;
  23224. this.videoJson = {};
  23225. this.videoJson =
  23226. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23227. index
  23228. ].toolChoose[i].videoJson;
  23229. this.dialogVisibleVideo = true;
  23230. }
  23231. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23232. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  23233. },
  23234. teacherWorkSubmit(t, i, index, s) {
  23235. this.sStudent = s;
  23236. this.toolindex = i;
  23237. this.sTool = t;
  23238. if (this.tType !== "1" && this.tType !== "4") {
  23239. return;
  23240. }
  23241. if (t == 16 || t == 32 || t == 50) {
  23242. this.dialogVisibleWorks = true;
  23243. } else if (t == 15) {
  23244. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23245. .taskJson[index].toolChoose[i].answerQ
  23246. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23247. .toolChoose[i].answerQ
  23248. : "";
  23249. this.questionAnswer = "";
  23250. this.answerDialogVisibleTeacher = true; //问答
  23251. } else if (t == 52) {
  23252. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23253. .taskJson[index].toolChoose[i].wordJson
  23254. ? JSON.parse(
  23255. JSON.stringify(
  23256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23257. index
  23258. ].toolChoose[i].wordJson
  23259. )
  23260. )
  23261. : { text: "" };
  23262. if (this.worksStudent[i].length) {
  23263. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23264. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23265. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23266. break;
  23267. }
  23268. }
  23269. }
  23270. this.dialogVisibleWordTeacher = true; //文档
  23271. } else if (t == 4) {
  23272. this.radio = [];
  23273. this.noteName = "";
  23274. this.isAnswer = false;
  23275. if (this.askCount > 0) {
  23276. this.updateCount(this.askCount, t);
  23277. } else {
  23278. this.askCount++;
  23279. a = this.askCount;
  23280. this.toolsCount(a, t);
  23281. }
  23282. if (!this.dialogVisible2) {
  23283. this.askJson.askJson =
  23284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23285. index
  23286. ].toolChoose[i].askJson;
  23287. this.askJson.askTitle =
  23288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23289. index
  23290. ].toolChoose[i].askTitle;
  23291. this.askJson.askCount =
  23292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23293. index
  23294. ].toolChoose[i].askCount;
  23295. } else {
  23296. this.askJson.askJson = this.chapTools.askJson.askJson;
  23297. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23298. this.askJson.askCount = this.chapTools.askJson.askCount;
  23299. }
  23300. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23301. if (this.askJson.askJson[k].type == "2") {
  23302. this.radio.push([]);
  23303. } else {
  23304. this.radio.push("");
  23305. }
  23306. }
  23307. this.dialogVisible5Teacher = true;
  23308. } else if (t == 45) {
  23309. this.noteName = "";
  23310. this.radio = [];
  23311. this.isAnswer = false;
  23312. if (this.askCount > 0) {
  23313. this.updateCount(this.askCount, t);
  23314. } else {
  23315. this.askCount++;
  23316. a = this.askCount;
  23317. this.toolsCount(a, t);
  23318. }
  23319. this.testJson =
  23320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23321. index
  23322. ].toolChoose[i].testJson;
  23323. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23324. if (this.testJson.testJson[k].type == "2") {
  23325. this.radio.push([]);
  23326. } else {
  23327. this.radio.push("");
  23328. }
  23329. }
  23330. this.dialogVisibleChoiceTeacher = true;
  23331. } else if (t == 41) {
  23332. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23333. .taskJson[index].toolChoose[i].selectJson
  23334. ? JSON.parse(
  23335. JSON.stringify(
  23336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23337. index
  23338. ].toolChoose[i].selectJson
  23339. )
  23340. )
  23341. : { url: "", select: [], answer: [] };
  23342. if (this.worksStudent[i].length) {
  23343. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23344. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23345. var a = this.worksStudent[i][k].works.split(",");
  23346. for (var ki = 0; ki < a.length; ki++) {
  23347. a[ki] = parseInt(a[ki]);
  23348. }
  23349. this.selectAnswer = {
  23350. answer: a,
  23351. stu: this.worksStudent[i][k].sName,
  23352. };
  23353. break;
  23354. } else {
  23355. this.selectAnswer = { answer: [], stu: "" };
  23356. }
  23357. }
  23358. } else {
  23359. this.selectAnswer = { answer: [], stu: "" };
  23360. }
  23361. this.isSelect = false;
  23362. this.dialogVisibleSelectTeacher = true;
  23363. } else if (t == 47) {
  23364. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23365. .taskJson[index].toolChoose[i].sentenceList
  23366. ? JSON.parse(
  23367. JSON.stringify(
  23368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23369. index
  23370. ].toolChoose[i].sentenceList
  23371. )
  23372. )
  23373. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23374. for (var q = 0; q < this.sentenceList.length; q++) {
  23375. this.sentenceList[q].chooseSenList = [];
  23376. this.sentenceList[q].addChangeSen = [];
  23377. this.sentenceList[q].addChangeSen = JSON.parse(
  23378. JSON.stringify(this.sentenceList[q].addSentence)
  23379. );
  23380. this.sentenceList[q].chooseSenList.length =
  23381. this.sentenceList[q].rightAnswer.length;
  23382. }
  23383. this.dialogVisibleSentenceTeacher = true;
  23384. } else if (t == 48) {
  23385. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23386. .taskJson[index].toolChoose[i].tableJson
  23387. ? JSON.parse(
  23388. JSON.stringify(
  23389. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23390. index
  23391. ].toolChoose[i].tableJson
  23392. )
  23393. )
  23394. : { text: "" };
  23395. if (this.worksStudent[i].length) {
  23396. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23397. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23398. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23399. break;
  23400. }
  23401. }
  23402. }
  23403. this.dialogVisibleTableTeacher = true;
  23404. } else if (t == 40) {
  23405. if (this.evalCount > 0) {
  23406. this.updateCount(this.evalCount, t);
  23407. } else {
  23408. this.evalCount++;
  23409. a = this.evalCount;
  23410. this.toolsCount(a, t);
  23411. }
  23412. this.eScore = { eBzText: "", eStar: [] };
  23413. if (this.worksStudent[i].length) {
  23414. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23415. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23416. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23417. this.rateJson =
  23418. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23419. index
  23420. ].toolChoose[i].rateJson;
  23421. break;
  23422. } else {
  23423. this.rateJson =
  23424. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23425. index
  23426. ].toolChoose[i].rateJson;
  23427. }
  23428. }
  23429. } else {
  23430. this.rateJson =
  23431. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23432. index
  23433. ].toolChoose[i].rateJson;
  23434. }
  23435. this.isStar = false;
  23436. this.studentEvalDialogVisibleTeacher = true;
  23437. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23438. window.topU.postMessage(
  23439. {
  23440. tools: t + "teacher",
  23441. cid: this.id,
  23442. stage: this.courseType,
  23443. task: this.taskCount,
  23444. tool: i,
  23445. student: this.sStudent,
  23446. },
  23447. "*"
  23448. );
  23449. }else if (t == 72) {
  23450. if (!document.fullscreenElement) {
  23451. this.enterFullScreen();
  23452. }
  23453. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23454. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23455. }
  23456. },
  23457. openCocoPi(tool, i, uid, uname) {
  23458. let student = {
  23459. userid: uid,
  23460. student: uname,
  23461. };
  23462. if (tool == 57) {
  23463. window.topU.postMessage(
  23464. {
  23465. tools: tool + "teacher",
  23466. cid: this.id,
  23467. stage: this.courseType,
  23468. task: this.taskCount,
  23469. tool: i,
  23470. student: student,
  23471. },
  23472. "*"
  23473. );
  23474. }
  23475. },
  23476. setRightAnswer(s, i, j) {
  23477. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23478. if (
  23479. this.sentenceList[i].chooseSenList[q] == undefined ||
  23480. this.sentenceList[i].chooseSenList[q] == ""
  23481. ) {
  23482. this.sentenceList[i].chooseSenList[q] = s;
  23483. this.sentenceList[i].addChangeSen[j] = "";
  23484. break;
  23485. }
  23486. }
  23487. this.$forceUpdate();
  23488. },
  23489. returnCard(r, i, j) {
  23490. var a = this.sentenceList[i].addSentence.indexOf(r);
  23491. this.sentenceList[i].chooseSenList[j] = "";
  23492. this.sentenceList[i].addChangeSen[a] = r;
  23493. this.$forceUpdate();
  23494. },
  23495. // addSentenceTool() {
  23496. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23497. // this.taskCount
  23498. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23499. // this.sentenceList = [
  23500. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23501. // ];
  23502. // this.dialogVisibleSentence = false;
  23503. // },
  23504. toolsCount(a, t) {
  23505. let params = {
  23506. cid: this.id,
  23507. chid: this.courseType,
  23508. uid: this.userid,
  23509. tid: t,
  23510. count: a,
  23511. };
  23512. this.ajax
  23513. .get(this.$store.state.api + "insertToolsCount", params)
  23514. .then((res) => {
  23515. this.selectCount();
  23516. })
  23517. .catch((err) => {
  23518. console.error(err);
  23519. });
  23520. },
  23521. updateCount(c, t) {
  23522. c++;
  23523. let params = {
  23524. cid: this.id,
  23525. chid: this.courseType,
  23526. uid: this.userid,
  23527. tid: t,
  23528. count: c,
  23529. };
  23530. this.ajax
  23531. .get(this.$store.state.api + "updateToolsCount", params)
  23532. .then((res) => {
  23533. this.selectCount();
  23534. })
  23535. .catch((err) => {
  23536. console.error(err);
  23537. });
  23538. },
  23539. checkEva() {
  23540. if (this.evalua != "") {
  23541. for (var i = 0; i < this.evaJuri.length; i++) {
  23542. if (this.evalua == this.evaJuri[i].id) {
  23543. this.eTitle = this.evaJuri[i].title;
  23544. this.eJson = JSON.parse(this.evaJuri[i].content);
  23545. }
  23546. }
  23547. this.$forceUpdate();
  23548. setTimeout(() => {
  23549. this.setMindData();
  23550. }, 0);
  23551. }
  23552. },
  23553. selectEva() {
  23554. let params = {
  23555. oid: this.oid,
  23556. };
  23557. this.ajax
  23558. .get(this.$store.state.api + "selectAllEvaluation", params)
  23559. .then((res) => {
  23560. this.evaJuri = res.data[0];
  23561. })
  23562. .catch((err) => {
  23563. console.error(err);
  23564. });
  23565. },
  23566. setMindData() {
  23567. this.data.data = [];
  23568. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23569. let _eJson = Object.keys(this.eJson);
  23570. let _e = this.eJson;
  23571. for (let i = 0; i < _eJson.length; i++) {
  23572. let element = _e[_eJson[i]];
  23573. this.data.data.push({
  23574. id: element.id,
  23575. parentid: "root",
  23576. topic: element.name,
  23577. });
  23578. let _eJsonc = Object.keys(element.child);
  23579. let _e2 = element.child;
  23580. for (let j = 0; j < _eJsonc.length; j++) {
  23581. let _ec = _e2[_eJsonc[j]];
  23582. this.data.data.push({
  23583. id: _ec.id,
  23584. parentid: element.id,
  23585. topic: _ec.name,
  23586. });
  23587. let _eJsonz = Object.keys(_ec.child);
  23588. let _e3 = _ec.child;
  23589. for (let z = 0; z < _eJsonz.length; z++) {
  23590. let _ez = _e3[_eJsonz[z]];
  23591. this.data.data.push({
  23592. id: _ez.id,
  23593. parentid: _ec.id,
  23594. topic: _ez.name,
  23595. });
  23596. }
  23597. }
  23598. }
  23599. this.$forceUpdate();
  23600. },
  23601. checkFileFull(type, url) {
  23602. this.fullDialogVisible = true;
  23603. this.fulltype = type;
  23604. this.fullUrl = url;
  23605. },
  23606. async checkFileFull1(t, f) {
  23607. this.fullDialogVisible = true;
  23608. if (t == 6) {
  23609. this.fulltype = 1;
  23610. this.fullUrl = JSON.parse(JSON.stringify(f));
  23611. } else if (t == 8) {
  23612. this.fulltype = 2;
  23613. this.fullUrl = f.url;
  23614. }else if (t == 15) {
  23615. this.fulltype = 4;
  23616. this.fullUrl = f.url;
  23617. } else if (t == 16) {
  23618. this.fulltype = 16;
  23619. this.fullUrl = f.url;
  23620. } else if (
  23621. t == 3 &&
  23622. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23623. "PDF"
  23624. ) {
  23625. this.fulltype = 3;
  23626. this.fullUrl = f.url;
  23627. } else if (t == 3) {
  23628. this.fulltype = 2;
  23629. let _uuurl = await this.checkLink(f.url);
  23630. console.log(_uuurl)
  23631. this.fullUrl =
  23632. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23633. }
  23634. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23635. },
  23636. openSname(n, id, i, uid) {
  23637. this.snameWid = id;
  23638. this.worksSName = n;
  23639. this.worksSid = uid == n ? "" : uid;
  23640. this.toolindex = i;
  23641. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23642. if (!this.uploadCid) {
  23643. this.$message.error(
  23644. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23645. );
  23646. return;
  23647. }
  23648. this.selectUploadStudent(1);
  23649. },
  23650. updateName() {
  23651. let params = {
  23652. n: this.worksSName,
  23653. cid: this.snameWid,
  23654. };
  23655. this.ajax
  23656. .get(this.$store.state.api + "updateCourseWorksName", params)
  23657. .then((res) => {
  23658. this.$message({
  23659. message: "修改成功",
  23660. type: "success",
  23661. });
  23662. this.dialogVisibleSname = false;
  23663. this.getCourseDetail(2);
  23664. this.snameWid = "";
  23665. this.worksSName = "";
  23666. })
  23667. .catch((err) => {
  23668. console.error(err);
  23669. });
  23670. },
  23671. downloadFile2(f) {
  23672. // const loading = this.$loading.service({
  23673. // background: "rgba(255, 255, 255, 0.7)",
  23674. // target: document.body,
  23675. // text: "文件加载中...",
  23676. // });
  23677. // let url2 = f.url;
  23678. // let _url2 = "";
  23679. // if (
  23680. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23681. // ) {
  23682. // _url2 = url2.split(
  23683. // "https://view.officeapps.live.com/op/view.aspx?src="
  23684. // )[1];
  23685. // } else {
  23686. // _url2 = url2;
  23687. // }
  23688. // let params = {
  23689. // url: _url2,
  23690. // name: f.name,
  23691. // };
  23692. // this.ajax
  23693. // .get(this.$store.state.api + "download", params)
  23694. // .then((res) => {
  23695. // loading.close();
  23696. // let content = res.data.data.data;
  23697. // let ab = new ArrayBuffer(content.length);
  23698. // let view = new Uint8Array(ab);
  23699. // for (var i = 0; i < content.length; ++i) {
  23700. // view[i] = content[i];
  23701. // }
  23702. // let elink = document.createElement("a");
  23703. // elink.download = f.name;
  23704. // elink.style.display = "none";
  23705. // let blob = new Blob([ab], {
  23706. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23707. // });
  23708. // elink.href = URL.createObjectURL(blob);
  23709. // document.body.appendChild(elink);
  23710. // elink.click();
  23711. // document.body.removeChild(elink);
  23712. // })
  23713. // .catch((err) => {
  23714. // loading.close();
  23715. // console.error(err);
  23716. // });
  23717. var credentials = {
  23718. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23719. secretAccessKey: "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",
  23720. }; //秘钥形式的登录上传
  23721. window.AWS.config.update(credentials);
  23722. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23723. let url2 = f.url;
  23724. let _url2 = "";
  23725. if (
  23726. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23727. ) {
  23728. _url2 = url2.split(
  23729. "https://view.officeapps.live.com/op/view.aspx?src="
  23730. )[1];
  23731. } else {
  23732. _url2 = url2;
  23733. }
  23734. let _this = this;
  23735. _this.downLoading = true
  23736. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23737. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23738. var params = {
  23739. Bucket: "ccrb",
  23740. Key: name
  23741. };
  23742. s3.getObject(params, function (err, data) {
  23743. _this.downLoading = false
  23744. if (err) console.log(err, err.stack); // an error occurred
  23745. else {
  23746. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23747. let a = document.createElement("a");
  23748. a.name = f.name;
  23749. a.href = url;
  23750. a.download = f.name;
  23751. a.click();
  23752. console.log(data);
  23753. } // sxuccessful response
  23754. });
  23755. return;
  23756. let url = f.url;
  23757. let _url = "";
  23758. if (
  23759. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23760. ) {
  23761. _url = url.split(
  23762. "https://view.officeapps.live.com/op/view.aspx?src="
  23763. )[1];
  23764. } else {
  23765. _url = url;
  23766. }
  23767. _this.downLoading = true
  23768. // const loading = _this.$loading.service({
  23769. // background: "rgba(255, 255, 255, 0.7)",
  23770. // target: document.body,
  23771. // text: "文件加载中...",
  23772. // });
  23773. let x = new XMLHttpRequest();
  23774. x.open("GET", _url, true);
  23775. x.responseType = "blob";
  23776. x.onload = function () {
  23777. _this.downLoading = false
  23778. // loading.close();
  23779. let url = window.URL.createObjectURL(new Blob([x.response]));
  23780. let a = document.createElement("a");
  23781. a.name = f.name;
  23782. a.href = url;
  23783. a.download = f.name;
  23784. a.click();
  23785. };
  23786. x.send();
  23787. },
  23788. downloadFile(url) {
  23789. let hz = url.substring(url.lastIndexOf(".") + 1);
  23790. if (hz == "txt" || hz == "md") {
  23791. this.lookTxt(url);
  23792. return;
  23793. }
  23794. var credentials = {
  23795. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23796. secretAccessKey: "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",
  23797. }; //秘钥形式的登录上传
  23798. window.AWS.config.update(credentials);
  23799. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23800. let url2 = url;
  23801. let _url2 = "";
  23802. if (
  23803. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23804. ) {
  23805. _url2 = url2.split(
  23806. "https://view.officeapps.live.com/op/view.aspx?src="
  23807. )[1];
  23808. } else {
  23809. _url2 = url2;
  23810. }
  23811. const loading2 = this.$loading.service({
  23812. background: "rgba(255, 255, 255, 0.7)",
  23813. target: document.body,
  23814. text: "文件加载中...",
  23815. });
  23816. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23817. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23818. var params = {
  23819. Bucket: "ccrb",
  23820. Key: name
  23821. };
  23822. s3.getObject(params, function (err, data) {
  23823. loading2.close();
  23824. if (err) console.log(err, err.stack); // an error occurred
  23825. else {
  23826. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23827. let a = document.createElement("a");
  23828. a.name = name;
  23829. a.href = url;
  23830. a.download = name;
  23831. a.click();
  23832. console.log(data);
  23833. } // sxuccessful response
  23834. });
  23835. return;
  23836. let _this = this;
  23837. let _url = "";
  23838. if (
  23839. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23840. ) {
  23841. _url = url.split(
  23842. "https://view.officeapps.live.com/op/view.aspx?src="
  23843. )[1];
  23844. } else {
  23845. _url = url;
  23846. }
  23847. const x = new XMLHttpRequest();
  23848. x.open("GET", _url, true);
  23849. x.responseType = "blob";
  23850. // this.downLoading = true
  23851. const loading = _this.$loading.service({
  23852. background: "rgba(255, 255, 255, 0.7)",
  23853. target: document.body,
  23854. text: "文件加载中...",
  23855. });
  23856. // _this.$message.success("文件下载中...");
  23857. x.onload = function (e) {
  23858. this.downLoading = false
  23859. loading.close();
  23860. let content = x.response;
  23861. let elink = document.createElement("a");
  23862. elink.download = decodeURI(
  23863. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23864. );
  23865. elink.style.display = "none";
  23866. let blob = new Blob([content]);
  23867. elink.href = URL.createObjectURL(blob);
  23868. document.body.appendChild(elink);
  23869. elink.click();
  23870. document.body.removeChild(elink);
  23871. };
  23872. x.send();
  23873. },
  23874. openLine(url) {
  23875. window.open(url);
  23876. },
  23877. resize() {
  23878. if (document.getElementsByClassName("box_course").length) {
  23879. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23880. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23881. if (this.showType == 2 || this.showType == 3) {
  23882. document.getElementsByClassName("navBox")[0].style.height =
  23883. a - 40 + 0+ "px";
  23884. } else {
  23885. document.getElementsByClassName("navBox")[0].style.height =
  23886. a - 40 + "px";
  23887. }
  23888. }
  23889. this.Stbodywidth =
  23890. document.getElementsByClassName("student_body").length &&
  23891. document.getElementsByClassName("student_body")[0].offsetWidth;
  23892. },
  23893. closeDraw() {
  23894. this.bg = null;
  23895. this.drawShow = false;
  23896. },
  23897. showPicturePaint(url) {
  23898. let params = {
  23899. img: url,
  23900. };
  23901. this.ajax
  23902. .get(this.$store.state.api + "imgToBase64", params)
  23903. .then((res) => {
  23904. this.drawShow = true;
  23905. this.bg = res.data[0].img;
  23906. })
  23907. .catch((err) => {
  23908. console.error(err);
  23909. });
  23910. },
  23911. addImgDraw(base64) {
  23912. let file = { name: "批注图.png" };
  23913. let img = this.dataUrlToFile(base64, file);
  23914. this.beforeUpload1(img, 5);
  23915. },
  23916. addImgDrawImG(url) {
  23917. // console.log(url);
  23918. let params = [
  23919. {
  23920. wid: this.commentDetail.wid,
  23921. img: url,
  23922. },
  23923. ];
  23924. this.ajax
  23925. .post(this.$store.state.api + "updateCourseWorks", params)
  23926. .then((res) => {
  23927. this.$message({
  23928. message: "提交成功",
  23929. type: "success",
  23930. });
  23931. this.drawShow = false;
  23932. this.bg = "";
  23933. this.selectSWorks();
  23934. this.selectStudent();
  23935. })
  23936. .catch((err) => {
  23937. this.$message.error("提交失败");
  23938. console.error(err);
  23939. });
  23940. },
  23941. deletePicturePaint() {
  23942. this.$confirm("确定删除此批注吗?", "提示", {
  23943. confirmButtonText: "确定",
  23944. cancelButtonText: "取消",
  23945. type: "warning",
  23946. })
  23947. .then(() => {
  23948. let params = [
  23949. {
  23950. wid: this.commentDetail.wid,
  23951. img: "",
  23952. },
  23953. ];
  23954. this.ajax
  23955. .post(this.$store.state.api + "updateCourseWorks", params)
  23956. .then((res) => {
  23957. this.$message({
  23958. message: "删除成功",
  23959. type: "success",
  23960. });
  23961. this.selectSWorks();
  23962. this.selectStudent();
  23963. })
  23964. .catch((err) => {
  23965. this.$message.error("删除失败");
  23966. console.error(err);
  23967. });
  23968. })
  23969. .catch(() => {});
  23970. },
  23971. getAudioVideo(constraintsData) {
  23972. if (navigator.mediaDevices === undefined) {
  23973. navigator.mediaDevices = {};
  23974. }
  23975. if (navigator.mediaDevices.getUserMedia === undefined) {
  23976. navigator.mediaDevices.getUserMedia = function (constraints) {
  23977. // 首先,如果有getUserMedia的话,就获得它
  23978. var getUserMedia =
  23979. navigator.getUserMedia ||
  23980. navigator.webkitGetUserMedia ||
  23981. navigator.mozGetUserMedia ||
  23982. navigator.msGetUserMedia;
  23983. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23984. if (!getUserMedia) {
  23985. return Promise.reject({ code: 404 });
  23986. }
  23987. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23988. return new Promise(function (resolve, reject) {
  23989. getUserMedia.call(navigator, constraints, resolve, reject);
  23990. });
  23991. };
  23992. }
  23993. return navigator.mediaDevices.getUserMedia(constraintsData);
  23994. },
  23995. /**
  23996. * 开始录制
  23997. */
  23998. startRecording(callback) {
  23999. let _function = (screenStream) => {
  24000. this.addStreamStopListener(screenStream, () => {
  24001. console.log("流停止监听");
  24002. this.stopRecording();
  24003. this.$emit("streamStop", {});
  24004. // this.stopRecording();
  24005. });
  24006. var options = {
  24007. type: "video",
  24008. mimeType: "video/webm",
  24009. disableLogs: false,
  24010. getNativeBlob: false, // enable it for longer recordings
  24011. ignoreMutedMedia: false,
  24012. };
  24013. // this.video.srcObject = screenStream;
  24014. this.recorder = RecordRTC(screenStream, options);
  24015. this.recorder.startRecording();
  24016. this.recorder.screen = screenStream;
  24017. this.videoStart = true;
  24018. // callback(true);
  24019. };
  24020. this.getAudioVideo({ audio: true })
  24021. .then((res) => {
  24022. this.captureScreen(_function, true);
  24023. console.log("已点击允许,开启成功");
  24024. })
  24025. .catch((err) => {
  24026. // console.log('浏览器不支持,请更换浏览器')
  24027. // } else {
  24028. this.captureScreen(_function, false);
  24029. console.log("请检查是否存在麦克风");
  24030. });
  24031. },
  24032. /**
  24033. * 停止录制
  24034. */
  24035. stopRecording(callback) {
  24036. this.recorder.stopRecording(() => {
  24037. // this.video.src = this.video.srcObject = null;
  24038. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24039. const url = URL.createObjectURL(this.recorder.getBlob());
  24040. const a = document.createElement("a"); //this.fileName+
  24041. let videoFile = new File(
  24042. [this.recorder.getBlob()],
  24043. this.courseDetail.title + "录屏.mp4",
  24044. {
  24045. type: "video/mp4",
  24046. }
  24047. );
  24048. let downloadUrl = URL.createObjectURL(videoFile);
  24049. if(this.$refs.classRoomHelperRef){
  24050. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  24051. }
  24052. document.body.appendChild(a);
  24053. a.style.display = "none";
  24054. a.href = url;
  24055. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24056. a.click();
  24057. this.recorder.screen.stop();
  24058. this.recorder.destroy();
  24059. this.recorder = null;
  24060. this.videoStart = false;
  24061. // callback(false);
  24062. });
  24063. },
  24064. //初始化
  24065. captureScreen(callback, type) {
  24066. if (navigator.getDisplayMedia) {
  24067. //录制结束,文件下载
  24068. navigator
  24069. .getDisplayMedia({
  24070. video: true,
  24071. })
  24072. .then((screenStream) => {
  24073. if (type) {
  24074. navigator.mediaDevices
  24075. .getUserMedia({ audio: true })
  24076. .then((mic) => {
  24077. screenStream.addTrack(mic.getTracks()[0]);
  24078. callback(screenStream);
  24079. });
  24080. } else {
  24081. callback(screenStream);
  24082. }
  24083. })
  24084. .catch(function (error) {
  24085. console.log("error", error);
  24086. });
  24087. } else if (navigator.mediaDevices.getDisplayMedia) {
  24088. navigator.mediaDevices
  24089. .getDisplayMedia({
  24090. video: true,
  24091. })
  24092. .then((screenStream) => {
  24093. if (type) {
  24094. navigator.mediaDevices
  24095. .getUserMedia({ audio: true })
  24096. .then((mic) => {
  24097. screenStream.addTrack(mic.getTracks()[0]);
  24098. callback(screenStream);
  24099. });
  24100. } else {
  24101. callback(screenStream);
  24102. }
  24103. })
  24104. .catch(function (error) {
  24105. console.log("error", error);
  24106. });
  24107. } else {
  24108. var error = "getDisplayMedia API are not supported in this browser.";
  24109. console.log("error", error);
  24110. alert(error);
  24111. }
  24112. },
  24113. //流监听
  24114. addStreamStopListener(stream, callback) {
  24115. stream.addEventListener(
  24116. "ended",
  24117. function () {
  24118. callback();
  24119. callback = function () {};
  24120. },
  24121. false
  24122. );
  24123. stream.addEventListener(
  24124. "inactive",
  24125. function () {
  24126. callback();
  24127. callback = function () {};
  24128. },
  24129. false
  24130. );
  24131. stream.getTracks().forEach(function (track) {
  24132. track.addEventListener(
  24133. "ended",
  24134. function () {
  24135. callback();
  24136. callback = function () {};
  24137. },
  24138. false
  24139. );
  24140. track.addEventListener(
  24141. "inactive",
  24142. function () {
  24143. callback();
  24144. callback = function () {};
  24145. },
  24146. false
  24147. );
  24148. });
  24149. },
  24150. updateGroup() {
  24151. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24152. this.dialogVisibleGroup2 = true;
  24153. },
  24154. numberPan() {
  24155. if (
  24156. /[^\d]/.test(this.groupJson.number) ||
  24157. this.groupJson.number < 2 ||
  24158. this.groupJson.number > 10
  24159. ) {
  24160. this.$message.error("请输入2-10的数字");
  24161. this.groupJson.number = "";
  24162. }
  24163. },
  24164. updateGroupJson() {
  24165. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24166. if (
  24167. this.groupStudentUid[this.toolindex][i].length >
  24168. this.groupJson2.number
  24169. ) {
  24170. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24171. return;
  24172. }
  24173. }
  24174. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24175. this.islock = this.groupJson.islock == 1 ? true : false;
  24176. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24177. this.taskCount
  24178. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24179. let params = [
  24180. {
  24181. cid: this.id,
  24182. chapters: JSON.stringify(this.chapInfoList),
  24183. uid: this.userid,
  24184. unitIndex: this.courseType,
  24185. },
  24186. ];
  24187. this.ajax
  24188. .post(this.$store.state.api + "updateWorkNew4", params)
  24189. .then((res) => {
  24190. this.$message.success("设置成功");
  24191. this.getCourseDetail(2);
  24192. this.dialogVisibleGroup2 = false;
  24193. this.groupJson2 = {};
  24194. this.$forceUpdate();
  24195. })
  24196. .catch((err) => {
  24197. this.$message.error("网络不佳");
  24198. console.error(err);
  24199. });
  24200. },
  24201. lockChair() {
  24202. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24203. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24204. this.updateGroupJson();
  24205. },
  24206. selectGroup(index) {
  24207. this.getCourseDetail(2, index);
  24208. },
  24209. joinGroup(index) {
  24210. if (this.groupJson.islock == 2) {
  24211. this.$message.error("位置已被锁定,无法加入");
  24212. return;
  24213. }
  24214. if (
  24215. this.groupStudent[this.toolindex][index].length >
  24216. this.groupJson.number ||
  24217. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24218. ) {
  24219. this.$message.error("位置已满,无法加入");
  24220. return;
  24221. }
  24222. let params = [
  24223. {
  24224. cid: this.id,
  24225. stage: this.courseType,
  24226. task: this.taskCount,
  24227. tool: this.toolindex,
  24228. g: index,
  24229. uid: this.userid,
  24230. },
  24231. ];
  24232. this.ajax
  24233. .post(this.$store.state.api + "joinGroup", params)
  24234. .then((res) => {
  24235. this.$message.success("加入成功");
  24236. this.getCourseDetail(2);
  24237. })
  24238. .catch((err) => {
  24239. this.$message.error("网络不佳");
  24240. console.error(err);
  24241. });
  24242. },
  24243. exitGroup(id) {
  24244. if (this.groupJson.islock == 2) {
  24245. this.$message.error("位置已被锁定,无法退出");
  24246. return;
  24247. }
  24248. let params = [
  24249. {
  24250. gid: id,
  24251. },
  24252. ];
  24253. this.ajax
  24254. .post(this.$store.state.api + "exitGroup", params)
  24255. .then((res) => {
  24256. this.$message.success("退出成功");
  24257. this.getCourseDetail(2);
  24258. })
  24259. .catch((err) => {
  24260. this.$message.error("网络不佳");
  24261. console.error(err);
  24262. });
  24263. },
  24264. groupUpload(index, task, gindex) {
  24265. this.taskCount = task;
  24266. this.toolindex = index;
  24267. this.groupIndex = gindex;
  24268. this.dialogVisibleGroupWork = true;
  24269. },
  24270. updateGroupChair(user) {
  24271. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24272. el.label = index;
  24273. return index != user.group;
  24274. });
  24275. this.updateGroupUser = user;
  24276. this.dialogVisibleUpdateGroup = true;
  24277. },
  24278. updateChair() {
  24279. if (
  24280. this.groupStudent[this.toolindex][this.checkChair].length >
  24281. this.groupJson.number ||
  24282. this.groupStudent[this.toolindex][this.checkChair].length ==
  24283. this.groupJson.number
  24284. ) {
  24285. this.$message.error("位置已满,无法加入");
  24286. return;
  24287. }
  24288. let params = [
  24289. {
  24290. cid: this.id,
  24291. stage: this.courseType,
  24292. task: this.taskCount,
  24293. tool: this.toolindex,
  24294. g: this.checkChair,
  24295. uid: this.updateGroupUser.userid,
  24296. },
  24297. ];
  24298. this.ajax
  24299. .post(this.$store.state.api + "joinGroup", params)
  24300. .then((res) => {
  24301. this.$message.success("修改成功");
  24302. this.updateGroupUser = {};
  24303. this.checkChair = "";
  24304. this.updateGroupArray = {};
  24305. this.dialogVisibleUpdateGroup = false;
  24306. this.getCourseDetail(2);
  24307. })
  24308. .catch((err) => {
  24309. this.$message.error("网络不佳");
  24310. console.error(err);
  24311. });
  24312. },
  24313. deleteGroupChair(gindex) {
  24314. this.checkDeleteGroup = [];
  24315. this.deleteGroupUser = JSON.parse(
  24316. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24317. );
  24318. this.deleteGroupArray = this.groupJson.group[gindex];
  24319. this.groupIndex = gindex;
  24320. this.dialogVisibleDeleteGroup = true;
  24321. },
  24322. async deleteChair() {
  24323. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24324. const gid =
  24325. this.groupStudent[this.toolindex][this.groupIndex][
  24326. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24327. this.checkDeleteGroup[i]
  24328. )
  24329. ];
  24330. let params = [
  24331. {
  24332. gid: gid.id,
  24333. },
  24334. ];
  24335. var a = await this.deleteChairA(params);
  24336. if (i == this.checkDeleteGroup.length - 1) {
  24337. this.$message.success("退出成功");
  24338. this.dialogVisibleDeleteGroup = false;
  24339. this.deleteGroupUser = [];
  24340. this.deleteGroupArray = {};
  24341. this.groupIndex = "";
  24342. this.checkDeleteGroup = [];
  24343. this.getCourseDetail(2);
  24344. }
  24345. }
  24346. },
  24347. deleteChairA(params) {
  24348. return new Promise((resolve, reject) => {
  24349. this.ajax
  24350. .post(this.$store.state.api + "exitGroup", params)
  24351. .then((res) => {
  24352. resolve(1);
  24353. })
  24354. .catch((err) => {
  24355. this.$message.error("网络不佳");
  24356. console.error(err);
  24357. });
  24358. });
  24359. },
  24360. contract(i) {
  24361. if (this.isCloseList[i].isClose == 0) {
  24362. this.isCloseList[i].isClose = 1;
  24363. } else {
  24364. this.isCloseList[i].isClose = 0;
  24365. }
  24366. this.$forceUpdate();
  24367. },
  24368. openWordCloud(toolindex) {
  24369. this.wordCloudData = '';
  24370. let array = [];
  24371. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24372. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24373. array.push({ name: works });
  24374. }
  24375. if (this.isGroup) {
  24376. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24377. let works = this.courseGroup.group[i].works[toolindex];
  24378. for (var j = 0; j < works.length; j++) {
  24379. let answer = JSON.parse(works[j].works)[0].answer;
  24380. array.push({ name: answer });
  24381. }
  24382. }
  24383. }
  24384. let _result = ''
  24385. array.forEach(e=>{
  24386. _result +=e.name+','
  24387. })
  24388. this.wordCloudData = _result;
  24389. this.dialogVisibleWordCloud = true;
  24390. this.wordCloudKey += 1;
  24391. },
  24392. uploadWorks(i) {
  24393. this.$confirm("确定导出作业吗?", "提示", {
  24394. confirmButtonText: "确定",
  24395. cancelButtonText: "取消",
  24396. type: "warning",
  24397. })
  24398. .then(() => {
  24399. const loading = this.$loading.service({
  24400. background: "rgba(255, 255, 255, 0.7)",
  24401. target: document.body,
  24402. text: "文件加载中...",
  24403. });
  24404. const _worksStudent = this.worksStudent;
  24405. let url = [];
  24406. var counts = {};
  24407. for (var l = 0; l < _worksStudent[i].length; l++) {
  24408. var item = _worksStudent[i][l];
  24409. var name = item.sName;
  24410. if (!counts.hasOwnProperty(name)) {
  24411. counts[name] = 0;
  24412. } else {
  24413. counts[name]++;
  24414. }
  24415. if (counts[name] > 0) {
  24416. item.sName += " (" + counts[name] + ")";
  24417. }
  24418. }
  24419. for (var l = 0; l < _worksStudent[i].length; l++) {
  24420. var item = _worksStudent[i][l];
  24421. if (
  24422. item.works.indexOf(
  24423. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24424. ) !== -1 &&
  24425. item.works.indexOf("img") === -1
  24426. ) {
  24427. url.push({ name: item.sName, url: item.works });
  24428. }
  24429. }
  24430. // var toolList = [
  24431. // { name: "电子白板", tool: 1 },
  24432. // { name: "思维导图", tool: 3 },
  24433. // { name: "协同文档", tool: 6 },
  24434. // { name: "思维网格", tool: 7 },
  24435. // { name: "素材库", tool: 8 },
  24436. // { name: "学习资料", tool: 17 },
  24437. // { name: "便签", tool: 2 },
  24438. // { name: "问卷调查", tool: 4 },
  24439. // { name: "选择题", tool: 45 },
  24440. // { name: "倒计时", tool: 10 },
  24441. // { name: "问答", tool: 15 },
  24442. // { name: "课程设计", tool: 26 },
  24443. // { name: "训练服务器", tool: 18 },
  24444. // { name: "作业提交", tool: 16 },
  24445. // { name: "批量上传", tool: 50 },
  24446. // { name: "AIoT Blockly", tool: 21 },
  24447. // { name: "AI Python", tool: 23 },
  24448. // { name: "AI Blockly", tool: 24 },
  24449. // { name: "目标管理", tool: 25 },
  24450. // { name: "数学画板", tool: 31 },
  24451. // { name: "翻译", tool: 28 },
  24452. // { name: "魔盒识字", tool: 37 },
  24453. // { name: "数学画板", tool: 31 },
  24454. // { name: "24点", tool: 38 },
  24455. // { name: "GeoGebra", tool: 39 },
  24456. // { name: "源码编辑", tool: 32 },
  24457. // { name: "个人评价", tool: 40 },
  24458. // { name: "选择匹配", tool: 41 },
  24459. // { name: "汉字宫", tool: 44 },
  24460. // { name: "排序", tool: 47 },
  24461. // { name: "表格", tool: 48 },
  24462. // { name: "文档", tool: 52 },
  24463. // { name: "学生分组", tool: 49 },
  24464. // { name: "CocoPi", tool: 57 },
  24465. // { name: "模拟驾驶", tool: 58 },
  24466. // { name: "路径搜索", tool: 59 },
  24467. // { name: "深度学习", tool: 60 },
  24468. // { name: "全历史", tool: 61 },
  24469. // { name: "交互视频", tool: 62 },
  24470. // { name: "海龟编程", tool: 63 },
  24471. // { name: "挑人", tool: 65 },
  24472. // { name: "公式编辑", tool: 66 },
  24473. // { name: "分子结构", tool: 67 },
  24474. // { name: "时间轴", tool: 68 },
  24475. // ];
  24476. // var toolName = "";
  24477. // for(var w = 0;w<toolList.length;w++){
  24478. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24479. // toolName = toolList[w].name;
  24480. // }
  24481. // }
  24482. console.log(url);
  24483. this.downLoadAll(url, loading);
  24484. })
  24485. .catch(() => {});
  24486. },
  24487. downLoadAll(url, loading) {
  24488. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24489. const zip = new JSZip();
  24490. const cache = {};
  24491. const promises = [];
  24492. data.forEach((item) => {
  24493. const promise = getFile(item.url).then((data) => {
  24494. if (data.data != 1) {
  24495. // 下载文件, 并存成ArrayBuffer对象
  24496. const file_name =
  24497. item.name +
  24498. "." +
  24499. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24500. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24501. cache[file_name] = data.data;
  24502. }
  24503. });
  24504. promises.push(promise);
  24505. });
  24506. Promise.all(promises).then(() => {
  24507. zip.generateAsync({ type: "blob" }).then((content) => {
  24508. // 生成二进制流
  24509. FileSaver.saveAs(
  24510. content,
  24511. this.courseDetail.title + "-" + "作业提交工具.zip"
  24512. ); // 利用file-saver保存文件 自定义文件名
  24513. setTimeout(() => {
  24514. loading.close();
  24515. }, 2000);
  24516. });
  24517. });
  24518. },
  24519. pickStudent(stu) {
  24520. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24521. return;
  24522. }
  24523. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24524. confirmButtonText: "确定",
  24525. cancelButtonText: "取消",
  24526. type: "warning",
  24527. })
  24528. .then(() => {
  24529. let params = [
  24530. {
  24531. uid: stu.userid,
  24532. cid: this.id,
  24533. stage: this.courseType,
  24534. task: this.taskCount,
  24535. tool: this.toolindex,
  24536. },
  24537. ];
  24538. this.ajax
  24539. .post(this.$store.state.api + "updateCoursePick", params)
  24540. .then((res) => {
  24541. this.$message.success("操作成功");
  24542. this.getPick();
  24543. })
  24544. .catch((err) => {
  24545. this.$message.error("网络不佳");
  24546. console.error(err);
  24547. });
  24548. })
  24549. .catch(() => {});
  24550. },
  24551. selectUser(){
  24552. let params = {
  24553. userid: this.userid,
  24554. };
  24555. this.ajax
  24556. .get(this.$store.state.api + "selectUser", params)
  24557. .then((res) => {
  24558. this.userMes = res.data[0];
  24559. })
  24560. .catch((err) => {
  24561. console.error(err);
  24562. });
  24563. },
  24564. setEngText(i){
  24565. this.newEngIndex = i;
  24566. this.$forceUpdate();
  24567. },
  24568. addCorrect(){
  24569. this.$confirm("你确定提交批改嘛?", "提示", {
  24570. confirmButtonText: "确定",
  24571. showCancelButton: false,
  24572. closeOnClickModal: false,
  24573. type: "warning",
  24574. })
  24575. .then(() => {
  24576. let params = {
  24577. cid: this.id,
  24578. s: parseInt(this.courseType),
  24579. t: this.taskCount,
  24580. tool: this.toolindex,
  24581. wid: this.engWid,
  24582. c: this.userid,
  24583. 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) : "",
  24584. };
  24585. this.ajax
  24586. .get(this.$store.state.api + "addEngC", params)
  24587. .then((res) => {
  24588. this.$message.success("提交成功");
  24589. this.engUpdateDialogVisible = false;
  24590. })
  24591. .catch((err) => {
  24592. console.error(err);
  24593. });
  24594. })
  24595. .catch(() => {});
  24596. },
  24597. selectEngC(id,z){
  24598. let params = {
  24599. workid: id,
  24600. };
  24601. this.ajax
  24602. .get(this.$store.state.api + "selectEngC", params)
  24603. .then((res) => {
  24604. if(res.data[0].length == 0){
  24605. this.newEnglishList.engTitle = z.engTitle;
  24606. this.newEnglishList.engText = z.engText;
  24607. }else{
  24608. var a = res.data[0];
  24609. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24610. if(this.userMes[0].type == 2){
  24611. var snum = 0;
  24612. for(var i = 0;i<a.length;i++){
  24613. if(this.userMes[0].userid == a[i].correct){
  24614. this.newEnglishList = JSON.parse(a[i].cWork);
  24615. snum = 1;
  24616. }
  24617. }
  24618. if(snum == 0){
  24619. this.newEnglishList = { engTitle:"",engText:"" };
  24620. this.newEnglishList.engTitle = z.engTitle;
  24621. this.newEnglishList.engText = z.engText;
  24622. }
  24623. }else if(this.userMes[0].type == 1){
  24624. var num = 0;
  24625. for(var w= 0;w<a.length;w++){
  24626. if(this.userMes[0].userid == a[w].correct){
  24627. num = 1;
  24628. }
  24629. }
  24630. if(num == 0){
  24631. this.isNoUserid = true;
  24632. var c = JSON.parse(JSON.stringify(z));
  24633. this.oldEnglishJson1 = c;
  24634. }else{
  24635. this.isNoUserid = false;
  24636. }
  24637. var b = a.sort((item, index) => {
  24638. console.log(item)
  24639. if (item.correct === this.userMes[0].userid) {
  24640. return -1; // 将a移到前面
  24641. } else if (index.correct === this.userMes[0].userid) {
  24642. return 1; // 将b移到前面
  24643. } else {
  24644. return 0; // 保持默认顺序
  24645. }
  24646. });
  24647. for(var p = 0;p<b.length;p++){
  24648. for(var y = 0;y<ppp.length;y++){
  24649. if(b[p].id == ppp[y].id){
  24650. b[p].cWork = JSON.parse(ppp[y].cWork);
  24651. break
  24652. }
  24653. }
  24654. }
  24655. this.newEnglishList1 = b;
  24656. }
  24657. }
  24658. this.greyType = false;
  24659. setTimeout(() => {
  24660. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24661. if(this.newEnglishList1.length > 0){
  24662. if(this.isNoUserid == true){
  24663. this.engListLength = this.newEnglishList1.length + 1;
  24664. this.newEngIndex = -1;
  24665. }else{
  24666. this.engListLength = this.newEnglishList1.length;
  24667. this.newEngIndex = 0;
  24668. }
  24669. }
  24670. if(this.userMes[0].type == 2){
  24671. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24672. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24673. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24674. }else if(this.newEngIndex == -1){
  24675. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24676. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24677. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24678. }
  24679. }, 500);
  24680. this.engUpdateDialogVisible = true;
  24681. this.$forceUpdate();
  24682. })
  24683. .catch((err) => {
  24684. console.error(err);
  24685. });
  24686. },
  24687. getPick() {
  24688. let params = {
  24689. cid: this.id,
  24690. };
  24691. this.ajax
  24692. .get(this.$store.state.api + "getPick", params)
  24693. .then((res) => {
  24694. let array = [];
  24695. for (var i = 0; i < res.data[0].length; i++) {
  24696. array.push(res.data[0][i].userid);
  24697. }
  24698. this.isPickStudent = array;
  24699. if (array.indexOf(this.userid) !== -1) {
  24700. this.$confirm("你被老师选到啦!", "提示", {
  24701. confirmButtonText: "确定",
  24702. showCancelButton: false,
  24703. closeOnClickModal: false,
  24704. type: "warning",
  24705. })
  24706. .then(() => {
  24707. let pa = [
  24708. {
  24709. uid: this.userid,
  24710. cid: this.id,
  24711. },
  24712. ];
  24713. this.ajax
  24714. .post(this.$store.state.api + "deletePick", pa)
  24715. .then((res) => {
  24716. this.getPick();
  24717. })
  24718. .catch((err) => {
  24719. this.$message.error("网络不佳");
  24720. console.error(err);
  24721. });
  24722. })
  24723. .catch(() => {});
  24724. }
  24725. })
  24726. .catch((err) => {
  24727. this.$message.error("网络不佳");
  24728. console.error(err);
  24729. });
  24730. },
  24731. foldEva() {
  24732. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24733. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24734. } else {
  24735. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24736. setTimeout(() => {
  24737. this.checkEva();
  24738. setTimeout(() => {
  24739. this.checkEva();
  24740. }, 500);
  24741. }, 0);
  24742. }
  24743. this.$forceUpdate();
  24744. },
  24745. panToolHeight(tool) {
  24746. var _tool = document.querySelectorAll('#'+tool)[0]
  24747. var _toolA = _tool ? _tool.offsetHeight : 0
  24748. var _toolC = 0
  24749. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24750. let boolean2 = (_toolA > _toolC) ? true : false
  24751. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24752. this.$forceUpdate();
  24753. },
  24754. async checkLink(url) {
  24755. // console.log(url)
  24756. let _url = url
  24757. try {
  24758. const response = await fetch(url);
  24759. if(!response.ok){
  24760. _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]))
  24761. }
  24762. // console.log(response.ok)
  24763. } catch (error) {
  24764. console.error('Error checking link:', error);
  24765. // console.log(false)
  24766. _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]))
  24767. }
  24768. // console.log(_url)
  24769. return _url
  24770. },
  24771. getScoreList(){
  24772. let params = {
  24773. cid: this.id,
  24774. };
  24775. this.ajax
  24776. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24777. .then((res) => {
  24778. let result = res.data;
  24779. this.scoreList.datalist = result[0];
  24780. this.scoreList.isScoreList = result[1];
  24781. })
  24782. .catch((err) => {
  24783. console.error(err);
  24784. });
  24785. },
  24786. setClassRoomHelperWidth(width){
  24787. this.classRoomHelperWidth = width
  24788. },
  24789. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24790. this.$refs.choseWorksDetailDialogRef.open({
  24791. toolType:tooc,
  24792. tType: this.tType,
  24793. toolIndex: toolIndex
  24794. });
  24795. this.changeSplitScreenBehavior({
  24796. code: 1,
  24797. form: {
  24798. toolType:tooc,
  24799. toolIndex: toolIndex,
  24800. courseType: this.courseType,
  24801. taskCount: this.taskCount,
  24802. type: 0
  24803. }
  24804. });
  24805. },
  24806. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24807. this.$refs.statisticalAnalysisRef.open({
  24808. worksStudent: this.worksStudent[toolIndex],
  24809. tType: this.tType,
  24810. toolIndex: toolIndex
  24811. });
  24812. this.changeSplitScreenBehavior({
  24813. code: 2,
  24814. form: {
  24815. toolType:4,
  24816. courseType: this.courseType,
  24817. taskCount: this.taskCount,
  24818. toolIndex: toolIndex,
  24819. type: 0
  24820. }
  24821. });
  24822. },
  24823. statisticalAnalysisRefresh(toolIndex) {
  24824. this.$refs.statisticalAnalysisRef.refreshData({
  24825. worksStudent: this.worksStudent[toolIndex],
  24826. tType: this.tType,
  24827. toolIndex: toolIndex
  24828. });
  24829. },
  24830. async splitScreenBehavior(type = 0) {
  24831. // return;
  24832. if (this.splitScreenData.loading)
  24833. return this.$message.info("操作过快,请稍等");
  24834. if (type == 0) {
  24835. //关闭分屏
  24836. this.splitScreenData.isOpen = false;
  24837. // this.splitScreenData.userId = "";
  24838. // this.splitScreenData.uid = "";
  24839. this.splitScreenData.behavior = null;
  24840. await this.updateSplitScreenData(1);
  24841. this.$message.success("已关闭分屏模式");
  24842. this.studentFreePreview(false);
  24843. this.OpenJobPreview(false);
  24844. // this.followingMode(false);
  24845. } else if (type == 1) {
  24846. //开启分屏
  24847. this.splitScreenData.isOpen = true;
  24848. this.splitScreenData.userId = this.userid;
  24849. this.splitScreenData.uid = this.splitScreenData.myUid;
  24850. this.splitScreenData.behavior = null;
  24851. let status = await this.updateSplitScreenData(0);
  24852. this.changeSplitScreenBehavior({form:{}})
  24853. if (status == 1) {
  24854. this.$message.success("已开启分屏");
  24855. this.studentFreePreview(false);
  24856. this.OpenJobPreview(true);
  24857. // this.followingMode(true);
  24858. } else {
  24859. this.splitScreenData.isOpen = false;
  24860. this.splitScreenData.userId = "";
  24861. this.splitScreenData.uid = "";
  24862. this.splitScreenData.behavior = null;
  24863. this.$message.success("分屏开启失败");
  24864. }
  24865. }
  24866. },
  24867. enterFullScreen() {
  24868. let element = document.documentElement;
  24869. if (element.requestFullscreen) {
  24870. element.requestFullscreen();
  24871. } else if (element.mozRequestFullScreen) { /* Firefox */
  24872. element.mozRequestFullScreen();
  24873. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24874. element.webkitRequestFullscreen();
  24875. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24876. element.msRequestFullscreen();
  24877. }
  24878. },
  24879. exitFullScreen() {
  24880. if (document.exitFullscreen) {
  24881. document.exitFullscreen();
  24882. } else if (document.mozCancelFullScreen) { /* Firefox */
  24883. document.mozCancelFullScreen();
  24884. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24885. document.webkitExitFullscreen();
  24886. } else if (document.msExitFullscreen) { /* IE/Edge */
  24887. document.msExitFullscreen();
  24888. }
  24889. },
  24890. confirmOpen(){
  24891. this.splitScreenData.isOpen = true;
  24892. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24893. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24894. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24895. this.confirmOpenDig = false
  24896. if (!document.fullscreenElement) {
  24897. this.enterFullScreen();
  24898. }
  24899. // if (this.timer2) {
  24900. // clearInterval(this.timer2);
  24901. // this.timer2 = null;
  24902. // }
  24903. // this.timer2 = setInterval(()=> {
  24904. // this.getSplitScreenData();//获取分屏数据
  24905. // }, 1000);
  24906. this.$message.success("分屏模式已开启");
  24907. },
  24908. getSplitScreenData() {
  24909. // return;
  24910. // if (this.tType != 1) return;
  24911. let params = {
  24912. cid: this.id
  24913. };
  24914. this.ajax
  24915. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24916. .then(async res => {
  24917. let data = res.data[0][0]["splitScreenData"];
  24918. console.log("获取了分屏数:", data);
  24919. if (data) {
  24920. data = JSON.parse(data);
  24921. if (
  24922. !this.splitScreenData.isOpen &&
  24923. data.isOpen &&
  24924. this.splitScreenData.myUid == data.uid
  24925. ) {
  24926. this.splitScreenData.isOpen = false;
  24927. this.splitScreenData.userId = "";
  24928. this.splitScreenData.uid = "";
  24929. this.splitScreenData.behavior = null;
  24930. await this.updateSplitScreenData(1);
  24931. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24932. this.confirmOpenDig = true
  24933. this.confirmOpenDigData = data
  24934. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24935. this.splitScreenData.isOpen = false;
  24936. this.splitScreenData.userId = "";
  24937. this.splitScreenData.uid = "";
  24938. this.splitScreenData.behavior = null;
  24939. this.$message.error("已结束分屏模式");
  24940. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24941. this.splitScreenData.isOpen = true;
  24942. this.splitScreenData.uid = data.uid;
  24943. this.splitScreenData.userId = data.userId;
  24944. this.splitScreenData.behavior = data.behavior;
  24945. }
  24946. this.doSplitScreenBehavior();
  24947. } else {
  24948. if (this.splitScreenData.isOpen) {
  24949. this.splitScreenData.isOpen = false;
  24950. this.splitScreenData.userId = "";
  24951. this.splitScreenData.uid = "";
  24952. this.splitScreenData.behavior = null;
  24953. this.$message.error("已结束分屏模式");
  24954. // if (this.timer2) {
  24955. // clearInterval(this.timer2);
  24956. // this.timer2 = null;
  24957. // }
  24958. // this.timer2 = setInterval(()=> {
  24959. // this.getSplitScreenData();//获取分屏数据
  24960. // }, 5000);
  24961. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24962. confirmButtonText: '确定', //确认按钮的文字
  24963. showCancelButton: false, //是否显示取消按钮
  24964. showClose: false, //是否显示关闭按钮
  24965. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24966. type: "warning",
  24967. })
  24968. .then(() => {
  24969. if (document.fullscreenElement) {
  24970. this.exitFullScreen();
  24971. }
  24972. })
  24973. .catch(() => {});
  24974. }
  24975. }
  24976. })
  24977. .catch(e => {
  24978. console.log("获取分屏数出错:", e);
  24979. });
  24980. },
  24981. doSplitScreenBehavior() {
  24982. if (
  24983. this.splitScreenData.isOpen &&
  24984. this.splitScreenData.uid != this.splitScreenData.myUid
  24985. ) {
  24986. let behavior = this.splitScreenData.behavior;
  24987. if (behavior) {
  24988. if (behavior.code === 99) {
  24989. //初始化
  24990. this.fullDialogVisible = false;
  24991. if(this.$refs.choseWorksDetailDialogRef.show){
  24992. this.$refs.choseWorksDetailDialogRef.close();
  24993. }
  24994. if(this.$refs.statisticalAnalysisRef.show){
  24995. this.$refs.statisticalAnalysisRef.close();
  24996. }
  24997. }
  24998. if (behavior.code === 0) {
  24999. //开启内容列表弹窗
  25000. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25001. }else{
  25002. this.fullDialogVisible = false;
  25003. }
  25004. if (behavior.code === 1) {
  25005. //关于选择题的作业详细的操作
  25006. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25007. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25008. this.courseType = behavior.form.courseType;
  25009. this.taskCount = behavior.form.taskCount;
  25010. }
  25011. this.$nextTick(() => {
  25012. if (this.$refs.choseWorksDetailDialogRef.show) {
  25013. //已经打开了
  25014. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25015. } else {
  25016. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25017. }
  25018. });
  25019. }else{
  25020. this.$refs.choseWorksDetailDialogRef.close()
  25021. }
  25022. if(behavior.code === 2){
  25023. if(this.$refs.statisticalAnalysisRef.show){
  25024. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25025. }else{
  25026. this.$refs.statisticalAnalysisRef.open({
  25027. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25028. tType: this.tType,
  25029. toolIndex: behavior.form.toolIndex
  25030. });
  25031. }
  25032. }else{
  25033. this.$refs.statisticalAnalysisRef.close();
  25034. }
  25035. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25036. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25037. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25038. if (behavior.form.courseType != this.courseType ||
  25039. behavior.form.taskCount != this.taskCount ||
  25040. behavior.form.toolType != this.toolindex
  25041. ) {
  25042. var a = document.scrollingElement;
  25043. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25044. if (target) {
  25045. target.scrollIntoView(true);
  25046. setTimeout(()=>{
  25047. let scrollBody = document.querySelector('.body_student').parentElement
  25048. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25049. }, 0);
  25050. // setTimeout(() => {
  25051. // a.scrollTop = 0
  25052. // }, 0);
  25053. }
  25054. }
  25055. if(this.courseType !=behavior.form.courseType){
  25056. this.courseType = behavior.form.courseType;
  25057. }
  25058. if(this.taskCount !=behavior.form.taskCount){
  25059. this.taskCount = behavior.form.taskCount;
  25060. }
  25061. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25062. this.toolindex = behavior.form.toolType;
  25063. }
  25064. // if(behavior.form.navId){
  25065. // this.navId = behavior.form.navId
  25066. // }
  25067. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25068. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25069. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25070. this.getCourseDetail()
  25071. }
  25072. this.setContent2(false)
  25073. }
  25074. } else {
  25075. }
  25076. }
  25077. },
  25078. updateSplitScreenData(empty = 0) {
  25079. return new Promise(resolve => {
  25080. if(this.userid!==this.courseDetail.userid){
  25081. if(!this.courseDetail.userid){
  25082. return setTimeout(()=>{
  25083. this.updateSplitScreenData(empty)
  25084. },2000)
  25085. }
  25086. return;
  25087. };
  25088. if (
  25089. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25090. this.splitScreenData.userId == this.userid
  25091. ) {
  25092. this.splitScreenData.loading = true;
  25093. let params = [
  25094. {
  25095. cid: this.id,
  25096. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25097. }
  25098. ];
  25099. this.ajax
  25100. .post(
  25101. this.$store.state.api + "update_courseSplitScreenData",
  25102. params
  25103. )
  25104. .then(res => {
  25105. this.splitScreenData.loading = false;
  25106. if (res.data == 1) {
  25107. resolve(1);
  25108. console.log("修改分屏数据成功");
  25109. }
  25110. })
  25111. .catch(e => {
  25112. this.splitScreenData.loading = false;
  25113. console.log("修改分屏数据失败", e);
  25114. resoleve(0);
  25115. });
  25116. } else if (empty == 2 && this.tType == 1) {
  25117. let params = [
  25118. {
  25119. cid: this.id,
  25120. nData: ""
  25121. }
  25122. ];
  25123. return this.ajax
  25124. .post(
  25125. this.$store.state.api + "update_courseSplitScreenData",
  25126. params
  25127. )
  25128. .then(_ => resolve(1))
  25129. .catch(_ => resolve(0));
  25130. } else {
  25131. return resolve(0);
  25132. }
  25133. });
  25134. },
  25135. changeSplitScreenBehavior(newValue) {
  25136. if (
  25137. this.splitScreenData.isOpen &&
  25138. this.splitScreenData.uid == this.splitScreenData.myUid
  25139. ) {
  25140. let _behavior = null;
  25141. if(!newValue){
  25142. _behavior = {}
  25143. }else{
  25144. _behavior = newValue
  25145. }
  25146. if(_behavior.form){
  25147. _behavior.form.taskCount = this.taskCount;
  25148. _behavior.form.courseType = this.courseType
  25149. }else{
  25150. _behavior.form = {
  25151. taskCount:this.taskCount,
  25152. courseType:this.courseType
  25153. }
  25154. }
  25155. this.splitScreenData.behavior = _behavior;
  25156. this.updateSplitScreenData(0);
  25157. }
  25158. },
  25159. studentFreePreview(flag) {
  25160. this.IsLookOpen = flag;
  25161. this.followingMode(flag)
  25162. this.updateLookOpen();
  25163. },
  25164. OpenJobPreview(flag) {
  25165. this.sIsOpen = flag;
  25166. this.updateSLook();
  25167. },
  25168. followingMode(flag) {
  25169. this.IsFollow = flag;
  25170. this.updateFollow();
  25171. }
  25172. },
  25173. directives: {
  25174. // 使用局部注册指令的方式
  25175. resize: {
  25176. // 指令的名称
  25177. bind(el, binding) {
  25178. // el为绑定的元素,binding为绑定给指令的对象
  25179. let width = "",
  25180. height = "";
  25181. function isReize() {
  25182. const style = document.defaultView.getComputedStyle(el);
  25183. if (width !== style.width || height !== style.height) {
  25184. binding.value(); // 关键
  25185. }
  25186. width = style.width;
  25187. height = style.height;
  25188. }
  25189. el.__vueSetInterval__ = setInterval(isReize, 300);
  25190. },
  25191. unbind(el) {
  25192. clearInterval(el.__vueSetInterval__);
  25193. },
  25194. },
  25195. autoHeight: {
  25196. update(el, binding) {
  25197. const { value } = binding
  25198. if (value && typeof value === 'number') {
  25199. el.style.height = `${value}px`
  25200. } else {
  25201. el.style.height = 'auto'
  25202. }
  25203. },
  25204. componentUpdated(el) {
  25205. el.style.height = `${el.scrollHeight + 5}px`
  25206. },
  25207. },
  25208. },
  25209. beforeDestroy() {
  25210. window.onresize = null;
  25211. clearInterval(this.timer);
  25212. clearInterval(this.timer2);
  25213. this.timer = null;
  25214. this.timer2 = null;
  25215. clearInterval(this.opertimer);
  25216. this.opertimer = null;
  25217. this.updateSplitScreenData(1);
  25218. },
  25219. computed: {
  25220. renderedFormula() {
  25221. return function(val){
  25222. try {
  25223. return katex.renderToString(val,{ throwOnError: false });
  25224. } catch (e) {
  25225. console.error('KaTeX渲染错误:', e);
  25226. return val;
  25227. }
  25228. }
  25229. },
  25230. isAndroid() {
  25231. return /Android/i.test(navigator.userAgent);
  25232. },
  25233. getHeight(){
  25234. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25235. },
  25236. contentConvent() {
  25237. return function (c) {
  25238. return c
  25239. ? c
  25240. .replaceAll(/\r\n/g, "<br/>")
  25241. .replaceAll(/\n/g, "<br/>")
  25242. .replaceAll(/\s/g, " &nbsp")
  25243. : "";
  25244. };
  25245. },
  25246. MarkdownT() {
  25247. return function (c) {
  25248. let md = new MarkdownIt({
  25249. html: true, // 允许渲染 HTML
  25250. linkify: true, // 自动将URL链接转化为可点击链接
  25251. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  25252. });
  25253. return c
  25254. ? md.render(c) : "";
  25255. };
  25256. },
  25257. commentRight(){
  25258. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  25259. return "35px";
  25260. }
  25261. return `calc(${this.classRoomHelperWidth} + 5px)`
  25262. // if(this.$refs["classRoomHelperRef"].type==0){
  25263. // return "100px";
  25264. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25265. // return "502px"
  25266. // }else{
  25267. // return "0px"
  25268. // }
  25269. },
  25270. checkUpload() {
  25271. return function () {
  25272. var studentK = [];
  25273. if (this.plworkFile.length > 0) {
  25274. for (var z = 0; z < this.plworkFile.length; z++) {
  25275. studentK.push(this.plworkFile[z].username);
  25276. }
  25277. studentK = studentK.join(",");
  25278. }
  25279. var a = this.uploadStudentJuri.filter((el) => {
  25280. return studentK.indexOf(el.userid) == -1;
  25281. });
  25282. return a;
  25283. };
  25284. },
  25285. getSName() {
  25286. return function (name) {
  25287. var check = name;
  25288. this.uploadStudentJuri.forEach((el) => {
  25289. if (el.userid == check) {
  25290. check = el.name ? el.name : el.username;
  25291. }
  25292. });
  25293. return check;
  25294. };
  25295. },
  25296. getImgList() {
  25297. return function (val) {
  25298. let srcList = []; // 定义一个数组用来接收后面的img地址
  25299. val.replace(
  25300. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25301. function (match, capture) {
  25302. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25303. srcList.push(capture);
  25304. }
  25305. );
  25306. return srcList;
  25307. };
  25308. },
  25309. retrnToolHeight(){
  25310. return function (tool) {
  25311. var _tool = document.querySelectorAll('#'+tool)[0]
  25312. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25313. };
  25314. },
  25315. Correct() {
  25316. return function (c,d) {
  25317. let w = "";
  25318. let a = this.correctWord;
  25319. for(var k = 0;k<a.length;k++){
  25320. //diffWordsWithSpace
  25321. if(a.length > 1){
  25322. if(a[k].added == true){
  25323. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25324. }else if(a[k].removed == true){
  25325. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25326. }else{
  25327. w += '<span>' + a[k].value + '</span>';
  25328. }
  25329. }else{
  25330. w = c
  25331. }
  25332. console.log("👇👇!+++==")
  25333. console.log(w)
  25334. //diffChars方法
  25335. // if(w == ""){
  25336. // if(a.length > 1){
  25337. // if(a[k].added == true){
  25338. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25339. // }else if(a[k].removed == true){
  25340. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25341. // }
  25342. // }else{
  25343. // w = c
  25344. // }
  25345. // }else{
  25346. // if(k == a.length - 1){
  25347. // if(a[k].added == true){
  25348. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25349. // }else if(a[k].removed == true){
  25350. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25351. // }
  25352. // }else{
  25353. // if(a[k].added == true){
  25354. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25355. // }else if(a[k].removed == true){
  25356. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25357. // }
  25358. // }
  25359. // }
  25360. }
  25361. c = w;
  25362. return c;
  25363. };
  25364. },
  25365. },
  25366. mounted() {
  25367. document.body.addEventListener("click", (e) => {
  25368. if (this.isUpdateToolDetail1) {
  25369. this.updateToolDetail(this.toolDetailIndex);
  25370. }
  25371. });
  25372. try {
  25373. if (this.screenType == 2) {
  25374. window.topU.postMessage({ allScreen: 4 }, "*");
  25375. } else if (this.screenType == 3) {
  25376. window.topU.postMessage({ allScreen: 5 }, "*");
  25377. } else if (this.screenType == 1) {
  25378. window.topU.postMessage({ allScreen: 6 }, "*");
  25379. }
  25380. } catch (error) {
  25381. console.log(error)
  25382. }
  25383. this.setOperationTime();
  25384. this.selectEva();
  25385. this.getCourseDetail();
  25386. this.selectCount();
  25387. this.getHomeWork();
  25388. this.selectUser();
  25389. this.getAIJ();
  25390. this.contentDialog = true;
  25391. this.setContent2(true);
  25392. if (this.tType == 4) {
  25393. this.pzDialog = true;
  25394. this.selectPz();
  25395. }
  25396. // 获取评分列表
  25397. this.getScoreList()
  25398. this.updateSplitScreenData(2);
  25399. this.splitScreenData.myUid = uuidv4();
  25400. document.scrollingElement.scrollTop = 0;
  25401. window.addEventListener("resize", () => {
  25402. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25403. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25404. if (this.showType == 2 || this.showType == 3) {
  25405. document.getElementsByClassName("navBox")[0].style.height =
  25406. a - 40 + 0+ "px";
  25407. } else {
  25408. document.getElementsByClassName("navBox")[0].style.height =
  25409. a - 40 + "px";
  25410. }
  25411. });
  25412. let _this = this;
  25413. setTimeout(() => {
  25414. // _this.vedioTime = [];
  25415. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25416. // _this.vedioTime[i] = document.getElementsByClassName(
  25417. // "vjs-duration-display"
  25418. // )[i].textContent;
  25419. // }
  25420. }, 1000);
  25421. },
  25422. };
  25423. </script>
  25424. <style scoped>
  25425. @media screen and (max-width: 1280px) {
  25426. /* .courseIndex > div:first-child(2) {
  25427. width: 15% !important;
  25428. } */
  25429. /* .navText {
  25430. width: 120px !important;
  25431. } */
  25432. .evaCss {
  25433. flex-direction: column !important;
  25434. align-items: center !important;
  25435. }
  25436. .elist_input {
  25437. width: 90% !important;
  25438. }
  25439. .dialog_diy1 >>> .el-dialog {
  25440. width: 100% !important;
  25441. }
  25442. .rightWidthCss {
  25443. width: 100% !important;
  25444. }
  25445. .dialog_diy3 >>> .el-dialog {
  25446. width: 100% !important;
  25447. }
  25448. .addToolCss {
  25449. right: 0 !important;
  25450. width: 100% !important;
  25451. min-width: unset !important;
  25452. }
  25453. }
  25454. .evaCssMax {
  25455. flex-direction: column !important;
  25456. align-items: center !important;
  25457. }
  25458. .dialog_diy >>> .el-dialog {
  25459. /* margin-top: 10vh !important; */
  25460. }
  25461. .body_student {
  25462. width: 77%;
  25463. height: 100%;
  25464. position: absolute;
  25465. left: 22%;
  25466. top: 0;
  25467. }
  25468. .student_head {
  25469. width: 100%;
  25470. margin: 20px auto 0;
  25471. padding-bottom: 20px;
  25472. display: flex;
  25473. flex-direction: column;
  25474. flex-wrap: nowrap;
  25475. align-items: flex-start;
  25476. justify-content: flex-start;
  25477. }
  25478. .pb_left {
  25479. width: 20%;
  25480. margin-right: 10px;
  25481. background: rgb(255, 255, 255);
  25482. position: fixed;
  25483. height: calc(100% - 40px);
  25484. border-radius: 20px;
  25485. padding-bottom: 15px;
  25486. box-sizing: border-box;
  25487. }
  25488. .wheel > img,
  25489. .project > img,
  25490. .star > img,
  25491. .evaluate > img,
  25492. .up_photo > img,
  25493. .chapter_add > img,
  25494. .deleteWord > img,
  25495. .question > img,
  25496. .homework > img {
  25497. width: 100%;
  25498. height: 100%;
  25499. }
  25500. .upCover > img {
  25501. width: 131px;
  25502. height: 69px;
  25503. object-fit: cover;
  25504. }
  25505. .upCover {
  25506. width: calc(100% / 3.5);
  25507. position: relative;
  25508. margin: 0 15px 10px 0;
  25509. display: flex;
  25510. flex-direction: column;
  25511. flex-wrap: nowrap;
  25512. justify-content: center;
  25513. align-content: center;
  25514. align-items: center;
  25515. height: fit-content;
  25516. }
  25517. .upCover2 {
  25518. width: 100%;
  25519. position: relative;
  25520. margin: 0 15px 10px 0;
  25521. display: flex;
  25522. flex-direction: column;
  25523. flex-wrap: nowrap;
  25524. justify-content: center;
  25525. align-content: center;
  25526. align-items: center;
  25527. }
  25528. .upCover2 > img {
  25529. width: 100%;
  25530. height: 90px;
  25531. object-fit: contain;
  25532. }
  25533. .chapter_add {
  25534. width: 120px;
  25535. position: relative;
  25536. text-align: center;
  25537. }
  25538. .isAddThings {
  25539. margin-top: 20px;
  25540. position: relative;
  25541. text-align: center;
  25542. background: #f7f8fa;
  25543. height: 90px;
  25544. width: 90px;
  25545. display: flex;
  25546. flex-direction: column;
  25547. justify-content: center;
  25548. }
  25549. .deleteWord {
  25550. width: 22px;
  25551. height: 22px;
  25552. position: absolute;
  25553. right: -5px;
  25554. top: -5px;
  25555. cursor: pointer;
  25556. }
  25557. .box_course {
  25558. /* width: 60%; */
  25559. width: calc(100% - 300px);
  25560. }
  25561. .wheel {
  25562. width: 100%;
  25563. /* height: 100%; */
  25564. height: 650px;
  25565. }
  25566. .right_box {
  25567. display: flex;
  25568. flex-direction: column;
  25569. margin-left: 30px;
  25570. justify-content: space-around;
  25571. }
  25572. .right_box_title {
  25573. font-size: 23px;
  25574. }
  25575. .people {
  25576. display: flex;
  25577. }
  25578. .student_body {
  25579. width: 100%;
  25580. margin: 0 auto;
  25581. margin-top: 10px;
  25582. padding: 0 0 20px;
  25583. }
  25584. .study_top {
  25585. margin-top: 100px;
  25586. width: 100%;
  25587. height: auto;
  25588. padding-bottom: 20px;
  25589. margin-left: 2px;
  25590. min-height: 90%;
  25591. }
  25592. .study_top .checkbox {
  25593. display: flex;
  25594. align-items: center;
  25595. padding: 15px 0 15px 30px;
  25596. flex: 0 0 auto;
  25597. font-weight: bold;
  25598. border-bottom: 1px solid #eee;
  25599. }
  25600. .study_top .check {
  25601. padding-bottom: 5px;
  25602. text-align: center;
  25603. cursor: pointer;
  25604. height: 30px;
  25605. box-sizing: border-box;
  25606. display: flex;
  25607. }
  25608. .study_top .checked {
  25609. border-bottom: 4px solid #3fc6a0;
  25610. padding-bottom: 5px;
  25611. color: #3fc6a0;
  25612. display: flex;
  25613. height: 35px;
  25614. }
  25615. .study_top .checked > div,
  25616. .study_top .check > div {
  25617. margin-right: 5px;
  25618. }
  25619. .videoTop {
  25620. display: flex;
  25621. flex-direction: row;
  25622. justify-content: space-between;
  25623. background: #fff;
  25624. align-items: center;
  25625. width: 95%;
  25626. padding: 20px;
  25627. }
  25628. .filebox {
  25629. display: flex;
  25630. flex-wrap: wrap;
  25631. flex-direction: column;
  25632. padding: 0 0 5px;
  25633. position: relative;
  25634. }
  25635. .filebox:before {
  25636. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25637. position: absolute;
  25638. top: 20px;
  25639. left: 13px;
  25640. border-left: 2px dotted #cad1dc;
  25641. height: calc(100% - 15px);
  25642. }
  25643. .toolHeng2 > div:last-child::before {
  25644. height: calc(100% - 43px);
  25645. }
  25646. .filebox .tooldetail {
  25647. width: calc(100%);
  25648. margin: 0px 12px;
  25649. padding: 12px;
  25650. line-height: 30px;
  25651. word-break: break-word;
  25652. background: #ffffff;
  25653. border-radius: 8px 8px 8px 8px;
  25654. opacity: 1;
  25655. border: 1px solid #cad1dc;
  25656. overflow:hidden;
  25657. box-sizing:border-box;
  25658. }
  25659. .file {
  25660. display: flex;
  25661. flex-direction: column;
  25662. align-items: center;
  25663. justify-content: center;
  25664. cursor: pointer;
  25665. width: 200px;
  25666. }
  25667. .file div {
  25668. margin-top: 10px;
  25669. width: 150px;
  25670. text-align: center;
  25671. overflow: hidden;
  25672. white-space: nowrap;
  25673. text-overflow: ellipsis;
  25674. }
  25675. .media {
  25676. display: flex;
  25677. flex-direction: column;
  25678. align-items: center;
  25679. justify-content: center;
  25680. margin: 0 20px 20px 0;
  25681. cursor: pointer;
  25682. margin: 12px 0 5px 15px;
  25683. overflow: hidden;
  25684. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25685. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25686. box-sizing: border-box;
  25687. }
  25688. .media img {
  25689. height: 90px;
  25690. width: 160px;
  25691. object-fit: cover;
  25692. }
  25693. .media .title {
  25694. padding: 5px;
  25695. text-align: left;
  25696. width: 100%;
  25697. box-sizing: border-box;
  25698. }
  25699. .media .btn {
  25700. width: 100%;
  25701. height: 35px;
  25702. line-height: 35px;
  25703. color: #fff;
  25704. background: #606060;
  25705. text-align: center;
  25706. overflow: hidden;
  25707. white-space: nowrap;
  25708. text-overflow: ellipsis;
  25709. }
  25710. .detail_content_top {
  25711. width: 100%;
  25712. padding: 25px 0 25px 0;
  25713. }
  25714. .detail_title {
  25715. text-align: center;
  25716. font-size: 24px;
  25717. }
  25718. .detail_time {
  25719. font-size: 13px;
  25720. padding: 15px 0 0 40px;
  25721. }
  25722. .detail_content {
  25723. line-height: 2pc;
  25724. width: 90%;
  25725. margin: 0 auto;
  25726. padding-top: 30px;
  25727. text-indent: 30px;
  25728. overflow: auto;
  25729. height: 200px;
  25730. }
  25731. .score_box >>> .el-rate {
  25732. margin-left: 10px;
  25733. }
  25734. .dialog_change >>> .el-dialog {
  25735. border-radius: 5px;
  25736. }
  25737. .dialog_change >>> .el-dialog__header {
  25738. background: #f2f2f2;
  25739. text-align: center;
  25740. }
  25741. .dialog_change >>> .el-dialog__title {
  25742. line-height: 5px;
  25743. }
  25744. .dialog_change >>> .el-dialog__body {
  25745. background: #fff;
  25746. padding: 10px 20px;
  25747. }
  25748. .score_box {
  25749. display: flex;
  25750. align-items: center;
  25751. margin-bottom: 18px;
  25752. margin-top: 20px;
  25753. }
  25754. .up_photo {
  25755. width: 120px;
  25756. cursor: pointer;
  25757. margin-top: 10px;
  25758. }
  25759. .up_photo2 {
  25760. width: 180px;
  25761. box-sizing: border-box;
  25762. min-width: 180px;
  25763. height: 180px;
  25764. max-height: 180px;
  25765. min-height: 180px;
  25766. cursor: pointer;
  25767. display: flex;
  25768. flex-direction: column;
  25769. align-items: center;
  25770. justify-content: center;
  25771. background: rgb(242, 246, 255);
  25772. /* padding: 25px; */
  25773. margin-bottom: 10px;
  25774. }
  25775. .up_photo2 img {
  25776. width: 50%;
  25777. height: auto;
  25778. }
  25779. .up_photo2 span {
  25780. color: #898989;
  25781. }
  25782. .plworkBox {
  25783. display: flex;
  25784. align-items: center;
  25785. margin-top: 10px;
  25786. flex-wrap: wrap;
  25787. }
  25788. .upload_send {
  25789. margin: 30px auto 30px;
  25790. width: 60%;
  25791. background: #3681fc;
  25792. text-align: center;
  25793. height: 35px;
  25794. line-height: 35px;
  25795. color: #fff;
  25796. border-radius: 5px;
  25797. cursor: pointer;
  25798. }
  25799. .marginT {
  25800. margin-top: 20px;
  25801. }
  25802. .cd_content_steps {
  25803. display: flex;
  25804. width: 90%;
  25805. justify-content: space-around;
  25806. border-top: 1px solid #eeeeee;
  25807. }
  25808. .cd_steps_box {
  25809. display: flex;
  25810. justify-content: center;
  25811. align-items: center;
  25812. flex-direction: column;
  25813. cursor: pointer;
  25814. }
  25815. .first {
  25816. display: flex;
  25817. align-items: center;
  25818. margin: 15px 0 20px 0;
  25819. font-size: 20px;
  25820. }
  25821. .first > div:nth-child(2) {
  25822. font-size: 16px !important;
  25823. padding-left: 10px;
  25824. line-height: 26px;
  25825. box-sizing: border-box;
  25826. }
  25827. .blue_box_one {
  25828. text-align: center;
  25829. color: #fff;
  25830. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25831. border-radius: 7px;
  25832. margin: 10px;
  25833. cursor: pointer;
  25834. width: 95%;
  25835. height: 45px;
  25836. display: flex;
  25837. flex-direction: row;
  25838. justify-content: flex-start;
  25839. align-items: center;
  25840. }
  25841. .blue_box_one > div:nth-child(1) {
  25842. line-height: 30px;
  25843. margin: 0 5px 0 10px;
  25844. width: 30%;
  25845. min-width: 70px;
  25846. border-radius: 4px;
  25847. }
  25848. .blue_box_one > div:nth-child(2) {
  25849. white-space: nowrap;
  25850. text-overflow: ellipsis;
  25851. overflow: hidden;
  25852. word-break: break-all;
  25853. width: 70%;
  25854. text-align: left;
  25855. margin-right: 10px;
  25856. max-width: calc(100% - 85px);
  25857. }
  25858. .blue_box_one > div:nth-child(2):hover {
  25859. overflow: hidden;
  25860. text-overflow: ellipsis;
  25861. white-space: nowrap;
  25862. cursor: pointer;
  25863. }
  25864. .upFile {
  25865. margin: 0 auto;
  25866. width: 120px;
  25867. background: #3681fc;
  25868. color: #fff;
  25869. height: 30px;
  25870. text-align: center;
  25871. line-height: 30px;
  25872. border-radius: 5px;
  25873. font-size: 14px;
  25874. cursor: pointer;
  25875. }
  25876. .courseTitle {
  25877. width: 85%;
  25878. margin: 10px auto 26px auto;
  25879. display: flex;
  25880. flex-direction: row;
  25881. align-items: center;
  25882. justify-content: space-between;
  25883. text-align: center;
  25884. }
  25885. .courseTitle .ctitle {
  25886. font-size: 20px;
  25887. font-weight: bold;
  25888. color: #0e1e33;
  25889. white-space: nowrap;
  25890. overflow: hidden;
  25891. text-overflow: ellipsis;
  25892. }
  25893. .inviteBox {
  25894. font-size: 14px;
  25895. /* margin-top: 5px; */
  25896. color: #00000099;
  25897. text-align: center;
  25898. }
  25899. .courseTitle >>> .el-tooltip {
  25900. width: 100%;
  25901. white-space: nowrap;
  25902. overflow: hidden;
  25903. text-overflow: ellipsis;
  25904. word-break: break-word;
  25905. }
  25906. .ml {
  25907. margin-left: 20px;
  25908. color: #5b7dba;
  25909. border-left: 3px solid #5b7dba;
  25910. padding-left: 5px;
  25911. font-weight: bold;
  25912. }
  25913. .return {
  25914. width: 2rem;
  25915. height: 2rem;
  25916. cursor: pointer;
  25917. }
  25918. .return > img {
  25919. width: 100%;
  25920. height: 100%;
  25921. }
  25922. .returnBtn {
  25923. width: 86px;
  25924. height: 36px;
  25925. background: #3681fc;
  25926. border-radius: 4px;
  25927. color: #fff;
  25928. text-align: center;
  25929. line-height: 36px;
  25930. margin-right: 20px;
  25931. cursor: pointer;
  25932. font-size: 14px;
  25933. font-weight: 400;
  25934. display: flex;
  25935. flex-direction: row;
  25936. flex-wrap: nowrap;
  25937. align-items: center;
  25938. justify-content: center;
  25939. }
  25940. .reBtnIcon,
  25941. .commentIcon,
  25942. .vedioIcon,
  25943. .vedioIcon1 {
  25944. /* width: 36px; */
  25945. height: 36px;
  25946. border-radius: 4px;
  25947. position: relative;
  25948. /* background: #e0eafb; */
  25949. background: #0061ff;
  25950. cursor: pointer;
  25951. margin-right: 12px;
  25952. display: flex;
  25953. align-items: center;
  25954. padding: 0 10px;
  25955. box-sizing: border-box;
  25956. font-size: 14px;
  25957. color: #fff;
  25958. }
  25959. .reBtnIcon::before,
  25960. .commentIcon::before,
  25961. .vedioIcon::before,
  25962. .vedioIcon1::before {
  25963. content: "";
  25964. display: block;
  25965. background-size: 100% 100%;
  25966. background-repeat: no-repeat;
  25967. width: 20px;
  25968. height: 20px;
  25969. margin-right: 5px;
  25970. /* position: absolute; */
  25971. /* top: 8px;
  25972. left: 8px; */
  25973. }
  25974. .vedioIcon1 {
  25975. background: #f63564;
  25976. }
  25977. .reBtnIcon::before {
  25978. background-image: url("../../assets/icon/newIcons/refresh.png");
  25979. }
  25980. .commentIcon::before {
  25981. background-image: url("../../assets/icon/newIcons/comment.png");
  25982. }
  25983. .vedioIcon::before {
  25984. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25985. }
  25986. .vedioIcon1::before {
  25987. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25988. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25989. }
  25990. .tool {
  25991. display: flex;
  25992. flex-direction: column;
  25993. flex-wrap: nowrap;
  25994. width: 13%;
  25995. margin: 0 30px;
  25996. align-items: center;
  25997. position: relative;
  25998. padding: 10px 25px;
  25999. cursor: pointer;
  26000. }
  26001. .whiteBIcon {
  26002. width: 150px;
  26003. }
  26004. .whiteBIcon > img {
  26005. width: 100%;
  26006. height: 100%;
  26007. }
  26008. .mask {
  26009. background-color: rgba(0, 0, 0, 0);
  26010. position: fixed;
  26011. top: 0;
  26012. left: 0;
  26013. width: 100%;
  26014. height: 100%;
  26015. z-index: 20000;
  26016. display: flex;
  26017. align-items: center;
  26018. justify-content: center;
  26019. }
  26020. .progressBox {
  26021. width: 500px;
  26022. height: 180px;
  26023. background: #fff;
  26024. border-radius: 10px;
  26025. box-shadow: 0 0 6px 1px #bfbfbf;
  26026. display: flex;
  26027. align-items: center;
  26028. justify-content: center;
  26029. flex-direction: column;
  26030. position: relative;
  26031. color: #6c6c6c;
  26032. }
  26033. .progressBox >>> .el-progress-bar__outer {
  26034. background-color: #d1dfff !important;
  26035. }
  26036. .progressBox .lbox {
  26037. height: 50px;
  26038. font-size: 19px;
  26039. display: flex;
  26040. align-items: center;
  26041. color: #747474;
  26042. }
  26043. .progressBox .lbox img {
  26044. width: 40px;
  26045. margin-right: 20px;
  26046. }
  26047. .closeCss {
  26048. position: absolute;
  26049. top: 8px;
  26050. right: 8px;
  26051. cursor: pointer;
  26052. width: 20px;
  26053. height: 20px;
  26054. }
  26055. .closeCss > img {
  26056. width: 100%;
  26057. height: 100%;
  26058. }
  26059. .uploadVedio {
  26060. display: flex;
  26061. flex-direction: column;
  26062. flex-wrap: nowrap;
  26063. justify-content: center;
  26064. align-items: center;
  26065. margin: 0 15px 10px 0;
  26066. }
  26067. .uploadVedio > img {
  26068. width: 30px;
  26069. height: 30px;
  26070. }
  26071. .uploadVedio > span {
  26072. white-space: nowrap;
  26073. overflow: hidden;
  26074. text-overflow: ellipsis;
  26075. width: 75px;
  26076. margin-top: 7px;
  26077. }
  26078. .picName {
  26079. white-space: nowrap;
  26080. overflow: hidden;
  26081. text-overflow: ellipsis;
  26082. width: 75px;
  26083. margin-top: 7px;
  26084. }
  26085. .new_top {
  26086. display: flex;
  26087. background: #fff;
  26088. flex-direction: row;
  26089. justify-content: flex-start;
  26090. align-items: center;
  26091. height: 60px;
  26092. position: fixed;
  26093. top: 20px;
  26094. left: 22%;
  26095. width: 77%;
  26096. z-index: 999;
  26097. border-radius: 12px 12px 0 0;
  26098. border-bottom: 1px solid #cad1dc;
  26099. padding: 10px 0;
  26100. }
  26101. .new_topFixed {
  26102. width: 100%;
  26103. height: 40px;
  26104. position: fixed;
  26105. top: 0px;
  26106. display: block;
  26107. background: #f2f2f2;
  26108. z-index: 998;
  26109. }
  26110. .before {
  26111. position: absolute;
  26112. background: #c3dad4;
  26113. width: 6px;
  26114. height: 100%;
  26115. }
  26116. .courseIndex {
  26117. display: flex;
  26118. flex-direction: row;
  26119. align-items: center;
  26120. width: calc(100% - 745px);
  26121. }
  26122. .courseIndex > div:nth-child(1) {
  26123. margin: 0 0 0 10px;
  26124. font-size: 20px;
  26125. min-width: 100px;
  26126. font-weight: bold;
  26127. border-left: 4px solid #3363b9;
  26128. height: 32px;
  26129. text-align: center;
  26130. line-height: 35px;
  26131. }
  26132. .courseIndex > div:nth-child(2) {
  26133. font-size: 20px;
  26134. /* width: 300px; */
  26135. max-width: calc(100% - 105px);
  26136. white-space: nowrap;
  26137. overflow: hidden;
  26138. text-overflow: ellipsis;
  26139. }
  26140. .courseIndex > div:nth-child(3) {
  26141. border-bottom: 1px solid #d7d7d7;
  26142. padding-bottom: 5px;
  26143. background: #3681fc;
  26144. width: 55px;
  26145. min-width: 55px;
  26146. border-radius: 5px;
  26147. color: #fff;
  26148. text-align: center;
  26149. height: 20px;
  26150. line-height: 26px;
  26151. font-size: 14px;
  26152. margin: 0 0 0 10px;
  26153. }
  26154. .course_text {
  26155. padding: 20px 0 0 15px;
  26156. text-indent: 30px;
  26157. width: 80%;
  26158. min-height: 20px;
  26159. }
  26160. .vedioList {
  26161. background: #f2f2f2;
  26162. border: 1px solid #ececec;
  26163. /* width: 38.8%; */
  26164. /* width: 300px; */
  26165. width: 100%;
  26166. height: 445px;
  26167. border-radius: 10px;
  26168. overflow: hidden;
  26169. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26170. }
  26171. .vedioNav {
  26172. margin: 10px 0 0 15px;
  26173. border-bottom: 1px solid #d7d7d7;
  26174. padding-bottom: 5px;
  26175. background: #3681fc;
  26176. width: 55px;
  26177. min-width: 55px;
  26178. border-radius: 5px;
  26179. color: #fff;
  26180. text-align: center;
  26181. height: 20px;
  26182. line-height: 26px;
  26183. font-size: 14px;
  26184. }
  26185. .queTop {
  26186. display: flex;
  26187. padding: 20px 0 20px 30px;
  26188. width: 100%;
  26189. flex-direction: row;
  26190. justify-content: flex-start;
  26191. align-items: center;
  26192. box-sizing: border-box;
  26193. }
  26194. .queTopTitle {
  26195. display: flex;
  26196. flex-direction: row;
  26197. flex-wrap: nowrap;
  26198. align-items: center;
  26199. font-weight: bold;
  26200. font-size: 20px;
  26201. color: rgb(14, 30, 51);
  26202. }
  26203. .queTopTitle::before {
  26204. content: "";
  26205. width: 2px;
  26206. height: 22px;
  26207. background: #3681fc;
  26208. border-radius: 3px;
  26209. display: block;
  26210. margin: 2px 6px 0 0;
  26211. }
  26212. .queTopRight {
  26213. display: flex;
  26214. flex-direction: row;
  26215. flex-wrap: nowrap;
  26216. align-items: center;
  26217. }
  26218. .queTopClose {
  26219. margin-right: 20px;
  26220. cursor: pointer;
  26221. position: relative;
  26222. display: flex;
  26223. }
  26224. .closeImg,
  26225. .openImg {
  26226. width: 25px;
  26227. height: 25px;
  26228. position: absolute;
  26229. left: -20px;
  26230. top: -1px;
  26231. }
  26232. .closeImg > img,
  26233. .openImg > img {
  26234. width: 100%;
  26235. height: 100%;
  26236. }
  26237. .question {
  26238. width: 40px;
  26239. margin-right: 10px;
  26240. margin-top: 7px;
  26241. }
  26242. .queTitle {
  26243. margin-left: 5px;
  26244. font-size: 25px;
  26245. display: flex;
  26246. align-items: center;
  26247. }
  26248. .addEditor {
  26249. width: 100px;
  26250. height: 30px;
  26251. background: #42cda6;
  26252. color: #fff;
  26253. border-radius: 5px;
  26254. text-align: center;
  26255. line-height: 30px;
  26256. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26257. cursor: pointer;
  26258. }
  26259. /* .vedioName {
  26260. cursor: pointer;
  26261. margin: 0px 0px 10px 5px;
  26262. white-space: nowrap;
  26263. overflow: hidden;
  26264. text-overflow: ellipsis;
  26265. width: 100%;
  26266. } */
  26267. .vedioTime {
  26268. width: 35px;
  26269. position: absolute;
  26270. color: #fff;
  26271. bottom: 0px;
  26272. right: 0px;
  26273. text-align: center;
  26274. background: #46411f;
  26275. height: 20px;
  26276. font-size: 14px;
  26277. line-height: 20px;
  26278. }
  26279. .homework {
  26280. width: 200px;
  26281. display: flex;
  26282. flex-direction: column;
  26283. flex-wrap: nowrap;
  26284. align-items: center;
  26285. cursor: pointer;
  26286. }
  26287. .homebox {
  26288. display: flex;
  26289. flex-wrap: wrap;
  26290. flex-direction: row;
  26291. justify-content: flex-start;
  26292. align-items: center;
  26293. padding: 15px 0;
  26294. }
  26295. .isChooseActive {
  26296. color: #3681fc !important;
  26297. font-weight: bold !important;
  26298. }
  26299. .chooseWho {
  26300. display: flex;
  26301. width: 100%;
  26302. flex-direction: row;
  26303. flex-wrap: nowrap;
  26304. justify-content: flex-start;
  26305. padding-bottom: 10px;
  26306. }
  26307. .chooseWho > div {
  26308. cursor: pointer;
  26309. padding-bottom: 10px;
  26310. margin: 0 30px 0 0;
  26311. font-weight: 400;
  26312. color: #0e1e33;
  26313. }
  26314. .addPoint > div > img {
  26315. cursor: pointer;
  26316. width: 85px;
  26317. border-radius: 15px;
  26318. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26319. }
  26320. .addPoint > div {
  26321. display: flex;
  26322. flex-direction: column;
  26323. flex-wrap: nowrap;
  26324. align-items: center;
  26325. }
  26326. .isBorder > div {
  26327. margin: 0 0 10px 0;
  26328. align-items: flex-start !important;
  26329. }
  26330. .noiframeBox {
  26331. display: flex;
  26332. flex-wrap: wrap;
  26333. }
  26334. .iframeBox iframe {
  26335. width: 100%;
  26336. height: 800px;
  26337. border: none;
  26338. margin-bottom: 20px;
  26339. border: 1px solid #ccc;
  26340. }
  26341. .upload_toolBtn {
  26342. background: #3681fc;
  26343. color: #fff;
  26344. width: 110px;
  26345. text-align: center;
  26346. height: 35px;
  26347. line-height: 35px;
  26348. font-size: 14px;
  26349. border-radius: 5px;
  26350. cursor: pointer;
  26351. position: absolute;
  26352. right: 10px;
  26353. bottom: 0;
  26354. }
  26355. .binfo_input,
  26356. .pj {
  26357. font: inherit;
  26358. color: currentColor;
  26359. width: 100%;
  26360. margin: 0;
  26361. padding: 15px 14px;
  26362. display: block;
  26363. min-width: 0;
  26364. outline: none;
  26365. box-sizing: content-box;
  26366. background: none;
  26367. -webkit-tap-highlight-color: transparent;
  26368. border: 1px solid rgba(0, 0, 0, 0.23);
  26369. border-radius: 4px;
  26370. box-sizing: border-box;
  26371. resize: none;
  26372. }
  26373. .binfo_input:focus-visible {
  26374. border: 1px solid rgba(61, 103, 188);
  26375. }
  26376. .dialog_diy >>> .el-dialog__header,
  26377. .dialog_diy1 >>> .el-dialog__header {
  26378. background: #454545 !important;
  26379. padding: 15px 20px;
  26380. }
  26381. .dialog_diy >>> .el-dialog__title,
  26382. .dialog_diy1 >>> .el-dialog__title {
  26383. color: #fff;
  26384. }
  26385. .dialog_diy >>> .el-dialog__headerbtn,
  26386. .dialog_diy1 >>> .el-dialog__headerbtn {
  26387. top: 19px;
  26388. }
  26389. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26390. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26391. color: #fff;
  26392. }
  26393. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26394. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26395. color: #fff;
  26396. }
  26397. .dialog_diy1 >>> .el-dialog__body {
  26398. padding: 0;
  26399. }
  26400. .dialog_diy >>> .el-dialog__body,
  26401. .dialog_diy >>> .el-dialog__footer,
  26402. .dialog_diy1 >>> .el-dialog__footer {
  26403. background: #fafafa;
  26404. }
  26405. .markScore_diy >>> .el-dialog {
  26406. border-radius: 10px;
  26407. }
  26408. .markScore_diy >>> .el-dialog__body {
  26409. padding: 0;
  26410. height: 621px;
  26411. min-height: calc(100% - 60px);
  26412. }
  26413. .markScore_diy >>> .el-dialog__header {
  26414. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26415. }
  26416. .markScore_diy >>> .markScore_diyTit {
  26417. width: calc(100% - 60px);
  26418. display: flex;
  26419. justify-content: space-between;
  26420. align-items: center;
  26421. }
  26422. .a_addBox {
  26423. padding: 0 0 0 15px;
  26424. }
  26425. .a_add_box {
  26426. padding: 10px;
  26427. background: #fff;
  26428. margin-bottom: 10px;
  26429. border-radius: 5px;
  26430. box-shadow: 0 0 5px 0 #d5d5d5;
  26431. }
  26432. .a_add_head {
  26433. display: flex;
  26434. align-items: flex-start;
  26435. /* justify-content: space-between; */
  26436. flex-direction: column;
  26437. /* flex-direction: row; */
  26438. margin: 10px 0 20px 0;
  26439. font-size: 18px;
  26440. width: 100%;
  26441. }
  26442. .askIndex {
  26443. background: #3681fc;
  26444. border-radius: 50%;
  26445. color: #fff;
  26446. width: 25px;
  26447. height: 25px;
  26448. min-width: 25px;
  26449. min-height: 25px;
  26450. text-align: center;
  26451. line-height: 25px;
  26452. margin-right: 5px;
  26453. }
  26454. .a_add_head .a_add_head_input {
  26455. width: 300px;
  26456. }
  26457. .a_add_head .a_add_head_div {
  26458. display: flex;
  26459. align-items: center;
  26460. justify-content: space-between;
  26461. }
  26462. .a_add_body {
  26463. display: flex;
  26464. align-items: center;
  26465. }
  26466. .a_add_input {
  26467. display: flex;
  26468. align-items: center;
  26469. flex-wrap: wrap;
  26470. width: 100%;
  26471. }
  26472. .a_add_input >>> .el-radio-group,
  26473. .a_add_input >>> .el-checkbox-group {
  26474. width: 100%;
  26475. }
  26476. .a_add_input >>> .el-radio,
  26477. .a_add_input >>> .el-checkbox {
  26478. display: flex;
  26479. flex-direction: row;
  26480. flex-wrap: nowrap;
  26481. align-items: center;
  26482. padding: 15px 0;
  26483. }
  26484. .a_add_input >>> .el-radio:not(:last-child),
  26485. .a_add_input >>> .el-checkbox:not(:last-child) {
  26486. width: 100%;
  26487. border-bottom: 1px solid #efefef;
  26488. }
  26489. .redioStyle >>> .el-radio__label {
  26490. font-size: 18px;
  26491. }
  26492. .redioStyle >>> .el-radio__label > span,
  26493. .redioStyle >>> .el-checkbox__label > span {
  26494. word-break: break-all;
  26495. white-space: normal;
  26496. }
  26497. .redioStyle >>> .el-checkbox__label {
  26498. font-size: 18px;
  26499. }
  26500. .toolHeng2 {
  26501. width: 100%;
  26502. padding-left: 15px;
  26503. box-sizing: border-box;
  26504. }
  26505. .workNav {
  26506. font-size: 20px;
  26507. font-weight: bold;
  26508. color: #0e1e33;
  26509. display: flex;
  26510. flex-direction: row;
  26511. flex-wrap: nowrap;
  26512. align-items: center;
  26513. padding: 15px 0 15px 0;
  26514. }
  26515. .workNav::before {
  26516. content: "";
  26517. width: 2px;
  26518. height: 22px;
  26519. background: #3681fc;
  26520. border-radius: 3px;
  26521. display: block;
  26522. margin: 2px 6px 0 0;
  26523. }
  26524. .toolHeng {
  26525. display: flex;
  26526. flex-direction: row;
  26527. flex-wrap: wrap;
  26528. justify-content: flex-start;
  26529. align-items: center;
  26530. width: 100%;
  26531. }
  26532. .toolHeng > div {
  26533. padding-left: 20px;
  26534. }
  26535. .isWidth {
  26536. width: 20%;
  26537. }
  26538. .textTitle {
  26539. display: flex;
  26540. flex-direction: row;
  26541. flex-wrap: nowrap;
  26542. align-items: center;
  26543. width: 95%;
  26544. }
  26545. .textTitle >>> .el-form-item__label {
  26546. font-size: 22px;
  26547. color: #918f8f;
  26548. width: 100px;
  26549. }
  26550. .textTitle >>> .el-form-item__content {
  26551. width: calc(100% - 100px);
  26552. }
  26553. .textCss >>> .el-dialog {
  26554. width: 800px !important;
  26555. height: 400px;
  26556. background: #fafafa;
  26557. }
  26558. .textCss >>> .el-dialog__body {
  26559. margin: 55px 8% 0 8%;
  26560. padding: 0 !important;
  26561. }
  26562. .textCss >>> .el-dialog__footer {
  26563. padding-top: 38px;
  26564. }
  26565. .toolsCss >>> .el-dialog__body {
  26566. padding: 20px;
  26567. }
  26568. .lineCss >>> .el-dialog__body {
  26569. display: flex;
  26570. flex-direction: row;
  26571. align-items: center;
  26572. justify-content: center;
  26573. }
  26574. .newNav {
  26575. display: flex;
  26576. flex-direction: row;
  26577. align-items: baseline;
  26578. justify-content: flex-start;
  26579. }
  26580. .navListItem {
  26581. width: calc(100% - 20px);
  26582. height: 50px;
  26583. margin: 0px auto 10px;
  26584. display: flex;
  26585. flex-direction: row;
  26586. flex-wrap: nowrap;
  26587. align-items: center;
  26588. justify-content: space-between;
  26589. background: #f0f4fa;
  26590. border-radius: 6px 6px 6px 6px;
  26591. }
  26592. .navText {
  26593. cursor: pointer;
  26594. white-space: nowrap;
  26595. overflow: hidden;
  26596. text-overflow: ellipsis;
  26597. width: 220px;
  26598. padding: 0 10px;
  26599. font-weight: 400;
  26600. color: #0e1e33;
  26601. }
  26602. .downIcon {
  26603. width: 20px;
  26604. min-width: 20px;
  26605. height: 20px;
  26606. margin-right: 15px;
  26607. cursor: pointer;
  26608. }
  26609. .downIcon > img {
  26610. width: 100%;
  26611. height: 100%;
  26612. }
  26613. .noVedio {
  26614. display: flex;
  26615. flex-direction: row;
  26616. justify-content: center;
  26617. align-content: center;
  26618. }
  26619. .noNavText {
  26620. cursor: pointer;
  26621. margin: 0px 0px 10px 5px;
  26622. width: 112px;
  26623. }
  26624. .listNoVedio {
  26625. margin: 0 0 0 30px;
  26626. width: 97%;
  26627. }
  26628. .video-player >>> .video-js {
  26629. height: 100%;
  26630. }
  26631. .hangVedioList {
  26632. width: 90% !important;
  26633. height: 150px !important;
  26634. margin: 20px 0 0 30px;
  26635. }
  26636. .hangVedio {
  26637. width: 100%;
  26638. height: 170px !important;
  26639. align-items: flex-start !important;
  26640. }
  26641. .hangHand {
  26642. height: 150px !important;
  26643. }
  26644. .twoChild {
  26645. width: 95%;
  26646. margin: 10px;
  26647. border-radius: 5px;
  26648. background: #f2f2f2;
  26649. display: flex;
  26650. flex-direction: column;
  26651. flex-wrap: nowrap;
  26652. justify-content: flex-start;
  26653. align-items: flex-start;
  26654. transition: all 0.5s;
  26655. overflow: hidden;
  26656. height: 0;
  26657. background: #e7f3ff;
  26658. }
  26659. .twoChild > div:nth-child(1) {
  26660. margin-top: 5px;
  26661. }
  26662. .navChild {
  26663. width: 100%;
  26664. cursor: pointer;
  26665. margin-bottom: 10px;
  26666. position: relative;
  26667. }
  26668. .navChild img {
  26669. position: absolute;
  26670. right: 11px;
  26671. width: 15px;
  26672. top: 50%;
  26673. transform: translateY(-50%);
  26674. }
  26675. .navActive,
  26676. .toolActive {
  26677. height: auto !important;
  26678. overflow: auto !important;
  26679. /* padding-bottom: 16px; */
  26680. }
  26681. .toolActive {
  26682. padding: 0;
  26683. }
  26684. .navTask {
  26685. display: flex;
  26686. flex-direction: row;
  26687. flex-wrap: nowrap;
  26688. align-items: center;
  26689. align-content: flex-start;
  26690. height: 40px;
  26691. justify-content: flex-start;
  26692. padding: 0 10px;
  26693. width: 100%;
  26694. box-sizing: border-box;
  26695. }
  26696. .navTaskname {
  26697. white-space: nowrap;
  26698. text-overflow: ellipsis;
  26699. overflow: hidden;
  26700. word-break: break-all;
  26701. padding-left: 5px;
  26702. }
  26703. .openTaskActive {
  26704. /* background-color: #e0eafb !important;
  26705. color: #0061ff; */
  26706. color:#fff;
  26707. background: rgb(55, 129, 252) !important;
  26708. }
  26709. .iframeName {
  26710. margin: 5px 0;
  26711. border-left: 4px solid #41c4a4;
  26712. padding-left: 4px;
  26713. }
  26714. .toolTitle {
  26715. margin: 0px 0px 20px;
  26716. font-size: 20px;
  26717. font-weight: 500;
  26718. border-left: 4px solid #41c4a4;
  26719. padding-left: 4px;
  26720. }
  26721. .cru_selectBox {
  26722. overflow: auto;
  26723. width: 95%;
  26724. margin: 17px auto 0;
  26725. height: calc(100% - 40px - 21px - 20px - 17px);
  26726. background: #fff;
  26727. border-radius: 8px;
  26728. }
  26729. .cru_selectBox::-webkit-scrollbar,
  26730. .study_top::-webkit-scrollbar,
  26731. .textContent::-webkit-scrollbar {
  26732. /*滚动条整体样式*/
  26733. width: 6px;
  26734. /*高宽分别对应横竖滚动条的尺寸*/
  26735. height: 6px;
  26736. }
  26737. /*定义滚动条轨道 内阴影+圆角*/
  26738. .cru_selectBox::-webkit-scrollbar-track,
  26739. .study_top::-webkit-scrollbar-track,
  26740. .textContent::-webkit-scrollbar {
  26741. border-radius: 10px;
  26742. background-color: #b8bdc9;
  26743. }
  26744. /*定义滑块 内阴影+圆角*/
  26745. .cru_selectBox::-webkit-scrollbar-thumb,
  26746. .study_top::-webkit-scrollbar-thumb,
  26747. .textContent::-webkit-scrollbar-thumb {
  26748. border-radius: 10px;
  26749. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26750. background-color: #2c5ab3;
  26751. }
  26752. .vedioBox {
  26753. border-radius: 0 0 20px 20px;
  26754. background: #fff;
  26755. overflow: auto;
  26756. }
  26757. .taskBox {
  26758. width: 98%;
  26759. background: #f0f4fa;
  26760. margin: 10px auto;
  26761. padding: 0 10px;
  26762. border-radius: 4px;
  26763. box-sizing: border-box;
  26764. }
  26765. .vedioTaskBox {
  26766. width: 100%;
  26767. display: flex;
  26768. flex-direction: row;
  26769. flex-wrap: nowrap;
  26770. align-items: flex-start;
  26771. position: relative;
  26772. }
  26773. .toolBox {
  26774. margin: 15px 0 0 25px;
  26775. display: flex;
  26776. position: relative;
  26777. padding: 18px 20px;
  26778. border-top-left-radius: 5px;
  26779. border-top-right-radius: 5px;
  26780. width: 90%;
  26781. }
  26782. .btnAll {
  26783. position: absolute;
  26784. right: 0;
  26785. display: flex;
  26786. flex-direction: row;
  26787. flex-wrap: nowrap;
  26788. align-items: center;
  26789. }
  26790. .btnLeft,
  26791. .btnRight {
  26792. display: flex;
  26793. flex-direction: row;
  26794. flex-wrap: nowrap;
  26795. align-items: center;
  26796. padding: 5px 0;
  26797. }
  26798. .btnLeft {
  26799. border-right: 1px solid #cad1dc;
  26800. }
  26801. .btnLeft > .custom-tooltip {
  26802. background: #3681fc;
  26803. color: #fff;
  26804. }
  26805. .last:hover {
  26806. background: #3383fa !important;
  26807. color: #fff;
  26808. border: 1px solid #3383fa !important;
  26809. }
  26810. .last,
  26811. .returnBtn1 {
  26812. width: 90px;
  26813. height: 36px;
  26814. background: #ffffff;
  26815. border-radius: 4px;
  26816. border: 1px solid #0061ff;
  26817. color: #0061ff;
  26818. cursor: pointer;
  26819. display: flex;
  26820. flex-direction: row;
  26821. flex-wrap: nowrap;
  26822. align-items: center;
  26823. justify-content: center;
  26824. margin-left: 12px;
  26825. }
  26826. .returnBtn1 {
  26827. background: #f0f4fa;
  26828. border-radius: 4px;
  26829. border: 1px solid #cad1dc;
  26830. margin: 0 12px;
  26831. }
  26832. .lastImg {
  26833. min-width: 15px;
  26834. width: 15px;
  26835. height: 15px;
  26836. display: flex;
  26837. }
  26838. .lastText {
  26839. padding: 0 5px 0 5px;
  26840. box-sizing: border-box;
  26841. font-size: 14px;
  26842. }
  26843. .lastImg > img {
  26844. width: 100%;
  26845. height: 100%;
  26846. }
  26847. /* .vedioTimeBox {
  26848. display: flex;
  26849. flex-direction: row;
  26850. align-items: center;
  26851. flex-wrap: nowrap;
  26852. position: relative;
  26853. } */
  26854. .navBox {
  26855. background: #fff;
  26856. height: calc(100% - 40px);
  26857. overflow-y: auto;
  26858. overflow-x: hidden;
  26859. }
  26860. .worksBox {
  26861. margin: 0 0 10px 25px;
  26862. border-bottom: 1px solid #eeeeee;
  26863. padding: 18px 20px;
  26864. border-radius: 4px;
  26865. width: 90%;
  26866. }
  26867. .worksBTitle {
  26868. font-size: 20px;
  26869. padding-bottom: 15px;
  26870. border-bottom: 1px solid #eeeeee;
  26871. display: flex;
  26872. align-items: center;
  26873. }
  26874. .greenBox {
  26875. width: 5px;
  26876. height: 30px;
  26877. background: #63b6fa;
  26878. margin-right: 5px;
  26879. }
  26880. .worksDetailBox {
  26881. display: flex;
  26882. width: 100%;
  26883. flex-direction: row;
  26884. flex-wrap: wrap;
  26885. align-items: flex-end;
  26886. justify-content: flex-start;
  26887. padding: 15px 5px;
  26888. box-sizing: border-box;
  26889. }
  26890. .works {
  26891. display: flex;
  26892. flex-direction: column;
  26893. flex-wrap: nowrap;
  26894. align-items: flex-start;
  26895. justify-content: flex-start;
  26896. align-content: center;
  26897. max-width: 240px;
  26898. width: calc(100% / 3 - 10px);
  26899. height: auto;
  26900. margin-right: 10px;
  26901. margin-bottom: 10px;
  26902. overflow: hidden;
  26903. height: 140px;
  26904. box-shadow: 0 0 6px 1px #dfdada;
  26905. border-radius: 15px;
  26906. }
  26907. .workImg {
  26908. width: 100%;
  26909. /* height: calc(100% - 40px); */
  26910. height: 105px;
  26911. position: relative;
  26912. }
  26913. .workImg > img {
  26914. width: 100%;
  26915. height: 100%;
  26916. object-fit: contain;
  26917. cursor: pointer;
  26918. }
  26919. .worksName {
  26920. height: 40px;
  26921. line-height: 40px;
  26922. display: flex;
  26923. width: 100%;
  26924. flex-direction: row;
  26925. flex-wrap: nowrap;
  26926. justify-content: space-between;
  26927. align-items: center;
  26928. margin: 0 0 0 10px;
  26929. }
  26930. .worksName > div:nth-child(1) {
  26931. width: 110px;
  26932. white-space: nowrap;
  26933. overflow: hidden;
  26934. text-overflow: ellipsis;
  26935. }
  26936. .worksName > div:nth-child(2) {
  26937. color: #b7b4b5;
  26938. }
  26939. .noWorksS {
  26940. padding: 15px 0;
  26941. display: flex;
  26942. flex-direction: row;
  26943. flex-wrap: wrap;
  26944. align-items: center;
  26945. justify-content: flex-start;
  26946. }
  26947. .noWorksName,
  26948. .isWorksName,
  26949. .isWorksName2 {
  26950. background: #ddebf8;
  26951. color: #000;
  26952. width: 90px;
  26953. height: 25px;
  26954. text-align: center;
  26955. line-height: 25px;
  26956. border-radius: 4px;
  26957. margin: 10px 15px 10px 0;
  26958. white-space: nowrap;
  26959. overflow: hidden;
  26960. padding: 5px;
  26961. text-overflow: ellipsis;
  26962. cursor: pointer;
  26963. border: 1px solid #ddebf8;
  26964. }
  26965. .noWorksName {
  26966. background: #fff;
  26967. color: #0061ff;
  26968. border: 1px solid #0061ff;
  26969. }
  26970. .noWorksName > span{
  26971. max-width: 100%;
  26972. display: block;
  26973. overflow: hidden;
  26974. text-overflow: ellipsis;
  26975. white-space: nowrap;
  26976. }
  26977. .isWorksName2 {
  26978. width: 100px;
  26979. height: 40px;
  26980. line-height: 40px;
  26981. position: relative;
  26982. background: #dae6f9;
  26983. }
  26984. .isWorksName {
  26985. background: #e7ebf1 !important;
  26986. width: 100px;
  26987. height: 40px;
  26988. line-height: 40px;
  26989. position: relative;
  26990. color: #acb4bf;
  26991. border: 1px solid #cad1dc !important;
  26992. }
  26993. .isSelectName,
  26994. .noWorksName:hover {
  26995. background: #3383fa !important;
  26996. color: #fff !important;
  26997. border: 1px solid #3383fa !important;
  26998. }
  26999. .title {
  27000. background: #1e5cc9;
  27001. /* width: 98%; */
  27002. height: 45px;
  27003. color: #fff;
  27004. line-height: 45px;
  27005. padding-left: 20px;
  27006. box-sizing: border-box;
  27007. }
  27008. .textBox {
  27009. font-size: 20px;
  27010. width: 90%;
  27011. display: flex;
  27012. flex-direction: column;
  27013. align-items: center;
  27014. margin: 20px auto 0;
  27015. max-height: calc(100% - 75px);
  27016. overflow: auto;
  27017. }
  27018. .textContent {
  27019. font-size: 18px;
  27020. width: 95%;
  27021. max-width: 95%;
  27022. }
  27023. .answerBg {
  27024. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27025. background-size: 100% 100%;
  27026. width: 100%;
  27027. height: 100%;
  27028. color: #fff;
  27029. text-align: center;
  27030. display: flex;
  27031. flex-direction: column;
  27032. flex-wrap: nowrap;
  27033. align-items: center;
  27034. position: relative;
  27035. justify-content: center;
  27036. }
  27037. .answerBg > div:nth-child(1) {
  27038. /* font-size: 22px;
  27039. padding: 25px 0 10px; */
  27040. }
  27041. .answerContent {
  27042. width: 215px;
  27043. max-height: 60px;
  27044. word-break: break-all;
  27045. text-align: center;
  27046. /* white-space: nowrap; */
  27047. overflow: hidden;
  27048. text-overflow: ellipsis;
  27049. /* padding: 23px 0 0; */
  27050. -webkit-line-clamp: 3;
  27051. -webkit-box-orient: vertical;
  27052. display: -webkit-box;
  27053. font-size: 15px;
  27054. cursor: pointer;
  27055. }
  27056. .elist_input_box {
  27057. display: flex;
  27058. align-items: flex-start;
  27059. flex-wrap: nowrap;
  27060. padding: 10px 0 15px 30px;
  27061. flex-direction: column;
  27062. }
  27063. .elist_input {
  27064. /* width: 40%; */
  27065. width: 45%;
  27066. margin: 20px;
  27067. }
  27068. .elist_input .elist_input_box input {
  27069. font: inherit;
  27070. color: currentColor;
  27071. width: 200px;
  27072. padding: 8px 14px;
  27073. display: block;
  27074. min-width: 0;
  27075. outline: none;
  27076. border: 1px solid rgba(0, 0, 0, 0.23);
  27077. border-radius: 4px;
  27078. box-sizing: border-box;
  27079. background: #fff;
  27080. margin: 0 20px 0 0;
  27081. }
  27082. .elist_input .elist_input_box span {
  27083. height: 36px;
  27084. line-height: 36px;
  27085. color: rgb(82, 82, 82);
  27086. }
  27087. .elist_input .elist_input_box .remove {
  27088. height: 20px;
  27089. width: 20px;
  27090. background-size: 100% 100%;
  27091. background-position: unset;
  27092. margin-left: 5px;
  27093. }
  27094. .elist_input_box >>> .el-rate {
  27095. display: flex;
  27096. height: 36px;
  27097. align-items: center;
  27098. }
  27099. .elist_input_box .elist_inptu_text {
  27100. min-height: 50px;
  27101. /* width: 500px;
  27102. max-height: 150px; */
  27103. width: 100%;
  27104. line-height: 50px;
  27105. color: rgb(82, 82, 82);
  27106. overflow: auto;
  27107. text-indent: 5px;
  27108. background: #f7f6f9;
  27109. border-radius: 10px;
  27110. }
  27111. .elist_input_box .elist_inptu_text input {
  27112. width: 500px;
  27113. }
  27114. .elist_input_box >>> .el-rate__icon {
  27115. font-size: 24px;
  27116. }
  27117. .isClick {
  27118. background: #4d9def;
  27119. }
  27120. .bzBox {
  27121. display: flex;
  27122. flex-direction: row;
  27123. align-items: center;
  27124. }
  27125. .bzBox .yCss {
  27126. width: 7px;
  27127. height: 7px;
  27128. background: #fff;
  27129. margin: 0 16px 0 6px;
  27130. border-radius: 50%;
  27131. border: 5px solid #3681fc;
  27132. z-index: 99;
  27133. }
  27134. .bzBox > div:nth-child(2) {
  27135. font-size: 18px;
  27136. font-weight: bold;
  27137. color: #0e1e33;
  27138. }
  27139. .navTitile {
  27140. padding: 0 0px 0 15px;
  27141. font-size: 16px;
  27142. font-weight: bold;
  27143. color: #0e1e33;
  27144. height: 40px;
  27145. line-height: 40px;
  27146. }
  27147. .isTypeOne {
  27148. width: 240px;
  27149. height: 170px;
  27150. /* border: 1px solid #f8f8f8; */
  27151. border-radius: 10px;
  27152. box-shadow: 0 0 6px 1px #dfdada;
  27153. }
  27154. .e_add_top {
  27155. display: flex;
  27156. justify-content: space-between;
  27157. padding: 10px 20px;
  27158. border-radius: 3px;
  27159. background: #fff;
  27160. }
  27161. .e_add_title2 {
  27162. display: flex;
  27163. align-items: center;
  27164. }
  27165. .e_add_title2 span {
  27166. width: 40px;
  27167. }
  27168. .e_add_title {
  27169. display: flex;
  27170. align-items: center;
  27171. color: #b8b8b8;
  27172. font-size: 18px;
  27173. position: relative;
  27174. height: 40px;
  27175. }
  27176. .e_add_title span {
  27177. margin-right: 10px;
  27178. }
  27179. .e_add_title .el_input {
  27180. width: 300px;
  27181. }
  27182. .e_add_title >>> .el-input__inner {
  27183. width: 400px;
  27184. }
  27185. .e_add_btn {
  27186. }
  27187. .e_add_content {
  27188. display: flex;
  27189. width: 100%;
  27190. max-width: 650px;
  27191. height: 550px;
  27192. }
  27193. .e_add_list {
  27194. background: #fff;
  27195. height: 500px;
  27196. width: 210px;
  27197. position: relative;
  27198. margin: 15px 5px 0 0;
  27199. flex-shrink: 0;
  27200. display: flex;
  27201. flex-direction: column;
  27202. }
  27203. .e_add_list_title {
  27204. font-size: 20px;
  27205. width: 100%;
  27206. box-sizing: border-box;
  27207. padding: 15px 40px;
  27208. text-align: center;
  27209. border-bottom: 1px solid #eaeaea;
  27210. position: relative;
  27211. display: flex;
  27212. align-items: center;
  27213. justify-content: center;
  27214. height: 57px;
  27215. background: #f6f6f6;
  27216. }
  27217. .e_add_list_title span {
  27218. overflow: hidden;
  27219. white-space: nowrap;
  27220. text-overflow: ellipsis;
  27221. }
  27222. .e_add_list_title img {
  27223. position: absolute;
  27224. right: 15px;
  27225. width: 25px;
  27226. cursor: pointer;
  27227. top: 50%;
  27228. transform: translateY(-50%);
  27229. }
  27230. .e_add_list_body {
  27231. height: calc(100% - 187px);
  27232. overflow: auto;
  27233. }
  27234. .e_add_list_child {
  27235. width: 100%;
  27236. display: flex;
  27237. align-items: center;
  27238. justify-content: center;
  27239. position: relative;
  27240. box-sizing: border-box;
  27241. padding: 15px 40px;
  27242. text-align: center;
  27243. }
  27244. .e_add_list_child span {
  27245. overflow: hidden;
  27246. white-space: nowrap;
  27247. text-overflow: ellipsis;
  27248. cursor: pointer;
  27249. }
  27250. .e_add_list_child img {
  27251. position: absolute;
  27252. right: 10px;
  27253. width: 21px;
  27254. cursor: pointer;
  27255. top: 50%;
  27256. transform: translateY(-50%);
  27257. }
  27258. .e_add_list_child + .e_add_list_child {
  27259. border-top: 1px solid #eaeaea;
  27260. }
  27261. .e_add_list_child .active {
  27262. color: #409eff;
  27263. }
  27264. .e_add_list_btn {
  27265. position: absolute;
  27266. bottom: 0;
  27267. height: 50px;
  27268. background: rgb(120, 120, 254);
  27269. width: 100%;
  27270. color: #fff;
  27271. font-size: 16px;
  27272. text-align: center;
  27273. line-height: 50px;
  27274. cursor: pointer;
  27275. }
  27276. .e_add_list_detail {
  27277. position: absolute;
  27278. bottom: 0;
  27279. height: 130px;
  27280. background: rgb(120, 120, 254);
  27281. width: 100%;
  27282. color: #fff;
  27283. font-size: 16px;
  27284. display: flex;
  27285. align-items: center;
  27286. justify-content: center;
  27287. }
  27288. .e_add_list_detail textarea {
  27289. height: 90%;
  27290. width: 95%;
  27291. border: none;
  27292. resize: none;
  27293. outline: none;
  27294. padding: 5px;
  27295. box-sizing: border-box;
  27296. }
  27297. .e_add_list_pbox {
  27298. width: 100%;
  27299. max-width: 650px;
  27300. /* height: 600px; */
  27301. }
  27302. .e_add_list_pbox_title {
  27303. height: 50px;
  27304. background: #fff;
  27305. display: flex;
  27306. align-items: center;
  27307. width: 100%;
  27308. box-sizing: border-box;
  27309. padding: 0 20px;
  27310. }
  27311. .type_title {
  27312. font-size: 18px;
  27313. font-weight: 700;
  27314. }
  27315. .type_content {
  27316. font-size: 16px;
  27317. /* margin-left: 30px; */
  27318. }
  27319. .type_content span + span {
  27320. margin-left: 20px;
  27321. }
  27322. .type_content span {
  27323. cursor: pointer;
  27324. padding-bottom: 5px;
  27325. box-sizing: border-box;
  27326. }
  27327. .type_content .active {
  27328. color: #409eff;
  27329. border-bottom: 2px solid #409eff;
  27330. }
  27331. .e_add_list_pbox_content {
  27332. height: calc(100% - 50px);
  27333. display: flex;
  27334. align-items: center;
  27335. width: 100%;
  27336. background: #fff;
  27337. }
  27338. .evaCss {
  27339. display: flex;
  27340. flex-direction: row;
  27341. flex-wrap: nowrap;
  27342. align-items: flex-start;
  27343. padding: 0 0 20px;
  27344. }
  27345. .cru_line {
  27346. position: absolute;
  27347. bottom: 0px;
  27348. transition: all 0.5s;
  27349. left: 0px;
  27350. width: 125px;
  27351. margin-left: -25px;
  27352. }
  27353. .isNoMessage {
  27354. width: 20%;
  27355. margin: 25% auto 0;
  27356. }
  27357. .isNoMessage > img {
  27358. width: 100%;
  27359. height: 100%;
  27360. }
  27361. .fullStyle >>> .el-dialog__body {
  27362. height: 100% !important;
  27363. }
  27364. .fullStyle >>> .el-dialog,
  27365. .fullStyle {
  27366. width: 100% !important;
  27367. max-width: 100% !important;
  27368. height: 100% !important;
  27369. margin: 0 !important;
  27370. }
  27371. .full_diy >>> .el-dialog {
  27372. margin: 0 !important;
  27373. height: 100%;
  27374. padding: 4px;
  27375. }
  27376. .full_diy >>> .el-dialog__body {
  27377. height: calc(100% - 100px);
  27378. }
  27379. .full_diy2 >>> .el-dialog__body {
  27380. height: calc(100% - 50px);
  27381. padding: 0;
  27382. }
  27383. .switchCss {
  27384. /* width: 100%; */
  27385. display: flex;
  27386. flex-direction: row;
  27387. flex-wrap: nowrap;
  27388. align-items: center;
  27389. /* justify-content: center; */
  27390. }
  27391. .isClickNav {
  27392. /* color: #499eef; */
  27393. color: #000;
  27394. }
  27395. .commentImg {
  27396. width: 25px;
  27397. height: 25px;
  27398. cursor: pointer;
  27399. }
  27400. .commentImg > img {
  27401. width: 100%;
  27402. height: 100%;
  27403. }
  27404. .comment {
  27405. background: #f9f9f9;
  27406. border-radius: 0 0 4px 4px;
  27407. display: flex;
  27408. flex-direction: row;
  27409. flex-wrap: nowrap;
  27410. align-items: center;
  27411. justify-content: flex-end;
  27412. height: 35px;
  27413. }
  27414. .commentList {
  27415. display: flex;
  27416. flex-direction: row;
  27417. flex-wrap: nowrap;
  27418. align-items: center;
  27419. justify-content: center;
  27420. align-content: center;
  27421. /* margin-left: 15px; */
  27422. /* margin-left: 8px; */
  27423. }
  27424. .scoreImg {
  27425. width: 17px;
  27426. height: 17px;
  27427. }
  27428. .studentDetail {
  27429. display: flex;
  27430. flex-direction: row;
  27431. flex-wrap: nowrap;
  27432. /* align-items: center; */
  27433. align-items: flex-start;
  27434. }
  27435. .tx {
  27436. width: 50px;
  27437. }
  27438. .tx > img {
  27439. width: 100%;
  27440. height: 100%;
  27441. }
  27442. .nameAndTime {
  27443. display: flex;
  27444. flex-direction: column;
  27445. flex-wrap: nowrap;
  27446. align-items: flex-start;
  27447. margin-left: 10px;
  27448. }
  27449. .worksAnswer {
  27450. color: #4078dd;
  27451. margin: 10px 0;
  27452. font-size: 16px;
  27453. position: relative;
  27454. }
  27455. .worksAnswer > img {
  27456. width: 500px;
  27457. height: 300px;
  27458. object-fit: contain;
  27459. margin: 0 auto;
  27460. display: block;
  27461. }
  27462. .commentTop {
  27463. border-bottom: 1px solid #eaeaea;
  27464. padding-bottom: 10px;
  27465. }
  27466. .commentBox {
  27467. padding-top: 15px;
  27468. }
  27469. .pl {
  27470. font-size: 18px;
  27471. }
  27472. .plPerson {
  27473. width: 100%;
  27474. }
  27475. .plName {
  27476. display: flex;
  27477. flex-direction: row;
  27478. flex-wrap: nowrap;
  27479. align-items: baseline;
  27480. color: #78787a;
  27481. width: 100%;
  27482. }
  27483. .deleteComment {
  27484. cursor: pointer;
  27485. margin-left: auto;
  27486. color: #237ade;
  27487. }
  27488. .plContent {
  27489. margin-top: 5px;
  27490. }
  27491. .evalCss {
  27492. background: #fff;
  27493. font-size: 18px;
  27494. }
  27495. .nav {
  27496. color: #9d9d9d;
  27497. padding: 5px 0 15px 20px;
  27498. }
  27499. .middleBox {
  27500. padding: 5px 0 15px 20px;
  27501. }
  27502. .pfBox {
  27503. padding-bottom: 30px;
  27504. }
  27505. .nameAndrate {
  27506. display: flex;
  27507. flex-direction: row;
  27508. flex-wrap: nowrap;
  27509. align-items: center;
  27510. padding-bottom: 10px;
  27511. height: 30px;
  27512. line-height: 30px;
  27513. }
  27514. .nameAndrate > div {
  27515. margin-left: 10px;
  27516. color: #000;
  27517. height: 30px;
  27518. }
  27519. .nameAndrate >>> .el-rate__icon {
  27520. font-size: 28px !important;
  27521. }
  27522. .pfBox > div:nth-child(2) {
  27523. background: #f7f6f9;
  27524. width: 400px;
  27525. min-height: 45px;
  27526. border-radius: 10px;
  27527. font-size: 16px;
  27528. display: flex;
  27529. flex-wrap: wrap;
  27530. align-items: center;
  27531. padding: 10px 20px;
  27532. box-sizing: border-box;
  27533. color: #000;
  27534. }
  27535. .bz {
  27536. display: flex;
  27537. flex-direction: row;
  27538. flex-wrap: nowrap;
  27539. align-items: flex-start;
  27540. }
  27541. .bz > div {
  27542. padding: 0 10px;
  27543. }
  27544. .select_box2_title {
  27545. background: #fff;
  27546. border-radius: 5px;
  27547. padding: 15px 10px;
  27548. box-sizing: border-box;
  27549. margin-bottom: 10px;
  27550. display: flex;
  27551. flex-direction: row;
  27552. flex-wrap: nowrap;
  27553. align-items: center;
  27554. }
  27555. .select_box2_title > div:nth-child(2) {
  27556. margin-left: 10px;
  27557. color: #c4c4c4;
  27558. }
  27559. .select_box2_box {
  27560. display: flex;
  27561. height: 500px;
  27562. }
  27563. .select_box2_img {
  27564. width: calc(100% - 310px);
  27565. height: 100%;
  27566. overflow: auto;
  27567. background: #fff;
  27568. border-radius: 5px;
  27569. }
  27570. .select_box2_img img {
  27571. width: 100%;
  27572. }
  27573. .select_box2_answer {
  27574. background: #fff;
  27575. margin-left: 10px;
  27576. border-radius: 5px;
  27577. width: 300px;
  27578. overflow: auto;
  27579. height: 90%;
  27580. display: flex;
  27581. flex-direction: column;
  27582. align-items: flex-start;
  27583. padding-top: 10px;
  27584. box-sizing: border-box;
  27585. position: relative;
  27586. }
  27587. .select_answer_title {
  27588. padding: 0 0 15px 20px;
  27589. color: #c4c4c4;
  27590. }
  27591. .select_box2_answer_box {
  27592. margin: 0 0 10px 20px;
  27593. width: 85%;
  27594. display: flex;
  27595. flex-direction: row;
  27596. flex-wrap: nowrap;
  27597. align-items: center;
  27598. }
  27599. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27600. color: #000;
  27601. }
  27602. .upAnswerCss {
  27603. position: absolute;
  27604. bottom: 15px;
  27605. right: 15px;
  27606. }
  27607. .upAnswerCss >>> .el-button {
  27608. width: 95px;
  27609. height: 35px;
  27610. line-height: 35px;
  27611. padding: 0;
  27612. }
  27613. .rightWidthCss {
  27614. width: 60%;
  27615. display: flex;
  27616. flex-direction: row;
  27617. align-items: flex-start;
  27618. }
  27619. .rightAnswer {
  27620. display: flex;
  27621. flex-direction: row;
  27622. flex-wrap: nowrap;
  27623. align-items: center;
  27624. color: red;
  27625. margin-bottom: 31px;
  27626. }
  27627. .rightAnswerCss {
  27628. display: flex;
  27629. flex-direction: column;
  27630. flex-wrap: nowrap;
  27631. padding-top: 60px;
  27632. }
  27633. .blueCss {
  27634. color: #767de1;
  27635. margin-left: 10px;
  27636. }
  27637. .redCss {
  27638. color: red;
  27639. }
  27640. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27641. color: rgb(0 123 255) !important;
  27642. }
  27643. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27644. color: rgb(0 123 255) !important;
  27645. }
  27646. .zuoyeYulan {
  27647. padding-top: 0;
  27648. font-size: 18px;
  27649. display: flex;
  27650. align-items: flex-end;
  27651. }
  27652. .buttonA {
  27653. margin-left: 10px;
  27654. padding: 0;
  27655. }
  27656. .displayBox {
  27657. margin-bottom: 10px;
  27658. display: block;
  27659. border-bottom: 3px solid #eee;
  27660. display: flex;
  27661. align-items: center;
  27662. }
  27663. .easy_comment {
  27664. width: calc(100% - 90px);
  27665. margin-left: 10px;
  27666. display: flex;
  27667. flex-wrap: wrap;
  27668. }
  27669. .easy_comment > div {
  27670. border: 1px solid #4a4a4a;
  27671. color: #666;
  27672. border-radius: 15px;
  27673. padding: 5px 10px;
  27674. font-size: 16px;
  27675. margin-bottom: 10px;
  27676. margin-right: 5px;
  27677. cursor: pointer;
  27678. }
  27679. .easy_comment div:hover {
  27680. border: 1px solid #f7ba2a;
  27681. color: #c69217;
  27682. }
  27683. .xuan_right_box {
  27684. padding: 10px 0;
  27685. background: #f0f4fa;
  27686. margin: 0 15px 0 25px;
  27687. border-bottom-left-radius: 5px;
  27688. border-bottom-right-radius: 5px;
  27689. width: 91.5%;
  27690. }
  27691. .tool_right_box {
  27692. display: flex;
  27693. align-items: center;
  27694. }
  27695. .tool_right_box >>> .katex {
  27696. font-size: 16px;
  27697. }
  27698. .tool_right_box + .tool_right_box {
  27699. margin-top: 10px;
  27700. }
  27701. .right_box_xuan {
  27702. border-radius: 5px;
  27703. padding: 5px;
  27704. margin-left: 10px;
  27705. min-width: 85px;
  27706. background: #fff;
  27707. color: #0061ff;
  27708. border: 1px solid #0061ff;
  27709. font-size: 14px;
  27710. }
  27711. .pButton:hover {
  27712. opacity: 1 !important;
  27713. }
  27714. .pButton {
  27715. position: fixed;
  27716. text-align: center;
  27717. cursor: pointer;
  27718. z-index: 999;
  27719. right: 20px;
  27720. top: 110px;
  27721. width: 50px;
  27722. height: 50px;
  27723. display: flex;
  27724. align-items: center;
  27725. justify-content: center;
  27726. border-radius: 5px;
  27727. }
  27728. .pzClass {
  27729. width: calc(100% - 340px);
  27730. }
  27731. .newDialogCss {
  27732. /* position: fixed;
  27733. right: 5%;
  27734. top: 50%;
  27735. width: 340px;
  27736. transform: translateY(-50%);
  27737. height: 60%;
  27738. box-shadow: 0px 0 8px 0px #555555;
  27739. border-radius: 15px;
  27740. z-index: 999; */
  27741. position: fixed;
  27742. right: 20px;
  27743. top: 101px;
  27744. width: 330px;
  27745. height: calc(100% - 80px);
  27746. z-index: 999;
  27747. background: #fff;
  27748. border-top-right-radius: 0px;
  27749. border-bottom-right-radius: 0px;
  27750. overflow: hidden;
  27751. }
  27752. .newDialogCss>.scoreList{
  27753. width:100%;
  27754. height:100%;
  27755. box-sizing:border-box;
  27756. padding:10px 15px;
  27757. overflow:auto;
  27758. padding-bottom:80px;
  27759. }
  27760. .pzTop {
  27761. color: #fff;
  27762. background: #000;
  27763. display: flex;
  27764. flex-direction: row;
  27765. flex-wrap: nowrap;
  27766. align-items: center;
  27767. justify-content: space-between;
  27768. height: 40px;
  27769. border-radius: 15px 15px 0 0;
  27770. user-select: none;
  27771. }
  27772. .pzTop2 .checkbox {
  27773. display: flex;
  27774. align-items: center;
  27775. padding: 5px 10px;
  27776. flex: 0 0 auto;
  27777. font-weight: bold;
  27778. border-bottom: 1px solid #eee;
  27779. justify-content: space-between;
  27780. }
  27781. .checkbox>.cb-tabList{
  27782. display:flex;
  27783. align-items:center;
  27784. }
  27785. .cb-tabList>div{
  27786. margin-right:20px;
  27787. font-weight:400;
  27788. cursor:pointer;
  27789. }
  27790. .cb-tabList>.cb-tabItem{
  27791. color:#1684FC;
  27792. position:relative;
  27793. }
  27794. .cb-tabItem::after{
  27795. content:"";
  27796. width:100%;
  27797. height:2px;
  27798. background:#1684FC;
  27799. position:absolute;
  27800. bottom:-5px;
  27801. left:0
  27802. }
  27803. .pzTop2 .check {
  27804. text-align: center;
  27805. cursor: pointer;
  27806. box-sizing: border-box;
  27807. display: flex;
  27808. }
  27809. .pzTop2 img {
  27810. width: 25px;
  27811. cursor: pointer;
  27812. }
  27813. .pzTop > div:nth-child(1) {
  27814. padding-left: 10px;
  27815. }
  27816. .pzTop > div:nth-child(2) {
  27817. width: 15px;
  27818. height: 15px;
  27819. padding-right: 10px;
  27820. cursor: pointer;
  27821. }
  27822. .pzTop > div:nth-child(2) > img {
  27823. width: 100%;
  27824. height: 100%;
  27825. }
  27826. .pzBox,
  27827. .noPzBox {
  27828. height: calc(100% - 60px);
  27829. /* background: #ededed; */
  27830. background: #fff;
  27831. /* border-radius: 0 0 15px 15px; */
  27832. }
  27833. .noPzBox {
  27834. display: flex;
  27835. flex-direction: column;
  27836. flex-wrap: nowrap;
  27837. justify-content: center;
  27838. align-items: center;
  27839. }
  27840. .pzList {
  27841. background: #f7f7f7;
  27842. width: 90%;
  27843. margin: 0 auto 15px;
  27844. border-radius: 5px;
  27845. }
  27846. .pzNavTop {
  27847. display: flex;
  27848. flex-direction: row;
  27849. flex-wrap: nowrap;
  27850. padding: 10px 10px 0 10px;
  27851. align-items: center;
  27852. }
  27853. .pzDelete {
  27854. cursor: pointer;
  27855. margin-left: auto;
  27856. font-size: 14px;
  27857. color: #afafaf;
  27858. }
  27859. .pzNavTop > div:nth-child(1) {
  27860. background: #3760af;
  27861. width: 35px;
  27862. height: 35px;
  27863. color: #fff;
  27864. text-align: center;
  27865. line-height: 35px;
  27866. border-radius: 50%;
  27867. font-size: 14px;
  27868. }
  27869. .pzNavTop > div:nth-child(2) {
  27870. font-size: 18px;
  27871. color: #959595;
  27872. margin-left: 5px;
  27873. }
  27874. .pzContent {
  27875. padding: 10px;
  27876. word-break: break-word;
  27877. }
  27878. .pzContent audio {
  27879. width: 100%;
  27880. }
  27881. .pzContent audio::-webkit-media-controls-panel {
  27882. background: #fff;
  27883. }
  27884. .pzContent >>> img {
  27885. max-width: 100%;
  27886. }
  27887. .pzListBox {
  27888. padding-top: 15px;
  27889. height: calc(100% - 110px);
  27890. overflow: auto;
  27891. }
  27892. .addPzButton {
  27893. position: relative;
  27894. margin-top: 3px;
  27895. width: 100%;
  27896. }
  27897. .addPzButton .img1 {
  27898. position: absolute;
  27899. top: 50%;
  27900. right: 25px;
  27901. transform: translateY(-50%);
  27902. height: 100%;
  27903. display: flex;
  27904. align-items: center;
  27905. }
  27906. .addPzButton .img1 div {
  27907. display: flex;
  27908. }
  27909. .addPzButton .img1 div img {
  27910. width: 28px;
  27911. margin-left: 10px;
  27912. cursor: pointer;
  27913. }
  27914. .addPzButton .img1 div span {
  27915. font-size: 14px;
  27916. margin: 4px 0 0 3px;
  27917. color: #afafaf;
  27918. }
  27919. .addPz {
  27920. background: #4b79ce;
  27921. width: 100px;
  27922. color: #fff;
  27923. font-size: 12px;
  27924. height: 30px;
  27925. margin: 0 auto;
  27926. text-align: center;
  27927. line-height: 30px;
  27928. border-radius: 10px;
  27929. cursor: pointer;
  27930. }
  27931. .addDialogCss {
  27932. position: fixed;
  27933. width: 600px;
  27934. height: 70%;
  27935. min-height: 450px;
  27936. box-shadow: 0px 0 8px 0px #555555;
  27937. border-radius: 15px;
  27938. z-index: 999;
  27939. left: 50%;
  27940. top: 50%;
  27941. margin: -18% 0 0 -300px;
  27942. }
  27943. .teacherPz {
  27944. display: flex;
  27945. flex-direction: row;
  27946. align-items: center;
  27947. flex-wrap: nowrap;
  27948. }
  27949. .teacherPzImg {
  27950. width: 30px;
  27951. height: 30px;
  27952. }
  27953. .teacherPzImg > img {
  27954. width: 100%;
  27955. height: 100%;
  27956. }
  27957. .addPzBox {
  27958. height: calc(100% - 40px);
  27959. background: #ededed;
  27960. border-bottom-left-radius: 15px;
  27961. border-bottom-right-radius: 15px;
  27962. }
  27963. .pzAudioClass {
  27964. margin: 15px 14px;
  27965. background: #fff;
  27966. height: 100%;
  27967. display: flex;
  27968. justify-content: center;
  27969. align-items: center;
  27970. }
  27971. .pzConText {
  27972. width: 95%;
  27973. height: 100%;
  27974. margin: 10px auto 0;
  27975. border: none;
  27976. background: #fff;
  27977. border-radius: 0px;
  27978. }
  27979. .pzConText >>> .text {
  27980. height: calc(100% - 82px);
  27981. }
  27982. .addTextCss {
  27983. background: #4b79ce;
  27984. width: 80px;
  27985. height: 30px;
  27986. text-align: center;
  27987. color: #fff;
  27988. line-height: 30px;
  27989. border-radius: 10px;
  27990. margin: 10px auto 0;
  27991. cursor: pointer;
  27992. }
  27993. .pzConText:focus-visible {
  27994. border: none !important;
  27995. }
  27996. .maxWidth {
  27997. width: 1000px;
  27998. }
  27999. .noPz {
  28000. width: 150px;
  28001. margin: 0 auto 20%;
  28002. }
  28003. .noPz > img {
  28004. width: 100%;
  28005. height: 100%;
  28006. }
  28007. .timeAndReply {
  28008. display: flex;
  28009. flex-direction: row;
  28010. flex-wrap: nowrap;
  28011. justify-content: space-between;
  28012. align-items: center;
  28013. font-size: 14px;
  28014. box-sizing: border-box;
  28015. padding: 0 10px 10px 0px;
  28016. }
  28017. .timeAndReply .time {
  28018. color: #bfbfbf;
  28019. padding: 0 0 0 10px;
  28020. box-sizing: border-box;
  28021. }
  28022. .timeAndReply > div:last-child {
  28023. cursor: pointer;
  28024. color: #777;
  28025. }
  28026. /* table 样式 */
  28027. .cont >>> table {
  28028. border-top: 1px solid #ccc;
  28029. border-left: 1px solid #ccc;
  28030. }
  28031. .cont >>> table td,
  28032. .cont >>> table th {
  28033. border-bottom: 1px solid #ccc;
  28034. border-right: 1px solid #ccc;
  28035. /* padding: 20px 5px; */
  28036. padding: 5px 10px;
  28037. max-width: 0px;
  28038. height: 30px;
  28039. vertical-align: baseline;
  28040. box-sizing: border-box;
  28041. }
  28042. .cont >>> table th {
  28043. border-bottom: 2px solid #ccc;
  28044. text-align: center;
  28045. }
  28046. /* blockquote 样式 */
  28047. .cont >>> blockquote {
  28048. display: block;
  28049. border-left: 8px solid #d0e5f2;
  28050. padding: 5px 10px;
  28051. margin: 10px 0;
  28052. line-height: 1.4;
  28053. font-size: 100%;
  28054. background-color: #f1f1f1;
  28055. }
  28056. /* code 样式 */
  28057. .cont >>> code {
  28058. display: inline-block;
  28059. /* *display: inline; */
  28060. zoom: 1;
  28061. background-color: #f1f1f1;
  28062. border-radius: 3px;
  28063. padding: 3px 5px;
  28064. margin: 0 3px;
  28065. }
  28066. .cont >>> pre code {
  28067. display: block;
  28068. }
  28069. /* ul ol 样式 */
  28070. .cont >>> ul,
  28071. ol {
  28072. margin: 10px 0 10px 20px;
  28073. }
  28074. .addPzCheck {
  28075. display: flex;
  28076. flex-direction: row;
  28077. flex-wrap: nowrap;
  28078. padding: 10px 15px 0;
  28079. }
  28080. .addPzCheck span {
  28081. cursor: pointer;
  28082. padding-bottom: 5px;
  28083. font-weight: bold;
  28084. }
  28085. .addPzCheck span + span {
  28086. margin-left: 10px;
  28087. }
  28088. .addPzCheck .isChooseActive {
  28089. color: #3e88f4;
  28090. border-bottom: 2px solid #2f80f3;
  28091. }
  28092. /* code 样式 */
  28093. .cont {
  28094. /* -webkit-user-modify: read-write; */
  28095. overflow-wrap: break-word;
  28096. -webkit-line-break: after-white-space;
  28097. word-break: break-word;
  28098. white-space: pre-line;
  28099. }
  28100. .scoreBox,
  28101. .scoreDetailBox {
  28102. display: flex;
  28103. align-items: center;
  28104. justify-content: flex-start;
  28105. margin-top: 20px;
  28106. font-size: 18px;
  28107. width: 100%;
  28108. }
  28109. .scoreBox .t,
  28110. .scoreDetailBox .t {
  28111. margin-right: 10px;
  28112. width: 100px;
  28113. text-align: right;
  28114. }
  28115. .scoreDetailBox {
  28116. align-items: flex-start;
  28117. }
  28118. .scoreDetailBox >>> .el-textarea {
  28119. width: calc(100% - 200px);
  28120. }
  28121. .scoreBox >>> .el-input {
  28122. width: 130px;
  28123. font-size: 38px;
  28124. }
  28125. .scoreBox >>> .el-input__inner {
  28126. height: 60px;
  28127. }
  28128. .answerScore {
  28129. position: absolute;
  28130. top: 10px;
  28131. right: 10px;
  28132. background: #0000008f;
  28133. border-radius: 5px;
  28134. padding: 3px 5px;
  28135. font-size: 14px;
  28136. color: #fff;
  28137. cursor: pointer;
  28138. }
  28139. .open_box .switch_box {
  28140. width: 100%;
  28141. margin: 0 auto;
  28142. display: flex;
  28143. justify-content: space-between;
  28144. }
  28145. .open_box .switch_box + .switch_box {
  28146. margin-top: 10px;
  28147. }
  28148. .deleteImg,.deleteImg1 {
  28149. width: 25px !important;
  28150. height: 25px !important;
  28151. cursor: pointer;
  28152. position: absolute;
  28153. top: 10px;
  28154. right: 10px;
  28155. }
  28156. .deleteImg2 {
  28157. width: 23px !important;
  28158. height: 23px !important;
  28159. top: 5px;
  28160. right: 5px;
  28161. }
  28162. .deleteImg1{
  28163. width: 23px !important;
  28164. height: 23px !important;
  28165. top: 5px !important;
  28166. right: 30px !important;
  28167. }
  28168. .rightW {
  28169. right: 40px;
  28170. }
  28171. .drawPBox {
  28172. display: flex;
  28173. flex-direction: column;
  28174. position: relative;
  28175. }
  28176. .drawPBox span {
  28177. font-size: 18px;
  28178. color: #606266;
  28179. padding-bottom: 10px;
  28180. margin: 10px 0;
  28181. border-bottom: 1px solid #eaeaea;
  28182. }
  28183. .drawPBox img {
  28184. width: 500px;
  28185. height: 300px;
  28186. object-fit: contain;
  28187. cursor: pointer;
  28188. margin: 0 auto;
  28189. }
  28190. .sentenBox {
  28191. background: #fff;
  28192. height: 450px;
  28193. overflow: auto;
  28194. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28195. background-position: 102%;
  28196. background-repeat: no-repeat;
  28197. background-size: 60%;
  28198. }
  28199. .addSen {
  28200. background: #409efe;
  28201. width: 90px;
  28202. color: #fff;
  28203. height: 35px;
  28204. text-align: center;
  28205. line-height: 35px;
  28206. border-radius: 5px;
  28207. float: right;
  28208. margin: 10px 20px 0 0;
  28209. cursor: pointer;
  28210. }
  28211. .sentenTop {
  28212. display: flex;
  28213. flex-direction: row;
  28214. flex-wrap: nowrap;
  28215. align-items: center;
  28216. padding: 55px 0 0 20px;
  28217. box-sizing: border-box;
  28218. }
  28219. .sentenTop > div:nth-child(2) {
  28220. width: 300px;
  28221. margin: 0 15px;
  28222. }
  28223. .sentenTop > div:nth-child(3) {
  28224. background: #409efe;
  28225. color: #fff;
  28226. width: 65px;
  28227. height: 35px;
  28228. text-align: center;
  28229. line-height: 35px;
  28230. border-radius: 5px;
  28231. cursor: pointer;
  28232. }
  28233. .cardList,
  28234. .cardList1 {
  28235. padding: 10px 0 10px 0;
  28236. display: flex;
  28237. flex-direction: row;
  28238. flex-wrap: wrap;
  28239. align-items: center;
  28240. box-sizing: border-box;
  28241. border-bottom: 1px solid #f4f4f4;
  28242. width: 98%;
  28243. margin: 0 auto;
  28244. min-width: 60%;
  28245. max-width: 85%;
  28246. }
  28247. .cardList1 {
  28248. padding: 10px 0 10px 10px !important;
  28249. margin: 0 !important;
  28250. }
  28251. .cardBox {
  28252. display: flex;
  28253. flex-direction: row;
  28254. flex-wrap: wrap;
  28255. align-items: center;
  28256. align-content: center;
  28257. }
  28258. .cardBox > div {
  28259. margin-bottom: 10px;
  28260. }
  28261. .isCard,
  28262. .isChooseCard,
  28263. .noCard,
  28264. .isCard1 {
  28265. min-width: 130px;
  28266. width: auto;
  28267. height: 60px;
  28268. text-align: center;
  28269. line-height: 60px;
  28270. font-size: 20px;
  28271. cursor: pointer;
  28272. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28273. background-size: cover;
  28274. transition: all 2s;
  28275. margin-right: 20px;
  28276. background-size: 100% 100%;
  28277. padding: 0 20px;
  28278. box-sizing: border-box;
  28279. }
  28280. .isCard > div,
  28281. .noCard > div,
  28282. .isCard1 > div {
  28283. white-space: nowrap;
  28284. overflow: hidden;
  28285. text-overflow: ellipsis;
  28286. width: 100%;
  28287. margin: 0 auto;
  28288. }
  28289. .noCard {
  28290. background-image: none;
  28291. }
  28292. .isCard1 {
  28293. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28294. }
  28295. .isChooseCard {
  28296. background-image: none;
  28297. border: 1px dashed #b9b9b9;
  28298. border-radius: 10px;
  28299. }
  28300. .card {
  28301. width: 130px;
  28302. height: 60px;
  28303. }
  28304. .card > img {
  28305. width: 100%;
  28306. height: 100%;
  28307. }
  28308. .rightCardBox {
  28309. margin: 10px 0 0 10px;
  28310. }
  28311. .rightCardBox > div:nth-child(1) {
  28312. margin-bottom: 10px;
  28313. }
  28314. .cardCss {
  28315. display: flex;
  28316. flex-direction: column;
  28317. flex-wrap: nowrap;
  28318. align-items: center;
  28319. border-bottom: 3px solid #b4c3d3;
  28320. padding: 0 0 5px 0;
  28321. margin-right: 10px;
  28322. }
  28323. .cardCss > div:nth-child(2) {
  28324. background: #5b7b9d;
  28325. color: #fff;
  28326. width: 20px;
  28327. height: 20px;
  28328. border-radius: 50%;
  28329. text-align: center;
  28330. line-height: 20px;
  28331. }
  28332. .isWrong {
  28333. display: flex;
  28334. flex-direction: row;
  28335. flex-wrap: nowrap;
  28336. align-content: center;
  28337. align-items: center;
  28338. }
  28339. .answerRight {
  28340. width: 25%;
  28341. }
  28342. .isTj {
  28343. display: flex;
  28344. flex-direction: row;
  28345. flex-wrap: nowrap;
  28346. align-items: center;
  28347. }
  28348. .isTj > div:nth-child(2) {
  28349. color: #727070;
  28350. margin-left: 10px;
  28351. }
  28352. .isTjImg {
  28353. width: 30px;
  28354. height: 30px;
  28355. }
  28356. .isTjImg > img {
  28357. width: 100%;
  28358. height: 100%;
  28359. }
  28360. .cardAnswerBox {
  28361. font-size: 18px;
  28362. width: 97%;
  28363. border: 5px;
  28364. padding: 0;
  28365. border-radius: 5px;
  28366. margin: 10px auto;
  28367. word-break: break-word;
  28368. }
  28369. .w_name {
  28370. margin-bottom: 10px;
  28371. }
  28372. .w_name span {
  28373. font-size: 16px;
  28374. }
  28375. .w_teachert {
  28376. width: 50px !important;
  28377. position: absolute;
  28378. height: auto !important;
  28379. z-index: 10;
  28380. right: 25px;
  28381. top: -25px;
  28382. }
  28383. /* .group_workBox {
  28384. } */
  28385. .group_workBox + .group_workBox {
  28386. margin-top: 20px;
  28387. }
  28388. .group_box {
  28389. padding-bottom: 20px;
  28390. border-bottom: 2px solid #f0f0f0;
  28391. margin-top: 10px;
  28392. }
  28393. .group_title {
  28394. display: flex;
  28395. align-items: center;
  28396. justify-content: space-between;
  28397. width: 95%;
  28398. }
  28399. .group_name {
  28400. background-image: url(../../assets/icon/groupN.png);
  28401. width: 220px;
  28402. background-size: 100% 100%;
  28403. height: 67px;
  28404. padding: 0 20px 0 43px;
  28405. box-sizing: border-box;
  28406. line-height: 63px;
  28407. color: #fff;
  28408. overflow: hidden;
  28409. white-space: nowrap;
  28410. text-overflow: ellipsis;
  28411. }
  28412. .group_work {
  28413. width: 100%;
  28414. padding: 0 10px;
  28415. box-sizing: border-box;
  28416. display: flex;
  28417. flex-wrap: wrap;
  28418. }
  28419. .g_d_box {
  28420. display: flex;
  28421. flex-flow: wrap;
  28422. justify-content: space-around;
  28423. }
  28424. .g_d_box .isChair {
  28425. background-image: url(../../assets/avatar.png) !important;
  28426. }
  28427. .g_d_group {
  28428. width: 500px;
  28429. margin-bottom: 80px;
  28430. }
  28431. .g_d_group_chair {
  28432. display: flex;
  28433. align-items: center;
  28434. justify-content: center;
  28435. }
  28436. .g_d_group_chair > div + div {
  28437. margin-left: 30px;
  28438. }
  28439. .g_d_group_chair > div,
  28440. .g_d_group_chair2 > div {
  28441. display: flex;
  28442. flex-direction: column;
  28443. align-items: center;
  28444. }
  28445. .g_d_group_chair > div > span:nth-child(1),
  28446. .g_d_group_chair2 > div > span:nth-child(1) {
  28447. background-image: url(../../assets/icon/chair.png);
  28448. width: 50px;
  28449. height: 50px;
  28450. display: block;
  28451. background-size: 100% 100%;
  28452. }
  28453. .g_d_group_tableBox {
  28454. display: flex;
  28455. align-items: center;
  28456. justify-content: center;
  28457. }
  28458. .g_d_group_chair2 {
  28459. display: flex;
  28460. flex-direction: column;
  28461. align-items: center;
  28462. justify-content: center;
  28463. }
  28464. .g_d_group_chair2 > div + div {
  28465. margin-top: 10px;
  28466. }
  28467. .g_d_group_table {
  28468. background-image: url(../../assets/icon/groupBg.png);
  28469. width: 354px;
  28470. height: 196px;
  28471. background-size: 100% 100%;
  28472. display: flex;
  28473. align-items: center;
  28474. justify-content: center;
  28475. flex-direction: column;
  28476. color: #fff;
  28477. }
  28478. .g_d_group_table > div:nth-child(1) {
  28479. font-size: 24px;
  28480. margin-bottom: 5px;
  28481. }
  28482. .g_d_group_table > div:nth-child(2) div {
  28483. cursor: pointer;
  28484. background: #2e77bf;
  28485. padding: 4px 10px;
  28486. border-radius: 5px;
  28487. }
  28488. /* .groupBox {
  28489. } */
  28490. .groupContent + .groupContent {
  28491. margin-top: 30px;
  28492. }
  28493. .groupTitle {
  28494. font-size: 24px;
  28495. color: rgb(80, 80, 80);
  28496. margin-bottom: 20px;
  28497. }
  28498. .groupName {
  28499. display: flex;
  28500. align-items: center;
  28501. }
  28502. .groupn {
  28503. font-size: 15px;
  28504. margin-right: 10px;
  28505. }
  28506. .groupName + .groupName {
  28507. margin-top: 15px;
  28508. }
  28509. .groupBtn {
  28510. margin-left: 10px;
  28511. }
  28512. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28513. text-align: left;
  28514. }
  28515. .g_d_btnBox {
  28516. display: flex;
  28517. justify-content: flex-end;
  28518. align-items: center;
  28519. margin-bottom: 20px;
  28520. }
  28521. .updateChair {
  28522. position: relative;
  28523. }
  28524. .updateChairBtn {
  28525. position: absolute;
  28526. width: 50px;
  28527. height: 50px;
  28528. overflow: hidden;
  28529. /* display: flex; */
  28530. align-items: center;
  28531. justify-content: center;
  28532. background: #00000087;
  28533. color: #fff;
  28534. border-radius: 50px;
  28535. display: none;
  28536. cursor: pointer;
  28537. }
  28538. .updateChair:hover .updateChairBtn {
  28539. display: flex;
  28540. }
  28541. .group_staic_box {
  28542. display: flex;
  28543. padding: 30px 40px 10px;
  28544. flex-wrap: wrap;
  28545. }
  28546. .group_staic {
  28547. /* width: 50%; */
  28548. margin-bottom: 20px;
  28549. display: flex;
  28550. align-items: center;
  28551. }
  28552. .group_staic span:nth-child(1) {
  28553. width: 150px;
  28554. text-align: right;
  28555. margin-right: 15px;
  28556. }
  28557. .group_staic span:nth-child(2) {
  28558. background: rgb(0 123 255);
  28559. color: #fff;
  28560. border-radius: 5px;
  28561. padding: 5px;
  28562. }
  28563. .codeFileBox {
  28564. height: 300px;
  28565. background: #fff;
  28566. display: flex;
  28567. align-items: center;
  28568. justify-content: center;
  28569. }
  28570. .codeFileBox img {
  28571. width: 200px;
  28572. margin: 0;
  28573. height: auto;
  28574. }
  28575. .codeFileBox div {
  28576. background: rgb(80, 142, 226);
  28577. color: #fff;
  28578. padding: 10px 20px;
  28579. border-radius: 25px;
  28580. cursor: pointer;
  28581. margin-left: 15px;
  28582. }
  28583. .radioBox {
  28584. display: flex;
  28585. flex-direction: column;
  28586. flex-wrap: nowrap;
  28587. align-items: flex-start;
  28588. }
  28589. .radioBox > div {
  28590. margin: 10px 0 0 10px;
  28591. }
  28592. /* .radioBox >>> .el-radio__input,
  28593. .radioBox >>> .el-checkbox__inner {
  28594. margin-left: 10px;
  28595. } */
  28596. .radioBox >>> .el-radio__label,
  28597. .radioBox >>> .el-checkbox__label {
  28598. display: flex;
  28599. align-items: center;
  28600. width: 100%;
  28601. }
  28602. .radioBox >>> .el-radio__label > span {
  28603. width: 100%;
  28604. display: -webkit-box;
  28605. overflow: hidden;
  28606. white-space: normal !important;
  28607. text-overflow: ellipsis;
  28608. word-wrap: break-word;
  28609. }
  28610. .inImg {
  28611. width: 100px;
  28612. cursor: pointer;
  28613. }
  28614. .inImg > img {
  28615. width: 100%;
  28616. height: 100%;
  28617. object-fit: cover;
  28618. }
  28619. .timuImgBox {
  28620. margin: 10px 0;
  28621. display: flex;
  28622. flex-direction: column;
  28623. flex-wrap: wrap;
  28624. align-items: flex-start;
  28625. }
  28626. .timuImg {
  28627. width: 150px;
  28628. margin: 5px 0;
  28629. cursor: pointer;
  28630. }
  28631. .timuImg > img {
  28632. width: 100%;
  28633. height: 100%;
  28634. object-fit: cover;
  28635. }
  28636. .worksTop {
  28637. display: flex;
  28638. flex-direction: row;
  28639. align-items: flex-end;
  28640. }
  28641. .worksTitle {
  28642. display: flex;
  28643. flex-direction: row;
  28644. flex-wrap: nowrap;
  28645. align-items: center;
  28646. }
  28647. .worksTitle::before,
  28648. .worksTop::before {
  28649. content: "";
  28650. display: block;
  28651. width: 3px;
  28652. height: 20px;
  28653. background: #0061ff;
  28654. border-radius: 3px;
  28655. margin: 0 5px 0 0;
  28656. }
  28657. .corOpen {
  28658. margin: 0 0 0 10px;
  28659. font-size: 14px;
  28660. cursor: pointer;
  28661. color: #505050;
  28662. }
  28663. .corOpen:hover {
  28664. color: #499eef;
  28665. }
  28666. .navCorOpenBox {
  28667. display: flex;
  28668. flex-direction: row;
  28669. align-items: center;
  28670. justify-content: space-between;
  28671. height: 55px;
  28672. background: #ffffff;
  28673. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28674. border-radius: 8px 8px 0px 0px;
  28675. z-index: 9;
  28676. position: relative;
  28677. }
  28678. .navCorOpen {
  28679. padding-right: 15px;
  28680. cursor: pointer;
  28681. width: 45px;
  28682. display: flex;
  28683. }
  28684. .navCorOpen > img {
  28685. width: 100%;
  28686. height: 100%;
  28687. }
  28688. .mlImg {
  28689. width: 40px !important;
  28690. min-width: 40px;
  28691. cursor: pointer;
  28692. transform: rotate(180deg);
  28693. }
  28694. .mlImg > img {
  28695. width: 100%;
  28696. height: 100%;
  28697. }
  28698. .navLeftCss {
  28699. width: 100% !important;
  28700. left: 0 !important;
  28701. }
  28702. .isContentCss {
  28703. width: 100% !important;
  28704. }
  28705. .isAllWidth {
  28706. width: 100% !important;
  28707. }
  28708. .group_switch {
  28709. margin-right: 10px;
  28710. height: 30px;
  28711. display: flex;
  28712. align-items: center;
  28713. }
  28714. .group_switch > span {
  28715. margin-right: 5px;
  28716. }
  28717. .fileC_box {
  28718. padding-top: 15px;
  28719. }
  28720. .fileC_box > .fileC_title {
  28721. padding: 10px 5px 14px 10px;
  28722. border-top: 1px solid #cad1dc;
  28723. font-size: 14px;
  28724. font-weight: 400;
  28725. color: #cad1dc;
  28726. width: calc(100% - 20px);
  28727. margin: 0 auto;
  28728. box-sizing: border-box;
  28729. }
  28730. .pl_select_box {
  28731. height: 40px;
  28732. line-height: 40px;
  28733. width: 100%;
  28734. cursor: pointer;
  28735. padding: 0 20px;
  28736. box-sizing: border-box;
  28737. border-radius: 5px;
  28738. border: 1px solid #d6d6d6;
  28739. white-space: nowrap;
  28740. overflow: hidden;
  28741. text-overflow: ellipsis;
  28742. background: #fff;
  28743. text-align: left;
  28744. }
  28745. .newButton {
  28746. width: 102px;
  28747. height: 36px;
  28748. background: #e7ebf1;
  28749. border-radius: 4px;
  28750. color: #0e1e33;
  28751. font-weight: 400;
  28752. font-size: 14px;
  28753. border: none;
  28754. float: right;
  28755. margin-left: 10px;
  28756. }
  28757. .el-table >>> .even_row {
  28758. background-color: #f0f4fa;
  28759. }
  28760. .stageBoxCss,
  28761. .stageBoxIsCss {
  28762. display: flex;
  28763. flex-direction: row;
  28764. flex-wrap: nowrap;
  28765. align-items: center;
  28766. height: 50px;
  28767. border-bottom: 1px solid #e2f5fc;
  28768. cursor: pointer;
  28769. width: 100%;
  28770. }
  28771. .stageBoxIsCss {
  28772. background: #0061ff;
  28773. color: #fff;
  28774. border-radius: 8px;
  28775. }
  28776. .closeTri,
  28777. .closeTri1 {
  28778. min-width: 15px;
  28779. width: 15px;
  28780. height: 15px;
  28781. }
  28782. .closeTri1 {
  28783. padding-left: 10px;
  28784. cursor: pointer;
  28785. }
  28786. .closeTri > img,
  28787. .closeTri1 > img {
  28788. width: 100%;
  28789. height: 100%;
  28790. /* transition: all .5s; */
  28791. }
  28792. .noToolBlue {
  28793. min-width: 10px;
  28794. width: 10px;
  28795. height: 10px;
  28796. background: #0061ff;
  28797. border-radius: 50%;
  28798. margin-left: 13px;
  28799. }
  28800. .stageChild,
  28801. .toolChild {
  28802. height: 0;
  28803. overflow: hidden;
  28804. transition: all 0.5s;
  28805. }
  28806. /* .toolChild { */
  28807. /* margin: 0 0 0 17px;
  28808. padding: 0 0 0 20px;
  28809. border-left: 1px solid #d7d7d7; */
  28810. /* } */
  28811. .toolChild > div + div{
  28812. margin-top:5px;
  28813. }
  28814. .gjCss {
  28815. display: flex;
  28816. flex-direction: row;
  28817. flex-wrap: nowrap;
  28818. align-items: center;
  28819. padding: 10px 0 10px 40px;
  28820. box-sizing: border-box;
  28821. font-size: 14px;
  28822. cursor: pointer;
  28823. border-radius:5px;
  28824. }
  28825. .toolChild > div {
  28826. position: relative;
  28827. width: 100%;
  28828. }
  28829. /* .toolChild > div::before { */
  28830. /* content: "";
  28831. width: 15px;
  28832. height: 1px;
  28833. background: #cad1dc;
  28834. position: absolute;
  28835. top: 24px;
  28836. left: -20px;
  28837. display: block; */
  28838. /* } */
  28839. .isGjCss {
  28840. /* color: #0061ff; */
  28841. color:#fff;
  28842. background: rgb(55, 129, 252);
  28843. /* background-color: #e0eafb !important;
  28844. color: #0061ff !important; */
  28845. }
  28846. .navItem {
  28847. background: #ffffff;
  28848. border-radius: 4px;
  28849. width: 100%;
  28850. margin: 10px auto;
  28851. position: relative;
  28852. height: 40px;
  28853. display: flex;
  28854. flex-direction: row;
  28855. flex-wrap: nowrap;
  28856. align-items: center;
  28857. }
  28858. .navItemList {
  28859. display: flex;
  28860. flex-direction: row;
  28861. flex-wrap: nowrap;
  28862. align-items: center;
  28863. padding: 0 13px;
  28864. cursor: pointer;
  28865. width: calc(100% - 60px);
  28866. height: 100%;
  28867. }
  28868. .navItemList > div:first-child {
  28869. min-width: 60px;
  28870. }
  28871. .navItemList > div:last-child {
  28872. width: calc(100% - 80px);
  28873. white-space: nowrap;
  28874. overflow: hidden;
  28875. text-overflow: ellipsis;
  28876. word-break: break-word;
  28877. }
  28878. /* .isItemList > div {
  28879. color: #fff !important;
  28880. } */
  28881. .tool_work_box {
  28882. width: 100%;
  28883. padding: 0 37px 0;
  28884. box-sizing: border-box;
  28885. }
  28886. .tool_box {
  28887. width: 100%;
  28888. padding: 0 0 0 20px;
  28889. }
  28890. .tool_type_box {
  28891. display: flex;
  28892. flex-direction: row;
  28893. align-items: baseline;
  28894. flex-wrap: nowrap;
  28895. justify-content: flex-start;
  28896. position: relative;
  28897. }
  28898. .toolSort {
  28899. display: flex;
  28900. flex-direction: row;
  28901. flex-wrap: wrap;
  28902. justify-content: flex-start;
  28903. align-items: flex-start;
  28904. padding: 0 0 15px 0;
  28905. }
  28906. .toolSort > div {
  28907. margin: 0 10px 0 0;
  28908. width: 135px;
  28909. box-sizing: border-box;
  28910. border: 2px solid transparent;
  28911. }
  28912. .tools {
  28913. width: 100%;
  28914. display: flex;
  28915. flex-direction: column;
  28916. flex-wrap: nowrap;
  28917. align-items: flex-start;
  28918. }
  28919. .whiteBIcon {
  28920. width: fit-content;
  28921. cursor: pointer;
  28922. display: flex;
  28923. flex-direction: column;
  28924. flex-wrap: nowrap;
  28925. align-items: center;
  28926. font-size: 14px;
  28927. }
  28928. .tool:hover {
  28929. border: 2px solid #a5c7ff;
  28930. border-radius: 5px;
  28931. }
  28932. .whiteBIcon > img {
  28933. width: 65px;
  28934. height: 100%;
  28935. }
  28936. .whiteBIcon > img {
  28937. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28938. border-radius: 15px;
  28939. }
  28940. .check {
  28941. /* width: 20px;
  28942. height: 20px; */
  28943. cursor: pointer;
  28944. margin: 10px 0;
  28945. position: absolute;
  28946. right: 2px;
  28947. top: -5px;
  28948. }
  28949. .noChoose,
  28950. .isChoose {
  28951. width: 15px;
  28952. height: 15px;
  28953. border-radius: 50%;
  28954. border: 1px solid #adadad;
  28955. }
  28956. .isChoose {
  28957. border: 4px solid #0363ff !important;
  28958. width: 10px;
  28959. height: 10px;
  28960. }
  28961. .isToolChoose {
  28962. border: 2px solid #5394ff !important;
  28963. border-radius: 5px;
  28964. box-shadow: 0 0 6px 0px #5394ff;
  28965. }
  28966. .checkDiv {
  28967. display: flex;
  28968. align-items: center;
  28969. }
  28970. .checkDiv span {
  28971. margin-left: 5px;
  28972. color: #858585;
  28973. }
  28974. .check img {
  28975. width: 20px;
  28976. height: 20px;
  28977. }
  28978. .lockTaskIcon {
  28979. width: 20px;
  28980. height: 20px;
  28981. position: absolute;
  28982. right: 10px;
  28983. top: 10px;
  28984. }
  28985. .lockTaskIcon > img {
  28986. width: 100%;
  28987. height: 100%;
  28988. }
  28989. .pick_box {
  28990. display: flex;
  28991. align-items: flex-start;
  28992. flex-wrap: wrap;
  28993. }
  28994. .selectBox {
  28995. width: 110px;
  28996. margin-left: 10px;
  28997. margin: 0 10px 0 auto;
  28998. }
  28999. .selectBox >>> .el-input__inner {
  29000. height: 30px;
  29001. line-height: 30px;
  29002. }
  29003. .selectBox >>> .el-input__icon {
  29004. line-height: 30px;
  29005. }
  29006. .sentenceTitle {
  29007. display: flex;
  29008. flex-direction: row;
  29009. flex-wrap: nowrap;
  29010. align-items: center;
  29011. }
  29012. .sentenceTitle::before {
  29013. content: attr(index);
  29014. background: #3681fc;
  29015. border-radius: 50%;
  29016. color: #fff;
  29017. width: 25px;
  29018. height: 25px;
  29019. min-width: 25px;
  29020. min-height: 25px;
  29021. text-align: center;
  29022. line-height: 25px;
  29023. margin-right: 5px;
  29024. }
  29025. .hfBox {
  29026. padding: 10px;
  29027. box-sizing: border-box;
  29028. }
  29029. .whoReplyWho {
  29030. display: flex;
  29031. flex-direction: row;
  29032. flex-wrap: nowrap;
  29033. align-items: baseline;
  29034. justify-content: flex-start;
  29035. }
  29036. .hfBottom {
  29037. display: flex;
  29038. flex-direction: row;
  29039. flex-wrap: nowrap;
  29040. align-items: center;
  29041. justify-content: space-between;
  29042. font-size: 14px;
  29043. }
  29044. .deleteHfItem {
  29045. cursor: pointer;
  29046. width: 20px;
  29047. height: 20px;
  29048. }
  29049. .deleteHfItem > img {
  29050. width: 100%;
  29051. height: 100%;
  29052. }
  29053. .whoReplyWho > .hfImg {
  29054. width: 12px;
  29055. height: 12px;
  29056. margin: 0 5px;
  29057. }
  29058. .whoReplyWho > .hfImg > img {
  29059. width: 100%;
  29060. height: 100%;
  29061. }
  29062. .hfContent {
  29063. padding-top: 10px;
  29064. box-sizing: border-box;
  29065. display: -webkit-box;
  29066. overflow: hidden;
  29067. white-space: normal !important;
  29068. text-overflow: ellipsis;
  29069. word-wrap: break-word;
  29070. -webkit-box-orient: vertical;
  29071. }
  29072. .hfTime {
  29073. text-align: left;
  29074. box-sizing: border-box;
  29075. padding: 10px 0 10px 0px;
  29076. color: #bfbfbf;
  29077. font-size: 14px;
  29078. }
  29079. .btnAllNT {
  29080. position: fixed;
  29081. bottom: 100px;
  29082. right: 40px;
  29083. z-index: 999;
  29084. display: flex;
  29085. flex-direction: row;
  29086. }
  29087. .btnAllNT > img {
  29088. cursor: pointer;
  29089. width: 80px;
  29090. }
  29091. .toolMask {
  29092. position: fixed;
  29093. width: 100%;
  29094. height: 100%;
  29095. background: #3f3c3c;
  29096. opacity: 0.5;
  29097. top: 0;
  29098. left: 0;
  29099. z-index: 999;
  29100. }
  29101. .addToolCss {
  29102. position: fixed;
  29103. z-index: 999;
  29104. background: #fff;
  29105. right: 5%;
  29106. bottom: 18%;
  29107. min-width: 1035px;
  29108. min-height: 300px;
  29109. border-radius: 10px;
  29110. box-shadow: 0 0 8px 1px #b2b2b2;
  29111. }
  29112. .toolTop {
  29113. display: flex;
  29114. flex-direction: row;
  29115. flex-wrap: nowrap;
  29116. justify-content: space-between;
  29117. align-items: center;
  29118. padding: 20px;
  29119. }
  29120. .toolTop > div:nth-child(2) {
  29121. width: 15px;
  29122. height: 15px;
  29123. padding-right: 10px;
  29124. cursor: pointer;
  29125. }
  29126. .toolTop > div:nth-child(2) > img {
  29127. width: 100%;
  29128. height: 100%;
  29129. }
  29130. .fullStyle>>>.el-dialog__body {
  29131. height: calc(100% - 125px) !important;
  29132. box-sizing: border-box;
  29133. padding: 30px 0 !important;
  29134. background: #fff !important;
  29135. }
  29136. .fullStyle>>>.el-dialog {
  29137. width: 100% !important;
  29138. max-width: 100% !important;
  29139. height: 100% !important;
  29140. margin: 0 !important;
  29141. }
  29142. .fullStyle {
  29143. width: 100% !important;
  29144. max-width: 100% !important;
  29145. height: 100% !important;
  29146. margin: 0 auto !important;
  29147. }
  29148. .fullStyle>>>.el-dialog__footer{
  29149. background: #fff !important;
  29150. }
  29151. .engUpBox {
  29152. width: 100%;
  29153. height: 100%;
  29154. }
  29155. .engTitle,
  29156. .engText {
  29157. display: flex;
  29158. flex-direction: row;
  29159. flex-wrap: nowrap;
  29160. align-items: flex-start;
  29161. padding: 0 20px 20px 20px;
  29162. box-sizing: border-box;
  29163. }
  29164. .engTitle > .div:first-child,
  29165. .engText > div:first-child {
  29166. min-width: 75px;
  29167. }
  29168. .correctBox{
  29169. width: 100%;
  29170. display: flex;
  29171. flex-direction: row;
  29172. flex-wrap: nowrap;
  29173. align-items: flex-start;
  29174. }
  29175. .oldBox{
  29176. width: 50%;
  29177. height: 100%;
  29178. display: flex;
  29179. flex-direction: column;
  29180. flex-wrap: nowrap;
  29181. align-items: center;
  29182. border-top: 1px solid #d9d9d9;
  29183. border-left: 1px solid #d9d9d9;
  29184. border-right: 1px solid #d9d9d9;
  29185. }
  29186. .oldBox>div:first-child{
  29187. width: 100%;
  29188. text-align: center;
  29189. background: #d9d9d9;
  29190. height: 35px;
  29191. line-height: 35px;
  29192. font-weight: bold;
  29193. }
  29194. .oldText{
  29195. width: 100%;
  29196. height: calc(100% - 35px);
  29197. overflow: auto;
  29198. margin: 10px 0;
  29199. display: flex;
  29200. flex-direction: column;
  29201. flex-wrap: nowrap;
  29202. align-content: center;
  29203. align-items: center;
  29204. }
  29205. .detailBox{
  29206. width: 50%;
  29207. padding: 10px;
  29208. background: #f6f6f6;
  29209. border-radius: 5px;
  29210. }
  29211. .oldDetail,.oldDetail1{
  29212. padding-bottom: 30px;
  29213. }
  29214. .oldImg{
  29215. width:30px;
  29216. height: 30px;
  29217. }
  29218. .oldImg>img{
  29219. width: 100%;
  29220. height: 100%;
  29221. }
  29222. .allName{
  29223. min-width: 200px;
  29224. white-space: nowrap;
  29225. overflow: hidden;
  29226. text-overflow: ellipsis;
  29227. word-break: break-word;
  29228. cursor: pointer;
  29229. text-align: center;
  29230. border: 1px solid #bcc2cc;
  29231. box-sizing: border-box;
  29232. }
  29233. .engUpTop{
  29234. max-height: 300px;
  29235. overflow: auto;
  29236. }
  29237. .isUpdateToolDetailClass{
  29238. padding: 0 !important;
  29239. }
  29240. .isUpdateToolDetailClass textarea{
  29241. padding:12px;
  29242. font-size: 16px;
  29243. min-height:100%;
  29244. width: 100%;
  29245. box-sizing:border-box;
  29246. outline: none;
  29247. border:none;
  29248. line-height: 30px;
  29249. resize: none;
  29250. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29251. color: #838383;
  29252. }
  29253. .show_taskD {
  29254. min-width: fit-content;
  29255. margin-left: 10px;
  29256. display: flex;
  29257. align-items: center;
  29258. font-size: 14px;
  29259. cursor: pointer;
  29260. color: #717c8d;
  29261. }
  29262. .show_taskD > img {
  29263. width: 15px;
  29264. margin-right: 5px;
  29265. transition: 0.2s all;
  29266. transform: rotate(-90deg);
  29267. }
  29268. .show_taskD.show > img {
  29269. transform: rotate(0deg);
  29270. }
  29271. .correctCss{
  29272. position: absolute;
  29273. bottom: -70px;
  29274. background: #409eff;
  29275. color: #fff;
  29276. }
  29277. .ScoreBtn {
  29278. background: rgba(87, 159, 248, 1);
  29279. display: flex;
  29280. justify-content: center;
  29281. align-items: center;
  29282. color: #fff;
  29283. font-size: 14px;
  29284. padding: 8px 12px;
  29285. border-radius: 5px;
  29286. cursor: pointer;
  29287. }
  29288. .max-height-popover .el-popover {
  29289. min-height: 200px;
  29290. max-height: 400px; /* 设置最大高度 */
  29291. overflow: auto; /* 超出部分显示滚动条 */
  29292. }
  29293. .stuLookScore {
  29294. position: absolute;
  29295. top: 12px;
  29296. right: 40px;
  29297. background: #0000008f;
  29298. border-radius: 5px;
  29299. padding: 3px 5px;
  29300. font-size: 14px;
  29301. color: #fff;
  29302. cursor: pointer;
  29303. }
  29304. .dialog_diyCopy >>> .el-dialog__header {
  29305. display: none !important;
  29306. }
  29307. .dialog_diyCopy >>> .el-dialog__body {
  29308. padding: 0 !important;
  29309. height: 100% !important;
  29310. }
  29311. .confirmOpenDigCss > div{
  29312. font-size: 14px;
  29313. color: rgba(0, 0, 0, 0.6);
  29314. }
  29315. .confirmOpenDigCss >>> .el-dialog{
  29316. border-radius: 6px;
  29317. }
  29318. .confirmOpenDigCss >>> .el-dialog__body{
  29319. padding: 25px !important;
  29320. }
  29321. .confirmOpenDigCss > span{
  29322. font-size: 16px;
  29323. font-weight: 600;
  29324. color: rgba(0, 0, 0, 0.8);
  29325. }
  29326. div::-webkit-scrollbar {
  29327. width: 10px;
  29328. height: 6px;
  29329. }
  29330. .Ovh{
  29331. margin: 5px 0;
  29332. width: 4em;
  29333. -webkit-line-clamp: 2;
  29334. display: -webkit-box;
  29335. -webkit-box-orient: vertical;
  29336. overflow: hidden;
  29337. text-overflow: ellipsis;
  29338. }
  29339. </style>