studyStudent.vue 821 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+classRoomHelperWidth+' - 20% - 40px)' : 'calc(100% - '+classRoomHelperWidth+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: orgArray.includes(org) ? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  248. <div class="btnLeft">
  249. <el-tooltip effect="light" content="刷新" placement="top">
  250. <div class="reBtnIcon" @click="refreshCourse">
  251. <span>刷新</span>
  252. </div>
  253. </el-tooltip>
  254. <el-tooltip effect="light" content="评论" placement="top">
  255. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  256. <span>评论</span>
  257. </div>
  258. </el-tooltip>
  259. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  260. <el-tooltip effect="light" content="录制" placement="top">
  261. <div class="vedioIcon" @click="startRecording">
  262. <span>录制</span>
  263. </div>
  264. </el-tooltip>
  265. </div>
  266. <div v-else-if="tType == 1 || tType == 4">
  267. <el-tooltip effect="light" content="下载" placement="top">
  268. <div class="vedioIcon1" @click="stopRecording">
  269. <span>下载</span>
  270. </div>
  271. </el-tooltip>
  272. </div>
  273. </div>
  274. <div class="btnRight">
  275. <div
  276. class="last"
  277. @click="nextOrpreSteps(0)"
  278. v-if="!(IsFollow && tType == 2)"
  279. @mouseover="isHovered = true"
  280. @mouseout="isHovered = false"
  281. >
  282. <div class="lastImg">
  283. <img
  284. :src="
  285. isHovered
  286. ? require('../../assets/icon/newIcons/whiteLast.png')
  287. : require('../../assets/icon/newIcons/last.png')
  288. "
  289. alt=""
  290. />
  291. </div>
  292. <div class="lastText">上一步</div>
  293. </div>
  294. <div
  295. class="last"
  296. @click="nextOrpreSteps(1)"
  297. v-if="!(IsFollow && tType == 2)"
  298. @mouseover="isHovered1 = true"
  299. @mouseout="isHovered1 = false"
  300. >
  301. <div class="lastText">下一步</div>
  302. <div class="lastImg">
  303. <img
  304. :src="
  305. isHovered1
  306. ? require('../../assets/icon/newIcons/whiteNext.png')
  307. : require('../../assets/icon/newIcons/next.png')
  308. "
  309. alt=""
  310. />
  311. </div>
  312. </div>
  313. <div
  314. class="last"
  315. @click="juriVisible = true"
  316. v-if="tType == 1"
  317. @mouseover="isHovered2 = true"
  318. @mouseout="isHovered2 = false"
  319. >
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered2
  324. ? require('../../assets/icon/newIcons/whiteLock.png')
  325. : require('../../assets/icon/newIcons/lock.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. <div class="lastText">权限</div>
  331. </div>
  332. <div
  333. class="returnBtn1 returnIcon"
  334. @click.stop="
  335. goTo(
  336. '/courseDetail?userid=' +
  337. userid +
  338. '&oid=' +
  339. oid +
  340. '&org=' +
  341. org +
  342. '&cid=' +
  343. classId +
  344. '&courseId=' +
  345. id +
  346. '&tType=' +
  347. tType +
  348. '&screenType=' +
  349. screenType
  350. )
  351. "
  352. >
  353. <div class="lastImg">
  354. <img src="../../assets/icon/newIcon/return.png" alt="" />
  355. </div>
  356. <div class="lastText" style="color: #000">返回</div>
  357. </div>
  358. </div>
  359. <!-- <div
  360. class="returnBtn lockIcon"
  361. @click="juriVisible = true"
  362. v-if="tType == 1"
  363. >
  364. 权限
  365. </div>
  366. <div
  367. class="returnBtn vedioIcon"
  368. @click="startRecording"
  369. v-if="!videoStart && (tType == 1 || tType == 4)"
  370. >
  371. 录制
  372. </div>
  373. <div
  374. class="returnBtn"
  375. @click="stopRecording"
  376. v-else-if="tType == 1 || tType == 4"
  377. style="background: #ee5255"
  378. >
  379. 下载
  380. </div>
  381. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  382. 评论
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="nextOrpreSteps(0)"
  387. v-if="!(IsFollow && tType == 2)"
  388. >
  389. 上一步
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="nextOrpreSteps(1)"
  394. v-if="!(IsFollow && tType == 2)"
  395. >
  396. 下一步
  397. </div>
  398. <div class="returnBtn" @click="refreshCourse">刷新</div>
  399. <div
  400. class="returnBtn returnIcon"
  401. @click.stop="
  402. goTo(
  403. '/courseDetail?userid=' +
  404. userid +
  405. '&oid=' +
  406. oid +
  407. '&org=' +
  408. org +
  409. '&cid=' +
  410. classId +
  411. '&courseId=' +
  412. id +
  413. '&tType=' +
  414. tType +
  415. '&screenType=' +
  416. screenType
  417. )
  418. "
  419. >
  420. 返回
  421. </div> -->
  422. </div>
  423. </div>
  424. <div
  425. class="isNoMessage"
  426. v-if="
  427. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  428. .chapterData.length == 0 &&
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .toolChoose[0].tool.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .taskDetail == '' &&
  433. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .eList &&
  435. !(
  436. courseDetail.userid == userid ||
  437. (courseDetail.course_teacher &&
  438. courseDetail.course_teacher.indexOf(userid) != -1)
  439. )
  440. "
  441. >
  442. <img src="../../assets/icon/isNoMessage.png" alt />
  443. </div>
  444. <div class="study_top" :class="{ pzClass: pzDialog }">
  445. <div
  446. class="vedioBox"
  447. v-if="
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail != '' ||
  450. vChapterData[taskCount].length > 0 ||
  451. fileC[taskCount].length > 0
  452. "
  453. style="border-radius: 0 0 20px 20px"
  454. >
  455. <div
  456. class="taskBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != ''
  460. "
  461. >
  462. <div
  463. style="
  464. display: flex;
  465. flex-wrap: nowrap;
  466. flex-direction: column;
  467. position: relative;
  468. "
  469. >
  470. <div
  471. style="
  472. padding: 15px 0;
  473. line-height: 29px;
  474. font-size: 18px;
  475. color: #0e1e33;
  476. "
  477. class="cont"
  478. v-if="
  479. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  480. .taskDetail != ''
  481. "
  482. v-html="
  483. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  484. .taskDetail
  485. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  486. taskCount
  487. ].taskDetail
  488. : '暂无描述'
  489. "
  490. ></div>
  491. </div>
  492. </div>
  493. <div
  494. class="student_head"
  495. v-if="
  496. vChapterData[taskCount].length > 0 ||
  497. fileC[taskCount].length > 0
  498. "
  499. >
  500. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  501. <div
  502. :class="
  503. contentDialog == false
  504. ? 'box_course isContentCss'
  505. : 'box_course'
  506. "
  507. v-if="
  508. vChapterData.length > 0 &&
  509. vChapterData[taskCount] &&
  510. showType !== ''
  511. "
  512. >
  513. <div class="wheel" style="height: auto" v-if="showType === 0">
  514. <div
  515. class="workd_media"
  516. style="height: 650px; width: calc(100% - 50px)"
  517. >
  518. <video-player
  519. class="video-player vjs-custom-skin"
  520. :class="contentDialog == false ? 'isAllWidth' : ''"
  521. :playsinline="true"
  522. :options="playerO[taskCount]"
  523. @play="onPlayerPlay($event)"
  524. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  525. ></video-player>
  526. </div>
  527. </div>
  528. <div
  529. class="wheel"
  530. v-if="showType == 1"
  531. style="
  532. box-shadow: 0 0 6px 1px #f2f2f2;
  533. width: 95%;
  534. margin: 0 auto;
  535. background: #f1f1f1;
  536. "
  537. >
  538. <div class="title">查看文档</div>
  539. <el-form class="textBox">
  540. <el-form-item class="textTitle">
  541. <div style="font-size: 22px">
  542. {{ text.name }}
  543. </div>
  544. </el-form-item>
  545. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  546. <div v-html="text.url" class="textContent cont"></div>
  547. </el-form>
  548. </div>
  549. <div
  550. class="wheel"
  551. v-if="
  552. pptImgUrl1.indexOf(
  553. 'https://view.officeapps.live.com/op/view.aspx?src='
  554. ) != -1 && showType == 2
  555. "
  556. style="width: 95%; margin: 0 auto"
  557. >
  558. <iframe
  559. style="width: 100%; height: 100%; border: none"
  560. :src="pptImgUrl1"
  561. ></iframe>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-else-if="showType == 2"
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. security="restricted"
  571. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-if="showType == 3"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <pdf
  581. :pdfUrl="pptImgUrl1"
  582. style="width: 100%; height: 100%; overflow: auto"
  583. ></pdf>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 4"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <el-image
  591. :src="pptImgUrl1"
  592. fit="contain"
  593. style="width: 100%; height: 100%; cursor: pointer"
  594. @click="previewImg(pptImgUrl1)"
  595. ></el-image>
  596. </div>
  597. </div>
  598. <div
  599. class="pButton"
  600. style="position: absolute; right: 20px; top: 0; z-index: 998"
  601. v-if="!contentDialog"
  602. @click="setContent(true)"
  603. >
  604. <!-- 批 -->
  605. <img
  606. src="../../assets/icon/newIcons/isLeft.png"
  607. style="width: 45px"
  608. alt=""
  609. />
  610. </div>
  611. <div
  612. v-if="contentDialog == true"
  613. :style="{
  614. width:
  615. (vChapterData[taskCount].length > 0 ||
  616. fileC[taskCount].length > 0) &&
  617. showType === ''
  618. ? 'calc(100%)'
  619. : '300px',
  620. margin:
  621. (vChapterData[taskCount].length > 0 ||
  622. fileC[taskCount].length > 0) &&
  623. showType === ''
  624. ? '0 15px'
  625. : '0 15px 0 0',
  626. }"
  627. >
  628. <div
  629. class="vedioList"
  630. v-if="
  631. vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0
  633. "
  634. style="height: 650px"
  635. >
  636. <div class="navCorOpenBox">
  637. <div class="navTitile">内容列表:</div>
  638. <div class="navCorOpen" @click="setContent(false)">
  639. <img
  640. src="../../assets/icon/newIcons/isRight.png"
  641. alt=""
  642. />
  643. </div>
  644. </div>
  645. <div class="navBox">
  646. <div
  647. v-show="
  648. vChapterData[taskCount].length > 0 ||
  649. fileC[taskCount].length > 0
  650. "
  651. style="padding: 10px 0 25px 0"
  652. >
  653. <div
  654. class="vedioTimeBox"
  655. v-for="(vitem, vindex) in vChapterData[taskCount]"
  656. :key="vindex + '1'"
  657. >
  658. <div class="navListItem" v-if="vitem.type == 2">
  659. <div
  660. @click="lookVedio(vitem.url, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img
  669. src="../../assets/icon/newIcon/down.png"
  670. alt
  671. />
  672. </div>
  673. </div>
  674. <div class="navListItem" v-if="vitem.type == 6">
  675. <div
  676. @click="lookText(taskCount, vindex)"
  677. class="navText"
  678. :class="isClickNav == vindex ? 'isClickNav' : ''"
  679. >
  680. {{ vitem.name }}.doc
  681. </div>
  682. <div
  683. class="downIcon"
  684. @click="checkFileFull1(vitem.type, vitem)"
  685. >
  686. <img
  687. src="../../assets/icon/newIcon/allScreen.png"
  688. alt
  689. />
  690. </div>
  691. </div>
  692. <div
  693. class="navListItem"
  694. v-if="vitem.type == 8 || vitem.type == 14"
  695. >
  696. <div
  697. @click="doUrl(vitem.url, vindex)"
  698. class="navText"
  699. :class="isClickNav == vindex ? 'isClickNav' : ''"
  700. >
  701. {{ vitem.title ? vitem.title : vitem.url }}
  702. </div>
  703. <div
  704. class="downIcon"
  705. @click="checkFileFull1(vitem.type, vitem)"
  706. >
  707. <img
  708. src="../../assets/icon/newIcon/allScreen.png"
  709. alt
  710. />
  711. </div>
  712. </div>
  713. <div class="navListItem" v-if="vitem.type == 3">
  714. <div
  715. @click="downFile(vitem, vindex)"
  716. class="navText"
  717. :class="isClickNav == vindex ? 'isClickNav' : ''"
  718. >
  719. <span v-if="vitem.text">{{ vitem.text }}-</span
  720. >{{ vitem.name }}
  721. </div>
  722. <div
  723. class="downIcon"
  724. @click="checkFileFull1(vitem.type, vitem)"
  725. >
  726. <img
  727. src="../../assets/icon/newIcon/allScreen.png"
  728. alt
  729. />
  730. </div>
  731. <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div>
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 12">
  739. <div class="navText" @click="downloadFile2(vitem)">
  740. <span v-if="vitem.text">{{ vitem.text }}-</span
  741. >{{ vitem.name }}
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. <div class="downIcon" @click="downloadFile2(vitem)">
  753. <img
  754. src="../../assets/icon/newIcon/down.png"
  755. alt
  756. />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img
  769. src="../../assets/icon/newIcon/down.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. </div>
  941. <div v-if="tooC == 3">
  942. <img
  943. src="../../assets/icon/secondToolList/mindMapping.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">思维导图</div>
  948. </div>
  949. <div v-if="tooC == 6">
  950. <img
  951. src="../../assets/icon/secondToolList/doc.png"
  952. alt
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. />
  955. <div style="margin: 5px 0">协同文档</div>
  956. </div>
  957. <div v-if="tooC == 7">
  958. <img
  959. src="../../assets/icon/secondToolList/mindNetwork.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">思维网格</div>
  964. </div>
  965. <div v-if="tooC == 8">
  966. <img
  967. src="../../assets/icon/secondToolList/library.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">素材库</div>
  972. </div>
  973. <div v-if="tooC == 17">
  974. <img
  975. src="../../assets/icon/secondToolList/library.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">学习资料</div>
  980. </div>
  981. <div v-if="tooC == 2">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/secondToolList/note.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">便签</div>
  988. </div>
  989. <div v-if="tooC == 4">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/ask.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">问卷调查</div>
  996. </div>
  997. <div v-if="tooC == 45">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/choose.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">选择题</div>
  1004. </div>
  1005. <!-- <div v-if="tooC == 5">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/thirdToolList/score.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">量规评分</div>
  1012. </div> -->
  1013. <div v-if="tooC == 10">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/thirdToolList/time.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">倒计时</div>
  1020. </div>
  1021. <div v-if="tooC == 15">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/thirdToolList/answer.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">问答</div>
  1028. </div>
  1029. <div v-if="tooC == 26">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/thirdToolList/courseDesign.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">课程设计</div>
  1036. </div>
  1037. <div v-if="tooC == 18">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">训练服务器</div>
  1044. </div>
  1045. <div v-if="tooC == 16">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/thirdToolList/work.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">作业提交</div>
  1052. </div>
  1053. <div v-if="tooC == 50">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/plwork.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">批量上传</div>
  1060. </div>
  1061. <div v-if="tooC == 21">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/fourthToolList/program.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">AIoT Blockly</div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 22">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/fourthToolList/program.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">AI体验</div>
  1076. </div> -->
  1077. <div v-if="tooC == 23">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">AI Python</div>
  1084. </div>
  1085. <div v-if="tooC == 24">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/AIprogram.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AI Blockly</div>
  1092. </div>
  1093. <div v-if="tooC == 25">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/evalua.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">目标管理</div>
  1100. </div>
  1101. <div v-if="tooC == 31">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/secondToolList/networkPanel.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div v-if="tooC == 28">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div v-if="tooC == 37">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/secondToolList/mohe.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">魔盒识字</div>
  1124. </div>
  1125. <div v-if="tooC == 38">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../../assets/icon/secondToolList/24game.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">24点</div>
  1132. </div>
  1133. <div v-if="tooC == 39">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../../assets/icon/secondToolList/GeoGebra.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">GeoGebra</div>
  1140. </div>
  1141. <div v-if="tooC == 32">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/code.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">源码编辑</div>
  1148. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1149. style="position: absolute;left: 110px;bottom: 30px;">
  1150. 上传文件
  1151. <input type="file" accept="*" style="display: none"
  1152. @change="beforeUpload1($event, 7, toolIndex)" />
  1153. </div> -->
  1154. </div>
  1155. <div v-if="tooC == 40">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/secondToolList/eval.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">个人评价</div>
  1162. </div>
  1163. <div v-if="tooC == 41">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../../assets/icon/thirdToolList/select.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">选择匹配</div>
  1170. </div>
  1171. <div v-if="tooC == 44">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../../assets/icon/thirdToolList/hanClass.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">汉字宫</div>
  1178. </div>
  1179. <div v-if="tooC == 47">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/fourthToolList/conSentences.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">排序</div>
  1186. </div>
  1187. <div v-if="tooC == 48">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/fourthToolList/table.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">表格</div>
  1194. </div>
  1195. <div v-if="tooC == 52">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/text.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">文档</div>
  1202. </div>
  1203. <div v-if="tooC == 49">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/group.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">学生分组</div>
  1210. </div>
  1211. <div v-if="tooC == 57">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/fourthToolList/cocopi.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">CocoPi</div>
  1218. </div>
  1219. <div v-if="tooC == 58">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div v-if="tooC == 59">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/lineSearch.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">路径搜索</div>
  1234. </div>
  1235. <div v-if="tooC == 60">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/deepLearning.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">深度学习</div>
  1242. </div>
  1243. <div v-if="tooC == 61">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../../assets/icon/fourthToolList/allHistory.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">全历史</div>
  1250. </div>
  1251. <div v-if="tooC == 62">
  1252. <img
  1253. @click="addTools(tooC, toolIndex, taskCount)"
  1254. src="../../assets/icon/fourthToolList/interVideo.png"
  1255. alt
  1256. />
  1257. <div style="margin: 5px 0">交互视频</div>
  1258. </div>
  1259. <div v-if="tooC == 63">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/fourthToolList/Wood.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">海龟编程</div>
  1266. </div>
  1267. <div v-if="tooC == 71">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/fourthToolList/chatgpt.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">AI智能体</div>
  1274. </div>
  1275. <div v-if="tooC == 65">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/firstToolList/pickPeople.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">挑人</div>
  1282. </div>
  1283. <div v-if="tooC == 66">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../../assets/icon/secondToolList/formulaEdi.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">公式编辑</div>
  1290. </div>
  1291. <div v-if="tooC == 67">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/molStr.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">分子结构</div>
  1298. </div>
  1299. <div v-if="tooC == 68">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/timeAxis.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">时间轴</div>
  1306. </div>
  1307. <div v-if="tooC == 69">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/english.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">英语写作</div>
  1314. </div>
  1315. <div v-if="tooC == 70">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/englishVoice.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">英语口语</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1327. <!-- <div class="toolTitle">工具描述</div> -->
  1328. <div style="height:100%;"
  1329. v-html="contentConvent(tool.toolDetail)"
  1330. v-if="toolDetailIndex != toolIndex"
  1331. @click.stop="updateToolDetail(toolIndex, 2)"
  1332. ></div>
  1333. <div v-else @click.stop="" style="height:100%;">
  1334. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1335. </div>
  1336. </div>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 32"
  1340. style="position: absolute; right: 30px; top: 30px"
  1341. @click="addImg($event)"
  1342. >上传作业<input
  1343. type="file"
  1344. accept="*"
  1345. style="display: none"
  1346. @change="beforeUpload1($event, 7, toolIndex)"
  1347. /></el-button>
  1348. <el-button
  1349. type="primary"
  1350. v-if="tool.tool[0] == 15"
  1351. style="position: absolute; right: 30px; top: 30px"
  1352. @click="openWordCloud(toolIndex)"
  1353. >生成词云</el-button
  1354. >
  1355. <el-button
  1356. type="primary"
  1357. v-if="
  1358. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1359. "
  1360. style="position: absolute; right: 30px; top: 30px"
  1361. @click="uploadWorks(toolIndex)"
  1362. >导出作业</el-button
  1363. >
  1364. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1365. position: absolute;
  1366. right: 30px;
  1367. transform: translateY(-130%);
  1368. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1369. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1370. </div>
  1371. <div
  1372. v-if="
  1373. tType &&
  1374. tType == 2 &&
  1375. !sIsOpen &&
  1376. tool.tool.indexOf(16) != -1
  1377. "
  1378. class="worksBox"
  1379. >
  1380. <div
  1381. class="zuoyeYulan"
  1382. v-if="workStudent[toolIndex].length > 0"
  1383. >
  1384. <span class="worksTitle">作业预览</span>
  1385. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1386. </div>
  1387. <div
  1388. class="worksDetailBox"
  1389. v-if="workStudent[toolIndex].length > 0"
  1390. >
  1391. <div
  1392. class="works"
  1393. style="
  1394. width: 200px;
  1395. height: 140px;
  1396. margin: 10px 10px 10px 0;
  1397. box-shadow: 0 0 6px 1px #dfdada;
  1398. "
  1399. v-for="(w, wIndex) in workStudent[toolIndex]"
  1400. :key="wIndex"
  1401. >
  1402. <div class="workImg" v-if="w.type == 0">
  1403. <img
  1404. :src="w.works"
  1405. @click="previewImg(w.works)"
  1406. alt
  1407. />
  1408. <div
  1409. class="answerScore"
  1410. v-if="w.score"
  1411. @click.stop="openScore(w)"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. {{ JSON.parse(w.score).wScore }}分
  1418. </div>
  1419. <div
  1420. class="answerScore"
  1421. @click.stop="openScore(w)"
  1422. v-else-if="courseDetail.userid == userid"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. 评分
  1429. </div>
  1430. <img
  1431. class="deleteImg"
  1432. src="../../assets/deleteworks.png"
  1433. v-if="
  1434. w.userid == userid || tType == 1 || tType == 4
  1435. "
  1436. @click.stop="deleteWorks(w.wid)"
  1437. alt
  1438. />
  1439. </div>
  1440. <div class="workImg" v-if="w.type == 1">
  1441. <img :src="word" @click="openFile(w.works)" alt />
  1442. <div
  1443. class="answerScore"
  1444. v-if="w.score"
  1445. @click.stop="openScore(w)"
  1446. :class="{
  1447. rightW:
  1448. w.userid == userid || tType == 1 || tType == 4,
  1449. }"
  1450. >
  1451. {{ JSON.parse(w.score).wScore }}分
  1452. </div>
  1453. <div
  1454. class="answerScore"
  1455. @click.stop="openScore(w)"
  1456. v-else-if="courseDetail.userid == userid"
  1457. :class="{
  1458. rightW:
  1459. w.userid == userid || tType == 1 || tType == 4,
  1460. }"
  1461. >
  1462. 评分
  1463. </div>
  1464. <img
  1465. class="deleteImg"
  1466. src="../../assets/deleteworks.png"
  1467. v-if="
  1468. w.userid == userid || tType == 1 || tType == 4
  1469. "
  1470. @click.stop="deleteWorks(w.wid)"
  1471. alt
  1472. />
  1473. </div>
  1474. <div class="workImg" v-if="w.type == 3">
  1475. <img
  1476. style="cursor: pointer"
  1477. :src="video"
  1478. @click="openVideo(w)"
  1479. alt
  1480. />
  1481. <div
  1482. class="answerScore"
  1483. v-if="w.score"
  1484. @click.stop="openScore(w)"
  1485. :class="{
  1486. rightW:
  1487. w.userid == userid || tType == 1 || tType == 4,
  1488. }"
  1489. >
  1490. {{ JSON.parse(w.score).wScore }}分
  1491. </div>
  1492. <div
  1493. class="answerScore"
  1494. @click.stop="openScore(w)"
  1495. v-else-if="courseDetail.userid == userid"
  1496. :class="{
  1497. rightW:
  1498. w.userid == userid || tType == 1 || tType == 4,
  1499. }"
  1500. >
  1501. 评分
  1502. </div>
  1503. <img
  1504. class="deleteImg"
  1505. src="../../assets/deleteworks.png"
  1506. v-if="
  1507. w.userid == userid || tType == 1 || tType == 4
  1508. "
  1509. @click.stop="deleteWorks(w.wid)"
  1510. alt
  1511. />
  1512. </div>
  1513. <div class="workImg" v-if="w.type == 12">
  1514. <img
  1515. style="cursor: pointer"
  1516. :src="word2"
  1517. @click="downloadFile(w.works)"
  1518. alt
  1519. />
  1520. <div
  1521. class="answerScore"
  1522. v-if="w.score"
  1523. @click.stop="openScore(w)"
  1524. :class="{
  1525. rightW:
  1526. w.userid == userid || tType == 1 || tType == 4,
  1527. }"
  1528. >
  1529. {{ JSON.parse(w.score).wScore }}分
  1530. </div>
  1531. <div
  1532. class="answerScore"
  1533. @click.stop="openScore(w)"
  1534. v-else-if="courseDetail.userid == userid"
  1535. :class="{
  1536. rightW:
  1537. w.userid == userid || tType == 1 || tType == 4,
  1538. }"
  1539. >
  1540. 评分
  1541. </div>
  1542. <img
  1543. class="deleteImg"
  1544. src="../../assets/deleteworks.png"
  1545. v-if="
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. "
  1548. @click.stop="deleteWorks(w.wid)"
  1549. alt
  1550. />
  1551. </div>
  1552. <div class="worksName">
  1553. <div>{{ w.sName }}</div>
  1554. </div>
  1555. </div>
  1556. </div>
  1557. </div>
  1558. <div
  1559. v-if="
  1560. tType &&
  1561. tType == 2 &&
  1562. !sIsOpen &&
  1563. tool.tool.indexOf(32) != -1
  1564. "
  1565. class="worksBox"
  1566. >
  1567. <div
  1568. class="zuoyeYulan"
  1569. v-if="workStudent[toolIndex].length > 0"
  1570. >
  1571. <span class="worksTitle">作业预览</span>
  1572. </div>
  1573. <div
  1574. class="worksDetailBox"
  1575. v-if="workStudent[toolIndex].length > 0"
  1576. >
  1577. <div
  1578. class="works"
  1579. style="
  1580. width: 200px;
  1581. height: 140px;
  1582. margin: 10px 10px 10px 0;
  1583. box-shadow: 0 0 6px 1px #dfdada;
  1584. "
  1585. v-for="(w, wIndex) in workStudent[toolIndex]"
  1586. :key="wIndex"
  1587. >
  1588. <div class="workImg">
  1589. <img
  1590. :src="word2"
  1591. @click="downloadFile(w.works)"
  1592. alt
  1593. />
  1594. <div
  1595. class="answerScore"
  1596. v-if="w.score"
  1597. @click.stop="openScore(w)"
  1598. :class="{
  1599. rightW:
  1600. w.userid == userid || tType == 1 || tType == 4,
  1601. }"
  1602. >
  1603. {{ JSON.parse(w.score).wScore }}分
  1604. </div>
  1605. <div
  1606. class="answerScore"
  1607. @click.stop="openScore(w)"
  1608. v-else-if="courseDetail.userid == userid"
  1609. :class="{
  1610. rightW:
  1611. w.userid == userid || tType == 1 || tType == 4,
  1612. }"
  1613. >
  1614. 评分
  1615. </div>
  1616. <img
  1617. class="deleteImg"
  1618. src="../../assets/deleteworks.png"
  1619. v-if="
  1620. w.userid == userid || tType == 1 || tType == 4
  1621. "
  1622. @click.stop="deleteWorks(w.wid)"
  1623. alt
  1624. />
  1625. </div>
  1626. <div class="worksName">
  1627. <div>{{ w.sName }}</div>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </div>
  1632. <div
  1633. v-if="
  1634. tType &&
  1635. tType == 2 &&
  1636. !sIsOpen &&
  1637. tool.tool.indexOf(57) != -1
  1638. "
  1639. class="worksBox"
  1640. >
  1641. <div
  1642. class="zuoyeYulan"
  1643. v-if="workStudent[toolIndex].length > 0"
  1644. >
  1645. <span class="worksTitle">作业预览</span>
  1646. </div>
  1647. <div
  1648. class="worksDetailBox"
  1649. v-if="workStudent[toolIndex].length > 0"
  1650. >
  1651. <div
  1652. class="works"
  1653. style="
  1654. width: 200px;
  1655. height: 140px;
  1656. margin: 10px 10px 10px 0;
  1657. box-shadow: 0 0 6px 1px #dfdada;
  1658. "
  1659. v-for="(w, wIndex) in workStudent[toolIndex]"
  1660. :key="wIndex"
  1661. >
  1662. <div class="workImg">
  1663. <img
  1664. :src="word2"
  1665. @click="downloadFile(w.works)"
  1666. v-if="w.type == 12"
  1667. alt
  1668. />
  1669. <img
  1670. :src="word2"
  1671. @click="
  1672. openCocoPi(57, toolIndex, w.userid, w.sName)
  1673. "
  1674. v-else-if="w.type == 15"
  1675. alt
  1676. />
  1677. <div
  1678. class="answerScore"
  1679. v-if="w.score"
  1680. @click.stop="openScore(w)"
  1681. :class="{
  1682. rightW:
  1683. w.userid == userid || tType == 1 || tType == 4,
  1684. }"
  1685. >
  1686. {{ JSON.parse(w.score).wScore }}分
  1687. </div>
  1688. <div
  1689. class="answerScore"
  1690. @click.stop="openScore(w)"
  1691. v-else-if="courseDetail.userid == userid"
  1692. :class="{
  1693. rightW:
  1694. w.userid == userid || tType == 1 || tType == 4,
  1695. }"
  1696. >
  1697. 评分
  1698. </div>
  1699. <img
  1700. class="deleteImg"
  1701. src="../../assets/deleteworks.png"
  1702. v-if="
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. "
  1705. @click.stop="deleteWorks(w.wid)"
  1706. alt
  1707. />
  1708. </div>
  1709. <div class="worksName">
  1710. <div>{{ w.sName }}</div>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </div>
  1715. <div
  1716. v-if="
  1717. tType &&
  1718. tType == 2 &&
  1719. !sIsOpen &&
  1720. tool.tool.indexOf(4) != -1
  1721. "
  1722. class="worksBox"
  1723. >
  1724. <div
  1725. class="zuoyeYulan"
  1726. v-if="workStudent[toolIndex].length > 0"
  1727. >
  1728. <span class="worksTitle">作业预览</span>
  1729. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1730. </div>
  1731. <div
  1732. class="worksDetailBox"
  1733. v-if="workStudent[toolIndex].length > 0"
  1734. >
  1735. <div
  1736. class="isWorksName2"
  1737. v-for="(w, wIndex) in workStudent[toolIndex]"
  1738. :key="wIndex"
  1739. @click="
  1740. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1741. "
  1742. >
  1743. {{ w.sName }}
  1744. <img
  1745. class="deleteImg deleteImg2"
  1746. src="../../assets/deleteworks.png"
  1747. v-if="w.userid == userid || tType == 1 || tType == 4"
  1748. @click.stop="deleteWorks(w.wid)"
  1749. alt
  1750. />
  1751. </div>
  1752. <!-- <div
  1753. class="works"
  1754. style="
  1755. width: 200px;
  1756. height: 140px;
  1757. border-radius: 10px;
  1758. box-shadow: 0 0 6px 1px #dfdada;
  1759. overflow: hidden;
  1760. "
  1761. v-for="(w, wIndex) in workStudent[toolIndex]"
  1762. :key="wIndex"
  1763. >
  1764. <div class="workImg">
  1765. <img
  1766. src="../../assets/icon/works/noImg.png"
  1767. @click="
  1768. openTools(
  1769. 4,
  1770. toolIndex,
  1771. taskCount,
  1772. w.works,
  1773. w.sName
  1774. )
  1775. "
  1776. alt
  1777. />
  1778. </div>
  1779. <div class="worksName">
  1780. <div>{{ w.sName }}</div>
  1781. <div>{{ w.time }}</div>
  1782. </div>
  1783. </div> -->
  1784. </div>
  1785. </div>
  1786. <div
  1787. v-if="
  1788. tType &&
  1789. ((tType == 2 && sIsOpen == true) ||
  1790. tType == 1 ||
  1791. tType == 4) &&
  1792. tool.tool.indexOf(62) != -1
  1793. "
  1794. class="worksBox"
  1795. >
  1796. <div
  1797. class="zuoyeYulan"
  1798. v-if="
  1799. worksStudent.length &&
  1800. worksStudent[toolIndex].length > 0
  1801. "
  1802. >
  1803. <div class="worksTop">
  1804. <div>作业预览</div>
  1805. <div
  1806. class="corOpen"
  1807. @click="contract(toolIndex)"
  1808. v-if="
  1809. (isCloseList[toolIndex].isCloseBoolean) &&
  1810. isCloseList[toolIndex].isClose == 0
  1811. "
  1812. >
  1813. 折叠
  1814. </div>
  1815. <div
  1816. class="corOpen"
  1817. @click="contract(toolIndex)"
  1818. v-if="isCloseList[toolIndex].isClose == 1"
  1819. >
  1820. 展开
  1821. </div>
  1822. </div>
  1823. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1824. </div>
  1825. <div>
  1826. <div
  1827. :id="'tool-' + toolIndex"
  1828. :style="{
  1829. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1830. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1831. }"
  1832. class="worksDetailBox"
  1833. v-if="
  1834. worksStudent.length &&
  1835. worksStudent[toolIndex].length > 0
  1836. "
  1837. >
  1838. <div
  1839. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1840. :key="wIndex"
  1841. class="isWorksName2"
  1842. @click="
  1843. openTools(
  1844. 62,
  1845. toolIndex,
  1846. taskCount,
  1847. w.works,
  1848. w.sName
  1849. )
  1850. "
  1851. >
  1852. {{ w.sName }}
  1853. <img
  1854. class="deleteImg deleteImg2"
  1855. src="../../assets/deleteworks.png"
  1856. v-if="
  1857. w.userid == userid || tType == 1 || tType == 4
  1858. "
  1859. @click.stop="deleteWorks(w.wid)"
  1860. alt
  1861. />
  1862. </div>
  1863. </div>
  1864. </div>
  1865. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  1866. 未提交
  1867. </div>
  1868. <div
  1869. class="noWorksS"
  1870. v-if="noWorksS && noWorksS[toolIndex].length"
  1871. >
  1872. <div
  1873. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1874. :key="sIndex"
  1875. class="noWorksName"
  1876. >
  1877. <el-tooltip effect="dark" :content="s.student" placement="top">
  1878. <span>{{ s.student }}</span>
  1879. </el-tooltip>
  1880. </div>
  1881. </div>
  1882. </div>
  1883. <div
  1884. v-if="
  1885. tType &&
  1886. tType == 2 &&
  1887. !sIsOpen &&
  1888. tool.tool.indexOf(62) != -1
  1889. "
  1890. class="worksBox"
  1891. >
  1892. <div
  1893. class="zuoyeYulan"
  1894. v-if="workStudent[toolIndex].length > 0"
  1895. >
  1896. <span class="worksTitle">作业预览</span>
  1897. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1898. </div>
  1899. <div
  1900. class="worksDetailBox"
  1901. v-if="workStudent[toolIndex].length > 0"
  1902. >
  1903. <div
  1904. class="isWorksName2"
  1905. v-for="(w, wIndex) in workStudent[toolIndex]"
  1906. :key="wIndex"
  1907. @click="
  1908. openTools(62, toolIndex, taskCount, w.works, w.sName)
  1909. "
  1910. >
  1911. {{ w.sName }}
  1912. <img
  1913. class="deleteImg deleteImg2"
  1914. src="../../assets/deleteworks.png"
  1915. v-if="w.userid == userid || tType == 1 || tType == 4"
  1916. @click.stop="deleteWorks(w.wid)"
  1917. alt
  1918. />
  1919. </div>
  1920. </div>
  1921. </div>
  1922. <div
  1923. v-if="
  1924. tType &&
  1925. tType == 2 &&
  1926. !sIsOpen &&
  1927. tool.tool.indexOf(45) != -1
  1928. "
  1929. class="worksBox"
  1930. >
  1931. <div
  1932. class="zuoyeYulan"
  1933. v-if="workStudent[toolIndex].length > 0"
  1934. >
  1935. <span class="worksTitle">作业预览</span>
  1936. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1937. </div>
  1938. <div
  1939. class="worksDetailBox"
  1940. v-if="workStudent[toolIndex].length > 0"
  1941. >
  1942. <div
  1943. class="isWorksName2"
  1944. v-for="(w, wIndex) in workStudent[toolIndex]"
  1945. :key="wIndex"
  1946. @click="
  1947. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1948. "
  1949. >
  1950. {{ w.sName }}
  1951. <img
  1952. class="deleteImg deleteImg2"
  1953. src="../../assets/deleteworks.png"
  1954. v-if="w.userid == userid || tType == 1 || tType == 4"
  1955. @click.stop="deleteWorks(w.wid)"
  1956. alt
  1957. />
  1958. </div>
  1959. </div>
  1960. </div>
  1961. <div
  1962. v-if="
  1963. tType &&
  1964. tType == 2 &&
  1965. !sIsOpen &&
  1966. tool.tool.indexOf(69) != -1
  1967. "
  1968. class="worksBox"
  1969. >
  1970. <div
  1971. class="zuoyeYulan"
  1972. v-if="workStudent[toolIndex].length > 0"
  1973. >
  1974. <span class="worksTitle">作业预览</span>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div
  1978. class="worksDetailBox"
  1979. v-if="workStudent[toolIndex].length > 0"
  1980. >
  1981. <div
  1982. class="isWorksName2"
  1983. v-for="(w, wIndex) in workStudent[toolIndex]"
  1984. :key="wIndex"
  1985. @click="
  1986. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1987. "
  1988. >
  1989. {{ w.sName }}
  1990. <img
  1991. class="deleteImg deleteImg2"
  1992. src="../../assets/deleteworks.png"
  1993. v-if="w.userid == userid || tType == 1 || tType == 4"
  1994. @click.stop="deleteWorks(w.wid)"
  1995. alt
  1996. />
  1997. </div>
  1998. </div>
  1999. </div>
  2000. <div
  2001. v-if="
  2002. tType &&
  2003. tType == 2 &&
  2004. !sIsOpen &&
  2005. tool.tool.indexOf(15) != -1
  2006. "
  2007. class="worksBox"
  2008. >
  2009. <div
  2010. class="zuoyeYulan"
  2011. v-if="workStudent[toolIndex].length > 0"
  2012. >
  2013. <span class="worksTitle">作业预览</span>
  2014. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2015. </div>
  2016. <div
  2017. class="worksDetailBox"
  2018. v-if="workStudent[toolIndex].length > 0"
  2019. >
  2020. <div
  2021. class="works"
  2022. v-for="(w, wIndex) in workStudent[toolIndex]"
  2023. :key="wIndex"
  2024. >
  2025. <div class="workImg">
  2026. <!-- <img
  2027. src="../../assets/icon/works/noImg.png"
  2028. @click="openTools(15, toolIndex, taskCount, w.works)"
  2029. alt=""
  2030. />-->
  2031. <div class="answerBg">
  2032. <!-- <div>{{ w.sName }}</div> -->
  2033. <el-tooltip
  2034. class="item"
  2035. effect="light"
  2036. :content="JSON.parse(w.works)[0].answer"
  2037. placement="top"
  2038. >
  2039. <div class="answerContent">
  2040. {{ JSON.parse(w.works)[0].answer }}
  2041. </div>
  2042. </el-tooltip>
  2043. <div
  2044. class="answerScore"
  2045. v-if="w.score"
  2046. @click.stop="openScore(w)"
  2047. :class="{
  2048. rightW:
  2049. w.userid == userid ||
  2050. tType == 1 ||
  2051. tType == 4,
  2052. }"
  2053. >
  2054. {{ JSON.parse(w.score).wScore }}分
  2055. </div>
  2056. <div
  2057. class="answerScore"
  2058. @click.stop="openScore(w)"
  2059. v-else-if="courseDetail.userid == userid"
  2060. :class="{
  2061. rightW:
  2062. w.userid == userid ||
  2063. tType == 1 ||
  2064. tType == 4,
  2065. }"
  2066. >
  2067. 评分
  2068. </div>
  2069. <img
  2070. class="deleteImg"
  2071. src="../../assets/deleteworks.png"
  2072. v-if="
  2073. w.userid == userid || tType == 1 || tType == 4
  2074. "
  2075. @click.stop="deleteWorks(w.wid)"
  2076. alt
  2077. />
  2078. </div>
  2079. <div class="comment">
  2080. <div class="worksName">
  2081. <div>{{ w.sName }}</div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(1) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span class="worksTitle">作业预览</span>
  2102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2103. </div>
  2104. <div
  2105. class="worksDetailBox"
  2106. v-if="workStudent[toolIndex].length > 0"
  2107. >
  2108. <div
  2109. class="works"
  2110. style="
  2111. width: 200px;
  2112. height: 140px;
  2113. margin: 10px 10px 10px 0;
  2114. box-shadow: 0 0 6px 1px #dfdada;
  2115. "
  2116. v-for="(w, wIndex) in workStudent[toolIndex]"
  2117. :key="wIndex"
  2118. >
  2119. <div class="workImg">
  2120. <img
  2121. :src="w.works"
  2122. @click="previewImg(w.works)"
  2123. alt
  2124. />
  2125. <div
  2126. class="answerScore"
  2127. v-if="w.score"
  2128. @click.stop="openScore(w)"
  2129. :class="{
  2130. rightW:
  2131. w.userid == userid || tType == 1 || tType == 4,
  2132. }"
  2133. >
  2134. {{ JSON.parse(w.score).wScore }}分
  2135. </div>
  2136. <div
  2137. class="answerScore"
  2138. @click.stop="openScore(w)"
  2139. v-else-if="courseDetail.userid == userid"
  2140. :class="{
  2141. rightW:
  2142. w.userid == userid || tType == 1 || tType == 4,
  2143. }"
  2144. >
  2145. 评分
  2146. </div>
  2147. <img
  2148. class="deleteImg"
  2149. src="../../assets/deleteworks.png"
  2150. v-if="
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. "
  2153. @click.stop="deleteWorks(w.wid)"
  2154. alt
  2155. />
  2156. </div>
  2157. <div class="worksName">
  2158. <div>{{ w.sName }}</div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. </div>
  2163. <div
  2164. v-if="
  2165. tType &&
  2166. tType == 2 &&
  2167. !sIsOpen &&
  2168. tool.tool.indexOf(3) != -1
  2169. "
  2170. class="worksBox"
  2171. >
  2172. <div
  2173. class="zuoyeYulan"
  2174. v-if="workStudent[toolIndex].length > 0"
  2175. >
  2176. <span class="worksTitle">作业预览</span>
  2177. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2178. </div>
  2179. <div
  2180. class="worksDetailBox"
  2181. v-if="workStudent[toolIndex].length > 0"
  2182. >
  2183. <div
  2184. class="works"
  2185. style="
  2186. width: 200px;
  2187. height: 140px;
  2188. margin: 10px 10px 10px 0;
  2189. box-shadow: 0 0 6px 1px #dfdada;
  2190. "
  2191. v-for="(w, wIndex) in workStudent[toolIndex]"
  2192. :key="wIndex"
  2193. >
  2194. <div class="workImg">
  2195. <img
  2196. :src="w.works"
  2197. @click="previewImg(w.works)"
  2198. alt
  2199. />
  2200. <div
  2201. class="answerScore"
  2202. v-if="w.score"
  2203. @click.stop="openScore(w)"
  2204. :class="{
  2205. rightW:
  2206. w.userid == userid || tType == 1 || tType == 4,
  2207. }"
  2208. >
  2209. {{ JSON.parse(w.score).wScore }}分
  2210. </div>
  2211. <div
  2212. class="answerScore"
  2213. @click.stop="openScore(w)"
  2214. v-else-if="courseDetail.userid == userid"
  2215. :class="{
  2216. rightW:
  2217. w.userid == userid || tType == 1 || tType == 4,
  2218. }"
  2219. >
  2220. 评分
  2221. </div>
  2222. <img
  2223. class="deleteImg"
  2224. src="../../assets/deleteworks.png"
  2225. v-if="
  2226. w.userid == userid || tType == 1 || tType == 4
  2227. "
  2228. @click.stop="deleteWorks(w.wid)"
  2229. alt
  2230. />
  2231. </div>
  2232. <div class="worksName">
  2233. <div>{{ w.sName }}</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div
  2239. v-if="
  2240. tType &&
  2241. tType == 2 &&
  2242. !sIsOpen &&
  2243. tool.tool.indexOf(6) != -1
  2244. "
  2245. class="worksBox"
  2246. >
  2247. <div
  2248. class="zuoyeYulan"
  2249. v-if="workStudent[toolIndex].length > 0"
  2250. >
  2251. <span class="worksTitle">作业预览</span>
  2252. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2253. </div>
  2254. <div
  2255. class="worksDetailBox"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <div
  2259. class="works"
  2260. style="
  2261. width: 200px;
  2262. height: 140px;
  2263. margin: 10px 10px 10px 0;
  2264. box-shadow: 0 0 6px 1px #dfdada;
  2265. "
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <img
  2271. :src="w.works"
  2272. @click="previewImg(w.works)"
  2273. alt
  2274. />
  2275. <div
  2276. class="answerScore"
  2277. v-if="w.score"
  2278. @click.stop="openScore(w)"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid || tType == 1 || tType == 4,
  2282. }"
  2283. >
  2284. {{ JSON.parse(w.score).wScore }}分
  2285. </div>
  2286. <div
  2287. class="answerScore"
  2288. @click.stop="openScore(w)"
  2289. v-else-if="courseDetail.userid == userid"
  2290. :class="{
  2291. rightW:
  2292. w.userid == userid || tType == 1 || tType == 4,
  2293. }"
  2294. >
  2295. 评分
  2296. </div>
  2297. <img
  2298. class="deleteImg"
  2299. src="../../assets/deleteworks.png"
  2300. v-if="
  2301. w.userid == userid || tType == 1 || tType == 4
  2302. "
  2303. @click.stop="deleteWorks(w.wid)"
  2304. alt
  2305. />
  2306. </div>
  2307. <div class="worksName">
  2308. <div>{{ w.sName }}</div>
  2309. </div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. <div
  2314. v-if="
  2315. tType &&
  2316. tType == 2 &&
  2317. !sIsOpen &&
  2318. tool.tool.indexOf(7) != -1
  2319. "
  2320. class="worksBox"
  2321. >
  2322. <div
  2323. class="zuoyeYulan"
  2324. v-if="workStudent[toolIndex].length > 0"
  2325. >
  2326. <span class="worksTitle">作业预览</span>
  2327. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2328. </div>
  2329. <div
  2330. class="worksDetailBox"
  2331. v-if="workStudent[toolIndex].length > 0"
  2332. >
  2333. <div
  2334. class="works"
  2335. style="
  2336. width: 200px;
  2337. height: 140px;
  2338. margin: 10px 10px 10px 0;
  2339. box-shadow: 0 0 6px 1px #dfdada;
  2340. "
  2341. v-for="(w, wIndex) in workStudent[toolIndex]"
  2342. :key="wIndex"
  2343. >
  2344. <div class="workImg">
  2345. <img
  2346. :src="w.works"
  2347. @click="previewImg(w.works)"
  2348. alt
  2349. />
  2350. <div
  2351. class="answerScore"
  2352. v-if="w.score"
  2353. @click.stop="openScore(w)"
  2354. :class="{
  2355. rightW:
  2356. w.userid == userid || tType == 1 || tType == 4,
  2357. }"
  2358. >
  2359. {{ JSON.parse(w.score).wScore }}分
  2360. </div>
  2361. <div
  2362. class="answerScore"
  2363. @click.stop="openScore(w)"
  2364. v-else-if="courseDetail.userid == userid"
  2365. :class="{
  2366. rightW:
  2367. w.userid == userid || tType == 1 || tType == 4,
  2368. }"
  2369. >
  2370. 评分
  2371. </div>
  2372. <img
  2373. class="deleteImg"
  2374. src="../../assets/deleteworks.png"
  2375. v-if="
  2376. w.userid == userid || tType == 1 || tType == 4
  2377. "
  2378. @click.stop="deleteWorks(w.wid)"
  2379. alt
  2380. />
  2381. </div>
  2382. <div class="worksName">
  2383. <div>{{ w.sName }}</div>
  2384. </div>
  2385. </div>
  2386. </div>
  2387. </div>
  2388. <div
  2389. v-if="
  2390. tType &&
  2391. tType == 2 &&
  2392. !sIsOpen &&
  2393. tool.tool.indexOf(26) != -1
  2394. "
  2395. class="worksBox"
  2396. >
  2397. <div
  2398. class="zuoyeYulan"
  2399. v-if="workStudent[toolIndex].length > 0"
  2400. >
  2401. <span class="worksTitle">作业预览</span>
  2402. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2403. </div>
  2404. <div
  2405. class="worksDetailBox"
  2406. v-if="workStudent[toolIndex].length > 0"
  2407. >
  2408. <div
  2409. class="works"
  2410. style="
  2411. width: 200px;
  2412. height: 140px;
  2413. margin: 10px 10px 10px 0;
  2414. box-shadow: 0 0 6px 1px #dfdada;
  2415. "
  2416. v-for="(w, wIndex) in workStudent[toolIndex]"
  2417. :key="wIndex"
  2418. >
  2419. <div class="workImg">
  2420. <img
  2421. :src="w.works"
  2422. @click="previewImg(w.works)"
  2423. alt
  2424. />
  2425. <img
  2426. class="deleteImg"
  2427. src="../../assets/deleteworks.png"
  2428. v-if="
  2429. w.userid == userid || tType == 1 || tType == 4
  2430. "
  2431. @click.stop="deleteWorks(w.wid)"
  2432. alt
  2433. />
  2434. </div>
  2435. <div class="worksName">
  2436. <div>{{ w.sName }}</div>
  2437. </div>
  2438. </div>
  2439. </div>
  2440. </div>
  2441. <div
  2442. v-if="
  2443. tType &&
  2444. ((tType == 2 && sIsOpen == true) ||
  2445. tType == 1 ||
  2446. tType == 4) &&
  2447. tool.tool.indexOf(16) != -1
  2448. "
  2449. class="worksBox"
  2450. >
  2451. <div
  2452. class="zuoyeYulan"
  2453. v-if="
  2454. (worksStudent.length &&
  2455. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2456. "
  2457. >
  2458. <div class="worksTop">
  2459. <div>作业预览</div>
  2460. <div
  2461. class="corOpen"
  2462. @click="contract(toolIndex)"
  2463. v-if="
  2464. (isCloseList[toolIndex].isCloseBoolean) &&
  2465. isCloseList[toolIndex].isClose == 0
  2466. "
  2467. >
  2468. 折叠
  2469. </div>
  2470. <div
  2471. class="corOpen"
  2472. @click="contract(toolIndex)"
  2473. v-if="isCloseList[toolIndex].isClose == 1"
  2474. >
  2475. 展开
  2476. </div>
  2477. </div>
  2478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2479. </div>
  2480. <div
  2481. class="group_workBox"
  2482. v-for="(g, gindex) in courseGroup.group"
  2483. :key="gindex"
  2484. >
  2485. <div class="group_box">
  2486. <div class="group_title">
  2487. <el-tooltip
  2488. class="item"
  2489. effect="light"
  2490. :content="g.name"
  2491. placement="top"
  2492. >
  2493. <div class="group_name">{{ g.name }}</div>
  2494. </el-tooltip>
  2495. </div>
  2496. <div
  2497. class="group_work"
  2498. v-if="
  2499. g.works &&
  2500. g.works.length &&
  2501. g.works[toolIndex].length
  2502. "
  2503. >
  2504. <div
  2505. class="works"
  2506. style="
  2507. width: 200px;
  2508. height: 140px;
  2509. margin: 10px 10px 10px 0;
  2510. border-radius: 15px;
  2511. box-shadow: 0 0 6px 1px #dfdada;
  2512. "
  2513. v-for="(w, wIndex) in g.works[toolIndex]"
  2514. :key="wIndex"
  2515. :class="w.type == 1 ? 'isTypeOne' : ''"
  2516. >
  2517. <div class="workImg" v-if="w.type == 0">
  2518. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2519. <img
  2520. :src="w.works"
  2521. @click="previewImg(w.works)"
  2522. alt
  2523. />
  2524. <div
  2525. class="answerScore"
  2526. v-if="w.score"
  2527. @click.stop="openScore(w)"
  2528. :class="{
  2529. rightW:
  2530. w.userid == userid ||
  2531. tType == 1 ||
  2532. tType == 4 ||
  2533. w.ateacher == userid,
  2534. }"
  2535. >
  2536. {{ JSON.parse(w.score).wScore }}分
  2537. </div>
  2538. <div
  2539. class="answerScore"
  2540. @click.stop="openScore(w)"
  2541. v-else-if="courseDetail.userid == userid"
  2542. :class="{
  2543. rightW:
  2544. w.userid == userid ||
  2545. tType == 1 ||
  2546. tType == 4 ||
  2547. w.ateacher == userid,
  2548. }"
  2549. >
  2550. 评分
  2551. </div>
  2552. <img
  2553. class="deleteImg"
  2554. src="../../assets/deleteworks.png"
  2555. v-if="
  2556. w.userid == userid || tType == 1 || tType == 4
  2557. "
  2558. @click.stop="deleteWorks(w.wid)"
  2559. alt
  2560. />
  2561. </div>
  2562. <div class="workImg" v-if="w.type == 1">
  2563. <img :src="word" @click="openFile(w.works)" alt />
  2564. <!-- @click="openFile(w.works)" -->
  2565. <div
  2566. class="answerScore"
  2567. v-if="w.score"
  2568. @click.stop="openScore(w)"
  2569. :class="{
  2570. rightW:
  2571. w.userid == userid ||
  2572. tType == 1 ||
  2573. tType == 4 ||
  2574. w.ateacher == userid,
  2575. }"
  2576. >
  2577. {{ JSON.parse(w.score).wScore }}分
  2578. </div>
  2579. <div
  2580. class="answerScore"
  2581. @click.stop="openScore(w)"
  2582. v-else-if="courseDetail.userid == userid"
  2583. :class="{
  2584. rightW:
  2585. w.userid == userid ||
  2586. tType == 1 ||
  2587. tType == 4 ||
  2588. w.ateacher == userid,
  2589. }"
  2590. >
  2591. 评分
  2592. </div>
  2593. <img
  2594. class="deleteImg"
  2595. src="../../assets/deleteworks.png"
  2596. v-if="
  2597. w.userid == userid || tType == 1 || tType == 4
  2598. "
  2599. @click.stop="deleteWorks(w.wid)"
  2600. alt
  2601. />
  2602. </div>
  2603. <div class="workImg" v-if="w.type == 3">
  2604. <img
  2605. style="cursor: pointer"
  2606. :src="video"
  2607. @click="openVideo(w)"
  2608. alt
  2609. />
  2610. <!-- @click="openVideo(w.works)" -->
  2611. <div
  2612. class="answerScore"
  2613. v-if="w.score"
  2614. @click.stop="openScore(w)"
  2615. :class="{
  2616. rightW:
  2617. w.userid == userid ||
  2618. tType == 1 ||
  2619. tType == 4 ||
  2620. w.ateacher == userid,
  2621. }"
  2622. >
  2623. {{ JSON.parse(w.score).wScore }}分
  2624. </div>
  2625. <div
  2626. class="answerScore"
  2627. @click.stop="openScore(w)"
  2628. v-else-if="courseDetail.userid == userid"
  2629. :class="{
  2630. rightW:
  2631. w.userid == userid ||
  2632. tType == 1 ||
  2633. tType == 4 ||
  2634. w.ateacher == userid,
  2635. }"
  2636. >
  2637. 评分
  2638. </div>
  2639. <img
  2640. class="deleteImg"
  2641. src="../../assets/deleteworks.png"
  2642. v-if="
  2643. w.userid == userid || tType == 1 || tType == 4
  2644. "
  2645. @click.stop="deleteWorks(w.wid)"
  2646. alt
  2647. />
  2648. </div>
  2649. <div class="workImg" v-if="w.type == 12">
  2650. <img
  2651. style="cursor: pointer"
  2652. :src="word2"
  2653. @click="downloadFile(w.works)"
  2654. alt
  2655. />
  2656. <!-- @click="openVideo(w.works)" -->
  2657. <div
  2658. class="answerScore"
  2659. v-if="w.score"
  2660. @click.stop="openScore(w)"
  2661. :class="{
  2662. rightW:
  2663. w.userid == userid ||
  2664. tType == 1 ||
  2665. tType == 4 ||
  2666. w.ateacher == userid,
  2667. }"
  2668. >
  2669. {{ JSON.parse(w.score).wScore }}分
  2670. </div>
  2671. <div
  2672. class="answerScore"
  2673. @click.stop="openScore(w)"
  2674. v-else-if="courseDetail.userid == userid"
  2675. :class="{
  2676. rightW:
  2677. w.userid == userid ||
  2678. tType == 1 ||
  2679. tType == 4 ||
  2680. w.ateacher == userid,
  2681. }"
  2682. >
  2683. 评分
  2684. </div>
  2685. <img
  2686. class="deleteImg"
  2687. src="../../assets/deleteworks.png"
  2688. v-if="
  2689. w.userid == userid || tType == 1 || tType == 4
  2690. "
  2691. @click.stop="deleteWorks(w.wid)"
  2692. alt
  2693. />
  2694. </div>
  2695. <div class="comment" style="min-width: 200px">
  2696. <div class="worksName">
  2697. <div>{{ w.sName }}</div>
  2698. </div>
  2699. <div class="commentList">
  2700. <div class="commentList">
  2701. <div
  2702. class="commentImg"
  2703. @click="
  2704. isLikes(w.wid, userid, 1, null, w.isLikes)
  2705. "
  2706. >
  2707. <img
  2708. :src="w.isLikes == true ? likes : noLikes"
  2709. alt=""
  2710. />
  2711. </div>
  2712. <div>{{ w.likesCount }}</div>
  2713. </div>
  2714. <div
  2715. class="commentList"
  2716. style="margin-right: 15px"
  2717. >
  2718. <div
  2719. class="commentImg"
  2720. @click="
  2721. commentOther(
  2722. w,
  2723. toolIndex,
  2724. wIndex,
  2725. null,
  2726. g.id
  2727. )
  2728. "
  2729. >
  2730. <img
  2731. src="../../assets/icon/comment/comment.png"
  2732. alt=""
  2733. />
  2734. </div>
  2735. <div>{{ w.commentCount }}</div>
  2736. </div>
  2737. </div>
  2738. </div>
  2739. </div>
  2740. </div>
  2741. <div class="group_work" v-else>暂无提交作业</div>
  2742. </div>
  2743. </div>
  2744. <div
  2745. :id="'tool-' + toolIndex"
  2746. :style="{
  2747. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2748. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2749. }"
  2750. class="worksDetailBox"
  2751. v-if="
  2752. worksStudent.length &&
  2753. worksStudent[toolIndex].length > 0
  2754. "
  2755. >
  2756. <div
  2757. class="works"
  2758. style="
  2759. width: 200px;
  2760. height: 140px;
  2761. margin: 10px 10px 10px 0;
  2762. border-radius: 15px;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2766. :key="wIndex"
  2767. :class="w.type == 1 ? 'isTypeOne' : ''"
  2768. >
  2769. <div class="workImg" v-if="w.type == 0">
  2770. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2771. <img
  2772. :src="w.works"
  2773. @click="previewImg(w.works)"
  2774. alt
  2775. />
  2776. <div
  2777. class="answerScore"
  2778. v-if="w.score"
  2779. @click.stop="openScore(w)"
  2780. :class="{
  2781. rightW:
  2782. w.userid == userid ||
  2783. tType == 1 ||
  2784. tType == 4 ||
  2785. w.ateacher == userid,
  2786. }"
  2787. >
  2788. {{ JSON.parse(w.score).wScore }}分
  2789. </div>
  2790. <div
  2791. class="answerScore"
  2792. @click.stop="openScore(w)"
  2793. v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid ||
  2797. tType == 1 ||
  2798. tType == 4 ||
  2799. w.ateacher == userid,
  2800. }"
  2801. >
  2802. 评分
  2803. </div>
  2804. <img
  2805. class="deleteImg"
  2806. src="../../assets/deleteworks.png"
  2807. v-if="
  2808. w.userid == userid || tType == 1 || tType == 4
  2809. "
  2810. @click.stop="deleteWorks(w.wid)"
  2811. alt
  2812. />
  2813. </div>
  2814. <div class="workImg" v-if="w.type == 1">
  2815. <img :src="word" @click="openFile(w.works)" alt />
  2816. <!-- @click="openFile(w.works)" -->
  2817. <div
  2818. class="answerScore"
  2819. v-if="w.score"
  2820. @click.stop="openScore(w)"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. {{ JSON.parse(w.score).wScore }}分
  2830. </div>
  2831. <div
  2832. class="answerScore"
  2833. @click.stop="openScore(w)"
  2834. v-else-if="courseDetail.userid == userid"
  2835. :class="{
  2836. rightW:
  2837. w.userid == userid ||
  2838. tType == 1 ||
  2839. tType == 4 ||
  2840. w.ateacher == userid,
  2841. }"
  2842. >
  2843. 评分
  2844. </div>
  2845. <img
  2846. class="deleteImg"
  2847. src="../../assets/deleteworks.png"
  2848. v-if="
  2849. w.userid == userid || tType == 1 || tType == 4
  2850. "
  2851. @click.stop="deleteWorks(w.wid)"
  2852. alt
  2853. />
  2854. </div>
  2855. <div class="workImg" v-if="w.type == 3">
  2856. <img
  2857. style="cursor: pointer"
  2858. :src="video"
  2859. @click="openVideo(w)"
  2860. alt
  2861. />
  2862. <!-- @click="openVideo(w.works)" -->
  2863. <div
  2864. class="answerScore"
  2865. v-if="w.score"
  2866. @click.stop="openScore(w)"
  2867. :class="{
  2868. rightW:
  2869. w.userid == userid ||
  2870. tType == 1 ||
  2871. tType == 4 ||
  2872. w.ateacher == userid,
  2873. }"
  2874. >
  2875. {{ JSON.parse(w.score).wScore }}分
  2876. </div>
  2877. <div
  2878. class="answerScore"
  2879. @click.stop="openScore(w)"
  2880. v-else-if="courseDetail.userid == userid"
  2881. :class="{
  2882. rightW:
  2883. w.userid == userid ||
  2884. tType == 1 ||
  2885. tType == 4 ||
  2886. w.ateacher == userid,
  2887. }"
  2888. >
  2889. 评分
  2890. </div>
  2891. <img
  2892. class="deleteImg"
  2893. src="../../assets/deleteworks.png"
  2894. v-if="
  2895. w.userid == userid || tType == 1 || tType == 4
  2896. "
  2897. @click.stop="deleteWorks(w.wid)"
  2898. alt
  2899. />
  2900. </div>
  2901. <div class="workImg" v-if="w.type == 12">
  2902. <img
  2903. style="cursor: pointer"
  2904. :src="word2"
  2905. @click="downloadFile(w.works)"
  2906. alt
  2907. />
  2908. <!-- @click="openVideo(w.works)" -->
  2909. <div
  2910. class="answerScore"
  2911. v-if="w.score"
  2912. @click.stop="openScore(w)"
  2913. :class="{
  2914. rightW:
  2915. w.userid == userid ||
  2916. tType == 1 ||
  2917. tType == 4 ||
  2918. w.ateacher == userid,
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid ||
  2930. tType == 1 ||
  2931. tType == 4 ||
  2932. w.ateacher == userid,
  2933. }"
  2934. >
  2935. 评分
  2936. </div>
  2937. <img
  2938. class="deleteImg"
  2939. src="../../assets/deleteworks.png"
  2940. v-if="
  2941. w.userid == userid || tType == 1 || tType == 4
  2942. "
  2943. @click.stop="deleteWorks(w.wid)"
  2944. alt
  2945. />
  2946. </div>
  2947. <div class="comment" style="min-width: 200px">
  2948. <div class="worksName">
  2949. <div>{{ w.sName }}</div>
  2950. </div>
  2951. <div class="commentList">
  2952. <div class="commentList">
  2953. <div
  2954. class="commentImg"
  2955. @click="
  2956. isLikes(w.wid, userid, 1, null, w.isLikes)
  2957. "
  2958. >
  2959. <img
  2960. :src="w.isLikes == true ? likes : noLikes"
  2961. alt=""
  2962. />
  2963. </div>
  2964. <div>{{ w.likesCount }}</div>
  2965. </div>
  2966. <div class="commentList" style="margin-right: 15px">
  2967. <div
  2968. class="commentImg"
  2969. @click="commentOther(w, toolIndex, wIndex)"
  2970. >
  2971. <img
  2972. src="../../assets/icon/comment/comment.png"
  2973. alt=""
  2974. />
  2975. </div>
  2976. <div>{{ w.commentCount }}</div>
  2977. </div>
  2978. </div>
  2979. </div>
  2980. </div>
  2981. </div>
  2982. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2983. 未提交
  2984. </div>
  2985. <div
  2986. class="noWorksS"
  2987. v-if="noWorksS && noWorksS[toolIndex].length"
  2988. >
  2989. <div
  2990. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2991. :key="sIndex"
  2992. class="noWorksName"
  2993. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2994. >
  2995. <el-tooltip effect="dark" :content="s.student" placement="top">
  2996. <span>{{ s.student }}</span>
  2997. </el-tooltip>
  2998. </div>
  2999. </div>
  3000. </div>
  3001. <div
  3002. v-if="
  3003. tType &&
  3004. ((tType == 2 && sIsOpen == true) ||
  3005. tType == 1 ||
  3006. tType == 4) &&
  3007. tool.tool.indexOf(70) != -1
  3008. "
  3009. class="worksBox"
  3010. >
  3011. <div
  3012. class="zuoyeYulan"
  3013. v-if="
  3014. (worksStudent.length &&
  3015. worksStudent[toolIndex].length > 0)
  3016. "
  3017. >
  3018. <div class="worksTop">
  3019. <div>作业预览</div>
  3020. <div
  3021. class="corOpen"
  3022. @click="contract(toolIndex)"
  3023. v-if="
  3024. (isCloseList[toolIndex].isCloseBoolean) &&
  3025. isCloseList[toolIndex].isClose == 0
  3026. "
  3027. >
  3028. 折叠
  3029. </div>
  3030. <div
  3031. class="corOpen"
  3032. @click="contract(toolIndex)"
  3033. v-if="isCloseList[toolIndex].isClose == 1"
  3034. >
  3035. 展开
  3036. </div>
  3037. </div>
  3038. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3039. </div>
  3040. <div
  3041. :id="'tool-' + toolIndex"
  3042. :style="{
  3043. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3044. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3045. }"
  3046. class="worksDetailBox"
  3047. v-if="
  3048. worksStudent.length &&
  3049. worksStudent[toolIndex].length > 0
  3050. "
  3051. >
  3052. <div
  3053. class="works"
  3054. style="
  3055. width: 200px;
  3056. height: 140px;
  3057. margin: 10px 10px 10px 0;
  3058. border-radius: 15px;
  3059. box-shadow: 0 0 6px 1px #dfdada;
  3060. "
  3061. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3062. :key="wIndex"
  3063. :class="w.type == 1 ? 'isTypeOne' : ''"
  3064. >
  3065. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3066. <img :src="word" alt />
  3067. <img
  3068. class="deleteImg"
  3069. src="../../assets/deleteworks.png"
  3070. v-if="
  3071. w.userid == userid || tType == 1 || tType == 4
  3072. "
  3073. @click.stop="deleteWorks(w.wid)"
  3074. alt
  3075. />
  3076. </div>
  3077. <div class="comment" style="min-width: 200px">
  3078. <div class="worksName">
  3079. <div>{{ w.sName }}</div>
  3080. </div>
  3081. </div>
  3082. </div>
  3083. </div>
  3084. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3085. 未提交
  3086. </div>
  3087. <div
  3088. class="noWorksS"
  3089. v-if="noWorksS && noWorksS[toolIndex].length"
  3090. >
  3091. <div
  3092. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3093. :key="sIndex"
  3094. class="noWorksName"
  3095. >
  3096. <el-tooltip effect="dark" :content="s.student" placement="top">
  3097. <span>{{ s.student }}</span>
  3098. </el-tooltip>
  3099. </div>
  3100. </div>
  3101. </div>
  3102. <div
  3103. v-if="
  3104. tType &&
  3105. tType == 2 &&
  3106. !sIsOpen &&
  3107. tool.tool.indexOf(70) != -1
  3108. "
  3109. class="worksBox"
  3110. >
  3111. <div
  3112. class="zuoyeYulan"
  3113. v-if="workStudent[toolIndex].length > 0"
  3114. >
  3115. <span class="worksTitle">作业预览</span>
  3116. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3117. </div>
  3118. <div
  3119. class="worksDetailBox"
  3120. v-if="workStudent[toolIndex].length > 0"
  3121. >
  3122. <div
  3123. class="works"
  3124. style="
  3125. width: 200px;
  3126. height: 140px;
  3127. margin: 10px 10px 10px 0;
  3128. box-shadow: 0 0 6px 1px #dfdada;
  3129. "
  3130. v-for="(w, wIndex) in workStudent[toolIndex]"
  3131. :key="wIndex"
  3132. >
  3133. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3134. <img :src="word" alt />
  3135. <img
  3136. class="deleteImg"
  3137. src="../../assets/deleteworks.png"
  3138. v-if="
  3139. w.userid == userid || tType == 1 || tType == 4
  3140. "
  3141. @click.stop="deleteWorks(w.wid)"
  3142. alt
  3143. />
  3144. </div>
  3145. <div class="worksName">
  3146. <div>{{ w.sName }}</div>
  3147. </div>
  3148. </div>
  3149. </div>
  3150. </div>
  3151. <div
  3152. v-if="
  3153. tType &&
  3154. ((tType == 2 && sIsOpen == true) ||
  3155. tType == 1 ||
  3156. tType == 4) &&
  3157. tool.tool.indexOf(32) != -1
  3158. "
  3159. class="worksBox"
  3160. >
  3161. <div
  3162. class="zuoyeYulan"
  3163. v-if="
  3164. worksStudent.length &&
  3165. worksStudent[toolIndex].length > 0
  3166. "
  3167. >
  3168. <div class="worksTop">
  3169. <div>作业预览</div>
  3170. <div
  3171. class="corOpen"
  3172. @click="contract(toolIndex)"
  3173. v-if="
  3174. (isCloseList[toolIndex].isCloseBoolean) &&
  3175. isCloseList[toolIndex].isClose == 0
  3176. "
  3177. >
  3178. 折叠
  3179. </div>
  3180. <div
  3181. class="corOpen"
  3182. @click="contract(toolIndex)"
  3183. v-if="isCloseList[toolIndex].isClose == 1"
  3184. >
  3185. 展开
  3186. </div>
  3187. </div>
  3188. </div>
  3189. <div
  3190. :id="'tool-' + toolIndex"
  3191. :style="{
  3192. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3193. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3194. }"
  3195. class="worksDetailBox"
  3196. v-if="
  3197. worksStudent.length &&
  3198. worksStudent[toolIndex].length > 0
  3199. "
  3200. >
  3201. <div
  3202. class="works"
  3203. style="
  3204. width: 200px;
  3205. height: 140px;
  3206. margin: 10px 10px 10px 0;
  3207. border-radius: 15px;
  3208. box-shadow: 0 0 6px 1px #dfdada;
  3209. "
  3210. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3211. :key="wIndex"
  3212. :class="w.type == 1 ? 'isTypeOne' : ''"
  3213. >
  3214. <div class="workImg">
  3215. <img
  3216. :src="word2"
  3217. @click="downloadFile(w.works)"
  3218. alt
  3219. />
  3220. <div
  3221. class="answerScore"
  3222. v-if="w.score"
  3223. @click.stop="openScore(w)"
  3224. :class="{
  3225. rightW:
  3226. w.userid == userid ||
  3227. tType == 1 ||
  3228. tType == 4 ||
  3229. w.ateacher == userid,
  3230. }"
  3231. >
  3232. {{ JSON.parse(w.score).wScore }}分
  3233. </div>
  3234. <div
  3235. class="answerScore"
  3236. @click.stop="openScore(w)"
  3237. v-else-if="courseDetail.userid == userid"
  3238. :class="{
  3239. rightW:
  3240. w.userid == userid ||
  3241. tType == 1 ||
  3242. tType == 4 ||
  3243. w.ateacher == userid,
  3244. }"
  3245. >
  3246. 评分
  3247. </div>
  3248. <img
  3249. class="deleteImg"
  3250. src="../../assets/deleteworks.png"
  3251. v-if="
  3252. w.userid == userid || tType == 1 || tType == 4
  3253. "
  3254. @click.stop="deleteWorks(w.wid)"
  3255. alt
  3256. />
  3257. </div>
  3258. <div class="comment" style="min-width: 200px">
  3259. <div class="worksName">
  3260. <div>{{ w.sName }}</div>
  3261. </div>
  3262. <div class="commentList">
  3263. <div class="commentList">
  3264. <div
  3265. class="commentImg"
  3266. @click="
  3267. isLikes(w.wid, userid, 1, null, w.isLikes)
  3268. "
  3269. >
  3270. <img
  3271. :src="w.isLikes == true ? likes : noLikes"
  3272. alt=""
  3273. />
  3274. </div>
  3275. <div>{{ w.likesCount }}</div>
  3276. </div>
  3277. <div class="commentList" style="margin-right: 15px">
  3278. <div
  3279. class="commentImg"
  3280. @click="commentOther(w, toolIndex, wIndex)"
  3281. >
  3282. <img
  3283. src="../../assets/icon/comment/comment.png"
  3284. alt=""
  3285. />
  3286. </div>
  3287. <div>{{ w.commentCount }}</div>
  3288. </div>
  3289. </div>
  3290. </div>
  3291. </div>
  3292. </div>
  3293. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3294. 未提交
  3295. </div>
  3296. <div
  3297. class="noWorksS"
  3298. v-if="noWorksS && noWorksS[toolIndex].length"
  3299. >
  3300. <div
  3301. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3302. :key="sIndex"
  3303. class="noWorksName"
  3304. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3305. >
  3306. <el-tooltip effect="dark" :content="s.student" placement="top">
  3307. <span>{{ s.student }}</span>
  3308. </el-tooltip>
  3309. </div>
  3310. </div>
  3311. </div>
  3312. <div
  3313. v-if="
  3314. tType &&
  3315. ((tType == 2 && sIsOpen == true) ||
  3316. tType == 1 ||
  3317. tType == 4) &&
  3318. tool.tool.indexOf(57) != -1
  3319. "
  3320. class="worksBox"
  3321. >
  3322. <div
  3323. class="zuoyeYulan"
  3324. v-if="
  3325. worksStudent.length &&
  3326. worksStudent[toolIndex].length > 0
  3327. "
  3328. >
  3329. <div class="worksTop">
  3330. <div>作业预览</div>
  3331. <div
  3332. class="corOpen"
  3333. @click="contract(toolIndex)"
  3334. v-if="
  3335. (isCloseList[toolIndex].isCloseBoolean) &&
  3336. isCloseList[toolIndex].isClose == 0
  3337. "
  3338. >
  3339. 折叠
  3340. </div>
  3341. <div
  3342. class="corOpen"
  3343. @click="contract(toolIndex)"
  3344. v-if="isCloseList[toolIndex].isClose == 1"
  3345. >
  3346. 展开
  3347. </div>
  3348. </div>
  3349. </div>
  3350. <div
  3351. :id="'tool-' + toolIndex"
  3352. :style="{
  3353. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3354. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3355. }"
  3356. class="worksDetailBox"
  3357. v-if="
  3358. worksStudent.length &&
  3359. worksStudent[toolIndex].length > 0
  3360. "
  3361. >
  3362. <div
  3363. class="works"
  3364. style="
  3365. width: 200px;
  3366. height: 140px;
  3367. margin: 10px 10px 10px 0;
  3368. border-radius: 15px;
  3369. box-shadow: 0 0 6px 1px #dfdada;
  3370. "
  3371. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3372. :key="wIndex"
  3373. :class="w.type == 1 ? 'isTypeOne' : ''"
  3374. >
  3375. <div class="workImg">
  3376. <img
  3377. :src="word2"
  3378. @click="downloadFile(w.works)"
  3379. v-if="w.type == 12"
  3380. alt
  3381. />
  3382. <img
  3383. :src="word2"
  3384. @click="
  3385. openCocoPi(57, toolIndex, w.userid, w.sName)
  3386. "
  3387. v-else-if="w.type == 15"
  3388. alt
  3389. />
  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="comment" style="min-width: 200px">
  3429. <div class="worksName">
  3430. <div>{{ w.sName }}</div>
  3431. </div>
  3432. <div class="commentList">
  3433. <div class="commentList">
  3434. <div
  3435. class="commentImg"
  3436. @click="
  3437. isLikes(w.wid, userid, 1, null, w.isLikes)
  3438. "
  3439. >
  3440. <img
  3441. :src="w.isLikes == true ? likes : noLikes"
  3442. alt=""
  3443. />
  3444. </div>
  3445. <div>{{ w.likesCount }}</div>
  3446. </div>
  3447. <div class="commentList" style="margin-right: 15px">
  3448. <div
  3449. class="commentImg"
  3450. @click="commentOther(w, toolIndex, wIndex)"
  3451. >
  3452. <img
  3453. src="../../assets/icon/comment/comment.png"
  3454. alt=""
  3455. />
  3456. </div>
  3457. <div>{{ w.commentCount }}</div>
  3458. </div>
  3459. </div>
  3460. </div>
  3461. </div>
  3462. </div>
  3463. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3464. 未提交
  3465. </div>
  3466. <div
  3467. class="noWorksS"
  3468. v-if="noWorksS && noWorksS[toolIndex].length"
  3469. >
  3470. <div
  3471. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3472. :key="sIndex"
  3473. class="noWorksName"
  3474. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3475. >
  3476. <el-tooltip effect="dark" :content="s.student" placement="top">
  3477. <span>{{ s.student }}</span>
  3478. </el-tooltip>
  3479. </div>
  3480. </div>
  3481. </div>
  3482. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3483. <div
  3484. class="zuoyeYulan"
  3485. v-if="
  3486. worksStudent.length &&
  3487. worksStudent[toolIndex].length > 0
  3488. "
  3489. >
  3490. <span class="worksTitle">作业预览</span>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. (isCloseList[toolIndex].isCloseBoolean) &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <div
  3510. :id="'tool-' + toolIndex"
  3511. :style="{
  3512. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3513. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3514. }"
  3515. class="worksDetailBox"
  3516. v-if="
  3517. worksStudent.length &&
  3518. worksStudent[toolIndex].length > 0
  3519. "
  3520. >
  3521. <div
  3522. class="works"
  3523. style="
  3524. width: 200px;
  3525. height: 140px;
  3526. margin: 10px 10px 10px 0;
  3527. border-radius: 15px;
  3528. box-shadow: 0 0 6px 1px #dfdada;
  3529. "
  3530. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3531. :key="wIndex"
  3532. :class="w.type == 1 ? 'isTypeOne' : ''"
  3533. >
  3534. <div class="workImg" v-if="w.type == 0">
  3535. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3536. <img
  3537. :src="w.works"
  3538. @click="previewImg(w.works)"
  3539. alt
  3540. />
  3541. <div
  3542. class="answerScore"
  3543. v-if="w.score"
  3544. @click.stop="openScore(w)"
  3545. :class="{
  3546. rightW:
  3547. w.userid == userid ||
  3548. tType == 1 ||
  3549. tType == 4 ||
  3550. w.ateacher == userid,
  3551. }"
  3552. >
  3553. {{ JSON.parse(w.score).wScore }}分
  3554. </div>
  3555. <div
  3556. class="answerScore"
  3557. @click.stop="openScore(w)"
  3558. v-else-if="courseDetail.userid == userid"
  3559. :class="{
  3560. rightW:
  3561. w.userid == userid ||
  3562. tType == 1 ||
  3563. tType == 4 ||
  3564. w.ateacher == userid,
  3565. }"
  3566. >
  3567. 评分
  3568. </div>
  3569. <img
  3570. class="deleteImg"
  3571. src="../../assets/deleteworks.png"
  3572. v-if="
  3573. w.userid == userid || tType == 1 || tType == 4
  3574. "
  3575. @click.stop="deleteWorks(w.wid)"
  3576. alt
  3577. />
  3578. </div>
  3579. <div
  3580. class="workImg"
  3581. style="cursor: pointer"
  3582. v-if="w.type == 1"
  3583. >
  3584. <img :src="word" @click="openFile(w.works)" alt />
  3585. <!-- @click="openFile(w.works)" -->
  3586. <div
  3587. class="answerScore"
  3588. v-if="w.score"
  3589. @click.stop="openScore(w)"
  3590. :class="{
  3591. rightW:
  3592. w.userid == userid ||
  3593. tType == 1 ||
  3594. tType == 4 ||
  3595. w.ateacher == userid,
  3596. }"
  3597. >
  3598. {{ JSON.parse(w.score).wScore }}分
  3599. </div>
  3600. <div
  3601. class="answerScore"
  3602. @click.stop="openScore(w)"
  3603. v-else-if="courseDetail.userid == userid"
  3604. :class="{
  3605. rightW:
  3606. w.userid == userid ||
  3607. tType == 1 ||
  3608. tType == 4 ||
  3609. w.ateacher == userid,
  3610. }"
  3611. >
  3612. 评分
  3613. </div>
  3614. <img
  3615. class="deleteImg"
  3616. src="../../assets/deleteworks.png"
  3617. v-if="
  3618. w.userid == userid || tType == 1 || tType == 4
  3619. "
  3620. @click.stop="deleteWorks(w.wid)"
  3621. alt
  3622. />
  3623. </div>
  3624. <div class="workImg" v-if="w.type == 3">
  3625. <img
  3626. style="cursor: pointer"
  3627. :src="video"
  3628. @click="openVideo(w)"
  3629. alt
  3630. />
  3631. <!-- @click="openVideo(w.works)" -->
  3632. <div
  3633. class="answerScore"
  3634. v-if="w.score"
  3635. @click.stop="openScore(w)"
  3636. :class="{
  3637. rightW:
  3638. w.userid == userid ||
  3639. tType == 1 ||
  3640. tType == 4 ||
  3641. w.ateacher == userid,
  3642. }"
  3643. >
  3644. {{ JSON.parse(w.score).wScore }}分
  3645. </div>
  3646. <div
  3647. class="answerScore"
  3648. @click.stop="openScore(w)"
  3649. v-else-if="courseDetail.userid == userid"
  3650. :class="{
  3651. rightW:
  3652. w.userid == userid ||
  3653. tType == 1 ||
  3654. tType == 4 ||
  3655. w.ateacher == userid,
  3656. }"
  3657. >
  3658. 评分
  3659. </div>
  3660. <img
  3661. class="deleteImg"
  3662. src="../../assets/deleteworks.png"
  3663. v-if="
  3664. w.userid == userid || tType == 1 || tType == 4
  3665. "
  3666. @click.stop="deleteWorks(w.wid)"
  3667. alt
  3668. />
  3669. </div>
  3670. <div class="comment" style="min-width: 200px">
  3671. <div class="worksName">
  3672. <div
  3673. style="cursor: pointer"
  3674. @click="
  3675. openSname(w.sName, w.wid, toolIndex, w.userid)
  3676. "
  3677. >
  3678. {{ w.sName }}
  3679. </div>
  3680. </div>
  3681. <div class="commentList">
  3682. <div class="commentList">
  3683. <div
  3684. class="commentImg"
  3685. @click="
  3686. isLikes(w.wid, userid, 1, null, w.isLikes)
  3687. "
  3688. >
  3689. <img
  3690. :src="w.isLikes == true ? likes : noLikes"
  3691. alt=""
  3692. />
  3693. </div>
  3694. <div>{{ w.likesCount }}</div>
  3695. </div>
  3696. <div class="commentList" style="margin-right: 15px">
  3697. <div
  3698. class="commentImg"
  3699. @click="commentOther(w, toolIndex, wIndex)"
  3700. >
  3701. <img
  3702. src="../../assets/icon/comment/comment.png"
  3703. alt=""
  3704. />
  3705. </div>
  3706. <div>{{ w.commentCount }}</div>
  3707. </div>
  3708. </div>
  3709. </div>
  3710. </div>
  3711. </div>
  3712. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3713. 未提交
  3714. </div>
  3715. <div
  3716. class="noWorksS"
  3717. v-if="noWorksS && noWorksS[toolIndex].length"
  3718. >
  3719. <div
  3720. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3721. :key="sIndex"
  3722. class="noWorksName"
  3723. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3724. >
  3725. <el-tooltip effect="dark" :content="s.student" placement="top">
  3726. <span>{{ s.student }}</span>
  3727. </el-tooltip>
  3728. </div>
  3729. </div>
  3730. </div>
  3731. <div
  3732. v-if="
  3733. tType &&
  3734. ((tType == 2 && sIsOpen == true) ||
  3735. tType == 1 ||
  3736. tType == 4) &&
  3737. tool.tool.indexOf(4) != -1 &&
  3738. (tool.askJson[0].answer ||
  3739. tool.askJson[0].answer === 0) &&
  3740. checkJson[toolIndex].length
  3741. "
  3742. class="xuan_right_box"
  3743. >
  3744. <div
  3745. class="tool_right_box"
  3746. v-for="(item, index) in tool.askJson"
  3747. :key="index"
  3748. >
  3749. <div style="width: calc(100% - 30px);">
  3750. <el-tooltip
  3751. effect="light"
  3752. :content="index + 1 + '、' + item.askstitle"
  3753. placement="top"
  3754. popper-class="text_tooltip"
  3755. >
  3756. <div
  3757. style="
  3758. width: calc(100% - 130px);
  3759. display: block;
  3760. white-space: nowrap;
  3761. overflow: hidden;
  3762. text-overflow: ellipsis;
  3763. word-break: break-word;
  3764. cursor: pointer;
  3765. "
  3766. >
  3767. {{ index + 1 + "、" + item.askstitle }}
  3768. </div>
  3769. </el-tooltip>
  3770. </div>
  3771. <div class="right_box_xuan">
  3772. <span>正确率</span>
  3773. <span>{{
  3774. (checkJson[toolIndex][index].right
  3775. ? checkJson[toolIndex][index].right
  3776. : 0) + "%"
  3777. }}</span>
  3778. </div>
  3779. </div>
  3780. </div>
  3781. <div
  3782. class="xuan_right_box"
  3783. style="background: unset; padding: 0 10px"
  3784. v-if="
  3785. tType &&
  3786. ((tType == 2 && sIsOpen == true) ||
  3787. tType == 1 ||
  3788. tType == 4) &&
  3789. tool.tool.indexOf(4) != -1
  3790. "
  3791. >
  3792. <AskStatic
  3793. v-if="
  3794. worksStudent.length &&
  3795. worksStudent[toolIndex].length > 0
  3796. "
  3797. :askJSON="tool"
  3798. :checkJson="checkJson[toolIndex]"
  3799. ></AskStatic>
  3800. </div>
  3801. <div
  3802. v-if="
  3803. tType &&
  3804. ((tType == 2 && sIsOpen == true) ||
  3805. tType == 1 ||
  3806. tType == 4) &&
  3807. tool.tool.indexOf(4) != -1
  3808. "
  3809. class="worksBox"
  3810. >
  3811. <div
  3812. class="zuoyeYulan"
  3813. v-if="
  3814. worksStudent.length &&
  3815. worksStudent[toolIndex].length > 0
  3816. "
  3817. >
  3818. <div class="worksTop">
  3819. <div>作业预览</div>
  3820. <div
  3821. class="corOpen"
  3822. @click="contract(toolIndex)"
  3823. v-if="
  3824. (isCloseList[toolIndex].isCloseBoolean) &&
  3825. isCloseList[toolIndex].isClose == 0
  3826. "
  3827. >
  3828. 折叠
  3829. </div>
  3830. <div
  3831. class="corOpen"
  3832. @click="contract(toolIndex)"
  3833. v-if="isCloseList[toolIndex].isClose == 1"
  3834. >
  3835. 展开
  3836. </div>
  3837. </div>
  3838. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3839. </div>
  3840. <div>
  3841. <div
  3842. :id="'tool-' + toolIndex"
  3843. :style="{
  3844. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3845. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3846. }"
  3847. class="worksDetailBox"
  3848. v-if="
  3849. worksStudent.length &&
  3850. worksStudent[toolIndex].length > 0
  3851. "
  3852. >
  3853. <div
  3854. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3855. :key="wIndex"
  3856. class="isWorksName2"
  3857. @click="
  3858. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3859. "
  3860. >
  3861. {{ w.sName }}
  3862. <img
  3863. class="deleteImg deleteImg2"
  3864. src="../../assets/deleteworks.png"
  3865. v-if="
  3866. w.userid == userid || tType == 1 || tType == 4
  3867. "
  3868. @click.stop="deleteWorks(w.wid)"
  3869. alt
  3870. />
  3871. </div>
  3872. <!-- <div class="works" style="
  3873. width: 200px;
  3874. height: 140px;
  3875. border-radius: 10px;
  3876. box-shadow: 0 0 6px 1px #dfdada;
  3877. overflow: hidden;
  3878. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3879. <div class="workImg">
  3880. <img src="../../assets/icon/works/noImg.png" @click="
  3881. openTools(
  3882. 4,
  3883. toolIndex,
  3884. taskCount,
  3885. w.works,
  3886. w.sName
  3887. )
  3888. " alt />
  3889. </div>
  3890. <div class="worksName">
  3891. <div>{{ w.sName }}</div>
  3892. <div>{{ w.time }}</div>
  3893. </div>
  3894. </div> -->
  3895. </div>
  3896. </div>
  3897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3898. 未提交
  3899. </div>
  3900. <div
  3901. class="noWorksS"
  3902. v-if="noWorksS && noWorksS[toolIndex].length"
  3903. >
  3904. <div
  3905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3906. :key="sIndex"
  3907. class="noWorksName"
  3908. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3909. >
  3910. <el-tooltip effect="dark" :content="s.student" placement="top">
  3911. <span>{{ s.student }}</span>
  3912. </el-tooltip>
  3913. </div>
  3914. </div>
  3915. </div>
  3916. <div
  3917. v-if="
  3918. tType &&
  3919. ((tType == 2 && sIsOpen == true) ||
  3920. tType == 1 ||
  3921. tType == 4) &&
  3922. tool.tool.indexOf(45) != -1 &&
  3923. (tool.testJson.testJson[0].answer ||
  3924. tool.testJson.testJson[0].answer === 0) &&
  3925. checkJson[toolIndex].length
  3926. "
  3927. class="xuan_right_box"
  3928. >
  3929. <div
  3930. class="tool_right_box"
  3931. v-for="(item, index) in tool.testJson.testJson"
  3932. :key="index"
  3933. >
  3934. <div class="right_box_xuan" style="margin-right: 10px">
  3935. <span>正确率</span>
  3936. <span>{{
  3937. (checkJson[toolIndex][index].right
  3938. ? checkJson[toolIndex][index].right
  3939. : 0) + "%"
  3940. }}</span>
  3941. </div>
  3942. <div style="width: calc(100% - 30px);">
  3943. <el-tooltip
  3944. effect="light"
  3945. :content="index + 1 + '、' + item.teststitle"
  3946. placement="top"
  3947. popper-class="text_tooltip"
  3948. >
  3949. <div
  3950. style="
  3951. width: calc(100% - 130px);
  3952. display: block;
  3953. white-space: nowrap;
  3954. overflow: hidden;
  3955. text-overflow: ellipsis;
  3956. word-break: break-word;
  3957. cursor: pointer;
  3958. "
  3959. >
  3960. {{ index + 1 + "、" + item.teststitle }}
  3961. </div>
  3962. </el-tooltip>
  3963. </div>
  3964. </div>
  3965. </div>
  3966. <div
  3967. class="xuan_right_box"
  3968. style="background: unset; padding: 0 10px; width: 91.5%"
  3969. v-if="
  3970. tType &&
  3971. ((tType == 2 && sIsOpen == true) ||
  3972. tType == 1 ||
  3973. tType == 4) &&
  3974. tool.tool.indexOf(45) != -1
  3975. "
  3976. >
  3977. <AskStatic2
  3978. v-if="
  3979. worksStudent.length &&
  3980. worksStudent[toolIndex].length > 0
  3981. "
  3982. :askJSON="tool"
  3983. :checkJson="checkJson[toolIndex]"
  3984. ></AskStatic2>
  3985. </div>
  3986. <div
  3987. v-if="
  3988. tType &&
  3989. ((tType == 2 && sIsOpen == true) ||
  3990. tType == 1 ||
  3991. tType == 4) &&
  3992. tool.tool.indexOf(45) != -1
  3993. "
  3994. class="worksBox"
  3995. >
  3996. <div
  3997. class="zuoyeYulan"
  3998. v-if="
  3999. worksStudent.length &&
  4000. worksStudent[toolIndex].length > 0
  4001. "
  4002. >
  4003. <div class="worksTop">
  4004. <div>作业预览</div>
  4005. <div
  4006. class="corOpen"
  4007. @click="contract(toolIndex)"
  4008. v-if="
  4009. (isCloseList[toolIndex].isCloseBoolean) &&
  4010. isCloseList[toolIndex].isClose == 0
  4011. "
  4012. >
  4013. 折叠
  4014. </div>
  4015. <div
  4016. class="corOpen"
  4017. @click="contract(toolIndex)"
  4018. v-if="isCloseList[toolIndex].isClose == 1"
  4019. >
  4020. 展开
  4021. </div>
  4022. </div>
  4023. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4024. </div>
  4025. <div>
  4026. <div
  4027. :id="'tool-' + toolIndex"
  4028. :style="{
  4029. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4030. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4031. }"
  4032. class="worksDetailBox"
  4033. v-if="
  4034. worksStudent.length &&
  4035. worksStudent[toolIndex].length > 0
  4036. "
  4037. >
  4038. <div
  4039. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4040. :key="wIndex"
  4041. class="isWorksName2"
  4042. @click="
  4043. openTools(
  4044. 45,
  4045. toolIndex,
  4046. taskCount,
  4047. w.works,
  4048. w.sName
  4049. )
  4050. "
  4051. >
  4052. {{ w.sName }}
  4053. <img
  4054. class="deleteImg deleteImg2"
  4055. src="../../assets/deleteworks.png"
  4056. v-if="
  4057. w.userid == userid || tType == 1 || tType == 4
  4058. "
  4059. @click.stop="deleteWorks(w.wid)"
  4060. alt
  4061. />
  4062. </div>
  4063. </div>
  4064. </div>
  4065. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4066. 未提交
  4067. </div>
  4068. <div
  4069. class="noWorksS"
  4070. v-if="noWorksS && noWorksS[toolIndex].length"
  4071. >
  4072. <div
  4073. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4074. :key="sIndex"
  4075. class="noWorksName"
  4076. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4077. >
  4078. <el-tooltip effect="dark" :content="s.student" placement="top">
  4079. <span>{{ s.student }}</span>
  4080. </el-tooltip>
  4081. </div>
  4082. </div>
  4083. </div>
  4084. <div
  4085. v-if="
  4086. tType &&
  4087. ((tType == 2 && sIsOpen == true) ||
  4088. tType == 1 ||
  4089. tType == 4) &&
  4090. tool.tool.indexOf(69) != -1
  4091. "
  4092. class="worksBox"
  4093. >
  4094. <div
  4095. class="zuoyeYulan"
  4096. v-if="
  4097. worksStudent.length &&
  4098. worksStudent[toolIndex].length > 0
  4099. "
  4100. >
  4101. <div class="worksTop">
  4102. <div>作业预览</div>
  4103. <div
  4104. class="corOpen"
  4105. @click="contract(toolIndex)"
  4106. v-if="
  4107. (isCloseList[toolIndex].isCloseBoolean) &&
  4108. isCloseList[toolIndex].isClose == 0
  4109. "
  4110. >
  4111. 折叠
  4112. </div>
  4113. <div
  4114. class="corOpen"
  4115. @click="contract(toolIndex)"
  4116. v-if="isCloseList[toolIndex].isClose == 1"
  4117. >
  4118. 展开
  4119. </div>
  4120. </div>
  4121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4122. </div>
  4123. <div>
  4124. <div
  4125. :id="'tool-' + toolIndex"
  4126. :style="{
  4127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4129. }"
  4130. class="worksDetailBox"
  4131. v-if="
  4132. worksStudent.length &&
  4133. worksStudent[toolIndex].length > 0
  4134. "
  4135. >
  4136. <div
  4137. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4138. :key="wIndex"
  4139. class="isWorksName2"
  4140. style="width: 160px;height: 65px;line-height: 65px;"
  4141. @click="
  4142. openTools(
  4143. 69,
  4144. toolIndex,
  4145. taskCount,
  4146. w.works,
  4147. w.sName,
  4148. w.wid
  4149. )
  4150. "
  4151. >
  4152. {{ w.sName }}
  4153. <img
  4154. class="deleteImg1"
  4155. src="../../assets/evaEnglish.png"
  4156. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4157. alt
  4158. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4159. />
  4160. <img
  4161. class="deleteImg deleteImg2"
  4162. src="../../assets/deleteworks.png"
  4163. v-if="
  4164. w.userid == userid || tType == 1 || tType == 4
  4165. "
  4166. @click.stop="deleteWorks(w.wid)"
  4167. alt
  4168. />
  4169. </div>
  4170. </div>
  4171. </div>
  4172. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4173. 未提交
  4174. </div>
  4175. <div
  4176. class="noWorksS"
  4177. v-if="noWorksS && noWorksS[toolIndex].length"
  4178. >
  4179. <div
  4180. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4181. :key="sIndex"
  4182. class="noWorksName"
  4183. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4184. >
  4185. <el-tooltip effect="dark" :content="s.student" placement="top">
  4186. <span>{{ s.student }}</span>
  4187. </el-tooltip>
  4188. </div>
  4189. </div>
  4190. </div>
  4191. <div
  4192. v-if="
  4193. tType &&
  4194. ((tType == 2 && sIsOpen == true) ||
  4195. tType == 1 ||
  4196. tType == 4) &&
  4197. tool.tool.indexOf(15) != -1
  4198. "
  4199. class="worksBox"
  4200. >
  4201. <div
  4202. class="zuoyeYulan"
  4203. v-if="
  4204. (worksStudent.length &&
  4205. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4206. "
  4207. >
  4208. <div class="worksTop">
  4209. <div>作业预览</div>
  4210. <div
  4211. class="corOpen"
  4212. @click="contract(toolIndex)"
  4213. v-if="
  4214. (isCloseList[toolIndex].isCloseBoolean) &&
  4215. isCloseList[toolIndex].isClose == 0
  4216. "
  4217. >
  4218. 折叠
  4219. </div>
  4220. <div
  4221. class="corOpen"
  4222. @click="contract(toolIndex)"
  4223. v-if="isCloseList[toolIndex].isClose == 1"
  4224. >
  4225. 展开
  4226. </div>
  4227. </div>
  4228. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4229. </div>
  4230. <div
  4231. class="group_workBox"
  4232. v-for="(g, gindex) in courseGroup.group"
  4233. :key="gindex"
  4234. >
  4235. <div class="group_box">
  4236. <div class="group_title">
  4237. <el-tooltip
  4238. class="item"
  4239. effect="light"
  4240. :content="g.name"
  4241. placement="top"
  4242. >
  4243. <div class="group_name">{{ g.name }}</div>
  4244. </el-tooltip>
  4245. </div>
  4246. <div
  4247. class="group_work"
  4248. v-if="
  4249. g.works &&
  4250. g.works.length &&
  4251. g.works[toolIndex].length
  4252. "
  4253. >
  4254. <div
  4255. class="works"
  4256. v-for="(w, wIndex) in g.works[toolIndex]"
  4257. :key="wIndex"
  4258. >
  4259. <div
  4260. class="workImg"
  4261. style="
  4262. border-radius: 15px;
  4263. box-shadow: 0px 0px 5px 5px #eee;
  4264. "
  4265. >
  4266. <div
  4267. class="answerBg"
  4268. style="border-radius: 15px 15px 0 0"
  4269. @click="
  4270. commentOther(w, toolIndex, wIndex, null, g.id)
  4271. "
  4272. >
  4273. <div class="answerContent">
  4274. {{ JSON.parse(w.works)[0].answer }}
  4275. </div>
  4276. <div
  4277. class="answerScore"
  4278. v-if="w.score"
  4279. @click.stop="openScore(w)"
  4280. :class="{
  4281. rightW:
  4282. w.userid == userid ||
  4283. tType == 1 ||
  4284. tType == 4,
  4285. }"
  4286. >
  4287. {{ JSON.parse(w.score).wScore }}分
  4288. </div>
  4289. <div
  4290. class="answerScore"
  4291. @click.stop="openScore(w)"
  4292. v-else-if="courseDetail.userid == userid"
  4293. :class="{
  4294. rightW:
  4295. w.userid == userid ||
  4296. tType == 1 ||
  4297. tType == 4,
  4298. }"
  4299. >
  4300. 评分
  4301. </div>
  4302. <img
  4303. class="deleteImg"
  4304. src="../../assets/deleteworks.png"
  4305. v-if="
  4306. w.userid == userid ||
  4307. tType == 1 ||
  4308. tType == 4
  4309. "
  4310. @click.stop="deleteWorks(w.wid)"
  4311. alt
  4312. />
  4313. </div>
  4314. <div class="comment">
  4315. <div class="worksName">
  4316. <div>{{ w.sName }}</div>
  4317. </div>
  4318. <div class="commentList">
  4319. <div
  4320. class="commentImg"
  4321. @click="
  4322. isLikes(w.wid, userid, 1, null, w.isLikes)
  4323. "
  4324. >
  4325. <img
  4326. :src="w.isLikes == true ? likes : noLikes"
  4327. alt=""
  4328. />
  4329. </div>
  4330. <div>{{ w.likesCount }}</div>
  4331. </div>
  4332. <div
  4333. class="commentList"
  4334. style="margin-right: 15px"
  4335. >
  4336. <div
  4337. class="commentImg"
  4338. @click="
  4339. commentOther(
  4340. w,
  4341. toolIndex,
  4342. wIndex,
  4343. null,
  4344. g.id
  4345. )
  4346. "
  4347. >
  4348. <img
  4349. src="../../assets/icon/comment/comment.png"
  4350. alt=""
  4351. />
  4352. </div>
  4353. <div>{{ w.commentCount }}</div>
  4354. </div>
  4355. </div>
  4356. </div>
  4357. </div>
  4358. </div>
  4359. <div class="group_work" v-else>暂无提交作业</div>
  4360. </div>
  4361. </div>
  4362. <div
  4363. :id="'tool-' + toolIndex"
  4364. :style="{
  4365. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4366. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4367. }"
  4368. class="worksDetailBox"
  4369. v-if="
  4370. worksStudent.length &&
  4371. worksStudent[toolIndex].length > 0
  4372. "
  4373. >
  4374. <div
  4375. class="works"
  4376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4377. :key="wIndex"
  4378. >
  4379. <div
  4380. class="workImg"
  4381. style="
  4382. border-radius: 15px;
  4383. box-shadow: 0px 0px 5px 5px #eee;
  4384. "
  4385. >
  4386. <!-- <img
  4387. src="../../assets/icon/works/noImg.png"
  4388. @click="openTools(15, toolIndex, taskCount, w.works)"
  4389. alt=""
  4390. />-->
  4391. <div
  4392. class="answerBg"
  4393. style="border-radius: 15px 15px 0 0"
  4394. @click="commentOther(w, toolIndex, wIndex)"
  4395. >
  4396. <!-- <div>{{ w.sName }}</div> -->
  4397. <div class="answerContent">
  4398. {{ JSON.parse(w.works)[0].answer }}
  4399. </div>
  4400. <div
  4401. class="answerScore"
  4402. v-if="w.score"
  4403. @click.stop="openScore(w)"
  4404. :class="{
  4405. rightW:
  4406. w.userid == userid ||
  4407. tType == 1 ||
  4408. tType == 4,
  4409. }"
  4410. >
  4411. {{ JSON.parse(w.score).wScore }}分
  4412. </div>
  4413. <div
  4414. class="answerScore"
  4415. @click.stop="openScore(w)"
  4416. v-else-if="courseDetail.userid == userid"
  4417. :class="{
  4418. rightW:
  4419. w.userid == userid ||
  4420. tType == 1 ||
  4421. tType == 4,
  4422. }"
  4423. >
  4424. 评分
  4425. </div>
  4426. <img
  4427. class="deleteImg"
  4428. src="../../assets/deleteworks.png"
  4429. v-if="
  4430. w.userid == userid || tType == 1 || tType == 4
  4431. "
  4432. @click.stop="deleteWorks(w.wid)"
  4433. alt
  4434. />
  4435. </div>
  4436. <div class="comment">
  4437. <div class="worksName">
  4438. <div>{{ w.sName }}</div>
  4439. </div>
  4440. <div class="commentList">
  4441. <div
  4442. class="commentImg"
  4443. @click="
  4444. isLikes(w.wid, userid, 1, null, w.isLikes)
  4445. "
  4446. >
  4447. <img
  4448. :src="w.isLikes == true ? likes : noLikes"
  4449. alt=""
  4450. />
  4451. </div>
  4452. <div>{{ w.likesCount }}</div>
  4453. </div>
  4454. <div class="commentList" style="margin-right: 15px">
  4455. <div
  4456. class="commentImg"
  4457. @click="commentOther(w, toolIndex, wIndex)"
  4458. >
  4459. <img
  4460. src="../../assets/icon/comment/comment.png"
  4461. alt=""
  4462. />
  4463. </div>
  4464. <div>{{ w.commentCount }}</div>
  4465. </div>
  4466. </div>
  4467. </div>
  4468. </div>
  4469. </div>
  4470. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4471. 未提交
  4472. </div>
  4473. <div
  4474. class="noWorksS"
  4475. v-if="noWorksS && noWorksS[toolIndex].length"
  4476. >
  4477. <div
  4478. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4479. :key="sIndex"
  4480. class="noWorksName"
  4481. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4482. >
  4483. <el-tooltip effect="dark" :content="s.student" placement="top">
  4484. <span>{{ s.student }}</span>
  4485. </el-tooltip>
  4486. </div>
  4487. </div>
  4488. </div>
  4489. <div
  4490. v-if="
  4491. tType &&
  4492. ((tType == 2 && sIsOpen == true) ||
  4493. tType == 1 ||
  4494. tType == 4) &&
  4495. tool.tool.indexOf(1) != -1
  4496. "
  4497. class="worksBox"
  4498. >
  4499. <div
  4500. class="zuoyeYulan"
  4501. v-if="
  4502. (worksStudent.length &&
  4503. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4504. "
  4505. >
  4506. <div class="worksTop">
  4507. <div>作业预览</div>
  4508. <div
  4509. class="corOpen"
  4510. @click="contract(toolIndex)"
  4511. v-if="
  4512. (isCloseList[toolIndex].isCloseBoolean) &&
  4513. isCloseList[toolIndex].isClose == 0
  4514. "
  4515. >
  4516. 折叠
  4517. </div>
  4518. <div
  4519. class="corOpen"
  4520. @click="contract(toolIndex)"
  4521. v-if="isCloseList[toolIndex].isClose == 1"
  4522. >
  4523. 展开
  4524. </div>
  4525. </div>
  4526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4527. </div>
  4528. <div
  4529. class="group_workBox"
  4530. v-for="(g, gindex) in courseGroup.group"
  4531. :key="gindex"
  4532. >
  4533. <div class="group_box">
  4534. <div class="group_title">
  4535. <el-tooltip
  4536. class="item"
  4537. effect="light"
  4538. :content="g.name"
  4539. placement="top"
  4540. >
  4541. <div class="group_name">{{ g.name }}</div>
  4542. </el-tooltip>
  4543. </div>
  4544. <div
  4545. class="group_work"
  4546. v-if="
  4547. g.works &&
  4548. g.works.length &&
  4549. g.works[toolIndex].length
  4550. "
  4551. >
  4552. <div
  4553. class="works"
  4554. style="
  4555. width: 200px;
  4556. height: 140px;
  4557. margin: 10px 10px 10px 0;
  4558. border-radius: 15px;
  4559. box-shadow: 0 0 6px 1px #dfdada;
  4560. "
  4561. v-for="(w, wIndex) in g.works[toolIndex]"
  4562. :key="wIndex"
  4563. :class="w.type == 1 ? 'isTypeOne' : ''"
  4564. >
  4565. <div class="workImg">
  4566. <img
  4567. :src="w.works"
  4568. @click="previewImg(w.works)"
  4569. alt
  4570. />
  4571. <div
  4572. class="answerScore"
  4573. v-if="w.score"
  4574. @click.stop="openScore(w)"
  4575. :class="{
  4576. rightW:
  4577. w.userid == userid ||
  4578. tType == 1 ||
  4579. tType == 4,
  4580. }"
  4581. >
  4582. {{ JSON.parse(w.score).wScore }}分
  4583. </div>
  4584. <div
  4585. class="answerScore"
  4586. @click.stop="openScore(w)"
  4587. v-else-if="courseDetail.userid == userid"
  4588. :class="{
  4589. rightW:
  4590. w.userid == userid ||
  4591. tType == 1 ||
  4592. tType == 4,
  4593. }"
  4594. >
  4595. 评分
  4596. </div>
  4597. <img
  4598. class="deleteImg"
  4599. src="../../assets/deleteworks.png"
  4600. v-if="
  4601. w.userid == userid || tType == 1 || tType == 4
  4602. "
  4603. @click.stop="deleteWorks(w.wid)"
  4604. alt
  4605. />
  4606. </div>
  4607. <div class="comment" style="min-width: 200px">
  4608. <div class="worksName">
  4609. <div>{{ w.sName }}</div>
  4610. </div>
  4611. <div class="commentList">
  4612. <div class="commentList">
  4613. <div
  4614. class="commentImg"
  4615. @click="
  4616. isLikes(w.wid, userid, 1, null, w.isLikes)
  4617. "
  4618. >
  4619. <img
  4620. :src="w.isLikes == true ? likes : noLikes"
  4621. alt=""
  4622. />
  4623. </div>
  4624. <div>{{ w.likesCount }}</div>
  4625. </div>
  4626. <div
  4627. class="commentList"
  4628. style="margin-right: 15px"
  4629. >
  4630. <div
  4631. class="commentImg"
  4632. @click="
  4633. commentOther(
  4634. w,
  4635. toolIndex,
  4636. wIndex,
  4637. null,
  4638. g.id
  4639. )
  4640. "
  4641. >
  4642. <img
  4643. src="../../assets/icon/comment/comment.png"
  4644. alt=""
  4645. />
  4646. </div>
  4647. <div>{{ w.commentCount }}</div>
  4648. </div>
  4649. </div>
  4650. </div>
  4651. </div>
  4652. </div>
  4653. <div class="group_work" v-else>暂无提交作业</div>
  4654. </div>
  4655. </div>
  4656. <div
  4657. :id="'tool-' + toolIndex"
  4658. :style="{
  4659. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4660. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4661. }"
  4662. class="worksDetailBox"
  4663. v-if="
  4664. worksStudent.length &&
  4665. worksStudent[toolIndex].length > 0
  4666. "
  4667. >
  4668. <div
  4669. class="works"
  4670. style="
  4671. width: 200px;
  4672. height: 140px;
  4673. margin: 10px 10px 10px 0;
  4674. border-radius: 15px;
  4675. box-shadow: 0 0 6px 1px #dfdada;
  4676. "
  4677. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4678. :key="wIndex"
  4679. >
  4680. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4681. <div class="workImg">
  4682. <img
  4683. :src="w.works"
  4684. @click="previewImg(w.works)"
  4685. alt
  4686. />
  4687. <div
  4688. class="answerScore"
  4689. v-if="w.score"
  4690. @click.stop="openScore(w)"
  4691. :class="{
  4692. rightW:
  4693. w.userid == userid || tType == 1 || tType == 4,
  4694. }"
  4695. >
  4696. {{ JSON.parse(w.score).wScore }}分
  4697. </div>
  4698. <div
  4699. class="answerScore"
  4700. @click.stop="openScore(w)"
  4701. v-else-if="courseDetail.userid == userid"
  4702. :class="{
  4703. rightW:
  4704. w.userid == userid || tType == 1 || tType == 4,
  4705. }"
  4706. >
  4707. 评分
  4708. </div>
  4709. <img
  4710. class="deleteImg"
  4711. src="../../assets/deleteworks.png"
  4712. v-if="
  4713. w.userid == userid || tType == 1 || tType == 4
  4714. "
  4715. @click.stop="deleteWorks(w.wid)"
  4716. alt
  4717. />
  4718. </div>
  4719. <div class="comment" style="min-width: 200px">
  4720. <div class="worksName">
  4721. <div>{{ w.sName }}</div>
  4722. </div>
  4723. <div class="commentList">
  4724. <div class="commentList">
  4725. <div
  4726. class="commentImg"
  4727. @click="
  4728. isLikes(w.wid, userid, 1, null, w.isLikes)
  4729. "
  4730. >
  4731. <img
  4732. :src="w.isLikes == true ? likes : noLikes"
  4733. alt=""
  4734. />
  4735. </div>
  4736. <div>{{ w.likesCount }}</div>
  4737. </div>
  4738. <div class="commentList" style="margin-right: 15px">
  4739. <div
  4740. class="commentImg"
  4741. @click="commentOther(w, toolIndex, wIndex)"
  4742. >
  4743. <img
  4744. src="../../assets/icon/comment/comment.png"
  4745. alt=""
  4746. />
  4747. </div>
  4748. <div>{{ w.commentCount }}</div>
  4749. </div>
  4750. </div>
  4751. </div>
  4752. </div>
  4753. </div>
  4754. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4755. 未提交
  4756. </div>
  4757. <div
  4758. class="noWorksS"
  4759. v-if="noWorksS && noWorksS[toolIndex].length"
  4760. >
  4761. <div
  4762. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4763. :key="sIndex"
  4764. class="noWorksName"
  4765. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4766. >
  4767. <el-tooltip effect="dark" :content="s.student" placement="top">
  4768. <span>{{ s.student }}</span>
  4769. </el-tooltip>
  4770. </div>
  4771. </div>
  4772. </div>
  4773. <div
  4774. v-if="
  4775. tType &&
  4776. ((tType == 2 && sIsOpen == true) ||
  4777. tType == 1 ||
  4778. tType == 4) &&
  4779. tool.tool.indexOf(3) != -1
  4780. "
  4781. class="worksBox"
  4782. >
  4783. <div
  4784. class="zuoyeYulan"
  4785. v-if="
  4786. (worksStudent.length &&
  4787. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4788. "
  4789. >
  4790. <div class="worksTop">
  4791. <div>作业预览</div>
  4792. <div
  4793. class="corOpen"
  4794. @click="contract(toolIndex)"
  4795. v-if="
  4796. (isCloseList[toolIndex].isCloseBoolean) &&
  4797. isCloseList[toolIndex].isClose == 0
  4798. "
  4799. >
  4800. 折叠
  4801. </div>
  4802. <div
  4803. class="corOpen"
  4804. @click="contract(toolIndex)"
  4805. v-if="isCloseList[toolIndex].isClose == 1"
  4806. >
  4807. 展开
  4808. </div>
  4809. </div>
  4810. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4811. </div>
  4812. <div
  4813. class="group_workBox"
  4814. v-for="(g, gindex) in courseGroup.group"
  4815. :key="gindex"
  4816. >
  4817. <div class="group_box">
  4818. <div class="group_title">
  4819. <el-tooltip
  4820. class="item"
  4821. effect="light"
  4822. :content="g.name"
  4823. placement="top"
  4824. >
  4825. <div class="group_name">{{ g.name }}</div>
  4826. </el-tooltip>
  4827. </div>
  4828. <div
  4829. class="group_work"
  4830. v-if="
  4831. g.works &&
  4832. g.works.length &&
  4833. g.works[toolIndex].length
  4834. "
  4835. >
  4836. <div
  4837. class="works"
  4838. style="
  4839. width: 200px;
  4840. height: 140px;
  4841. margin: 10px 10px 10px 0;
  4842. border-radius: 15px;
  4843. box-shadow: 0 0 6px 1px #dfdada;
  4844. "
  4845. v-for="(w, wIndex) in g.works[toolIndex]"
  4846. :key="wIndex"
  4847. :class="w.type == 1 ? 'isTypeOne' : ''"
  4848. >
  4849. <div class="workImg">
  4850. <img
  4851. :src="w.works"
  4852. @click="previewImg(w.works)"
  4853. alt
  4854. />
  4855. <div
  4856. class="answerScore"
  4857. v-if="w.score"
  4858. @click.stop="openScore(w)"
  4859. :class="{
  4860. rightW:
  4861. w.userid == userid ||
  4862. tType == 1 ||
  4863. tType == 4,
  4864. }"
  4865. >
  4866. {{ JSON.parse(w.score).wScore }}分
  4867. </div>
  4868. <div
  4869. class="answerScore"
  4870. @click.stop="openScore(w)"
  4871. v-else-if="courseDetail.userid == userid"
  4872. :class="{
  4873. rightW:
  4874. w.userid == userid ||
  4875. tType == 1 ||
  4876. tType == 4,
  4877. }"
  4878. >
  4879. 评分
  4880. </div>
  4881. <img
  4882. class="deleteImg"
  4883. src="../../assets/deleteworks.png"
  4884. v-if="
  4885. w.userid == userid || tType == 1 || tType == 4
  4886. "
  4887. @click.stop="deleteWorks(w.wid)"
  4888. alt
  4889. />
  4890. </div>
  4891. <div class="comment" style="min-width: 200px">
  4892. <div class="worksName">
  4893. <div>{{ w.sName }}</div>
  4894. </div>
  4895. <div class="commentList">
  4896. <div class="commentList">
  4897. <div
  4898. class="commentImg"
  4899. @click="
  4900. isLikes(w.wid, userid, 1, null, w.isLikes)
  4901. "
  4902. >
  4903. <img
  4904. :src="w.isLikes == true ? likes : noLikes"
  4905. alt=""
  4906. />
  4907. </div>
  4908. <div>{{ w.likesCount }}</div>
  4909. </div>
  4910. <div
  4911. class="commentList"
  4912. style="margin-right: 15px"
  4913. >
  4914. <div
  4915. class="commentImg"
  4916. @click="
  4917. commentOther(
  4918. w,
  4919. toolIndex,
  4920. wIndex,
  4921. null,
  4922. g.id
  4923. )
  4924. "
  4925. >
  4926. <img
  4927. src="../../assets/icon/comment/comment.png"
  4928. alt=""
  4929. />
  4930. </div>
  4931. <div>{{ w.commentCount }}</div>
  4932. </div>
  4933. </div>
  4934. </div>
  4935. </div>
  4936. </div>
  4937. <div class="group_work" v-else>暂无提交作业</div>
  4938. </div>
  4939. </div>
  4940. <div
  4941. :id="'tool-' + toolIndex"
  4942. :style="{
  4943. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4944. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4945. }"
  4946. class="worksDetailBox"
  4947. v-if="
  4948. worksStudent.length &&
  4949. worksStudent[toolIndex].length > 0
  4950. "
  4951. >
  4952. <div
  4953. class="works"
  4954. style="
  4955. width: 200px;
  4956. height: 140px;
  4957. margin: 10px 10px 10px 0;
  4958. border-radius: 15px;
  4959. box-shadow: 0 0 6px 1px #dfdada;
  4960. "
  4961. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4962. :key="wIndex"
  4963. >
  4964. <!-- @click="previewImg(w.works)" -->
  4965. <div class="workImg">
  4966. <img
  4967. :src="w.works"
  4968. @click="previewImg(w.works)"
  4969. alt
  4970. />
  4971. <div
  4972. class="answerScore"
  4973. v-if="w.score"
  4974. @click.stop="openScore(w)"
  4975. :class="{
  4976. rightW:
  4977. w.userid == userid || tType == 1 || tType == 4,
  4978. }"
  4979. >
  4980. {{ JSON.parse(w.score).wScore }}分
  4981. </div>
  4982. <div
  4983. class="answerScore"
  4984. @click.stop="openScore(w)"
  4985. v-else-if="courseDetail.userid == userid"
  4986. :class="{
  4987. rightW:
  4988. w.userid == userid || tType == 1 || tType == 4,
  4989. }"
  4990. >
  4991. 评分
  4992. </div>
  4993. <img
  4994. class="deleteImg"
  4995. src="../../assets/deleteworks.png"
  4996. v-if="
  4997. w.userid == userid || tType == 1 || tType == 4
  4998. "
  4999. @click.stop="deleteWorks(w.wid)"
  5000. alt
  5001. />
  5002. </div>
  5003. <div class="comment" style="min-width: 200px">
  5004. <div class="worksName">
  5005. <div>{{ w.sName }}</div>
  5006. </div>
  5007. <div class="commentList">
  5008. <div class="commentList">
  5009. <div
  5010. class="commentImg"
  5011. @click="
  5012. isLikes(w.wid, userid, 1, null, w.isLikes)
  5013. "
  5014. >
  5015. <img
  5016. :src="w.isLikes == true ? likes : noLikes"
  5017. alt=""
  5018. />
  5019. </div>
  5020. <div>{{ w.likesCount }}</div>
  5021. </div>
  5022. <div class="commentList" style="margin-right: 15px">
  5023. <div
  5024. class="commentImg"
  5025. @click="commentOther(w, toolIndex, wIndex)"
  5026. >
  5027. <img
  5028. src="../../assets/icon/comment/comment.png"
  5029. alt=""
  5030. />
  5031. </div>
  5032. <div>{{ w.commentCount }}</div>
  5033. </div>
  5034. </div>
  5035. </div>
  5036. </div>
  5037. </div>
  5038. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5039. 未提交
  5040. </div>
  5041. <div
  5042. class="noWorksS"
  5043. v-if="noWorksS && noWorksS[toolIndex].length"
  5044. >
  5045. <div
  5046. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5047. :key="sIndex"
  5048. class="noWorksName"
  5049. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5050. >
  5051. <el-tooltip effect="dark" :content="s.student" placement="top">
  5052. <span>{{ s.student }}</span>
  5053. </el-tooltip>
  5054. </div>
  5055. </div>
  5056. </div>
  5057. <div
  5058. v-if="
  5059. tType &&
  5060. ((tType == 2 && sIsOpen == true) ||
  5061. tType == 1 ||
  5062. tType == 4) &&
  5063. tool.tool.indexOf(6) != -1
  5064. "
  5065. class="worksBox"
  5066. >
  5067. <div
  5068. class="zuoyeYulan"
  5069. v-if="
  5070. (worksStudent.length &&
  5071. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5072. "
  5073. >
  5074. <div class="worksTop">
  5075. <div>作业预览</div>
  5076. <div
  5077. class="corOpen"
  5078. @click="contract(toolIndex)"
  5079. v-if="
  5080. (isCloseList[toolIndex].isCloseBoolean) &&
  5081. isCloseList[toolIndex].isClose == 0
  5082. "
  5083. >
  5084. 折叠
  5085. </div>
  5086. <div
  5087. class="corOpen"
  5088. @click="contract(toolIndex)"
  5089. v-if="isCloseList[toolIndex].isClose == 1"
  5090. >
  5091. 展开
  5092. </div>
  5093. </div>
  5094. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5095. </div>
  5096. <div
  5097. class="group_workBox"
  5098. v-for="(g, gindex) in courseGroup.group"
  5099. :key="gindex"
  5100. >
  5101. <div class="group_box">
  5102. <div class="group_title">
  5103. <el-tooltip
  5104. class="item"
  5105. effect="light"
  5106. :content="g.name"
  5107. placement="top"
  5108. >
  5109. <div class="group_name">{{ g.name }}</div>
  5110. </el-tooltip>
  5111. </div>
  5112. <div
  5113. class="group_work"
  5114. v-if="
  5115. g.works &&
  5116. g.works.length &&
  5117. g.works[toolIndex].length
  5118. "
  5119. >
  5120. <div
  5121. class="works"
  5122. style="
  5123. width: 200px;
  5124. height: 140px;
  5125. margin: 10px 10px 10px 0;
  5126. border-radius: 15px;
  5127. box-shadow: 0 0 6px 1px #dfdada;
  5128. "
  5129. v-for="(w, wIndex) in g.works[toolIndex]"
  5130. :key="wIndex"
  5131. :class="w.type == 1 ? 'isTypeOne' : ''"
  5132. >
  5133. <div class="workImg">
  5134. <img
  5135. :src="w.works"
  5136. @click="previewImg(w.works)"
  5137. alt
  5138. />
  5139. <div
  5140. class="answerScore"
  5141. v-if="w.score"
  5142. @click.stop="openScore(w)"
  5143. :class="{
  5144. rightW:
  5145. w.userid == userid ||
  5146. tType == 1 ||
  5147. tType == 4,
  5148. }"
  5149. >
  5150. {{ JSON.parse(w.score).wScore }}分
  5151. </div>
  5152. <div
  5153. class="answerScore"
  5154. @click.stop="openScore(w)"
  5155. v-else-if="courseDetail.userid == userid"
  5156. :class="{
  5157. rightW:
  5158. w.userid == userid ||
  5159. tType == 1 ||
  5160. tType == 4,
  5161. }"
  5162. >
  5163. 评分
  5164. </div>
  5165. <img
  5166. class="deleteImg"
  5167. src="../../assets/deleteworks.png"
  5168. v-if="
  5169. w.userid == userid || tType == 1 || tType == 4
  5170. "
  5171. @click.stop="deleteWorks(w.wid)"
  5172. alt
  5173. />
  5174. </div>
  5175. <div class="comment" style="min-width: 200px">
  5176. <div class="worksName">
  5177. <div>{{ w.sName }}</div>
  5178. </div>
  5179. <div class="commentList">
  5180. <div class="commentList">
  5181. <div
  5182. class="commentImg"
  5183. @click="
  5184. isLikes(w.wid, userid, 1, null, w.isLikes)
  5185. "
  5186. >
  5187. <img
  5188. :src="w.isLikes == true ? likes : noLikes"
  5189. alt=""
  5190. />
  5191. </div>
  5192. <div>{{ w.likesCount }}</div>
  5193. </div>
  5194. <div
  5195. class="commentList"
  5196. style="margin-right: 15px"
  5197. >
  5198. <div
  5199. class="commentImg"
  5200. @click="
  5201. commentOther(
  5202. w,
  5203. toolIndex,
  5204. wIndex,
  5205. null,
  5206. g.id
  5207. )
  5208. "
  5209. >
  5210. <img
  5211. src="../../assets/icon/comment/comment.png"
  5212. alt=""
  5213. />
  5214. </div>
  5215. <div>{{ w.commentCount }}</div>
  5216. </div>
  5217. </div>
  5218. </div>
  5219. </div>
  5220. </div>
  5221. <div class="group_work" v-else>暂无提交作业</div>
  5222. </div>
  5223. </div>
  5224. <div
  5225. :id="'tool-' + toolIndex"
  5226. :style="{
  5227. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5228. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5229. }"
  5230. class="worksDetailBox"
  5231. v-if="
  5232. worksStudent.length &&
  5233. worksStudent[toolIndex].length > 0
  5234. "
  5235. >
  5236. <div
  5237. class="works"
  5238. style="
  5239. width: 200px;
  5240. height: 140px;
  5241. margin: 10px 10px 10px 0;
  5242. border-radius: 15px;
  5243. box-shadow: 0 0 6px 1px #dfdada;
  5244. "
  5245. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5246. :key="wIndex"
  5247. >
  5248. <!-- @click="previewImg(w.works)" -->
  5249. <div class="workImg">
  5250. <img
  5251. :src="w.works"
  5252. @click="previewImg(w.works)"
  5253. alt
  5254. />
  5255. <div
  5256. class="answerScore"
  5257. v-if="w.score"
  5258. @click.stop="openScore(w)"
  5259. :class="{
  5260. rightW:
  5261. w.userid == userid || tType == 1 || tType == 4,
  5262. }"
  5263. >
  5264. {{ JSON.parse(w.score).wScore }}分
  5265. </div>
  5266. <div
  5267. class="answerScore"
  5268. @click.stop="openScore(w)"
  5269. v-else-if="courseDetail.userid == userid"
  5270. :class="{
  5271. rightW:
  5272. w.userid == userid || tType == 1 || tType == 4,
  5273. }"
  5274. >
  5275. 评分
  5276. </div>
  5277. <img
  5278. class="deleteImg"
  5279. src="../../assets/deleteworks.png"
  5280. v-if="
  5281. w.userid == userid || tType == 1 || tType == 4
  5282. "
  5283. @click.stop="deleteWorks(w.wid)"
  5284. alt
  5285. />
  5286. </div>
  5287. <div class="comment" style="min-width: 200px">
  5288. <div class="worksName">
  5289. <div>{{ w.sName }}</div>
  5290. </div>
  5291. <div class="commentList">
  5292. <div class="commentList">
  5293. <div
  5294. class="commentImg"
  5295. @click="
  5296. isLikes(w.wid, userid, 1, null, w.isLikes)
  5297. "
  5298. >
  5299. <img
  5300. :src="w.isLikes == true ? likes : noLikes"
  5301. alt=""
  5302. />
  5303. </div>
  5304. <div>{{ w.likesCount }}</div>
  5305. </div>
  5306. <div class="commentList" style="margin-right: 15px">
  5307. <div
  5308. class="commentImg"
  5309. @click="commentOther(w, toolIndex, wIndex)"
  5310. >
  5311. <img
  5312. src="../../assets/icon/comment/comment.png"
  5313. alt=""
  5314. />
  5315. </div>
  5316. <div>{{ w.commentCount }}</div>
  5317. </div>
  5318. </div>
  5319. </div>
  5320. </div>
  5321. </div>
  5322. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5323. 未提交
  5324. </div>
  5325. <div
  5326. class="noWorksS"
  5327. v-if="noWorksS && noWorksS[toolIndex].length"
  5328. >
  5329. <div
  5330. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5331. :key="sIndex"
  5332. class="noWorksName"
  5333. >
  5334. <el-tooltip effect="dark" :content="s.student" placement="top">
  5335. <span>{{ s.student }}</span>
  5336. </el-tooltip>
  5337. </div>
  5338. </div>
  5339. </div>
  5340. <div
  5341. v-if="
  5342. tType &&
  5343. ((tType == 2 && sIsOpen == true) ||
  5344. tType == 1 ||
  5345. tType == 4) &&
  5346. tool.tool.indexOf(7) != -1
  5347. "
  5348. class="worksBox"
  5349. >
  5350. <div
  5351. class="zuoyeYulan"
  5352. v-if="
  5353. (worksStudent.length &&
  5354. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5355. "
  5356. >
  5357. <div class="worksTop">
  5358. <div>作业预览</div>
  5359. <div
  5360. class="corOpen"
  5361. @click="contract(toolIndex)"
  5362. v-if="
  5363. (isCloseList[toolIndex].isCloseBoolean) &&
  5364. isCloseList[toolIndex].isClose == 0
  5365. "
  5366. >
  5367. 折叠
  5368. </div>
  5369. <div
  5370. class="corOpen"
  5371. @click="contract(toolIndex)"
  5372. v-if="isCloseList[toolIndex].isClose == 1"
  5373. >
  5374. 展开
  5375. </div>
  5376. </div>
  5377. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5378. </div>
  5379. <div
  5380. class="group_workBox"
  5381. v-for="(g, gindex) in courseGroup.group"
  5382. :key="gindex"
  5383. >
  5384. <div class="group_box">
  5385. <div class="group_title">
  5386. <el-tooltip
  5387. class="item"
  5388. effect="light"
  5389. :content="g.name"
  5390. placement="top"
  5391. >
  5392. <div class="group_name">{{ g.name }}</div>
  5393. </el-tooltip>
  5394. </div>
  5395. <div
  5396. class="group_work"
  5397. v-if="
  5398. g.works &&
  5399. g.works.length &&
  5400. g.works[toolIndex].length
  5401. "
  5402. >
  5403. <div
  5404. class="works"
  5405. style="
  5406. width: 200px;
  5407. height: 140px;
  5408. margin: 10px 10px 10px 0;
  5409. border-radius: 15px;
  5410. box-shadow: 0 0 6px 1px #dfdada;
  5411. "
  5412. v-for="(w, wIndex) in g.works[toolIndex]"
  5413. :key="wIndex"
  5414. :class="w.type == 1 ? 'isTypeOne' : ''"
  5415. >
  5416. <div class="workImg">
  5417. <img
  5418. :src="w.works"
  5419. @click="previewImg(w.works)"
  5420. alt
  5421. />
  5422. <div
  5423. class="answerScore"
  5424. v-if="w.score"
  5425. @click.stop="openScore(w)"
  5426. :class="{
  5427. rightW:
  5428. w.userid == userid ||
  5429. tType == 1 ||
  5430. tType == 4,
  5431. }"
  5432. >
  5433. {{ JSON.parse(w.score).wScore }}分
  5434. </div>
  5435. <div
  5436. class="answerScore"
  5437. @click.stop="openScore(w)"
  5438. v-else-if="courseDetail.userid == userid"
  5439. :class="{
  5440. rightW:
  5441. w.userid == userid ||
  5442. tType == 1 ||
  5443. tType == 4,
  5444. }"
  5445. >
  5446. 评分
  5447. </div>
  5448. <img
  5449. class="deleteImg"
  5450. src="../../assets/deleteworks.png"
  5451. v-if="
  5452. w.userid == userid || tType == 1 || tType == 4
  5453. "
  5454. @click.stop="deleteWorks(w.wid)"
  5455. alt
  5456. />
  5457. </div>
  5458. <div class="comment" style="min-width: 200px">
  5459. <div class="worksName">
  5460. <div>{{ w.sName }}</div>
  5461. </div>
  5462. <div class="commentList">
  5463. <div class="commentList">
  5464. <div
  5465. class="commentImg"
  5466. @click="
  5467. isLikes(w.wid, userid, 1, null, w.isLikes)
  5468. "
  5469. >
  5470. <img
  5471. :src="w.isLikes == true ? likes : noLikes"
  5472. alt=""
  5473. />
  5474. </div>
  5475. <div>{{ w.likesCount }}</div>
  5476. </div>
  5477. <div
  5478. class="commentList"
  5479. style="margin-right: 15px"
  5480. >
  5481. <div
  5482. class="commentImg"
  5483. @click="
  5484. commentOther(
  5485. w,
  5486. toolIndex,
  5487. wIndex,
  5488. null,
  5489. g.id
  5490. )
  5491. "
  5492. >
  5493. <img
  5494. src="../../assets/icon/comment/comment.png"
  5495. alt=""
  5496. />
  5497. </div>
  5498. <div>{{ w.commentCount }}</div>
  5499. </div>
  5500. </div>
  5501. </div>
  5502. </div>
  5503. </div>
  5504. <div class="group_work" v-else>暂无提交作业</div>
  5505. </div>
  5506. </div>
  5507. <div
  5508. :id="'tool-' + toolIndex"
  5509. :style="{
  5510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5512. }"
  5513. class="worksDetailBox"
  5514. v-if="
  5515. worksStudent.length &&
  5516. worksStudent[toolIndex].length > 0
  5517. "
  5518. >
  5519. <div
  5520. class="works"
  5521. style="
  5522. width: 200px;
  5523. height: 140px;
  5524. margin: 10px 10px 10px 0;
  5525. border-radius: 15px;
  5526. box-shadow: 0 0 6px 1px #dfdada;
  5527. "
  5528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5529. :key="wIndex"
  5530. >
  5531. <!-- @click="previewImg(w.works)" -->
  5532. <div class="workImg">
  5533. <img
  5534. :src="w.works"
  5535. @click="previewImg(w.works)"
  5536. alt
  5537. />
  5538. <div
  5539. class="answerScore"
  5540. v-if="w.score"
  5541. @click.stop="openScore(w)"
  5542. :class="{
  5543. rightW:
  5544. w.userid == userid || tType == 1 || tType == 4,
  5545. }"
  5546. >
  5547. {{ JSON.parse(w.score).wScore }}分
  5548. </div>
  5549. <div
  5550. class="answerScore"
  5551. @click.stop="openScore(w)"
  5552. v-else-if="courseDetail.userid == userid"
  5553. :class="{
  5554. rightW:
  5555. w.userid == userid || tType == 1 || tType == 4,
  5556. }"
  5557. >
  5558. 评分
  5559. </div>
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="comment" style="min-width: 200px">
  5571. <div class="worksName">
  5572. <div>{{ w.sName }}</div>
  5573. </div>
  5574. <div class="commentList">
  5575. <div class="commentList">
  5576. <div
  5577. class="commentImg"
  5578. @click="
  5579. isLikes(w.wid, userid, 1, null, w.isLikes)
  5580. "
  5581. >
  5582. <img
  5583. :src="w.isLikes == true ? likes : noLikes"
  5584. alt=""
  5585. />
  5586. </div>
  5587. <div>{{ w.likesCount }}</div>
  5588. </div>
  5589. <div class="commentList" style="margin-right: 15px">
  5590. <div
  5591. class="commentImg"
  5592. @click="commentOther(w, toolIndex, wIndex)"
  5593. >
  5594. <img
  5595. src="../../assets/icon/comment/comment.png"
  5596. alt=""
  5597. />
  5598. </div>
  5599. <div>{{ w.commentCount }}</div>
  5600. </div>
  5601. </div>
  5602. </div>
  5603. </div>
  5604. </div>
  5605. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5606. 未提交
  5607. </div>
  5608. <div
  5609. class="noWorksS"
  5610. v-if="noWorksS && noWorksS[toolIndex].length"
  5611. >
  5612. <div
  5613. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5614. :key="sIndex"
  5615. class="noWorksName"
  5616. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5617. >
  5618. <el-tooltip effect="dark" :content="s.student" placement="top">
  5619. <span>{{ s.student }}</span>
  5620. </el-tooltip>
  5621. </div>
  5622. </div>
  5623. </div>
  5624. <div
  5625. v-if="
  5626. tType &&
  5627. ((tType == 2 && sIsOpen == true) ||
  5628. tType == 1 ||
  5629. tType == 4) &&
  5630. tool.tool.indexOf(26) != -1
  5631. "
  5632. class="worksBox"
  5633. >
  5634. <div
  5635. class="zuoyeYulan"
  5636. v-if="
  5637. worksStudent.length &&
  5638. worksStudent[toolIndex].length > 0
  5639. "
  5640. >
  5641. <div class="worksTop">
  5642. <div>作业预览</div>
  5643. <div
  5644. class="corOpen"
  5645. @click="contract(toolIndex)"
  5646. v-if="
  5647. (isCloseList[toolIndex].isCloseBoolean) &&
  5648. isCloseList[toolIndex].isClose == 0
  5649. "
  5650. >
  5651. 折叠
  5652. </div>
  5653. <div
  5654. class="corOpen"
  5655. @click="contract(toolIndex)"
  5656. v-if="isCloseList[toolIndex].isClose == 1"
  5657. >
  5658. 展开
  5659. </div>
  5660. </div>
  5661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5662. </div>
  5663. <div
  5664. :id="'tool-' + toolIndex"
  5665. :style="{
  5666. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5667. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5668. }"
  5669. class="worksDetailBox"
  5670. v-if="
  5671. worksStudent.length &&
  5672. worksStudent[toolIndex].length > 0
  5673. "
  5674. >
  5675. <div
  5676. class="works"
  5677. style="width: 240px; height: 140px; overflow: hidden"
  5678. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5679. :key="wIndex"
  5680. :class="w.type == 1 ? 'isTypeOne' : ''"
  5681. >
  5682. <div class="workImg" v-if="w.type == 0">
  5683. <img
  5684. :src="w.works"
  5685. @click="previewImg(w.works)"
  5686. alt
  5687. />
  5688. <img
  5689. class="deleteImg"
  5690. src="../../assets/deleteworks.png"
  5691. v-if="
  5692. w.userid == userid || tType == 1 || tType == 4
  5693. "
  5694. @click.stop="deleteWorks(w.wid)"
  5695. alt
  5696. />
  5697. </div>
  5698. <div class="workImg" v-if="w.type == 1">
  5699. <img :src="word" @click="openFile(w.works)" alt />
  5700. <img
  5701. class="deleteImg"
  5702. src="../../assets/deleteworks.png"
  5703. v-if="
  5704. w.userid == userid || tType == 1 || tType == 4
  5705. "
  5706. @click.stop="deleteWorks(w.wid)"
  5707. alt
  5708. />
  5709. </div>
  5710. <div class="worksName">
  5711. <div>{{ w.sName }}</div>
  5712. </div>
  5713. </div>
  5714. </div>
  5715. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5716. 未提交
  5717. </div>
  5718. <div
  5719. class="noWorksS"
  5720. v-if="noWorksS && noWorksS[toolIndex].length"
  5721. >
  5722. <div
  5723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5724. :key="sIndex"
  5725. class="noWorksName"
  5726. >
  5727. <el-tooltip effect="dark" :content="s.student" placement="top">
  5728. <span>{{ s.student }}</span>
  5729. </el-tooltip>
  5730. </div>
  5731. </div>
  5732. </div>
  5733. <div
  5734. v-if="
  5735. tType &&
  5736. ((tType == 2 && sIsOpen == true) ||
  5737. tType == 1 ||
  5738. tType == 4) &&
  5739. tool.tool.indexOf(40) != -1
  5740. "
  5741. class="worksBox"
  5742. >
  5743. <div
  5744. class="zuoyeYulan"
  5745. v-if="
  5746. worksStudent.length &&
  5747. worksStudent[toolIndex].length > 0
  5748. "
  5749. >
  5750. <div class="worksTop">
  5751. <div>作业预览</div>
  5752. <div
  5753. class="corOpen"
  5754. @click="contract(toolIndex)"
  5755. v-if="
  5756. (isCloseList[toolIndex].isCloseBoolean) &&
  5757. isCloseList[toolIndex].isClose == 0
  5758. "
  5759. >
  5760. 折叠
  5761. </div>
  5762. <div
  5763. class="corOpen"
  5764. @click="contract(toolIndex)"
  5765. v-if="isCloseList[toolIndex].isClose == 1"
  5766. >
  5767. 展开
  5768. </div>
  5769. </div>
  5770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5771. </div>
  5772. <div
  5773. :id="'tool-' + toolIndex"
  5774. :style="{
  5775. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5776. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5777. }"
  5778. class="worksDetailBox"
  5779. v-if="
  5780. worksStudent.length &&
  5781. worksStudent[toolIndex].length > 0
  5782. "
  5783. >
  5784. <div
  5785. class="works"
  5786. style="
  5787. width: 200px;
  5788. height: 140px;
  5789. margin: 10px 10px 10px 0;
  5790. border-radius: 15px;
  5791. box-shadow: 0 0 6px 1px #dfdada;
  5792. "
  5793. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5794. :key="wIndex"
  5795. :class="w.type == 1 ? 'isTypeOne' : ''"
  5796. >
  5797. <div class="workImg">
  5798. <img
  5799. src="../../assets/icon/works/noImg.png"
  5800. @click="openPj(w.works, toolIndex)"
  5801. alt
  5802. />
  5803. <img
  5804. class="deleteImg"
  5805. src="../../assets/deleteworks.png"
  5806. v-if="
  5807. w.userid == userid || tType == 1 || tType == 4
  5808. "
  5809. @click.stop="deleteWorks(w.wid)"
  5810. alt
  5811. />
  5812. </div>
  5813. <div class="comment" style="min-width: 200px">
  5814. <div class="worksName">
  5815. <div>{{ w.sName }}</div>
  5816. </div>
  5817. <div class="commentList">
  5818. <div class="commentList">
  5819. <div
  5820. class="commentImg"
  5821. @click="
  5822. isLikes(w.wid, userid, 1, null, w.isLikes)
  5823. "
  5824. >
  5825. <img
  5826. :src="w.isLikes == true ? likes : noLikes"
  5827. alt=""
  5828. />
  5829. </div>
  5830. <div>{{ w.likesCount }}</div>
  5831. </div>
  5832. <div class="commentList" style="margin-right: 15px">
  5833. <div
  5834. class="commentImg"
  5835. @click="commentOther(w, toolIndex, wIndex)"
  5836. >
  5837. <img
  5838. src="../../assets/icon/comment/comment.png"
  5839. alt=""
  5840. />
  5841. </div>
  5842. <div>{{ w.commentCount }}</div>
  5843. </div>
  5844. </div>
  5845. </div>
  5846. </div>
  5847. </div>
  5848. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5849. 未提交
  5850. </div>
  5851. <div
  5852. class="noWorksS"
  5853. v-if="noWorksS && noWorksS[toolIndex].length"
  5854. >
  5855. <div
  5856. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5857. :key="sIndex"
  5858. class="noWorksName"
  5859. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5860. >
  5861. <el-tooltip effect="dark" :content="s.student" placement="top">
  5862. <span>{{ s.student }}</span>
  5863. </el-tooltip>
  5864. </div>
  5865. </div>
  5866. </div>
  5867. <div
  5868. v-if="
  5869. tType &&
  5870. tType == 2 &&
  5871. !sIsOpen &&
  5872. tool.tool.indexOf(40) != -1
  5873. "
  5874. class="worksBox"
  5875. >
  5876. <div
  5877. class="zuoyeYulan"
  5878. v-if="workStudent[toolIndex].length > 0"
  5879. >
  5880. <span class="worksTitle">作业预览</span>
  5881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5882. </div>
  5883. <div
  5884. class="worksDetailBox"
  5885. v-if="workStudent[toolIndex].length > 0"
  5886. >
  5887. <div
  5888. class="works"
  5889. style="
  5890. width: 200px;
  5891. height: 140px;
  5892. margin: 10px 10px 10px 0;
  5893. "
  5894. v-for="(w, wIndex) in workStudent[toolIndex]"
  5895. :key="wIndex"
  5896. >
  5897. <div class="workImg">
  5898. <img
  5899. src="../../assets/icon/works/noImg.png"
  5900. @click="openPj(w.works, toolIndex)"
  5901. alt
  5902. />
  5903. <img
  5904. class="deleteImg"
  5905. src="../../assets/deleteworks.png"
  5906. v-if="
  5907. w.userid == userid || tType == 1 || tType == 4
  5908. "
  5909. @click.stop="deleteWorks(w.wid)"
  5910. alt
  5911. />
  5912. </div>
  5913. <div class="worksName">
  5914. <div>{{ w.sName }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. <div
  5920. v-if="
  5921. tType &&
  5922. ((tType == 2 && sIsOpen == true) ||
  5923. tType == 1 ||
  5924. tType == 4) &&
  5925. tool.tool.indexOf(41) != -1
  5926. "
  5927. >
  5928. <AnswerData2
  5929. v-if="
  5930. worksStudent.length &&
  5931. worksStudent[toolIndex].length > 0
  5932. "
  5933. :problemJson="tool.selectJson.answer"
  5934. :people="worksStudent[toolIndex]"
  5935. ></AnswerData2>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(41) != -1
  5944. "
  5945. class="worksBox"
  5946. >
  5947. <div
  5948. class="zuoyeYulan"
  5949. v-if="
  5950. worksStudent.length &&
  5951. worksStudent[toolIndex].length > 0
  5952. "
  5953. >
  5954. <div class="worksTop">
  5955. <div>作业预览</div>
  5956. <div
  5957. class="corOpen"
  5958. @click="contract(toolIndex)"
  5959. v-if="
  5960. (isCloseList[toolIndex].isCloseBoolean) &&
  5961. isCloseList[toolIndex].isClose == 0
  5962. "
  5963. >
  5964. 折叠
  5965. </div>
  5966. <div
  5967. class="corOpen"
  5968. @click="contract(toolIndex)"
  5969. v-if="isCloseList[toolIndex].isClose == 1"
  5970. >
  5971. 展开
  5972. </div>
  5973. </div>
  5974. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5975. </div>
  5976. <div
  5977. :id="'tool-' + toolIndex"
  5978. :style="{
  5979. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5980. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5981. }"
  5982. class="worksDetailBox"
  5983. v-if="
  5984. worksStudent.length &&
  5985. worksStudent[toolIndex].length > 0
  5986. "
  5987. >
  5988. <div
  5989. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5990. :key="wIndex"
  5991. class="isWorksName2"
  5992. @click="openXz(w, toolIndex)"
  5993. >
  5994. {{ w.sName }}
  5995. <img
  5996. class="deleteImg deleteImg2"
  5997. src="../../assets/deleteworks.png"
  5998. v-if="w.userid == userid || tType == 1 || tType == 4"
  5999. @click.stop="deleteWorks(w.wid)"
  6000. alt
  6001. />
  6002. </div>
  6003. <!-- <div
  6004. class="works"
  6005. style="
  6006. width: 200px;
  6007. height: 140px;
  6008. margin: 10px 10px 10px 0;
  6009. border-radius: 15px;
  6010. box-shadow: 0 0 6px 1px #dfdada;
  6011. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6012. :class="w.type == 5 ? 'isTypeOne' : ''">
  6013. <div class="workImg">
  6014. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6015. </div>
  6016. <div class="worksName">
  6017. <div>{{ w.sName }}</div>
  6018. </div>
  6019. </div> -->
  6020. </div>
  6021. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6022. 未提交
  6023. </div>
  6024. <div
  6025. class="noWorksS"
  6026. v-if="noWorksS && noWorksS[toolIndex].length"
  6027. >
  6028. <div
  6029. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6030. :key="sIndex"
  6031. class="noWorksName"
  6032. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6033. >
  6034. <el-tooltip effect="dark" :content="s.student" placement="top">
  6035. <span>{{ s.student }}</span>
  6036. </el-tooltip>
  6037. </div>
  6038. </div>
  6039. </div>
  6040. <div
  6041. v-if="
  6042. tType &&
  6043. tType == 2 &&
  6044. !sIsOpen &&
  6045. tool.tool.indexOf(41) != -1
  6046. "
  6047. class="worksBox"
  6048. >
  6049. <div
  6050. class="zuoyeYulan"
  6051. v-if="workStudent[toolIndex].length > 0"
  6052. >
  6053. <span class="worksTitle">作业预览</span>
  6054. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6055. </div>
  6056. <div
  6057. class="worksDetailBox"
  6058. v-if="workStudent[toolIndex].length > 0"
  6059. >
  6060. <div
  6061. class="works"
  6062. style="
  6063. width: 200px;
  6064. height: 140px;
  6065. margin: 10px 10px 10px 0;
  6066. "
  6067. v-for="(w, wIndex) in workStudent[toolIndex]"
  6068. :key="wIndex"
  6069. >
  6070. <div class="workImg">
  6071. <img
  6072. src="../../assets/icon/works/noImg.png"
  6073. @click="openXz(w, toolIndex)"
  6074. alt
  6075. />
  6076. <img
  6077. class="deleteImg"
  6078. src="../../assets/deleteworks.png"
  6079. v-if="
  6080. w.userid == userid || tType == 1 || tType == 4
  6081. "
  6082. @click.stop="deleteWorks(w.wid)"
  6083. alt
  6084. />
  6085. </div>
  6086. <div class="worksName">
  6087. <div>{{ w.sName }}</div>
  6088. </div>
  6089. </div>
  6090. </div>
  6091. </div>
  6092. <div v-if="false" class="xuan_right_box">
  6093. <div
  6094. class="tool_right_box"
  6095. v-for="(item, index) in tool.sentenceList"
  6096. :key="index"
  6097. >
  6098. <div>
  6099. <span
  6100. style="word-break: break-all; white-space: normal"
  6101. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  6102. >
  6103. </div>
  6104. <div class="right_box_xuan">
  6105. <span>正确率</span>
  6106. <span>{{
  6107. (checkJson[toolIndex][index].right
  6108. ? checkJson[toolIndex][index].right
  6109. : 0) + "%"
  6110. }}</span>
  6111. </div>
  6112. <div class="right_box_xuan">
  6113. <span>答对人数</span>
  6114. <span>{{
  6115. checkJson[toolIndex][index].rightPerson.length
  6116. }}</span>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. <div
  6121. v-if="
  6122. tType &&
  6123. ((tType == 2 && sIsOpen == true) ||
  6124. tType == 1 ||
  6125. tType == 4) &&
  6126. tool.tool.indexOf(47) != -1
  6127. "
  6128. >
  6129. <AnswerData
  6130. v-if="
  6131. checkJson[toolIndex].length &&
  6132. (tool.sentenceList || tool.sentenceList.length > 0)
  6133. "
  6134. :people="checkJson[toolIndex]"
  6135. ></AnswerData>
  6136. </div>
  6137. <div
  6138. v-if="
  6139. tType &&
  6140. tType == 2 &&
  6141. !sIsOpen &&
  6142. tool.tool.indexOf(47) != -1
  6143. "
  6144. class="worksBox"
  6145. >
  6146. <div
  6147. class="zuoyeYulan"
  6148. v-if="workStudent[toolIndex].length > 0"
  6149. >
  6150. <span class="worksTitle">作业预览</span>
  6151. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6152. </div>
  6153. <div
  6154. class="worksDetailBox"
  6155. v-if="workStudent[toolIndex].length > 0"
  6156. >
  6157. <div
  6158. class="works"
  6159. style="
  6160. width: 200px;
  6161. height: 140px;
  6162. margin: 10px 10px 10px 0;
  6163. "
  6164. v-for="(w, wIndex) in workStudent[toolIndex]"
  6165. :key="wIndex"
  6166. >
  6167. <!-- @click="openXz(w, toolIndex)" -->
  6168. <div class="workImg" @click="openSen(w, toolIndex)">
  6169. <img src="../../assets/icon/works/noImg.png" alt />
  6170. <img
  6171. class="deleteImg"
  6172. src="../../assets/deleteworks.png"
  6173. v-if="
  6174. w.userid == userid || tType == 1 || tType == 4
  6175. "
  6176. @click.stop="deleteWorks(w.wid)"
  6177. alt
  6178. />
  6179. </div>
  6180. <div class="worksName">
  6181. <div>
  6182. {{ w.sName }}
  6183. </div>
  6184. </div>
  6185. </div>
  6186. </div>
  6187. </div>
  6188. <div
  6189. v-if="
  6190. tType &&
  6191. ((tType == 2 && sIsOpen == true) ||
  6192. tType == 1 ||
  6193. tType == 4) &&
  6194. tool.tool.indexOf(47) != -1
  6195. "
  6196. class="worksBox"
  6197. >
  6198. <div
  6199. class="zuoyeYulan"
  6200. v-if="
  6201. worksStudent.length &&
  6202. worksStudent[toolIndex].length > 0
  6203. "
  6204. >
  6205. <div class="worksTop">
  6206. <div>作业预览</div>
  6207. <div
  6208. class="corOpen"
  6209. @click="contract(toolIndex)"
  6210. v-if="
  6211. (isCloseList[toolIndex].isCloseBoolean) &&
  6212. isCloseList[toolIndex].isClose == 0
  6213. "
  6214. >
  6215. 折叠
  6216. </div>
  6217. <div
  6218. class="corOpen"
  6219. @click="contract(toolIndex)"
  6220. v-if="isCloseList[toolIndex].isClose == 1"
  6221. >
  6222. 展开
  6223. </div>
  6224. </div>
  6225. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6226. </div>
  6227. <div
  6228. :id="'tool-' + toolIndex"
  6229. :style="{
  6230. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6231. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6232. }"
  6233. class="worksDetailBox"
  6234. v-if="
  6235. worksStudent.length &&
  6236. worksStudent[toolIndex].length > 0
  6237. "
  6238. >
  6239. <!-- @click="openXz(w, toolIndex)" -->
  6240. <div
  6241. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6242. :key="wIndex"
  6243. class="isWorksName2"
  6244. @click="openSen(w, toolIndex)"
  6245. >
  6246. {{ w.sName }}
  6247. <img
  6248. class="deleteImg deleteImg2"
  6249. src="../../assets/deleteworks.png"
  6250. v-if="w.userid == userid || tType == 1 || tType == 4"
  6251. @click.stop="deleteWorks(w.wid)"
  6252. alt
  6253. />
  6254. </div>
  6255. </div>
  6256. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6257. 未提交
  6258. </div>
  6259. <div
  6260. class="noWorksS"
  6261. v-if="noWorksS && noWorksS[toolIndex].length"
  6262. >
  6263. <div
  6264. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6265. :key="sIndex"
  6266. class="noWorksName"
  6267. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  6268. >
  6269. <el-tooltip effect="dark" :content="s.student" placement="top">
  6270. <span>{{ s.student }}</span>
  6271. </el-tooltip>
  6272. </div>
  6273. </div>
  6274. </div>
  6275. <div
  6276. v-if="
  6277. tType &&
  6278. ((tType == 2 && sIsOpen == true) ||
  6279. tType == 1 ||
  6280. tType == 4) &&
  6281. tool.tool.indexOf(48) != -1
  6282. "
  6283. class="worksBox"
  6284. >
  6285. <div
  6286. class="zuoyeYulan"
  6287. v-if="
  6288. worksStudent.length &&
  6289. worksStudent[toolIndex].length > 0
  6290. "
  6291. >
  6292. <div class="worksTop">
  6293. <div>作业预览</div>
  6294. <div
  6295. class="corOpen"
  6296. @click="contract(toolIndex)"
  6297. v-if="
  6298. (isCloseList[toolIndex].isCloseBoolean) &&
  6299. isCloseList[toolIndex].isClose == 0
  6300. "
  6301. >
  6302. 折叠
  6303. </div>
  6304. <div
  6305. class="corOpen"
  6306. @click="contract(toolIndex)"
  6307. v-if="isCloseList[toolIndex].isClose == 1"
  6308. >
  6309. 展开
  6310. </div>
  6311. </div>
  6312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6313. </div>
  6314. <div
  6315. :id="'tool-' + toolIndex"
  6316. :style="{
  6317. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6318. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6319. }"
  6320. class="worksDetailBox"
  6321. v-if="
  6322. worksStudent.length &&
  6323. worksStudent[toolIndex].length > 0
  6324. "
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. border-radius: 15px;
  6333. box-shadow: 0 0 6px 1px #dfdada;
  6334. "
  6335. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6336. :key="wIndex"
  6337. :class="w.type == 1 ? 'isTypeOne' : ''"
  6338. >
  6339. <div class="workImg">
  6340. <img :src="word" @click="openTable(w)" alt />
  6341. <!-- @click="openFile(w.works)" -->
  6342. <div
  6343. class="answerScore"
  6344. v-if="w.score"
  6345. @click.stop="openScore(w)"
  6346. :class="{
  6347. rightW:
  6348. w.userid == userid ||
  6349. tType == 1 ||
  6350. tType == 4 ||
  6351. w.ateacher == userid,
  6352. }"
  6353. >
  6354. {{ JSON.parse(w.score).wScore }}分
  6355. </div>
  6356. <div
  6357. class="answerScore"
  6358. @click.stop="openScore(w)"
  6359. v-else-if="courseDetail.userid == userid"
  6360. :class="{
  6361. rightW:
  6362. w.userid == userid ||
  6363. tType == 1 ||
  6364. tType == 4 ||
  6365. w.ateacher == userid,
  6366. }"
  6367. >
  6368. 评分
  6369. </div>
  6370. <img
  6371. class="deleteImg"
  6372. src="../../assets/deleteworks.png"
  6373. v-if="
  6374. w.userid == userid || tType == 1 || tType == 4
  6375. "
  6376. @click.stop="deleteWorks(w.wid)"
  6377. alt
  6378. />
  6379. </div>
  6380. <div class="comment" style="min-width: 200px">
  6381. <div class="worksName">
  6382. <div>{{ w.sName }}</div>
  6383. </div>
  6384. <div class="commentList">
  6385. <div class="commentList">
  6386. <div
  6387. class="commentImg"
  6388. @click="
  6389. isLikes(w.wid, userid, 1, null, w.isLikes)
  6390. "
  6391. >
  6392. <img
  6393. :src="w.isLikes == true ? likes : noLikes"
  6394. alt=""
  6395. />
  6396. </div>
  6397. <div>{{ w.likesCount }}</div>
  6398. </div>
  6399. <div class="commentList" style="margin-right: 15px">
  6400. <div
  6401. class="commentImg"
  6402. @click="commentOther(w, toolIndex, wIndex)"
  6403. >
  6404. <img
  6405. src="../../assets/icon/comment/comment.png"
  6406. alt=""
  6407. />
  6408. </div>
  6409. <div>{{ w.commentCount }}</div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6416. 未提交
  6417. </div>
  6418. <div
  6419. class="noWorksS"
  6420. v-if="noWorksS && noWorksS[toolIndex].length"
  6421. >
  6422. <div
  6423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6424. :key="sIndex"
  6425. class="noWorksName"
  6426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6427. >
  6428. <el-tooltip effect="dark" :content="s.student" placement="top">
  6429. <span>{{ s.student }}</span>
  6430. </el-tooltip>
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div
  6435. v-if="
  6436. tType &&
  6437. tType == 2 &&
  6438. !sIsOpen &&
  6439. tool.tool.indexOf(48) != -1
  6440. "
  6441. class="worksBox"
  6442. >
  6443. <div
  6444. class="zuoyeYulan"
  6445. v-if="workStudent[toolIndex].length > 0"
  6446. >
  6447. <span class="worksTitle">作业预览</span>
  6448. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6449. </div>
  6450. <div
  6451. class="worksDetailBox"
  6452. v-if="workStudent[toolIndex].length > 0"
  6453. >
  6454. <div
  6455. class="works"
  6456. style="
  6457. width: 200px;
  6458. height: 140px;
  6459. margin: 10px 10px 10px 0;
  6460. box-shadow: 0 0 6px 1px #dfdada;
  6461. "
  6462. v-for="(w, wIndex) in workStudent[toolIndex]"
  6463. :key="wIndex"
  6464. >
  6465. <div class="workImg">
  6466. <img :src="word" @click="openTable(w)" alt />
  6467. <div
  6468. class="answerScore"
  6469. v-if="w.score"
  6470. @click.stop="openScore(w)"
  6471. :class="{
  6472. rightW:
  6473. w.userid == userid || tType == 1 || tType == 4,
  6474. }"
  6475. >
  6476. {{ JSON.parse(w.score).wScore }}分
  6477. </div>
  6478. <div
  6479. class="answerScore"
  6480. @click.stop="openScore(w)"
  6481. v-else-if="courseDetail.userid == userid"
  6482. :class="{
  6483. rightW:
  6484. w.userid == userid || tType == 1 || tType == 4,
  6485. }"
  6486. >
  6487. 评分
  6488. </div>
  6489. <img
  6490. class="deleteImg"
  6491. src="../../assets/deleteworks.png"
  6492. v-if="
  6493. w.userid == userid || tType == 1 || tType == 4
  6494. "
  6495. @click.stop="deleteWorks(w.wid)"
  6496. alt
  6497. />
  6498. </div>
  6499. <div class="worksName">
  6500. <div>{{ w.sName }}</div>
  6501. </div>
  6502. </div>
  6503. </div>
  6504. </div>
  6505. <div
  6506. v-if="
  6507. tType &&
  6508. ((tType == 2 && sIsOpen == true) ||
  6509. tType == 1 ||
  6510. tType == 4) &&
  6511. tool.tool.indexOf(52) != -1
  6512. "
  6513. class="worksBox"
  6514. >
  6515. <div
  6516. class="zuoyeYulan"
  6517. style="display: flex;justify-content: space-between;align-items: center;"
  6518. v-if="
  6519. worksStudent.length &&
  6520. worksStudent[toolIndex].length > 0
  6521. "
  6522. >
  6523. <div class="worksTop">
  6524. <div>作业预览</div>
  6525. <div
  6526. class="corOpen"
  6527. @click="contract(toolIndex)"
  6528. v-if="
  6529. (isCloseList[toolIndex].isCloseBoolean) &&
  6530. isCloseList[toolIndex].isClose == 0
  6531. "
  6532. >
  6533. 折叠
  6534. </div>
  6535. <div
  6536. class="corOpen"
  6537. @click="contract(toolIndex)"
  6538. v-if="isCloseList[toolIndex].isClose == 1"
  6539. >
  6540. 展开
  6541. </div>
  6542. </div>
  6543. <div v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && courseDetail.state == 5">
  6544. <div class="ScoreBtn" v-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail)" >
  6545. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6546. AI评分
  6547. </div>
  6548. <div class="ScoreBtn" v-else >
  6549. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6550. 正在评分
  6551. </div>
  6552. </div>
  6553. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6554. </div>
  6555. <div
  6556. :id="'tool-' + toolIndex"
  6557. :style="{
  6558. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6559. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6560. }"
  6561. class="worksDetailBox"
  6562. v-if="
  6563. worksStudent.length &&
  6564. worksStudent[toolIndex].length > 0
  6565. "
  6566. >
  6567. <div
  6568. class="works"
  6569. style="
  6570. width: 200px;
  6571. height: 140px;
  6572. margin: 10px 10px 10px 0;
  6573. border-radius: 15px;
  6574. box-shadow: 0 0 6px 1px #dfdada;
  6575. "
  6576. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6577. :key="wIndex"
  6578. :class="w.type == 1 ? 'isTypeOne' : ''"
  6579. >
  6580. <div class="workImg">
  6581. <img :src="word" @click="openWord(w)" alt />
  6582. <!-- @click="openFile(w.works)" -->
  6583. <div
  6584. class="answerScore"
  6585. v-if="w.score"
  6586. @click.stop="openScore(w)"
  6587. :class="{
  6588. rightW:
  6589. w.userid == userid ||
  6590. tType == 1 ||
  6591. tType == 4 ||
  6592. w.ateacher == userid,
  6593. }"
  6594. >
  6595. {{ JSON.parse(w.score).wScore }}分
  6596. </div>
  6597. <div
  6598. class="answerScore"
  6599. @click.stop="openScore(w)"
  6600. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6601. :class="{
  6602. rightW:
  6603. w.userid == userid ||
  6604. tType == 1 ||
  6605. tType == 4 ||
  6606. w.ateacher == userid,
  6607. }"
  6608. >
  6609. 评分
  6610. </div>
  6611. <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5">
  6612. <el-popover
  6613. placement="top"
  6614. width="300"
  6615. :disabled="AIloading[toolIndex][wIndex].loading"
  6616. trigger="click"
  6617. >
  6618. <!-- {{w}} -->
  6619. <markScore
  6620. :loading="AIloading[toolIndex][wIndex].loading"
  6621. ref="markSco"
  6622. @updateLoading=updateLoading
  6623. @updateDocSco=updateDocSco
  6624. :wIndex="wIndex"
  6625. :scoCon="w"
  6626. :TotalScore="AIloading[toolIndex][wIndex].sco"
  6627. :toolIndex="toolIndex"
  6628. :key="refreshKey"
  6629. :refreshKey="refreshKey"
  6630. :toolDetail="tool.toolDetail"
  6631. :stage="courseType"
  6632. :task="taskCount"
  6633. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList">
  6634. </markScore>
  6635. <div
  6636. class="answerScore"
  6637. slot="reference"
  6638. @click="refreshAssembly(wIndex)"
  6639. :class="{
  6640. rightW:
  6641. w.userid == userid ||
  6642. tType == 1 ||
  6643. tType == 4 ||
  6644. w.ateacher == userid,
  6645. }"
  6646. >
  6647. <span v-if="AIloading[toolIndex][wIndex].sco">
  6648. {{ AIloading[toolIndex][wIndex].loading? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6649. </span>
  6650. <span v-else>
  6651. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}{{w.Total}}
  6652. </span>
  6653. </div>
  6654. </el-popover>
  6655. </div>
  6656. <img
  6657. class="deleteImg"
  6658. src="../../assets/deleteworks.png"
  6659. v-if="
  6660. w.userid == userid || tType == 1 || tType == 4
  6661. "
  6662. @click.stop="deleteWorks(w.wid)"
  6663. alt
  6664. />
  6665. </div>
  6666. <div class="comment" style="min-width: 200px">
  6667. <div class="worksName">
  6668. <div>{{ w.sName }}</div>
  6669. </div>
  6670. <div class="commentList">
  6671. <div class="commentList">
  6672. <div
  6673. class="commentImg"
  6674. @click="
  6675. isLikes(w.wid, userid, 1, null, w.isLikes)
  6676. "
  6677. >
  6678. <img
  6679. :src="w.isLikes == true ? likes : noLikes"
  6680. alt=""
  6681. />
  6682. </div>
  6683. <div>{{ w.likesCount }}</div>
  6684. </div>
  6685. <div class="commentList" style="margin-right: 15px">
  6686. <div
  6687. class="commentImg"
  6688. @click="commentOther(w, toolIndex, wIndex)"
  6689. >
  6690. <img
  6691. src="../../assets/icon/comment/comment.png"
  6692. alt=""
  6693. />
  6694. </div>
  6695. <div>{{ w.commentCount }}</div>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. </div>
  6700. </div>
  6701. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6702. 未提交
  6703. </div>
  6704. <div
  6705. class="noWorksS"
  6706. v-if="noWorksS && noWorksS[toolIndex].length"
  6707. >
  6708. <div
  6709. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6710. :key="sIndex"
  6711. class="noWorksName"
  6712. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6713. >
  6714. <el-tooltip effect="dark" :content="s.student" placement="top">
  6715. <span>{{ s.student }}</span>
  6716. </el-tooltip>
  6717. </div>
  6718. </div>
  6719. </div>
  6720. <div
  6721. v-if="
  6722. tType &&
  6723. tType == 2 &&
  6724. !sIsOpen &&
  6725. tool.tool.indexOf(52) != -1
  6726. "
  6727. class="worksBox"
  6728. >
  6729. <div
  6730. class="zuoyeYulan"
  6731. v-if="workStudent[toolIndex].length > 0"
  6732. >
  6733. <span class="worksTitle">作业预览</span>
  6734. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6735. </div>
  6736. <div
  6737. class="worksDetailBox"
  6738. v-if="workStudent[toolIndex].length > 0"
  6739. >
  6740. <div
  6741. class="works"
  6742. style="
  6743. width: 200px;
  6744. height: 140px;
  6745. margin: 10px 10px 10px 0;
  6746. box-shadow: 0 0 6px 1px #dfdada;
  6747. "
  6748. v-for="(w, wIndex) in workStudent[toolIndex]"
  6749. :key="wIndex"
  6750. >
  6751. <div class="workImg">
  6752. <img :src="word" @click="openWord(w)" alt />
  6753. <div
  6754. class="answerScore"
  6755. v-if="w.score"
  6756. @click.stop="openScore(w)"
  6757. :class="{
  6758. rightW:
  6759. w.userid == userid || tType == 1 || tType == 4,
  6760. }"
  6761. >
  6762. {{ JSON.parse(w.score).wScore }}分
  6763. </div>
  6764. <div
  6765. class="answerScore"
  6766. @click.stop="openScore(w)"
  6767. v-else-if="courseDetail.userid == userid"
  6768. :class="{
  6769. rightW:
  6770. w.userid == userid || tType == 1 || tType == 4,
  6771. }"
  6772. >
  6773. 评分
  6774. </div>
  6775. <img
  6776. class="deleteImg"
  6777. src="../../assets/deleteworks.png"
  6778. v-if="
  6779. w.userid == userid || tType == 1 || tType == 4
  6780. "
  6781. @click.stop="deleteWorks(w.wid)"
  6782. alt
  6783. />
  6784. </div>
  6785. <div class="worksName">
  6786. <div>{{ w.sName }}</div>
  6787. </div>
  6788. </div>
  6789. </div>
  6790. </div>
  6791. <div
  6792. v-if="tool.tool.indexOf(49) != -1"
  6793. class="xuan_right_box"
  6794. style="margin: 0 15px 0 25px; width: 93%"
  6795. >
  6796. <div
  6797. v-if="courseDetail.userid == userid"
  6798. style="
  6799. display: flex;
  6800. justify-content: flex-end;
  6801. margin-right: 10px;
  6802. "
  6803. >
  6804. <el-button
  6805. type="primary"
  6806. size="small"
  6807. @click="addTools(49, toolIndex, taskCount)"
  6808. >分组设置</el-button
  6809. >
  6810. </div>
  6811. <div
  6812. v-if="groupStudentUid[toolIndex]"
  6813. class="group_staic_box"
  6814. >
  6815. <div
  6816. v-for="(gp, gd) in tool.groupJson.group"
  6817. :key="gd"
  6818. class="group_staic"
  6819. >
  6820. <span> {{ gp.name }}</span>
  6821. <span>
  6822. 目前人数{{
  6823. groupStudentUid[toolIndex][gd].length
  6824. }}人</span
  6825. >
  6826. </div>
  6827. </div>
  6828. </div>
  6829. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6830. <div
  6831. class="zuoyeYulan"
  6832. v-if="
  6833. worksStudent.length &&
  6834. worksStudent[toolIndex].length > 0
  6835. "
  6836. >
  6837. <span class="worksTitle">作业预览</span>
  6838. </div>
  6839. <div>
  6840. <div
  6841. class="group_workBox"
  6842. v-for="(g, gindex) in tool.groupJson.group"
  6843. :key="gindex"
  6844. >
  6845. <div
  6846. class="group_box"
  6847. v-if="
  6848. groupStudentUid[toolIndex] &&
  6849. worksStudent[toolIndex] &&
  6850. (worksStudent[toolIndex][gindex].length ||
  6851. groupStudentUid[toolIndex][gindex].indexOf(
  6852. userid
  6853. ) != -1)
  6854. "
  6855. >
  6856. <div class="group_title">
  6857. <el-tooltip
  6858. class="item"
  6859. effect="light"
  6860. :content="g.name"
  6861. placement="top"
  6862. >
  6863. <div class="group_name">{{ g.name }}</div>
  6864. </el-tooltip>
  6865. <el-button
  6866. type="primary"
  6867. v-if="
  6868. groupStudentUid[toolIndex][gindex].indexOf(
  6869. userid
  6870. ) != -1
  6871. "
  6872. @click="groupUpload(toolIndex, taskCount, gindex)"
  6873. >上传作业</el-button
  6874. >
  6875. </div>
  6876. <div class="group_work">
  6877. <div
  6878. class="works"
  6879. style="
  6880. width: 200px;
  6881. height: 140px;
  6882. margin: 10px 10px 10px 0;
  6883. border-radius: 15px;
  6884. box-shadow: 0 0 6px 1px #dfdada;
  6885. "
  6886. v-for="(w, wIndex) in worksStudent[toolIndex][
  6887. gindex
  6888. ]"
  6889. :key="wIndex"
  6890. :class="w.type == 1 ? 'isTypeOne' : ''"
  6891. >
  6892. <div class="workImg" v-if="w.type == 0">
  6893. <img
  6894. :src="w.works"
  6895. @click="previewImg(w.works)"
  6896. alt
  6897. />
  6898. <div
  6899. class="answerScore"
  6900. v-if="w.score"
  6901. @click.stop="openScore(w)"
  6902. :class="{
  6903. rightW:
  6904. w.userid == userid ||
  6905. tType == 1 ||
  6906. tType == 4 ||
  6907. w.ateacher == userid,
  6908. }"
  6909. >
  6910. {{ JSON.parse(w.score).wScore }}分
  6911. </div>
  6912. <div
  6913. class="answerScore"
  6914. @click.stop="openScore(w)"
  6915. v-else-if="courseDetail.userid == userid"
  6916. :class="{
  6917. rightW:
  6918. w.userid == userid ||
  6919. tType == 1 ||
  6920. tType == 4 ||
  6921. w.ateacher == userid,
  6922. }"
  6923. >
  6924. 评分
  6925. </div>
  6926. <img
  6927. class="deleteImg"
  6928. src="../../assets/deleteworks.png"
  6929. v-if="
  6930. w.userid == userid ||
  6931. tType == 1 ||
  6932. tType == 4
  6933. "
  6934. @click.stop="deleteWorks(w.wid)"
  6935. alt
  6936. />
  6937. </div>
  6938. <div class="workImg" v-if="w.type == 1">
  6939. <img
  6940. :src="word"
  6941. @click="openFile(w.works)"
  6942. alt
  6943. />
  6944. <!-- @click="openFile(w.works)" -->
  6945. <div
  6946. class="answerScore"
  6947. v-if="w.score"
  6948. @click.stop="openScore(w)"
  6949. :class="{
  6950. rightW:
  6951. w.userid == userid ||
  6952. tType == 1 ||
  6953. tType == 4 ||
  6954. w.ateacher == userid,
  6955. }"
  6956. >
  6957. {{ JSON.parse(w.score).wScore }}分
  6958. </div>
  6959. <div
  6960. class="answerScore"
  6961. @click.stop="openScore(w)"
  6962. v-else-if="courseDetail.userid == userid"
  6963. :class="{
  6964. rightW:
  6965. w.userid == userid ||
  6966. tType == 1 ||
  6967. tType == 4 ||
  6968. w.ateacher == userid,
  6969. }"
  6970. >
  6971. 评分
  6972. </div>
  6973. <img
  6974. class="deleteImg"
  6975. src="../../assets/deleteworks.png"
  6976. v-if="
  6977. w.userid == userid ||
  6978. tType == 1 ||
  6979. tType == 4
  6980. "
  6981. @click.stop="deleteWorks(w.wid)"
  6982. alt
  6983. />
  6984. </div>
  6985. <div class="workImg" v-if="w.type == 3">
  6986. <img
  6987. style="cursor: pointer"
  6988. :src="video"
  6989. @click="openVideo(w)"
  6990. alt
  6991. />
  6992. <!-- @click="openVideo(w.works)" -->
  6993. <div
  6994. class="answerScore"
  6995. v-if="w.score"
  6996. @click.stop="openScore(w)"
  6997. :class="{
  6998. rightW:
  6999. w.userid == userid ||
  7000. tType == 1 ||
  7001. tType == 4 ||
  7002. w.ateacher == userid,
  7003. }"
  7004. >
  7005. {{ JSON.parse(w.score).wScore }}分
  7006. </div>
  7007. <div
  7008. class="answerScore"
  7009. @click.stop="openScore(w)"
  7010. v-else-if="courseDetail.userid == userid"
  7011. :class="{
  7012. rightW:
  7013. w.userid == userid ||
  7014. tType == 1 ||
  7015. tType == 4 ||
  7016. w.ateacher == userid,
  7017. }"
  7018. >
  7019. 评分
  7020. </div>
  7021. <img
  7022. class="deleteImg"
  7023. src="../../assets/deleteworks.png"
  7024. v-if="
  7025. w.userid == userid ||
  7026. tType == 1 ||
  7027. tType == 4
  7028. "
  7029. @click.stop="deleteWorks(w.wid)"
  7030. alt
  7031. />
  7032. </div>
  7033. <div class="workImg" v-if="w.type == 12">
  7034. <img
  7035. style="cursor: pointer"
  7036. :src="word2"
  7037. @click="downloadFile(w.works)"
  7038. alt
  7039. />
  7040. <!-- @click="openVideo(w.works)" -->
  7041. <div
  7042. class="answerScore"
  7043. v-if="w.score"
  7044. @click.stop="openScore(w)"
  7045. :class="{
  7046. rightW:
  7047. w.userid == userid ||
  7048. tType == 1 ||
  7049. tType == 4 ||
  7050. w.ateacher == userid,
  7051. }"
  7052. >
  7053. {{ JSON.parse(w.score).wScore }}分
  7054. </div>
  7055. <div
  7056. class="answerScore"
  7057. @click.stop="openScore(w)"
  7058. v-else-if="courseDetail.userid == userid"
  7059. :class="{
  7060. rightW:
  7061. w.userid == userid ||
  7062. tType == 1 ||
  7063. tType == 4 ||
  7064. w.ateacher == userid,
  7065. }"
  7066. >
  7067. 评分
  7068. </div>
  7069. <img
  7070. class="deleteImg"
  7071. src="../../assets/deleteworks.png"
  7072. v-if="
  7073. w.userid == userid ||
  7074. tType == 1 ||
  7075. tType == 4
  7076. "
  7077. @click.stop="deleteWorks(w.wid)"
  7078. alt
  7079. />
  7080. </div>
  7081. <div class="comment" style="min-width: 200px">
  7082. <div class="worksName">
  7083. <div>{{ w.sName }}</div>
  7084. </div>
  7085. <div class="commentList">
  7086. <div class="commentList">
  7087. <div
  7088. class="commentImg"
  7089. @click="
  7090. isLikes(
  7091. w.wid,
  7092. userid,
  7093. 1,
  7094. null,
  7095. w.isLikes
  7096. )
  7097. "
  7098. >
  7099. <img
  7100. :src="
  7101. w.isLikes == true ? likes : noLikes
  7102. "
  7103. alt=""
  7104. />
  7105. </div>
  7106. <div>{{ w.likesCount }}</div>
  7107. </div>
  7108. <div
  7109. class="commentList"
  7110. style="margin-right: 15px"
  7111. >
  7112. <div
  7113. class="commentImg"
  7114. @click="
  7115. commentOther(
  7116. w,
  7117. toolIndex,
  7118. wIndex,
  7119. gindex
  7120. )
  7121. "
  7122. >
  7123. <img
  7124. src="../../assets/icon/comment/comment.png"
  7125. alt=""
  7126. />
  7127. </div>
  7128. <div>{{ w.commentCount }}</div>
  7129. </div>
  7130. </div>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. </div>
  7135. </div>
  7136. </div>
  7137. </div>
  7138. </div>
  7139. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  7140. 上传文件
  7141. <input
  7142. type="file"
  7143. accept="image/png, image/gif, image/jpeg"
  7144. style="display: none"
  7145. @change="beforeUpload1($event, 2, index)"
  7146. />
  7147. </div>-->
  7148. </div>
  7149. </div>
  7150. <!-- <div
  7151. class="vedioBox"
  7152. style="margin-top: 10px"
  7153. v-if="
  7154. courseDetail.userid == userid ||
  7155. (courseDetail.course_teacher &&
  7156. courseDetail.course_teacher.indexOf(userid) != -1)
  7157. "
  7158. :style="{
  7159. borderRadius:
  7160. !(
  7161. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7162. .toolChoose[0].tool &&
  7163. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7164. .toolChoose[0].tool.length > 0
  7165. ) &&
  7166. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7167. .taskDetail == '' &&
  7168. vChapterData[taskCount].length == 0 &&
  7169. fileC[taskCount].length == 0
  7170. ? '0 0 20px 20px'
  7171. : '20px',
  7172. }"
  7173. >
  7174. <div
  7175. class="queTop"
  7176. @click="isClose = !isClose"
  7177. style="
  7178. padding: 15px 0 15px 37px;
  7179. justify-content: space-between;
  7180. "
  7181. >
  7182. <div class="queTopTitle">新增工具</div>
  7183. <div class="queTopRight">
  7184. <div class="queTopClose" v-if="isClose == 0">
  7185. 展开
  7186. <div class="closeImg">
  7187. <img src="../../assets/icon/newIcon/close.png" alt="" />
  7188. </div>
  7189. </div>
  7190. <div class="queTopClose" v-if="isClose == 1">
  7191. 折叠
  7192. <div class="openImg">
  7193. <img src="../../assets/icon/newIcon/open.png" alt="" />
  7194. </div>
  7195. </div>
  7196. <el-button
  7197. style="margin: 0 30px 0 auto"
  7198. type="primary"
  7199. size="small"
  7200. v-if="isClose == 1 && checktoolArray.length > 0"
  7201. @click.stop="addToolChoose"
  7202. >确定</el-button
  7203. >
  7204. </div>
  7205. </div>
  7206. <div
  7207. class="tool_work_box"
  7208. :style="isClose == 0 ? 'display:none' : 'display:block'"
  7209. >
  7210. <div class="tool_box">
  7211. <div class="tool_type_box">
  7212. <div class="chooseWho">
  7213. <div
  7214. :class="toolType == 0 ? 'isChooseActive' : ''"
  7215. @click="(toolType = 0), $forceUpdate()"
  7216. >
  7217. 互动类
  7218. </div>
  7219. <div
  7220. :class="toolType == 1 ? 'isChooseActive' : ''"
  7221. @click="(toolType = 1), $forceUpdate()"
  7222. >
  7223. 思维类
  7224. </div>
  7225. <div
  7226. :class="toolType == 2 ? 'isChooseActive' : ''"
  7227. @click="(toolType = 2), $forceUpdate()"
  7228. >
  7229. 测评类
  7230. </div>
  7231. <div
  7232. :class="toolType == 3 ? 'isChooseActive' : ''"
  7233. @click="(toolType = 3), $forceUpdate()"
  7234. >
  7235. 编程类
  7236. </div>
  7237. <div
  7238. :class="toolType == 5 ? 'isChooseActive' : ''"
  7239. @click="(toolType = 5), $forceUpdate()"
  7240. >
  7241. 学科类
  7242. </div>
  7243. </div>
  7244. </div>
  7245. <div>
  7246. <div class="toolSort" v-if="toolType == 0">
  7247. <div class="tool">
  7248. <div class="whiteBIcon" @click="addTools2(10)">
  7249. <img
  7250. src="../../assets/icon/thirdToolList/time.png"
  7251. alt
  7252. />
  7253. <div style="margin: 5px 0">倒计时</div>
  7254. </div>
  7255. <div class="check" @click="addTools2(10)">
  7256. <img
  7257. src="../../assets/icon/checkNo.png"
  7258. alt
  7259. v-if="checktoolArray.indexOf(10) == -1"
  7260. />
  7261. <div class="checkDiv" v-else>
  7262. <img src="../../assets/icon/checkedIs.png" alt /><span
  7263. >已选择</span
  7264. >
  7265. </div>
  7266. </div>
  7267. </div>
  7268. <div class="tool">
  7269. <div class="whiteBIcon" @click="addTools2(65)">
  7270. <img
  7271. src="../../assets/icon/firstToolList/pickPeople.png"
  7272. alt
  7273. />
  7274. <div style="margin: 5px 0">挑人</div>
  7275. </div>
  7276. <div class="check" @click="addTools2(65)">
  7277. <img
  7278. src="../../assets/icon/checkNo.png"
  7279. alt
  7280. v-if="checktoolArray.indexOf(65) == -1"
  7281. />
  7282. <div class="checkDiv" v-else>
  7283. <img src="../../assets/icon/checkedIs.png" alt /><span
  7284. >已选择</span
  7285. >
  7286. </div>
  7287. </div>
  7288. </div>
  7289. </div>
  7290. <div class="toolSort" v-if="toolType == 1">
  7291. <div class="tool">
  7292. <div class="whiteBIcon" @click="addTools2(7)">
  7293. <img
  7294. src="../../assets/icon/secondToolList/mindNetwork.png"
  7295. alt
  7296. />
  7297. <div style="margin: 5px 0">思维网格</div>
  7298. </div>
  7299. <div class="check" @click="addTools2(7)">
  7300. <img
  7301. src="../../assets/icon/checkNo.png"
  7302. alt
  7303. v-if="checktoolArray.indexOf(7) == -1"
  7304. />
  7305. <div class="checkDiv" v-else>
  7306. <img src="../../assets/icon/checkedIs.png" alt /><span
  7307. >已选择</span
  7308. >
  7309. </div>
  7310. </div>
  7311. </div>
  7312. <div class="tool">
  7313. <div class="whiteBIcon" @click="addTools2(1)">
  7314. <img
  7315. src="../../assets/icon/secondToolList/whiteBoard.png"
  7316. alt
  7317. />
  7318. <div style="margin: 5px 0">电子白板</div>
  7319. </div>
  7320. <div class="check" @click="addTools2(1)">
  7321. <img
  7322. src="../../assets/icon/checkNo.png"
  7323. alt
  7324. v-if="checktoolArray.indexOf(1) == -1"
  7325. />
  7326. <div class="checkDiv" v-else>
  7327. <img src="../../assets/icon/checkedIs.png" alt /><span
  7328. >已选择</span
  7329. >
  7330. </div>
  7331. </div>
  7332. </div>
  7333. <div class="tool">
  7334. <div class="whiteBIcon" @click="addTools2(52)">
  7335. <img
  7336. src="../../assets/icon/fourthToolList/text.png"
  7337. alt
  7338. />
  7339. <div style="margin: 5px 0">文档</div>
  7340. </div>
  7341. <div class="check" @click="addTools2(52)">
  7342. <img
  7343. src="../../assets/icon/checkNo.png"
  7344. alt
  7345. v-if="checktoolArray.indexOf(52) == -1"
  7346. />
  7347. <div class="checkDiv" v-else>
  7348. <img src="../../assets/icon/checkedIs.png" alt /><span
  7349. >已选择</span
  7350. >
  7351. </div>
  7352. </div>
  7353. </div>
  7354. <div class="tool">
  7355. <div class="whiteBIcon" @click="addTools2(3)">
  7356. <img
  7357. src="../../assets/icon/secondToolList/mindMapping.png"
  7358. alt
  7359. />
  7360. <div style="margin: 5px 0">思维导图</div>
  7361. </div>
  7362. <div class="check" @click="addTools2(3)">
  7363. <img
  7364. src="../../assets/icon/checkNo.png"
  7365. alt
  7366. v-if="checktoolArray.indexOf(3) == -1"
  7367. />
  7368. <div class="checkDiv" v-else>
  7369. <img src="../../assets/icon/checkedIs.png" alt /><span
  7370. >已选择</span
  7371. >
  7372. </div>
  7373. </div>
  7374. </div>
  7375. <div class="tool">
  7376. <div class="whiteBIcon" @click="addTools2(48)">
  7377. <img
  7378. src="../../assets/icon/fourthToolList/table.png"
  7379. alt
  7380. />
  7381. <div style="margin: 5px 0">表格</div>
  7382. </div>
  7383. <div class="check" @click="addTools2(48)">
  7384. <img
  7385. src="../../assets/icon/checkNo.png"
  7386. alt
  7387. v-if="checktoolArray.indexOf(48) == -1"
  7388. />
  7389. <div class="checkDiv" v-else>
  7390. <img src="../../assets/icon/checkedIs.png" alt /><span
  7391. >已选择</span
  7392. >
  7393. </div>
  7394. </div>
  7395. </div>
  7396. </div>
  7397. <div class="toolSort" v-if="toolType == 6">
  7398. <div v-show="tooC == 49">
  7399. <img
  7400. @click="addTools(tooC, toolIndex, taskCount)"
  7401. src="../../assets/icon/fourthToolList/group.png"
  7402. alt
  7403. />
  7404. <div style="margin: 5px 0">学生分组</div>
  7405. </div>
  7406. </div>
  7407. <div class="toolSort" v-if="toolType == 2">
  7408. <div class="tool">
  7409. <div class="whiteBIcon" @click="addTools2(16)">
  7410. <img
  7411. src="../../assets/icon/thirdToolList/work.png"
  7412. alt
  7413. />
  7414. <div style="margin: 5px 0">作业提交</div>
  7415. </div>
  7416. <div class="check" @click="addTools2(16)">
  7417. <img
  7418. src="../../assets/icon/checkNo.png"
  7419. alt
  7420. v-if="checktoolArray.indexOf(16) == -1"
  7421. />
  7422. <div class="checkDiv" v-else>
  7423. <img src="../../assets/icon/checkedIs.png" alt /><span
  7424. >已选择</span
  7425. >
  7426. </div>
  7427. </div>
  7428. </div>
  7429. <div class="tool">
  7430. <div class="whiteBIcon" @click="addTools2(50)">
  7431. <img
  7432. src="../../assets/icon/thirdToolList/plwork.png"
  7433. alt
  7434. />
  7435. <div style="margin: 5px 0">批量上传</div>
  7436. </div>
  7437. <div class="check" @click="addTools2(50)">
  7438. <img
  7439. src="../../assets/icon/checkNo.png"
  7440. alt
  7441. v-if="checktoolArray.indexOf(50) == -1"
  7442. />
  7443. <div class="checkDiv" v-else>
  7444. <img src="../../assets/icon/checkedIs.png" alt /><span
  7445. >已选择</span
  7446. >
  7447. </div>
  7448. </div>
  7449. </div>
  7450. </div>
  7451. <div class="toolSort" v-if="toolType == 3">
  7452. <div class="tool">
  7453. <div class="whiteBIcon" @click="addTools2(18)">
  7454. <img
  7455. src="../../assets/icon/thirdToolList/trainPlatform.png"
  7456. alt
  7457. />
  7458. <div style="margin: 5px 0">训练平台</div>
  7459. </div>
  7460. <div class="check" @click="addTools2(18)">
  7461. <img
  7462. src="../../assets/icon/checkNo.png"
  7463. alt
  7464. v-if="checktoolArray.indexOf(18) == -1"
  7465. />
  7466. <div class="checkDiv" v-else>
  7467. <img src="../../assets/icon/checkedIs.png" alt /><span
  7468. >已选择</span
  7469. >
  7470. </div>
  7471. </div>
  7472. </div>
  7473. <div class="tool">
  7474. <div class="whiteBIcon" @click="addTools2(21)">
  7475. <img
  7476. src="../../assets/icon/fourthToolList/program.png"
  7477. alt
  7478. />
  7479. <div style="margin: 5px 0">AIoT Blockly</div>
  7480. </div>
  7481. <div class="check" @click="addTools2(21)">
  7482. <img
  7483. src="../../assets/icon/checkNo.png"
  7484. alt
  7485. v-if="checktoolArray.indexOf(21) == -1"
  7486. />
  7487. <div class="checkDiv" v-else>
  7488. <img src="../../assets/icon/checkedIs.png" alt /><span
  7489. >已选择</span
  7490. >
  7491. </div>
  7492. </div>
  7493. </div>
  7494. <div class="tool">
  7495. <div class="whiteBIcon" @click="addTools2(23)">
  7496. <img
  7497. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  7498. alt
  7499. />
  7500. <div style="margin: 5px 0">AI Python</div>
  7501. </div>
  7502. <div class="check" @click="addTools2(23)">
  7503. <img
  7504. src="../../assets/icon/checkNo.png"
  7505. alt
  7506. v-if="checktoolArray.indexOf(23) == -1"
  7507. />
  7508. <div class="checkDiv" v-else>
  7509. <img src="../../assets/icon/checkedIs.png" alt /><span
  7510. >已选择</span
  7511. >
  7512. </div>
  7513. </div>
  7514. </div>
  7515. <div class="tool">
  7516. <div class="whiteBIcon" @click="addTools2(24)">
  7517. <img
  7518. src="../../assets/icon/fourthToolList/AIprogram.png"
  7519. alt
  7520. />
  7521. <div style="margin: 5px 0">AI Blockly</div>
  7522. </div>
  7523. <div class="check" @click="addTools2(24)">
  7524. <img
  7525. src="../../assets/icon/checkNo.png"
  7526. alt
  7527. v-if="checktoolArray.indexOf(24) == -1"
  7528. />
  7529. <div class="checkDiv" v-else>
  7530. <img src="../../assets/icon/checkedIs.png" alt /><span
  7531. >已选择</span
  7532. >
  7533. </div>
  7534. </div>
  7535. </div>
  7536. <div class="tool">
  7537. <div class="whiteBIcon" @click="addTools2(32)">
  7538. <img
  7539. src="../../assets/icon/thirdToolList/code.png"
  7540. alt
  7541. />
  7542. <div style="margin: 5px 0">源码编辑</div>
  7543. </div>
  7544. <div class="check" @click="addTools2(32)">
  7545. <img
  7546. src="../../assets/icon/checkNo.png"
  7547. alt
  7548. v-if="checktoolArray.indexOf(32) == -1"
  7549. />
  7550. <div class="checkDiv" v-else>
  7551. <img src="../../assets/icon/checkedIs.png" alt /><span
  7552. >已选择</span
  7553. >
  7554. </div>
  7555. </div>
  7556. </div>
  7557. <div class="tool">
  7558. <div class="whiteBIcon" @click="addTools2(57)">
  7559. <img
  7560. src="../../assets/icon/fourthToolList/cocopi.png"
  7561. alt
  7562. />
  7563. <div style="margin: 5px 0">CocoPi</div>
  7564. </div>
  7565. <div class="check" @click="addTools2(57)">
  7566. <img
  7567. src="../../assets/icon/checkNo.png"
  7568. alt
  7569. v-if="checktoolArray.indexOf(57) == -1"
  7570. />
  7571. <div class="checkDiv" v-else>
  7572. <img src="../../assets/icon/checkedIs.png" alt /><span
  7573. >已选择</span
  7574. >
  7575. </div>
  7576. </div>
  7577. </div>
  7578. <div class="tool">
  7579. <div class="whiteBIcon" @click="addTools2(63)">
  7580. <img
  7581. src="../../assets/icon/fourthToolList/Wood.png"
  7582. alt
  7583. />
  7584. <div style="margin: 5px 0">海龟编程</div>
  7585. </div>
  7586. <div class="check" @click="addTools2(63)">
  7587. <img
  7588. src="../../assets/icon/checkNo.png"
  7589. alt
  7590. v-if="checktoolArray.indexOf(63) == -1"
  7591. />
  7592. <div class="checkDiv" v-else>
  7593. <img src="../../assets/icon/checkedIs.png" alt /><span
  7594. >已选择</span
  7595. >
  7596. </div>
  7597. </div>
  7598. </div>
  7599. </div>
  7600. <div class="toolSort" v-if="toolType == 5">
  7601. <div class="tool">
  7602. <div class="whiteBIcon" @click="addTools2(28)">
  7603. <img
  7604. src="../../assets/icon/secondToolList/translation.png"
  7605. alt
  7606. />
  7607. <div style="margin: 5px 0">翻译</div>
  7608. </div>
  7609. <div class="check" @click="addTools2(28)">
  7610. <img
  7611. src="../../assets/icon/checkNo.png"
  7612. alt
  7613. v-if="checktoolArray.indexOf(28) == -1"
  7614. />
  7615. <div class="checkDiv" v-else>
  7616. <img src="../../assets/icon/checkedIs.png" alt /><span
  7617. >已选择</span
  7618. >
  7619. </div>
  7620. </div>
  7621. </div>
  7622. <div class="tool">
  7623. <div class="whiteBIcon" @click="addTools2(31)">
  7624. <img
  7625. src="../../assets/icon/secondToolList/networkPanel.png"
  7626. alt
  7627. />
  7628. <div style="margin: 5px 0">数字画板</div>
  7629. </div>
  7630. <div class="check" @click="addTools2(31)">
  7631. <img
  7632. src="../../assets/icon/checkNo.png"
  7633. alt
  7634. v-if="checktoolArray.indexOf(31) == -1"
  7635. />
  7636. <div class="checkDiv" v-else>
  7637. <img src="../../assets/icon/checkedIs.png" alt /><span
  7638. >已选择</span
  7639. >
  7640. </div>
  7641. </div>
  7642. </div>
  7643. <div class="tool">
  7644. <div class="whiteBIcon" @click="addTools2(39)">
  7645. <img
  7646. src="../../assets/icon/secondToolList/GeoGebra.png"
  7647. alt
  7648. />
  7649. <div style="margin: 5px 0">GeoGebra</div>
  7650. </div>
  7651. <div class="check" @click="addTools2(39)">
  7652. <img
  7653. src="../../assets/icon/checkNo.png"
  7654. alt
  7655. v-if="checktoolArray.indexOf(39) == -1"
  7656. />
  7657. <div class="checkDiv" v-else>
  7658. <img src="../../assets/icon/checkedIs.png" alt /><span
  7659. >已选择</span
  7660. >
  7661. </div>
  7662. </div>
  7663. </div>
  7664. <div class="tool">
  7665. <div class="whiteBIcon" @click="addTools2(66)">
  7666. <img
  7667. src="../../assets/icon/secondToolList/formulaEdi.png"
  7668. alt
  7669. />
  7670. <div style="margin: 5px 0">公式编辑</div>
  7671. </div>
  7672. <div class="check" @click="addTools2(66)">
  7673. <img
  7674. src="../../assets/icon/checkNo.png"
  7675. alt
  7676. v-if="checktoolArray.indexOf(66) == -1"
  7677. />
  7678. <div class="checkDiv" v-else>
  7679. <img src="../../assets/icon/checkedIs.png" alt /><span
  7680. >已选择</span
  7681. >
  7682. </div>
  7683. </div>
  7684. </div>
  7685. <div class="tool">
  7686. <div class="whiteBIcon" @click="addTools2(67)">
  7687. <img
  7688. src="../../assets/icon/secondToolList/molStr.png"
  7689. alt
  7690. />
  7691. <div style="margin: 5px 0">分子结构</div>
  7692. </div>
  7693. <div class="check" @click="addTools2(67)">
  7694. <img
  7695. src="../../assets/icon/checkNo.png"
  7696. alt
  7697. v-if="checktoolArray.indexOf(67) == -1"
  7698. />
  7699. <div class="checkDiv" v-else>
  7700. <img src="../../assets/icon/checkedIs.png" alt /><span
  7701. >已选择</span
  7702. >
  7703. </div>
  7704. </div>
  7705. </div>
  7706. <div class="tool">
  7707. <div class="whiteBIcon" @click="addTools2(68)">
  7708. <img
  7709. src="../../assets/icon/secondToolList/timeAxis.png"
  7710. alt
  7711. />
  7712. <div style="margin: 5px 0">时间轴</div>
  7713. </div>
  7714. <div class="check" @click="addTools2(68)">
  7715. <img
  7716. src="../../assets/icon/checkNo.png"
  7717. alt
  7718. v-if="checktoolArray.indexOf(68) == -1"
  7719. />
  7720. <div class="checkDiv" v-else>
  7721. <img src="../../assets/icon/checkedIs.png" alt /><span
  7722. >已选择</span
  7723. >
  7724. </div>
  7725. </div>
  7726. </div>
  7727. </div>
  7728. <div class="toolSort" v-if="toolType == 7">
  7729. <div class="tool">
  7730. <div class="whiteBIcon" @click="addTools2(40)">
  7731. <img
  7732. src="../../assets/icon/secondToolList/eval.png"
  7733. alt
  7734. />
  7735. <div style="margin: 5px 0">个人评价</div>
  7736. </div>
  7737. <div class="check" @click="addTools2(40)">
  7738. <img
  7739. src="../../assets/icon/checkNo.png"
  7740. alt
  7741. v-if="checktoolArray.indexOf(40) == -1"
  7742. />
  7743. <div class="checkDiv" v-else>
  7744. <img src="../../assets/icon/checkedIs.png" alt /><span
  7745. >已选择</span
  7746. >
  7747. </div>
  7748. </div>
  7749. </div>
  7750. </div>
  7751. <div class="toolSort" v-if="toolType == 4">
  7752. <div class="tool">
  7753. <div class="whiteBIcon" @click="addTools2(26)">
  7754. <img
  7755. src="../../assets/icon/thirdToolList/courseDesign.png"
  7756. alt
  7757. />
  7758. <div style="margin: 5px 0">课程设计</div>
  7759. </div>
  7760. <div class="check" @click="addTools2(26)">
  7761. <img
  7762. src="../../assets/icon/checkNo.png"
  7763. alt
  7764. v-if="checktoolArray.indexOf(26) == -1"
  7765. />
  7766. <div class="checkDiv" v-else>
  7767. <img src="../../assets/icon/checkedIs.png" alt /><span
  7768. >已选择</span
  7769. >
  7770. </div>
  7771. </div>
  7772. </div>
  7773. <div class="tool">
  7774. <div class="whiteBIcon" @click="addTools2(25)">
  7775. <img
  7776. src="../../assets/icon/thirdToolList/evalua.png"
  7777. alt
  7778. />
  7779. <div style="margin: 5px 0">目标管理</div>
  7780. </div>
  7781. <div class="check" @click="addTools2(25)">
  7782. <img
  7783. src="../../assets/icon/checkNo.png"
  7784. alt
  7785. v-if="checktoolArray.indexOf(25) == -1"
  7786. />
  7787. <div class="checkDiv" v-else>
  7788. <img src="../../assets/icon/checkedIs.png" alt /><span
  7789. >已选择</span
  7790. >
  7791. </div>
  7792. </div>
  7793. </div>
  7794. </div>
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div> -->
  7799. <div
  7800. class="vedioBox"
  7801. style="margin-top: 10px; border-radius: 20px"
  7802. v-if="
  7803. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7804. .eList &&
  7805. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7806. .eList.length &&
  7807. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7808. .eList.length > 0 &&
  7809. tType != 2
  7810. "
  7811. >
  7812. <div
  7813. class="queTop"
  7814. style="
  7815. font-size: 20px;
  7816. padding: 15px 0 15px 37px;
  7817. font-weight: bold;
  7818. "
  7819. >
  7820. <!-- <div class="question" style="width: 30px">
  7821. <img src="../assets/icon/toolIcon.png" alt />
  7822. </div>
  7823. <div class="queTitle">
  7824. <div>工具</div>
  7825. </div>-->
  7826. 评一评
  7827. </div>
  7828. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7829. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7830. <el-table
  7831. :data="
  7832. chapInfoList[courseType].chapterInfo[0].taskJson[
  7833. taskCount
  7834. ].eList
  7835. "
  7836. :header-cell-style="{ background: '#F0F4FA' }"
  7837. :row-class-name="tableRowClassName"
  7838. border
  7839. stripe
  7840. style="width: 100%"
  7841. >
  7842. <el-table-column
  7843. label="评价名称"
  7844. align="center"
  7845. >
  7846. <template slot-scope="scope"
  7847. ><div>{{ scope.row.value }}</div></template
  7848. >
  7849. </el-table-column>
  7850. <el-table-column
  7851. label="评价描述"
  7852. align="center"
  7853. >
  7854. <template slot-scope="scope"
  7855. ><div>
  7856. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7857. </div></template
  7858. >
  7859. </el-table-column>
  7860. <el-table-column label="目标" align="center">
  7861. <template slot-scope="scope"
  7862. ><div>
  7863. {{
  7864. scope.row.target
  7865. ? scope.row.target[scope.row.target.length - 1]
  7866. : "-"
  7867. }}
  7868. </div></template
  7869. ></el-table-column
  7870. >
  7871. </el-table>
  7872. <!-- <div
  7873. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7874. .chapterInfo[0].taskJson[taskCount].eList"
  7875. :key="eIndex"
  7876. class="elist_input_box"
  7877. >
  7878. <div style="width: 95%">
  7879. <div
  7880. style="
  7881. display: flex;
  7882. flex-direction: row;
  7883. flex-wrap: nowrap;
  7884. align-items: center;
  7885. "
  7886. >
  7887. <div style="max-width: calc(100% - 285px)">
  7888. <span>{{ eItem.value }}</span>
  7889. </div>
  7890. <div
  7891. style="
  7892. padding-left: 25px;
  7893. display: flex;
  7894. flex-direction: row;
  7895. align-items: center;
  7896. "
  7897. >
  7898. <el-rate
  7899. v-model="eItem.score"
  7900. :colors="colors"
  7901. disabled
  7902. ></el-rate>
  7903. </div>
  7904. </div>
  7905. <div class="elist_inptu_text" style="padding-left: 10px">
  7906. <span v-if="eItem.detail != ''">{{
  7907. eItem.detail
  7908. }}</span>
  7909. <span v-else style="color: #b2b1b3; font-size: 14px"
  7910. >暂无描述...</span
  7911. >
  7912. </div>
  7913. </div>
  7914. </div> -->
  7915. </div>
  7916. <div
  7917. v-if="evalua"
  7918. style="
  7919. border: 1px solid #e5e5e5;
  7920. max-width: 650px;
  7921. width: 100%;
  7922. margin-top: 20px;
  7923. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7924. "
  7925. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7926. >
  7927. <div class="e_add_top">
  7928. <div class="e_add_title" style="width: 100%">
  7929. <!-- <span>目标管理名称</span> -->
  7930. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7931. <img
  7932. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7933. src="../../assets/line.png"
  7934. class="cru_line"
  7935. style="
  7936. width: 125px;
  7937. height: 20px;
  7938. bottom: -10px;
  7939. left: 5px;
  7940. "
  7941. />
  7942. <!-- <el-input
  7943. v-model="eTitle"
  7944. placeholder="请输入名称"
  7945. @change="setMindData"
  7946. ></el-input>-->
  7947. <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>
  7948. <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>
  7949. </div>
  7950. </div>
  7951. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7952. <div class="e_add_list_pbox">
  7953. <div class="e_add_list_pbox_title">
  7954. <!-- <span class="type_title">切换模式</span> -->
  7955. <div class="type_content">
  7956. <span
  7957. :class="{ active: typeMode == 1 }"
  7958. @click="typeMode = 1"
  7959. >目标树</span
  7960. >
  7961. <span
  7962. :class="{ active: typeMode == 2 }"
  7963. @click="typeMode = 2"
  7964. >目标罗盘</span
  7965. >
  7966. <!-- <span
  7967. :class="{ active: typeMode == 3 }"
  7968. @click="typeMode = 3"
  7969. >目标看板</span
  7970. > -->
  7971. </div>
  7972. </div>
  7973. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7974. <Mind
  7975. :showBar="false"
  7976. :mindData="data"
  7977. style="width: 100%"
  7978. v-show="typeMode == 1"
  7979. ></Mind>
  7980. <Sunburst
  7981. :Josn="eJson"
  7982. :num="eJSONNum"
  7983. style="width: 100%"
  7984. v-if="typeMode == 2"
  7985. ></Sunburst>
  7986. <SeeBoard
  7987. :Josn="eJson"
  7988. :num="eJSONNum"
  7989. :ename="eTitle"
  7990. style="width: 100%"
  7991. v-if="typeMode == 3"
  7992. >
  7993. </SeeBoard>
  7994. </div>
  7995. </div>
  7996. </div>
  7997. </div>
  7998. </div>
  7999. </div>
  8000. <!-- <div
  8001. class="project_box"
  8002. style="margin-top: 15px; padding-bottom: 30px"
  8003. >
  8004. <div
  8005. style="
  8006. display: flex;
  8007. flex-wrap: nowrap;
  8008. flex-direction: column;
  8009. position: relative;
  8010. "
  8011. >
  8012. <div class="queTop">
  8013. <div class="question">
  8014. <img src="../../assets/icon/homeWork.png" alt="" />
  8015. </div>
  8016. <div class="queTitle">
  8017. <div>作业提交<span>(提交图文视频等)</span></div>
  8018. <div>:任务:{{ task.task }}</div>
  8019. </div>
  8020. </div>
  8021. <div class="ediBottom">
  8022. <div
  8023. class="addEditor"
  8024. style="margin-top: 23px"
  8025. @click="openAddWork"
  8026. v-if="!isNoHomeWork"
  8027. >
  8028. 选择文件
  8029. </div>
  8030. <div
  8031. class="addEditor"
  8032. style="margin-top: 23px"
  8033. @click="openAddWork"
  8034. v-else
  8035. >
  8036. 已提交
  8037. </div>
  8038. </div>
  8039. </div>
  8040. </div>-->
  8041. </div>
  8042. </div>
  8043. <el-dialog
  8044. title="作业提交"
  8045. :visible.sync="dialogVisible"
  8046. :append-to-body="true"
  8047. width="500px"
  8048. :before-close="handleClose"
  8049. class="dialog_change"
  8050. >
  8051. <div class="marginT">
  8052. <div>上传文件</div>
  8053. <div
  8054. class="chapter_add"
  8055. @click="addImg($event)"
  8056. v-if="studyJuri[0].cover.length == 0"
  8057. >
  8058. <div class="up_photo">
  8059. <img src="../../assets/icon/uploadImg.png" alt />
  8060. </div>
  8061. <!-- <input
  8062. type="file"
  8063. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  8064. style="display: none"
  8065. @change="beforeUpload1($event, 1)"
  8066. /> -->
  8067. <input
  8068. type="file"
  8069. accept="*"
  8070. style="display: none"
  8071. @change="beforeUpload1($event, 1)"
  8072. />
  8073. <!-- <input
  8074. type="file"
  8075. accept="image/*"
  8076. capture="camera"
  8077. style="display: none"
  8078. @change="beforeUpload1($event, 1)"
  8079. /> -->
  8080. </div>
  8081. <div
  8082. class="chapter_add"
  8083. style="
  8084. display: flex;
  8085. width: 100%;
  8086. flex-direction: row;
  8087. flex-wrap: wrap;
  8088. justify-content: flex-start;
  8089. padding: 15px 0;
  8090. "
  8091. v-if="studyJuri[0].cover.length > 0"
  8092. >
  8093. <div class="upCover">
  8094. <img
  8095. :src="studyJuri[0].cover[0].url"
  8096. alt
  8097. v-if="fileType == 0"
  8098. />
  8099. <img :src="word" alt v-else-if="fileType == 1" />
  8100. <img :src="video" alt v-else-if="fileType == 2" />
  8101. <img :src="word2" alt v-else-if="fileType == 3" />
  8102. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  8103. <div class="deleteWord" @click="clean(1)">
  8104. <img src="../../assets/icon/deleteWorks.png" alt />
  8105. </div>
  8106. </div>
  8107. </div>
  8108. </div>
  8109. <div
  8110. class="upload_send"
  8111. @click="addCourseWorks(taskCount)"
  8112. v-if="!proVisible"
  8113. >
  8114. 提交
  8115. </div>
  8116. </el-dialog>
  8117. </div>
  8118. </div>
  8119. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  8120. <classRoomHelper :videoStart="videoStart" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  8121. '/courseDetail?userid=' +
  8122. userid +
  8123. '&oid=' +
  8124. oid +
  8125. '&org=' +
  8126. org +
  8127. '&cid=' +
  8128. classId +
  8129. '&courseId=' +
  8130. id +
  8131. '&tType=' +
  8132. tType +
  8133. '&screenType=' +
  8134. screenType
  8135. )"></classRoomHelper>
  8136. <div
  8137. class="pButton"
  8138. @click="(pzDialog = true), selectPz()"
  8139. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  8140. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  8141. >
  8142. <!-- 批 -->
  8143. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  8144. </div>
  8145. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  8146. <div class="pzTop2">
  8147. <!-- <div>评论</div>
  8148. <div @click="pzDialog = false">
  8149. <img src="../../assets/close1.png" alt="" />
  8150. </div> -->
  8151. <div class="checkbox">
  8152. <!-- <div class="check" style="font-size: 25px; position: unset">
  8153. 评论
  8154. </div> -->
  8155. <div class="cb-tabList">
  8156. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  8157. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  8158. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  8159. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  8160. </div>
  8161. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  8162. <el-option label="时间降序" :value="1"></el-option>
  8163. <el-option label="时间升序" :value="2"></el-option>
  8164. <el-option label="我的评课" :value="3"></el-option>
  8165. </el-select>
  8166. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  8167. </div>
  8168. </div>
  8169. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  8170. <div class="pzListBox" v-if="pzList && pzList.length">
  8171. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  8172. <div class="pzNavTop">
  8173. <div>评</div>
  8174. <div>
  8175. {{
  8176. pz.username && pz.username.length > 5
  8177. ? pz.username.substring(0, 5) + "..."
  8178. : pz.username
  8179. }}的评论
  8180. </div>
  8181. <div
  8182. class="pzDelete"
  8183. v-if="pz.userid == userid"
  8184. @click="deletePz(pz.id)"
  8185. >
  8186. 删除
  8187. </div>
  8188. </div>
  8189. <div
  8190. @click="checkImg(getImgList(pz.content))"
  8191. class="pzContent cont"
  8192. v-html="pz.content"
  8193. v-if="pz.type == '1'"
  8194. ></div>
  8195. <div class="pzContent" v-if="pz.type == '2'">
  8196. <audio :src="pz.content" controls="controls" ref="audio">
  8197. Your browser does not support the audio element.
  8198. </audio>
  8199. </div>
  8200. <div class="pzContent" v-if="pz.type == '3'">
  8201. <img
  8202. :src="pz.content"
  8203. style="width: 90%; margin: 0 auto; display: block"
  8204. @click="previewImg(pz.content)"
  8205. />
  8206. </div>
  8207. <div class="timeAndReply">
  8208. <div class="time">
  8209. {{ pz.time }}
  8210. </div>
  8211. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  8212. </div>
  8213. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  8214. <div
  8215. v-for="(h, hIndex) in pz.hfList"
  8216. :key="hIndex"
  8217. class="hfItem"
  8218. >
  8219. <div class="whoReplyWho">
  8220. <div class="hfName">{{ h.username }}</div>
  8221. <div class="hfImg">
  8222. <img src="../../assets/icon/newIcons/right.png" alt="" />
  8223. </div>
  8224. <div class="hfName">{{ pz.username }}</div>
  8225. </div>
  8226. <div class="hfContent" v-html="h.content"></div>
  8227. <div class="hfBottom">
  8228. <div class="hfTime">{{ h.time }}</div>
  8229. <div
  8230. class="deleteHfItem"
  8231. @click="deleteReply(h.id)"
  8232. v-if="userid == h.userid"
  8233. >
  8234. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  8235. </div>
  8236. </div>
  8237. </div>
  8238. </div>
  8239. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  8240. <div class="replyInput">
  8241. <el-input v-model="reply[pzIndex]"></el-input>
  8242. </div>
  8243. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  8244. </div> -->
  8245. </div>
  8246. </div>
  8247. <div class="noPz" v-else>
  8248. <img src="../../assets/icon/noPz.png" alt="" />
  8249. </div>
  8250. <div class="addPzButton">
  8251. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  8252. 添加评论
  8253. </div>
  8254. <!-- <div class="img1">
  8255. <div @click="(addPzDialog = true), (pzType = 2)">
  8256. <img src="../../assets/audio.png" /><span>音频</span>
  8257. </div>
  8258. </div> -->
  8259. </div>
  8260. </div>
  8261. <div class="scoreList" v-if="commentTagShow==1">
  8262. <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"/>
  8263. </div>
  8264. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  8265. <scoreZong :courseid="id" :userid="userid"></scoreZong>
  8266. </div>
  8267. </div>
  8268. <div
  8269. v-if="toolDialogVisible == true"
  8270. class="toolMask"
  8271. @click="toolDialogVisible = false"
  8272. ></div>
  8273. <div v-if="toolDialogVisible == true" class="addToolCss">
  8274. <div class="toolTop">
  8275. <div style="font-weight: bold">新增工具</div>
  8276. <div @click="toolDialogVisible = false">
  8277. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  8278. </div>
  8279. </div>
  8280. <div class="tool_box">
  8281. <div class="tool_type_box">
  8282. <div class="chooseWho">
  8283. <div
  8284. :class="toolType == 0 ? 'isChooseActive' : ''"
  8285. @click="(toolType = 0), $forceUpdate()"
  8286. >
  8287. 互动类
  8288. </div>
  8289. <div
  8290. :class="toolType == 1 ? 'isChooseActive' : ''"
  8291. @click="(toolType = 1), $forceUpdate()"
  8292. >
  8293. 思维类
  8294. </div>
  8295. <div
  8296. :class="toolType == 2 ? 'isChooseActive' : ''"
  8297. @click="(toolType = 2), $forceUpdate()"
  8298. >
  8299. 测评类
  8300. </div>
  8301. <div
  8302. :class="toolType == 3 ? 'isChooseActive' : ''"
  8303. @click="(toolType = 3), $forceUpdate()"
  8304. >
  8305. 编程类
  8306. </div>
  8307. <div
  8308. :class="toolType == 5 ? 'isChooseActive' : ''"
  8309. @click="(toolType = 5), $forceUpdate()"
  8310. >
  8311. 学科类
  8312. </div>
  8313. </div>
  8314. </div>
  8315. <div>
  8316. <div class="toolSort" v-if="toolType == 0">
  8317. <div
  8318. class="tool"
  8319. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  8320. @click="addTools2(10)"
  8321. >
  8322. <div class="whiteBIcon">
  8323. <img src="../../assets/icon/thirdToolList/time.png" alt />
  8324. <div style="margin: 5px 0">倒计时</div>
  8325. </div>
  8326. <div class="check">
  8327. <div
  8328. v-if="checktoolArray.indexOf(10) == -1"
  8329. class="noChoose"
  8330. ></div>
  8331. <div v-else class="isChoose"></div>
  8332. </div>
  8333. </div>
  8334. <div
  8335. class="tool"
  8336. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  8337. @click="addTools2(65)"
  8338. >
  8339. <div class="whiteBIcon">
  8340. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  8341. <div style="margin: 5px 0">挑人</div>
  8342. </div>
  8343. <div class="check">
  8344. <div
  8345. v-if="checktoolArray.indexOf(65) == -1"
  8346. class="noChoose"
  8347. ></div>
  8348. <div v-else class="isChoose"></div>
  8349. </div>
  8350. </div>
  8351. </div>
  8352. <div class="toolSort" v-if="toolType == 1">
  8353. <div
  8354. class="tool"
  8355. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  8356. @click="addTools2(7)"
  8357. >
  8358. <div class="whiteBIcon">
  8359. <img
  8360. src="../../assets/icon/secondToolList/mindNetwork.png"
  8361. alt
  8362. />
  8363. <div style="margin: 5px 0">思维网格</div>
  8364. </div>
  8365. <div class="check">
  8366. <div
  8367. v-if="checktoolArray.indexOf(7) == -1"
  8368. class="noChoose"
  8369. ></div>
  8370. <div v-else class="isChoose"></div>
  8371. </div>
  8372. </div>
  8373. <div
  8374. class="tool"
  8375. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  8376. @click="addTools2(1)"
  8377. >
  8378. <div class="whiteBIcon">
  8379. <img
  8380. src="../../assets/icon/secondToolList/whiteBoard.png"
  8381. alt
  8382. />
  8383. <div style="margin: 5px 0">电子白板</div>
  8384. </div>
  8385. <div class="check">
  8386. <div
  8387. v-if="checktoolArray.indexOf(1) == -1"
  8388. class="noChoose"
  8389. ></div>
  8390. <div v-else class="isChoose"></div>
  8391. </div>
  8392. </div>
  8393. <div
  8394. class="tool"
  8395. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  8396. @click="addTools2(52)"
  8397. >
  8398. <div class="whiteBIcon">
  8399. <img src="../../assets/icon/fourthToolList/text.png" alt />
  8400. <div style="margin: 5px 0">文档</div>
  8401. </div>
  8402. <div class="check">
  8403. <div
  8404. v-if="checktoolArray.indexOf(52) == -1"
  8405. class="noChoose"
  8406. ></div>
  8407. <div v-else class="isChoose"></div>
  8408. </div>
  8409. </div>
  8410. <div
  8411. class="tool"
  8412. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  8413. @click="addTools2(3)"
  8414. >
  8415. <div class="whiteBIcon">
  8416. <img
  8417. src="../../assets/icon/secondToolList/mindMapping.png"
  8418. alt
  8419. />
  8420. <div style="margin: 5px 0">思维导图</div>
  8421. </div>
  8422. <div class="check">
  8423. <div
  8424. v-if="checktoolArray.indexOf(3) == -1"
  8425. class="noChoose"
  8426. ></div>
  8427. <div v-else class="isChoose"></div>
  8428. </div>
  8429. </div>
  8430. <div
  8431. class="tool"
  8432. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8433. @click="addTools2(48)"
  8434. >
  8435. <div class="whiteBIcon">
  8436. <img src="../../assets/icon/fourthToolList/table.png" alt />
  8437. <div style="margin: 5px 0">表格</div>
  8438. </div>
  8439. <div class="check">
  8440. <div
  8441. v-if="checktoolArray.indexOf(48) == -1"
  8442. class="noChoose"
  8443. ></div>
  8444. <div v-else class="isChoose"></div>
  8445. </div>
  8446. </div>
  8447. </div>
  8448. <div class="toolSort" v-if="toolType == 6">
  8449. <div v-show="tooC == 49">
  8450. <img
  8451. @click="addTools(tooC, toolIndex, taskCount)"
  8452. src="../../assets/icon/fourthToolList/group.png"
  8453. alt
  8454. />
  8455. <div style="margin: 5px 0">学生分组</div>
  8456. </div>
  8457. </div>
  8458. <div class="toolSort" v-if="toolType == 2">
  8459. <div
  8460. class="tool"
  8461. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8462. @click="addTools2(16)"
  8463. >
  8464. <div class="whiteBIcon">
  8465. <img src="../../assets/icon/thirdToolList/work.png" alt />
  8466. <div style="margin: 5px 0">作业提交</div>
  8467. </div>
  8468. <div class="check">
  8469. <div
  8470. v-if="checktoolArray.indexOf(16) == -1"
  8471. class="noChoose"
  8472. ></div>
  8473. <div v-else class="isChoose"></div>
  8474. </div>
  8475. </div>
  8476. <div
  8477. class="tool"
  8478. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8479. @click="addTools2(50)"
  8480. >
  8481. <div class="whiteBIcon">
  8482. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  8483. <div style="margin: 5px 0">批量上传</div>
  8484. </div>
  8485. <div class="check">
  8486. <div
  8487. v-if="checktoolArray.indexOf(50) == -1"
  8488. class="noChoose"
  8489. ></div>
  8490. <div v-else class="isChoose"></div>
  8491. </div>
  8492. </div>
  8493. </div>
  8494. <div class="toolSort" v-if="toolType == 3">
  8495. <div
  8496. class="tool"
  8497. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8498. @click="addTools2(18)"
  8499. >
  8500. <div class="whiteBIcon">
  8501. <img
  8502. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8503. alt
  8504. />
  8505. <div style="margin: 5px 0">训练平台</div>
  8506. </div>
  8507. <div class="check">
  8508. <div
  8509. v-if="checktoolArray.indexOf(18) == -1"
  8510. class="noChoose"
  8511. ></div>
  8512. <div v-else class="isChoose"></div>
  8513. </div>
  8514. </div>
  8515. <div
  8516. class="tool"
  8517. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8518. @click="addTools2(21)"
  8519. >
  8520. <div class="whiteBIcon">
  8521. <img src="../../assets/icon/fourthToolList/program.png" alt />
  8522. <div style="margin: 5px 0">AIoT Blockly</div>
  8523. </div>
  8524. <div class="check">
  8525. <div
  8526. v-if="checktoolArray.indexOf(21) == -1"
  8527. class="noChoose"
  8528. ></div>
  8529. <div v-else class="isChoose"></div>
  8530. </div>
  8531. </div>
  8532. <div
  8533. class="tool"
  8534. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8535. @click="addTools2(23)"
  8536. >
  8537. <div class="whiteBIcon">
  8538. <img
  8539. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8540. alt
  8541. />
  8542. <div style="margin: 5px 0">AI Python</div>
  8543. </div>
  8544. <div class="check">
  8545. <div
  8546. v-if="checktoolArray.indexOf(23) == -1"
  8547. class="noChoose"
  8548. ></div>
  8549. <div v-else class="isChoose"></div>
  8550. </div>
  8551. </div>
  8552. <div
  8553. class="tool"
  8554. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8555. @click="addTools2(24)"
  8556. >
  8557. <div class="whiteBIcon">
  8558. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  8559. <div style="margin: 5px 0">AI Blockly</div>
  8560. </div>
  8561. <div class="check">
  8562. <div
  8563. v-if="checktoolArray.indexOf(24) == -1"
  8564. class="noChoose"
  8565. ></div>
  8566. <div v-else class="isChoose"></div>
  8567. </div>
  8568. </div>
  8569. <div
  8570. class="tool"
  8571. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8572. @click="addTools2(32)"
  8573. >
  8574. <div class="whiteBIcon">
  8575. <img src="../../assets/icon/thirdToolList/code.png" alt />
  8576. <div style="margin: 5px 0">源码编辑</div>
  8577. </div>
  8578. <div class="check">
  8579. <div
  8580. v-if="checktoolArray.indexOf(32) == -1"
  8581. class="noChoose"
  8582. ></div>
  8583. <div v-else class="isChoose"></div>
  8584. </div>
  8585. </div>
  8586. <div
  8587. class="tool"
  8588. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8589. @click="addTools2(57)"
  8590. >
  8591. <div class="whiteBIcon">
  8592. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  8593. <div style="margin: 5px 0">CocoPi</div>
  8594. </div>
  8595. <div class="check">
  8596. <div
  8597. v-if="checktoolArray.indexOf(57) == -1"
  8598. class="noChoose"
  8599. ></div>
  8600. <div v-else class="isChoose"></div>
  8601. </div>
  8602. </div>
  8603. <div
  8604. class="tool"
  8605. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8606. @click="addTools2(63)"
  8607. >
  8608. <div class="whiteBIcon">
  8609. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  8610. <div style="margin: 5px 0">海龟编程</div>
  8611. </div>
  8612. <div class="check">
  8613. <div
  8614. v-if="checktoolArray.indexOf(63) == -1"
  8615. class="noChoose"
  8616. ></div>
  8617. <div v-else class="isChoose"></div>
  8618. </div>
  8619. </div>
  8620. <div
  8621. class="tool"
  8622. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  8623. @click="addTools2(71)"
  8624. >
  8625. <div class="whiteBIcon">
  8626. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  8627. <div style="margin: 5px 0">AI智能体</div>
  8628. </div>
  8629. <div class="check">
  8630. <div
  8631. v-if="checktoolArray.indexOf(71) == -1"
  8632. class="noChoose"
  8633. ></div>
  8634. <div v-else class="isChoose"></div>
  8635. </div>
  8636. </div>
  8637. </div>
  8638. <div class="toolSort" v-if="toolType == 7">
  8639. <div
  8640. class="tool"
  8641. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8642. @click="addTools2(40)"
  8643. >
  8644. <div class="whiteBIcon">
  8645. <img src="../../assets/icon/secondToolList/eval.png" alt />
  8646. <div style="margin: 5px 0">个人评价</div>
  8647. </div>
  8648. <div class="check">
  8649. <div
  8650. v-if="checktoolArray.indexOf(40) == -1"
  8651. class="noChoose"
  8652. ></div>
  8653. <div v-else class="isChoose"></div>
  8654. </div>
  8655. </div>
  8656. </div>
  8657. <div class="toolSort" v-if="toolType == 5">
  8658. <div
  8659. class="tool"
  8660. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8661. @click="addTools2(28)"
  8662. >
  8663. <div class="whiteBIcon">
  8664. <img
  8665. src="../../assets/icon/secondToolList/translation.png"
  8666. alt
  8667. />
  8668. <div style="margin: 5px 0">翻译</div>
  8669. </div>
  8670. <div class="check">
  8671. <div
  8672. v-if="checktoolArray.indexOf(28) == -1"
  8673. class="noChoose"
  8674. ></div>
  8675. <div v-else class="isChoose"></div>
  8676. </div>
  8677. </div>
  8678. <div
  8679. class="tool"
  8680. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8681. @click="addTools2(31)"
  8682. >
  8683. <div class="whiteBIcon">
  8684. <img
  8685. src="../../assets/icon/secondToolList/networkPanel.png"
  8686. alt
  8687. />
  8688. <div style="margin: 5px 0">数字画板</div>
  8689. </div>
  8690. <div class="check">
  8691. <div
  8692. v-if="checktoolArray.indexOf(31) == -1"
  8693. class="noChoose"
  8694. ></div>
  8695. <div v-else class="isChoose"></div>
  8696. </div>
  8697. </div>
  8698. <div
  8699. class="tool"
  8700. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8701. @click="addTools2(39)"
  8702. >
  8703. <div class="whiteBIcon">
  8704. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  8705. <div style="margin: 5px 0">GeoGebra</div>
  8706. </div>
  8707. <div class="check">
  8708. <div
  8709. v-if="checktoolArray.indexOf(39) == -1"
  8710. class="noChoose"
  8711. ></div>
  8712. <div v-else class="isChoose"></div>
  8713. </div>
  8714. </div>
  8715. <div
  8716. class="tool"
  8717. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8718. @click="addTools2(66)"
  8719. >
  8720. <div class="whiteBIcon">
  8721. <img
  8722. src="../../assets/icon/secondToolList/formulaEdi.png"
  8723. alt
  8724. />
  8725. <div style="margin: 5px 0">公式编辑</div>
  8726. </div>
  8727. <div class="check">
  8728. <div
  8729. v-if="checktoolArray.indexOf(66) == -1"
  8730. class="noChoose"
  8731. ></div>
  8732. <div v-else class="isChoose"></div>
  8733. </div>
  8734. </div>
  8735. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8736. <div class="whiteBIcon" @click="addTools2(67)">
  8737. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  8738. <div style="margin: 5px 0">分子结构</div>
  8739. </div>
  8740. <div class="check" @click="addTools2(67)">
  8741. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8742. <div v-else class="isChoose"></div>
  8743. </div>
  8744. </div> -->
  8745. <div
  8746. class="tool"
  8747. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8748. @click="addTools2(68)"
  8749. >
  8750. <div class="whiteBIcon">
  8751. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  8752. <div style="margin: 5px 0">时间轴</div>
  8753. </div>
  8754. <div class="check">
  8755. <div
  8756. v-if="checktoolArray.indexOf(68) == -1"
  8757. class="noChoose"
  8758. ></div>
  8759. <div v-else class="isChoose"></div>
  8760. </div>
  8761. </div>
  8762. <!-- <div
  8763. class="tool"
  8764. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8765. @click="addTools2(69)"
  8766. >
  8767. <div class="whiteBIcon">
  8768. <img src="../../assets/icon/secondToolList/english.png" alt />
  8769. <div style="margin: 5px 0">英语写作</div>
  8770. </div>
  8771. <div class="check">
  8772. <div
  8773. v-if="checktoolArray.indexOf(69) == -1"
  8774. class="noChoose"
  8775. ></div>
  8776. <div v-else class="isChoose"></div>
  8777. </div>
  8778. </div> -->
  8779. </div>
  8780. <div class="toolSort" v-if="toolType == 4">
  8781. <div
  8782. class="tool"
  8783. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8784. @click="addTools2(26)"
  8785. >
  8786. <div class="whiteBIcon">
  8787. <img
  8788. src="../../assets/icon/thirdToolList/courseDesign.png"
  8789. alt
  8790. />
  8791. <div style="margin: 5px 0">课程设计</div>
  8792. </div>
  8793. <div class="check">
  8794. <div
  8795. v-if="checktoolArray.indexOf(26) == -1"
  8796. class="noChoose"
  8797. ></div>
  8798. <div v-else class="isChoose"></div>
  8799. </div>
  8800. </div>
  8801. <div
  8802. class="tool"
  8803. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8804. @click="addTools2(25)"
  8805. >
  8806. <div class="whiteBIcon">
  8807. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  8808. <div style="margin: 5px 0">目标管理</div>
  8809. </div>
  8810. <div class="check">
  8811. <div
  8812. v-if="checktoolArray.indexOf(25) == -1"
  8813. class="noChoose"
  8814. ></div>
  8815. <div v-else class="isChoose"></div>
  8816. </div>
  8817. </div>
  8818. </div>
  8819. </div>
  8820. </div>
  8821. <span
  8822. slot="footer"
  8823. class="dialog-footer"
  8824. style="display: block; text-align: center; padding: 0 0 10px 0"
  8825. >
  8826. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8827. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8828. </span>
  8829. </div>
  8830. <div
  8831. v-if="replyDialogVisible == true"
  8832. class="addDialogCss"
  8833. v-el-drag-dialog
  8834. >
  8835. <div class="pzTop">
  8836. <div class="teacherPz">
  8837. <div class="teacherPzImg">
  8838. <img src="../../assets/icon/teacherPz.png" alt="" />
  8839. </div>
  8840. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8841. </div>
  8842. <div @click="replyDialogVisible = false">
  8843. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8844. </div>
  8845. </div>
  8846. <div class="addPzBox">
  8847. <!-- <div class="addPzCheck">
  8848. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8849. >文本</span
  8850. >
  8851. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8852. >音频</span
  8853. >
  8854. </div> -->
  8855. <div style="height: calc(100% - 50px)">
  8856. <editor-bar
  8857. class="binfo_input pzConText"
  8858. style="width: 100% !important; margin: 0 auto"
  8859. placeholder="请输入回复描述"
  8860. v-model="reply"
  8861. @change="change"
  8862. ></editor-bar>
  8863. </div>
  8864. <div class="addTextCss" @click="addHf">确定</div>
  8865. </div>
  8866. </div>
  8867. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8868. <div class="pzTop">
  8869. <div class="teacherPz">
  8870. <div class="teacherPzImg">
  8871. <img src="../../assets/icon/teacherPz.png" alt="" />
  8872. </div>
  8873. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8874. </div>
  8875. <div @click="addPzDialog = false">
  8876. <img src="../../assets/close1.png" class="pzClose" alt="" />
  8877. </div>
  8878. </div>
  8879. <div class="addPzBox">
  8880. <div class="addPzCheck">
  8881. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8882. >文本</span
  8883. >
  8884. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8885. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8886. >音频</span
  8887. >
  8888. </div>
  8889. <div style="height: calc(100% - 95px)">
  8890. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8891. v-if="pzType == 1"></textarea> -->
  8892. <editor-bar
  8893. class="binfo_input pzConText"
  8894. style="width: 100% !important"
  8895. placeholder="请输入任务描述"
  8896. v-model="pzConText"
  8897. @change="change"
  8898. v-if="pzType == 1"
  8899. ></editor-bar>
  8900. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8901. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8902. <div @click="addImg($event)">
  8903. <el-button type="primary">上传图片</el-button>
  8904. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8905. @change="beforeUpload1($event, 4)" />
  8906. </div>
  8907. </div> -->
  8908. </div>
  8909. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8910. 确定
  8911. </div>
  8912. </div>
  8913. </div>
  8914. <div v-if="proVisible" class="mask">
  8915. <div class="progressBox">
  8916. <!-- <div id="closePro" class="closeCss">
  8917. <img src="../../assets/icon/close.png" alt />
  8918. </div> -->
  8919. <div class="lbox">
  8920. <img src="../../assets/loading.gif" />上传中,请稍后
  8921. </div>
  8922. <div style="margin-bottom: 10px">
  8923. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8924. </div>
  8925. <el-progress
  8926. :text-inside="true"
  8927. :stroke-width="20"
  8928. :percentage="progress"
  8929. style="width: 80%"
  8930. ></el-progress>
  8931. </div>
  8932. </div>
  8933. <div v-if="proVisible2" class="mask">
  8934. <div class="progressBox">
  8935. <div class="lbox">
  8936. <img src="../../assets/loading.gif" />上传中,请稍后
  8937. </div>
  8938. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8939. </div>
  8940. </div>
  8941. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8942. <img width="100%" :src="dialogImageUrl" alt />
  8943. </el-dialog>
  8944. <el-dialog
  8945. :title="noteName != '' ? noteName : '查看问卷'"
  8946. :visible.sync="dialogVisible5"
  8947. :append-to-body="true"
  8948. width="1000px"
  8949. :before-close="handleClose"
  8950. class="dialog_diy dialog_diy3"
  8951. >
  8952. <div>
  8953. <div
  8954. class="a_add_title"
  8955. style="
  8956. display: flex;
  8957. flex-direction: row;
  8958. align-items: center;
  8959. justify-content: center;
  8960. "
  8961. >
  8962. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8963. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8964. </div>
  8965. <div class="a_addBox">
  8966. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8967. 题目内容
  8968. </div>
  8969. <div
  8970. class="a_add_box"
  8971. v-for="(item1, index1) in askJson.askCount"
  8972. :key="index1"
  8973. >
  8974. <div class="a_add_head">
  8975. <div style="display: flex">
  8976. <span class="askIndex"> {{ index1 + 1 }}</span>
  8977. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8978. </div>
  8979. <img
  8980. v-if="askJson.askJson[index1].img"
  8981. :src="askJson.askJson[index1].img"
  8982. style="height: 300px; margin-top: 10px; max-width: 100%"
  8983. />
  8984. </div>
  8985. <div class="a_add_body">
  8986. <div class="a_add_input">
  8987. <el-radio-group
  8988. v-model="radio[index1]"
  8989. v-if="
  8990. askJson.askJson[index1].type == '1' ||
  8991. !askJson.askJson[index1].type
  8992. "
  8993. >
  8994. <el-radio
  8995. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8996. .checkList"
  8997. :key="checkIndex"
  8998. :label="checkIndex"
  8999. :disabled="isAnswer"
  9000. class="redioStyle"
  9001. ><span v-html="item2"></span
  9002. ></el-radio>
  9003. </el-radio-group>
  9004. <el-checkbox-group
  9005. v-model="radio[index1]"
  9006. v-if="askJson.askJson[index1].type == '2'"
  9007. >
  9008. <el-checkbox
  9009. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9010. .checkList"
  9011. :key="checkIndex1"
  9012. :label="checkIndex1"
  9013. :disabled="isAnswer"
  9014. class="redioStyle"
  9015. ><span v-html="item2"></span>
  9016. </el-checkbox>
  9017. </el-checkbox-group>
  9018. </div>
  9019. </div>
  9020. </div>
  9021. </div>
  9022. </div>
  9023. <span slot="footer" class="dialog-footer">
  9024. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  9025. >取 消</el-button
  9026. >
  9027. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  9028. >确 定</el-button
  9029. >
  9030. </span>
  9031. </el-dialog>
  9032. <el-dialog
  9033. :title="noteName != '' ? noteName : '查看问卷'"
  9034. :visible.sync="dialogVisible5Teacher"
  9035. :append-to-body="true"
  9036. width="1000px"
  9037. :before-close="handleClose"
  9038. class="dialog_diy dialog_diy3"
  9039. >
  9040. <div>
  9041. <div class="w_name">
  9042. 学生姓名:<span>{{ sStudent.student }}</span>
  9043. </div>
  9044. <div
  9045. class="a_add_title"
  9046. style="
  9047. display: flex;
  9048. flex-direction: row;
  9049. align-items: center;
  9050. justify-content: center;
  9051. "
  9052. >
  9053. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9054. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  9055. </div>
  9056. <div class="a_addBox">
  9057. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9058. 题目内容
  9059. </div>
  9060. <div
  9061. class="a_add_box"
  9062. v-for="(item1, index1) in askJson.askCount"
  9063. :key="index1"
  9064. >
  9065. <div class="a_add_head">
  9066. <div style="display: flex">
  9067. <span class="askIndex">{{ index1 + 1 }}</span>
  9068. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  9069. </div>
  9070. <img
  9071. v-if="askJson.askJson[index1].img"
  9072. :src="askJson.askJson[index1].img"
  9073. style="height: 300px; margin-top: 10px; max-width: 100%"
  9074. />
  9075. </div>
  9076. <div class="a_add_body">
  9077. <div class="a_add_input">
  9078. <el-radio-group
  9079. v-model="radio[index1]"
  9080. v-if="
  9081. askJson.askJson[index1].type == '1' ||
  9082. !askJson.askJson[index1].type
  9083. "
  9084. >
  9085. <el-radio
  9086. v-for="(item2, checkIndex) in askJson.askJson[index1]
  9087. .checkList"
  9088. :key="checkIndex"
  9089. :label="checkIndex"
  9090. :disabled="isAnswer"
  9091. class="redioStyle"
  9092. ><span v-html="item2"></span
  9093. ></el-radio>
  9094. </el-radio-group>
  9095. <el-checkbox-group
  9096. v-model="radio[index1]"
  9097. v-if="askJson.askJson[index1].type == '2'"
  9098. >
  9099. <el-checkbox
  9100. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  9101. .checkList"
  9102. :key="checkIndex1"
  9103. :label="checkIndex1"
  9104. :disabled="isAnswer"
  9105. class="redioStyle"
  9106. ><span v-html="item2"></span>
  9107. </el-checkbox>
  9108. </el-checkbox-group>
  9109. </div>
  9110. </div>
  9111. </div>
  9112. </div>
  9113. </div>
  9114. <span slot="footer" class="dialog-footer">
  9115. <el-button
  9116. @click="dialogVisible5Teacher = false"
  9117. v-show="noteName == ''"
  9118. >取 消</el-button
  9119. >
  9120. <el-button
  9121. type="primary"
  9122. @click="addStudentAskTeacher"
  9123. v-show="noteName == ''"
  9124. >确 定</el-button
  9125. >
  9126. </span>
  9127. </el-dialog>
  9128. <el-dialog
  9129. :title="noteName != '' ? noteName : '查看选择题'"
  9130. :visible.sync="dialogVisibleChoice"
  9131. :append-to-body="true"
  9132. width="1000px"
  9133. :before-close="handleClose"
  9134. class="dialog_diy dialog_diy3"
  9135. >
  9136. <div>
  9137. <!-- <div class="a_add_title" style="
  9138. display: flex;
  9139. flex-direction: row;
  9140. align-items: center;
  9141. justify-content: center;
  9142. ">
  9143. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  9144. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  9145. </div> -->
  9146. <div class="a_addBox">
  9147. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9148. 题目内容
  9149. </div>
  9150. <div
  9151. class="a_add_box"
  9152. v-for="(item1, index1) in testJson.testCount"
  9153. :key="index1"
  9154. >
  9155. <div class="a_add_head">
  9156. <div style="display: flex">
  9157. <span class="askIndex">{{ index1 + 1 }}</span>
  9158. <div
  9159. v-if="testJson.testJson[index1].type == '1'"
  9160. style="margin-right: 5px; min-width: 70px"
  9161. >
  9162. (单选题)
  9163. </div>
  9164. <div
  9165. v-if="testJson.testJson[index1].type == '2'"
  9166. style="margin-right: 5px; min-width: 70px"
  9167. >
  9168. (多选题)
  9169. </div>
  9170. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9171. </div>
  9172. <img
  9173. v-if="testJson.testJson[index1].img"
  9174. :src="testJson.testJson[index1].img"
  9175. style="height: 300px; margin-top: 10px; max-width: 100%"
  9176. />
  9177. </div>
  9178. <div
  9179. class="timuImgBox"
  9180. v-if="
  9181. testJson.testJson[index1].timuList &&
  9182. testJson.testJson[index1].timuList.length
  9183. "
  9184. >
  9185. <div
  9186. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9187. :key="tIndex"
  9188. class="timuImg"
  9189. @click.stop="previewImg(timg.src)"
  9190. >
  9191. <img :src="timg.src" alt="" />
  9192. </div>
  9193. </div>
  9194. <div class="a_add_body">
  9195. <div class="a_add_input">
  9196. <el-radio-group
  9197. v-model="radio[index1]"
  9198. v-if="testJson.testJson[index1].type == '1'"
  9199. >
  9200. <div class="radioBox">
  9201. <el-radio
  9202. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9203. .checkList"
  9204. :key="checkIndex"
  9205. :label="checkIndex"
  9206. :disabled="isAnswer"
  9207. class="redioStyle"
  9208. >
  9209. <div
  9210. style="margin-right: 10px"
  9211. v-if="item2 && item2.imgType && item2.imgType == 1"
  9212. >
  9213. <div class="inImg" @click.stop="previewImg(item2.src)">
  9214. <img :src="item2.src" alt="" />
  9215. </div>
  9216. </div>
  9217. <span v-else v-html="item2"></span>
  9218. </el-radio>
  9219. </div>
  9220. </el-radio-group>
  9221. <el-checkbox-group
  9222. v-model="radio[index1]"
  9223. v-if="testJson.testJson[index1].type == '2'"
  9224. >
  9225. <div class="radioBox">
  9226. <el-checkbox
  9227. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9228. .checkList"
  9229. :key="checkIndex"
  9230. :label="checkIndex"
  9231. :disabled="isAnswer"
  9232. class="redioStyle"
  9233. >
  9234. <div
  9235. style="margin-right: 10px"
  9236. v-if="item2 && item2.imgType && item2.imgType == 1"
  9237. >
  9238. <div class="inImg" @click.stop="previewImg(item2.src)">
  9239. <img :src="item2.src" alt="" />
  9240. </div>
  9241. </div>
  9242. <span v-else v-html="item2"></span>
  9243. </el-checkbox>
  9244. </div>
  9245. </el-checkbox-group>
  9246. </div>
  9247. </div>
  9248. </div>
  9249. </div>
  9250. </div>
  9251. <span slot="footer" class="dialog-footer">
  9252. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  9253. >取 消</el-button
  9254. >
  9255. <el-button
  9256. type="primary"
  9257. @click="addStudentTest"
  9258. v-show="noteName == ''"
  9259. >确 定</el-button
  9260. >
  9261. </span>
  9262. </el-dialog>
  9263. <el-dialog
  9264. :title="noteName != '' ? noteName : '查看选择题'"
  9265. :visible.sync="dialogVisibleChoiceTeacher"
  9266. :append-to-body="true"
  9267. width="1000px"
  9268. :before-close="handleClose"
  9269. class="dialog_diy dialog_diy3"
  9270. >
  9271. <div>
  9272. <div class="w_name">
  9273. 学生姓名:<span>{{ sStudent.student }}</span>
  9274. </div>
  9275. <div class="a_addBox">
  9276. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  9277. 题目内容
  9278. </div>
  9279. <div
  9280. class="a_add_box"
  9281. v-for="(item1, index1) in testJson.testCount"
  9282. :key="index1"
  9283. >
  9284. <div class="a_add_head">
  9285. <div style="display: flex">
  9286. <span class="askIndex">{{ index1 + 1 }}</span>
  9287. <div
  9288. v-if="testJson.testJson[index1].type == '1'"
  9289. style="margin-right: 5px; min-width: 70px"
  9290. >
  9291. (单选题)
  9292. </div>
  9293. <div
  9294. v-if="testJson.testJson[index1].type == '2'"
  9295. style="margin-right: 5px; min-width: 70px"
  9296. >
  9297. (多选题)
  9298. </div>
  9299. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  9300. </div>
  9301. <img
  9302. v-if="testJson.testJson[index1].img"
  9303. :src="testJson.testJson[index1].img"
  9304. style="height: 300px; margin-top: 10px; max-width: 100%"
  9305. />
  9306. </div>
  9307. <div
  9308. class="timuImgBox"
  9309. v-if="
  9310. testJson.testJson[index1].timuList &&
  9311. testJson.testJson[index1].timuList.length
  9312. "
  9313. >
  9314. <div
  9315. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  9316. :key="tIndex"
  9317. class="timuImg"
  9318. @click.stop="previewImg(timg.src)"
  9319. >
  9320. <img :src="timg.src" alt="" />
  9321. </div>
  9322. </div>
  9323. <div class="a_add_body">
  9324. <div class="a_add_input">
  9325. <el-radio-group
  9326. v-model="radio[index1]"
  9327. v-if="testJson.testJson[index1].type == '1'"
  9328. >
  9329. <div class="radioBox">
  9330. <el-radio
  9331. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9332. .checkList"
  9333. :key="checkIndex"
  9334. :label="checkIndex"
  9335. :disabled="isAnswer"
  9336. class="redioStyle"
  9337. >
  9338. <div
  9339. style="margin-right: 10px"
  9340. v-if="item2 && item2.imgType && item2.imgType == 1"
  9341. >
  9342. <div class="inImg" @click.stop="previewImg(item2.src)">
  9343. <img :src="item2.src" alt="" />
  9344. </div>
  9345. </div>
  9346. <span v-else v-html="item2"></span>
  9347. </el-radio>
  9348. </div>
  9349. </el-radio-group>
  9350. <el-checkbox-group
  9351. v-model="radio[index1]"
  9352. v-if="testJson.testJson[index1].type == '2'"
  9353. >
  9354. <div class="radioBox">
  9355. <el-checkbox
  9356. v-for="(item2, checkIndex) in testJson.testJson[index1]
  9357. .checkList"
  9358. :key="checkIndex"
  9359. :label="checkIndex"
  9360. :disabled="isAnswer"
  9361. class="redioStyle"
  9362. >
  9363. <div
  9364. style="margin-right: 10px"
  9365. v-if="item2 && item2.imgType && item2.imgType == 1"
  9366. >
  9367. <div class="inImg" @click.stop="previewImg(item2.src)">
  9368. <img :src="item2.src" alt="" />
  9369. </div>
  9370. </div>
  9371. <span v-else v-html="item2"></span>
  9372. </el-checkbox>
  9373. </div>
  9374. </el-checkbox-group>
  9375. </div>
  9376. </div>
  9377. </div>
  9378. </div>
  9379. </div>
  9380. <span slot="footer" class="dialog-footer">
  9381. <el-button
  9382. @click="dialogVisibleChoiceTeacher = false"
  9383. v-show="noteName == ''"
  9384. >取 消</el-button
  9385. >
  9386. <el-button
  9387. type="primary"
  9388. @click="addStudentTestTeacher"
  9389. v-show="noteName == ''"
  9390. >确 定</el-button
  9391. >
  9392. </span>
  9393. </el-dialog>
  9394. <el-dialog
  9395. title="查看富文本"
  9396. :visible.sync="dialogVisible1"
  9397. :append-to-body="true"
  9398. width="500px"
  9399. :before-close="handleClose"
  9400. class="dialog_diy textCss"
  9401. >
  9402. <el-form style="font-size: 20px">
  9403. <el-form-item label="文本标题" class="textTitle">
  9404. <div style="font-size: 20px">{{ text.name }}</div>
  9405. </el-form-item>
  9406. <div>富文本内容</div>
  9407. <div
  9408. v-html="text.url"
  9409. style="font-size: 18px; padding: 40px 0 0 0"
  9410. ></div>
  9411. </el-form>
  9412. <span slot="footer" class="dialog-footer">
  9413. <el-button type="primary" @click="dialogVisible1 = false"
  9414. >确定</el-button
  9415. >
  9416. </span>
  9417. </el-dialog>
  9418. <el-dialog
  9419. title="文件预览"
  9420. :visible.sync="dialogVisible3"
  9421. width="50%"
  9422. :before-close="handleClose"
  9423. class="dialog_diy"
  9424. :class="{ fullStyle: full }"
  9425. >
  9426. <div slot="title" class="header-title">
  9427. <div style="color: #fff">文件预览</div>
  9428. <div style="position: absolute; top: 19px; right: 50px">
  9429. <img
  9430. src="../../assets/full.png"
  9431. style="height: 16px; cursor: pointer"
  9432. alt=""
  9433. @click="fullTools"
  9434. />
  9435. </div>
  9436. </div>
  9437. <pdf
  9438. v-if="showPDF"
  9439. :pdfUrl="pptImgUrl"
  9440. style="width: 100%; height: 520px; overflow: auto"
  9441. :class="{ fullStyle: full }"
  9442. ></pdf>
  9443. <iframe
  9444. v-else
  9445. :src="pptImgUrl"
  9446. frameborder="0"
  9447. width="100%"
  9448. height="600"
  9449. :class="{ fullStyle: full }"
  9450. ></iframe>
  9451. </el-dialog>
  9452. <el-dialog
  9453. title="文件预览"
  9454. :visible.sync="dialogVisible6"
  9455. width="50%"
  9456. :before-close="handleClose"
  9457. class="dialog_diy"
  9458. >
  9459. <iframe
  9460. :src="pptImgUrl1"
  9461. frameborder="0"
  9462. width="100%"
  9463. height="600"
  9464. ></iframe>
  9465. </el-dialog>
  9466. <el-dialog
  9467. title="提示"
  9468. :visible.sync="dialogVisible4"
  9469. :append-to-body="true"
  9470. width="800px"
  9471. :before-close="handleClose"
  9472. class="dialog_diy notice"
  9473. >
  9474. <div>此功能暂未开放!</div>
  9475. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9476. </el-dialog>
  9477. <el-dialog
  9478. title="问答"
  9479. :visible.sync="answerDialogVisible"
  9480. :append-to-body="true"
  9481. width="800px"
  9482. :before-close="handleClose"
  9483. class="dialog_diy"
  9484. >
  9485. <div>
  9486. <div
  9487. style="
  9488. display: flex;
  9489. flex-wrap: nowrap;
  9490. flex-direction: column;
  9491. position: relative;
  9492. "
  9493. >
  9494. <div class="queTop" style="padding: 20px 0 20px 0">
  9495. <div class="question">
  9496. <img src="../../assets/icon/question.png" alt />
  9497. </div>
  9498. <div class="queTitle">
  9499. <div style="width: 90px; min-width: 90px">提问:</div>
  9500. <div>{{ answerQ }}</div>
  9501. </div>
  9502. </div>
  9503. <div class="ediBottom">
  9504. <textarea
  9505. rows="6"
  9506. class="binfo_input"
  9507. cols
  9508. style="width: 95%; height: 120px"
  9509. v-model="questionAnswer"
  9510. ></textarea>
  9511. </div>
  9512. </div>
  9513. </div>
  9514. <div slot="footer">
  9515. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9516. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9517. </div>
  9518. </el-dialog>
  9519. <el-dialog
  9520. title="问答"
  9521. :visible.sync="answerDialogVisibleTeacher"
  9522. :append-to-body="true"
  9523. width="800px"
  9524. :before-close="handleClose"
  9525. class="dialog_diy"
  9526. >
  9527. <div>
  9528. <div class="w_name">
  9529. 学生姓名:<span>{{ sStudent.student }}</span>
  9530. </div>
  9531. <div
  9532. style="
  9533. display: flex;
  9534. flex-wrap: nowrap;
  9535. flex-direction: column;
  9536. position: relative;
  9537. "
  9538. >
  9539. <div class="queTop" style="padding: 20px 0 20px 0">
  9540. <div class="question">
  9541. <img src="../../assets/icon/question.png" alt />
  9542. </div>
  9543. <div class="queTitle">
  9544. <div style="width: 90px; min-width: 90px">提问:</div>
  9545. <div>{{ answerQ }}</div>
  9546. </div>
  9547. </div>
  9548. <div class="ediBottom">
  9549. <textarea
  9550. rows="6"
  9551. class="binfo_input"
  9552. cols
  9553. style="width: 95%; height: 120px"
  9554. v-model="questionAnswer"
  9555. ></textarea>
  9556. </div>
  9557. </div>
  9558. </div>
  9559. <div slot="footer">
  9560. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9561. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9562. </div>
  9563. </el-dialog>
  9564. <el-dialog
  9565. title="倒计时"
  9566. :visible.sync="timeDialogVisible"
  9567. :append-to-body="true"
  9568. width="800px"
  9569. :before-close="handleClose"
  9570. class="dialog_diy"
  9571. >
  9572. <div>
  9573. <div style="margin-bottom: 20px; color: #999">
  9574. 提示:点击“+”或“-”修改倒计时时长。
  9575. </div>
  9576. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9577. </div>
  9578. <div slot="footer">
  9579. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9580. </div>
  9581. </el-dialog>
  9582. <el-dialog
  9583. title="权限设置"
  9584. :visible.sync="juriVisible"
  9585. :append-to-body="true"
  9586. width="400px"
  9587. :before-close="handleClose"
  9588. class="dialog_diy"
  9589. >
  9590. <div>
  9591. <div class="open_box">
  9592. <div class="switch_box">
  9593. <span>允许学生查看所有作业</span>
  9594. <el-switch
  9595. v-model="sIsOpen"
  9596. active-text=""
  9597. class="switchCss"
  9598. @change="updateSLook"
  9599. ></el-switch>
  9600. </div>
  9601. <div
  9602. class="switch_box"
  9603. v-if="
  9604. courseDetail.userid == userid ||
  9605. (courseDetail.course_teacher &&
  9606. courseDetail.course_teacher.indexOf(userid) != -1)
  9607. "
  9608. >
  9609. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9610. <span>禁止学生查看所有阶段</span>
  9611. <el-switch
  9612. v-model="IsLookOpen"
  9613. active-text=""
  9614. class="switchCss"
  9615. @change="updateLookOpen"
  9616. ></el-switch>
  9617. </div>
  9618. <div class="switch_box" v-if="courseDetail.userid == userid">
  9619. <span>开启跟随模式</span>
  9620. <el-switch
  9621. v-model="IsFollow"
  9622. active-text=""
  9623. class="switchCss"
  9624. @change="updateFollow"
  9625. ></el-switch>
  9626. </div>
  9627. </div>
  9628. </div>
  9629. <div slot="footer">
  9630. <el-button
  9631. style="background: #409efe; color: #fff"
  9632. @click="juriVisible = false"
  9633. >关 闭</el-button
  9634. >
  9635. </div>
  9636. </el-dialog>
  9637. <el-dialog
  9638. title="查看视频"
  9639. :visible.sync="videoVisible"
  9640. :append-to-body="true"
  9641. width="1000px"
  9642. :before-close="handleClose"
  9643. class="dialog_diy1"
  9644. >
  9645. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9646. <video-player
  9647. class="video-player vjs-custom-skin"
  9648. :playsinline="true"
  9649. :options="videoDetail"
  9650. @play="onPlayerPlay($event)"
  9651. style="width: 100%; height: 100%"
  9652. ></video-player>
  9653. </div>
  9654. <div slot="footer">
  9655. <el-button
  9656. style="background: #409efe; color: #fff"
  9657. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9658. >
  9659. 关 闭</el-button
  9660. >
  9661. </div>
  9662. </el-dialog>
  9663. <el-dialog
  9664. title="查看详情"
  9665. :visible.sync="commentDialogVisible"
  9666. :append-to-body="true"
  9667. width="800px"
  9668. :before-close="handleClose"
  9669. class="dialog_diy"
  9670. >
  9671. <div class="commentTop">
  9672. <div class="studentDetail">
  9673. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  9674. <div class="nameAndTime">
  9675. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9676. <div>{{ commentDetail.time }}</div>
  9677. </div>
  9678. <div
  9679. class="returnBtn"
  9680. style="margin-left: auto; width: 80px"
  9681. v-if="
  9682. commentDetail.works &&
  9683. commentDetail.type == 0 &&
  9684. (tType == 1 || tType == 4)
  9685. "
  9686. @click="
  9687. showPicturePaint(
  9688. commentDetail.img ? commentDetail.img : commentDetail.works
  9689. )
  9690. "
  9691. >
  9692. 教师批注
  9693. </div>
  9694. </div>
  9695. <div
  9696. class="worksAnswer"
  9697. v-if="commentDetail.works && commentDetail.type == 2"
  9698. >
  9699. {{ JSON.parse(commentDetail.works)[0].answer }}
  9700. </div>
  9701. <div
  9702. class="worksAnswer"
  9703. v-if="commentDetail.works && commentDetail.type == 1"
  9704. >
  9705. <img
  9706. src="../../assets/teacherWork.png"
  9707. v-if="commentDetail.ateacher"
  9708. class="w_teachert"
  9709. />
  9710. <pdf
  9711. v-if="showPDF"
  9712. :pdfUrl="pptImgUrl"
  9713. style="width: 100%; height: 520px; overflow: auto"
  9714. :class="{ fullStyle: full }"
  9715. ></pdf>
  9716. <iframe
  9717. v-else
  9718. :src="pptImgUrl"
  9719. frameborder="0"
  9720. width="100%"
  9721. height="600"
  9722. :class="{ fullStyle: full }"
  9723. ></iframe>
  9724. </div>
  9725. <div
  9726. class="worksAnswer"
  9727. v-if="commentDetail.works && commentDetail.type == 0"
  9728. >
  9729. <img
  9730. src="../../assets/teacherWork.png"
  9731. v-if="commentDetail.ateacher"
  9732. class="w_teachert"
  9733. style="right: 105px"
  9734. />
  9735. <img
  9736. :src="commentDetail.works"
  9737. alt=""
  9738. @click="previewImg(commentDetail.works)"
  9739. />
  9740. </div>
  9741. <div
  9742. class="worksAnswer"
  9743. v-if="commentDetail.works && commentDetail.type == 3"
  9744. >
  9745. <img
  9746. src="../../assets/teacherWork.png"
  9747. v-if="commentDetail.ateacher"
  9748. class="w_teachert"
  9749. />
  9750. <video-player
  9751. class="video-player vjs-custom-skin"
  9752. :playsinline="true"
  9753. :options="videoDetail"
  9754. @play="onPlayerPlay($event)"
  9755. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9756. ></video-player>
  9757. </div>
  9758. <div
  9759. class="worksAnswer"
  9760. v-if="commentDetail.works && commentDetail.type == 10"
  9761. >
  9762. <div class="cont" v-html="commentDetail.works.text"></div>
  9763. </div>
  9764. <div
  9765. class="worksAnswer codeFileBox"
  9766. v-if="commentDetail.works && commentDetail.type == 12"
  9767. @click="downloadFile(commentDetail.works)"
  9768. >
  9769. <img src="../../assets/icon/codeFile.png" />
  9770. <div>点击下载文件</div>
  9771. </div>
  9772. <div
  9773. class="worksAnswer codeFileBox"
  9774. v-if="commentDetail.works && commentDetail.type == 15"
  9775. @click="
  9776. openCocoPi(
  9777. 57,
  9778. commentIndexJson.toolIndex,
  9779. commentDetail.userid,
  9780. commentDetail.sName
  9781. )
  9782. "
  9783. >
  9784. <img src="../../assets/icon/codeFile.png" />
  9785. <div>点击打开CocoPi</div>
  9786. </div>
  9787. <div
  9788. class="worksAnswer"
  9789. v-if="commentDetail.works && commentDetail.type == 13"
  9790. >
  9791. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9792. </div>
  9793. <div
  9794. class="worksAnswer"
  9795. v-if="commentDetail.works && commentDetail.type == 4"
  9796. >
  9797. <div class="evalCss">
  9798. <div class="nav">请选择星星进行评分</div>
  9799. <div class="middleBox" v-if="eScore.eStar">
  9800. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9801. <div class="nameAndrate">
  9802. <div>{{ e.value }}</div>
  9803. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9804. </div>
  9805. <div v-if="e.detail">{{ e.detail }}</div>
  9806. </div>
  9807. <div class="bz">
  9808. <textarea
  9809. disabled
  9810. rows="4"
  9811. class="pj"
  9812. style="
  9813. padding: 10px 5px;
  9814. width: 70%;
  9815. background: #f7f6f9;
  9816. font-size: 14px;
  9817. text-indent: 10px;
  9818. color: #000;
  9819. "
  9820. cols
  9821. v-model="eScore.eBzText"
  9822. placeholder="请输入评价内容..."
  9823. ></textarea>
  9824. </div>
  9825. </div>
  9826. </div>
  9827. </div>
  9828. <div class="comment">
  9829. <div class="commentList">
  9830. <div class="commentImg">
  9831. <img
  9832. @click="
  9833. isLikes(
  9834. commentDetail.wid,
  9835. userid,
  9836. 1,
  9837. null,
  9838. commentDetail.isLikes
  9839. )
  9840. "
  9841. :src="commentDetail.isLikes == true ? likes : noLikes"
  9842. alt=""
  9843. />
  9844. </div>
  9845. <div>{{ commentDetail.likesCount }}</div>
  9846. </div>
  9847. <div class="commentList">
  9848. <div class="commentImg">
  9849. <img src="../../assets/icon/comment/comment.png" alt="" />
  9850. </div>
  9851. <div>{{ commentDetail.commentCount }}</div>
  9852. </div>
  9853. </div>
  9854. <div class="drawPBox" v-if="commentDetail.img">
  9855. <span>教师批注</span>
  9856. <img
  9857. :src="commentDetail.img"
  9858. alt=""
  9859. @click="previewImg(commentDetail.img)"
  9860. />
  9861. <span
  9862. class="deleteImg"
  9863. v-if="tType == 1 || tType == 4"
  9864. @click.stop="deletePicturePaint(commentDetail.wid)"
  9865. style="
  9866. font-size: 14px;
  9867. width: auto !important;
  9868. color: #b4b4b4;
  9869. top: unset;
  9870. bottom: 0;
  9871. border: none;
  9872. padding: 0;
  9873. height: auto !important;
  9874. margin: 0;
  9875. "
  9876. >删除</span
  9877. >
  9878. </div>
  9879. </div>
  9880. <div class="commentBox">
  9881. <div class="pl">评论:</div>
  9882. <div style="max-height: 200px; overflow: auto">
  9883. <div
  9884. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9885. style="padding: 10px 0 0 0"
  9886. >
  9887. <div
  9888. class="studentDetail"
  9889. style="padding-top: 10px"
  9890. v-for="(co, coIndex) in commentDetail.commentJson"
  9891. :key="coIndex"
  9892. >
  9893. <div class="tx" style="min-width: 50px">
  9894. <img src="../../assets/avatar.png" alt="" />
  9895. </div>
  9896. <div class="plPerson">
  9897. <div class="plName">
  9898. <div>{{ co.commentPeople }}</div>
  9899. <div style="margin-left: 5px">
  9900. {{ co.commentTime }}
  9901. </div>
  9902. <div
  9903. class="deleteComment"
  9904. v-if="userid == co.userid"
  9905. @click="deleteComment(co.wid)"
  9906. >
  9907. 删除
  9908. </div>
  9909. </div>
  9910. <div class="plContent">{{ co.commentText }}</div>
  9911. </div>
  9912. </div>
  9913. </div>
  9914. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9915. </div>
  9916. </div>
  9917. <div style="margin-top: 10px">
  9918. <div class="displayBox">
  9919. <div
  9920. style="
  9921. color: #556db4;
  9922. font-size: 14px;
  9923. font-weight: bold;
  9924. padding-bottom: 10px;
  9925. "
  9926. >
  9927. 评价
  9928. </div>
  9929. <div class="easy_comment" v-if="false">
  9930. <div
  9931. v-for="(p, pIndex) in PlTextList"
  9932. :key="pIndex"
  9933. @click="fastText(p, 1)"
  9934. >
  9935. {{ p }}
  9936. </div>
  9937. </div>
  9938. </div>
  9939. <div>
  9940. <textarea
  9941. rows="3"
  9942. class="pj"
  9943. style="padding: 10px 5px"
  9944. cols
  9945. v-model="commentText"
  9946. placeholder="请输入评论"
  9947. ></textarea>
  9948. </div>
  9949. </div>
  9950. <div slot="footer">
  9951. <el-button
  9952. @click="
  9953. (commentDialogVisible = false),
  9954. (commentIndexJson = {}),
  9955. videoDetail.sources && videoDetail.sources[0]
  9956. ? (videoDetail.sources[0].src = '')
  9957. : ''
  9958. "
  9959. >取 消</el-button
  9960. >
  9961. <el-button
  9962. type="primary"
  9963. @click="addComment(commentDetail.wid, userid, 2)"
  9964. >确 定</el-button
  9965. >
  9966. </div>
  9967. </el-dialog>
  9968. <el-dialog
  9969. title="查看文档"
  9970. :visible.sync="fullDialogVisible"
  9971. :append-to-body="true"
  9972. width="100%"
  9973. :before-close="handleClose"
  9974. :show-close="false"
  9975. class="dialog_diy full_diy"
  9976. :class="{ full_diy2: fulltype == 3 }"
  9977. >
  9978. <div slot="title" class="header-title">
  9979. <div style="color: #fff">查看文档</div>
  9980. <div
  9981. @click="fullDialogVisible = false"
  9982. style="
  9983. cursor: pointer;
  9984. position: absolute;
  9985. top: 20px;
  9986. right: 20px;
  9987. color: #fff;
  9988. "
  9989. >
  9990. 退出全屏
  9991. </div>
  9992. </div>
  9993. <div style="height: 100%">
  9994. <div
  9995. class="wheel"
  9996. v-if="
  9997. fulltype == 2 &&
  9998. fullUrl.indexOf(
  9999. 'https://view.officeapps.live.com/op/view.aspx?src='
  10000. ) != -1
  10001. "
  10002. style="width: 95%; margin: 0 auto"
  10003. >
  10004. <iframe
  10005. style="width: 100%; height: 100%; border: none"
  10006. :src="fullUrl"
  10007. ></iframe>
  10008. </div>
  10009. <iframe
  10010. v-else-if="fulltype == 2"
  10011. style="width: 100%; height: 100%; border: none"
  10012. :src="fullUrl"
  10013. security="restricted"
  10014. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  10015. ></iframe>
  10016. <pdf
  10017. v-else-if="fulltype == 3"
  10018. :pdfUrl="fullUrl"
  10019. style="width: 100%; height: 100%; overflow: auto"
  10020. ></pdf>
  10021. <div
  10022. class="wheel"
  10023. v-if="fulltype == 1"
  10024. style="
  10025. box-shadow: 0 0 6px 1px #f2f2f2;
  10026. width: 100%;
  10027. background: #f1f1f1;
  10028. "
  10029. >
  10030. <div class="title" style="width: 100%; box-sizing: border-box">
  10031. 查看文档
  10032. </div>
  10033. <el-form class="textBox" style="height: 90%">
  10034. <el-form-item class="textTitle">
  10035. <div style="font-size: 22px">
  10036. {{ fullUrl.name }}
  10037. </div>
  10038. </el-form-item>
  10039. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  10040. <div
  10041. v-html="fullUrl.url"
  10042. class="textContent"
  10043. style="height: auto"
  10044. ></div>
  10045. </el-form>
  10046. </div>
  10047. </div>
  10048. <!-- <div slot="footer">
  10049. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  10050. </div> -->
  10051. </el-dialog>
  10052. <el-dialog
  10053. title="个人评价"
  10054. :visible.sync="studentEvalDialogVisible"
  10055. :append-to-body="true"
  10056. width="800px"
  10057. :before-close="handleClose"
  10058. class="dialog_diy"
  10059. >
  10060. <div class="evalCss">
  10061. <div class="nav">请选择星星进行评分</div>
  10062. <div class="middleBox" v-if="eScore.eStar">
  10063. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10064. <div class="nameAndrate">
  10065. <div>{{ e.value }}</div>
  10066. <el-rate
  10067. v-model="eScore.eStar[eIndex]"
  10068. :disabled="isStar"
  10069. ></el-rate>
  10070. </div>
  10071. <div v-if="e.detail">{{ e.detail }}</div>
  10072. </div>
  10073. <div class="easy_comment" v-if="false">
  10074. <div
  10075. v-for="(p, pIndex) in PlTextList"
  10076. :key="pIndex"
  10077. @click="fastText(p, 2)"
  10078. >
  10079. {{ p }}
  10080. </div>
  10081. </div>
  10082. <div class="bz">
  10083. <textarea
  10084. :disabled="isStar"
  10085. rows="4"
  10086. class="pj"
  10087. style="
  10088. padding: 10px 5px;
  10089. width: 70%;
  10090. background: #f7f6f9;
  10091. font-size: 14px;
  10092. text-indent: 10px;
  10093. "
  10094. cols
  10095. v-model="eScore.eBzText"
  10096. placeholder="请输入评价内容..."
  10097. ></textarea>
  10098. </div>
  10099. </div>
  10100. </div>
  10101. <div slot="footer">
  10102. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  10103. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  10104. >确 定</el-button
  10105. >
  10106. </div>
  10107. </el-dialog>
  10108. <el-dialog
  10109. title="个人评价"
  10110. :visible.sync="studentEvalDialogVisibleTeacher"
  10111. :append-to-body="true"
  10112. width="800px"
  10113. :before-close="handleClose"
  10114. class="dialog_diy"
  10115. >
  10116. <div class="w_name">
  10117. 学生姓名:<span>{{ sStudent.student }}</span>
  10118. </div>
  10119. <div class="evalCss">
  10120. <div class="nav">请选择星星进行评分</div>
  10121. <div class="middleBox" v-if="eScore.eStar">
  10122. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10123. <div class="nameAndrate">
  10124. <div>{{ e.value }}</div>
  10125. <el-rate
  10126. v-model="eScore.eStar[eIndex]"
  10127. :disabled="isStar"
  10128. ></el-rate>
  10129. </div>
  10130. <div v-if="e.detail">{{ e.detail }}</div>
  10131. </div>
  10132. <div class="easy_comment" v-if="false">
  10133. <div
  10134. v-for="(p, pIndex) in PlTextList"
  10135. :key="pIndex"
  10136. @click="fastText(p, 2)"
  10137. >
  10138. {{ p }}
  10139. </div>
  10140. </div>
  10141. <div class="bz">
  10142. <textarea
  10143. :disabled="isStar"
  10144. rows="4"
  10145. class="pj"
  10146. style="
  10147. padding: 10px 5px;
  10148. width: 70%;
  10149. background: #f7f6f9;
  10150. font-size: 14px;
  10151. text-indent: 10px;
  10152. "
  10153. cols
  10154. v-model="eScore.eBzText"
  10155. placeholder="请输入评价内容..."
  10156. ></textarea>
  10157. </div>
  10158. </div>
  10159. </div>
  10160. <div slot="footer">
  10161. <el-button @click="studentEvalDialogVisibleTeacher = false"
  10162. >取 消</el-button
  10163. >
  10164. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  10165. >确 定</el-button
  10166. >
  10167. </div>
  10168. </el-dialog>
  10169. <el-dialog
  10170. title="选择匹配"
  10171. :visible.sync="dialogVisibleSelect"
  10172. :append-to-body="true"
  10173. width="90%"
  10174. :before-close="handleClose"
  10175. class="dialog_diy dialog_diy3"
  10176. >
  10177. <div v-if="selectJson">
  10178. <div class="select_box2">
  10179. <div class="select_box2_title">
  10180. <div>选择匹配</div>
  10181. <div>请选择对应的答案进行答题!</div>
  10182. </div>
  10183. <div class="select_box2_box">
  10184. <div class="select_box2_img">
  10185. <img
  10186. :src="selectJson.url"
  10187. @click="previewImg(selectJson.url)"
  10188. alt=""
  10189. />
  10190. </div>
  10191. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10192. <div style="padding-top: 15px">
  10193. <div class="select_answer_title" v-if="isSelect">
  10194. {{ selectAnswer.stu }}
  10195. </div>
  10196. <div class="select_answer_title" v-else>
  10197. 根据题目选择对应答案
  10198. </div>
  10199. <div
  10200. class="select_box2_answer_box"
  10201. v-for="(item2, checkIndex) in selectJson.select"
  10202. :key="checkIndex"
  10203. >
  10204. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10205. <el-select
  10206. :disabled="isSelect"
  10207. v-model="selectAnswer.answer[checkIndex]"
  10208. placeholder="请选择正确答案"
  10209. >
  10210. <el-option
  10211. v-for="(e, eIndex) in selectJson.select"
  10212. :key="eIndex"
  10213. :label="e"
  10214. :value="eIndex"
  10215. >
  10216. </el-option>
  10217. </el-select>
  10218. </div>
  10219. </div>
  10220. <div
  10221. class="rightAnswerCss"
  10222. v-if="isSelect && (tType == 1 || tType == 4)"
  10223. >
  10224. <div
  10225. v-for="(a, aIndex) in selectJson.answer"
  10226. :key="aIndex"
  10227. class="rightAnswer"
  10228. >
  10229. <div
  10230. v-if="selectAnswer.answer[aIndex] === a"
  10231. style="color: #767de1"
  10232. >
  10233. 回答正确
  10234. </div>
  10235. <div v-else>回答错误</div>
  10236. <div
  10237. style="margin-left: 10px"
  10238. v-if="selectAnswer.answer[aIndex] !== a"
  10239. >
  10240. 正确答案:
  10241. </div>
  10242. <div
  10243. :class="
  10244. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10245. "
  10246. >
  10247. {{ selectJson.select[a] }}
  10248. </div>
  10249. </div>
  10250. </div>
  10251. </div>
  10252. <div class="upAnswerCss">
  10253. <el-button
  10254. type="primary"
  10255. @click="addSelectAnswer"
  10256. v-if="!isSelect"
  10257. >提交答案</el-button
  10258. >
  10259. </div>
  10260. </div>
  10261. </div>
  10262. </div>
  10263. </el-dialog>
  10264. <el-dialog
  10265. title="选择匹配"
  10266. :visible.sync="dialogVisibleSelectTeacher"
  10267. :append-to-body="true"
  10268. width="90%"
  10269. :before-close="handleClose"
  10270. class="dialog_diy dialog_diy3"
  10271. >
  10272. <div v-if="selectJson">
  10273. <div class="w_name">
  10274. 学生姓名:<span>{{ sStudent.student }}</span>
  10275. </div>
  10276. <div class="select_box2">
  10277. <div class="select_box2_title">
  10278. <div>选择匹配</div>
  10279. <div>请选择对应的答案进行答题!</div>
  10280. </div>
  10281. <div class="select_box2_box">
  10282. <div class="select_box2_img">
  10283. <img
  10284. :src="selectJson.url"
  10285. @click="previewImg(selectJson.url)"
  10286. alt=""
  10287. />
  10288. </div>
  10289. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  10290. <div style="padding-top: 15px">
  10291. <div class="select_answer_title" v-if="isSelect">
  10292. {{ selectAnswer.stu }}
  10293. </div>
  10294. <div class="select_answer_title" v-else>
  10295. 根据题目选择对应答案
  10296. </div>
  10297. <div
  10298. class="select_box2_answer_box"
  10299. v-for="(item2, checkIndex) in selectJson.select"
  10300. :key="checkIndex"
  10301. >
  10302. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  10303. <el-select
  10304. :disabled="isSelect"
  10305. v-model="selectAnswer.answer[checkIndex]"
  10306. placeholder="请选择正确答案"
  10307. >
  10308. <el-option
  10309. v-for="(e, eIndex) in selectJson.select"
  10310. :key="eIndex"
  10311. :label="e"
  10312. :value="eIndex"
  10313. >
  10314. </el-option>
  10315. </el-select>
  10316. </div>
  10317. </div>
  10318. <div
  10319. class="rightAnswerCss"
  10320. v-if="isSelect && (tType == 1 || tType == 4)"
  10321. >
  10322. <div
  10323. v-for="(a, aIndex) in selectJson.answer"
  10324. :key="aIndex"
  10325. class="rightAnswer"
  10326. >
  10327. <div
  10328. v-if="selectAnswer.answer[aIndex] === a"
  10329. style="color: #767de1"
  10330. >
  10331. 回答正确
  10332. </div>
  10333. <div v-else>回答错误</div>
  10334. <div
  10335. style="margin-left: 10px"
  10336. v-if="selectAnswer.answer[aIndex] !== a"
  10337. >
  10338. 正确答案:
  10339. </div>
  10340. <div
  10341. :class="
  10342. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  10343. "
  10344. >
  10345. {{ selectJson.select[a] }}
  10346. </div>
  10347. </div>
  10348. </div>
  10349. </div>
  10350. <div class="upAnswerCss">
  10351. <el-button
  10352. type="primary"
  10353. @click="addSelectAnswerTeacher"
  10354. v-if="!isSelect"
  10355. >提交答案</el-button
  10356. >
  10357. </div>
  10358. </div>
  10359. </div>
  10360. </div>
  10361. </el-dialog>
  10362. <el-dialog
  10363. title="教师评分"
  10364. :visible.sync="dialogVisibleScore"
  10365. :append-to-body="true"
  10366. width="800px"
  10367. :before-close="handleClose"
  10368. class="dialog_diy"
  10369. >
  10370. <div>
  10371. <div class="studentDetail">
  10372. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10373. <div class="nameAndTime">
  10374. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10375. <div>{{ commentDetail.time }}</div>
  10376. </div>
  10377. </div>
  10378. <div
  10379. class="worksAnswer"
  10380. v-if="commentDetail.works && commentDetail.type == 2"
  10381. >
  10382. {{ JSON.parse(commentDetail.works)[0].answer }}
  10383. </div>
  10384. <div
  10385. class="worksAnswer"
  10386. v-if="commentDetail.works && commentDetail.type == 1"
  10387. >
  10388. <pdf
  10389. v-if="showPDF"
  10390. :pdfUrl="pptImgUrl"
  10391. style="width: 100%; height: 520px; overflow: auto"
  10392. :class="{ fullStyle: full }"
  10393. ></pdf>
  10394. <iframe
  10395. v-else
  10396. :src="pptImgUrl"
  10397. frameborder="0"
  10398. width="100%"
  10399. height="600"
  10400. :class="{ fullStyle: full }"
  10401. ></iframe>
  10402. </div>
  10403. <div
  10404. class="worksAnswer"
  10405. v-if="commentDetail.works && commentDetail.type == 0"
  10406. >
  10407. <img
  10408. :src="commentDetail.works"
  10409. alt=""
  10410. @click="previewImg(commentDetail.works)"
  10411. />
  10412. </div>
  10413. <div
  10414. class="worksAnswer"
  10415. v-if="commentDetail.works && commentDetail.type == 3"
  10416. >
  10417. <video-player
  10418. class="video-player vjs-custom-skin"
  10419. :playsinline="true"
  10420. :options="videoDetail"
  10421. @play="onPlayerPlay($event)"
  10422. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10423. ></video-player>
  10424. </div>
  10425. <div
  10426. class="worksAnswer codeFileBox"
  10427. v-if="commentDetail.works && commentDetail.type == 12"
  10428. @click="downloadFile(commentDetail.works)"
  10429. >
  10430. <img src="../../assets/icon/codeFile.png" />
  10431. <div>点击下载文件</div>
  10432. </div>
  10433. <div
  10434. class="worksAnswer codeFileBox"
  10435. v-if="commentDetail.works && commentDetail.type == 15"
  10436. @click="
  10437. openCocoPi(
  10438. 57,
  10439. commentIndexJson.toolIndex,
  10440. commentDetail.userid,
  10441. commentDetail.sName
  10442. )
  10443. "
  10444. >
  10445. <img src="../../assets/icon/codeFile.png" />
  10446. <div>点击打开CocoPi</div>
  10447. </div>
  10448. <div
  10449. class="worksAnswer"
  10450. v-if="commentDetail.works && commentDetail.type == 13"
  10451. >
  10452. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10453. </div>
  10454. <div class="scoreBox">
  10455. <span class="t">请输入分数</span>
  10456. <el-input-number
  10457. :disabled="courseDetail.userid != userid"
  10458. v-model="wScore"
  10459. :controls="false"
  10460. :min="0"
  10461. :max="100"
  10462. ></el-input-number>
  10463. </div>
  10464. <div class="scoreDetailBox">
  10465. <span class="t">评分评论</span>
  10466. <el-input
  10467. type="textarea"
  10468. :rows="5"
  10469. :disabled="courseDetail.userid != userid"
  10470. resize="none"
  10471. v-model="scoreDetail"
  10472. placeholder="请输入对学生的评价"
  10473. >
  10474. </el-input>
  10475. </div>
  10476. </div>
  10477. <span slot="footer" class="dialog-footer">
  10478. <el-button
  10479. @click="
  10480. (dialogVisibleScore = false),
  10481. (commentIndexJson = {}),
  10482. videoDetail.sources && videoDetail.sources[0]
  10483. ? (videoDetail.sources[0].src = '')
  10484. : ''
  10485. "
  10486. >取 消</el-button
  10487. >
  10488. <el-button
  10489. type="primary"
  10490. v-if="courseDetail.userid == userid"
  10491. @click="scoreWork(commentDetail.wid)"
  10492. >确 定
  10493. </el-button>
  10494. </span>
  10495. </el-dialog>
  10496. <el-dialog
  10497. title="排序"
  10498. :visible.sync="dialogVisibleSentence"
  10499. :append-to-body="true"
  10500. width="1000px"
  10501. :before-close="handleClose"
  10502. class="dialog_diy dialog_diy3"
  10503. >
  10504. <div>
  10505. <div class="sentenBox">
  10506. <div
  10507. v-for="(st, stIndex) in sentenceList"
  10508. :key="stIndex"
  10509. style="padding-bottom: 20px"
  10510. >
  10511. <div
  10512. style="padding: 15px 0 10px 20px"
  10513. class="sentenceTitle"
  10514. :index="stIndex + 1"
  10515. >
  10516. 题目{{ stIndex + 1 }}:请选择正确顺序
  10517. </div>
  10518. <div class="cardList" v-if="st.chooseSenList">
  10519. <div class="cardBox">
  10520. <div
  10521. v-for="(r, rIndex) in st.chooseSenList"
  10522. :key="rIndex"
  10523. @click="returnCard(r, stIndex, rIndex)"
  10524. >
  10525. <el-tooltip
  10526. class="item"
  10527. effect="light"
  10528. :content="r"
  10529. placement="top"
  10530. v-if="r != '' && r != undefined"
  10531. >
  10532. <div
  10533. :class="{
  10534. isCard: r,
  10535. isChooseCard: r == '' || r == undefined,
  10536. }"
  10537. >
  10538. <div>{{ r }}</div>
  10539. </div>
  10540. </el-tooltip>
  10541. <div
  10542. :class="{
  10543. isCard: r,
  10544. isChooseCard: r == '' || r == undefined,
  10545. }"
  10546. v-else
  10547. >
  10548. <div>{{ r }}</div>
  10549. </div>
  10550. </div>
  10551. </div>
  10552. </div>
  10553. <div class="cardList" v-if="st.addChangeSen">
  10554. <div class="cardBox">
  10555. <div
  10556. v-for="(s, sIndex) in st.addChangeSen"
  10557. :key="sIndex"
  10558. @click="setRightAnswer(s, stIndex, sIndex)"
  10559. >
  10560. <el-tooltip
  10561. class="item"
  10562. effect="light"
  10563. :content="s"
  10564. placement="top"
  10565. v-if="s != '' && s != undefined"
  10566. >
  10567. <div
  10568. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10569. >
  10570. <div>{{ s }}</div>
  10571. </div>
  10572. </el-tooltip>
  10573. <div
  10574. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10575. v-else
  10576. >
  10577. <div>{{ s }}</div>
  10578. </div>
  10579. </div>
  10580. </div>
  10581. </div>
  10582. </div>
  10583. </div>
  10584. </div>
  10585. <span slot="footer" class="dialog-footer">
  10586. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10587. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10588. </span>
  10589. </el-dialog>
  10590. <el-dialog
  10591. title="排序"
  10592. :visible.sync="dialogVisibleSentenceTeacher"
  10593. :append-to-body="true"
  10594. width="1000px"
  10595. :before-close="handleClose"
  10596. class="dialog_diy dialog_diy3"
  10597. >
  10598. <div>
  10599. <div class="w_name">
  10600. 学生姓名:<span>{{ sStudent.student }}</span>
  10601. </div>
  10602. <div class="sentenBox">
  10603. <div
  10604. v-for="(st, stIndex) in sentenceList"
  10605. :key="stIndex"
  10606. style="padding-bottom: 20px"
  10607. >
  10608. <div
  10609. style="padding: 15px 0 10px 20px"
  10610. class="sentenceTitle"
  10611. :index="stIndex + 1"
  10612. >
  10613. 题目{{ stIndex + 1 }}:请选择正确顺序
  10614. </div>
  10615. <div class="cardList" v-if="st.chooseSenList">
  10616. <div class="cardBox">
  10617. <div
  10618. v-for="(r, rIndex) in st.chooseSenList"
  10619. :key="rIndex"
  10620. @click="returnCard(r, stIndex, rIndex)"
  10621. >
  10622. <el-tooltip
  10623. class="item"
  10624. effect="light"
  10625. :content="r"
  10626. placement="top"
  10627. v-if="r != '' && r != undefined"
  10628. >
  10629. <div
  10630. :class="{
  10631. isCard: r,
  10632. isChooseCard: r == '' || r == undefined,
  10633. }"
  10634. >
  10635. <div>{{ r }}</div>
  10636. </div>
  10637. </el-tooltip>
  10638. <div
  10639. :class="{
  10640. isCard: r,
  10641. isChooseCard: r == '' || r == undefined,
  10642. }"
  10643. v-else
  10644. >
  10645. <div>{{ r }}</div>
  10646. </div>
  10647. </div>
  10648. </div>
  10649. </div>
  10650. <div class="cardList" v-if="st.addChangeSen">
  10651. <div class="cardBox">
  10652. <div
  10653. v-for="(s, sIndex) in st.addChangeSen"
  10654. :key="sIndex"
  10655. @click="setRightAnswer(s, stIndex, sIndex)"
  10656. >
  10657. <el-tooltip
  10658. class="item"
  10659. effect="light"
  10660. :content="s"
  10661. placement="top"
  10662. v-if="s != '' && s != undefined"
  10663. >
  10664. <div
  10665. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10666. >
  10667. <div>{{ s }}</div>
  10668. </div>
  10669. </el-tooltip>
  10670. <div
  10671. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10672. v-else
  10673. >
  10674. <div>{{ s }}</div>
  10675. </div>
  10676. </div>
  10677. </div>
  10678. </div>
  10679. </div>
  10680. </div>
  10681. </div>
  10682. <span slot="footer" class="dialog-footer">
  10683. <el-button @click="dialogVisibleSentenceTeacher = false"
  10684. >取 消</el-button
  10685. >
  10686. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10687. </span>
  10688. </el-dialog>
  10689. <el-dialog
  10690. title="排序"
  10691. :visible.sync="dialogVisibleSentence1"
  10692. :append-to-body="true"
  10693. width="1000px"
  10694. :before-close="handleClose"
  10695. class="dialog_diy dialog_diy3"
  10696. >
  10697. <div>
  10698. <div class="sentenBox">
  10699. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10700. {{ sentenceList1.stuName }}的作业
  10701. </div>
  10702. <div
  10703. v-for="(st, stIndex) in sentenceList1"
  10704. :key="stIndex"
  10705. style="padding-bottom: 20px"
  10706. >
  10707. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10708. 第{{ stIndex + 1 }}题
  10709. </div>
  10710. <div class="isWrong">
  10711. <div class="cardList1" v-if="st.chooseSenList">
  10712. <div class="cardBox">
  10713. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10714. <el-tooltip
  10715. class="item"
  10716. effect="light"
  10717. :content="s"
  10718. placement="top"
  10719. >
  10720. <div class="isCard">
  10721. <div>{{ s }}</div>
  10722. </div>
  10723. </el-tooltip>
  10724. </div>
  10725. </div>
  10726. <div class="cardAnswerBox">
  10727. 组成句子:{{ st.chooseSenList.join(" ") }}
  10728. </div>
  10729. </div>
  10730. <div v-if="tType == 2" class="isTj">
  10731. <div class="isTjImg">
  10732. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10733. </div>
  10734. <div>已提交</div>
  10735. </div>
  10736. <div
  10737. class="answerRight isTj"
  10738. v-if="
  10739. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10740. (tType == 1 || tType == 4)
  10741. "
  10742. >
  10743. <div class="isTjImg">
  10744. <img src="../../assets/icon/conSentences/right.png" alt="" />
  10745. </div>
  10746. <div>回答正确</div>
  10747. </div>
  10748. <div
  10749. class="answerRight isTj"
  10750. v-if="
  10751. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10752. (tType == 1 || tType == 4)
  10753. "
  10754. >
  10755. <div class="isTjImg">
  10756. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  10757. </div>
  10758. <div>回答错误</div>
  10759. </div>
  10760. </div>
  10761. <div
  10762. v-if="
  10763. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10764. (tType == 1 || tType == 4)
  10765. "
  10766. >
  10767. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10768. <div
  10769. class="cardList"
  10770. v-if="st.rightAnswer"
  10771. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10772. >
  10773. <div class="cardBox">
  10774. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10775. <el-tooltip
  10776. class="item"
  10777. effect="light"
  10778. :content="r"
  10779. placement="top"
  10780. >
  10781. <div class="isCard1">
  10782. <div>{{ r }}</div>
  10783. </div>
  10784. </el-tooltip>
  10785. </div>
  10786. </div>
  10787. <div class="cardAnswerBox">
  10788. 组成句子:{{ st.rightAnswer.join(" ") }}
  10789. </div>
  10790. </div>
  10791. </div>
  10792. </div>
  10793. </div>
  10794. </div>
  10795. <span slot="footer" class="dialog-footer">
  10796. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10797. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10798. >确 定</el-button
  10799. >
  10800. </span>
  10801. </el-dialog>
  10802. <el-dialog
  10803. title="教师提交作业"
  10804. :visible.sync="dialogVisibleWorks"
  10805. :append-to-body="true"
  10806. width="500px"
  10807. :before-close="handleClose"
  10808. class="dialog_change"
  10809. >
  10810. <div class="marginT">
  10811. <div class="w_name">
  10812. 学生姓名:<span>{{ sStudent.student }}</span>
  10813. </div>
  10814. <div>上传文件</div>
  10815. <div
  10816. class="chapter_add"
  10817. @click="addImg($event)"
  10818. v-if="studyJuri[0].cover.length == 0"
  10819. >
  10820. <div class="up_photo">
  10821. <img src="../../assets/uploadImg2.png" alt />
  10822. </div>
  10823. <!-- <input
  10824. type="file"
  10825. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10826. style="display: none"
  10827. @change="beforeUpload1($event, 1)"
  10828. /> -->
  10829. <input
  10830. type="file"
  10831. accept="*"
  10832. style="display: none"
  10833. @change="beforeUpload1($event, 1)"
  10834. />
  10835. </div>
  10836. <!-- capture="camera" -->
  10837. <div
  10838. class="chapter_add"
  10839. style="
  10840. display: flex;
  10841. width: 100%;
  10842. flex-direction: row;
  10843. flex-wrap: wrap;
  10844. justify-content: flex-start;
  10845. padding: 15px 0;
  10846. "
  10847. v-if="studyJuri[0].cover.length > 0"
  10848. >
  10849. <div class="upCover">
  10850. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10851. <img :src="word" alt v-else-if="fileType == 1" />
  10852. <img :src="video" alt v-else-if="fileType == 2" />
  10853. <img :src="word2" alt v-else-if="fileType == 3" />
  10854. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10855. <div class="deleteWord" @click="clean(1)">
  10856. <img src="../../assets/icon/deleteWorks.png" alt />
  10857. </div>
  10858. </div>
  10859. </div>
  10860. </div>
  10861. <div
  10862. class="upload_send"
  10863. @click="addCourseWorksTeacher(taskCount)"
  10864. v-if="!proVisible"
  10865. >
  10866. 提交
  10867. </div>
  10868. </el-dialog>
  10869. <ImgDraw
  10870. :drawShow="drawShow"
  10871. @closeDraw="closeDraw"
  10872. @addImgDraw="addImgDraw"
  10873. :bg="bg"
  10874. ></ImgDraw>
  10875. <el-dialog
  10876. title="表格"
  10877. :visible.sync="dialogVisibleTable"
  10878. :append-to-body="true"
  10879. width="95%"
  10880. :before-close="handleClose"
  10881. class="dialog_diy"
  10882. >
  10883. <el-form>
  10884. <div
  10885. style="
  10886. display: flex;
  10887. align-items: center;
  10888. justify-content: space-between;
  10889. "
  10890. >
  10891. <span>表格内容</span>
  10892. <el-button type="primary" size="small" @click="returnTableText"
  10893. >还原模板</el-button
  10894. >
  10895. </div>
  10896. <Table
  10897. v-model="tableJson.text"
  10898. @change="change"
  10899. v-if="dialogVisibleTable"
  10900. ></Table>
  10901. </el-form>
  10902. <span slot="footer" class="dialog-footer">
  10903. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10904. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10905. </span>
  10906. </el-dialog>
  10907. <el-dialog
  10908. title="表格"
  10909. :visible.sync="dialogVisibleTableTeacher"
  10910. :append-to-body="true"
  10911. width="95%"
  10912. :before-close="handleClose"
  10913. class="dialog_diy"
  10914. >
  10915. <el-form>
  10916. <div class="w_name">
  10917. 学生姓名:<span>{{ sStudent.student }}</span>
  10918. </div>
  10919. <div>表格内容</div>
  10920. <Table
  10921. v-model="tableJson.text"
  10922. @change="change"
  10923. v-if="dialogVisibleTableTeacher"
  10924. ></Table>
  10925. </el-form>
  10926. <span slot="footer" class="dialog-footer">
  10927. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10928. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10929. </span>
  10930. </el-dialog>
  10931. <el-dialog
  10932. title="文档"
  10933. :visible.sync="dialogVisibleWord"
  10934. :append-to-body="true"
  10935. width="95%"
  10936. :before-close="handleClose"
  10937. class="dialog_diy"
  10938. >
  10939. <el-form>
  10940. <div
  10941. style="
  10942. display: flex;
  10943. align-items: center;
  10944. justify-content: space-between;
  10945. "
  10946. >
  10947. <span>文档内容</span>
  10948. <el-button type="primary" size="small" @click="returnWordText"
  10949. >还原模板</el-button
  10950. >
  10951. </div>
  10952. <editor-bar
  10953. v-model="wordJson.text"
  10954. v-if="dialogVisibleWord"
  10955. ></editor-bar>
  10956. </el-form>
  10957. <span slot="footer" class="dialog-footer">
  10958. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10959. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10960. </span>
  10961. </el-dialog>
  10962. <el-dialog
  10963. title="文档"
  10964. :visible.sync="dialogVisibleWordTeacher"
  10965. :append-to-body="true"
  10966. width="95%"
  10967. :before-close="handleClose"
  10968. class="dialog_diy"
  10969. >
  10970. <el-form>
  10971. <div class="w_name">
  10972. 学生姓名:<span>{{ sStudent.student }}</span>
  10973. </div>
  10974. <div>文档内容</div>
  10975. <editor-bar
  10976. v-model="wordJson.text"
  10977. v-if="dialogVisibleWordTeacher"
  10978. ></editor-bar>
  10979. </el-form>
  10980. <span slot="footer" class="dialog-footer">
  10981. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10982. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10983. </span>
  10984. </el-dialog>
  10985. <el-dialog
  10986. title="表格"
  10987. :visible.sync="dialogVisibleTable2"
  10988. :append-to-body="true"
  10989. width="95%"
  10990. :before-close="handleClose"
  10991. class="dialog_diy"
  10992. >
  10993. <el-form>
  10994. <div class="cont" v-html="tableJson.text"></div>
  10995. </el-form>
  10996. <span slot="footer" class="dialog-footer">
  10997. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10998. </span>
  10999. </el-dialog>
  11000. <el-dialog
  11001. title="文档"
  11002. :visible.sync="dialogVisibleTable3"
  11003. :append-to-body="true"
  11004. width="95%"
  11005. :before-close="handleClose"
  11006. class="dialog_diy"
  11007. >
  11008. <el-form>
  11009. <div class="cont" v-html="tableJson.text"></div>
  11010. </el-form>
  11011. <span slot="footer" class="dialog-footer">
  11012. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  11013. </span>
  11014. </el-dialog>
  11015. <el-dialog
  11016. title="分组设置"
  11017. :visible.sync="dialogVisibleGroup"
  11018. :append-to-body="true"
  11019. width="95%"
  11020. :before-close="handleClose"
  11021. class="dialog_diy"
  11022. >
  11023. <div v-if="dialogVisibleGroup">
  11024. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  11025. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  11026. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  11027. </div>
  11028. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  11029. @click="lockChair">
  11030. 锁定位置
  11031. </div>
  11032. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  11033. 解锁位置
  11034. </div> -->
  11035. <div class="group_switch">
  11036. <span>开放选座</span>
  11037. <el-switch
  11038. v-model="islock"
  11039. active-text=""
  11040. class="switchCss"
  11041. @change="lockChair"
  11042. ></el-switch>
  11043. </div>
  11044. <div
  11045. type="primary"
  11046. @click="updateGroup"
  11047. class="returnBtn"
  11048. style="background-color: #225bc7"
  11049. >
  11050. 分组设置
  11051. </div>
  11052. </div>
  11053. <div>
  11054. <div
  11055. class="g_d_box"
  11056. v-if="groupJson.group && groupStudent[toolindex]"
  11057. >
  11058. <div
  11059. class="g_d_group"
  11060. v-for="(g, gindex) in groupJson.group"
  11061. :key="gindex"
  11062. >
  11063. <div class="g_d_group_chair">
  11064. <div v-if="groupJson.number > 1">
  11065. <span
  11066. :class="{
  11067. isChair:
  11068. groupStudent[toolindex][gindex] &&
  11069. groupStudent[toolindex][gindex][0],
  11070. updateChair:
  11071. courseDetail.userid == userid &&
  11072. groupStudent[toolindex][gindex] &&
  11073. groupStudent[toolindex][gindex][0] &&
  11074. groupJson.islock == 2,
  11075. }"
  11076. ><span
  11077. class="updateChairBtn"
  11078. @click="
  11079. updateGroupChair(
  11080. groupStudent[toolindex][gindex] &&
  11081. groupStudent[toolindex][gindex][0]
  11082. )
  11083. "
  11084. >修改</span
  11085. ></span
  11086. ><span>{{
  11087. groupStudent[toolindex][gindex] &&
  11088. groupStudent[toolindex][gindex][0]
  11089. ? groupStudent[toolindex][gindex] &&
  11090. groupStudent[toolindex][gindex][0].name
  11091. : "空位置"
  11092. }}</span>
  11093. </div>
  11094. <div v-if="groupJson.number > 4">
  11095. <span
  11096. :class="{
  11097. isChair:
  11098. groupStudent[toolindex][gindex] &&
  11099. groupStudent[toolindex][gindex][4],
  11100. updateChair:
  11101. courseDetail.userid == userid &&
  11102. groupStudent[toolindex][gindex] &&
  11103. groupStudent[toolindex][gindex][4] &&
  11104. groupJson.islock == 2,
  11105. }"
  11106. ><span
  11107. class="updateChairBtn"
  11108. @click="
  11109. updateGroupChair(
  11110. groupStudent[toolindex][gindex] &&
  11111. groupStudent[toolindex][gindex][4]
  11112. )
  11113. "
  11114. >修改</span
  11115. ></span
  11116. ><span>{{
  11117. groupStudent[toolindex][gindex] &&
  11118. groupStudent[toolindex][gindex][4]
  11119. ? groupStudent[toolindex][gindex] &&
  11120. groupStudent[toolindex][gindex][4].name
  11121. : "空位置"
  11122. }}</span>
  11123. </div>
  11124. <div v-if="groupJson.number > 8">
  11125. <span
  11126. :class="{
  11127. isChair:
  11128. groupStudent[toolindex][gindex] &&
  11129. groupStudent[toolindex][gindex][8],
  11130. updateChair:
  11131. courseDetail.userid == userid &&
  11132. groupStudent[toolindex][gindex] &&
  11133. groupStudent[toolindex][gindex][8] &&
  11134. groupJson.islock == 2,
  11135. }"
  11136. ><span
  11137. class="updateChairBtn"
  11138. @click="
  11139. updateGroupChair(
  11140. groupStudent[toolindex][gindex] &&
  11141. groupStudent[toolindex][gindex][8]
  11142. )
  11143. "
  11144. >修改</span
  11145. ></span
  11146. ><span>{{
  11147. groupStudent[toolindex][gindex] &&
  11148. groupStudent[toolindex][gindex][8]
  11149. ? groupStudent[toolindex][gindex] &&
  11150. groupStudent[toolindex][gindex][8].name
  11151. : "空位置"
  11152. }}</span>
  11153. </div>
  11154. </div>
  11155. <div class="g_d_group_tableBox">
  11156. <div class="g_d_group_chair2">
  11157. <div v-if="groupJson.number > 2">
  11158. <span
  11159. :class="{
  11160. isChair:
  11161. groupStudent[toolindex][gindex] &&
  11162. groupStudent[toolindex][gindex][2],
  11163. updateChair:
  11164. courseDetail.userid == userid &&
  11165. groupStudent[toolindex][gindex] &&
  11166. groupStudent[toolindex][gindex][2] &&
  11167. groupJson.islock == 2,
  11168. }"
  11169. ><span
  11170. class="updateChairBtn"
  11171. @click="
  11172. updateGroupChair(
  11173. groupStudent[toolindex][gindex] &&
  11174. groupStudent[toolindex][gindex][2]
  11175. )
  11176. "
  11177. >修改</span
  11178. ></span
  11179. ><span>{{
  11180. groupStudent[toolindex][gindex] &&
  11181. groupStudent[toolindex][gindex][2]
  11182. ? groupStudent[toolindex][gindex] &&
  11183. groupStudent[toolindex][gindex][2].name
  11184. : "空位置"
  11185. }}</span>
  11186. </div>
  11187. <div v-if="groupJson.number > 6">
  11188. <span
  11189. :class="{
  11190. isChair:
  11191. groupStudent[toolindex][gindex] &&
  11192. groupStudent[toolindex][gindex][6],
  11193. updateChair:
  11194. courseDetail.userid == userid &&
  11195. groupStudent[toolindex][gindex] &&
  11196. groupStudent[toolindex][gindex][6] &&
  11197. groupJson.islock == 2,
  11198. }"
  11199. ><span
  11200. class="updateChairBtn"
  11201. @click="
  11202. updateGroupChair(
  11203. groupStudent[toolindex][gindex] &&
  11204. groupStudent[toolindex][gindex][6]
  11205. )
  11206. "
  11207. >修改</span
  11208. ></span
  11209. ><span>{{
  11210. groupStudent[toolindex][gindex] &&
  11211. groupStudent[toolindex][gindex][6]
  11212. ? groupStudent[toolindex][gindex] &&
  11213. groupStudent[toolindex][gindex][6].name
  11214. : "空位置"
  11215. }}</span>
  11216. </div>
  11217. </div>
  11218. <div class="g_d_group_table">
  11219. <div>
  11220. {{ g.name }}
  11221. </div>
  11222. <div>
  11223. <div
  11224. v-if="
  11225. courseDetail.userid == userid && groupJson.islock == 2
  11226. "
  11227. @click="deleteGroupChair(gindex)"
  11228. >
  11229. 移除组员
  11230. </div>
  11231. <div
  11232. @click="selectGroup(gindex)"
  11233. v-else-if="
  11234. groupStudentUid[toolindex] &&
  11235. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  11236. "
  11237. >
  11238. 加入分组
  11239. </div>
  11240. <div
  11241. @click="
  11242. exitGroup(
  11243. groupStudent[toolindex][gindex] &&
  11244. groupStudent[toolindex][gindex][
  11245. groupStudentUid[toolindex][gindex].indexOf(userid)
  11246. ].id
  11247. )
  11248. "
  11249. v-else-if="
  11250. groupStudentUid[toolindex] &&
  11251. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  11252. "
  11253. >
  11254. 退出分组
  11255. </div>
  11256. </div>
  11257. </div>
  11258. <div class="g_d_group_chair2">
  11259. <div v-if="groupJson.number > 3">
  11260. <span
  11261. :class="{
  11262. isChair:
  11263. groupStudent[toolindex][gindex] &&
  11264. groupStudent[toolindex][gindex][3],
  11265. updateChair:
  11266. courseDetail.userid == userid &&
  11267. groupStudent[toolindex][gindex] &&
  11268. groupStudent[toolindex][gindex][3] &&
  11269. groupJson.islock == 2,
  11270. }"
  11271. ><span
  11272. class="updateChairBtn"
  11273. @click="
  11274. updateGroupChair(
  11275. groupStudent[toolindex][gindex] &&
  11276. groupStudent[toolindex][gindex][3]
  11277. )
  11278. "
  11279. >修改</span
  11280. ></span
  11281. ><span>{{
  11282. groupStudent[toolindex][gindex] &&
  11283. groupStudent[toolindex][gindex][3]
  11284. ? groupStudent[toolindex][gindex] &&
  11285. groupStudent[toolindex][gindex][3].name
  11286. : "空位置"
  11287. }}</span>
  11288. </div>
  11289. <div v-if="groupJson.number > 7">
  11290. <span
  11291. :class="{
  11292. isChair:
  11293. groupStudent[toolindex][gindex] &&
  11294. groupStudent[toolindex][gindex][7],
  11295. updateChair:
  11296. courseDetail.userid == userid &&
  11297. groupStudent[toolindex][gindex] &&
  11298. groupStudent[toolindex][gindex][7] &&
  11299. groupJson.islock == 2,
  11300. }"
  11301. ><span
  11302. class="updateChairBtn"
  11303. @click="
  11304. updateGroupChair(
  11305. groupStudent[toolindex][gindex] &&
  11306. groupStudent[toolindex][gindex][7]
  11307. )
  11308. "
  11309. >修改</span
  11310. ></span
  11311. ><span>{{
  11312. groupStudent[toolindex][gindex] &&
  11313. groupStudent[toolindex][gindex][7]
  11314. ? groupStudent[toolindex][gindex] &&
  11315. groupStudent[toolindex][gindex][7].name
  11316. : "空位置"
  11317. }}</span>
  11318. </div>
  11319. </div>
  11320. </div>
  11321. <div class="g_d_group_chair">
  11322. <div v-if="groupJson.number > 1">
  11323. <span
  11324. :class="{
  11325. isChair:
  11326. groupStudent[toolindex][gindex] &&
  11327. groupStudent[toolindex][gindex][1],
  11328. updateChair:
  11329. courseDetail.userid == userid &&
  11330. groupStudent[toolindex][gindex] &&
  11331. groupStudent[toolindex][gindex][1] &&
  11332. groupJson.islock == 2,
  11333. }"
  11334. ><span
  11335. class="updateChairBtn"
  11336. @click="
  11337. updateGroupChair(
  11338. groupStudent[toolindex][gindex] &&
  11339. groupStudent[toolindex][gindex][1]
  11340. )
  11341. "
  11342. >修改</span
  11343. ></span
  11344. ><span>{{
  11345. groupStudent[toolindex][gindex] &&
  11346. groupStudent[toolindex][gindex][1]
  11347. ? groupStudent[toolindex][gindex] &&
  11348. groupStudent[toolindex][gindex][1].name
  11349. : "空位置"
  11350. }}</span>
  11351. </div>
  11352. <div v-if="groupJson.number > 5">
  11353. <span
  11354. :class="{
  11355. isChair:
  11356. groupStudent[toolindex][gindex] &&
  11357. groupStudent[toolindex][gindex][5],
  11358. updateChair:
  11359. courseDetail.userid == userid &&
  11360. groupStudent[toolindex][gindex] &&
  11361. groupStudent[toolindex][gindex][5] &&
  11362. groupJson.islock == 2,
  11363. }"
  11364. ><span
  11365. class="updateChairBtn"
  11366. @click="
  11367. updateGroupChair(
  11368. groupStudent[toolindex][gindex] &&
  11369. groupStudent[toolindex][gindex][5]
  11370. )
  11371. "
  11372. >修改</span
  11373. ></span
  11374. ><span>{{
  11375. groupStudent[toolindex][gindex] &&
  11376. groupStudent[toolindex][gindex][5]
  11377. ? groupStudent[toolindex][gindex] &&
  11378. groupStudent[toolindex][gindex][5].name
  11379. : "空位置"
  11380. }}</span>
  11381. </div>
  11382. <div v-if="groupJson.number > 9">
  11383. <span
  11384. :class="{
  11385. isChair:
  11386. groupStudent[toolindex][gindex] &&
  11387. groupStudent[toolindex][gindex][9],
  11388. updateChair:
  11389. courseDetail.userid == userid &&
  11390. groupStudent[toolindex][gindex] &&
  11391. groupStudent[toolindex][gindex][9] &&
  11392. groupJson.islock == 2,
  11393. }"
  11394. ><span
  11395. class="updateChairBtn"
  11396. @click="
  11397. updateGroupChair(
  11398. groupStudent[toolindex][gindex] &&
  11399. groupStudent[toolindex][gindex][9]
  11400. )
  11401. "
  11402. >修改</span
  11403. ></span
  11404. ><span>{{
  11405. groupStudent[toolindex][gindex] &&
  11406. groupStudent[toolindex][gindex][9]
  11407. ? groupStudent[toolindex][gindex] &&
  11408. groupStudent[toolindex][gindex][9].name
  11409. : "空位置"
  11410. }}</span>
  11411. </div>
  11412. </div>
  11413. </div>
  11414. </div>
  11415. </div>
  11416. </div>
  11417. <span slot="footer" class="dialog-footer">
  11418. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  11419. </span>
  11420. </el-dialog>
  11421. <el-dialog
  11422. title="分组设置"
  11423. :visible.sync="dialogVisibleGroup2"
  11424. :append-to-body="true"
  11425. width="650px"
  11426. :before-close="handleClose"
  11427. class="dialog_diy"
  11428. >
  11429. <div class="groupBox">
  11430. <div v-if="groupJson2.group" class="groupContent">
  11431. <div class="groupTitle">请设置小组数量及名称</div>
  11432. <div
  11433. v-for="(item, index) in groupJson2.group"
  11434. :key="index"
  11435. class="groupName"
  11436. >
  11437. <span class="groupn">第{{ index + 1 }}组名称:</span>
  11438. <el-input
  11439. v-model="item.name"
  11440. placeholder="请输入名称..."
  11441. style="width: 250px"
  11442. ></el-input>
  11443. <!-- <div class="groupBtn">
  11444. <el-button type="primary" size="small" @click="addGroup(index)">
  11445. 添加</el-button>
  11446. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11447. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11448. </div> -->
  11449. </div>
  11450. </div>
  11451. <div class="groupContent">
  11452. <div class="groupTitle">请设置每组人数</div>
  11453. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11454. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11455. <el-input
  11456. v-model="groupJson.number"
  11457. style="width: 150px"
  11458. placeholder="请输入2-10的数字"
  11459. @change="numberPan"
  11460. ></el-input>
  11461. </div>
  11462. </div>
  11463. <span slot="footer" class="dialog-footer">
  11464. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11465. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11466. </span>
  11467. </el-dialog>
  11468. <el-dialog
  11469. title="作业提交"
  11470. :visible.sync="dialogVisibleGroupWork"
  11471. :append-to-body="true"
  11472. width="500px"
  11473. :before-close="handleClose"
  11474. class="dialog_change"
  11475. >
  11476. <div class="marginT">
  11477. <div>上传文件</div>
  11478. <div
  11479. class="chapter_add"
  11480. @click="addImg($event)"
  11481. v-if="studyJuri[0].cover.length == 0"
  11482. >
  11483. <div class="up_photo">
  11484. <img src="../../assets/icon/uploadImg.png" alt />
  11485. </div>
  11486. <!-- <input
  11487. type="file"
  11488. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11489. style="display: none"
  11490. @change="beforeUpload1($event, 1)"
  11491. /> -->
  11492. <input
  11493. type="file"
  11494. accept="*"
  11495. style="display: none"
  11496. @change="beforeUpload1($event, 1)"
  11497. />
  11498. </div>
  11499. <!-- capture="camera" -->
  11500. <div
  11501. class="chapter_add"
  11502. style="
  11503. display: flex;
  11504. width: 100%;
  11505. flex-direction: row;
  11506. flex-wrap: wrap;
  11507. justify-content: flex-start;
  11508. padding: 15px 0;
  11509. "
  11510. v-if="studyJuri[0].cover.length > 0"
  11511. >
  11512. <div class="upCover">
  11513. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11514. <img :src="word" alt v-else-if="fileType == 1" />
  11515. <img :src="video" alt v-else-if="fileType == 2" />
  11516. <img :src="word2" alt v-else-if="fileType == 3" />
  11517. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11518. <div class="deleteWord" @click="clean(1)">
  11519. <img src="../../assets/icon/deleteWorks.png" alt />
  11520. </div>
  11521. </div>
  11522. </div>
  11523. </div>
  11524. <div
  11525. class="upload_send"
  11526. @click="addCourseWorks2(taskCount)"
  11527. v-if="!proVisible"
  11528. >
  11529. 提交
  11530. </div>
  11531. </el-dialog>
  11532. <el-dialog
  11533. title="修改分组"
  11534. :visible.sync="dialogVisibleUpdateGroup"
  11535. :append-to-body="true"
  11536. width="350px"
  11537. :before-close="handleClose"
  11538. class="dialog_diy"
  11539. >
  11540. <div>
  11541. <h2>
  11542. {{ this.updateGroupUser.name }}
  11543. </h2>
  11544. <div style="color: rgb(171 171 171); margin-top: 10px">
  11545. 请选择要进入的分组
  11546. </div>
  11547. <el-radio-group v-model="checkChair">
  11548. <el-radio
  11549. style="display: block; margin-top: 20px"
  11550. v-for="(item, index) in updateGroupArray"
  11551. :label="item.label"
  11552. :key="index"
  11553. >{{ item.name }}</el-radio
  11554. >
  11555. </el-radio-group>
  11556. </div>
  11557. <span slot="footer" class="dialog-footer">
  11558. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11559. <el-button type="primary" @click="updateChair">确定</el-button>
  11560. </span>
  11561. </el-dialog>
  11562. <el-dialog
  11563. title="移除组员"
  11564. :visible.sync="dialogVisibleDeleteGroup"
  11565. :append-to-body="true"
  11566. width="350px"
  11567. :before-close="handleClose"
  11568. class="dialog_diy"
  11569. >
  11570. <div>
  11571. <h2>
  11572. {{ this.deleteGroupArray.name }}
  11573. </h2>
  11574. <div style="color: rgb(171 171 171); margin-top: 10px">
  11575. 请选择要删除的组员
  11576. </div>
  11577. <el-checkbox-group v-model="checkDeleteGroup">
  11578. <el-checkbox
  11579. style="display: flex; margin-top: 20px"
  11580. v-for="(item, index) in deleteGroupUser"
  11581. :label="item.userid"
  11582. :key="index"
  11583. >{{ item.name }}</el-checkbox
  11584. >
  11585. </el-checkbox-group>
  11586. </div>
  11587. <span slot="footer" class="dialog-footer">
  11588. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11589. <el-button type="primary" @click="deleteChair">确定</el-button>
  11590. </span>
  11591. </el-dialog>
  11592. <el-dialog
  11593. title="批量上传"
  11594. :visible.sync="dialogVisiblePl"
  11595. :append-to-body="true"
  11596. width="700px"
  11597. :before-close="handleClose"
  11598. class="dialog_change"
  11599. >
  11600. <div class="marginT">
  11601. <div class="plworkBox">
  11602. <div
  11603. class="chapter_add"
  11604. style="
  11605. display: flex;
  11606. width: 150px;
  11607. flex-direction: row;
  11608. flex-wrap: wrap;
  11609. justify-content: flex-start;
  11610. margin: 0 10px 10px 0;
  11611. "
  11612. v-for="(item, index) in plworkFile"
  11613. :key="index"
  11614. >
  11615. <div class="upCover2">
  11616. <img
  11617. :src="item.url"
  11618. alt
  11619. v-if="item.fileType == 1"
  11620. @click="previewImg(item.url)"
  11621. />
  11622. <img :src="word" alt v-else-if="item.fileType == 4" />
  11623. <img :src="video" alt v-else />
  11624. <!-- <span class="picName">{{ item.name }}</span> -->
  11625. <!-- <el-input
  11626. v-model="item.username"
  11627. placeholder="请输入学生名字"
  11628. style="margin-top: 10px"
  11629. ></el-input> -->
  11630. <div
  11631. class="pl_select_box"
  11632. @click="
  11633. getUpdateMore(true, checkUpload(), item.username, index)
  11634. "
  11635. >
  11636. {{ getSName(item.username) }}
  11637. </div>
  11638. <!-- <el-select
  11639. style="margin-top: 10px"
  11640. v-model="item.username"
  11641. filterable
  11642. allow-create
  11643. placeholder="请选择学生"
  11644. >
  11645. <el-option
  11646. v-for="item1 in checkUpload()"
  11647. :key="item1.userid"
  11648. :label="item1.name ? item1.name : item1.username"
  11649. :value="item1.userid"
  11650. >
  11651. </el-option>
  11652. </el-select> -->
  11653. <div class="deleteWord" @click="clean2(index)">
  11654. <img src="../../assets/icon/deleteWorks.png" alt />
  11655. </div>
  11656. </div>
  11657. </div>
  11658. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11659. <div class="up_photo2">
  11660. <img src="../../assets/icon/plwork.png" alt />
  11661. <span>点击上传文件</span>
  11662. </div>
  11663. <input
  11664. type="file"
  11665. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11666. multiple="multiple"
  11667. style="display: none"
  11668. @change="beforeUpload3($event, 6)"
  11669. />
  11670. </div>
  11671. </div>
  11672. </div>
  11673. <!-- capture="camera" -->
  11674. <div
  11675. class="upload_send"
  11676. @click="addCourseWorksPl(taskCount)"
  11677. v-if="!proVisible2"
  11678. >
  11679. 提交
  11680. </div>
  11681. </el-dialog>
  11682. <el-dialog
  11683. title="修改名称"
  11684. :visible.sync="dialogVisibleSname"
  11685. width="500px"
  11686. :before-close="handleClose"
  11687. class="dialog_diy"
  11688. center
  11689. >
  11690. <div
  11691. style="
  11692. text-align: center;
  11693. display: flex;
  11694. align-items: center;
  11695. justify-content: center;
  11696. "
  11697. >
  11698. <span class="tian1">名称</span>
  11699. <div
  11700. class="pl_select_box"
  11701. style="margin-left: 10px; width: 200px"
  11702. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11703. >
  11704. {{ getSName(worksSName) }}
  11705. </div>
  11706. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11707. placeholder="请选择学生">
  11708. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11709. :value="item.userid">
  11710. </el-option>
  11711. </el-select> -->
  11712. <!-- <el-input
  11713. v-model="worksSName"
  11714. style="width: 250px; margin: 15px 0px"
  11715. ></el-input> -->
  11716. </div>
  11717. <span slot="footer" class="dialog-footer">
  11718. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11719. <el-button type="primary" @click="updateName">确 定</el-button>
  11720. </span>
  11721. </el-dialog>
  11722. <el-dialog
  11723. title="英语写作"
  11724. :visible.sync="engDialogVisible"
  11725. :append-to-body="true"
  11726. width="800px"
  11727. :before-close="handleClose"
  11728. class="dialog_diy"
  11729. >
  11730. <onlineWrite
  11731. v-if="engDialogVisible"
  11732. :englishList="englishList"
  11733. :myAnswerList1="myAnswerList1"
  11734. ref="engJson"
  11735. ></onlineWrite>
  11736. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11737. <el-button @click="engDialogVisible = false">取 消</el-button>
  11738. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11739. </span>
  11740. </el-dialog>
  11741. <el-dialog
  11742. title="英语写作"
  11743. :visible.sync="engUpdateDialogVisible"
  11744. :append-to-body="true"
  11745. width="800px"
  11746. :before-close="handleClose"
  11747. class="dialog_diy fullStyle"
  11748. >
  11749. <div class="engUpBox">
  11750. <div class="engUpTop">
  11751. <div class="engTitle">
  11752. <div>作文题目:</div>
  11753. <div>{{ englishList1.engTitle }}</div>
  11754. </div>
  11755. <div class="engText">
  11756. <div>作文内容:</div>
  11757. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11758. </div>
  11759. </div>
  11760. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11761. <div class="oldBox">
  11762. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11763. <div class="oldText">
  11764. <div class="detailBox">
  11765. <div class="oldDetail">
  11766. <div>标题:</div>
  11767. <div>{{ oldEnglishJson.engTitle }} </div>
  11768. </div>
  11769. <div class="oldDetail1">
  11770. <div>正文:</div>
  11771. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11772. </div>
  11773. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11774. <div>图片:</div>
  11775. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11776. </div>
  11777. </div>
  11778. </div>
  11779. </div>
  11780. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11781. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11782. <div class="oldText">
  11783. <div class="detailBox" style="position: relative;">
  11784. <div class="oldDetail">
  11785. <div>标题:</div>
  11786. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11787. <div v-else v-html="newEnglishList.engTitle"></div>
  11788. </div>
  11789. <div class="oldDetail">
  11790. <div>正文:</div>
  11791. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11792. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11793. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  11794. </div>
  11795. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11796. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11797. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11798. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11799. </div>
  11800. </div>
  11801. </div>
  11802. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11803. <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">
  11804. <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>
  11805. <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>
  11806. </div>
  11807. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11808. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11809. <div class="detailBox" style="position: relative;">
  11810. <div class="oldDetail">
  11811. <div>标题:</div>
  11812. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11813. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11814. </div>
  11815. <div class="oldDetail">
  11816. <div>正文:</div>
  11817. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11818. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  11819. </div>
  11820. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11821. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11822. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11823. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11824. </div>
  11825. </div>
  11826. <div class="oldText" v-else-if="newEngIndex == -1">
  11827. <div class="detailBox" style="position: relative;">
  11828. <div class="oldDetail">
  11829. <div>标题:</div>
  11830. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11831. <div v-else v-html="newEnglishList.engTitle"></div>
  11832. </div>
  11833. <div class="oldDetail">
  11834. <div>正文:</div>
  11835. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11836. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  11837. </div>
  11838. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11839. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11840. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11841. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11842. </div>
  11843. </div>
  11844. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11845. <div class="detailBox" style="position: relative;">
  11846. <div class="oldDetail">
  11847. <div>标题:</div>
  11848. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11849. <div v-else>
  11850. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11851. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11852. </div>
  11853. </div>
  11854. <div class="oldDetail">
  11855. <div>正文:</div>
  11856. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11857. <div v-else>
  11858. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11859. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  11860. </div>
  11861. </div>
  11862. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11863. <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>
  11864. <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>
  11865. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11866. </div>
  11867. </div>
  11868. </div>
  11869. </div>
  11870. </div>
  11871. <span slot="footer" class="dialog-footer">
  11872. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11873. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11874. </span>
  11875. </el-dialog>
  11876. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11877. <interVideo
  11878. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11879. :videoJson="videoJson"
  11880. :userid="userid"
  11881. :id="id"
  11882. :courseType="courseType"
  11883. :taskCount="taskCount"
  11884. :toolindex="toolindex"
  11885. :videoType="videoType"
  11886. ></interVideo>
  11887. <UpdateMore
  11888. :dialogVisibleMember.sync="dialogVisibleMember"
  11889. :cList="uploadStudentJuri"
  11890. :userid="userid"
  11891. :searchTN="worksSName2"
  11892. @setPlname="setPlname"
  11893. ></UpdateMore>
  11894. <wordCloud
  11895. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11896. :data="wordCloudData"
  11897. ></wordCloud>
  11898. <el-dialog
  11899. title="挑人"
  11900. :visible.sync="dialogVisiblePickPeople"
  11901. width="650px"
  11902. :before-close="handleClose"
  11903. class="dialog_diy"
  11904. center
  11905. >
  11906. <div class="pick_box">
  11907. <div
  11908. class="noWorksName"
  11909. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11910. v-for="(item, index) in uploadStudentJuri"
  11911. :key="index"
  11912. @click="pickStudent(item)"
  11913. >
  11914. {{ item.name }}
  11915. </div>
  11916. </div>
  11917. </el-dialog>
  11918. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  11919. :englishVoiceJson='englishVoiceJson'
  11920. :userid="userid"
  11921. :id="id"
  11922. :courseType="courseType"
  11923. :taskCount="taskCount"
  11924. :toolindex="toolindex"
  11925. @selectSWorks="selectSWorks"
  11926. @selectStudent="selectStudent"
  11927. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  11928. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  11929. :userid="userid"
  11930. :dialogVisibleENScore.sync='dialogVisibleENScore'
  11931. :commentDetail="commentDetail"
  11932. :courseDetail="courseDetail"
  11933. :wScore="wScore"
  11934. :scoreDetail="scoreDetail"
  11935. @selectSWorks="selectSWorks"
  11936. @selectStudent="selectStudent"></checkEnglishVoice>
  11937. </div>
  11938. </template>
  11939. <script>
  11940. import "../../common/aws-sdk-2.235.1.min.js";
  11941. // import pdf from "../components/pdf3";
  11942. import pdf from "../components/vpdf";
  11943. import AskStatic from "../components/askStatic";
  11944. import AskStatic2 from "../components/askStatic2";
  11945. import AnswerData2 from "../components/answerData2";
  11946. import AnswerData from "../components/answerData";
  11947. import EditorBar from "../tools/wangEnduit.vue";
  11948. import Table from "../tools/table.vue";
  11949. import Time from "../tools/time.vue";
  11950. import Mind from "../tools/jsmind.vue";
  11951. import Sunburst from "../tools/sunburst";
  11952. import SeeBoard from "../tools/seeBoard";
  11953. import * as imageConversion from "image-conversion";
  11954. import Audio from "../components/audio.vue";
  11955. import ImgDraw from "../tools/imgDraw/imgDraw";
  11956. import { Empty } from "element-ui";
  11957. import RecordRTC from "recordrtc";
  11958. import interVideo from "../interVideo/index.vue";
  11959. import UpdateMore from "../updateMore/updateMore.vue";
  11960. import wordCloud from "../wordCloud/index.vue";
  11961. import axios from "axios";
  11962. import JSZip from "jszip";
  11963. import FileSaver from "file-saver";
  11964. import onlineWrite from "./commpont/onlineWrite";
  11965. import englishEva from "../components/englishEva";
  11966. import * as Diff from 'diff'
  11967. import EnglishVoice from '../EnglishVoice2/index.vue'
  11968. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  11969. import correctText from '../components/correctText.vue'
  11970. import scoreItem from '../scoreList/scoreItem.vue'
  11971. import scoreZong from '../scoreZong/index.vue'
  11972. import classRoomHelper from '../classRoomHelper/index.vue'
  11973. import markScore from "./commpont/markScore";
  11974. const getFile = (url) => {
  11975. return new Promise((resolve, reject) => {
  11976. var credentials = {
  11977. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11978. secretAccessKey: "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",
  11979. }; //秘钥形式的登录上传
  11980. window.AWS.config.update(credentials);
  11981. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11982. let url2 = url;
  11983. let _url2 = "";
  11984. if (
  11985. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11986. ) {
  11987. _url2 = url2.split(
  11988. "https://view.officeapps.live.com/op/view.aspx?src="
  11989. )[1];
  11990. } else {
  11991. _url2 = url2;
  11992. }
  11993. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11994. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11995. var params = {
  11996. Bucket: "ccrb",
  11997. Key: name
  11998. };
  11999. s3.getObject(params, function (err, data) {
  12000. if (err) {
  12001. console.log(err, err.stack)
  12002. resolve({ data: 1 });
  12003. }else {
  12004. resolve({ data: data.Body });
  12005. console.log(data);
  12006. } // sxuccessful response
  12007. });
  12008. // axios({
  12009. // method: "get",
  12010. // url,
  12011. // responseType: "blob",
  12012. // })
  12013. // .then((data) => {
  12014. // resolve({ data: data.data });
  12015. // })
  12016. // .catch((error) => {
  12017. // resolve({ data: 1 });
  12018. // // reject(error.toString());
  12019. // });
  12020. });
  12021. };
  12022. export default {
  12023. components: {
  12024. EditorBar,
  12025. Time,
  12026. pdf,
  12027. AskStatic,
  12028. AskStatic2,
  12029. Mind,
  12030. Sunburst,
  12031. SeeBoard,
  12032. AnswerData2,
  12033. AnswerData,
  12034. Audio,
  12035. ImgDraw,
  12036. Table,
  12037. interVideo,
  12038. UpdateMore,
  12039. wordCloud,
  12040. onlineWrite,
  12041. englishEva,
  12042. EnglishVoice,
  12043. checkEnglishVoice,
  12044. correctText,
  12045. scoreItem,
  12046. classRoomHelper,
  12047. scoreZong,
  12048. markScore
  12049. },
  12050. data() {
  12051. return {
  12052. bg: null,
  12053. drawShow: false,
  12054. dialogVisible: false,
  12055. dialogVisiblePl: false,
  12056. commentDialogVisible: false,
  12057. dialogVisibleMember: false,
  12058. dialogVisibleWordCloud: false,
  12059. videoVisible: false,
  12060. isStar: false,
  12061. studentEvalDialogVisible: false,
  12062. studentEvalDialogVisibleTeacher: false,
  12063. dialogVisibleSelect: false,
  12064. dialogVisibleSelectTeacher: false,
  12065. dialogVisibleScore: false,
  12066. dialogVisibleENScore: false,
  12067. dialogVisibleSentence: false,
  12068. dialogVisibleSentenceTeacher: false,
  12069. dialogVisibleSentence1: false,
  12070. dialogVisibleWorks: false,
  12071. dialogVisibleTable: false,
  12072. dialogVisibleTableTeacher: false,
  12073. dialogVisibleWord: false,
  12074. dialogVisibleWordTeacher: false,
  12075. dialogVisibleTable2: false,
  12076. dialogVisibleTable3: false,
  12077. dialogVisibleGroupWork: false,
  12078. dialogVisibleUpdateGroup: false,
  12079. dialogVisibleDeleteGroup: false,
  12080. dialogVisibleSname: false,
  12081. dialogVisibleVideo: false,
  12082. dialogVisiblePickPeople: false,
  12083. engDialogVisible: false,
  12084. engUpdateDialogVisible:false,
  12085. engEvaDialogVisible: false,
  12086. evaEngJson: {
  12087. teacherJson: {},
  12088. studentJson: {},
  12089. message: {},
  12090. },
  12091. isNoUserid:false,
  12092. engListLength:0,
  12093. engWid:"",
  12094. newEnglishList:{
  12095. engTitle:"",
  12096. engText:"",
  12097. },
  12098. newEnglishList1:[],
  12099. oldEnglishJson:{},
  12100. oldEnglishJson1:{},
  12101. englishList1:{},
  12102. englishList:{},
  12103. myAnswerList1:{},
  12104. topHeight:0,
  12105. newEngIndex:-1,
  12106. englishToolIndex:0,
  12107. userMes:{},
  12108. englishToolIndex:0,
  12109. worksSName: "",
  12110. classJuri: [],
  12111. uploadStudentJuri: [],
  12112. uploadCid: "",
  12113. snameWid: "",
  12114. sStudent: {},
  12115. sTool: "",
  12116. bzText: "",
  12117. commentDetail: [],
  12118. selectAnswer: [],
  12119. videoDetail: {},
  12120. selectJson: {},
  12121. englishList: {},
  12122. topHeight:0,
  12123. eScore: { eBzText: "", eStar: [] },
  12124. id: this.$route.query.courseId,
  12125. userid: this.$route.query.userid,
  12126. classId: this.$route.query.cid,
  12127. // courseTypeLine: this.$route.query.type,
  12128. oid: this.$route.query.oid,
  12129. org: this.$route.query.org,
  12130. tType: this.$route.query.tType,
  12131. courseType: this.$route.query.type,
  12132. screenType: this.$route.query.screenType,
  12133. tcid2: this.$route.query.tcid,
  12134. tcid: "",
  12135. pptImgUrl: "",
  12136. pptImgUrl1: "",
  12137. commentText: "",
  12138. full: false,
  12139. sIsOpen: false,
  12140. IsLookOpen: false,
  12141. IsFollow: false,
  12142. pzDialog: false,
  12143. contentDialog: false,
  12144. mlDialog: false,
  12145. type: 1,
  12146. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  12147. sentenceList1: [],
  12148. tableJson: [],
  12149. tableJsonO: [],
  12150. wordJson: [],
  12151. wordJsonO: [],
  12152. vedio: [],
  12153. text: [],
  12154. textList: [],
  12155. line: [],
  12156. lineList: [],
  12157. chapTools: [],
  12158. chapToolList: [],
  12159. file: [],
  12160. fileC: [],
  12161. vedioTime: [],
  12162. upToolImg: "",
  12163. preTime: 0,
  12164. rateList: {
  12165. ca: 0,
  12166. },
  12167. rateParams: [],
  12168. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  12169. studyJuri: [
  12170. {
  12171. content: "",
  12172. cover: [],
  12173. upVedio: [],
  12174. upFile: [],
  12175. },
  12176. ],
  12177. isClose: 0,
  12178. plworkFile: [],
  12179. mr: require("../../assets/vedioPic.png"),
  12180. word: require("../../assets/icon/isWord.png"),
  12181. word2: require("../../assets/icon/word2.png"),
  12182. video: require("../../assets/icon/isVideo.png"),
  12183. noLikes: require("../../assets/icon/comment/noLikes.png"),
  12184. likes: require("../../assets/icon/comment/likes.png"),
  12185. scoreImg: require("../../assets/score.png"),
  12186. courseDetail: {},
  12187. reply: "",
  12188. isSelect: false,
  12189. chapInfo: [],
  12190. chapInfoList: [],
  12191. taskCount: 0,
  12192. imgList: [],
  12193. noImgList: [],
  12194. pzList: [],
  12195. timeWorkList: [],
  12196. PlTextList: [
  12197. "Excellent!",
  12198. "nice!",
  12199. "很有创意!",
  12200. "还不错哦~",
  12201. "继续努力哦~",
  12202. ],
  12203. isClickNav: "",
  12204. navId: "",
  12205. playerOptions: {
  12206. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12207. autoplay: false, //如果true,浏览器准备好时开始回放。
  12208. muted: false, // 默认情况下将会消除任何音频。
  12209. loop: false, // 导致视频一结束就重新开始。
  12210. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12211. language: "zh-CN",
  12212. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12213. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12214. sources: [
  12215. {
  12216. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12217. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12218. },
  12219. ],
  12220. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12221. // poster: dataRes.imgUrl, //你的封面地址
  12222. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12223. controlBar: {
  12224. timeDivider: true, //当前时间和持续时间的分隔符
  12225. durationDisplay: true, //显示持续时间
  12226. remainingTimeDisplay: false, //是否显示剩余时间功能
  12227. fullscreenToggle: true, //全屏按钮
  12228. },
  12229. },
  12230. playerOptions1: {
  12231. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  12232. autoplay: false, //如果true,浏览器准备好时开始回放。
  12233. muted: false, // 默认情况下将会消除任何音频。
  12234. loop: false, // 导致视频一结束就重新开始。
  12235. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  12236. language: "zh-CN",
  12237. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  12238. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  12239. sources: [
  12240. {
  12241. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  12242. src: "", //url地址require("../../../assets/media/aaa.mp4")
  12243. },
  12244. ],
  12245. // poster: require("../../../assets/tu31.png"), //你的封面地址
  12246. // poster: dataRes.imgUrl, //你的封面地址
  12247. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  12248. controlBar: {
  12249. timeDivider: true, //当前时间和持续时间的分隔符
  12250. durationDisplay: true, //显示持续时间
  12251. remainingTimeDisplay: false, //是否显示剩余时间功能
  12252. fullscreenToggle: true, //全屏按钮
  12253. },
  12254. },
  12255. playerO: {},
  12256. noneBtnImg: false,
  12257. proVisible: false,
  12258. proVisible2: false,
  12259. progress: 0,
  12260. isFinishSize: 0,
  12261. isAllSize: 0,
  12262. questionAnswer: "",
  12263. answerQ: "", //问答标题
  12264. rateJson: [],
  12265. wbCount: 0,
  12266. wordCount: 0,
  12267. mindCount: 0,
  12268. askCount: 0,
  12269. noteCount: 0,
  12270. mindNetWorkCount: 0,
  12271. libraryCount: 0,
  12272. workCount: 0,
  12273. timeCount: 0,
  12274. answerCount: 0,
  12275. trainCount: 0,
  12276. evalCount: 0,
  12277. dialogImageUrl: "",
  12278. pictureDialog: false,
  12279. toolTypeList: [],
  12280. dialogVisible1: false,
  12281. dialogVisible2: false,
  12282. dialogVisible3: false,
  12283. dialogVisible6: false,
  12284. dialogVisible4: false,
  12285. isNoHomeWork: false,
  12286. dialogVisible5: false,
  12287. dialogVisible5Teacher: false,
  12288. dialogVisibleChoice: false,
  12289. dialogVisibleChoiceTeacher: false,
  12290. answerDialogVisible: false,
  12291. answerDialogVisibleTeacher: false,
  12292. juriVisible: false,
  12293. timeDialogVisible: false,
  12294. replyDialogVisible: false,
  12295. toolDialogVisible: false,
  12296. replyIndex: 0,
  12297. replyPid: "",
  12298. radio: [],
  12299. isAsk: false,
  12300. askJson: {
  12301. askCount: 1,
  12302. askTitle: "",
  12303. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12304. },
  12305. testJson: {},
  12306. videoType:0,
  12307. checkJson: [],
  12308. askList: [],
  12309. answerList: [],
  12310. navList: [],
  12311. addPzDialog: false,
  12312. pzConText: "",
  12313. worksStudent: [],
  12314. isCloseList: [],
  12315. workStudent: [],
  12316. groupStudent: [],
  12317. groupStudentUid: [],
  12318. noWorksS: [],
  12319. isWorksS: [],
  12320. noWorksStudent: [],
  12321. toolindex: 0,
  12322. toolDetailIndex: null,
  12323. groupIndex: 0,
  12324. workTypeB: false,
  12325. workTypeC: false,
  12326. isAnswer: false,
  12327. isHovered: false,
  12328. isHovered1: false,
  12329. isHovered2: false,
  12330. commentTagShow:0,
  12331. timer: null,
  12332. opertimer: null,
  12333. showType: 0,
  12334. fileType: 0,
  12335. showPDF: false,
  12336. noteName: "",
  12337. evaJuri: [],
  12338. evalua: "",
  12339. eTitle: "",
  12340. eName: "",
  12341. eJson: {},
  12342. fid: "", //一级
  12343. sid: "", //二级
  12344. tid: "", //二级
  12345. typeMode: 1,
  12346. eJSONNum: 0,
  12347. Etype: 1,
  12348. data: {
  12349. meta: {
  12350. name: "example",
  12351. author: "dd@163.com",
  12352. version: "0.2",
  12353. },
  12354. format: "node_array",
  12355. data: [{ id: "root", isroot: true, topic: "" }],
  12356. },
  12357. fullDialogVisible: false,
  12358. fulltype: "",
  12359. fullUrl: "",
  12360. commentIndexJson: {},
  12361. Stbodywidth: 0,
  12362. ispzType: 0,
  12363. pzType: 1,
  12364. wScore: 0,
  12365. scoreDetail: "",
  12366. videoStart: false,
  12367. recorder: null,
  12368. groupJson: {},
  12369. islock: false,
  12370. groupJson2: {},
  12371. dialogVisibleGroup: false,
  12372. dialogVisibleGroup2: false,
  12373. updateGroupArray: [],
  12374. updateGroupUser: {},
  12375. deleteGroupUser: [],
  12376. deleteGroupArray: {},
  12377. checkChair: "",
  12378. checkDeleteGroup: [],
  12379. inviteCode: "",
  12380. courseGroupStudent: [],
  12381. courseGroupStudentUid: [],
  12382. courseGroup: {},
  12383. isGroup: false,
  12384. toolIndex: null,
  12385. tool: {},
  12386. isWorkTool: [
  12387. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  12388. ], //, 40
  12389. videoJson: {},
  12390. toolType: 0,
  12391. checktoolArray: [],
  12392. vChapterData: [],
  12393. isUpdateToolDetail: false,
  12394. isUpdateToolDetail1: false,
  12395. updateToolDetailInner: "",
  12396. checkboxList: [],
  12397. plIndex: "",
  12398. worksSName2: "",
  12399. worksSid: "",
  12400. wordCloudData: [],
  12401. isPickStudent: [],
  12402. pzStype: 1,
  12403. downLoading: false,
  12404. greyType: false,
  12405. correctWord: [],
  12406. EnglishVoiceDialog: false,
  12407. englishVoiceJson: {},
  12408. englishVoiceJsonWork:[],
  12409. scoreList:{
  12410. listdata:[],
  12411. isScoreList:[],
  12412. },
  12413. classRoomHelperWidth: '85px',
  12414. orgArray:['1973f6c7-1561-11ee-91d8-005056b86db5','777559d2-7239-11ee-b98c-005056b86db5','884c5665-a453-46f3-b7b6-01d575290aa9','0fec3a8a-ad04-11ed-b13d-005056b86db5','c9a6de59-8b4f-4be1-8565-a08081f649d3'],
  12415. oidArray:['f297fbdc-f0a0-11ee-b534-005056b86db5','45facc0a-1211-11ec-80ad-005056b86db5'],
  12416. refreshKey:0,
  12417. AIloading:[],
  12418. worksStudentCopy:[],
  12419. loopLoading:[],
  12420. };
  12421. },
  12422. methods: {
  12423. async loopEva(con,tit,stage,task,toolIndex,toolDetail){
  12424. console.log(con,tit,stage,task,toolIndex,toolDetail);
  12425. let jude = false
  12426. this.AIloading.forEach((e,index)=>{
  12427. if(index == toolIndex){
  12428. e.forEach(k=>{
  12429. if(k.loading == true)
  12430. jude=true
  12431. })
  12432. }
  12433. })
  12434. if(jude) return this.$message.info('请勿同时间进行AI评分')
  12435. this.AIloading.forEach((e,index)=>{
  12436. if(index == toolIndex){
  12437. e.forEach(k=>{
  12438. k.loading=true
  12439. })
  12440. }
  12441. })
  12442. this.loopLoading[toolIndex].loading=true
  12443. // return console.log(this.loopLoading,this.AIloading);
  12444. let _text = ''
  12445. for (let i = 0; i < tit.length; i++) {
  12446. _text += `评价名称:${tit[i].value} 评价描述:${tit[i].detail} \n`
  12447. }
  12448. for (let i = 0; i < con.length; i++) {
  12449. let msg = `NOTICE
  12450. Role: 你是一个专业的项目式学习导师,你要对学生的评价高度负责。你要根据“五级评价细则”给学生作品评分,并生成需要的JSON数据。
  12451. Language: Please use the same language as the user requirement, if the user speaks Chinese, the specific text of your answer should also be in Chinese.
  12452. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  12453. Instruction: Based on the context, follow "Format example", write content.
  12454. #Context
  12455. ## 评价细则
  12456. ${_text}
  12457. ## 作业题目
  12458. ${toolDetail}
  12459. ## 作业内容
  12460. ${JSON.parse(con[i].works).text}
  12461. ## 要求
  12462. 根据评价细则和作业内容与作业题目的相关性评价作业,判断该作业属于五级中的哪个等级。
  12463. 具体的评价标准分为5级——1级,2级,3级,4级,5级。
  12464. 1 级,没有识别问题和需求;
  12465. 2 级,问题或需求没有被清晰理解或准确识别;
  12466. 3 级,问题或需求的一部分被识别;
  12467. 4 级,问题或需求的大部分被识别;
  12468. 5 级,问题或需求都被识别。
  12469. # Format example
  12470. [{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'},{'评价名称':'评价等级0-5(数字)'}]
  12471. `
  12472. await this.$refs.markSco[0].aiupdetaSco(msg,con[i].userid,stage,task)
  12473. this.refreshKey++
  12474. this.AIloading[toolIndex][i].loading=false
  12475. }
  12476. this.loopLoading[toolIndex].loading = false;
  12477. },
  12478. // 组件刷新
  12479. refreshAssembly(val){
  12480. this.refreshKey++
  12481. console.log(this.refreshKey)
  12482. },
  12483. updateLoading(payload){
  12484. // console.log('payloadpayloadpayloadpayload',payload);
  12485. this.AIloading[payload.val][payload.val2].loading=payload.val3
  12486. },
  12487. updateDocSco(payload){
  12488. // console.log('payloadpayloadpayloadpayload',payload);
  12489. this.AIloading[payload.val][payload.val2].sco=payload.val3*1
  12490. this.$forceUpdate();
  12491. },
  12492. gx(){
  12493. this.$forceUpdate();
  12494. },
  12495. isUpdateCorrect(t,p){
  12496. if(this.greyType == false){
  12497. this.isUpdateText = t;
  12498. this.greyType = true;
  12499. }else{
  12500. if(p == 1){
  12501. this.newEnglishList.engText = this.isUpdateText;
  12502. }else if(p == 2){
  12503. this.oldEnglishJson1.engText = this.isUpdateText;
  12504. }else if(p == 3){
  12505. this.newEnglishList.engText = this.isUpdateText;
  12506. }else{
  12507. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  12508. }
  12509. this.greyType = false
  12510. }
  12511. },
  12512. aiCorrect(t,p){
  12513. let aiText = "";
  12514. const loading = this.$loading.service({
  12515. background: "rgba(255, 255, 255)",
  12516. target: document.querySelectorAll(".loadingText")[0],
  12517. });
  12518. let param = {
  12519. model: "gpt-3.5-turbo",
  12520. temperature: 0,
  12521. max_tokens: 2048,
  12522. top_p: 1,
  12523. frequency_penalty: 0,
  12524. presence_penalty: 0,
  12525. messages: [
  12526. {
  12527. role: "user",
  12528. content:
  12529.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  12530. },
  12531. ],
  12532. uid: this.userid,
  12533. stream: false,
  12534. };
  12535. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  12536. (res) => {
  12537. if (
  12538. res.data.FunctionResponse &&
  12539. res.data.FunctionResponse.result &&
  12540. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  12541. ) {
  12542. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  12543. return;
  12544. }
  12545. aiText =
  12546. res.data.FunctionResponse.choices[0].message.content;
  12547. aiText = aiText.replace(/%/g,"%25");
  12548. // let w = "";
  12549. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  12550. // for(var k = 0;k<a.length;k++){
  12551. // //diffWordsWithSpace
  12552. // if(a.length > 1){
  12553. // if(a[k].added == true){
  12554. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  12555. // }else if(a[k].removed == true){
  12556. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  12557. // }else{
  12558. // w += '<span>' + a[k].value + '</span>';
  12559. // }
  12560. // }else{
  12561. // if(p == 1){
  12562. // w = this.newEnglishList.engText;
  12563. // }else if(p == 2){
  12564. // w = this.oldEnglishJson1.engText;
  12565. // }else if(p == 3){
  12566. // w = this.newEnglishList.engText;
  12567. // }else{
  12568. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12569. // }
  12570. // }
  12571. // }
  12572. if(p == 1){
  12573. this.newEnglishList.engText = aiText;
  12574. }else if(p == 2){
  12575. this.oldEnglishJson1.engText = aiText;
  12576. }else if(p == 3){
  12577. this.newEnglishList.engText = aiText;
  12578. }else{
  12579. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12580. }
  12581. loading.close();
  12582. },
  12583. (err) => {
  12584. console.log(err);
  12585. loading.close();
  12586. }
  12587. );
  12588. },
  12589. addToolChoose() {
  12590. if (!this.checktoolArray.length) {
  12591. this.$message.error("请选择要添加的任务");
  12592. return;
  12593. }
  12594. if (
  12595. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12596. this.taskCount
  12597. ].toolChoose[0].tool.length
  12598. ) {
  12599. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12600. this.taskCount
  12601. ].toolChoose[0].tool = this.checktoolArray;
  12602. } else {
  12603. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12604. this.taskCount
  12605. ].toolChoose.push({
  12606. tool: this.checktoolArray,
  12607. toolDetail: "",
  12608. toolType: 0,
  12609. askCount: 1,
  12610. askTitle: "",
  12611. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12612. });
  12613. }
  12614. let params = [
  12615. {
  12616. cid: this.id,
  12617. chapters: JSON.stringify(this.chapInfoList),
  12618. uid: this.userid,
  12619. unitIndex: this.courseType,
  12620. },
  12621. ];
  12622. this.ajax
  12623. .post(this.$store.state.api + "updateWorkNew4", params)
  12624. .then((res) => {
  12625. this.$message({
  12626. message: "添加成功",
  12627. type: "success",
  12628. });
  12629. this.checktoolArray = [];
  12630. this.getCourseDetail(2);
  12631. this.checkBz(
  12632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12633. this.taskCount
  12634. ].toolChoose.length - 1
  12635. );
  12636. this.toolDialogVisible = false;
  12637. this.refreshCourse();
  12638. this.$forceUpdate();
  12639. })
  12640. .catch((err) => {
  12641. console.error(err);
  12642. });
  12643. },
  12644. checkBz(index) {
  12645. this.isUpdateToolDetail = false;
  12646. this.$forceUpdate();
  12647. setTimeout(() => {
  12648. document.scrollingElement.scrollTop =
  12649. document.querySelectorAll(".filebox")[index].offsetTop +
  12650. document.querySelector(".student_body").offsetTop;
  12651. }, 500);
  12652. },
  12653. updateToolDetail(i, type) {
  12654. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12655. this.toolDetailIndex = i
  12656. this.isUpdateToolDetail1 = true;
  12657. setTimeout(() => {
  12658. this.updateToolDetailInner = JSON.parse(
  12659. JSON.stringify(
  12660. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12661. this.taskCount
  12662. ].toolChoose[i].toolDetail
  12663. )
  12664. );
  12665. document.querySelector(".checkTextArea").focus();
  12666. }, 0);
  12667. } else if((this.isUpdateToolDetail1 && type != 2)){
  12668. // this.toolDetailIndex = i;
  12669. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12670. this.taskCount
  12671. ].toolChoose[i].toolDetail = JSON.parse(
  12672. JSON.stringify(this.updateToolDetailInner)
  12673. );
  12674. let params = [
  12675. {
  12676. cid: this.id,
  12677. chapters: JSON.stringify(this.chapInfoList),
  12678. uid: this.userid,
  12679. unitIndex: this.courseType,
  12680. },
  12681. ];
  12682. this.ajax
  12683. .post(this.$store.state.api + "updateWorkNew4", params)
  12684. .then((res) => {
  12685. this.isUpdateToolDetail1 = false;
  12686. this.$message({
  12687. message: "修改成功",
  12688. type: "success",
  12689. });
  12690. this.toolDetailIndex = null;
  12691. this.updateToolDetailInner = "";
  12692. this.getCourseDetail(2);
  12693. this.$forceUpdate();
  12694. })
  12695. .catch((err) => {
  12696. console.error(err);
  12697. });
  12698. } else if((this.isUpdateToolDetail1 && type == 2)){
  12699. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12700. this.taskCount
  12701. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12702. JSON.stringify(this.updateToolDetailInner)
  12703. );
  12704. let params = [
  12705. {
  12706. cid: this.id,
  12707. chapters: JSON.stringify(this.chapInfoList),
  12708. uid: this.userid,
  12709. unitIndex: this.courseType,
  12710. },
  12711. ];
  12712. this.ajax
  12713. .post(this.$store.state.api + "updateWorkNew4", params)
  12714. .then((res) => {
  12715. this.$message({
  12716. message: "修改成功",
  12717. type: "success",
  12718. });
  12719. this.toolDetailIndex = i;
  12720. this.isUpdateToolDetail1 = true;
  12721. setTimeout(() => {
  12722. this.updateToolDetailInner = JSON.parse(
  12723. JSON.stringify(
  12724. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12725. this.taskCount
  12726. ].toolChoose[i].toolDetail
  12727. )
  12728. );
  12729. document.querySelector(".checkTextArea").focus();
  12730. }, 0);
  12731. this.getCourseDetail(2);
  12732. this.$forceUpdate();
  12733. })
  12734. .catch((err) => {
  12735. console.error(err);
  12736. });
  12737. }
  12738. },
  12739. jumpGj(i, j, k, l) {
  12740. this.refreshAssembly()
  12741. for (var z = 0; z < this.navList.length; z++) {
  12742. for (var q = 0; q < this.navList[z].task.length; q++) {
  12743. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12744. this.navList[z].task[q].tool[w].isTool = false;
  12745. }
  12746. }
  12747. }
  12748. this.navList[i].task[j].tool[k].isTool =
  12749. !this.navList[i].task[j].tool[k].isTool;
  12750. var a = document.scrollingElement;
  12751. let target = document.querySelector(`#gj${k}`);
  12752. if (target) {
  12753. target.scrollIntoView(true);
  12754. setTimeout(() => {
  12755. a.scrollTop = a.scrollTop - 150;
  12756. }, 0);
  12757. }
  12758. this.navId = ""
  12759. if (l) {
  12760. this.courseType = i;
  12761. // this.navId = l;
  12762. this.taskCount = j;
  12763. this.selectPz();
  12764. this.getHomeWork();
  12765. this.getCourseDetail(2);
  12766. }
  12767. // var b = this.$refs["bz" + k][0];
  12768. // a.scrollTop = b.offsetTop;
  12769. },
  12770. addTools2(i) {
  12771. if (i == 4) {
  12772. // this.openTools2(4);
  12773. this.$message.error("暂未开放");
  12774. return;
  12775. }
  12776. if (i == 45) {
  12777. // this.openTools2(45);
  12778. this.$message.error("暂未开放");
  12779. return;
  12780. }
  12781. if (i == 47) {
  12782. // this.openTools2(47);
  12783. this.$message.error("暂未开放");
  12784. return;
  12785. }
  12786. if (i == 49) {
  12787. // this.openTools2(49);
  12788. this.$message.error("暂未开放");
  12789. return;
  12790. }
  12791. if (i == 62) {
  12792. // this.openTools(itemTaskIndex, 62, toolIndex);
  12793. this.$message.error("暂未开放");
  12794. return;
  12795. }
  12796. if (i == 15) {
  12797. // this.openTools(itemTaskIndex, 15, toolIndex);
  12798. this.$message.error("暂未开放");
  12799. return;
  12800. }
  12801. if (i == 40) {
  12802. // this.openTools(itemTaskIndex, 40, toolIndex);
  12803. this.$message.error("暂未开放");
  12804. return;
  12805. }
  12806. if (i == 41) {
  12807. // this.openTools(itemTaskIndex, 41, toolIndex);
  12808. this.$message.error("暂未开放");
  12809. return;
  12810. }
  12811. if (i == 42) {
  12812. // this.openTools(itemTaskIndex, 42, toolIndex);
  12813. this.$message.error("暂未开放");
  12814. return;
  12815. }
  12816. if (this.checktoolArray.length > 0) {
  12817. if (this.checktoolArray.indexOf(i) != -1) {
  12818. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12819. } else {
  12820. this.checktoolArray = [];
  12821. this.checktoolArray.push(i);
  12822. }
  12823. } else {
  12824. this.checktoolArray.push(i);
  12825. }
  12826. this.$forceUpdate();
  12827. },
  12828. jump() {
  12829. window.parent.postMessage({ tools: "43" }, "*");
  12830. },
  12831. getUpdateMore(f, checkboxList, searchTN, index) {
  12832. this.dialogVisibleMember = f;
  12833. this.checkboxList = checkboxList;
  12834. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12835. this.plIndex = index;
  12836. },
  12837. setPlname(a) {
  12838. if (this.plworkFile.length) {
  12839. this.plworkFile[this.plIndex].username = a;
  12840. } else {
  12841. this.worksSName = a;
  12842. }
  12843. this.dialogVisibleMember = false;
  12844. },
  12845. previewImg(url) {
  12846. this.$hevueImgPreview(url);
  12847. },
  12848. checkImg(list) {
  12849. if (!list.length) {
  12850. return;
  12851. }
  12852. this.$hevueImgPreview({
  12853. multiple: true, // 开启多图预览模式
  12854. imgList: list, // 需要预览的多图数组
  12855. });
  12856. },
  12857. change(val) {
  12858. console.log(val);
  12859. },
  12860. goTo(path) {
  12861. this.$router.push(path);
  12862. },
  12863. handlePictureCardPreview(url) {
  12864. this.dialogImageUrl = url;
  12865. this.pictureDialog = true;
  12866. },
  12867. clean(type) {
  12868. if (type == 1) {
  12869. this.studyJuri[0].cover.splice(0, 1);
  12870. } else if (type == 2) {
  12871. this.studyJuri[0].upVedio.splice(0, 1);
  12872. } else {
  12873. this.studyJuri[0].upFile.splice(0, 1);
  12874. }
  12875. },
  12876. clean2(index) {
  12877. this.plworkFile.splice(index, 1);
  12878. },
  12879. handleClose(done) {
  12880. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12881. this.videoDetail.sources[0].src = "";
  12882. }
  12883. this.commentIndexJson = {};
  12884. done();
  12885. },
  12886. fullTools() {
  12887. this.full = !this.full;
  12888. },
  12889. imgChange(file, fileList, type) {
  12890. if (type == 1) {
  12891. var _tmp = this.studyJuri[0].cover;
  12892. } else if (type == 2) {
  12893. var _tmp = this.studyJuri[0].upVedio;
  12894. } else {
  12895. var _tmp = this.studyJuri[0].upFile;
  12896. }
  12897. this.noneBtnImg = _tmp.length >= 1;
  12898. },
  12899. setContent(bool) {
  12900. this.contentDialog = bool;
  12901. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12902. document.querySelector(".workd_media").style.height = "650px";
  12903. } else if (document.querySelector(".workd_media")) {
  12904. document.querySelector(".workd_media").style.height = "auto";
  12905. }
  12906. },
  12907. setContent2(bool) {
  12908. this.mlDialog = bool;
  12909. if (
  12910. bool &&
  12911. this.contentDialog &&
  12912. document.querySelector(".workd_media")
  12913. ) {
  12914. document.querySelector(".workd_media").style.height = "650px";
  12915. } else if (document.querySelector(".workd_media")) {
  12916. document.querySelector(".workd_media").style.height = "auto";
  12917. }
  12918. },
  12919. openToolAll() {
  12920. this.toolDialogVisible = true;
  12921. },
  12922. addImg(e) {
  12923. var el = e.currentTarget;
  12924. // this.$message.success('触发上传')
  12925. el.getElementsByTagName("input")[0].click();
  12926. e.target.value = "";
  12927. },
  12928. addSelectAnswer() {
  12929. let params = [
  12930. {
  12931. uid: this.userid,
  12932. cid: this.id,
  12933. stage: this.courseType,
  12934. task: this.taskCount,
  12935. tool: this.toolindex,
  12936. content: this.selectAnswer.answer,
  12937. type: 7,
  12938. },
  12939. ];
  12940. this.ajax
  12941. .post(this.$store.state.api + "addCourseWorks", params)
  12942. .then((res) => {
  12943. this.$message({
  12944. message: "提交成功",
  12945. type: "success",
  12946. });
  12947. this.dialogVisibleSelect = false;
  12948. // this.selectAnswer = {};
  12949. this.selectSWorks();
  12950. this.selectStudent();
  12951. })
  12952. .catch((err) => {
  12953. this.$message.error("提交失败");
  12954. console.error(err);
  12955. });
  12956. },
  12957. addSelectAnswerTeacher() {
  12958. let params = [
  12959. {
  12960. uid: this.sStudent.userid,
  12961. cid: this.id,
  12962. stage: this.courseType,
  12963. task: this.taskCount,
  12964. tool: this.toolindex,
  12965. content: this.selectAnswer.answer,
  12966. type: 7,
  12967. },
  12968. ];
  12969. this.ajax
  12970. .post(this.$store.state.api + "addCourseWorks", params)
  12971. .then((res) => {
  12972. this.$message({
  12973. message: "提交成功",
  12974. type: "success",
  12975. });
  12976. this.dialogVisibleSelectTeacher = false;
  12977. // this.selectAnswer = {};
  12978. this.selectSWorks();
  12979. this.selectStudent();
  12980. })
  12981. .catch((err) => {
  12982. this.$message.error("提交失败");
  12983. console.error(err);
  12984. });
  12985. },
  12986. addSenWorks() {
  12987. for (var i = 0; i < this.sentenceList.length; i++) {
  12988. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12989. if (
  12990. this.sentenceList[i].chooseSenList[j] == undefined ||
  12991. this.sentenceList[i].chooseSenList[j] == ""
  12992. ) {
  12993. this.$message.error("请将答案填写完整!");
  12994. return;
  12995. }
  12996. }
  12997. }
  12998. let params = [
  12999. {
  13000. uid: this.userid,
  13001. cid: this.id,
  13002. stage: this.courseType,
  13003. task: this.taskCount,
  13004. tool: this.toolindex,
  13005. content: JSON.stringify(this.sentenceList),
  13006. type: 9,
  13007. },
  13008. ];
  13009. this.ajax
  13010. .post(this.$store.state.api + "addCourseWorks", params)
  13011. .then((res) => {
  13012. this.$message({
  13013. message: "提交成功",
  13014. type: "success",
  13015. });
  13016. this.dialogVisibleSentence = false;
  13017. // this.selectAnswer = {};
  13018. this.selectSWorks();
  13019. this.selectStudent();
  13020. })
  13021. .catch((err) => {
  13022. this.$message.error("提交失败");
  13023. console.error(err);
  13024. });
  13025. },
  13026. addSenWorksTeacher() {
  13027. for (var i = 0; i < this.sentenceList.length; i++) {
  13028. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  13029. if (
  13030. this.sentenceList[i].chooseSenList[j] == undefined ||
  13031. this.sentenceList[i].chooseSenList[j] == ""
  13032. ) {
  13033. this.$message.error("请将答案填写完整!");
  13034. return;
  13035. }
  13036. }
  13037. }
  13038. let params = [
  13039. {
  13040. uid: this.sStudent.userid,
  13041. cid: this.id,
  13042. stage: this.courseType,
  13043. task: this.taskCount,
  13044. tool: this.toolindex,
  13045. content: JSON.stringify(this.sentenceList),
  13046. type: 9,
  13047. },
  13048. ];
  13049. this.ajax
  13050. .post(this.$store.state.api + "addCourseWorks", params)
  13051. .then((res) => {
  13052. this.$message({
  13053. message: "提交成功",
  13054. type: "success",
  13055. });
  13056. this.dialogVisibleSentenceTeacher = false;
  13057. // this.selectAnswer = {};
  13058. this.selectSWorks();
  13059. this.selectStudent();
  13060. })
  13061. .catch((err) => {
  13062. this.$message.error("提交失败");
  13063. console.error(err);
  13064. });
  13065. },
  13066. returnTableText() {
  13067. this.$confirm("确定还原此模板吗?", "提示", {
  13068. confirmButtonText: "确定",
  13069. cancelButtonText: "取消",
  13070. type: "warning",
  13071. })
  13072. .then(() => {
  13073. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  13074. })
  13075. .catch(() => {});
  13076. },
  13077. addTableWorks() {
  13078. let params = [
  13079. {
  13080. uid: this.userid,
  13081. cid: this.id,
  13082. stage: this.courseType,
  13083. task: this.taskCount,
  13084. tool: this.toolindex,
  13085. content: JSON.stringify(this.tableJson),
  13086. type: 10,
  13087. },
  13088. ];
  13089. this.ajax
  13090. .post(this.$store.state.api + "addCourseWorks", params)
  13091. .then((res) => {
  13092. this.$message({
  13093. message: "提交成功",
  13094. type: "success",
  13095. });
  13096. this.dialogVisibleTable = false;
  13097. // this.selectAnswer = {};
  13098. this.selectSWorks();
  13099. this.selectStudent();
  13100. })
  13101. .catch((err) => {
  13102. this.$message.error("提交失败");
  13103. console.error(err);
  13104. });
  13105. },
  13106. tableRowClassName({ row, rowIndex }) {
  13107. if ((rowIndex + 1) % 2 === 0) {
  13108. return "even_row";
  13109. } else {
  13110. return "";
  13111. }
  13112. },
  13113. addTableWorksTeacher() {
  13114. let params = [
  13115. {
  13116. uid: this.sStudent.userid,
  13117. cid: this.id,
  13118. stage: this.courseType,
  13119. task: this.taskCount,
  13120. tool: this.toolindex,
  13121. content: JSON.stringify(this.tableJson),
  13122. type: 10,
  13123. },
  13124. ];
  13125. this.ajax
  13126. .post(this.$store.state.api + "addCourseWorks", params)
  13127. .then((res) => {
  13128. this.$message({
  13129. message: "提交成功",
  13130. type: "success",
  13131. });
  13132. this.dialogVisibleTableTeacher = false;
  13133. // this.selectAnswer = {};
  13134. this.selectSWorks();
  13135. this.selectStudent();
  13136. })
  13137. .catch((err) => {
  13138. this.$message.error("提交失败");
  13139. console.error(err);
  13140. });
  13141. },
  13142. returnWordText() {
  13143. this.$confirm("确定还原此模板吗?", "提示", {
  13144. confirmButtonText: "确定",
  13145. cancelButtonText: "取消",
  13146. type: "warning",
  13147. })
  13148. .then(() => {
  13149. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  13150. })
  13151. .catch(() => {});
  13152. },
  13153. addWordWorks() {
  13154. let params = [
  13155. {
  13156. uid: this.userid,
  13157. cid: this.id,
  13158. stage: this.courseType,
  13159. task: this.taskCount,
  13160. tool: this.toolindex,
  13161. content: JSON.stringify(this.wordJson),
  13162. type: 13,
  13163. atool: 52,
  13164. },
  13165. ];
  13166. this.ajax
  13167. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13168. .then((res) => {
  13169. this.$message({
  13170. message: "提交成功",
  13171. type: "success",
  13172. });
  13173. this.dialogVisibleWord = false;
  13174. // this.selectAnswer = {};
  13175. this.selectSWorks();
  13176. this.selectStudent();
  13177. })
  13178. .catch((err) => {
  13179. this.$message.error("提交失败");
  13180. console.error(err);
  13181. });
  13182. },
  13183. addWordWorksTeacher() {
  13184. let params = [
  13185. {
  13186. uid: this.sStudent.userid,
  13187. cid: this.id,
  13188. stage: this.courseType,
  13189. task: this.taskCount,
  13190. tool: this.toolindex,
  13191. content: JSON.stringify(this.wordJson),
  13192. type: 13,
  13193. atool: 52,
  13194. },
  13195. ];
  13196. this.ajax
  13197. .post(this.$store.state.api + "addCourseWorks3-2", params)
  13198. .then((res) => {
  13199. this.$message({
  13200. message: "提交成功",
  13201. type: "success",
  13202. });
  13203. this.dialogVisibleWordTeacher = false;
  13204. // this.selectAnswer = {};
  13205. this.selectSWorks();
  13206. this.selectStudent();
  13207. })
  13208. .catch((err) => {
  13209. this.$message.error("提交失败");
  13210. console.error(err);
  13211. });
  13212. },
  13213. addCourseWorks(i) {
  13214. var typesql;
  13215. if (this.fileType === 0) {
  13216. typesql = 1;
  13217. } else if (this.fileType === 1) {
  13218. typesql = 4;
  13219. } else if (this.fileType === 2) {
  13220. typesql = 5;
  13221. } else if (this.fileType === 3) {
  13222. typesql = 12;
  13223. }
  13224. if (!this.studyJuri[0].cover[0].url) {
  13225. this.$message.error("请上传文件");
  13226. return;
  13227. }
  13228. let params = [
  13229. {
  13230. uid: this.userid,
  13231. cid: this.id,
  13232. stage: this.courseType,
  13233. task: i,
  13234. tool: this.toolindex,
  13235. content: this.studyJuri[0].cover[0].url,
  13236. type: typesql,
  13237. },
  13238. ];
  13239. this.ajax
  13240. .post(this.$store.state.api + "addCourseWorksR", params)
  13241. .then((res) => {
  13242. this.$message({
  13243. message: "提交成功",
  13244. type: "success",
  13245. });
  13246. this.studyJuri[0].cover = [];
  13247. this.dialogVisible = false;
  13248. this.getCourseDetail(2);
  13249. })
  13250. .catch((err) => {
  13251. this.$message.error("提交失败");
  13252. console.error(err);
  13253. });
  13254. },
  13255. addCourseWorksPl(i) {
  13256. let _files = this.plworkFile;
  13257. var c = 1;
  13258. for (var k = 0; k < _files.length; k++) {
  13259. if (!_files[k].username) {
  13260. c = 2;
  13261. }
  13262. }
  13263. if (c == 2) {
  13264. this.$message.error("请填写学生姓名");
  13265. return;
  13266. }
  13267. let params = [
  13268. {
  13269. ateacher: this.userid,
  13270. cid: this.id,
  13271. stage: this.courseType,
  13272. task: i,
  13273. tool: this.toolindex,
  13274. content: JSON.stringify(_files),
  13275. },
  13276. ];
  13277. this.ajax
  13278. .post(this.$store.state.api + "addCourseWorksPl", params)
  13279. .then((res) => {
  13280. this.$message({
  13281. message: "提交成功",
  13282. type: "success",
  13283. });
  13284. this.plworkFile = [];
  13285. this.dialogVisiblePl = false;
  13286. this.getCourseDetail(2);
  13287. })
  13288. .catch((err) => {
  13289. this.$message.error("提交失败");
  13290. console.error(err);
  13291. });
  13292. },
  13293. addCourseWorks2(i) {
  13294. var typesql;
  13295. if (this.fileType === 0) {
  13296. typesql = 0;
  13297. } else if (this.fileType === 1) {
  13298. typesql = 1;
  13299. } else if (this.fileType === 2) {
  13300. typesql = 3;
  13301. } else if (this.fileType === 3) {
  13302. typesql = 12;
  13303. }
  13304. if (!this.studyJuri[0].cover[0].url) {
  13305. this.$message.error("请上传文件");
  13306. return;
  13307. }
  13308. let params = [
  13309. {
  13310. uid: this.userid,
  13311. cid: this.id,
  13312. stage: this.courseType,
  13313. task: i,
  13314. tool: this.toolindex,
  13315. content: JSON.stringify({
  13316. type: typesql,
  13317. groupIndex: this.groupIndex,
  13318. url: this.studyJuri[0].cover[0].url,
  13319. }),
  13320. type: 11,
  13321. atool: 49,
  13322. text: "",
  13323. },
  13324. ];
  13325. this.ajax
  13326. .post(this.$store.state.api + "addCourseWorks5", params)
  13327. .then((res) => {
  13328. this.$message({
  13329. message: "提交成功",
  13330. type: "success",
  13331. });
  13332. this.studyJuri[0].cover = [];
  13333. this.dialogVisibleGroupWork = false;
  13334. this.getCourseDetail(2);
  13335. })
  13336. .catch((err) => {
  13337. this.$message.error("提交失败");
  13338. console.error(err);
  13339. });
  13340. },
  13341. addEnglishWork() {
  13342. this.myAnList = this.$refs['engJson'].myAnswerList;
  13343. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  13344. this.$message.error("请输入作文标题和正文!");
  13345. return;
  13346. }
  13347. let params = [
  13348. {
  13349. uid: this.userid,
  13350. cid: this.id,
  13351. stage: this.courseType,
  13352. task: this.taskCount,
  13353. tool: this.englishToolIndex,
  13354. content: JSON.stringify(this.myAnList),
  13355. type: 16,
  13356. atool: 69,
  13357. text: "",
  13358. },
  13359. ];
  13360. this.ajax
  13361. .post(this.$store.state.api + "addCourseWorks5", params)
  13362. .then((res) => {
  13363. this.$message({
  13364. message: "提交成功",
  13365. type: "success",
  13366. });
  13367. this.myAnList = {};
  13368. this.englishList = {};
  13369. this.englishToolIndex = 0;
  13370. this.engDialogVisible = false;
  13371. this.selectSWorks();
  13372. this.selectStudent();
  13373. })
  13374. .catch((err) => {
  13375. this.$message.error("提交失败");
  13376. console.error(err);
  13377. });
  13378. },
  13379. addCourseWorksGong(i, data, tool) {
  13380. let params = [
  13381. {
  13382. uid: this.userid,
  13383. cid: this.id,
  13384. stage: this.courseType,
  13385. task: this.taskCount,
  13386. tool: i,
  13387. content: data,
  13388. type: 12,
  13389. atool: tool,
  13390. text: "",
  13391. },
  13392. ];
  13393. this.ajax
  13394. .post(this.$store.state.api + "addCourseWorks5", params)
  13395. .then((res) => {
  13396. this.$message({
  13397. message: "提交成功",
  13398. type: "success",
  13399. });
  13400. this.studyJuri[0].cover = [];
  13401. this.selectSWorks();
  13402. this.selectStudent();
  13403. })
  13404. .catch((err) => {
  13405. this.$message.error("提交失败");
  13406. console.error(err);
  13407. });
  13408. },
  13409. addCourseWorksGongTeacher(i, data, tool) {
  13410. let params = [
  13411. {
  13412. uid: this.sStudent.userid,
  13413. cid: this.id,
  13414. stage: this.courseType,
  13415. task: this.taskCount,
  13416. tool: i,
  13417. content: data,
  13418. type: 12,
  13419. atool: tool,
  13420. text: "",
  13421. },
  13422. ];
  13423. this.ajax
  13424. .post(this.$store.state.api + "addCourseWorks5", params)
  13425. .then((res) => {
  13426. this.$message({
  13427. message: "提交成功",
  13428. type: "success",
  13429. });
  13430. this.studyJuri[0].cover = [];
  13431. this.dialogVisibleWorks = false;
  13432. this.selectSWorks();
  13433. this.selectStudent();
  13434. })
  13435. .catch((err) => {
  13436. this.$message.error("提交失败");
  13437. console.error(err);
  13438. });
  13439. },
  13440. addCourseWorksGongPl(i, data, tool, type) {
  13441. let params = [
  13442. {
  13443. uid: this.sStudent.userid,
  13444. cid: this.id,
  13445. stage: this.courseType,
  13446. task: this.taskCount,
  13447. tool: i,
  13448. content: data,
  13449. type: type,
  13450. atool: tool,
  13451. text: "",
  13452. },
  13453. ];
  13454. this.ajax
  13455. .post(this.$store.state.api + "addCourseWorks5", params)
  13456. .then((res) => {
  13457. this.$message({
  13458. message: "提交成功",
  13459. type: "success",
  13460. });
  13461. this.studyJuri[0].cover = [];
  13462. this.dialogVisibleWorks = false;
  13463. this.selectSWorks();
  13464. this.selectStudent();
  13465. })
  13466. .catch((err) => {
  13467. this.$message.error("提交失败");
  13468. console.error(err);
  13469. });
  13470. },
  13471. addCourseWorksTeacher(i) {
  13472. var typesql;
  13473. if (this.sTool == 32) {
  13474. this.addCourseWorksGongTeacher(
  13475. this.toolindex,
  13476. this.studyJuri[0].cover[0].url,
  13477. this.sTool
  13478. );
  13479. return;
  13480. }
  13481. if (this.fileType === 0) {
  13482. typesql = 1;
  13483. } else if (this.fileType === 1) {
  13484. typesql = 4;
  13485. } else if (this.fileType === 2) {
  13486. typesql = 5;
  13487. } else if (this.fileType === 3) {
  13488. typesql = 12;
  13489. }
  13490. if (this.sTool == 50) {
  13491. this.addCourseWorksGongPl(
  13492. this.toolindex,
  13493. this.studyJuri[0].cover[0].url,
  13494. this.sTool,
  13495. typesql
  13496. );
  13497. return;
  13498. }
  13499. if (!this.studyJuri[0].cover[0].url) {
  13500. this.$message.error("请上传文件");
  13501. return;
  13502. }
  13503. let params = [
  13504. {
  13505. uid: this.sStudent.userid,
  13506. cid: this.id,
  13507. stage: this.courseType,
  13508. task: i,
  13509. tool: this.toolindex,
  13510. content: this.studyJuri[0].cover[0].url,
  13511. type: typesql,
  13512. ateacher: this.userid,
  13513. },
  13514. ];
  13515. this.ajax
  13516. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  13517. .then((res) => {
  13518. this.$message({
  13519. message: "提交成功",
  13520. type: "success",
  13521. });
  13522. this.studyJuri[0].cover = [];
  13523. this.dialogVisibleWorks = false;
  13524. this.getCourseDetail(2);
  13525. })
  13526. .catch((err) => {
  13527. this.$message.error("提交失败");
  13528. console.error(err);
  13529. });
  13530. },
  13531. selectUploadStudent(type) {
  13532. const loading = this.$loading.service({
  13533. background: "rgba(255, 255, 255, 0.7)",
  13534. target: document.body,
  13535. });
  13536. let params = {
  13537. cid: this.uploadCid,
  13538. oid: this.oid,
  13539. cn: "",
  13540. };
  13541. this.ajax
  13542. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13543. .then((res) => {
  13544. loading.close();
  13545. var studentK = [];
  13546. if (this.isWorksS[this.toolindex].length > 0) {
  13547. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  13548. studentK.push(this.isWorksS[this.toolindex][z].uid);
  13549. }
  13550. studentK = studentK.join(",");
  13551. }
  13552. this.uploadStudentJuri = res.data[0].filter((el) => {
  13553. return studentK.indexOf(el.userid) == -1;
  13554. });
  13555. if (this.worksSName && this.worksSid) {
  13556. this.uploadStudentJuri.push({
  13557. userid: this.worksSid,
  13558. name: this.worksSName,
  13559. });
  13560. }
  13561. if (type == 1) {
  13562. this.plworkFile = [];
  13563. this.dialogVisibleSname = true;
  13564. } else if (type == 2) {
  13565. this.dialogVisiblePl = true;
  13566. }
  13567. })
  13568. .catch((err) => {
  13569. loading.close();
  13570. console.error(err);
  13571. });
  13572. },
  13573. selectPickStudent() {
  13574. const loading = this.$loading.service({
  13575. background: "rgba(255, 255, 255, 0.7)",
  13576. target: document.body,
  13577. });
  13578. let params = {
  13579. cid: this.uploadCid,
  13580. oid: this.oid,
  13581. cn: "",
  13582. };
  13583. this.ajax
  13584. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13585. .then((res) => {
  13586. loading.close();
  13587. this.uploadStudentJuri = res.data[0];
  13588. this.dialogVisiblePickPeople = true;
  13589. })
  13590. .catch((err) => {
  13591. loading.close();
  13592. console.error(err);
  13593. });
  13594. },
  13595. arrayToArray(arrayo, arrayt) {
  13596. let array1 = arrayo;
  13597. let array2 = arrayt;
  13598. let commonElements = [];
  13599. for (let i = 0; i < array1.length; i++) {
  13600. for (let j = 0; j < array2.length; j++) {
  13601. if (array1[i] === array2[j]) {
  13602. commonElements.push(array1[i]);
  13603. }
  13604. }
  13605. }
  13606. return commonElements;
  13607. },
  13608. selectWorksStudent() {
  13609. let params = {
  13610. oid: this.oid,
  13611. cid: this.courseDetail.juri,
  13612. };
  13613. this.ajax
  13614. .get(this.$store.state.api + "selectWorksStudent", params)
  13615. .then((res) => {
  13616. var a = res.data[0];
  13617. for (var i = 0; i < this.isWorksS.length; i++) {
  13618. this.noWorksS[i] = [];
  13619. var studentK = [];
  13620. if (this.isWorksS[i].length > 0) {
  13621. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13622. studentK.push(this.isWorksS[i][z].uid);
  13623. }
  13624. studentK = studentK.join(",");
  13625. for (var j = 0; j < a.length; j++) {
  13626. if (studentK.indexOf(a[j].userid) == -1) {
  13627. if (this.tcid) {
  13628. // a[j].classid.indexOf(this.tcid) != -1
  13629. if (
  13630. this.arrayToArray(
  13631. a[j].classid.split(","),
  13632. this.tcid.split(",")
  13633. ).length
  13634. ) {
  13635. this.noWorksS[i].push({
  13636. student: a[j].name,
  13637. userid: a[j].userid,
  13638. });
  13639. }
  13640. } else {
  13641. this.noWorksS[i].push({
  13642. student: a[j].name,
  13643. userid: a[j].userid,
  13644. });
  13645. }
  13646. }
  13647. }
  13648. } else {
  13649. for (var k = 0; k < a.length; k++) {
  13650. if (this.tcid) {
  13651. if (
  13652. this.arrayToArray(
  13653. a[k].classid.split(","),
  13654. this.tcid.split(",")
  13655. ).length
  13656. ) {
  13657. this.noWorksS[i].push({
  13658. student: a[k].name,
  13659. userid: a[k].userid,
  13660. });
  13661. }
  13662. } else {
  13663. this.noWorksS[i].push({
  13664. student: a[k].name,
  13665. userid: a[k].userid,
  13666. });
  13667. }
  13668. }
  13669. }
  13670. }
  13671. this.$forceUpdate();
  13672. if (
  13673. Object.keys(this.commentDetail).length &&
  13674. Object.keys(this.commentIndexJson).length &&
  13675. !this.dialogVisibleScore && !this.dialogVisibleENScore
  13676. ) {
  13677. let a = 1;
  13678. let c = this.commentIndexJson;
  13679. if (
  13680. this.commentIndexJson.gindex ||
  13681. this.commentIndexJson.gindex === 0
  13682. ) {
  13683. for (
  13684. var i = 0;
  13685. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13686. i++
  13687. ) {
  13688. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13689. groupA: for (var k = 0; k < _el.length; k++) {
  13690. let el = _el[k];
  13691. if (el.wid == this.commentDetail.wid) {
  13692. a = 2;
  13693. this.commentOther(
  13694. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13695. this.commentIndexJson.toolIndex,
  13696. k,
  13697. this.commentIndexJson.gindex
  13698. );
  13699. break groupA;
  13700. }
  13701. }
  13702. }
  13703. if (a === 1) {
  13704. this.commentDetail = [];
  13705. this.commentIndexJson = {};
  13706. this.commentDialogVisible = false;
  13707. this.$message("此作业已被删除");
  13708. }
  13709. } else {
  13710. if (this.isGroup && this.commentIndexJson.gid) {
  13711. groupA: for (
  13712. var i = 0;
  13713. i < this.courseGroup.group.length;
  13714. i++
  13715. ) {
  13716. let _group = this.courseGroup.group[i];
  13717. if (_group.id == this.commentIndexJson.gid) {
  13718. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13719. for (var k = 0; k < _el2.length; k++) {
  13720. let el2 = _el2[k];
  13721. if (el2.wid == this.commentDetail.wid) {
  13722. a = 2;
  13723. this.commentOther(
  13724. _el2[k],
  13725. this.commentIndexJson.toolIndex,
  13726. k,
  13727. null,
  13728. this.commentIndexJson.gid
  13729. );
  13730. break groupA;
  13731. }
  13732. }
  13733. }
  13734. }
  13735. }
  13736. if (a == 1) {
  13737. for (
  13738. var i = 0;
  13739. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13740. i++
  13741. ) {
  13742. let el =
  13743. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13744. if (el.wid == this.commentDetail.wid) {
  13745. a = 2;
  13746. this.commentOther(
  13747. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13748. this.commentIndexJson.toolIndex,
  13749. i
  13750. );
  13751. break;
  13752. }
  13753. }
  13754. }
  13755. if (a === 1) {
  13756. this.commentDetail = [];
  13757. this.commentIndexJson = {};
  13758. this.commentDialogVisible = false;
  13759. this.$message("此作业已被删除");
  13760. }
  13761. }
  13762. }
  13763. })
  13764. .catch((err) => {
  13765. console.error(err);
  13766. });
  13767. },
  13768. selectStudent() {
  13769. //学生查看自己作业
  13770. let params = {
  13771. uid: this.userid,
  13772. cid: this.id,
  13773. s: this.courseType,
  13774. t: this.taskCount,
  13775. };
  13776. this.ajax
  13777. .get(this.$store.state.api + "selectStudentWorks", params)
  13778. .then((res) => {
  13779. var a =
  13780. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13781. this.taskCount
  13782. ].toolChoose;
  13783. var b = res.data[0];
  13784. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13785. var y = [
  13786. "AVI",
  13787. "NAVI",
  13788. "MPEG",
  13789. "ASF",
  13790. "MOV",
  13791. "WMV",
  13792. "3GP",
  13793. "RM",
  13794. "RMVB",
  13795. "FLV",
  13796. "F4V",
  13797. "H.264",
  13798. "H.265",
  13799. "REAL VIDEO",
  13800. "MKV",
  13801. "WebM",
  13802. "HDDVD",
  13803. "MP4",
  13804. "MPG",
  13805. "M4V",
  13806. "MGV",
  13807. "OGV",
  13808. "QTM",
  13809. "STR",
  13810. "AMC",
  13811. "DVX",
  13812. "EVO",
  13813. "DAT",
  13814. "OGG",
  13815. "OGM",
  13816. ];
  13817. for (var i = 0; i < a.length; i++) {
  13818. this.workStudent[i] = [];
  13819. for (var j = 0; j < b.length; j++) {
  13820. if (i == b[j].tool) {
  13821. if (
  13822. (b[j].type == 1 ||
  13823. b[j].type == 4 ||
  13824. b[j].type == 5 ||
  13825. b[j].type == 6 ||
  13826. b[j].type == 12 ||
  13827. b[j].type == 7) &&
  13828. a[i].tool[0] != 15 &&
  13829. a[i].tool[0] != 4 &&
  13830. a[i].tool[0] != 45 &&
  13831. a[i].tool[0] != 50 &&
  13832. a[i].tool[0] != 32 &&
  13833. a[i].tool[0] != 57 &&
  13834. a[i].tool[0] != 52 &&
  13835. a[i].tool[0] != 69
  13836. ) {
  13837. if (
  13838. c.indexOf(
  13839. b[j].content
  13840. .split(".")
  13841. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13842. ) != -1 &&
  13843. a[i].tool[0] == 16 &&
  13844. b[j].atool != 50
  13845. ) {
  13846. this.workStudent[i].push({
  13847. works: b[j].content,
  13848. sName: b[j].name,
  13849. score: b[j].score,
  13850. img: b[j].img,
  13851. type: 1,
  13852. time: b[j].time,
  13853. userid: b[j].userid,
  13854. wid: b[j].id,
  13855. });
  13856. } else if (
  13857. y.indexOf(
  13858. b[j].content
  13859. .split(".")
  13860. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13861. ) != -1 &&
  13862. a[i].tool[0] == 16 &&
  13863. b[j].atool != 50
  13864. ) {
  13865. this.workStudent[i].push({
  13866. userid: b[j].userid,
  13867. wid: b[j].id,
  13868. works: b[j].content,
  13869. sName: b[j].name,
  13870. score: b[j].score,
  13871. img: b[j].img,
  13872. type: 3,
  13873. time: b[j].time,
  13874. });
  13875. } else if (b[j].type == 6 && b[j].atool != 50) {
  13876. this.workStudent[i].push({
  13877. userid: b[j].userid,
  13878. wid: b[j].id,
  13879. works: b[j].content,
  13880. sName: b[j].name,
  13881. score: b[j].score,
  13882. img: b[j].img,
  13883. type: 4,
  13884. time: b[j].time,
  13885. });
  13886. } else if (b[j].type == 7 && b[j].atool != 50) {
  13887. this.workStudent[i].push({
  13888. userid: b[j].userid,
  13889. wid: b[j].id,
  13890. works: b[j].content,
  13891. sName: b[j].name,
  13892. score: b[j].score,
  13893. img: b[j].img,
  13894. type: 5,
  13895. time: b[j].time,
  13896. });
  13897. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13898. this.workStudent[i].push({
  13899. works: b[j].content,
  13900. sName: b[j].name,
  13901. score: b[j].score,
  13902. img: b[j].img,
  13903. type: 12,
  13904. time: b[j].time,
  13905. userid: b[j].userid,
  13906. wid: b[j].id,
  13907. });
  13908. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13909. this.workStudent[i].push({
  13910. works: b[j].content,
  13911. sName: b[j].name,
  13912. score: b[j].score,
  13913. img: b[j].img,
  13914. type: 0,
  13915. time: b[j].time,
  13916. userid: b[j].userid,
  13917. wid: b[j].id,
  13918. });
  13919. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13920. this.workStudent[i].push({
  13921. works: b[j].content,
  13922. sName: b[j].name,
  13923. score: b[j].score,
  13924. img: b[j].img,
  13925. type: 0,
  13926. time: b[j].time,
  13927. userid: b[j].userid,
  13928. wid: b[j].id,
  13929. });
  13930. }
  13931. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13932. this.workStudent[i].push({
  13933. works: b[j].content,
  13934. sName: b[j].name,
  13935. score: b[j].score,
  13936. img: b[j].img,
  13937. type: 2,
  13938. time: b[j].time,
  13939. userid: b[j].userid,
  13940. wid: b[j].id,
  13941. });
  13942. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13943. //问卷
  13944. this.workStudent[i].push({
  13945. works: b[j].content,
  13946. sName: b[j].name,
  13947. score: b[j].score,
  13948. img: b[j].img,
  13949. type: 2,
  13950. time: b[j].time,
  13951. userid: b[j].userid,
  13952. wid: b[j].id,
  13953. });
  13954. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13955. //选择题
  13956. this.workStudent[i].push({
  13957. works: b[j].content,
  13958. sName: b[j].name,
  13959. score: b[j].score,
  13960. img: b[j].img,
  13961. type: 8,
  13962. time: b[j].time,
  13963. userid: b[j].userid,
  13964. wid: b[j].id,
  13965. });
  13966. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13967. //选择题
  13968. this.workStudent[i].push({
  13969. works: b[j].content,
  13970. sName: b[j].name,
  13971. score: b[j].score,
  13972. img: b[j].img,
  13973. type: 9,
  13974. time: b[j].time,
  13975. userid: b[j].userid,
  13976. wid: b[j].id,
  13977. });
  13978. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13979. //选择题
  13980. this.workStudent[i].push({
  13981. works: b[j].content,
  13982. sName: b[j].name,
  13983. score: b[j].score,
  13984. img: b[j].img,
  13985. type: 10,
  13986. time: b[j].time,
  13987. userid: b[j].userid,
  13988. wid: b[j].id,
  13989. });
  13990. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13991. //选择题
  13992. this.workStudent[i].push({
  13993. works: b[j].content,
  13994. sName: b[j].name,
  13995. score: b[j].score,
  13996. img: b[j].img,
  13997. type: 13,
  13998. time: b[j].time,
  13999. userid: b[j].userid,
  14000. wid: b[j].id,
  14001. });
  14002. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  14003. //选择题
  14004. this.workStudent[i].push({
  14005. works: b[j].content,
  14006. sName: b[j].name,
  14007. score: b[j].score,
  14008. img: b[j].img,
  14009. type: 12,
  14010. time: b[j].time,
  14011. userid: b[j].userid,
  14012. wid: b[j].id,
  14013. });
  14014. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  14015. //选择题
  14016. this.workStudent[i].push({
  14017. works: b[j].content,
  14018. sName: b[j].name,
  14019. score: b[j].score,
  14020. img: b[j].img,
  14021. type: 12,
  14022. time: b[j].time,
  14023. userid: b[j].userid,
  14024. wid: b[j].id,
  14025. });
  14026. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  14027. //选择题
  14028. this.workStudent[i].push({
  14029. works: b[j].content,
  14030. sName: b[j].name,
  14031. score: b[j].score,
  14032. img: b[j].img,
  14033. type: 15,
  14034. time: b[j].time,
  14035. userid: b[j].userid,
  14036. wid: b[j].id,
  14037. });
  14038. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14039. //英语写作
  14040. this.workStudent[i].push({
  14041. works: b[j].content,
  14042. sName: b[j].name,
  14043. score: b[j].score,
  14044. img: b[j].img,
  14045. type: 16,
  14046. time: b[j].time,
  14047. userid: b[j].userid,
  14048. wid: b[j].id,
  14049. aiCode: b[j].aiCode,
  14050. teacherCode: b[j].teacherCode
  14051. });
  14052. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  14053. //英语写作
  14054. this.workStudent[i].push({
  14055. works: b[j].content,
  14056. sName: b[j].name,
  14057. score: b[j].score,
  14058. img: b[j].img,
  14059. type: 17,
  14060. time: b[j].time,
  14061. userid: b[j].userid,
  14062. wid: b[j].id,
  14063. });
  14064. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  14065. //英语口语
  14066. this.workStudent[i].push({
  14067. works: b[j].content,
  14068. sName: b[j].name,
  14069. score: b[j].score,
  14070. img: b[j].img,
  14071. type: 14,
  14072. time: b[j].time,
  14073. userid: b[j].userid,
  14074. wid: b[j].id,
  14075. });
  14076. }
  14077. }
  14078. }
  14079. }
  14080. })
  14081. .catch((err) => {
  14082. console.error(err);
  14083. });
  14084. },
  14085. openVideo(w) {
  14086. this.videoDetail = {};
  14087. this.playerOptions1.sources[0].src = w.works;
  14088. this.videoDetail = this.playerOptions1;
  14089. this.videoVisible = true;
  14090. },
  14091. isLikes(wid, uid, t, c, isLikes) {
  14092. if (isLikes == false) {
  14093. let params = [
  14094. {
  14095. wid: wid,
  14096. lid: uid,
  14097. t: t,
  14098. c: c,
  14099. },
  14100. ];
  14101. this.ajax
  14102. .post(this.$store.state.api + "insertComment", params)
  14103. .then((res) => {
  14104. this.$message({
  14105. message: "点赞成功",
  14106. type: "success",
  14107. });
  14108. this.selectSWorks();
  14109. this.selectStudent();
  14110. })
  14111. .catch((err) => {
  14112. this.$message.error("点赞失败");
  14113. console.error(err);
  14114. });
  14115. } else {
  14116. let params = {
  14117. wid: wid,
  14118. lid: uid,
  14119. type: t,
  14120. };
  14121. this.ajax
  14122. .get(this.$store.state.api + "deleteComment", params)
  14123. .then((res) => {
  14124. this.$message({
  14125. message: "取消点赞成功",
  14126. type: "success",
  14127. });
  14128. this.selectSWorks();
  14129. this.selectStudent();
  14130. })
  14131. .catch((err) => {
  14132. console.error(err);
  14133. });
  14134. }
  14135. },
  14136. deleteComment(wid) {
  14137. this.$confirm("确定删除此评论吗?", "提示", {
  14138. confirmButtonText: "确定",
  14139. cancelButtonText: "取消",
  14140. type: "warning",
  14141. })
  14142. .then(() => {
  14143. let params = {
  14144. id: wid,
  14145. };
  14146. this.ajax
  14147. .get(this.$store.state.api + "deleteComment2", params)
  14148. .then((res) => {
  14149. this.$message({
  14150. message: "删除评论成功",
  14151. type: "success",
  14152. });
  14153. this.selectSWorks();
  14154. this.selectStudent();
  14155. })
  14156. .catch((err) => {
  14157. console.error(err);
  14158. });
  14159. })
  14160. .catch(() => {});
  14161. },
  14162. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  14163. this.commentIndexJson = {
  14164. toolIndex: toolIndex,
  14165. wIndex: wIndex,
  14166. gindex: gindex,
  14167. gid: gid,
  14168. };
  14169. this.commentDetail = [];
  14170. this.commentDialogVisible = true;
  14171. this.commentDetail = w;
  14172. if (w.works && w.type == 1) {
  14173. // this.pptImgUrl = "";
  14174. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14175. if (
  14176. a.indexOf(
  14177. w.works
  14178. .split(".")
  14179. [w.works.split(".").length - 1].toLocaleUpperCase()
  14180. ) != -1
  14181. ) {
  14182. let _uuurl = await this.checkLink(w.works);
  14183. this.pptImgUrl =
  14184. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14185. this.showPDF = false;
  14186. } else if (
  14187. w.works
  14188. .split(".")
  14189. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14190. ) {
  14191. this.pptImgUrl = w.works;
  14192. this.showPDF = true;
  14193. }
  14194. } else if (w.works && w.type == 3) {
  14195. this.videoDetail = {};
  14196. this.playerOptions1.sources[0].src = w.works;
  14197. this.videoDetail = this.playerOptions1;
  14198. // this.videoVisible = true;
  14199. } else if (w.works && w.type == 4) {
  14200. this.eScore = JSON.parse(w.works);
  14201. this.rateJson =
  14202. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14203. this.taskCount
  14204. ].toolChoose[toolIndex].rateJson;
  14205. } else if (w.works && w.type == 10) {
  14206. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  14207. } else if (w.works && w.type == 13) {
  14208. this.wordJson =
  14209. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14210. this.taskCount
  14211. ].toolChoose[toolIndex].wordJson;
  14212. }
  14213. },
  14214. async openScore(w, index) {
  14215. this.wScore = 0;
  14216. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  14217. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  14218. this.commentDetail = [];
  14219. if(w.type == 17){
  14220. this.dialogVisibleENScore = true;
  14221. }else{
  14222. this.dialogVisibleScore = true;
  14223. }
  14224. this.commentDetail = w;
  14225. if (w.works && w.type == 1) {
  14226. this.pptImgUrl = "";
  14227. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  14228. if (
  14229. a.indexOf(
  14230. w.works
  14231. .split(".")
  14232. [w.works.split(".").length - 1].toLocaleUpperCase()
  14233. ) != -1
  14234. ) {
  14235. let _uuurl = await this.checkLink(w.works);
  14236. this.pptImgUrl =
  14237. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  14238. this.showPDF = false;
  14239. } else if (
  14240. w.works
  14241. .split(".")
  14242. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  14243. ) {
  14244. this.pptImgUrl = w.works;
  14245. this.showPDF = true;
  14246. }
  14247. } else if (w.works && w.type == 3) {
  14248. this.videoDetail = {};
  14249. this.playerOptions1.sources[0].src = w.works;
  14250. this.videoDetail = this.playerOptions1;
  14251. }else if(w.type == 17){
  14252. let englishVoiceJson = {}
  14253. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14254. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  14255. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14256. .toolChoose[index].englishVoiceJson
  14257. : {};
  14258. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  14259. }
  14260. },
  14261. addComment(wid, uid, t) {
  14262. if (this.commentText == "") {
  14263. this.$message.error("请输入评论");
  14264. return;
  14265. }
  14266. let params2 = [
  14267. {
  14268. wid: wid,
  14269. lid: uid,
  14270. t: t,
  14271. },
  14272. ];
  14273. this.ajax
  14274. .post(this.$store.state.api + "getComment", params2)
  14275. .then((res) => {
  14276. if (res.data[0].length > 0) {
  14277. this.$message.error("一个作业只能评论一条");
  14278. } else {
  14279. let params = [
  14280. {
  14281. wid: wid,
  14282. lid: uid,
  14283. t: t,
  14284. c: this.commentText,
  14285. },
  14286. ];
  14287. this.ajax
  14288. .post(this.$store.state.api + "insertComment", params)
  14289. .then((res) => {
  14290. this.$message({
  14291. message: "评论成功",
  14292. type: "success",
  14293. });
  14294. this.commentText = "";
  14295. this.selectSWorks();
  14296. this.selectStudent();
  14297. })
  14298. .catch((err) => {
  14299. this.$message.error("评论失败");
  14300. console.error(err);
  14301. });
  14302. }
  14303. })
  14304. .catch((err) => {
  14305. // this.$message.error("评论失败");
  14306. console.error(err);
  14307. });
  14308. },
  14309. scoreWork(wid) {
  14310. if (this.wScore == 0) {
  14311. this.$message.error("请评分");
  14312. return;
  14313. }
  14314. let params = [
  14315. {
  14316. wid: wid,
  14317. score: JSON.stringify({
  14318. wScore: this.wScore,
  14319. detail: this.scoreDetail,
  14320. }),
  14321. },
  14322. ];
  14323. this.ajax
  14324. .post(this.$store.state.api + "scoreWork", params)
  14325. .then((res) => {
  14326. this.$message({
  14327. message: "评分成功",
  14328. type: "success",
  14329. });
  14330. this.wScore = 0;
  14331. this.scoreDetail = "";
  14332. this.dialogVisibleScore = false;
  14333. this.selectSWorks();
  14334. this.selectStudent();
  14335. })
  14336. .catch((err) => {
  14337. this.$message.error("评分失败");
  14338. console.error(err);
  14339. });
  14340. },
  14341. openXz(w, i) {
  14342. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  14343. .taskJson[this.taskCount].toolChoose[i].selectJson
  14344. ? JSON.parse(
  14345. JSON.stringify(
  14346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14347. this.taskCount
  14348. ].toolChoose[i].selectJson
  14349. )
  14350. )
  14351. : { url: "", select: [], answer: [] };
  14352. var a = w.works.split(",");
  14353. for (var k = 0; k < a.length; k++) {
  14354. a[k] = parseInt(a[k]);
  14355. }
  14356. this.selectAnswer = { answer: a, stu: w.sName };
  14357. this.isSelect = true;
  14358. this.dialogVisibleSelect = true;
  14359. },
  14360. openSen(w, i) {
  14361. this.sentenceList1 = JSON.parse(w.works);
  14362. this.sentenceList1.stuName = w.sName;
  14363. this.dialogVisibleSentence1 = true;
  14364. },
  14365. openPj(w, toolindex) {
  14366. this.isStar = true;
  14367. this.eScore = JSON.parse(w);
  14368. this.rateJson =
  14369. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14370. this.taskCount
  14371. ].toolChoose[toolindex].rateJson;
  14372. this.studentEvalDialogVisible = true;
  14373. },
  14374. openEnglishEva(id,i){
  14375. let params = {
  14376. wid: id
  14377. };
  14378. this.ajax
  14379. .get(this.$store.state.api + "selectEngWork", params)
  14380. .then((res) => {
  14381. this.evaEngJson.message = res.data[0][0];
  14382. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  14383. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  14384. .toolChoose[i].englishList;
  14385. this.engEvaDialogVisible = true;
  14386. })
  14387. .catch((err) => {
  14388. console.error(err);
  14389. });
  14390. },
  14391. deleteWorks(id) {
  14392. this.$confirm("确定删除此作业吗?", "提示", {
  14393. confirmButtonText: "确定",
  14394. cancelButtonText: "取消",
  14395. type: "warning",
  14396. })
  14397. .then(() => {
  14398. let params = [
  14399. {
  14400. id: id,
  14401. },
  14402. ];
  14403. this.ajax
  14404. .post(this.$store.state.api + "deleteCourseWork", params)
  14405. .then((res) => {
  14406. this.$message({
  14407. message: "删除成功",
  14408. type: "success",
  14409. });
  14410. this.selectStudent();
  14411. this.selectSWorks();
  14412. this.selectSLook();
  14413. })
  14414. .catch((err) => {
  14415. this.$message.error("网络异常");
  14416. console.error(err);
  14417. });
  14418. })
  14419. .catch(() => {});
  14420. },
  14421. selectSWorks(gindex) {
  14422. //教师查看全部作业
  14423. let params = {
  14424. cid: this.id,
  14425. s: this.courseType,
  14426. t: this.taskCount,
  14427. };
  14428. this.ajax
  14429. .get(this.$store.state.api + "selectSWorks", params)
  14430. .then((res) => {
  14431. var a =
  14432. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14433. this.taskCount
  14434. ].toolChoose;
  14435. var b = res.data[0];
  14436. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14437. var y = [
  14438. "AVI",
  14439. "NAVI",
  14440. "MPEG",
  14441. "ASF",
  14442. "MOV",
  14443. "WMV",
  14444. "3GP",
  14445. "RM",
  14446. "RMVB",
  14447. "FLV",
  14448. "F4V",
  14449. "H.264",
  14450. "H.265",
  14451. "REAL VIDEO",
  14452. "MKV",
  14453. "WebM",
  14454. "HDDVD",
  14455. "MP4",
  14456. "MPG",
  14457. "M4V",
  14458. "MGV",
  14459. "OGV",
  14460. "QTM",
  14461. "STR",
  14462. "AMC",
  14463. "DVX",
  14464. "EVO",
  14465. "DAT",
  14466. "OGG",
  14467. "OGM",
  14468. ];
  14469. var d = res.data[1];
  14470. var e = res.data[2];
  14471. var f = res.data[3];
  14472. let _worksStudent = [];
  14473. var _worksStudent2 = [];
  14474. for (var i = 0; i < a.length; i++) {
  14475. _worksStudent[i] = [];
  14476. _worksStudent2[i] = [];
  14477. if (
  14478. !this.isCloseList[i] ||
  14479. this.isCloseList[i].isClose == undefined
  14480. ) {
  14481. this.isCloseList[i] = { isClose: 0 };
  14482. }
  14483. this.groupStudent[i] = [];
  14484. this.groupStudentUid[i] = [];
  14485. if (this.isGroup) {
  14486. for (
  14487. var groupI = 0;
  14488. groupI < this.courseGroup.group.length;
  14489. groupI++
  14490. ) {
  14491. this.courseGroup.group[groupI].works[i] = [];
  14492. }
  14493. }
  14494. this.isWorksS[i] = [];
  14495. this.checkJson[i] = [];
  14496. if (a[i].tool[0] == 49) {
  14497. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  14498. this.groupStudent[i][gA] = [];
  14499. this.groupStudentUid[i][gA] = [];
  14500. _worksStudent[i][gA] = [];
  14501. _worksStudent2[i][gA] = [];
  14502. this.isCloseList[i][gA] = [];
  14503. for (var g = 0; g < f.length; g++) {
  14504. if (
  14505. f[g].ttype == 2 &&
  14506. this.tcid &&
  14507. this.arrayToArray(
  14508. (f[g].classid ? f[g].classid.split(",") : []),
  14509. this.tcid.split(",")
  14510. ).length == 0
  14511. ) {
  14512. continue;
  14513. }
  14514. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  14515. (f[g].classid ? f[g].classid.split(",") : []),
  14516. this.tcid.split(",")
  14517. ).length !== 0 || this.arrayToArray(
  14518. (f[g].classid ? f[g].classid.split(",") : []),
  14519. this.classId ? this.classId.split(",") : []
  14520. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  14521. this.groupStudent[i][gA].push(f[g]);
  14522. this.groupStudentUid[i][gA].push(f[g].userid);
  14523. }
  14524. }
  14525. }
  14526. this.$forceUpdate();
  14527. }
  14528. for (var j = 0; j < b.length; j++) {
  14529. if (
  14530. b[j].ttype == 2 &&
  14531. this.tcid &&
  14532. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  14533. .length == 0
  14534. ) {
  14535. continue;
  14536. }
  14537. var likesCount = 0;
  14538. var commentCount = 0;
  14539. var isLikes = false;
  14540. var commentJson = [];
  14541. var likeJson = [];
  14542. var data = b[j];
  14543. if (i == b[j].tool) {
  14544. if (data.type == 2 && a[i].tool[0] == 4) {
  14545. // if(JSON.parse(data.content)[0].anwer){
  14546. var checkL =
  14547. JSON.parse(data.content)[0].anwer instanceof Array
  14548. ? JSON.parse(data.content)[0].anwer
  14549. : JSON.parse(data.content)[0].anwer.split(",");
  14550. for (var z = 0; z < checkL.length; z++) {
  14551. if (!this.checkJson[i][z]) {
  14552. this.checkJson[i].push({
  14553. checkCount: [],
  14554. checkPerson: [],
  14555. rightPerson: [],
  14556. });
  14557. }
  14558. if (!this.checkJson[i][z].checkCount.length) {
  14559. this.checkJson[i][z].checkCount = [];
  14560. let _askItemCount = JSON.parse(data.content)[0].askJson
  14561. .askJson[z].askItem;
  14562. for (var aic = 0; aic < _askItemCount; aic++) {
  14563. this.checkJson[i][z].checkCount.push(0);
  14564. }
  14565. }
  14566. if (checkL[z] instanceof Array) {
  14567. if (
  14568. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  14569. checkL[z].sort().join(",")
  14570. ) {
  14571. this.checkJson[i][z].rightPerson.push(data.name);
  14572. }
  14573. for (var q = 0; q < checkL[z].length; q++) {
  14574. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14575. ? this.checkJson[i][z].checkPerson[
  14576. parseInt(checkL[z][q])
  14577. ].push(data.name)
  14578. : (this.checkJson[i][z].checkPerson[
  14579. parseInt(checkL[z][q])
  14580. ] = [data.name]);
  14581. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14582. ? this.checkJson[i][z].checkCount[
  14583. parseInt(checkL[z][q])
  14584. ]++
  14585. : (this.checkJson[i][z].checkCount[
  14586. parseInt(checkL[z][q])
  14587. ] = 1);
  14588. }
  14589. } else {
  14590. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  14591. this.checkJson[i][z].rightPerson.push(data.name);
  14592. }
  14593. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14594. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14595. ? this.checkJson[i][z].checkPerson[
  14596. parseInt(checkL[z])
  14597. ].push(data.name)
  14598. : (this.checkJson[i][z].checkPerson[
  14599. parseInt(checkL[z])
  14600. ] = [data.name]);
  14601. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14602. ? this.checkJson[i][z].checkCount[
  14603. parseInt(checkL[z])
  14604. ]++
  14605. : (this.checkJson[i][z].checkCount[
  14606. parseInt(checkL[z])
  14607. ] = 1);
  14608. }
  14609. }
  14610. }
  14611. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14612. var checkL = JSON.parse(data.content)[0].anwer;
  14613. for (var z = 0; z < checkL.length; z++) {
  14614. if (!this.checkJson[i][z]) {
  14615. this.checkJson[i].push({
  14616. checkCount: [],
  14617. checkPerson: [],
  14618. rightPerson: [],
  14619. });
  14620. }
  14621. if (!this.checkJson[i][z].checkCount.length) {
  14622. this.checkJson[i][z].checkCount = [];
  14623. let _askItemCount = JSON.parse(data.content)[0].testJson
  14624. .testJson[z].testItem;
  14625. for (var aic = 0; aic < _askItemCount; aic++) {
  14626. this.checkJson[i][z].checkCount.push(0);
  14627. }
  14628. }
  14629. if (checkL[z] instanceof Array) {
  14630. if (
  14631. JSON.parse(data.content)[0]
  14632. .testJson.testJson[z].answer.sort()
  14633. .join(",") == checkL[z].sort().join(",")
  14634. ) {
  14635. this.checkJson[i][z].rightPerson.push(data.name);
  14636. }
  14637. for (var q = 0; q < checkL[z].length; q++) {
  14638. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14639. ? this.checkJson[i][z].checkPerson[
  14640. parseInt(checkL[z][q])
  14641. ].push(data.name)
  14642. : (this.checkJson[i][z].checkPerson[
  14643. parseInt(checkL[z][q])
  14644. ] = [data.name]);
  14645. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14646. ? this.checkJson[i][z].checkCount[
  14647. parseInt(checkL[z][q])
  14648. ]++
  14649. : (this.checkJson[i][z].checkCount[
  14650. parseInt(checkL[z][q])
  14651. ] = 1);
  14652. }
  14653. } else {
  14654. if (
  14655. JSON.parse(data.content)[0].testJson.testJson[z]
  14656. .answer == checkL[z]
  14657. ) {
  14658. this.checkJson[i][z].rightPerson.push(data.name);
  14659. }
  14660. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14661. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14662. ? this.checkJson[i][z].checkPerson[
  14663. parseInt(checkL[z])
  14664. ].push(data.name)
  14665. : (this.checkJson[i][z].checkPerson[
  14666. parseInt(checkL[z])
  14667. ] = [data.name]);
  14668. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14669. ? this.checkJson[i][z].checkCount[
  14670. parseInt(checkL[z])
  14671. ]++
  14672. : (this.checkJson[i][z].checkCount[
  14673. parseInt(checkL[z])
  14674. ] = 1);
  14675. }
  14676. }
  14677. }
  14678. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14679. var checkL = JSON.parse(data.content);
  14680. for (var z = 0; z < checkL.length; z++) {
  14681. if (!this.checkJson[i][z]) {
  14682. this.checkJson[i].push({
  14683. checkCount: [],
  14684. checkPerson: [],
  14685. rightPerson: [],
  14686. });
  14687. }
  14688. this.checkJson[i][z].checkPerson.push(data.name);
  14689. if (
  14690. checkL[z].chooseSenList.toString() ==
  14691. checkL[z].rightAnswer.toString()
  14692. ) {
  14693. this.checkJson[i][z].rightPerson.push(data.name);
  14694. }
  14695. }
  14696. }
  14697. for (var k = 0; k < d.length; k++) {
  14698. //点赞
  14699. if (d[k].workId == b[j].id) {
  14700. likesCount++;
  14701. likeJson.push(d[k])
  14702. if (d[k].likesId == this.userid) {
  14703. isLikes = true;
  14704. }
  14705. }
  14706. }
  14707. for (var l = 0; l < e.length; l++) {
  14708. //评论
  14709. if (e[l].workId == b[j].id) {
  14710. if (e[l].comment != "") {
  14711. commentCount++;
  14712. commentJson.push({
  14713. commentText: e[l].comment,
  14714. commentTime: e[l].commentTime,
  14715. commentPeople: e[l].commentPeople,
  14716. userid: e[l].userid,
  14717. wid: e[l].id,
  14718. });
  14719. }
  14720. }
  14721. }
  14722. if (
  14723. (b[j].type == 1 ||
  14724. b[j].type == 4 ||
  14725. b[j].type == 5 ||
  14726. b[j].type == 6 ||
  14727. b[j].type == 12 ||
  14728. b[j].type == 7) &&
  14729. a[i].tool[0] != 15 &&
  14730. a[i].tool[0] != 4 &&
  14731. a[i].tool[0] != 45 &&
  14732. a[i].tool[0] != 50 &&
  14733. a[i].tool[0] != 32 &&
  14734. a[i].tool[0] != 57 &&
  14735. a[i].tool[0] != 52
  14736. ) {
  14737. if (
  14738. c.indexOf(
  14739. b[j].content
  14740. .split(".")
  14741. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14742. ) != -1 &&
  14743. a[i].tool[0] == 16 &&
  14744. b[j].atool != 50
  14745. ) {
  14746. let _works = {
  14747. userid: b[j].userid,
  14748. ateacher: b[j].ateacher,
  14749. wid: b[j].id,
  14750. works: b[j].content,
  14751. sName: b[j].name,
  14752. type: 1,
  14753. ttype:b[j].ttype,
  14754. time: b[j].time,
  14755. score: b[j].score,
  14756. img: b[j].img,
  14757. likesCount: likesCount,
  14758. commentCount: commentCount,
  14759. isLikes: isLikes,
  14760. commentJson: commentJson,
  14761. likeJson:likeJson
  14762. };
  14763. if (this.isGroup) {
  14764. let isGw = 1;
  14765. for (
  14766. var groupI = 0;
  14767. groupI < this.courseGroup.group.length;
  14768. groupI++
  14769. ) {
  14770. let gid = this.courseGroup.group[groupI].id;
  14771. if (
  14772. this.courseGroupStudentUid[gid].indexOf(
  14773. b[j].userid
  14774. ) != -1
  14775. ) {
  14776. isGw = 2;
  14777. this.courseGroup.group[groupI].works[i].push(_works);
  14778. break;
  14779. }
  14780. }
  14781. if (isGw == 1) {
  14782. _worksStudent[i].push(_works);
  14783. }
  14784. } else {
  14785. _worksStudent[i].push(_works);
  14786. }
  14787. _worksStudent2[i].push(_works);
  14788. this.isWorksS[i].push({
  14789. uid: b[j].userid,
  14790. sName: b[j].name,
  14791. });
  14792. } else if (
  14793. y.indexOf(
  14794. b[j].content
  14795. .split(".")
  14796. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14797. ) != -1 &&
  14798. a[i].tool[0] == 16 &&
  14799. b[j].atool != 50
  14800. ) {
  14801. let _works = {
  14802. userid: b[j].userid,
  14803. ateacher: b[j].ateacher,
  14804. wid: b[j].id,
  14805. works: b[j].content,
  14806. sName: b[j].name,
  14807. type: 3,
  14808. ttype:b[j].ttype,
  14809. time: b[j].time,
  14810. score: b[j].score,
  14811. img: b[j].img,
  14812. likesCount: likesCount,
  14813. commentCount: commentCount,
  14814. isLikes: isLikes,
  14815. commentJson: commentJson,
  14816. likeJson:likeJson
  14817. };
  14818. if (this.isGroup) {
  14819. let isGw = 1;
  14820. for (
  14821. var groupI = 0;
  14822. groupI < this.courseGroup.group.length;
  14823. groupI++
  14824. ) {
  14825. let gid = this.courseGroup.group[groupI].id;
  14826. if (
  14827. this.courseGroupStudentUid[gid].indexOf(
  14828. b[j].userid
  14829. ) != -1
  14830. ) {
  14831. isGw = 2;
  14832. this.courseGroup.group[groupI].works[i].push(_works);
  14833. break;
  14834. }
  14835. }
  14836. if (isGw == 1) {
  14837. _worksStudent[i].push(_works);
  14838. }
  14839. } else {
  14840. _worksStudent[i].push(_works);
  14841. }
  14842. _worksStudent2[i].push(_works);
  14843. this.isWorksS[i].push({
  14844. uid: b[j].userid,
  14845. sName: b[j].name,
  14846. });
  14847. } else if (b[j].type == 6 && b[j].atool != 50) {
  14848. let _works = {
  14849. userid: b[j].userid,
  14850. ateacher: b[j].ateacher,
  14851. wid: b[j].id,
  14852. works: b[j].content,
  14853. sName: b[j].name,
  14854. type: 4,
  14855. ttype:b[j].ttype,
  14856. time: b[j].time,
  14857. score: b[j].score,
  14858. img: b[j].img,
  14859. likesCount: likesCount,
  14860. commentCount: commentCount,
  14861. isLikes: isLikes,
  14862. commentJson: commentJson,
  14863. likeJson:likeJson
  14864. };
  14865. _worksStudent[i].push(_works);
  14866. _worksStudent2[i].push(_works);
  14867. this.isWorksS[i].push({
  14868. uid: b[j].userid,
  14869. sName: b[j].name,
  14870. });
  14871. } else if (b[j].type == 7 && b[j].atool != 50) {
  14872. let _work = {
  14873. userid: b[j].userid,
  14874. ateacher: b[j].ateacher,
  14875. wid: b[j].id,
  14876. works: b[j].content,
  14877. sName: b[j].name,
  14878. type: 5,
  14879. ttype:b[j].ttype,
  14880. time: b[j].time,
  14881. score: b[j].score,
  14882. img: b[j].img,
  14883. likesCount: likesCount,
  14884. commentCount: commentCount,
  14885. isLikes: isLikes,
  14886. commentJson: commentJson,
  14887. likeJson:likeJson
  14888. };
  14889. _worksStudent[i].push(_work);
  14890. _worksStudent2[i].push(_work);
  14891. this.isWorksS[i].push({
  14892. uid: b[j].userid,
  14893. sName: b[j].name,
  14894. });
  14895. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14896. let _works = {
  14897. userid: b[j].userid,
  14898. ateacher: b[j].ateacher,
  14899. wid: b[j].id,
  14900. works: b[j].content,
  14901. sName: b[j].name,
  14902. type: 12,
  14903. ttype:b[j].ttype,
  14904. time: b[j].time,
  14905. score: b[j].score,
  14906. img: b[j].img,
  14907. likesCount: likesCount,
  14908. commentCount: commentCount,
  14909. isLikes: isLikes,
  14910. commentJson: commentJson,
  14911. likeJson:likeJson
  14912. };
  14913. if (this.isGroup) {
  14914. let isGw = 1;
  14915. for (
  14916. var groupI = 0;
  14917. groupI < this.courseGroup.group.length;
  14918. groupI++
  14919. ) {
  14920. let gid = this.courseGroup.group[groupI].id;
  14921. if (
  14922. this.courseGroupStudentUid[gid].indexOf(
  14923. b[j].userid
  14924. ) != -1
  14925. ) {
  14926. isGw = 2;
  14927. this.courseGroup.group[groupI].works[i].push(_works);
  14928. break;
  14929. }
  14930. }
  14931. if (isGw == 1) {
  14932. _worksStudent[i].push(_works);
  14933. }
  14934. } else {
  14935. _worksStudent[i].push(_works);
  14936. }
  14937. _worksStudent2[i].push(_works);
  14938. this.isWorksS[i].push({
  14939. uid: b[j].userid,
  14940. sName: b[j].name,
  14941. });
  14942. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14943. let _works = {
  14944. userid: b[j].userid,
  14945. ateacher: b[j].ateacher,
  14946. wid: b[j].id,
  14947. works: b[j].content,
  14948. sName: b[j].name,
  14949. type: 0,
  14950. ttype:b[j].ttype,
  14951. time: b[j].time,
  14952. score: b[j].score,
  14953. img: b[j].img,
  14954. likesCount: likesCount,
  14955. commentCount: commentCount,
  14956. isLikes: isLikes,
  14957. commentJson: commentJson,
  14958. likeJson:likeJson
  14959. };
  14960. if (this.isGroup) {
  14961. let isGw = 1;
  14962. for (
  14963. var groupI = 0;
  14964. groupI < this.courseGroup.group.length;
  14965. groupI++
  14966. ) {
  14967. let gid = this.courseGroup.group[groupI].id;
  14968. if (
  14969. this.courseGroupStudentUid[gid].indexOf(
  14970. b[j].userid
  14971. ) != -1
  14972. ) {
  14973. isGw = 2;
  14974. this.courseGroup.group[groupI].works[i].push(_works);
  14975. break;
  14976. }
  14977. }
  14978. if (isGw == 1) {
  14979. _worksStudent[i].push(_works);
  14980. }
  14981. } else {
  14982. _worksStudent[i].push(_works);
  14983. }
  14984. _worksStudent2[i].push(_works);
  14985. this.isWorksS[i].push({
  14986. uid: b[j].userid,
  14987. sName: b[j].name,
  14988. });
  14989. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14990. let _works = {
  14991. userid: b[j].userid,
  14992. ateacher: b[j].ateacher,
  14993. wid: b[j].id,
  14994. works: b[j].content,
  14995. sName: b[j].name,
  14996. type: 0,
  14997. ttype:b[j].ttype,
  14998. time: b[j].time,
  14999. score: b[j].score,
  15000. img: b[j].img,
  15001. likesCount: likesCount,
  15002. commentCount: commentCount,
  15003. isLikes: isLikes,
  15004. commentJson: commentJson,
  15005. likeJson:likeJson
  15006. };
  15007. if (this.isGroup) {
  15008. let isGw = 1;
  15009. for (
  15010. var groupI = 0;
  15011. groupI < this.courseGroup.group.length;
  15012. groupI++
  15013. ) {
  15014. let gid = this.courseGroup.group[groupI].id;
  15015. if (
  15016. this.courseGroupStudentUid[gid].indexOf(
  15017. b[j].userid
  15018. ) != -1
  15019. ) {
  15020. isGw = 2;
  15021. this.courseGroup.group[groupI].works[i].push(_works);
  15022. break;
  15023. }
  15024. }
  15025. if (isGw == 1) {
  15026. _worksStudent[i].push(_works);
  15027. }
  15028. } else {
  15029. _worksStudent[i].push(_works);
  15030. }
  15031. _worksStudent2[i].push(_works);
  15032. this.isWorksS[i].push({
  15033. uid: b[j].userid,
  15034. sName: b[j].name,
  15035. });
  15036. }
  15037. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15038. let _works = {
  15039. userid: b[j].userid,
  15040. ateacher: b[j].ateacher,
  15041. wid: b[j].id,
  15042. works: b[j].content,
  15043. sName: b[j].name,
  15044. type: 2,
  15045. ttype:b[j].ttype,
  15046. time: b[j].time,
  15047. score: b[j].score,
  15048. img: b[j].img,
  15049. likesCount: likesCount,
  15050. commentCount: commentCount,
  15051. isLikes: isLikes,
  15052. commentJson: commentJson,
  15053. likeJson:likeJson
  15054. };
  15055. if (this.isGroup) {
  15056. let isGw = 1;
  15057. for (
  15058. var groupI = 0;
  15059. groupI < this.courseGroup.group.length;
  15060. groupI++
  15061. ) {
  15062. let gid = this.courseGroup.group[groupI].id;
  15063. if (
  15064. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  15065. -1
  15066. ) {
  15067. isGw = 2;
  15068. this.courseGroup.group[groupI].works[i].push(_works);
  15069. break;
  15070. }
  15071. }
  15072. if (isGw == 1) {
  15073. _worksStudent[i].push(_works);
  15074. }
  15075. } else {
  15076. _worksStudent[i].push(_works);
  15077. }
  15078. _worksStudent2[i].push(_works);
  15079. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15080. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15081. //问卷
  15082. let _work = {
  15083. userid: b[j].userid,
  15084. ateacher: b[j].ateacher,
  15085. wid: b[j].id,
  15086. works: b[j].content,
  15087. sName: b[j].name,
  15088. type: 2,
  15089. ttype:b[j].ttype,
  15090. time: b[j].time,
  15091. score: b[j].score,
  15092. img: b[j].img,
  15093. likesCount: likesCount,
  15094. commentCount: commentCount,
  15095. isLikes: isLikes,
  15096. commentJson: commentJson,
  15097. likeJson:likeJson
  15098. };
  15099. _worksStudent[i].push(_work);
  15100. _worksStudent2[i].push(_work);
  15101. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15102. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15103. //选择题
  15104. let _work = {
  15105. userid: b[j].userid,
  15106. ateacher: b[j].ateacher,
  15107. wid: b[j].id,
  15108. works: b[j].content,
  15109. sName: b[j].name,
  15110. type: 8,
  15111. ttype:b[j].ttype,
  15112. time: b[j].time,
  15113. score: b[j].score,
  15114. img: b[j].img,
  15115. likesCount: likesCount,
  15116. commentCount: commentCount,
  15117. isLikes: isLikes,
  15118. commentJson: commentJson,
  15119. likeJson:likeJson
  15120. };
  15121. _worksStudent[i].push(_work);
  15122. _worksStudent2[i].push(_work);
  15123. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15124. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15125. //选择题
  15126. let _work = {
  15127. userid: b[j].userid,
  15128. ateacher: b[j].ateacher,
  15129. wid: b[j].id,
  15130. works: b[j].content,
  15131. sName: b[j].name,
  15132. type: 9,
  15133. ttype:b[j].ttype,
  15134. time: b[j].time,
  15135. score: b[j].score,
  15136. img: b[j].img,
  15137. likesCount: likesCount,
  15138. commentCount: commentCount,
  15139. isLikes: isLikes,
  15140. commentJson: commentJson,
  15141. likeJson:likeJson
  15142. };
  15143. _worksStudent[i].push(_work);
  15144. _worksStudent2[i].push(_work);
  15145. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15146. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15147. //选择题
  15148. let _work = {
  15149. userid: b[j].userid,
  15150. ateacher: b[j].ateacher,
  15151. wid: b[j].id,
  15152. works: b[j].content,
  15153. sName: b[j].name,
  15154. type: 10,
  15155. ttype:b[j].ttype,
  15156. time: b[j].time,
  15157. score: b[j].score,
  15158. img: b[j].img,
  15159. likesCount: likesCount,
  15160. commentCount: commentCount,
  15161. isLikes: isLikes,
  15162. commentJson: commentJson,
  15163. likeJson:likeJson
  15164. };
  15165. _worksStudent[i].push(_work);
  15166. _worksStudent2[i].push(_work);
  15167. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15168. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15169. //选择题
  15170. let _work = {
  15171. userid: b[j].userid,
  15172. ateacher: b[j].ateacher,
  15173. wid: b[j].id,
  15174. works: b[j].content,
  15175. sName: b[j].name,
  15176. type: 13,
  15177. ttype:b[j].ttype,
  15178. time: b[j].time,
  15179. score: b[j].score,
  15180. img: b[j].img,
  15181. likesCount: likesCount,
  15182. commentCount: commentCount,
  15183. isLikes: isLikes,
  15184. commentJson: commentJson,
  15185. likeJson:likeJson
  15186. };
  15187. _worksStudent[i].push(_work);
  15188. _worksStudent2[i].push(_work);
  15189. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15190. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15191. //选择题
  15192. let _work = {
  15193. userid: b[j].userid,
  15194. ateacher: b[j].ateacher,
  15195. wid: b[j].id,
  15196. works: b[j].content,
  15197. sName: b[j].name,
  15198. type: 16,
  15199. ttype:b[j].ttype,
  15200. time: b[j].time,
  15201. score: b[j].score,
  15202. img: b[j].img,
  15203. likesCount: likesCount,
  15204. commentCount: commentCount,
  15205. isLikes: isLikes,
  15206. commentJson: commentJson,
  15207. aiCode: b[j].aiCode,
  15208. teacherCode: b[j].teacherCode,
  15209. likeJson:likeJson
  15210. };
  15211. _worksStudent[i].push(_work);
  15212. _worksStudent2[i].push(_work);
  15213. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15214. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15215. //选择题
  15216. let _work = {
  15217. userid: b[j].userid,
  15218. ateacher: b[j].ateacher,
  15219. wid: b[j].id,
  15220. works: b[j].content,
  15221. sName: b[j].name,
  15222. type: 17,
  15223. ttype:b[j].ttype,
  15224. time: b[j].time,
  15225. score: b[j].score,
  15226. img: b[j].img,
  15227. likesCount: likesCount,
  15228. commentCount: commentCount,
  15229. isLikes: isLikes,
  15230. commentJson: commentJson,
  15231. likeJson:likeJson
  15232. };
  15233. _worksStudent[i].push(_work);
  15234. _worksStudent2[i].push(_work);
  15235. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15236. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15237. //交互视频
  15238. let _work = {
  15239. userid: b[j].userid,
  15240. ateacher: b[j].ateacher,
  15241. wid: b[j].id,
  15242. works: b[j].content,
  15243. sName: b[j].name,
  15244. type: 14,
  15245. ttype:b[j].ttype,
  15246. time: b[j].time,
  15247. score: b[j].score,
  15248. img: b[j].img,
  15249. likesCount: likesCount,
  15250. commentCount: commentCount,
  15251. isLikes: isLikes,
  15252. commentJson: commentJson,
  15253. likeJson:likeJson
  15254. };
  15255. _worksStudent[i].push(_work);
  15256. _worksStudent2[i].push(_work);
  15257. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15258. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  15259. let _gindex = JSON.parse(b[j].content);
  15260. if (
  15261. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  15262. b[j].userid
  15263. ) != -1
  15264. ) {
  15265. let _work = {
  15266. userid: b[j].userid,
  15267. ateacher: b[j].ateacher,
  15268. wid: b[j].id,
  15269. works: _gindex.url,
  15270. sName: b[j].name,
  15271. type: _gindex.type,
  15272. ttype:b[j].ttype,
  15273. time: b[j].time,
  15274. score: b[j].score,
  15275. img: b[j].img,
  15276. likesCount: likesCount,
  15277. commentCount: commentCount,
  15278. isLikes: isLikes,
  15279. commentJson: commentJson,
  15280. likeJson:likeJson
  15281. };
  15282. _worksStudent[i][_gindex.groupIndex].push(_work);
  15283. _worksStudent2[i][_gindex.groupIndex].push(_work);
  15284. }
  15285. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15286. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  15287. let _work = {
  15288. userid: b[j].userid,
  15289. ateacher: b[j].ateacher,
  15290. wid: b[j].id,
  15291. works: b[j].content,
  15292. sName: b[j].name ? b[j].name : b[j].userid,
  15293. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  15294. ttype:b[j].ttype,
  15295. time: b[j].time,
  15296. score: b[j].score,
  15297. img: b[j].img,
  15298. likesCount: likesCount,
  15299. commentCount: commentCount,
  15300. isLikes: isLikes,
  15301. commentJson: commentJson,
  15302. likeJson:likeJson
  15303. };
  15304. _worksStudent[i].push(_work);
  15305. _worksStudent2[i].push(_work);
  15306. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15307. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  15308. let _work = {
  15309. userid: b[j].userid,
  15310. ateacher: b[j].ateacher,
  15311. wid: b[j].id,
  15312. works: b[j].content,
  15313. sName: b[j].name ? b[j].name : b[j].userid,
  15314. type: 12,
  15315. ttype:b[j].ttype,
  15316. time: b[j].time,
  15317. score: b[j].score,
  15318. img: b[j].img,
  15319. likesCount: likesCount,
  15320. commentCount: commentCount,
  15321. isLikes: isLikes,
  15322. commentJson: commentJson,
  15323. likeJson:likeJson
  15324. };
  15325. _worksStudent[i].push(_work);
  15326. _worksStudent2[i].push(_work);
  15327. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15328. } else if (
  15329. a[i].tool[0] == 57 &&
  15330. b[j].atool == 57 &&
  15331. b[j].type == 12
  15332. ) {
  15333. let _work = {
  15334. userid: b[j].userid,
  15335. ateacher: b[j].ateacher,
  15336. wid: b[j].id,
  15337. works: b[j].content,
  15338. sName: b[j].name ? b[j].name : b[j].userid,
  15339. type: 12,
  15340. ttype:b[j].ttype,
  15341. time: b[j].time,
  15342. score: b[j].score,
  15343. img: b[j].img,
  15344. likesCount: likesCount,
  15345. commentCount: commentCount,
  15346. isLikes: isLikes,
  15347. commentJson: commentJson,
  15348. likeJson:likeJson
  15349. };
  15350. _worksStudent[i].push(_work);
  15351. _worksStudent2[i].push(_work);
  15352. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15353. } else if (
  15354. a[i].tool[0] == 57 &&
  15355. b[j].atool == 57 &&
  15356. b[j].type == 15
  15357. ) {
  15358. let _work = {
  15359. userid: b[j].userid,
  15360. ateacher: b[j].ateacher,
  15361. wid: b[j].id,
  15362. works: b[j].content,
  15363. sName: b[j].name ? b[j].name : b[j].userid,
  15364. type: 15,
  15365. ttype:b[j].ttype,
  15366. time: b[j].time,
  15367. score: b[j].score,
  15368. img: b[j].img,
  15369. likesCount: likesCount,
  15370. commentCount: commentCount,
  15371. isLikes: isLikes,
  15372. commentJson: commentJson,
  15373. likeJson:likeJson
  15374. };
  15375. _worksStudent[i].push(_work);
  15376. _worksStudent2[i].push(_work);
  15377. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  15378. }
  15379. }
  15380. }
  15381. if (_worksStudent[i] && _worksStudent[i].length) {
  15382. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  15383. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15384. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15385. var scoreA = parseFloat(jscoreA);
  15386. var scoreB = parseFloat(jscoreB);
  15387. if (scoreA == scoreB) {
  15388. return b.likesCount - a.likesCount;
  15389. }
  15390. return scoreB - scoreA;
  15391. });
  15392. if (this.isGroup) {
  15393. for (
  15394. var groupI = 0;
  15395. groupI < this.courseGroup.group.length;
  15396. groupI++
  15397. ) {
  15398. this.courseGroup.group[groupI].works[i] =
  15399. this.courseGroup.group[groupI].works[i].sort(function (
  15400. a,
  15401. b
  15402. ) {
  15403. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  15404. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  15405. var scoreA = parseFloat(jscoreA);
  15406. var scoreB = parseFloat(jscoreB);
  15407. if (scoreA == scoreB) {
  15408. return b.likesCount - a.likesCount;
  15409. }
  15410. return scoreB - scoreA;
  15411. });
  15412. }
  15413. }
  15414. }
  15415. }
  15416. this.timeWorkList = _worksStudent2;
  15417. for (var i = 0; i < a.length; i++) {
  15418. for (var j = 0; j < b.length; j++) {
  15419. var data = b[j];
  15420. if (i == b[j].tool) {
  15421. if (data.type == 2 || data.type == 8) {
  15422. for (var z = 0; z < this.checkJson[i].length; z++) {
  15423. this.checkJson[i][z].checkPerent = [];
  15424. this.checkJson[i][z].right = Math.round(
  15425. (this.checkJson[i][z].rightPerson.length /
  15426. parseInt(_worksStudent[i].length)) *
  15427. 100
  15428. );
  15429. let aaaa = this.checkJson[i][z];
  15430. for (
  15431. var k = 0;
  15432. k < this.checkJson[i][z].checkCount.length;
  15433. k++
  15434. ) {
  15435. this.checkJson[i][z].checkPerent.push(
  15436. Math.round(
  15437. (this.checkJson[i][z].checkCount[k] /
  15438. parseInt(_worksStudent[i].length)) *
  15439. 100
  15440. )
  15441. );
  15442. }
  15443. }
  15444. } else if (data.type == 9) {
  15445. for (var z = 0; z < this.checkJson[i].length; z++) {
  15446. this.checkJson[i][z].checkPerent = [];
  15447. this.checkJson[i][z].right = Math.round(
  15448. (this.checkJson[i][z].rightPerson.length /
  15449. this.checkJson[i][z].checkPerson.length) *
  15450. 100
  15451. );
  15452. }
  15453. }
  15454. }
  15455. }
  15456. }
  15457. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  15458. this.joinGroup(gindex);
  15459. }
  15460. this.worksStudent = _worksStudent;
  15461. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  15462. this.worksStudentCopy=this.worksStudent
  15463. this.AIloading=[]
  15464. this.loopLoading=[]
  15465. this.worksStudent.forEach((e,index)=>{
  15466. this.loopLoading.push({loading:false})
  15467. this.AIloading.push([])
  15468. e.forEach(k=>{
  15469. this.AIloading[index].push({loading:false,sco:0})
  15470. })
  15471. })
  15472. }
  15473. this.selectWorksStudent();
  15474. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  15475. this.$nextTick(()=>{
  15476. setTimeout(()=>{
  15477. setTimeout(()=>{
  15478. this.panToolHeight('tool-'+ci);
  15479. }, 500)
  15480. }, 0)
  15481. })
  15482. }
  15483. })
  15484. .catch((err) => {
  15485. console.error(err);
  15486. });
  15487. },
  15488. pngToWhiteBg(file) {
  15489. const _file = file;
  15490. let read = new FileReader();
  15491. read.readAsDataURL(file); // 文件转base64
  15492. return new Promise((resolve, reject) => {
  15493. read.onload = (e) => {
  15494. let img = new Image();
  15495. img.src = e.target.result;
  15496. img.onload = async () => {
  15497. // 生成canvas
  15498. let canvas = document.createElement("canvas");
  15499. let context = canvas.getContext("2d");
  15500. // 绘制图片到canvas上
  15501. canvas.width = img.width;
  15502. canvas.height = img.height;
  15503. // 在canvas绘制前填充白色背景
  15504. context.fillStyle = "#fff";
  15505. context.fillRect(0, 0, canvas.width, canvas.height);
  15506. context.drawImage(img, 0, 0);
  15507. let base64 = canvas.toDataURL(file["type"], 1);
  15508. let newFile = this.dataUrlToFile(base64, _file);
  15509. resolve(newFile);
  15510. };
  15511. };
  15512. });
  15513. },
  15514. dataUrlToFile(dataurl, file) {
  15515. let arr = dataurl.split(","),
  15516. mime = arr[0].match(/:(.*?);/)[1],
  15517. bstr = atob(arr[1]),
  15518. n = bstr.length,
  15519. u8arr = new Uint8Array(n);
  15520. while (n--) {
  15521. u8arr[n] = bstr.charCodeAt(n);
  15522. }
  15523. // return new Blob([u8arr], { type: mime });
  15524. return new File([new Blob([u8arr], { type: mime })], file.name, {
  15525. type: mime,
  15526. });
  15527. },
  15528. async beforeUpload1(event, type, i) {
  15529. // this.$message.success('进入上传')
  15530. var file = "";
  15531. if (type == 5) {
  15532. file = event;
  15533. } else {
  15534. file = event.target.files[0];
  15535. }
  15536. var credentials = {
  15537. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15538. secretAccessKey: "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",
  15539. }; //秘钥形式的登录上传
  15540. window.AWS.config.update(credentials);
  15541. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15542. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15543. var _this = this;
  15544. _this.progress = 0;
  15545. _this.proVisible = true;
  15546. _this.isFinishSize = 0;
  15547. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  15548. var b = [
  15549. "DOC",
  15550. "DOCX",
  15551. "DOCM",
  15552. "DOTM",
  15553. "DOTX",
  15554. "PPTX",
  15555. "PPSX",
  15556. "PPT",
  15557. "PPS",
  15558. "PPTM",
  15559. "POTM",
  15560. "PPAM",
  15561. "POTX",
  15562. "PPSM",
  15563. ];
  15564. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15565. var photoA = [
  15566. "BMP",
  15567. "GIF",
  15568. "PNG",
  15569. "JPEG",
  15570. "JPEG",
  15571. "JPG",
  15572. "TIF",
  15573. "PCX",
  15574. "TGA",
  15575. "EXIF",
  15576. "FPX",
  15577. "SVG",
  15578. "APNG",
  15579. ];
  15580. // if (
  15581. // b.indexOf(
  15582. // file.name
  15583. // .split(".")
  15584. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15585. // ) != -1
  15586. // ) {
  15587. // if (file.size / 1024 / 1024 > 10) {
  15588. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  15589. // return;
  15590. // }
  15591. // } else if (
  15592. // excelA.indexOf(
  15593. // file.name
  15594. // .split(".")
  15595. // [file.name.split(".").length - 1].toLocaleUpperCase()
  15596. // ) != "-1"
  15597. // ) {
  15598. // if (file.size / 1024 / 1024 > 5) {
  15599. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  15600. // return;
  15601. // }
  15602. // }
  15603. if (
  15604. photoA.indexOf(
  15605. file.name
  15606. .split(".")
  15607. [file.name.split(".").length - 1].toLocaleUpperCase()
  15608. ) != -1 &&
  15609. type != 4
  15610. ) {
  15611. // const blob = await imageConversion.compress(file, 0.8)
  15612. file = await this.pngToWhiteBg(file);
  15613. const blob = await imageConversion.compressAccurately(file, 256);
  15614. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15615. file = new File([blob], file.name, { type: file.type });
  15616. }
  15617. if (file) {
  15618. var params = {
  15619. Key:
  15620. file.name.split(".")[0] +
  15621. new Date().getTime() +
  15622. "." +
  15623. file.name.split(".")[file.name.split(".").length - 1],
  15624. ContentType: file.type,
  15625. Body: file,
  15626. "Access-Control-Allow-Credentials": "*",
  15627. ACL: "public-read",
  15628. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15629. var options = {
  15630. // partSize: 2048 * 1024 * 1024,
  15631. partSize: 1024 * 1024 * 1024,
  15632. queueSize: 2,
  15633. leavePartsOnError: true,
  15634. };
  15635. bucket
  15636. .upload(params, options)
  15637. .on("httpUploadProgress", function (evt) {
  15638. //这里可以写进度条
  15639. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15640. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  15641. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  15642. })
  15643. .send(function (err, data) {
  15644. _this.progress = 100;
  15645. _this.isFinishSize = _this.isAllSize;
  15646. setTimeout(() => {
  15647. _this.proVisible = false;
  15648. }, 1000);
  15649. if (err) {
  15650. var a = _this.$refs.upload1.uploadFiles;
  15651. a.splice(a.length - 1, a.length);
  15652. _this.$message.error("上传失败");
  15653. } else {
  15654. // _this.$message.success('上传成功')
  15655. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15656. var c = [
  15657. "AVI",
  15658. "NAVI",
  15659. "MPEG",
  15660. "ASF",
  15661. "MOV",
  15662. "WMV",
  15663. "3GP",
  15664. "RM",
  15665. "RMVB",
  15666. "FLV",
  15667. "F4V",
  15668. "H.264",
  15669. "H.265",
  15670. "REAL VIDEO",
  15671. "MKV",
  15672. "WebM",
  15673. "HDDVD",
  15674. "MP4",
  15675. "MPG",
  15676. "M4V",
  15677. "MGV",
  15678. "OGV",
  15679. "QTM",
  15680. "STR",
  15681. "AMC",
  15682. "DVX",
  15683. "EVO",
  15684. "DAT",
  15685. "OGG",
  15686. "OGM",
  15687. ];
  15688. if (type == 1) {
  15689. _this.studyJuri[0].cover.push({
  15690. name: file.name,
  15691. url: data.Location,
  15692. uid: file.uid,
  15693. });
  15694. if (
  15695. c.indexOf(
  15696. _this.studyJuri[0].cover[0].url
  15697. .split(".")
  15698. [
  15699. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15700. ].toLocaleUpperCase()
  15701. ) != -1
  15702. ) {
  15703. _this.fileType = 2;
  15704. } else if (
  15705. b.indexOf(
  15706. _this.studyJuri[0].cover[0].url
  15707. .split(".")
  15708. [
  15709. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15710. ].toLocaleUpperCase()
  15711. ) != -1
  15712. ) {
  15713. _this.fileType = 1;
  15714. } else if (
  15715. photoA.indexOf(
  15716. _this.studyJuri[0].cover[0].url
  15717. .split(".")
  15718. [
  15719. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15720. ].toLocaleUpperCase()
  15721. ) != -1
  15722. ) {
  15723. _this.fileType = 0;
  15724. } else {
  15725. _this.fileType = 3;
  15726. }
  15727. _this.imgChange(null, null, type);
  15728. } else if (type == 2) {
  15729. _this.upToolImg = data.Location;
  15730. _this.imgChange(null, null, type);
  15731. _this.addCourseWorks(i);
  15732. } else if (type == 4) {
  15733. _this.addPz("3", data.Location);
  15734. } else if (type == 5) {
  15735. _this.addImgDrawImG(data.Location);
  15736. } else if (type == 6) {
  15737. var _ftype = 1;
  15738. if (
  15739. c.indexOf(
  15740. data.Location.split(".")[
  15741. data.Location.split(".").length - 1
  15742. ].toLocaleUpperCase()
  15743. ) != -1
  15744. ) {
  15745. _ftype = 5;
  15746. } else if (
  15747. b.indexOf(
  15748. data.Location.split(".")[
  15749. data.Location.split(".").length - 1
  15750. ].toLocaleUpperCase()
  15751. ) != -1
  15752. ) {
  15753. _ftype = 4;
  15754. } else {
  15755. _ftype = 1;
  15756. }
  15757. _this.plworkFile.push({
  15758. name: file.name,
  15759. url: data.Location,
  15760. uid: file.uid,
  15761. fileType: _ftype,
  15762. username:
  15763. _this.plworkFile.length > 10
  15764. ? _this.plworkFile.length + 1
  15765. : "0" + (_this.plworkFile.length + 1),
  15766. });
  15767. } else if (type == 7) {
  15768. _this.addCourseWorksGong(i, data.Location, 32);
  15769. } else if (type == 8) {
  15770. _this.addCourseWorksGong(i, data.Location, 57);
  15771. }
  15772. _this.imgChange(null, null, type);
  15773. console.log(data.Location);
  15774. // _this.$message.success('上传成功'+data.Location)
  15775. }
  15776. });
  15777. }
  15778. },
  15779. async beforeUpload3(event, type, i) {
  15780. // this.$message.success('进入上传')
  15781. let file = "";
  15782. let cfindex2 = 0;
  15783. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15784. file = event.target.files[cfindex];
  15785. var credentials = {
  15786. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15787. secretAccessKey: "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",
  15788. }; //秘钥形式的登录上传
  15789. window.AWS.config.update(credentials);
  15790. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15791. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15792. var _this = this;
  15793. // _this.progress = 0;
  15794. _this.proVisible2 = true;
  15795. var b = [
  15796. "DOC",
  15797. "DOCX",
  15798. "DOCM",
  15799. "DOTM",
  15800. "DOTX",
  15801. "PPTX",
  15802. "PPSX",
  15803. "PPT",
  15804. "PPS",
  15805. "PPTM",
  15806. "POTM",
  15807. "PPAM",
  15808. "POTX",
  15809. "PPSM",
  15810. ];
  15811. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15812. var photoA = [
  15813. "BMP",
  15814. "GIF",
  15815. "PNG",
  15816. "JPEG",
  15817. "JPG",
  15818. "TIF",
  15819. "PCX",
  15820. "TGA",
  15821. "EXIF",
  15822. "FPX",
  15823. "SVG",
  15824. "APNG",
  15825. ];
  15826. if (
  15827. photoA.indexOf(
  15828. file.name
  15829. .split(".")
  15830. [file.name.split(".").length - 1].toLocaleUpperCase()
  15831. ) != -1 &&
  15832. type != 4
  15833. ) {
  15834. // const blob = await imageConversion.compress(file, 0.8)
  15835. file = await this.pngToWhiteBg(file);
  15836. const blob = await imageConversion.compressAccurately(file, 256);
  15837. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15838. file = new File([blob], file.name, { type: file.type });
  15839. }
  15840. if (file) {
  15841. var params = {
  15842. Key:
  15843. file.name.split(".")[0] +
  15844. new Date().getTime() +
  15845. "." +
  15846. file.name.split(".")[file.name.split(".").length - 1],
  15847. ContentType: file.type,
  15848. Body: file,
  15849. "Access-Control-Allow-Credentials": "*",
  15850. ACL: "public-read",
  15851. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15852. var options = {
  15853. // partSize: 2048 * 1024 * 1024,
  15854. partSize: 1024 * 1024 * 1024,
  15855. queueSize: 2,
  15856. leavePartsOnError: true,
  15857. };
  15858. bucket
  15859. .upload(params, options)
  15860. .on("httpUploadProgress", function (evt) {
  15861. //这里可以写进度条
  15862. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15863. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15864. })
  15865. .send(function (err, data) {
  15866. // _this.progress = 100;
  15867. cfindex2++;
  15868. setTimeout(() => {
  15869. if (
  15870. cfindex2 == event.target.files.length - 1 ||
  15871. cfindex2 > event.target.files.length - 1
  15872. ) {
  15873. _this.proVisible2 = false;
  15874. }
  15875. }, 1000);
  15876. if (err) {
  15877. var a = _this.$refs.upload1.uploadFiles;
  15878. a.splice(a.length - 1, a.length);
  15879. _this.$message.error("上传失败");
  15880. } else {
  15881. // _this.$message.success('上传成功')
  15882. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15883. var c = [
  15884. "AVI",
  15885. "NAVI",
  15886. "MPEG",
  15887. "ASF",
  15888. "MOV",
  15889. "WMV",
  15890. "3GP",
  15891. "RM",
  15892. "RMVB",
  15893. "FLV",
  15894. "F4V",
  15895. "H.264",
  15896. "H.265",
  15897. "REAL VIDEO",
  15898. "MKV",
  15899. "WebM",
  15900. "HDDVD",
  15901. "MP4",
  15902. "MPG",
  15903. "M4V",
  15904. "MGV",
  15905. "OGV",
  15906. "QTM",
  15907. "STR",
  15908. "AMC",
  15909. "DVX",
  15910. "EVO",
  15911. "DAT",
  15912. "OGG",
  15913. "OGM",
  15914. ];
  15915. if (type == 1) {
  15916. _this.studyJuri[0].cover.push({
  15917. name: file.name,
  15918. url: data.Location,
  15919. uid: file.uid,
  15920. });
  15921. if (
  15922. c.indexOf(
  15923. _this.studyJuri[0].cover[0].url
  15924. .split(".")
  15925. [
  15926. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15927. ].toLocaleUpperCase()
  15928. ) != -1
  15929. ) {
  15930. _this.fileType = 2;
  15931. } else if (
  15932. b.indexOf(
  15933. _this.studyJuri[0].cover[0].url
  15934. .split(".")
  15935. [
  15936. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15937. ].toLocaleUpperCase()
  15938. ) != -1
  15939. ) {
  15940. _this.fileType = 1;
  15941. } else {
  15942. _this.fileType = 0;
  15943. }
  15944. _this.imgChange(null, null, type);
  15945. } else if (type == 2) {
  15946. _this.upToolImg = data.Location;
  15947. _this.imgChange(null, null, type);
  15948. _this.addCourseWorks(i);
  15949. } else if (type == 4) {
  15950. _this.addPz("3", data.Location);
  15951. } else if (type == 5) {
  15952. _this.addImgDrawImG(data.Location);
  15953. } else if (type == 6) {
  15954. var _ftype = 1;
  15955. if (
  15956. c.indexOf(
  15957. data.Location.split(".")[
  15958. data.Location.split(".").length - 1
  15959. ].toLocaleUpperCase()
  15960. ) != -1
  15961. ) {
  15962. _ftype = 5;
  15963. } else if (
  15964. b.indexOf(
  15965. data.Location.split(".")[
  15966. data.Location.split(".").length - 1
  15967. ].toLocaleUpperCase()
  15968. ) != -1
  15969. ) {
  15970. _ftype = 4;
  15971. } else {
  15972. _ftype = 1;
  15973. }
  15974. _this.plworkFile.push({
  15975. name: file.name,
  15976. url: data.Location,
  15977. uid: file.uid,
  15978. fileType: _ftype,
  15979. username:
  15980. _this.plworkFile.length + 1 > 9
  15981. ? _this.plworkFile.length + 1
  15982. : "0" + (_this.plworkFile.length + 1),
  15983. });
  15984. }
  15985. _this.imgChange(null, null, type);
  15986. console.log(data.Location);
  15987. // _this.$message.success('上传成功'+data.Location)
  15988. }
  15989. });
  15990. }
  15991. }
  15992. },
  15993. beforeUpload2(event, type) {
  15994. var file = event.target.files[0];
  15995. var credentials = {
  15996. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15997. secretAccessKey: "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",
  15998. }; //秘钥形式的登录上传
  15999. window.AWS.config.update(credentials);
  16000. window.AWS.config.region = "cn-northwest-1"; //设置区域
  16001. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  16002. var _this = this;
  16003. _this.progress = 0;
  16004. _this.proVisible = true;
  16005. if (file) {
  16006. var params = {
  16007. Key:
  16008. file.name.split(".")[0] +
  16009. new Date().getTime() +
  16010. "." +
  16011. file.name.split(".")[file.name.split(".").length - 1],
  16012. ContentType: file.type,
  16013. Body: file,
  16014. "Access-Control-Allow-Credentials": "*",
  16015. ACL: "public-read",
  16016. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  16017. var options = {
  16018. partSize: 2048 * 1024 * 1024,
  16019. queueSize: 2,
  16020. leavePartsOnError: true,
  16021. };
  16022. bucket
  16023. .upload(params, options)
  16024. .on("httpUploadProgress", function (evt) {
  16025. //这里可以写进度条
  16026. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  16027. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  16028. })
  16029. .send(function (err, data) {
  16030. _this.progress = 100;
  16031. setTimeout(() => {
  16032. _this.proVisible = false;
  16033. }, 1000);
  16034. if (err) {
  16035. var a = _this.$refs.upload1.uploadFiles;
  16036. a.splice(a.length - 1, a.length);
  16037. _this.$message.error("上传失败");
  16038. } else {
  16039. if (type == 2) {
  16040. _this.studyJuri[0].upVedio.push({
  16041. name: file.name,
  16042. url: data.Location,
  16043. uid: file.uid,
  16044. });
  16045. _this.imgChange(null, null, type);
  16046. } else if (type == 3) {
  16047. _this.studyJuri[0].upFile.push({
  16048. name: file.name,
  16049. url: data.Location,
  16050. uid: file.uid,
  16051. });
  16052. _this.imgChange(null, null, type);
  16053. }
  16054. console.log(data.Location);
  16055. }
  16056. });
  16057. }
  16058. },
  16059. allScrell() {
  16060. window.parent.postMessage({ allScreen: this.screenType }, "*");
  16061. },
  16062. nextOrpreSteps(t) {
  16063. if (this.IsFollow && this.tType == 2) {
  16064. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16065. return;
  16066. }
  16067. var b = this.chapInfoList.length - 1;
  16068. if (t == 0) {
  16069. if (this.courseType == 0) {
  16070. if (this.taskCount == 0) {
  16071. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  16072. if (this.IsLookOpen) {
  16073. if (
  16074. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  16075. ) {
  16076. if (
  16077. this.courseDetail.userid != this.userid &&
  16078. (!this.courseDetail.course_teacher ||
  16079. (this.courseDetail.course_teacher &&
  16080. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16081. ) {
  16082. this.$message.error("任务未解锁");
  16083. } else {
  16084. this.$message.error("上一任务未解锁");
  16085. }
  16086. return;
  16087. }
  16088. }
  16089. this.navList[this.courseType].isOpen = false;
  16090. this.courseType = b;
  16091. this.taskCount =
  16092. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16093. .length - 1;
  16094. this.navList[this.courseType].isOpen = true;
  16095. } else {
  16096. this.taskCount--;
  16097. }
  16098. } else {
  16099. if (this.taskCount == 0) {
  16100. this.navList[this.courseType].isOpen = false;
  16101. this.courseType--;
  16102. this.taskCount =
  16103. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  16104. .length - 1;
  16105. this.navList[this.courseType].isOpen = true;
  16106. } else {
  16107. this.taskCount--;
  16108. }
  16109. }
  16110. } else {
  16111. if (this.courseType == b) {
  16112. if (
  16113. this.taskCount ==
  16114. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16115. 1
  16116. ) {
  16117. this.navList[this.courseType].isOpen = false;
  16118. this.courseType = 0;
  16119. this.taskCount = 0;
  16120. this.navList[this.courseType].isOpen = true;
  16121. } else {
  16122. var bbb = parseInt(this.taskCount) + 1;
  16123. if (
  16124. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16125. .isLook &&
  16126. this.courseDetail.userid != this.userid &&
  16127. (!this.courseDetail.course_teacher ||
  16128. (this.courseDetail.course_teacher &&
  16129. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16130. this.IsLookOpen
  16131. ) {
  16132. this.$message.error("任务未解锁");
  16133. return;
  16134. }
  16135. this.taskCount++;
  16136. if (this.IsLookOpen) {
  16137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16138. this.taskCount
  16139. ].isLook = true;
  16140. this.addCourseState(3);
  16141. }
  16142. }
  16143. } else {
  16144. if (
  16145. this.taskCount ==
  16146. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  16147. 1
  16148. ) {
  16149. var bbb = parseInt(this.courseType) + 1;
  16150. if (
  16151. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  16152. this.courseDetail.userid != this.userid &&
  16153. (!this.courseDetail.course_teacher ||
  16154. (this.courseDetail.course_teacher &&
  16155. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16156. this.IsLookOpen
  16157. ) {
  16158. this.$message.error("任务未解锁");
  16159. return;
  16160. }
  16161. this.navList[this.courseType].isOpen = false;
  16162. this.courseType++;
  16163. this.taskCount = 0;
  16164. this.navList[this.courseType].isOpen = true;
  16165. } else {
  16166. var bbb = parseInt(this.taskCount) + 1;
  16167. if (
  16168. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  16169. .isLook &&
  16170. this.courseDetail.userid != this.userid &&
  16171. (!this.courseDetail.course_teacher ||
  16172. (this.courseDetail.course_teacher &&
  16173. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  16174. this.IsLookOpen
  16175. ) {
  16176. this.$message.error("任务未解锁");
  16177. return;
  16178. }
  16179. this.taskCount++;
  16180. }
  16181. if (this.IsLookOpen) {
  16182. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16183. this.taskCount
  16184. ].isLook = true;
  16185. this.addCourseState(3);
  16186. }
  16187. }
  16188. // if (
  16189. // this.taskCount ==
  16190. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  16191. // ) {
  16192. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  16193. // } else {
  16194. // this.taskCount++;
  16195. // }
  16196. }
  16197. document.scrollingElement.scrollTop = 0;
  16198. this.showType = 7;
  16199. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16200. // if (this.vedio[this.taskCount].length > 0) {
  16201. // var a =
  16202. // document.getElementsByClassName("box_course")[this.taskCount]
  16203. // .offsetHeight;
  16204. // document.getElementsByClassName("vedioList")[
  16205. // this.taskCount
  16206. // ].style.height = a + "px";
  16207. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  16208. // a - 40 + "px";
  16209. // }
  16210. this.isNoHomeWork = false;
  16211. (this.studyJuri = [
  16212. {
  16213. content: "",
  16214. cover: [],
  16215. upVedio: [],
  16216. upFile: [],
  16217. },
  16218. ]),
  16219. (this.radio = []);
  16220. this.isClickNav = "";
  16221. this.selectPz();
  16222. this.getHomeWork();
  16223. this.getCourseDetail(2);
  16224. this.$forceUpdate();
  16225. },
  16226. openTask(s, n, i) {
  16227. this.refreshAssembly()
  16228. if (this.IsFollow && this.tType == 2) {
  16229. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16230. return;
  16231. }
  16232. if (this.IsLookOpen) {
  16233. if (
  16234. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  16235. this.courseDetail.userid != this.userid &&
  16236. (!this.courseDetail.course_teacher ||
  16237. (this.courseDetail.course_teacher &&
  16238. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  16239. ) {
  16240. this.$message.error("任务未解锁");
  16241. return;
  16242. }
  16243. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  16244. if (
  16245. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  16246. .isLook
  16247. ) {
  16248. this.$message.error("上一任务未解锁");
  16249. return;
  16250. }
  16251. } else if (s > this.courseType) {
  16252. if (n > 0) {
  16253. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  16254. this.$message.error("上一任务未解锁");
  16255. return;
  16256. }
  16257. } else {
  16258. if (
  16259. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  16260. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  16261. ].isLook
  16262. ) {
  16263. this.$message.error("上一任务未解锁");
  16264. return;
  16265. }
  16266. }
  16267. }
  16268. }
  16269. if (this.navList[s].task[n].isOpen == true) {
  16270. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  16271. return;
  16272. }
  16273. this.courseType = s;
  16274. this.navId = i;
  16275. this.taskCount = n;
  16276. this.navList[this.courseType].task[this.taskCount].isOpen =
  16277. !this.navList[this.courseType].task[this.taskCount].isOpen;
  16278. if (this.IsLookOpen) {
  16279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16280. this.taskCount
  16281. ].isLook = true;
  16282. this.addCourseState(3);
  16283. }
  16284. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  16285. this.isCloseList[ci].isClose = 0;
  16286. this.isCloseList[ci].isCloseBoolean = false;
  16287. this.$nextTick(()=>{
  16288. setTimeout(()=>{
  16289. setTimeout(()=>{
  16290. this.panToolHeight('tool-'+ci);
  16291. }, 0)
  16292. }, 0)
  16293. })
  16294. }
  16295. this.showType = 7;
  16296. this.isNoHomeWork = false;
  16297. (this.studyJuri = [
  16298. {
  16299. content: "",
  16300. cover: [],
  16301. upVedio: [],
  16302. upFile: [],
  16303. },
  16304. ]),
  16305. (this.radio = []);
  16306. document.scrollingElement.scrollTop = 0;
  16307. // setTimeout(() => {
  16308. // let a = document.getElementById(i);
  16309. // if (a.offsetTop - 110 == 0) {
  16310. // window.scrollTo(0, 0);
  16311. // } else {
  16312. // window.scrollTo(0, a.offsetTop);
  16313. // }
  16314. // }, 0);
  16315. for (var z = 0; z < this.navList.length; z++) {
  16316. for (var q = 0; q < this.navList[z].task.length; q++) {
  16317. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16318. this.navList[z].task[q].tool[w].isTool = false;
  16319. }
  16320. }
  16321. }
  16322. this.selectPz();
  16323. this.getHomeWork();
  16324. this.getCourseDetail(2);
  16325. },
  16326. get(i) {
  16327. if (this.IsFollow && this.tType == 2) {
  16328. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  16329. return;
  16330. }
  16331. // for(var k=0;k<this.navList.length;k++){
  16332. // this.navList[k].isOpen = false;
  16333. // }
  16334. // this.navList[i].isOpen = true;
  16335. this.navList[i].isOpen = !this.navList[i].isOpen;
  16336. if (this.navList[i].isOpen) {
  16337. this.openTask(i, 0, i + "-0");
  16338. }
  16339. },
  16340. addQuestion() {
  16341. this.answerList.push({
  16342. answerTitle: this.answerQ,
  16343. answer: this.questionAnswer,
  16344. });
  16345. let params = [
  16346. {
  16347. uid: this.userid,
  16348. cid: this.id,
  16349. stage: this.courseType,
  16350. task: this.taskCount,
  16351. tool: this.toolindex,
  16352. content: JSON.stringify(this.answerList),
  16353. type: 3,
  16354. },
  16355. ];
  16356. this.ajax
  16357. .post(this.$store.state.api + "addCourseWorks", params)
  16358. .then((res) => {
  16359. this.$message({
  16360. message: "提交成功",
  16361. type: "success",
  16362. });
  16363. this.answerList = [];
  16364. this.answerDialogVisible = false;
  16365. this.selectStudent();
  16366. this.selectSWorks();
  16367. this.selectSLook();
  16368. })
  16369. .catch((err) => {
  16370. this.$message.error("提交失败");
  16371. console.error(err);
  16372. });
  16373. },
  16374. addQuestionTeacher() {
  16375. this.answerList.push({
  16376. answerTitle: this.answerQ,
  16377. answer: this.questionAnswer,
  16378. });
  16379. let params = [
  16380. {
  16381. uid: this.sStudent.userid,
  16382. cid: this.id,
  16383. stage: this.courseType,
  16384. task: this.taskCount,
  16385. tool: this.toolindex,
  16386. content: JSON.stringify(this.answerList),
  16387. type: 3,
  16388. ateacher: this.userid,
  16389. },
  16390. ];
  16391. this.ajax
  16392. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  16393. .then((res) => {
  16394. this.$message({
  16395. message: "提交成功",
  16396. type: "success",
  16397. });
  16398. this.answerList = [];
  16399. this.questionAnswer = "";
  16400. this.answerDialogVisibleTeacher = false;
  16401. this.selectStudent();
  16402. this.selectSWorks();
  16403. this.selectSLook();
  16404. })
  16405. .catch((err) => {
  16406. this.$message.error("提交失败");
  16407. console.error(err);
  16408. });
  16409. },
  16410. refreshCourse() {
  16411. // window.location.reload();
  16412. this.navList = [];
  16413. this.getCourseDetail(1);
  16414. },
  16415. getCourseDetail(type, gindex) {
  16416. let loading;
  16417. if (type != 2) {
  16418. loading = this.$loading.service({
  16419. background: "rgba(255, 255, 255, 0.7)",
  16420. target: document.querySelector(".student_table"),
  16421. });
  16422. }
  16423. this.downLoading = false
  16424. // this.navList[0].isOpen = false;
  16425. // this.navList[this.courseType].isOpen = true;
  16426. // this.courseType = this.courseTypeLine;
  16427. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16428. let params = {
  16429. courseId: this.id,
  16430. };
  16431. this.ajax
  16432. .get(this.$store.state.api + "selectCourseDetail3", params)
  16433. .then((res) => {
  16434. if (type != 2) {
  16435. loading.close();
  16436. if (
  16437. this.courseType >
  16438. JSON.parse(res.data[0][0].chapters).length - 1
  16439. ) {
  16440. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  16441. }
  16442. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16443. .chapterInfo[0].taskJson;
  16444. var b = [
  16445. "AVI",
  16446. "NAVI",
  16447. "MPEG",
  16448. "ASF",
  16449. "MOV",
  16450. "WMV",
  16451. "3GP",
  16452. "RM",
  16453. "RMVB",
  16454. "FLV",
  16455. "F4V",
  16456. "H.264",
  16457. "H.265",
  16458. "REAL VIDEO",
  16459. "MKV",
  16460. "WebM",
  16461. "HDDVD",
  16462. "MP4",
  16463. "MPG",
  16464. "M4V",
  16465. "MGV",
  16466. "OGV",
  16467. "QTM",
  16468. "STR",
  16469. "AMC",
  16470. "DVX",
  16471. "EVO",
  16472. "DAT",
  16473. "OGG",
  16474. "OGM",
  16475. "MP3",
  16476. ];
  16477. let _chapterData = [];
  16478. for (var i = 0; i < a.length; i++) {
  16479. var c = a[i].chapterData;
  16480. this.vedio[i] = [];
  16481. this.textList[i] = [];
  16482. this.lineList[i] = [];
  16483. this.chapToolList[i] = [];
  16484. this.file[i] = [];
  16485. this.fileC[i] = [];
  16486. _chapterData[i] = c.filter((el) => {
  16487. return el.type != 12;
  16488. });
  16489. this.fileC[i] = c.filter((el) => {
  16490. return el.type == 12;
  16491. });
  16492. // else if (c[j].type == 12) {
  16493. // this.fileC[i].push(c[j]);
  16494. // }
  16495. for (var j = 0; j < c.length; j++) {
  16496. if (c[j].type == 7) {
  16497. this.chapToolList[i].push(c[j]);
  16498. } else if (c[j].type == 8 || c[j].type == 14) {
  16499. this.lineList[i].push(c[j]);
  16500. } else if (c[j].type == 6) {
  16501. this.textList[i].push(c[j]);
  16502. } else {
  16503. if (
  16504. b.indexOf(
  16505. c[j].url
  16506. .split(".")
  16507. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16508. ) != -1
  16509. ) {
  16510. this.vedio[i].push(c[j]);
  16511. } else {
  16512. this.file[i].push(c[j]);
  16513. }
  16514. }
  16515. }
  16516. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16517. d.sources[0].src =
  16518. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16519. this.playerO[i] = d;
  16520. }
  16521. this.courseDetail = res.data[0][0];
  16522. this.tcid = this.arrayToArray(
  16523. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16524. this.tcid2 ? this.tcid2.split(",") : []
  16525. ).join(",");
  16526. this.evalua = res.data[0][0].evaId;
  16527. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  16528. this.courseType
  16529. ];
  16530. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16531. if (this.tcid && res.data[1].length) {
  16532. let _inviteA = [];
  16533. for (var ik = 0; ik < res.data[1].length; ik++) {
  16534. _inviteA.push({
  16535. cid: res.data[1][ik].classid,
  16536. ic: res.data[1][ik].code,
  16537. });
  16538. }
  16539. for (var ik = 0; ik < _inviteA.length; ik++) {
  16540. if (
  16541. this.arrayToArray(
  16542. _inviteA[ik].cid.split(","),
  16543. this.tcid.split(",")
  16544. ).length
  16545. ) {
  16546. this.inviteCode = _inviteA[ik].ic;
  16547. break;
  16548. }
  16549. }
  16550. }
  16551. for (var l = 0; l < this.chapInfoList.length; l++) {
  16552. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16553. for (var m = 0; m < w.length; m++) {
  16554. w[m].id = l + "-" + m;
  16555. }
  16556. }
  16557. if (
  16558. _chapterData[this.taskCount].length &&
  16559. _chapterData[this.taskCount][0].type == 2
  16560. ) {
  16561. this.showType = 0;
  16562. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16563. } else {
  16564. if (_chapterData[this.taskCount].length > 0) {
  16565. let _url = _chapterData[this.taskCount][0].url;
  16566. if (
  16567. _chapterData[this.taskCount][0].type == 8 ||
  16568. _chapterData[this.taskCount][0].type == 14
  16569. ) {
  16570. this.showType = 2;
  16571. if (
  16572. _url.indexOf("https://") == -1 &&
  16573. _url.indexOf("http://") == -1
  16574. ) {
  16575. _url = "https://" + _url;
  16576. }
  16577. this.pptImgUrl1 = _url;
  16578. } else if (_chapterData[this.taskCount][0].type == 3) {
  16579. if (
  16580. _url
  16581. .split(".")
  16582. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16583. ) {
  16584. this.showType = 3;
  16585. this.pptImgUrl1 = _url;
  16586. } else if (
  16587. this.isAssetTypeAnImage(
  16588. _url
  16589. .split(".")
  16590. [_url.split(".").length - 1].toLocaleLowerCase()
  16591. )
  16592. ) {
  16593. this.showType = 4;
  16594. this.pptImgUrl1 = _url;
  16595. } else {
  16596. this.showType = 2;
  16597. this.pptImgUrl1 =
  16598. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16599. encodeURIComponent(_url);
  16600. }
  16601. } else if (_chapterData[this.taskCount][0].type == 13) {
  16602. this.showType = 4;
  16603. this.pptImgUrl1 = _url;
  16604. } else if (_chapterData[this.taskCount][0].type == 6) {
  16605. this.showType = 1;
  16606. this.text = this.textList[this.taskCount][0];
  16607. }
  16608. }
  16609. }
  16610. this.isClickNav = 0;
  16611. if (
  16612. !_chapterData[this.taskCount].length ||
  16613. _chapterData[this.taskCount][0].type == 12
  16614. ) {
  16615. this.isClickNav = "";
  16616. this.showType = "";
  16617. }
  16618. this.vChapterData = _chapterData;
  16619. } else {
  16620. this.showType = 0;
  16621. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  16622. .chapterInfo[0].taskJson;
  16623. var b = [
  16624. "AVI",
  16625. "NAVI",
  16626. "MPEG",
  16627. "ASF",
  16628. "MOV",
  16629. "WMV",
  16630. "3GP",
  16631. "RM",
  16632. "RMVB",
  16633. "FLV",
  16634. "F4V",
  16635. "H.264",
  16636. "H.265",
  16637. "REAL VIDEO",
  16638. "MKV",
  16639. "WebM",
  16640. "HDDVD",
  16641. "MP4",
  16642. "MPG",
  16643. "M4V",
  16644. "MGV",
  16645. "OGV",
  16646. "QTM",
  16647. "STR",
  16648. "AMC",
  16649. "DVX",
  16650. "EVO",
  16651. "DAT",
  16652. "OGG",
  16653. "OGM",
  16654. "MP3",
  16655. ];
  16656. let _chapterData = [];
  16657. for (var i = 0; i < a.length; i++) {
  16658. var c = a[i].chapterData;
  16659. this.vedio[i] = [];
  16660. this.textList[i] = [];
  16661. this.lineList[i] = [];
  16662. this.chapToolList[i] = [];
  16663. this.file[i] = [];
  16664. this.fileC[i] = [];
  16665. _chapterData[i] = c.filter((el) => {
  16666. return el.type != 12;
  16667. });
  16668. this.fileC[i] = c.filter((el) => {
  16669. return el.type == 12;
  16670. });
  16671. for (var j = 0; j < c.length; j++) {
  16672. if (c[j].type == 7) {
  16673. this.chapToolList[i].push(c[j]);
  16674. } else if (c[j].type == 8 || c[j].type == 14) {
  16675. this.lineList[i].push(c[j]);
  16676. } else if (c[j].type == 6) {
  16677. this.textList[i].push(c[j]);
  16678. } else {
  16679. if (
  16680. b.indexOf(
  16681. c[j].url
  16682. .split(".")
  16683. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  16684. ) != -1
  16685. ) {
  16686. this.vedio[i].push(c[j]);
  16687. } else {
  16688. this.file[i].push(c[j]);
  16689. }
  16690. }
  16691. }
  16692. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16693. d.sources[0].src =
  16694. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  16695. this.playerO[i] = d;
  16696. }
  16697. if (
  16698. _chapterData[this.taskCount].length &&
  16699. _chapterData[this.taskCount][0].type == 2
  16700. ) {
  16701. this.showType = 0;
  16702. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16703. } else {
  16704. if (_chapterData[this.taskCount].length > 0) {
  16705. let _url = _chapterData[this.taskCount][0].url;
  16706. if (
  16707. _chapterData[this.taskCount][0].type == 8 ||
  16708. _chapterData[this.taskCount][0].type == 14
  16709. ) {
  16710. this.showType = 2;
  16711. if (
  16712. _url.indexOf("https://") == -1 &&
  16713. _url.indexOf("http://") == -1
  16714. ) {
  16715. _url = "https://" + _url;
  16716. }
  16717. this.pptImgUrl1 = _url;
  16718. } else if (_chapterData[this.taskCount][0].type == 3) {
  16719. if (
  16720. _url
  16721. .split(".")
  16722. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16723. ) {
  16724. this.showType = 3;
  16725. this.pptImgUrl1 = _url;
  16726. } else if (
  16727. this.isAssetTypeAnImage(
  16728. _url
  16729. .split(".")
  16730. [_url.split(".").length - 1].toLocaleLowerCase()
  16731. )
  16732. ) {
  16733. this.showType = 4;
  16734. this.pptImgUrl1 = _url;
  16735. } else {
  16736. this.showType = 2;
  16737. this.pptImgUrl1 =
  16738. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16739. encodeURIComponent(_url);
  16740. }
  16741. } else if (_chapterData[this.taskCount][0].type == 13) {
  16742. this.showType = 4;
  16743. this.pptImgUrl1 = _url;
  16744. } else if (_chapterData[this.taskCount][0].type == 6) {
  16745. this.showType = 1;
  16746. this.text = this.textList[this.taskCount][0];
  16747. }
  16748. }
  16749. }
  16750. this.isClickNav = 0;
  16751. if (
  16752. !_chapterData[this.taskCount].length ||
  16753. _chapterData[this.taskCount][0].type == 12
  16754. ) {
  16755. this.isClickNav = "";
  16756. this.showType = "";
  16757. }
  16758. this.vChapterData = _chapterData;
  16759. this.$forceUpdate();
  16760. }
  16761. // else {
  16762. // this.courseDetail = res.data[0][0];
  16763. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16764. // }
  16765. let _this = this;
  16766. if (_this.timer) {
  16767. clearInterval(_this.timer);
  16768. _this.timer = null;
  16769. }
  16770. if (_this.tcid) {
  16771. _this.getCourseGroup(gindex);
  16772. } else {
  16773. _this.selectSWorks(gindex);
  16774. }
  16775. _this.selectStudent();
  16776. _this.selectSLook();
  16777. _this.getPick();
  16778. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16779. _this.setCTask();
  16780. }
  16781. if (_this.dialogVisibleGroup) {
  16782. _this.groupJson =
  16783. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16784. _this.taskCount
  16785. ].toolChoose[_this.toolindex].groupJson;
  16786. }
  16787. _this.$nextTick(() => {
  16788. setTimeout(() => {
  16789. _this.checkEva();
  16790. }, 1000);
  16791. });
  16792. _this.timer = setInterval(function () {
  16793. // _this.getCourseDetail(2);
  16794. if (_this.tcid) {
  16795. _this.getCourseGroup(gindex);
  16796. } else {
  16797. _this.selectSWorks(gindex);
  16798. }
  16799. _this.selectStudent();
  16800. _this.selectSLook();
  16801. _this.getPick();
  16802. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16803. _this.setCTask();
  16804. }
  16805. if (_this.dialogVisibleGroup) {
  16806. _this.groupJson =
  16807. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16808. _this.taskCount
  16809. ].toolChoose[_this.toolindex].groupJson;
  16810. }
  16811. if (_this.tType == 4 || _this.ispzType == 4) {
  16812. _this.selectPz();
  16813. }
  16814. }, 5000);
  16815. _this.$nextTick(function () {
  16816. setTimeout(() => {
  16817. // var a =
  16818. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16819. // document.getElementsByClassName("vedioList")[0].style.height =
  16820. // a + "px";
  16821. // document.getElementsByClassName("navBox")[0].style.height =
  16822. // a - 40 + "px";
  16823. // if (_this.vedio[_this.taskCount].length > 0) {
  16824. // _this.vedioTime = [];
  16825. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16826. // _this.vedioTime[i] = document.getElementsByClassName(
  16827. // "vjs-duration-display"
  16828. // )[i].textContent;
  16829. // }
  16830. // }
  16831. }, 1000);
  16832. });
  16833. })
  16834. .catch((err) => {
  16835. loading.close();
  16836. console.error(err);
  16837. });
  16838. },
  16839. getCourseGroup(gindex) {
  16840. let params = {
  16841. cid: this.id,
  16842. classid: this.tcid ? this.tcid : "1",
  16843. };
  16844. this.ajax
  16845. .get(this.$store.state.api + "getCourseGroup", params)
  16846. .then((res) => {
  16847. if (res.data && res.data[0].length) {
  16848. if (!this.isGroup) {
  16849. let courseGroup = JSON.parse(res.data[0][0].group);
  16850. courseGroup.group = courseGroup.group.filter((el) => {
  16851. el.works = [];
  16852. return el;
  16853. });
  16854. if (courseGroup.isopen == 2) {
  16855. this.isGroup = false;
  16856. this.selectSWorks(gindex);
  16857. return;
  16858. }
  16859. this.courseGroup = courseGroup;
  16860. let groupPerson = res.data[1];
  16861. let group = JSON.parse(res.data[0][0].group).group;
  16862. let courseGroupStudent = {};
  16863. let courseGroupStudentUid = {};
  16864. for (var i = 0; i < group.length; i++) {
  16865. courseGroupStudent[group[i].id] = [];
  16866. courseGroupStudentUid[group[i].id] = [];
  16867. for (var j = 0; j < groupPerson.length; j++) {
  16868. if (groupPerson[j].groupCid == group[i].id) {
  16869. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16870. courseGroupStudentUid[group[i].id].push(
  16871. groupPerson[j].userid
  16872. );
  16873. }
  16874. }
  16875. }
  16876. this.courseGroupStudent = courseGroupStudent;
  16877. this.courseGroupStudentUid = courseGroupStudentUid;
  16878. }
  16879. if (this.courseGroup.isopen == 2) {
  16880. this.isGroup = false;
  16881. } else {
  16882. this.isGroup = true;
  16883. }
  16884. this.selectSWorks(gindex);
  16885. } else {
  16886. this.selectSWorks(gindex);
  16887. this.isGroup = false;
  16888. }
  16889. })
  16890. .catch((err) => {
  16891. // this.$message.error("网络不佳");
  16892. console.error(err);
  16893. });
  16894. },
  16895. setOperationTime() {
  16896. let _this = this;
  16897. if (_this.opertimer) {
  16898. clearInterval(_this.opertimer);
  16899. _this.opertimer = null;
  16900. }
  16901. _this.opertimer = setInterval(() => {
  16902. _this.setoTime("600");
  16903. }, 600000);
  16904. },
  16905. setoTime(time) {
  16906. let params = [
  16907. {
  16908. uid: this.userid,
  16909. cid: this.id,
  16910. type: "2",
  16911. time: time,
  16912. },
  16913. ];
  16914. this.ajax
  16915. .post(this.$store.state.api + "addOperationTimeT2", params)
  16916. .then((res) => {})
  16917. .catch((err) => {
  16918. console.error(err);
  16919. });
  16920. },
  16921. addPz(type, content) {
  16922. if (type == "1" && this.pzConText == "") {
  16923. this.$message.error("评论不能为空!");
  16924. return;
  16925. }
  16926. let params = [
  16927. {
  16928. cid: this.id,
  16929. uid: this.userid,
  16930. s: this.courseType,
  16931. t: this.taskCount,
  16932. c: type == "1" ? this.pzConText : content,
  16933. type: type,
  16934. },
  16935. ];
  16936. this.ajax
  16937. .post(this.$store.state.api + "addPz2", params)
  16938. .then((res) => {
  16939. this.$message({
  16940. message: "添加成功",
  16941. type: "success",
  16942. });
  16943. this.pzConText = "";
  16944. this.addPzDialog = false;
  16945. this.selectPz();
  16946. })
  16947. .catch((err) => {
  16948. this.$message.error("添加失败");
  16949. console.error(err);
  16950. });
  16951. },
  16952. setReplyIndex(id, i) {
  16953. this.replyIndex = i;
  16954. this.replyPid = id;
  16955. this.replyDialogVisible = true;
  16956. },
  16957. addHf() {
  16958. if (this.reply == "") {
  16959. this.$message.error("回复不能为空!");
  16960. return;
  16961. }
  16962. let params = [
  16963. {
  16964. cid: this.id,
  16965. uid: this.userid,
  16966. s: this.courseType,
  16967. t: this.taskCount,
  16968. type: "1",
  16969. ct: 2,
  16970. pid: this.replyPid,
  16971. c: this.reply,
  16972. },
  16973. ];
  16974. this.ajax
  16975. .post(this.$store.state.api + "addHf", params)
  16976. .then((res) => {
  16977. this.reply = "";
  16978. this.$message({
  16979. message: "回复成功",
  16980. type: "success",
  16981. });
  16982. this.replyDialogVisible = false;
  16983. this.selectPz();
  16984. })
  16985. .catch((err) => {
  16986. this.$message.error("回复失败");
  16987. console.error(err);
  16988. });
  16989. },
  16990. deletePz(id) {
  16991. this.$confirm("确定删除此评论吗?", "提示", {
  16992. confirmButtonText: "确定",
  16993. cancelButtonText: "取消",
  16994. type: "warning",
  16995. })
  16996. .then(() => {
  16997. let params = [
  16998. {
  16999. id: id,
  17000. },
  17001. ];
  17002. this.ajax
  17003. .post(this.$store.state.api + "deletePz", params)
  17004. .then((res) => {
  17005. this.$message({
  17006. message: "删除成功",
  17007. type: "success",
  17008. });
  17009. this.selectPz();
  17010. })
  17011. .catch((err) => {
  17012. this.$message.error("网络异常");
  17013. console.error(err);
  17014. });
  17015. })
  17016. .catch(() => {});
  17017. },
  17018. deleteReply(id) {
  17019. this.$confirm("确定删除此回复吗?", "提示", {
  17020. confirmButtonText: "确定",
  17021. cancelButtonText: "取消",
  17022. type: "warning",
  17023. })
  17024. .then(() => {
  17025. let params = [
  17026. {
  17027. id: id,
  17028. },
  17029. ];
  17030. this.ajax
  17031. .post(this.$store.state.api + "deleteReply", params)
  17032. .then((res) => {
  17033. this.$message({
  17034. message: "删除成功",
  17035. type: "success",
  17036. });
  17037. this.selectPz();
  17038. })
  17039. .catch((err) => {
  17040. this.$message.error("网络异常");
  17041. console.error(err);
  17042. });
  17043. })
  17044. .catch(() => {});
  17045. },
  17046. setPz() {
  17047. if (this.ispzType == 4) {
  17048. this.ispzType = 0;
  17049. this.pzDialog = false;
  17050. return;
  17051. }
  17052. this.ispzType = 4;
  17053. this.pzDialog = true;
  17054. this.selectPz();
  17055. },
  17056. selectPz() {
  17057. let params = {
  17058. cid: this.id,
  17059. s: this.courseType,
  17060. t: this.taskCount,
  17061. type: this.pzStype,
  17062. uid: this.userid,
  17063. };
  17064. this.ajax
  17065. .get(this.$store.state.api + "selectPzListType", params)
  17066. .then((res) => {
  17067. this.pzList = res.data[0];
  17068. var a = res.data[1];
  17069. for (var i = 0; i < a.length; i++) {
  17070. for (var j = 0; j < this.pzList.length; j++) {
  17071. if (!this.pzList[j].hfList) {
  17072. this.pzList[j].hfList = [];
  17073. }
  17074. if (a[i].pid == this.pzList[j].id) {
  17075. this.pzList[j].hfList.push(a[i]);
  17076. }
  17077. }
  17078. }
  17079. })
  17080. .catch((err) => {
  17081. console.error(err);
  17082. });
  17083. },
  17084. // selectHf() {
  17085. // let params = {
  17086. // cid: this.id,
  17087. // s: this.courseType,
  17088. // t: this.taskCount,
  17089. // };
  17090. // this.ajax
  17091. // .get(this.$store.state.api + "selectHfList", params)
  17092. // .then((res) => {
  17093. // var a = res.data[0];
  17094. // for (var i = 0; i < a.length; i++) {
  17095. // for (var j = 0; j < this.pzList.length; j++) {
  17096. // if (!this.pzList[i].hfList) {
  17097. // this.pzList[i].hfList = [];
  17098. // }
  17099. // if (a[i].pid == this.pzList[j].id) {
  17100. // this.pzList[i].hfList.push(a[i]);
  17101. // }
  17102. // }
  17103. // }
  17104. // })
  17105. // .catch((err) => {
  17106. // console.error(err);
  17107. // });
  17108. // },
  17109. updateSLook() {
  17110. let params = {
  17111. sopen: this.sIsOpen == false ? 1 : 2,
  17112. cid: this.id,
  17113. };
  17114. this.ajax
  17115. .get(this.$store.state.api + "updateCourseSLook", params)
  17116. .then((res) => {
  17117. if (this.sIsOpen == true) {
  17118. this.$message({
  17119. message: "权限设置成功",
  17120. type: "success",
  17121. });
  17122. } else {
  17123. this.$message({
  17124. message: "权限关闭成功",
  17125. type: "success",
  17126. });
  17127. }
  17128. })
  17129. .catch((err) => {
  17130. console.error(err);
  17131. });
  17132. },
  17133. updateFollow() {
  17134. let params = [
  17135. {
  17136. sopen: this.IsFollow == false ? 1 : 2,
  17137. cid: this.id,
  17138. },
  17139. ];
  17140. this.ajax
  17141. .post(this.$store.state.api + "updateCourseFollow", params)
  17142. .then((res) => {
  17143. if (this.IsFollow == true) {
  17144. this.$message({
  17145. message: "开启成功",
  17146. type: "success",
  17147. });
  17148. } else {
  17149. this.$message({
  17150. message: "关闭成功",
  17151. type: "success",
  17152. });
  17153. }
  17154. this.setCTask();
  17155. })
  17156. .catch((err) => {
  17157. console.error(err);
  17158. });
  17159. },
  17160. setCTask() {
  17161. let params = [
  17162. {
  17163. sopen: this.courseType + "-" + this.taskCount,
  17164. cid: this.id,
  17165. },
  17166. ];
  17167. this.ajax
  17168. .post(this.$store.state.api + "updateCourseFollowC", params)
  17169. .then((res) => {})
  17170. .catch((err) => {
  17171. console.error(err);
  17172. });
  17173. },
  17174. updateLookOpen() {
  17175. let params = [
  17176. {
  17177. sopen: this.IsLookOpen == false ? 1 : 2,
  17178. cid: this.id,
  17179. },
  17180. ];
  17181. this.ajax
  17182. .post(this.$store.state.api + "updateCourseLookOpen", params)
  17183. .then((res) => {
  17184. if (this.IsLookOpen == true) {
  17185. // if (this.courseType != 0 && this.taskCount != 0) {
  17186. // this.openTask(0, 0, "0-0");
  17187. // }
  17188. this.$message({
  17189. message: "权限设置成功",
  17190. type: "success",
  17191. });
  17192. } else {
  17193. this.$message({
  17194. message: "权限关闭成功",
  17195. type: "success",
  17196. });
  17197. }
  17198. this.getCourseState(2);
  17199. })
  17200. .catch((err) => {
  17201. console.error(err);
  17202. });
  17203. },
  17204. selectSLook() {
  17205. let params = {
  17206. cid: this.id,
  17207. };
  17208. this.ajax
  17209. .get(this.$store.state.api + "selectCourseSLook", params)
  17210. .then((res) => {
  17211. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  17212. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  17213. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  17214. if (!this.IsLookOpen) {
  17215. this.setNavList();
  17216. } else {
  17217. this.getCourseState(1);
  17218. }
  17219. if (this.IsFollow && this.tType == 2) {
  17220. this.setContent2(false);
  17221. let _followC = res.data[0][0].followC.split("-");
  17222. if (
  17223. this.courseType != _followC[0] ||
  17224. this.taskCount != _followC[1]
  17225. ) {
  17226. this.navList[this.courseType].isOpen = false;
  17227. this.courseType = _followC[0];
  17228. this.navList[this.courseType].isOpen = true;
  17229. this.taskCount = parseInt(_followC[1]);
  17230. this.navId = res.data[0][0].followC;
  17231. document.scrollingElement.scrollTop = 0;
  17232. this.getCourseDetail(2);
  17233. }
  17234. }
  17235. })
  17236. .catch((err) => {
  17237. console.error(err);
  17238. });
  17239. },
  17240. setNavList() {
  17241. if (this.navList.length == 0) {
  17242. this.navList = [];
  17243. var copyList = [];
  17244. for (var l = 0; l < this.chapInfoList.length; l++) {
  17245. var q = this.chapInfoList[l].dyName;
  17246. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17247. var e;
  17248. copyList.push({
  17249. dyName: q,
  17250. isOpen: l === 0 ? true : false,
  17251. task: [],
  17252. });
  17253. for (var r = 0; r < w.length; r++) {
  17254. e = w[r].task;
  17255. if (this.chapInfoList[l].easy == 1) {
  17256. copyList[l].task.push({
  17257. taskName: q,
  17258. id: l + "-" + r,
  17259. isLook: w[r].isLook,
  17260. isOpen: r === 0 ? true : false,
  17261. tool: [],
  17262. });
  17263. } else {
  17264. copyList[l].task.push({
  17265. taskName: e,
  17266. id: l + "-" + r,
  17267. isLook: w[r].isLook,
  17268. isOpen: r === 0 ? true : false,
  17269. tool: [],
  17270. });
  17271. }
  17272. var t = w[r].toolChoose;
  17273. for (var k = 0; k < t.length; k++) {
  17274. var tool = t[k].tool[0];
  17275. copyList[l].task[r].tool.push({
  17276. tool: tool,
  17277. isTool: false,
  17278. });
  17279. }
  17280. // this.navId = this.navId ? this.navId : l + "-" + r;
  17281. // this.navId = l + "-" + r;
  17282. }
  17283. }
  17284. this.navList = copyList;
  17285. this.navList[0].isOpen = false;
  17286. this.navList[this.courseType].isOpen = true;
  17287. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17288. } else {
  17289. this.setNavList2();
  17290. }
  17291. },
  17292. setNavList2() {
  17293. for (var l = 0; l < this.chapInfoList.length; l++) {
  17294. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  17295. for (var r = 0; r < w.length; r++) {
  17296. this.navList[l].task[r].isLook = w[r].isLook;
  17297. }
  17298. }
  17299. if (
  17300. this.IsLookOpen &&
  17301. !this.navList[this.courseType].task[this.taskCount].isLook
  17302. ) {
  17303. this.openTask(0, 0, "0-0");
  17304. }
  17305. this.$forceUpdate();
  17306. },
  17307. getCourseState(type) {
  17308. let params = {
  17309. cid: this.id,
  17310. };
  17311. this.ajax
  17312. .get(this.$store.state.api + "getCourseState", params)
  17313. .then((res) => {
  17314. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  17315. this.chapInfoList = JSON.parse(res.data[0][0].state);
  17316. this.setNavList();
  17317. this.$forceUpdate();
  17318. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  17319. this.addCourseState(2);
  17320. } else {
  17321. this.addCourseState(1);
  17322. }
  17323. })
  17324. .catch((err) => {
  17325. console.error(err);
  17326. });
  17327. },
  17328. addCourseState(type) {
  17329. let _state = this.chapInfoList;
  17330. // this.courseType this.taskCount
  17331. if (type == 1 || type == 2) {
  17332. for (var i = 0; i < _state.length; i++) {
  17333. let el = _state[i].chapterInfo[0].taskJson;
  17334. for (var j = 0; j < el.length; j++) {
  17335. // if (i == 0 && j == 0) {
  17336. // el[j].isLook = true;
  17337. // } else {
  17338. // el[j].isLook = false;
  17339. // }
  17340. if (
  17341. this.courseType > i ||
  17342. (this.courseType == i && this.taskCount + 1 > j)
  17343. ) {
  17344. el[j].isLook = true;
  17345. } else {
  17346. el[j].isLook = false;
  17347. }
  17348. }
  17349. }
  17350. }
  17351. let params = [
  17352. {
  17353. cid: this.id,
  17354. state: JSON.stringify(_state),
  17355. },
  17356. ];
  17357. this.ajax
  17358. .post(
  17359. this.$store.state.api +
  17360. (type == 1 ? "addCourseState" : "updateCourseSate"),
  17361. params
  17362. )
  17363. .then((res) => {
  17364. if (this.IsLookOpen) {
  17365. this.setNavList();
  17366. }
  17367. if (type == 3 && type == 2) {
  17368. this.getCourseState(1);
  17369. }
  17370. })
  17371. .catch((err) => {
  17372. console.error(err);
  17373. });
  17374. },
  17375. getHomeWork() {
  17376. let params = {
  17377. cid: this.id,
  17378. stage: this.courseType,
  17379. task: this.taskCount,
  17380. uid: this.userid,
  17381. };
  17382. this.ajax
  17383. .get(this.$store.state.api + "selectWork", params)
  17384. .then((res) => {
  17385. if (res.data[0].length > 0) {
  17386. this.studyJuri = JSON.parse(res.data[0][0].content);
  17387. this.isNoHomeWork = true;
  17388. }
  17389. })
  17390. .catch((err) => {
  17391. console.error(err);
  17392. });
  17393. },
  17394. isAssetTypeAnImage(ext) {
  17395. return (
  17396. [
  17397. "png",
  17398. "jpg",
  17399. "jpeg",
  17400. "bmp",
  17401. "gif",
  17402. "webp",
  17403. "psd",
  17404. "svg",
  17405. "tiff",
  17406. ].indexOf(ext) !== -1
  17407. );
  17408. },
  17409. switchVideo(media) {
  17410. this.playerO = {};
  17411. this.playerOptions.poster = "";
  17412. this.playerOptions.sources[0].src = media;
  17413. this.playerO = this.playerOptions;
  17414. },
  17415. onPlayerPlay() {},
  17416. onPlayerTimeupdate(player) {
  17417. let gklog = player.cache_.currentTime; //当前播放的秒数
  17418. let a = player.cache_.duration; //视频的总时长
  17419. let gklog2 = parseInt(gklog);
  17420. // if(gklog2 == '3'){
  17421. // player.pause()
  17422. // setTimeout(()=>{
  17423. // player.currentTime(gklog2+1)
  17424. // player.play()
  17425. // },1000)
  17426. // }
  17427. console.log(" onPlayerTimeupdate!", gklog);
  17428. console.log(" onPlayerTimeupdate!", gklog2);
  17429. },
  17430. lookVedio(u, i) {
  17431. this.isClickNav = "";
  17432. // this.playerOptions.sources[0].src = u;
  17433. var d = JSON.parse(JSON.stringify(this.playerOptions));
  17434. d.sources[0].src = u;
  17435. this.playerO[this.taskCount] = d;
  17436. this.showType = 0;
  17437. // this.isClickNav = "video" + i;
  17438. this.isClickNav = i;
  17439. this.$forceUpdate();
  17440. },
  17441. lookText(i, t) {
  17442. this.isClickNav = "";
  17443. // this.text = this.textList[i][t];
  17444. this.text = this.vChapterData[i][t];
  17445. // this.dialogVisible1 = true;
  17446. this.showType = 1;
  17447. // this.isClickNav = "text" + t;
  17448. this.isClickNav = t;
  17449. },
  17450. lookTools(i, t) {
  17451. this.chapTools = this.chapToolList[i][t];
  17452. this.dialogVisible2 = true;
  17453. },
  17454. async openFile(f) {
  17455. this.pptImgUrl = "";
  17456. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  17457. if (
  17458. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  17459. -1
  17460. ) {
  17461. let _uuurl = await this.checkLink(f);
  17462. this.pptImgUrl =
  17463. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17464. this.showPDF = false;
  17465. this.dialogVisible3 = true;
  17466. } else if (
  17467. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  17468. ) {
  17469. this.pptImgUrl = f;
  17470. this.showPDF = true;
  17471. this.dialogVisible3 = true;
  17472. }
  17473. },
  17474. openTable(f) {
  17475. this.tableJson = JSON.parse(f.works);
  17476. this.dialogVisibleTable2 = true;
  17477. },
  17478. openWord(f) {
  17479. this.tableJson = JSON.parse(f.works);
  17480. this.dialogVisibleTable3 = true;
  17481. },
  17482. doUrl(url, i) {
  17483. this.isClickNav = "";
  17484. this.pptImgUrl1 = "";
  17485. this.showType = 2;
  17486. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  17487. url = "https://" + url;
  17488. }
  17489. this.pptImgUrl1 = "";
  17490. setTimeout(() => {
  17491. this.pptImgUrl1 = url;
  17492. }, 500);
  17493. // this.isClickNav = "line" + i;
  17494. this.isClickNav = i;
  17495. this.$forceUpdate();
  17496. },
  17497. checkPhoto(f, i) {
  17498. this.showType = 4;
  17499. this.pptImgUrl1 = f.url;
  17500. this.isClickNav = i;
  17501. this.$forceUpdate();
  17502. },
  17503. async downFile(f, i) {
  17504. this.isClickNav = "";
  17505. this.pptImgUrl1 = "";
  17506. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  17507. if (
  17508. a.indexOf(
  17509. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  17510. ) != -1
  17511. ) {
  17512. let _uuurl = await this.checkLink(f.url);
  17513. this.pptImgUrl1 =
  17514. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  17515. // this.dialogVisible3 = true;
  17516. this.showType = 2;
  17517. } else if (
  17518. this.isAssetTypeAnImage(
  17519. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  17520. )
  17521. ) {
  17522. this.showType = 4;
  17523. this.pptImgUrl1 = f.url;
  17524. } else if (
  17525. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  17526. "PDF"
  17527. ) {
  17528. this.pptImgUrl1 = f.url;
  17529. // this.dialogVisible3 = true;
  17530. this.showType = 3;
  17531. } else {
  17532. window.open(this.file[i].url);
  17533. }
  17534. // this.isClickNav = "word" + i;
  17535. this.isClickNav = i;
  17536. },
  17537. downFileList(i) {
  17538. window.open(this.noImgList[i].url);
  17539. },
  17540. openAddWork() {
  17541. this.dialogVisible = true;
  17542. },
  17543. addBzWorks() {
  17544. let params = [
  17545. {
  17546. uid: this.userid,
  17547. cid: this.id,
  17548. stage: this.courseType,
  17549. task: this.taskCount,
  17550. tool: this.toolindex,
  17551. content: JSON.stringify(this.eScore),
  17552. type: 6,
  17553. },
  17554. ];
  17555. this.ajax
  17556. .post(this.$store.state.api + "addCourseWorks", params)
  17557. .then((res) => {
  17558. this.$message({
  17559. message: "提交成功",
  17560. type: "success",
  17561. });
  17562. this.eScore = { eBzText: "", eStar: [] };
  17563. this.studentEvalDialogVisible = false;
  17564. this.selectSWorks();
  17565. })
  17566. .catch((err) => {
  17567. this.$message.error("提交失败");
  17568. console.error(err);
  17569. });
  17570. },
  17571. addBzWorksTeacher() {
  17572. let params = [
  17573. {
  17574. uid: this.sStudent.userid,
  17575. cid: this.id,
  17576. stage: this.courseType,
  17577. task: this.taskCount,
  17578. tool: this.toolindex,
  17579. content: JSON.stringify(this.eScore),
  17580. type: 6,
  17581. },
  17582. ];
  17583. this.ajax
  17584. .post(this.$store.state.api + "addCourseWorks", params)
  17585. .then((res) => {
  17586. this.$message({
  17587. message: "提交成功",
  17588. type: "success",
  17589. });
  17590. this.eScore = { eBzText: "", eStar: [] };
  17591. this.studentEvalDialogVisibleTeacher = false;
  17592. this.selectSWorks();
  17593. })
  17594. .catch((err) => {
  17595. this.$message.error("提交失败");
  17596. console.error(err);
  17597. });
  17598. },
  17599. addStudentAsk() {
  17600. if (!this.radio.length) {
  17601. this.$message.error("请选择选项");
  17602. return;
  17603. }
  17604. for (var i = 0; i < this.askJson.askCount; i++) {
  17605. if (
  17606. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17607. (this.radio[i] !== 0 && !this.radio[i])
  17608. ) {
  17609. this.$message.error("请选择选项");
  17610. return;
  17611. }
  17612. }
  17613. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17614. let params = [
  17615. {
  17616. uid: this.userid,
  17617. cid: this.id,
  17618. stage: this.courseType,
  17619. task: this.taskCount,
  17620. tool: this.toolindex,
  17621. content: JSON.stringify(this.askList),
  17622. type: 2,
  17623. },
  17624. ];
  17625. this.ajax
  17626. .post(this.$store.state.api + "addCourseWorks", params)
  17627. .then((res) => {
  17628. this.$message({
  17629. message: "提交成功",
  17630. type: "success",
  17631. });
  17632. this.askList = [];
  17633. this.dialogVisible5 = false;
  17634. this.selectStudent();
  17635. this.selectSWorks();
  17636. this.selectSLook();
  17637. })
  17638. .catch((err) => {
  17639. this.$message.error("提交失败");
  17640. console.error(err);
  17641. });
  17642. },
  17643. addStudentAskTeacher() {
  17644. if (!this.radio.length) {
  17645. this.$message.error("请选择选项");
  17646. return;
  17647. }
  17648. for (var i = 0; i < this.askJson.askCount; i++) {
  17649. if (
  17650. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17651. (this.radio[i] !== 0 && !this.radio[i])
  17652. ) {
  17653. this.$message.error("请选择选项");
  17654. return;
  17655. }
  17656. }
  17657. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  17658. let params = [
  17659. {
  17660. uid: this.sStudent.userid,
  17661. cid: this.id,
  17662. stage: this.courseType,
  17663. task: this.taskCount,
  17664. tool: this.toolindex,
  17665. content: JSON.stringify(this.askList),
  17666. type: 2,
  17667. },
  17668. ];
  17669. this.ajax
  17670. .post(this.$store.state.api + "addCourseWorks", params)
  17671. .then((res) => {
  17672. this.$message({
  17673. message: "提交成功",
  17674. type: "success",
  17675. });
  17676. this.askList = [];
  17677. this.dialogVisible5Teacher = false;
  17678. this.selectStudent();
  17679. this.selectSWorks();
  17680. this.selectSLook();
  17681. })
  17682. .catch((err) => {
  17683. this.$message.error("提交失败");
  17684. console.error(err);
  17685. });
  17686. },
  17687. addStudentTest() {
  17688. if (!this.radio.length) {
  17689. this.$message.error("请选择选项");
  17690. return;
  17691. }
  17692. for (var i = 0; i < this.testJson.testCount; i++) {
  17693. if (
  17694. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17695. (this.radio[i] !== 0 && !this.radio[i])
  17696. ) {
  17697. this.$message.error("请选择选项");
  17698. return;
  17699. }
  17700. }
  17701. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17702. let params = [
  17703. {
  17704. uid: this.userid,
  17705. cid: this.id,
  17706. stage: this.courseType,
  17707. task: this.taskCount,
  17708. tool: this.toolindex,
  17709. content: JSON.stringify(this.askList),
  17710. type: 8,
  17711. },
  17712. ];
  17713. this.ajax
  17714. .post(this.$store.state.api + "addCourseWorks", params)
  17715. .then((res) => {
  17716. this.$message({
  17717. message: "提交成功",
  17718. type: "success",
  17719. });
  17720. this.askList = [];
  17721. this.dialogVisibleChoice = false;
  17722. this.selectStudent();
  17723. this.selectSWorks();
  17724. this.selectSLook();
  17725. })
  17726. .catch((err) => {
  17727. this.$message.error("提交失败");
  17728. console.error(err);
  17729. });
  17730. },
  17731. addStudentTestTeacher() {
  17732. if (!this.radio.length) {
  17733. this.$message.error("请选择选项");
  17734. return;
  17735. }
  17736. for (var i = 0; i < this.testJson.testCount; i++) {
  17737. if (
  17738. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17739. (this.radio[i] !== 0 && !this.radio[i])
  17740. ) {
  17741. this.$message.error("请选择选项");
  17742. return;
  17743. }
  17744. }
  17745. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17746. let params = [
  17747. {
  17748. uid: this.sStudent.userid,
  17749. cid: this.id,
  17750. stage: this.courseType,
  17751. task: this.taskCount,
  17752. tool: this.toolindex,
  17753. content: JSON.stringify(this.askList),
  17754. type: 8,
  17755. },
  17756. ];
  17757. this.ajax
  17758. .post(this.$store.state.api + "addCourseWorks", params)
  17759. .then((res) => {
  17760. this.$message({
  17761. message: "提交成功",
  17762. type: "success",
  17763. });
  17764. this.askList = [];
  17765. this.dialogVisibleChoiceTeacher = false;
  17766. this.selectStudent();
  17767. this.selectSWorks();
  17768. this.selectSLook();
  17769. })
  17770. .catch((err) => {
  17771. this.$message.error("提交失败");
  17772. console.error(err);
  17773. });
  17774. },
  17775. addWork() {
  17776. if (this.studyJuri[0].content == "") {
  17777. this.$message.error("请将信息填写完整");
  17778. return;
  17779. } else if (this.studyJuri[0].cover.length == 0) {
  17780. this.$message.error("请将信息填写完整");
  17781. return;
  17782. } else if (this.studyJuri[0].upVedio.length == 0) {
  17783. this.$message.error("请将信息填写完整");
  17784. return;
  17785. }
  17786. if (this.isNoHomeWork) {
  17787. this.$confirm(
  17788. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17789. "提示",
  17790. {
  17791. confirmButtonText: "确定",
  17792. cancelButtonText: "取消",
  17793. type: "warning",
  17794. }
  17795. )
  17796. .then(() => {
  17797. let params = [
  17798. {
  17799. uid: this.userid,
  17800. cid: this.id,
  17801. stage: this.courseType,
  17802. task: this.taskCount,
  17803. content: JSON.stringify(this.studyJuri),
  17804. },
  17805. ];
  17806. this.ajax
  17807. .post(this.$store.state.api + "addWorks", params)
  17808. .then((res) => {
  17809. this.$message({
  17810. message: "提交成功",
  17811. type: "success",
  17812. });
  17813. this.isNoHomeWork = true;
  17814. this.dialogVisible = false;
  17815. })
  17816. .catch((err) => {
  17817. this.$message.error("提交失败");
  17818. console.error(err);
  17819. });
  17820. })
  17821. .catch(() => {});
  17822. } else {
  17823. let params = [
  17824. {
  17825. uid: this.userid,
  17826. cid: this.id,
  17827. stage: this.courseType,
  17828. task: this.taskCount,
  17829. content: JSON.stringify(this.studyJuri),
  17830. },
  17831. ];
  17832. this.ajax
  17833. .post(this.$store.state.api + "addWorks", params)
  17834. .then((res) => {
  17835. this.$message({
  17836. message: "提交成功",
  17837. type: "success",
  17838. });
  17839. this.isNoHomeWork = true;
  17840. this.dialogVisible = false;
  17841. })
  17842. .catch((err) => {
  17843. this.$message.error("提交失败");
  17844. console.error(err);
  17845. });
  17846. }
  17847. },
  17848. selectCount() {
  17849. let params = {
  17850. cid: this.id,
  17851. chid: this.courseType,
  17852. uid: this.userid,
  17853. };
  17854. this.ajax
  17855. .get(this.$store.state.api + "selectToolsCount", params)
  17856. .then((res) => {
  17857. for (var i = 0; i < res.data[0].length; i++) {
  17858. if (res.data[0][i].tools == 1) {
  17859. this.wbCount = res.data[0][i].count;
  17860. } else if (res.data[0][i].tools == 2) {
  17861. this.wordCount = res.data[0][i].count;
  17862. } else if (res.data[0][i].tools == 3) {
  17863. this.mindCount = res.data[0][i].count;
  17864. } else if (res.data[0][i].tools == 4) {
  17865. this.askCount = res.data[0][i].count;
  17866. } else if (res.data[0][i].tools == 6) {
  17867. this.noteCount = res.data[0][i].count;
  17868. } else if (res.data[0][i].tools == 7) {
  17869. this.mindNetWorkCount = res.data[0][i].count;
  17870. } else if (res.data[0][i].tools == 8) {
  17871. this.libraryCount = res.data[0][i].count;
  17872. } else if (res.data[0][i].tools == 16) {
  17873. this.workCount = res.data[0][i].count;
  17874. } else if (res.data[0][i].tools == 10) {
  17875. this.timeCount = res.data[0][i].count;
  17876. } else if (res.data[0][i].tools == 15) {
  17877. this.answerCount = res.data[0][i].count;
  17878. } else if (res.data[0][i].tools == 18) {
  17879. this.trainCount = res.data[0][i].count;
  17880. }
  17881. }
  17882. })
  17883. .catch((err) => {
  17884. console.error(err);
  17885. });
  17886. },
  17887. openTools(t, i, index, c, sName,id) {
  17888. var z = JSON.parse(c);
  17889. this.noteName = sName;
  17890. if (t == 4) {
  17891. this.radio = [];
  17892. this.isAnswer = false;
  17893. let b = z[0].anwer;
  17894. this.radio = b;
  17895. this.askJson = z[0].askJson;
  17896. this.isAnswer = true;
  17897. this.dialogVisible5 = true;
  17898. } else if (t == 45) {
  17899. this.radio = [];
  17900. this.isAnswer = false;
  17901. let b = z[0].anwer;
  17902. this.radio = b;
  17903. this.testJson = z[0].testJson;
  17904. this.isAnswer = true;
  17905. this.dialogVisibleChoice = true;
  17906. }else if(t == 69){
  17907. this.oldEnglishJson1 = {}
  17908. this.oldEnglishJson = {}
  17909. this.englishList1 = {}
  17910. this.newEngIndex = -1;
  17911. this.isNoUserid = false;
  17912. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17913. .toolChoose[i].englishList;
  17914. this.oldEnglishJson = z;
  17915. this.engWid = id;
  17916. this.newEnglishList = { engTitle:"",engText:"" }
  17917. this.newEnglishList1 = []
  17918. this.selectEngC(id,z);
  17919. }else if(t == 62){
  17920. this.videoType = 1;
  17921. this.videoJson = {};
  17922. this.videoJson = JSON.parse(c);
  17923. // this.videoJson =
  17924. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17925. // index
  17926. // ].toolChoose[i].videoJson;
  17927. this.dialogVisibleVideo = true;
  17928. }
  17929. // else if (t == 15) {
  17930. // this.answerQ = "";
  17931. // this.questionAnswer = "";
  17932. // this.answerQ = z[0].answerTitle;
  17933. // this.questionAnswer = z[0].answer;
  17934. // this.answerDialogVisible = true;
  17935. // }
  17936. },
  17937. fastText(p, t) {
  17938. if (t == 1) {
  17939. this.commentText += p;
  17940. } else {
  17941. this.eScore.eBzText += p;
  17942. }
  17943. },
  17944. addTools(t, i, index) {
  17945. var a = 0;
  17946. // this.taskCount = index;
  17947. this.toolindex = i;
  17948. if (t == 1) {
  17949. if (this.wbCount > 0) {
  17950. this.updateCount(this.wbCount, t);
  17951. } else {
  17952. this.wbCount++;
  17953. a = this.wbCount;
  17954. this.toolsCount(a, t);
  17955. }
  17956. window.parent.postMessage(
  17957. {
  17958. tools: "1",
  17959. cid: this.id,
  17960. stage: this.courseType,
  17961. task: this.taskCount,
  17962. tool: i,
  17963. },
  17964. "*"
  17965. );
  17966. } else if (t == 2) {
  17967. if (this.wordCount > 0) {
  17968. this.updateCount(this.wordCount, t);
  17969. } else {
  17970. this.wordCount++;
  17971. a = this.wordCount;
  17972. this.toolsCount(a, t);
  17973. }
  17974. window.parent.postMessage({ tools: "2" }, "*");
  17975. } else if (t == 3) {
  17976. if (this.mindCount > 0) {
  17977. this.updateCount(this.mindCount, t);
  17978. } else {
  17979. this.mindCount++;
  17980. a = this.mindCount;
  17981. this.toolsCount(a, t);
  17982. }
  17983. window.parent.postMessage(
  17984. {
  17985. tools: "3",
  17986. cid: this.id,
  17987. stage: this.courseType,
  17988. task: this.taskCount,
  17989. tool: i,
  17990. },
  17991. "*"
  17992. );
  17993. } else if (t == 4) {
  17994. this.radio = [];
  17995. this.noteName = "";
  17996. this.isAnswer = false;
  17997. if (this.askCount > 0) {
  17998. this.updateCount(this.askCount, t);
  17999. } else {
  18000. this.askCount++;
  18001. a = this.askCount;
  18002. this.toolsCount(a, t);
  18003. }
  18004. if (!this.dialogVisible2) {
  18005. this.askJson.askJson =
  18006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18007. index
  18008. ].toolChoose[i].askJson;
  18009. this.askJson.askTitle =
  18010. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18011. index
  18012. ].toolChoose[i].askTitle;
  18013. this.askJson.askCount =
  18014. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18015. index
  18016. ].toolChoose[i].askCount;
  18017. } else {
  18018. this.askJson.askJson = this.chapTools.askJson.askJson;
  18019. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18020. this.askJson.askCount = this.chapTools.askJson.askCount;
  18021. }
  18022. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18023. if (this.askJson.askJson[k].type == "2") {
  18024. this.radio.push([]);
  18025. } else {
  18026. this.radio.push("");
  18027. }
  18028. }
  18029. this.dialogVisible5 = true;
  18030. // window.parent.postMessage({ tools: "4" }, "*");
  18031. } else if (t == 45) {
  18032. this.noteName = "";
  18033. this.radio = [];
  18034. this.isAnswer = false;
  18035. if (this.askCount > 0) {
  18036. this.updateCount(this.askCount, t);
  18037. } else {
  18038. this.askCount++;
  18039. a = this.askCount;
  18040. this.toolsCount(a, t);
  18041. }
  18042. this.testJson =
  18043. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18044. index
  18045. ].toolChoose[i].testJson;
  18046. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18047. if (this.testJson.testJson[k].type == "2") {
  18048. this.radio.push([]);
  18049. } else {
  18050. this.radio.push("");
  18051. }
  18052. }
  18053. this.dialogVisibleChoice = true;
  18054. // window.parent.postMessage({ tools: "4" }, "*");
  18055. } else if (t == 5) {
  18056. if (this.scoreCount > 0) {
  18057. this.updateCount(this.scoreCount, t);
  18058. } else {
  18059. this.scoreCount++;
  18060. a = this.scoreCount;
  18061. this.toolsCount(a, t);
  18062. }
  18063. this.dialogVisible4 = true;
  18064. // window.parent.postMessage({ tools: "5" }, "*");
  18065. } else if (t == 6) {
  18066. if (this.noteCount > 0) {
  18067. this.updateCount(this.noteCount, t);
  18068. } else {
  18069. this.noteCount++;
  18070. a = this.noteCount;
  18071. this.toolsCount(a, t);
  18072. }
  18073. window.parent.postMessage(
  18074. {
  18075. tools: "6",
  18076. cid: this.id,
  18077. stage: this.courseType,
  18078. task: this.taskCount,
  18079. tool: i,
  18080. },
  18081. "*"
  18082. );
  18083. } else if (t == 7) {
  18084. if (this.mindNetWorkCount > 0) {
  18085. this.updateCount(this.mindNetWorkCount, t);
  18086. } else {
  18087. this.mindNetWorkCount++;
  18088. a = this.mindNetWorkCount;
  18089. this.toolsCount(a, t);
  18090. }
  18091. window.parent.postMessage(
  18092. {
  18093. tools: "7",
  18094. cid: this.id,
  18095. stage: this.courseType,
  18096. task: this.taskCount,
  18097. tool: i,
  18098. },
  18099. "*"
  18100. );
  18101. } else if (t == 16) {
  18102. if (this.workCount > 0) {
  18103. this.updateCount(this.workCount, t);
  18104. } else {
  18105. this.workCount++;
  18106. a = this.workCount;
  18107. this.toolsCount(a, t);
  18108. }
  18109. this.dialogVisible = true;
  18110. } else if (t == 50) {
  18111. if (this.tType == 2) {
  18112. this.$message.error("不支持学生使用");
  18113. return;
  18114. }
  18115. this.plworkFile = [];
  18116. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18117. if (!this.uploadCid) {
  18118. this.$message.error(
  18119. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18120. );
  18121. return;
  18122. }
  18123. // this.uploadCid =
  18124. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18125. // index
  18126. // ].toolChoose[i].uploadJson[0];
  18127. this.selectUploadStudent(2);
  18128. } else if (t == 8) {
  18129. if (this.libraryCount > 0) {
  18130. this.updateCount(this.libraryCount, t);
  18131. } else {
  18132. this.libraryCount++;
  18133. a = this.libraryCount;
  18134. this.toolsCount(a, t);
  18135. }
  18136. window.parent.postMessage({ tools: "8" }, "*");
  18137. } else if (t == 17) {
  18138. if (this.libraryCount > 0) {
  18139. this.updateCount(this.libraryCount, t);
  18140. } else {
  18141. this.libraryCount++;
  18142. a = this.libraryCount;
  18143. this.toolsCount(a, t);
  18144. }
  18145. window.parent.postMessage({ tools: "17" }, "*");
  18146. } else if (t == 18) {
  18147. if (this.trainCount > 0) {
  18148. this.updateCount(this.trainCount, t);
  18149. } else {
  18150. this.trainCount++;
  18151. a = this.trainCount;
  18152. this.toolsCount(a, t);
  18153. }
  18154. window.parent.postMessage({ tools: "18" }, "*");
  18155. } else if (t == 10) {
  18156. if (this.timeCount > 0) {
  18157. this.updateCount(this.timeCount, t);
  18158. } else {
  18159. this.timeCount++;
  18160. a = this.timeCount;
  18161. this.toolsCount(a, t);
  18162. }
  18163. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  18164. .taskJson[index].toolChoose[i].preTime
  18165. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18166. .toolChoose[i].preTime
  18167. : "";
  18168. this.timeDialogVisible = true;
  18169. } else if (t == 15) {
  18170. this.answerQ = "";
  18171. this.questionAnswer = "";
  18172. if (this.answerCount > 0) {
  18173. this.updateCount(this.answerCount, t);
  18174. } else {
  18175. this.answerCount++;
  18176. a = this.answerCount;
  18177. this.toolsCount(a, t);
  18178. }
  18179. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18180. .taskJson[index].toolChoose[i].answerQ
  18181. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18182. .toolChoose[i].answerQ
  18183. : "";
  18184. this.answerDialogVisible = true;
  18185. } else if (t == 21) {
  18186. window.parent.postMessage({ tools: "21" }, "*");
  18187. } else if (t == 22) {
  18188. window.parent.postMessage({ tools: "22" }, "*");
  18189. } else if (t == 23) {
  18190. window.parent.postMessage({ tools: "23" }, "*");
  18191. } else if (t == 24) {
  18192. window.parent.postMessage({ tools: "24" }, "*");
  18193. } else if (t == 25) {
  18194. window.parent.postMessage({ tools: "25" }, "*");
  18195. } else if (t == 31) {
  18196. window.parent.postMessage({ tools: "31" }, "*");
  18197. } else if (t == 28) {
  18198. window.parent.postMessage({ tools: "28" }, "*");
  18199. } else if (t == 37) {
  18200. window.parent.postMessage({ tools: "37" }, "*");
  18201. } else if (t == 38) {
  18202. window.parent.postMessage({ tools: "38" }, "*");
  18203. } else if (t == 39) {
  18204. window.parent.postMessage({ tools: "39" }, "*");
  18205. } else if (t == 32) {
  18206. window.parent.postMessage({ tools: "32" }, "*");
  18207. } else if (t == 66) {
  18208. window.parent.postMessage({ tools: "66" }, "*");
  18209. } else if (t == 67) {
  18210. window.parent.postMessage({ tools: "67" }, "*");
  18211. } else if (t == 68) {
  18212. window.parent.postMessage({ tools: "68" }, "*");
  18213. } else if (t == 57) {
  18214. // window.parent.postMessage({ tools: "57" }, "*");
  18215. window.parent.postMessage(
  18216. {
  18217. tools: "57u",
  18218. cid: this.id,
  18219. stage: this.courseType,
  18220. task: this.taskCount,
  18221. tool: i,
  18222. },
  18223. "*"
  18224. );
  18225. } else if (t == 58) {
  18226. window.parent.postMessage({ tools: "58" }, "*");
  18227. } else if (t == 59) {
  18228. window.parent.postMessage({ tools: "59" }, "*");
  18229. } else if (t == 60) {
  18230. window.parent.postMessage({ tools: "60" }, "*");
  18231. } else if (t == 61) {
  18232. window.parent.postMessage({ tools: "61" }, "*");
  18233. } else if (t == 63) {
  18234. window.parent.postMessage({ tools: "63" }, "*");
  18235. } else if (t == 71) {
  18236. window.parent.postMessage({ tools: "71" }, "*");
  18237. } else if (t == 69) {
  18238. if (this.worksStudent[i].length) {
  18239. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18240. if (this.userid == this.worksStudent[i][k].userid) {
  18241. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  18242. break;
  18243. } else {
  18244. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18245. }
  18246. }
  18247. } else {
  18248. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  18249. }
  18250. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  18251. .taskJson[index].toolChoose[i].englishList
  18252. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18253. .toolChoose[i].englishList
  18254. : {};
  18255. this.englishToolIndex = i;
  18256. this.myAnList = this.myAnswerList1;
  18257. this.engDialogVisible = true;
  18258. } else if (t == 70) {
  18259. if (this.worksStudent[i].length) {
  18260. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18261. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  18262. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  18263. break;
  18264. } else {
  18265. this.englishVoiceJsonWork = [];
  18266. }
  18267. }
  18268. } else {
  18269. this.englishVoiceJsonWork = [];
  18270. }
  18271. let englishVoiceJson = {}
  18272. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18273. .taskJson[index].toolChoose[i].englishVoiceJson
  18274. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18275. .toolChoose[i].englishVoiceJson
  18276. : {};
  18277. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18278. this.EnglishVoiceDialog = true;
  18279. } else if (t == 65) {
  18280. if (this.tType == 2) {
  18281. this.$message.error("不支持学生使用");
  18282. return;
  18283. }
  18284. this.uploadCid = this.tcid;
  18285. if (!this.uploadCid) {
  18286. this.$message.error(
  18287. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  18288. );
  18289. return;
  18290. }
  18291. this.selectPickStudent();
  18292. } else if (t == 26) {
  18293. window.parent.postMessage(
  18294. {
  18295. tools: "26",
  18296. cid: this.id,
  18297. stage: this.courseType,
  18298. task: this.taskCount,
  18299. tool: i,
  18300. },
  18301. "*"
  18302. );
  18303. } else if (t == 40) {
  18304. if (this.evalCount > 0) {
  18305. this.updateCount(this.evalCount, t);
  18306. } else {
  18307. this.evalCount++;
  18308. a = this.evalCount;
  18309. this.toolsCount(a, t);
  18310. }
  18311. this.eScore = { eBzText: "", eStar: [] };
  18312. if (this.worksStudent[i].length) {
  18313. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18314. if (this.userid == this.worksStudent[i][k].userid) {
  18315. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18316. this.rateJson =
  18317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18318. index
  18319. ].toolChoose[i].rateJson;
  18320. break;
  18321. } else {
  18322. this.rateJson =
  18323. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18324. index
  18325. ].toolChoose[i].rateJson;
  18326. }
  18327. }
  18328. } else {
  18329. this.rateJson =
  18330. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18331. index
  18332. ].toolChoose[i].rateJson;
  18333. }
  18334. this.isStar = false;
  18335. this.studentEvalDialogVisible = true;
  18336. } else if (t == 41) {
  18337. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18338. .taskJson[index].toolChoose[i].selectJson
  18339. ? JSON.parse(
  18340. JSON.stringify(
  18341. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18342. index
  18343. ].toolChoose[i].selectJson
  18344. )
  18345. )
  18346. : { url: "", select: [], answer: [] };
  18347. if (this.worksStudent[i].length) {
  18348. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18349. if (this.userid == this.worksStudent[i][k].userid) {
  18350. var a = this.worksStudent[i][k].works.split(",");
  18351. for (var ki = 0; ki < a.length; ki++) {
  18352. a[ki] = parseInt(a[ki]);
  18353. }
  18354. this.selectAnswer = {
  18355. answer: a,
  18356. stu: this.worksStudent[i][k].sName,
  18357. };
  18358. break;
  18359. } else {
  18360. this.selectAnswer = { answer: [], stu: "" };
  18361. }
  18362. }
  18363. } else {
  18364. this.selectAnswer = { answer: [], stu: "" };
  18365. }
  18366. this.isSelect = false;
  18367. this.dialogVisibleSelect = true;
  18368. } else if (t == 44) {
  18369. window.parent.postMessage({ tools: "44" }, "*");
  18370. } else if (t == 47) {
  18371. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18372. .taskJson[index].toolChoose[i].sentenceList
  18373. ? JSON.parse(
  18374. JSON.stringify(
  18375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18376. index
  18377. ].toolChoose[i].sentenceList
  18378. )
  18379. )
  18380. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18381. for (var q = 0; q < this.sentenceList.length; q++) {
  18382. this.sentenceList[q].chooseSenList = [];
  18383. this.sentenceList[q].addChangeSen = [];
  18384. this.sentenceList[q].addChangeSen = JSON.parse(
  18385. JSON.stringify(this.sentenceList[q].addSentence)
  18386. );
  18387. this.sentenceList[q].chooseSenList.length =
  18388. this.sentenceList[q].rightAnswer.length;
  18389. }
  18390. this.dialogVisibleSentence = true;
  18391. } else if (t == 48) {
  18392. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18393. .taskJson[index].toolChoose[i].tableJson
  18394. ? JSON.parse(
  18395. JSON.stringify(
  18396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18397. index
  18398. ].toolChoose[i].tableJson
  18399. )
  18400. )
  18401. : { text: "" };
  18402. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  18403. if (this.worksStudent[i].length) {
  18404. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18405. if (this.userid == this.worksStudent[i][k].userid) {
  18406. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18407. break;
  18408. }
  18409. }
  18410. }
  18411. this.dialogVisibleTable = true;
  18412. } else if (t == 52) {
  18413. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18414. .taskJson[index].toolChoose[i].wordJson
  18415. ? JSON.parse(
  18416. JSON.stringify(
  18417. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18418. index
  18419. ].toolChoose[i].wordJson
  18420. )
  18421. )
  18422. : { text: "" };
  18423. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  18424. if (this.worksStudent[i].length) {
  18425. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18426. if (this.userid == this.worksStudent[i][k].userid) {
  18427. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18428. break;
  18429. }
  18430. }
  18431. }
  18432. this.dialogVisibleWord = true;
  18433. } else if (t == 49) {
  18434. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  18435. return
  18436. }
  18437. this.groupJson =
  18438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18439. index
  18440. ].toolChoose[i].groupJson;
  18441. this.islock = this.groupJson.islock == 1 ? true : false;
  18442. this.dialogVisibleGroup = true;
  18443. } else if (t == 62) {
  18444. this.videoType = 0;
  18445. this.videoJson = {};
  18446. this.videoJson =
  18447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18448. index
  18449. ].toolChoose[i].videoJson;
  18450. this.dialogVisibleVideo = true;
  18451. }
  18452. },
  18453. teacherWorkSubmit(t, i, index, s) {
  18454. this.sStudent = s;
  18455. this.toolindex = i;
  18456. this.sTool = t;
  18457. if (this.tType !== "1" && this.tType !== "4") {
  18458. return;
  18459. }
  18460. if (t == 16 || t == 32 || t == 50) {
  18461. this.dialogVisibleWorks = true;
  18462. } else if (t == 15) {
  18463. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  18464. .taskJson[index].toolChoose[i].answerQ
  18465. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  18466. .toolChoose[i].answerQ
  18467. : "";
  18468. this.questionAnswer = "";
  18469. this.answerDialogVisibleTeacher = true; //问答
  18470. } else if (t == 52) {
  18471. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18472. .taskJson[index].toolChoose[i].wordJson
  18473. ? JSON.parse(
  18474. JSON.stringify(
  18475. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18476. index
  18477. ].toolChoose[i].wordJson
  18478. )
  18479. )
  18480. : { text: "" };
  18481. if (this.worksStudent[i].length) {
  18482. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18483. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18484. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  18485. break;
  18486. }
  18487. }
  18488. }
  18489. this.dialogVisibleWordTeacher = true; //文档
  18490. } else if (t == 4) {
  18491. this.radio = [];
  18492. this.noteName = "";
  18493. this.isAnswer = false;
  18494. if (this.askCount > 0) {
  18495. this.updateCount(this.askCount, t);
  18496. } else {
  18497. this.askCount++;
  18498. a = this.askCount;
  18499. this.toolsCount(a, t);
  18500. }
  18501. if (!this.dialogVisible2) {
  18502. this.askJson.askJson =
  18503. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18504. index
  18505. ].toolChoose[i].askJson;
  18506. this.askJson.askTitle =
  18507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18508. index
  18509. ].toolChoose[i].askTitle;
  18510. this.askJson.askCount =
  18511. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18512. index
  18513. ].toolChoose[i].askCount;
  18514. } else {
  18515. this.askJson.askJson = this.chapTools.askJson.askJson;
  18516. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  18517. this.askJson.askCount = this.chapTools.askJson.askCount;
  18518. }
  18519. for (var k = 0; k < this.askJson.askJson.length; k++) {
  18520. if (this.askJson.askJson[k].type == "2") {
  18521. this.radio.push([]);
  18522. } else {
  18523. this.radio.push("");
  18524. }
  18525. }
  18526. this.dialogVisible5Teacher = true;
  18527. } else if (t == 45) {
  18528. this.noteName = "";
  18529. this.radio = [];
  18530. this.isAnswer = false;
  18531. if (this.askCount > 0) {
  18532. this.updateCount(this.askCount, t);
  18533. } else {
  18534. this.askCount++;
  18535. a = this.askCount;
  18536. this.toolsCount(a, t);
  18537. }
  18538. this.testJson =
  18539. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18540. index
  18541. ].toolChoose[i].testJson;
  18542. for (var k = 0; k < this.testJson.testJson.length; k++) {
  18543. if (this.testJson.testJson[k].type == "2") {
  18544. this.radio.push([]);
  18545. } else {
  18546. this.radio.push("");
  18547. }
  18548. }
  18549. this.dialogVisibleChoiceTeacher = true;
  18550. } else if (t == 41) {
  18551. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18552. .taskJson[index].toolChoose[i].selectJson
  18553. ? JSON.parse(
  18554. JSON.stringify(
  18555. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18556. index
  18557. ].toolChoose[i].selectJson
  18558. )
  18559. )
  18560. : { url: "", select: [], answer: [] };
  18561. if (this.worksStudent[i].length) {
  18562. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18563. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18564. var a = this.worksStudent[i][k].works.split(",");
  18565. for (var ki = 0; ki < a.length; ki++) {
  18566. a[ki] = parseInt(a[ki]);
  18567. }
  18568. this.selectAnswer = {
  18569. answer: a,
  18570. stu: this.worksStudent[i][k].sName,
  18571. };
  18572. break;
  18573. } else {
  18574. this.selectAnswer = { answer: [], stu: "" };
  18575. }
  18576. }
  18577. } else {
  18578. this.selectAnswer = { answer: [], stu: "" };
  18579. }
  18580. this.isSelect = false;
  18581. this.dialogVisibleSelectTeacher = true;
  18582. } else if (t == 47) {
  18583. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  18584. .taskJson[index].toolChoose[i].sentenceList
  18585. ? JSON.parse(
  18586. JSON.stringify(
  18587. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18588. index
  18589. ].toolChoose[i].sentenceList
  18590. )
  18591. )
  18592. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  18593. for (var q = 0; q < this.sentenceList.length; q++) {
  18594. this.sentenceList[q].chooseSenList = [];
  18595. this.sentenceList[q].addChangeSen = [];
  18596. this.sentenceList[q].addChangeSen = JSON.parse(
  18597. JSON.stringify(this.sentenceList[q].addSentence)
  18598. );
  18599. this.sentenceList[q].chooseSenList.length =
  18600. this.sentenceList[q].rightAnswer.length;
  18601. }
  18602. this.dialogVisibleSentenceTeacher = true;
  18603. } else if (t == 48) {
  18604. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18605. .taskJson[index].toolChoose[i].tableJson
  18606. ? JSON.parse(
  18607. JSON.stringify(
  18608. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18609. index
  18610. ].toolChoose[i].tableJson
  18611. )
  18612. )
  18613. : { text: "" };
  18614. if (this.worksStudent[i].length) {
  18615. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18616. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18617. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  18618. break;
  18619. }
  18620. }
  18621. }
  18622. this.dialogVisibleTableTeacher = true;
  18623. } else if (t == 40) {
  18624. if (this.evalCount > 0) {
  18625. this.updateCount(this.evalCount, t);
  18626. } else {
  18627. this.evalCount++;
  18628. a = this.evalCount;
  18629. this.toolsCount(a, t);
  18630. }
  18631. this.eScore = { eBzText: "", eStar: [] };
  18632. if (this.worksStudent[i].length) {
  18633. for (var k = 0; k < this.worksStudent[i].length; k++) {
  18634. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  18635. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  18636. this.rateJson =
  18637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18638. index
  18639. ].toolChoose[i].rateJson;
  18640. break;
  18641. } else {
  18642. this.rateJson =
  18643. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18644. index
  18645. ].toolChoose[i].rateJson;
  18646. }
  18647. }
  18648. } else {
  18649. this.rateJson =
  18650. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18651. index
  18652. ].toolChoose[i].rateJson;
  18653. }
  18654. this.isStar = false;
  18655. this.studentEvalDialogVisibleTeacher = true;
  18656. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  18657. window.parent.postMessage(
  18658. {
  18659. tools: t + "teacher",
  18660. cid: this.id,
  18661. stage: this.courseType,
  18662. task: this.taskCount,
  18663. tool: i,
  18664. student: this.sStudent,
  18665. },
  18666. "*"
  18667. );
  18668. }
  18669. },
  18670. openCocoPi(tool, i, uid, uname) {
  18671. let student = {
  18672. userid: uid,
  18673. student: uname,
  18674. };
  18675. if (tool == 57) {
  18676. window.parent.postMessage(
  18677. {
  18678. tools: tool + "teacher",
  18679. cid: this.id,
  18680. stage: this.courseType,
  18681. task: this.taskCount,
  18682. tool: i,
  18683. student: student,
  18684. },
  18685. "*"
  18686. );
  18687. }
  18688. },
  18689. setRightAnswer(s, i, j) {
  18690. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  18691. if (
  18692. this.sentenceList[i].chooseSenList[q] == undefined ||
  18693. this.sentenceList[i].chooseSenList[q] == ""
  18694. ) {
  18695. this.sentenceList[i].chooseSenList[q] = s;
  18696. this.sentenceList[i].addChangeSen[j] = "";
  18697. break;
  18698. }
  18699. }
  18700. this.$forceUpdate();
  18701. },
  18702. returnCard(r, i, j) {
  18703. var a = this.sentenceList[i].addSentence.indexOf(r);
  18704. this.sentenceList[i].chooseSenList[j] = "";
  18705. this.sentenceList[i].addChangeSen[a] = r;
  18706. this.$forceUpdate();
  18707. },
  18708. // addSentenceTool() {
  18709. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18710. // this.taskCount
  18711. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  18712. // this.sentenceList = [
  18713. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  18714. // ];
  18715. // this.dialogVisibleSentence = false;
  18716. // },
  18717. toolsCount(a, t) {
  18718. let params = {
  18719. cid: this.id,
  18720. chid: this.courseType,
  18721. uid: this.userid,
  18722. tid: t,
  18723. count: a,
  18724. };
  18725. this.ajax
  18726. .get(this.$store.state.api + "insertToolsCount", params)
  18727. .then((res) => {
  18728. this.selectCount();
  18729. })
  18730. .catch((err) => {
  18731. console.error(err);
  18732. });
  18733. },
  18734. updateCount(c, t) {
  18735. c++;
  18736. let params = {
  18737. cid: this.id,
  18738. chid: this.courseType,
  18739. uid: this.userid,
  18740. tid: t,
  18741. count: c,
  18742. };
  18743. this.ajax
  18744. .get(this.$store.state.api + "updateToolsCount", params)
  18745. .then((res) => {
  18746. this.selectCount();
  18747. })
  18748. .catch((err) => {
  18749. console.error(err);
  18750. });
  18751. },
  18752. checkEva() {
  18753. if (this.evalua != "") {
  18754. for (var i = 0; i < this.evaJuri.length; i++) {
  18755. if (this.evalua == this.evaJuri[i].id) {
  18756. this.eTitle = this.evaJuri[i].title;
  18757. this.eJson = JSON.parse(this.evaJuri[i].content);
  18758. }
  18759. }
  18760. this.$forceUpdate();
  18761. setTimeout(() => {
  18762. this.setMindData();
  18763. }, 0);
  18764. }
  18765. },
  18766. selectEva() {
  18767. let params = {
  18768. oid: this.oid,
  18769. };
  18770. this.ajax
  18771. .get(this.$store.state.api + "selectAllEvaluation", params)
  18772. .then((res) => {
  18773. this.evaJuri = res.data[0];
  18774. })
  18775. .catch((err) => {
  18776. console.error(err);
  18777. });
  18778. },
  18779. setMindData() {
  18780. this.data.data = [];
  18781. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18782. let _eJson = Object.keys(this.eJson);
  18783. let _e = this.eJson;
  18784. for (let i = 0; i < _eJson.length; i++) {
  18785. let element = _e[_eJson[i]];
  18786. this.data.data.push({
  18787. id: element.id,
  18788. parentid: "root",
  18789. topic: element.name,
  18790. });
  18791. let _eJsonc = Object.keys(element.child);
  18792. let _e2 = element.child;
  18793. for (let j = 0; j < _eJsonc.length; j++) {
  18794. let _ec = _e2[_eJsonc[j]];
  18795. this.data.data.push({
  18796. id: _ec.id,
  18797. parentid: element.id,
  18798. topic: _ec.name,
  18799. });
  18800. let _eJsonz = Object.keys(_ec.child);
  18801. let _e3 = _ec.child;
  18802. for (let z = 0; z < _eJsonz.length; z++) {
  18803. let _ez = _e3[_eJsonz[z]];
  18804. this.data.data.push({
  18805. id: _ez.id,
  18806. parentid: _ec.id,
  18807. topic: _ez.name,
  18808. });
  18809. }
  18810. }
  18811. }
  18812. this.$forceUpdate();
  18813. },
  18814. checkFileFull(type, url) {
  18815. this.fullDialogVisible = true;
  18816. this.fulltype = type;
  18817. this.fullUrl = url;
  18818. },
  18819. async checkFileFull1(t, f) {
  18820. this.fullDialogVisible = true;
  18821. if (t == 6) {
  18822. this.fulltype = 1;
  18823. this.fullUrl = JSON.parse(JSON.stringify(f));
  18824. } else if (t == 8) {
  18825. this.fulltype = 2;
  18826. this.fullUrl = f.url;
  18827. } else if (
  18828. t == 3 &&
  18829. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18830. "PDF"
  18831. ) {
  18832. this.fulltype = 3;
  18833. this.fullUrl = f.url;
  18834. } else if (t == 3) {
  18835. this.fulltype = 2;
  18836. let _uuurl = await this.checkLink(f.url);
  18837. this.fullUrl =
  18838. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18839. }
  18840. },
  18841. openSname(n, id, i, uid) {
  18842. this.snameWid = id;
  18843. this.worksSName = n;
  18844. this.worksSid = uid == n ? "" : uid;
  18845. this.toolindex = i;
  18846. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18847. if (!this.uploadCid) {
  18848. this.$message.error(
  18849. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18850. );
  18851. return;
  18852. }
  18853. this.selectUploadStudent(1);
  18854. },
  18855. updateName() {
  18856. let params = {
  18857. n: this.worksSName,
  18858. cid: this.snameWid,
  18859. };
  18860. this.ajax
  18861. .get(this.$store.state.api + "updateCourseWorksName", params)
  18862. .then((res) => {
  18863. this.$message({
  18864. message: "修改成功",
  18865. type: "success",
  18866. });
  18867. this.dialogVisibleSname = false;
  18868. this.getCourseDetail(2);
  18869. this.snameWid = "";
  18870. this.worksSName = "";
  18871. })
  18872. .catch((err) => {
  18873. console.error(err);
  18874. });
  18875. },
  18876. downloadFile2(f) {
  18877. // const loading = this.$loading.service({
  18878. // background: "rgba(255, 255, 255, 0.7)",
  18879. // target: document.body,
  18880. // text: "文件加载中...",
  18881. // });
  18882. // let url2 = f.url;
  18883. // let _url2 = "";
  18884. // if (
  18885. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18886. // ) {
  18887. // _url2 = url2.split(
  18888. // "https://view.officeapps.live.com/op/view.aspx?src="
  18889. // )[1];
  18890. // } else {
  18891. // _url2 = url2;
  18892. // }
  18893. // let params = {
  18894. // url: _url2,
  18895. // name: f.name,
  18896. // };
  18897. // this.ajax
  18898. // .get(this.$store.state.api + "download", params)
  18899. // .then((res) => {
  18900. // loading.close();
  18901. // let content = res.data.data.data;
  18902. // let ab = new ArrayBuffer(content.length);
  18903. // let view = new Uint8Array(ab);
  18904. // for (var i = 0; i < content.length; ++i) {
  18905. // view[i] = content[i];
  18906. // }
  18907. // let elink = document.createElement("a");
  18908. // elink.download = f.name;
  18909. // elink.style.display = "none";
  18910. // let blob = new Blob([ab], {
  18911. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18912. // });
  18913. // elink.href = URL.createObjectURL(blob);
  18914. // document.body.appendChild(elink);
  18915. // elink.click();
  18916. // document.body.removeChild(elink);
  18917. // })
  18918. // .catch((err) => {
  18919. // loading.close();
  18920. // console.error(err);
  18921. // });
  18922. var credentials = {
  18923. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18924. secretAccessKey: "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",
  18925. }; //秘钥形式的登录上传
  18926. window.AWS.config.update(credentials);
  18927. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18928. let url2 = f.url;
  18929. let _url2 = "";
  18930. if (
  18931. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18932. ) {
  18933. _url2 = url2.split(
  18934. "https://view.officeapps.live.com/op/view.aspx?src="
  18935. )[1];
  18936. } else {
  18937. _url2 = url2;
  18938. }
  18939. let _this = this;
  18940. _this.downLoading = true
  18941. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18942. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18943. var params = {
  18944. Bucket: "ccrb",
  18945. Key: name
  18946. };
  18947. s3.getObject(params, function (err, data) {
  18948. _this.downLoading = false
  18949. if (err) console.log(err, err.stack); // an error occurred
  18950. else {
  18951. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18952. let a = document.createElement("a");
  18953. a.name = f.name;
  18954. a.href = url;
  18955. a.download = f.name;
  18956. a.click();
  18957. console.log(data);
  18958. } // sxuccessful response
  18959. });
  18960. return;
  18961. let url = f.url;
  18962. let _url = "";
  18963. if (
  18964. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18965. ) {
  18966. _url = url.split(
  18967. "https://view.officeapps.live.com/op/view.aspx?src="
  18968. )[1];
  18969. } else {
  18970. _url = url;
  18971. }
  18972. _this.downLoading = true
  18973. // const loading = _this.$loading.service({
  18974. // background: "rgba(255, 255, 255, 0.7)",
  18975. // target: document.body,
  18976. // text: "文件加载中...",
  18977. // });
  18978. let x = new XMLHttpRequest();
  18979. x.open("GET", _url, true);
  18980. x.responseType = "blob";
  18981. x.onload = function () {
  18982. _this.downLoading = false
  18983. // loading.close();
  18984. let url = window.URL.createObjectURL(new Blob([x.response]));
  18985. let a = document.createElement("a");
  18986. a.name = f.name;
  18987. a.href = url;
  18988. a.download = f.name;
  18989. a.click();
  18990. };
  18991. x.send();
  18992. },
  18993. downloadFile(url) {
  18994. var credentials = {
  18995. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18996. secretAccessKey: "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",
  18997. }; //秘钥形式的登录上传
  18998. window.AWS.config.update(credentials);
  18999. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19000. let url2 = url;
  19001. let _url2 = "";
  19002. if (
  19003. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19004. ) {
  19005. _url2 = url2.split(
  19006. "https://view.officeapps.live.com/op/view.aspx?src="
  19007. )[1];
  19008. } else {
  19009. _url2 = url2;
  19010. }
  19011. const loading2 = this.$loading.service({
  19012. background: "rgba(255, 255, 255, 0.7)",
  19013. target: document.body,
  19014. text: "文件加载中...",
  19015. });
  19016. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  19017. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  19018. var params = {
  19019. Bucket: "ccrb",
  19020. Key: name
  19021. };
  19022. s3.getObject(params, function (err, data) {
  19023. loading2.close();
  19024. if (err) console.log(err, err.stack); // an error occurred
  19025. else {
  19026. let url = window.URL.createObjectURL(new Blob([data.Body]));
  19027. let a = document.createElement("a");
  19028. a.name = name;
  19029. a.href = url;
  19030. a.download = name;
  19031. a.click();
  19032. console.log(data);
  19033. } // sxuccessful response
  19034. });
  19035. return;
  19036. let _this = this;
  19037. let _url = "";
  19038. if (
  19039. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  19040. ) {
  19041. _url = url.split(
  19042. "https://view.officeapps.live.com/op/view.aspx?src="
  19043. )[1];
  19044. } else {
  19045. _url = url;
  19046. }
  19047. const x = new XMLHttpRequest();
  19048. x.open("GET", _url, true);
  19049. x.responseType = "blob";
  19050. const loading = _this.$loading.service({
  19051. background: "rgba(255, 255, 255, 0.7)",
  19052. target: document.body,
  19053. text: "文件加载中...",
  19054. });
  19055. // _this.$message.success("文件下载中...");
  19056. x.onload = function (e) {
  19057. loading.close();
  19058. let content = x.response;
  19059. let elink = document.createElement("a");
  19060. elink.download = decodeURI(
  19061. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  19062. );
  19063. elink.style.display = "none";
  19064. let blob = new Blob([content]);
  19065. elink.href = URL.createObjectURL(blob);
  19066. document.body.appendChild(elink);
  19067. elink.click();
  19068. document.body.removeChild(elink);
  19069. };
  19070. x.send();
  19071. },
  19072. openLine(url) {
  19073. window.open(url);
  19074. },
  19075. resize() {
  19076. if (document.getElementsByClassName("box_course").length) {
  19077. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19078. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19079. if (this.showType == 2 || this.showType == 3) {
  19080. document.getElementsByClassName("navBox")[0].style.height =
  19081. a - 40 + 0+ "px";
  19082. } else {
  19083. document.getElementsByClassName("navBox")[0].style.height =
  19084. a - 40 + "px";
  19085. }
  19086. }
  19087. this.Stbodywidth =
  19088. document.getElementsByClassName("student_body").length &&
  19089. document.getElementsByClassName("student_body")[0].offsetWidth;
  19090. },
  19091. closeDraw() {
  19092. this.bg = null;
  19093. this.drawShow = false;
  19094. },
  19095. showPicturePaint(url) {
  19096. let params = {
  19097. img: url,
  19098. };
  19099. this.ajax
  19100. .get(this.$store.state.api + "imgToBase64", params)
  19101. .then((res) => {
  19102. this.drawShow = true;
  19103. this.bg = res.data[0].img;
  19104. })
  19105. .catch((err) => {
  19106. console.error(err);
  19107. });
  19108. },
  19109. addImgDraw(base64) {
  19110. let file = { name: "批注图.png" };
  19111. let img = this.dataUrlToFile(base64, file);
  19112. this.beforeUpload1(img, 5);
  19113. },
  19114. addImgDrawImG(url) {
  19115. // console.log(url);
  19116. let params = [
  19117. {
  19118. wid: this.commentDetail.wid,
  19119. img: url,
  19120. },
  19121. ];
  19122. this.ajax
  19123. .post(this.$store.state.api + "updateCourseWorks", params)
  19124. .then((res) => {
  19125. this.$message({
  19126. message: "提交成功",
  19127. type: "success",
  19128. });
  19129. this.drawShow = false;
  19130. this.bg = "";
  19131. this.selectSWorks();
  19132. this.selectStudent();
  19133. })
  19134. .catch((err) => {
  19135. this.$message.error("提交失败");
  19136. console.error(err);
  19137. });
  19138. },
  19139. deletePicturePaint() {
  19140. this.$confirm("确定删除此批注吗?", "提示", {
  19141. confirmButtonText: "确定",
  19142. cancelButtonText: "取消",
  19143. type: "warning",
  19144. })
  19145. .then(() => {
  19146. let params = [
  19147. {
  19148. wid: this.commentDetail.wid,
  19149. img: "",
  19150. },
  19151. ];
  19152. this.ajax
  19153. .post(this.$store.state.api + "updateCourseWorks", params)
  19154. .then((res) => {
  19155. this.$message({
  19156. message: "删除成功",
  19157. type: "success",
  19158. });
  19159. this.selectSWorks();
  19160. this.selectStudent();
  19161. })
  19162. .catch((err) => {
  19163. this.$message.error("删除失败");
  19164. console.error(err);
  19165. });
  19166. })
  19167. .catch(() => {});
  19168. },
  19169. getAudioVideo(constraintsData) {
  19170. if (navigator.mediaDevices === undefined) {
  19171. navigator.mediaDevices = {};
  19172. }
  19173. if (navigator.mediaDevices.getUserMedia === undefined) {
  19174. navigator.mediaDevices.getUserMedia = function (constraints) {
  19175. // 首先,如果有getUserMedia的话,就获得它
  19176. var getUserMedia =
  19177. navigator.getUserMedia ||
  19178. navigator.webkitGetUserMedia ||
  19179. navigator.mozGetUserMedia ||
  19180. navigator.msGetUserMedia;
  19181. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  19182. if (!getUserMedia) {
  19183. return Promise.reject({ code: 404 });
  19184. }
  19185. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  19186. return new Promise(function (resolve, reject) {
  19187. getUserMedia.call(navigator, constraints, resolve, reject);
  19188. });
  19189. };
  19190. }
  19191. return navigator.mediaDevices.getUserMedia(constraintsData);
  19192. },
  19193. /**
  19194. * 开始录制
  19195. */
  19196. startRecording(callback) {
  19197. let _function = (screenStream) => {
  19198. this.addStreamStopListener(screenStream, () => {
  19199. console.log("流停止监听");
  19200. this.stopRecording();
  19201. this.$emit("streamStop", {});
  19202. // this.stopRecording();
  19203. });
  19204. var options = {
  19205. type: "video",
  19206. mimeType: "video/webm",
  19207. disableLogs: false,
  19208. getNativeBlob: false, // enable it for longer recordings
  19209. ignoreMutedMedia: false,
  19210. };
  19211. // this.video.srcObject = screenStream;
  19212. this.recorder = RecordRTC(screenStream, options);
  19213. this.recorder.startRecording();
  19214. this.recorder.screen = screenStream;
  19215. this.videoStart = true;
  19216. // callback(true);
  19217. };
  19218. this.getAudioVideo({ audio: true })
  19219. .then((res) => {
  19220. this.captureScreen(_function, true);
  19221. console.log("已点击允许,开启成功");
  19222. })
  19223. .catch((err) => {
  19224. // console.log('浏览器不支持,请更换浏览器')
  19225. // } else {
  19226. this.captureScreen(_function, false);
  19227. console.log("请检查是否存在麦克风");
  19228. });
  19229. },
  19230. /**
  19231. * 停止录制
  19232. */
  19233. stopRecording(callback) {
  19234. this.recorder.stopRecording(() => {
  19235. // this.video.src = this.video.srcObject = null;
  19236. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  19237. const url = URL.createObjectURL(this.recorder.getBlob());
  19238. const a = document.createElement("a"); //this.fileName+
  19239. let videoFile = new File(
  19240. [this.recorder.getBlob()],
  19241. this.courseDetail.title + "录屏.mp4",
  19242. {
  19243. type: "video/mp4",
  19244. }
  19245. );
  19246. let downloadUrl = URL.createObjectURL(videoFile);
  19247. document.body.appendChild(a);
  19248. a.style.display = "none";
  19249. a.href = url;
  19250. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  19251. a.click();
  19252. this.recorder.screen.stop();
  19253. this.recorder.destroy();
  19254. this.recorder = null;
  19255. this.videoStart = false;
  19256. // callback(false);
  19257. });
  19258. },
  19259. //初始化
  19260. captureScreen(callback, type) {
  19261. if (navigator.getDisplayMedia) {
  19262. //录制结束,文件下载
  19263. navigator
  19264. .getDisplayMedia({
  19265. video: true,
  19266. })
  19267. .then((screenStream) => {
  19268. if (type) {
  19269. navigator.mediaDevices
  19270. .getUserMedia({ audio: true })
  19271. .then((mic) => {
  19272. screenStream.addTrack(mic.getTracks()[0]);
  19273. callback(screenStream);
  19274. });
  19275. } else {
  19276. callback(screenStream);
  19277. }
  19278. })
  19279. .catch(function (error) {
  19280. console.log("error", error);
  19281. });
  19282. } else if (navigator.mediaDevices.getDisplayMedia) {
  19283. navigator.mediaDevices
  19284. .getDisplayMedia({
  19285. video: true,
  19286. })
  19287. .then((screenStream) => {
  19288. if (type) {
  19289. navigator.mediaDevices
  19290. .getUserMedia({ audio: true })
  19291. .then((mic) => {
  19292. screenStream.addTrack(mic.getTracks()[0]);
  19293. callback(screenStream);
  19294. });
  19295. } else {
  19296. callback(screenStream);
  19297. }
  19298. })
  19299. .catch(function (error) {
  19300. console.log("error", error);
  19301. });
  19302. } else {
  19303. var error = "getDisplayMedia API are not supported in this browser.";
  19304. console.log("error", error);
  19305. alert(error);
  19306. }
  19307. },
  19308. //流监听
  19309. addStreamStopListener(stream, callback) {
  19310. stream.addEventListener(
  19311. "ended",
  19312. function () {
  19313. callback();
  19314. callback = function () {};
  19315. },
  19316. false
  19317. );
  19318. stream.addEventListener(
  19319. "inactive",
  19320. function () {
  19321. callback();
  19322. callback = function () {};
  19323. },
  19324. false
  19325. );
  19326. stream.getTracks().forEach(function (track) {
  19327. track.addEventListener(
  19328. "ended",
  19329. function () {
  19330. callback();
  19331. callback = function () {};
  19332. },
  19333. false
  19334. );
  19335. track.addEventListener(
  19336. "inactive",
  19337. function () {
  19338. callback();
  19339. callback = function () {};
  19340. },
  19341. false
  19342. );
  19343. });
  19344. },
  19345. updateGroup() {
  19346. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19347. this.dialogVisibleGroup2 = true;
  19348. },
  19349. numberPan() {
  19350. if (
  19351. /[^\d]/.test(this.groupJson.number) ||
  19352. this.groupJson.number < 2 ||
  19353. this.groupJson.number > 10
  19354. ) {
  19355. this.$message.error("请输入2-10的数字");
  19356. this.groupJson.number = "";
  19357. }
  19358. },
  19359. updateGroupJson() {
  19360. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  19361. if (
  19362. this.groupStudentUid[this.toolindex][i].length >
  19363. this.groupJson2.number
  19364. ) {
  19365. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  19366. return;
  19367. }
  19368. }
  19369. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  19370. this.islock = this.groupJson.islock == 1 ? true : false;
  19371. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19372. this.taskCount
  19373. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  19374. let params = [
  19375. {
  19376. cid: this.id,
  19377. chapters: JSON.stringify(this.chapInfoList),
  19378. uid: this.userid,
  19379. unitIndex: this.courseType,
  19380. },
  19381. ];
  19382. this.ajax
  19383. .post(this.$store.state.api + "updateWorkNew4", params)
  19384. .then((res) => {
  19385. this.$message.success("设置成功");
  19386. this.getCourseDetail(2);
  19387. this.dialogVisibleGroup2 = false;
  19388. this.groupJson2 = {};
  19389. this.$forceUpdate();
  19390. })
  19391. .catch((err) => {
  19392. this.$message.error("网络不佳");
  19393. console.error(err);
  19394. });
  19395. },
  19396. lockChair() {
  19397. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  19398. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  19399. this.updateGroupJson();
  19400. },
  19401. selectGroup(index) {
  19402. this.getCourseDetail(2, index);
  19403. },
  19404. joinGroup(index) {
  19405. if (this.groupJson.islock == 2) {
  19406. this.$message.error("位置已被锁定,无法加入");
  19407. return;
  19408. }
  19409. if (
  19410. this.groupStudent[this.toolindex][index].length >
  19411. this.groupJson.number ||
  19412. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  19413. ) {
  19414. this.$message.error("位置已满,无法加入");
  19415. return;
  19416. }
  19417. let params = [
  19418. {
  19419. cid: this.id,
  19420. stage: this.courseType,
  19421. task: this.taskCount,
  19422. tool: this.toolindex,
  19423. g: index,
  19424. uid: this.userid,
  19425. },
  19426. ];
  19427. this.ajax
  19428. .post(this.$store.state.api + "joinGroup", params)
  19429. .then((res) => {
  19430. this.$message.success("加入成功");
  19431. this.getCourseDetail(2);
  19432. })
  19433. .catch((err) => {
  19434. this.$message.error("网络不佳");
  19435. console.error(err);
  19436. });
  19437. },
  19438. exitGroup(id) {
  19439. if (this.groupJson.islock == 2) {
  19440. this.$message.error("位置已被锁定,无法退出");
  19441. return;
  19442. }
  19443. let params = [
  19444. {
  19445. gid: id,
  19446. },
  19447. ];
  19448. this.ajax
  19449. .post(this.$store.state.api + "exitGroup", params)
  19450. .then((res) => {
  19451. this.$message.success("退出成功");
  19452. this.getCourseDetail(2);
  19453. })
  19454. .catch((err) => {
  19455. this.$message.error("网络不佳");
  19456. console.error(err);
  19457. });
  19458. },
  19459. groupUpload(index, task, gindex) {
  19460. this.taskCount = task;
  19461. this.toolindex = index;
  19462. this.groupIndex = gindex;
  19463. this.dialogVisibleGroupWork = true;
  19464. },
  19465. updateGroupChair(user) {
  19466. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  19467. el.label = index;
  19468. return index != user.group;
  19469. });
  19470. this.updateGroupUser = user;
  19471. this.dialogVisibleUpdateGroup = true;
  19472. },
  19473. updateChair() {
  19474. if (
  19475. this.groupStudent[this.toolindex][this.checkChair].length >
  19476. this.groupJson.number ||
  19477. this.groupStudent[this.toolindex][this.checkChair].length ==
  19478. this.groupJson.number
  19479. ) {
  19480. this.$message.error("位置已满,无法加入");
  19481. return;
  19482. }
  19483. let params = [
  19484. {
  19485. cid: this.id,
  19486. stage: this.courseType,
  19487. task: this.taskCount,
  19488. tool: this.toolindex,
  19489. g: this.checkChair,
  19490. uid: this.updateGroupUser.userid,
  19491. },
  19492. ];
  19493. this.ajax
  19494. .post(this.$store.state.api + "joinGroup", params)
  19495. .then((res) => {
  19496. this.$message.success("修改成功");
  19497. this.updateGroupUser = {};
  19498. this.checkChair = "";
  19499. this.updateGroupArray = {};
  19500. this.dialogVisibleUpdateGroup = false;
  19501. this.getCourseDetail(2);
  19502. })
  19503. .catch((err) => {
  19504. this.$message.error("网络不佳");
  19505. console.error(err);
  19506. });
  19507. },
  19508. deleteGroupChair(gindex) {
  19509. this.checkDeleteGroup = [];
  19510. this.deleteGroupUser = JSON.parse(
  19511. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  19512. );
  19513. this.deleteGroupArray = this.groupJson.group[gindex];
  19514. this.groupIndex = gindex;
  19515. this.dialogVisibleDeleteGroup = true;
  19516. },
  19517. async deleteChair() {
  19518. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  19519. const gid =
  19520. this.groupStudent[this.toolindex][this.groupIndex][
  19521. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  19522. this.checkDeleteGroup[i]
  19523. )
  19524. ];
  19525. let params = [
  19526. {
  19527. gid: gid.id,
  19528. },
  19529. ];
  19530. var a = await this.deleteChairA(params);
  19531. if (i == this.checkDeleteGroup.length - 1) {
  19532. this.$message.success("退出成功");
  19533. this.dialogVisibleDeleteGroup = false;
  19534. this.deleteGroupUser = [];
  19535. this.deleteGroupArray = {};
  19536. this.groupIndex = "";
  19537. this.checkDeleteGroup = [];
  19538. this.getCourseDetail(2);
  19539. }
  19540. }
  19541. },
  19542. deleteChairA(params) {
  19543. return new Promise((resolve, reject) => {
  19544. this.ajax
  19545. .post(this.$store.state.api + "exitGroup", params)
  19546. .then((res) => {
  19547. resolve(1);
  19548. })
  19549. .catch((err) => {
  19550. this.$message.error("网络不佳");
  19551. console.error(err);
  19552. });
  19553. });
  19554. },
  19555. contract(i) {
  19556. if (this.isCloseList[i].isClose == 0) {
  19557. this.isCloseList[i].isClose = 1;
  19558. } else {
  19559. this.isCloseList[i].isClose = 0;
  19560. }
  19561. this.$forceUpdate();
  19562. },
  19563. openWordCloud(toolindex) {
  19564. let array = [];
  19565. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  19566. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  19567. array.push({ name: works });
  19568. }
  19569. if (this.isGroup) {
  19570. for (var i = 0; i < this.courseGroup.group.length; i++) {
  19571. let works = this.courseGroup.group[i].works[toolindex];
  19572. for (var j = 0; j < works.length; j++) {
  19573. let answer = JSON.parse(works[j].works)[0].answer;
  19574. array.push({ name: answer });
  19575. }
  19576. }
  19577. }
  19578. this.wordCloudData = array;
  19579. this.dialogVisibleWordCloud = true;
  19580. },
  19581. openTips(i) {
  19582. this.tipsIndex = i;
  19583. this.downDialogVisible = true;
  19584. },
  19585. uploadWorks() {
  19586. this.$confirm("确定导出作业吗?", "提示", {
  19587. confirmButtonText: "确定",
  19588. cancelButtonText: "取消",
  19589. type: "warning",
  19590. })
  19591. .then(() => {
  19592. const loading = this.$loading.service({
  19593. background: "rgba(255, 255, 255, 0.7)",
  19594. target: document.body,
  19595. text: "文件加载中...",
  19596. });
  19597. const _worksStudent = this.worksStudent;
  19598. let url = [];
  19599. var counts = {};
  19600. for (var l = 0; l < _worksStudent[i].length; l++) {
  19601. var item = _worksStudent[i][l];
  19602. var name = item.sName;
  19603. if (!counts.hasOwnProperty(name)) {
  19604. counts[name] = 0;
  19605. } else {
  19606. counts[name]++;
  19607. }
  19608. if (counts[name] > 0) {
  19609. item.sName += " (" + counts[name] + ")";
  19610. }
  19611. }
  19612. for (var l = 0; l < _worksStudent[i].length; l++) {
  19613. var item = _worksStudent[i][l];
  19614. if (
  19615. item.works.indexOf(
  19616. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  19617. ) !== -1 &&
  19618. item.works.indexOf("img") === -1
  19619. ) {
  19620. url.push({ name: item.sName, url: item.works });
  19621. }
  19622. }
  19623. // var toolList = [
  19624. // { name: "电子白板", tool: 1 },
  19625. // { name: "思维导图", tool: 3 },
  19626. // { name: "协同文档", tool: 6 },
  19627. // { name: "思维网格", tool: 7 },
  19628. // { name: "素材库", tool: 8 },
  19629. // { name: "学习资料", tool: 17 },
  19630. // { name: "便签", tool: 2 },
  19631. // { name: "问卷调查", tool: 4 },
  19632. // { name: "选择题", tool: 45 },
  19633. // { name: "倒计时", tool: 10 },
  19634. // { name: "问答", tool: 15 },
  19635. // { name: "课程设计", tool: 26 },
  19636. // { name: "训练服务器", tool: 18 },
  19637. // { name: "作业提交", tool: 16 },
  19638. // { name: "批量上传", tool: 50 },
  19639. // { name: "AIoT Blockly", tool: 21 },
  19640. // { name: "AI Python", tool: 23 },
  19641. // { name: "AI Blockly", tool: 24 },
  19642. // { name: "目标管理", tool: 25 },
  19643. // { name: "数学画板", tool: 31 },
  19644. // { name: "翻译", tool: 28 },
  19645. // { name: "魔盒识字", tool: 37 },
  19646. // { name: "数学画板", tool: 31 },
  19647. // { name: "24点", tool: 38 },
  19648. // { name: "GeoGebra", tool: 39 },
  19649. // { name: "源码编辑", tool: 32 },
  19650. // { name: "个人评价", tool: 40 },
  19651. // { name: "选择匹配", tool: 41 },
  19652. // { name: "汉字宫", tool: 44 },
  19653. // { name: "排序", tool: 47 },
  19654. // { name: "表格", tool: 48 },
  19655. // { name: "文档", tool: 52 },
  19656. // { name: "学生分组", tool: 49 },
  19657. // { name: "CocoPi", tool: 57 },
  19658. // { name: "模拟驾驶", tool: 58 },
  19659. // { name: "路径搜索", tool: 59 },
  19660. // { name: "深度学习", tool: 60 },
  19661. // { name: "全历史", tool: 61 },
  19662. // { name: "交互视频", tool: 62 },
  19663. // { name: "海龟编程", tool: 63 },
  19664. // { name: "挑人", tool: 65 },
  19665. // { name: "公式编辑", tool: 66 },
  19666. // { name: "分子结构", tool: 67 },
  19667. // { name: "时间轴", tool: 68 },
  19668. // ];
  19669. // var toolName = "";
  19670. // for(var w = 0;w<toolList.length;w++){
  19671. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  19672. // toolName = toolList[w].name;
  19673. // }
  19674. // }
  19675. console.log(url);
  19676. this.downLoadAll(url, loading);
  19677. })
  19678. .catch(() => {});
  19679. },
  19680. downLoadAll(url, loading) {
  19681. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  19682. const zip = new JSZip();
  19683. const cache = {};
  19684. const promises = [];
  19685. data.forEach((item) => {
  19686. const promise = getFile(item.url).then((data) => {
  19687. if (data.data != 1) {
  19688. // 下载文件, 并存成ArrayBuffer对象
  19689. const file_name =
  19690. item.name +
  19691. "." +
  19692. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  19693. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  19694. cache[file_name] = data.data;
  19695. }
  19696. });
  19697. promises.push(promise);
  19698. });
  19699. Promise.all(promises).then(() => {
  19700. zip.generateAsync({ type: "blob" }).then((content) => {
  19701. // 生成二进制流
  19702. FileSaver.saveAs(
  19703. content,
  19704. this.courseDetail.title + "-" + "作业提交工具.zip"
  19705. ); // 利用file-saver保存文件 自定义文件名
  19706. setTimeout(() => {
  19707. loading.close();
  19708. }, 2000);
  19709. });
  19710. });
  19711. },
  19712. pickStudent(stu) {
  19713. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  19714. return;
  19715. }
  19716. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  19717. confirmButtonText: "确定",
  19718. cancelButtonText: "取消",
  19719. type: "warning",
  19720. })
  19721. .then(() => {
  19722. let params = [
  19723. {
  19724. uid: stu.userid,
  19725. cid: this.id,
  19726. stage: this.courseType,
  19727. task: this.taskCount,
  19728. tool: this.toolindex,
  19729. },
  19730. ];
  19731. this.ajax
  19732. .post(this.$store.state.api + "updateCoursePick", params)
  19733. .then((res) => {
  19734. this.$message.success("操作成功");
  19735. this.getPick();
  19736. })
  19737. .catch((err) => {
  19738. this.$message.error("网络不佳");
  19739. console.error(err);
  19740. });
  19741. })
  19742. .catch(() => {});
  19743. },
  19744. selectUser(){
  19745. let params = {
  19746. userid: this.userid,
  19747. };
  19748. this.ajax
  19749. .get(this.$store.state.api + "selectUser", params)
  19750. .then((res) => {
  19751. this.userMes = res.data[0];
  19752. })
  19753. .catch((err) => {
  19754. console.error(err);
  19755. });
  19756. },
  19757. setEngText(i){
  19758. this.newEngIndex = i;
  19759. this.$forceUpdate();
  19760. },
  19761. addCorrect(){
  19762. this.$confirm("你确定提交批改嘛?", "提示", {
  19763. confirmButtonText: "确定",
  19764. showCancelButton: false,
  19765. closeOnClickModal: false,
  19766. type: "warning",
  19767. })
  19768. .then(() => {
  19769. let params = {
  19770. cid: this.id,
  19771. s: parseInt(this.courseType),
  19772. t: this.taskCount,
  19773. tool: this.toolindex,
  19774. wid: this.engWid,
  19775. c: this.userid,
  19776. 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) : "",
  19777. };
  19778. this.ajax
  19779. .get(this.$store.state.api + "addEngC", params)
  19780. .then((res) => {
  19781. this.$message.success("提交成功");
  19782. this.engUpdateDialogVisible = false;
  19783. })
  19784. .catch((err) => {
  19785. console.error(err);
  19786. });
  19787. })
  19788. .catch(() => {});
  19789. },
  19790. selectEngC(id,z){
  19791. let params = {
  19792. workid: id,
  19793. };
  19794. this.ajax
  19795. .get(this.$store.state.api + "selectEngC", params)
  19796. .then((res) => {
  19797. if(res.data[0].length == 0){
  19798. this.newEnglishList.engTitle = z.engTitle;
  19799. this.newEnglishList.engText = z.engText;
  19800. }else{
  19801. var a = res.data[0];
  19802. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19803. if(this.userMes[0].type == 2){
  19804. var snum = 0;
  19805. for(var i = 0;i<a.length;i++){
  19806. if(this.userMes[0].userid == a[i].correct){
  19807. this.newEnglishList = JSON.parse(a[i].cWork);
  19808. snum = 1;
  19809. }
  19810. }
  19811. if(snum == 0){
  19812. this.newEnglishList = { engTitle:"",engText:"" };
  19813. this.newEnglishList.engTitle = z.engTitle;
  19814. this.newEnglishList.engText = z.engText;
  19815. }
  19816. }else if(this.userMes[0].type == 1){
  19817. var num = 0;
  19818. for(var w= 0;w<a.length;w++){
  19819. if(this.userMes[0].userid == a[w].correct){
  19820. num = 1;
  19821. }
  19822. }
  19823. if(num == 0){
  19824. this.isNoUserid = true;
  19825. var c = JSON.parse(JSON.stringify(z));
  19826. this.oldEnglishJson1 = c;
  19827. }else{
  19828. this.isNoUserid = false;
  19829. }
  19830. var b = a.sort((item, index) => {
  19831. console.log(item)
  19832. if (item.correct === this.userMes[0].userid) {
  19833. return -1; // 将a移到前面
  19834. } else if (index.correct === this.userMes[0].userid) {
  19835. return 1; // 将b移到前面
  19836. } else {
  19837. return 0; // 保持默认顺序
  19838. }
  19839. });
  19840. for(var p = 0;p<b.length;p++){
  19841. for(var y = 0;y<ppp.length;y++){
  19842. if(b[p].id == ppp[y].id){
  19843. b[p].cWork = JSON.parse(ppp[y].cWork);
  19844. break
  19845. }
  19846. }
  19847. }
  19848. this.newEnglishList1 = b;
  19849. }
  19850. }
  19851. this.greyType = false;
  19852. setTimeout(() => {
  19853. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19854. if(this.newEnglishList1.length > 0){
  19855. if(this.isNoUserid == true){
  19856. this.engListLength = this.newEnglishList1.length + 1;
  19857. this.newEngIndex = -1;
  19858. }else{
  19859. this.engListLength = this.newEnglishList1.length;
  19860. this.newEngIndex = 0;
  19861. }
  19862. }
  19863. if(this.userMes[0].type == 2){
  19864. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19865. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19866. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19867. }else if(this.newEngIndex == -1){
  19868. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19869. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19870. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19871. }
  19872. }, 500);
  19873. this.engUpdateDialogVisible = true;
  19874. this.$forceUpdate();
  19875. })
  19876. .catch((err) => {
  19877. console.error(err);
  19878. });
  19879. },
  19880. getPick() {
  19881. let params = {
  19882. cid: this.id,
  19883. };
  19884. this.ajax
  19885. .get(this.$store.state.api + "getPick", params)
  19886. .then((res) => {
  19887. let array = [];
  19888. for (var i = 0; i < res.data[0].length; i++) {
  19889. array.push(res.data[0][i].userid);
  19890. }
  19891. this.isPickStudent = array;
  19892. if (array.indexOf(this.userid) !== -1) {
  19893. this.$confirm("你被老师选到啦!", "提示", {
  19894. confirmButtonText: "确定",
  19895. showCancelButton: false,
  19896. closeOnClickModal: false,
  19897. type: "warning",
  19898. })
  19899. .then(() => {
  19900. let pa = [
  19901. {
  19902. uid: this.userid,
  19903. cid: this.id,
  19904. },
  19905. ];
  19906. this.ajax
  19907. .post(this.$store.state.api + "deletePick", pa)
  19908. .then((res) => {
  19909. this.getPick();
  19910. })
  19911. .catch((err) => {
  19912. this.$message.error("网络不佳");
  19913. console.error(err);
  19914. });
  19915. })
  19916. .catch(() => {});
  19917. }
  19918. })
  19919. .catch((err) => {
  19920. this.$message.error("网络不佳");
  19921. console.error(err);
  19922. });
  19923. },
  19924. foldEva() {
  19925. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19926. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19927. } else {
  19928. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19929. setTimeout(() => {
  19930. this.checkEva();
  19931. setTimeout(() => {
  19932. this.checkEva();
  19933. }, 500);
  19934. }, 0);
  19935. }
  19936. this.$forceUpdate();
  19937. },
  19938. panToolHeight(tool) {
  19939. var _tool = document.querySelectorAll('#'+tool)[0]
  19940. var _toolA = _tool ? _tool.offsetHeight : 0
  19941. var _toolC = 0
  19942. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19943. let boolean2 = (_toolA > _toolC) ? true : false
  19944. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19945. this.$forceUpdate();
  19946. },
  19947. async checkLink(url) {
  19948. // console.log(url)
  19949. let _url = url
  19950. try {
  19951. const response = await fetch(url);
  19952. if(!response.ok){
  19953. _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]))
  19954. }
  19955. // console.log(response.ok)
  19956. } catch (error) {
  19957. console.error('Error checking link:', error);
  19958. // console.log(false)
  19959. _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]))
  19960. }
  19961. // console.log(_url)
  19962. return _url
  19963. },
  19964. setClassRoomHelperWidth(width){
  19965. this.classRoomHelperWidth = width
  19966. }
  19967. },
  19968. directives: {
  19969. // 使用局部注册指令的方式
  19970. resize: {
  19971. // 指令的名称
  19972. bind(el, binding) {
  19973. // el为绑定的元素,binding为绑定给指令的对象
  19974. let width = "",
  19975. height = "";
  19976. function isReize() {
  19977. const style = document.defaultView.getComputedStyle(el);
  19978. if (width !== style.width || height !== style.height) {
  19979. binding.value(); // 关键
  19980. }
  19981. width = style.width;
  19982. height = style.height;
  19983. }
  19984. el.__vueSetInterval__ = setInterval(isReize, 300);
  19985. },
  19986. unbind(el) {
  19987. clearInterval(el.__vueSetInterval__);
  19988. },
  19989. },
  19990. autoHeight: {
  19991. update(el, binding) {
  19992. const { value } = binding
  19993. if (value && typeof value === 'number') {
  19994. el.style.height = `${value}px`
  19995. } else {
  19996. el.style.height = 'auto'
  19997. }
  19998. },
  19999. componentUpdated(el) {
  20000. el.style.height = `${el.scrollHeight + 5}px`
  20001. },
  20002. }
  20003. },
  20004. beforeDestroy() {
  20005. window.onresize = null;
  20006. clearInterval(this.timer);
  20007. this.timer = null;
  20008. clearInterval(this.opertimer);
  20009. this.opertimer = null;
  20010. },
  20011. computed: {
  20012. // getdocumentSco(){
  20013. // return function (w,task,tooindex) {
  20014. // console.log(w);
  20015. // return task;
  20016. // };
  20017. // },
  20018. getHeight(){
  20019. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  20020. },
  20021. contentConvent() {
  20022. return function (c) {
  20023. return c
  20024. ? c
  20025. .replaceAll(/\r\n/g, "<br/>")
  20026. .replaceAll(/\n/g, "<br/>")
  20027. .replaceAll(/\s/g, " &nbsp")
  20028. : "";
  20029. };
  20030. },
  20031. commentRight(){
  20032. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  20033. return "35px";
  20034. }
  20035. return `calc(${this.classRoomHelperWidth} + 5px)`
  20036. // if(this.$refs["classRoomHelperRef"].type==0){
  20037. // return "100px";
  20038. // }else if(this.$refs["classRoomHelperRef"].type==1){
  20039. // return "502px"
  20040. // }else{
  20041. // return "0px"
  20042. // }
  20043. },
  20044. checkUpload() {
  20045. return function () {
  20046. var studentK = [];
  20047. if (this.plworkFile.length > 0) {
  20048. for (var z = 0; z < this.plworkFile.length; z++) {
  20049. studentK.push(this.plworkFile[z].username);
  20050. }
  20051. studentK = studentK.join(",");
  20052. }
  20053. var a = this.uploadStudentJuri.filter((el) => {
  20054. return studentK.indexOf(el.userid) == -1;
  20055. });
  20056. return a;
  20057. };
  20058. },
  20059. getSName() {
  20060. return function (name) {
  20061. var check = name;
  20062. this.uploadStudentJuri.forEach((el) => {
  20063. if (el.userid == check) {
  20064. check = el.name ? el.name : el.username;
  20065. }
  20066. });
  20067. return check;
  20068. };
  20069. },
  20070. getImgList() {
  20071. return function (val) {
  20072. let srcList = []; // 定义一个数组用来接收后面的img地址
  20073. val.replace(
  20074. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  20075. function (match, capture) {
  20076. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  20077. srcList.push(capture);
  20078. }
  20079. );
  20080. return srcList;
  20081. };
  20082. },
  20083. retrnToolHeight(){
  20084. return function (tool) {
  20085. var _tool = document.querySelectorAll('#'+tool)[0]
  20086. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  20087. };
  20088. },
  20089. Correct() {
  20090. return function (c) {
  20091. let w = "";
  20092. let a = this.correctWord;
  20093. for(var k = 0;k<a.length;k++){
  20094. //diffWordsWithSpace
  20095. if(a.length > 1){
  20096. if(a[k].added == true){
  20097. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20098. }else if(a[k].removed == true){
  20099. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20100. }else{
  20101. w += '<span>' + a[k].value + '</span>';
  20102. }
  20103. }else{
  20104. w = c
  20105. }
  20106. //diffChars方法
  20107. // if(w == ""){
  20108. // if(a.length > 1){
  20109. // if(a[k].added == true){
  20110. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20111. // }else if(a[k].removed == true){
  20112. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20113. // }
  20114. // }else{
  20115. // w = c
  20116. // }
  20117. // }else{
  20118. // if(k == a.length - 1){
  20119. // if(a[k].added == true){
  20120. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20121. // }else if(a[k].removed == true){
  20122. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20123. // }
  20124. // }else{
  20125. // if(a[k].added == true){
  20126. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  20127. // }else if(a[k].removed == true){
  20128. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  20129. // }
  20130. // }
  20131. // }
  20132. }
  20133. c = w;
  20134. return c;
  20135. };
  20136. },
  20137. getScoreList(){
  20138. let params = {
  20139. cid: this.id,
  20140. };
  20141. this.ajax
  20142. .get(this.$store.state.api + "selectTestCourseByCid", params)
  20143. .then((res) => {
  20144. let result = res.data;
  20145. this.scoreList.datalist = result[0];
  20146. this.scoreList.isScoreList = result[1];
  20147. })
  20148. .catch((err) => {
  20149. console.error(err);
  20150. });
  20151. },
  20152. },
  20153. mounted() {
  20154. document.body.addEventListener("click", (e) => {
  20155. if (this.isUpdateToolDetail1) {
  20156. this.updateToolDetail(this.toolDetailIndex);
  20157. }
  20158. });
  20159. if (this.screenType == 2) {
  20160. window.parent.postMessage({ allScreen: 4 }, "*");
  20161. } else if (this.screenType == 3) {
  20162. window.parent.postMessage({ allScreen: 5 }, "*");
  20163. } else if (this.screenType == 1) {
  20164. window.parent.postMessage({ allScreen: 6 }, "*");
  20165. }
  20166. this.setOperationTime();
  20167. this.selectEva();
  20168. this.getCourseDetail();
  20169. this.selectCount();
  20170. this.getHomeWork();
  20171. this.selectUser();
  20172. this.contentDialog = true;
  20173. this.setContent2(true);
  20174. if (this.tType == 4) {
  20175. this.pzDialog = true;
  20176. this.selectPz();
  20177. }
  20178. // 获取评分列表
  20179. this.getScoreList()
  20180. document.scrollingElement.scrollTop = 0;
  20181. window.addEventListener("resize", () => {
  20182. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20183. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20184. if (this.showType == 2 || this.showType == 3) {
  20185. document.getElementsByClassName("navBox")[0].style.height =
  20186. a - 40 + 0+ "px";
  20187. } else {
  20188. document.getElementsByClassName("navBox")[0].style.height =
  20189. a - 40 + "px";
  20190. }
  20191. });
  20192. let _this = this;
  20193. setTimeout(() => {
  20194. // _this.vedioTime = [];
  20195. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  20196. // _this.vedioTime[i] = document.getElementsByClassName(
  20197. // "vjs-duration-display"
  20198. // )[i].textContent;
  20199. // }
  20200. }, 1000);
  20201. },
  20202. };
  20203. </script>
  20204. <style scoped>
  20205. @media screen and (max-width: 1280px) {
  20206. /* .courseIndex > div:first-child(2) {
  20207. width: 15% !important;
  20208. } */
  20209. /* .navText {
  20210. width: 120px !important;
  20211. } */
  20212. .evaCss {
  20213. flex-direction: column !important;
  20214. align-items: center !important;
  20215. }
  20216. .elist_input {
  20217. width: 90% !important;
  20218. }
  20219. .dialog_diy1 >>> .el-dialog {
  20220. width: 100% !important;
  20221. }
  20222. .rightWidthCss {
  20223. width: 100% !important;
  20224. }
  20225. .dialog_diy3 >>> .el-dialog {
  20226. width: 100% !important;
  20227. }
  20228. .addToolCss {
  20229. right: 0 !important;
  20230. width: 100% !important;
  20231. min-width: unset !important;
  20232. }
  20233. }
  20234. .evaCssMax {
  20235. flex-direction: column !important;
  20236. align-items: center !important;
  20237. }
  20238. .dialog_diy >>> .el-dialog {
  20239. margin-top: 10vh !important;
  20240. }
  20241. .body_student {
  20242. width: 77%;
  20243. height: 100%;
  20244. position: absolute;
  20245. left: 22%;
  20246. top: 0;
  20247. }
  20248. .student_head {
  20249. width: 100%;
  20250. margin: 20px auto 0;
  20251. padding-bottom: 20px;
  20252. display: flex;
  20253. flex-direction: column;
  20254. flex-wrap: nowrap;
  20255. align-items: flex-start;
  20256. justify-content: flex-start;
  20257. }
  20258. .pb_left {
  20259. width: 20%;
  20260. margin-right: 10px;
  20261. background: rgb(255, 255, 255);
  20262. position: fixed;
  20263. height: calc(100% - 40px);
  20264. border-radius: 20px;
  20265. padding-bottom: 15px;
  20266. box-sizing: border-box;
  20267. }
  20268. .wheel > img,
  20269. .project > img,
  20270. .star > img,
  20271. .evaluate > img,
  20272. .up_photo > img,
  20273. .chapter_add > img,
  20274. .deleteWord > img,
  20275. .question > img,
  20276. .homework > img {
  20277. width: 100%;
  20278. height: 100%;
  20279. }
  20280. .upCover > img {
  20281. width: 131px;
  20282. height: 69px;
  20283. object-fit: cover;
  20284. }
  20285. .upCover {
  20286. width: calc(100% / 3.5);
  20287. position: relative;
  20288. margin: 0 15px 10px 0;
  20289. display: flex;
  20290. flex-direction: column;
  20291. flex-wrap: nowrap;
  20292. justify-content: center;
  20293. align-content: center;
  20294. align-items: center;
  20295. height: fit-content;
  20296. }
  20297. .upCover2 {
  20298. width: 100%;
  20299. position: relative;
  20300. margin: 0 15px 10px 0;
  20301. display: flex;
  20302. flex-direction: column;
  20303. flex-wrap: nowrap;
  20304. justify-content: center;
  20305. align-content: center;
  20306. align-items: center;
  20307. }
  20308. .upCover2 > img {
  20309. width: 100%;
  20310. height: 90px;
  20311. object-fit: contain;
  20312. }
  20313. .chapter_add {
  20314. width: 120px;
  20315. position: relative;
  20316. text-align: center;
  20317. }
  20318. .isAddThings {
  20319. margin-top: 20px;
  20320. position: relative;
  20321. text-align: center;
  20322. background: #f7f8fa;
  20323. height: 90px;
  20324. width: 90px;
  20325. display: flex;
  20326. flex-direction: column;
  20327. justify-content: center;
  20328. }
  20329. .deleteWord {
  20330. width: 22px;
  20331. height: 22px;
  20332. position: absolute;
  20333. right: -5px;
  20334. top: -5px;
  20335. cursor: pointer;
  20336. }
  20337. .box_course {
  20338. /* width: 60%; */
  20339. width: calc(100% - 300px);
  20340. }
  20341. .wheel {
  20342. width: 100%;
  20343. /* height: 100%; */
  20344. height: 650px;
  20345. }
  20346. .right_box {
  20347. display: flex;
  20348. flex-direction: column;
  20349. margin-left: 30px;
  20350. justify-content: space-around;
  20351. }
  20352. .right_box_title {
  20353. font-size: 23px;
  20354. }
  20355. .people {
  20356. display: flex;
  20357. }
  20358. .student_body {
  20359. width: 100%;
  20360. margin: 0 auto;
  20361. margin-top: 10px;
  20362. padding: 0 0 20px;
  20363. }
  20364. .study_top {
  20365. margin-top: 100px;
  20366. width: 100%;
  20367. height: auto;
  20368. padding-bottom: 20px;
  20369. }
  20370. .study_top .checkbox {
  20371. display: flex;
  20372. align-items: center;
  20373. padding: 15px 0 15px 30px;
  20374. flex: 0 0 auto;
  20375. font-weight: bold;
  20376. border-bottom: 1px solid #eee;
  20377. }
  20378. .study_top .check {
  20379. padding-bottom: 5px;
  20380. text-align: center;
  20381. cursor: pointer;
  20382. height: 30px;
  20383. box-sizing: border-box;
  20384. display: flex;
  20385. }
  20386. .study_top .checked {
  20387. border-bottom: 4px solid #3fc6a0;
  20388. padding-bottom: 5px;
  20389. color: #3fc6a0;
  20390. display: flex;
  20391. height: 35px;
  20392. }
  20393. .study_top .checked > div,
  20394. .study_top .check > div {
  20395. margin-right: 5px;
  20396. }
  20397. .videoTop {
  20398. display: flex;
  20399. flex-direction: row;
  20400. justify-content: space-between;
  20401. background: #fff;
  20402. align-items: center;
  20403. width: 95%;
  20404. padding: 20px;
  20405. }
  20406. .filebox {
  20407. display: flex;
  20408. flex-wrap: wrap;
  20409. flex-direction: column;
  20410. padding: 0 0 5px;
  20411. position: relative;
  20412. }
  20413. .filebox:before {
  20414. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  20415. position: absolute;
  20416. top: 20px;
  20417. left: 13px;
  20418. border-left: 2px dotted #cad1dc;
  20419. height: calc(100% - 15px);
  20420. }
  20421. .toolHeng2 > div:last-child::before {
  20422. height: calc(100% - 43px);
  20423. }
  20424. .filebox .tooldetail {
  20425. width: calc(100% - 280px);
  20426. margin: 0px 12px;
  20427. padding: 12px;
  20428. line-height: 30px;
  20429. word-break: break-word;
  20430. background: #ffffff;
  20431. border-radius: 8px 8px 8px 8px;
  20432. opacity: 1;
  20433. border: 1px solid #cad1dc;
  20434. overflow:hidden;
  20435. box-sizing:border-box;
  20436. }
  20437. .file {
  20438. display: flex;
  20439. flex-direction: column;
  20440. align-items: center;
  20441. justify-content: center;
  20442. cursor: pointer;
  20443. width: 200px;
  20444. }
  20445. .file div {
  20446. margin-top: 10px;
  20447. width: 150px;
  20448. text-align: center;
  20449. overflow: hidden;
  20450. white-space: nowrap;
  20451. text-overflow: ellipsis;
  20452. }
  20453. .media {
  20454. display: flex;
  20455. flex-direction: column;
  20456. align-items: center;
  20457. justify-content: center;
  20458. margin: 0 20px 20px 0;
  20459. cursor: pointer;
  20460. margin: 12px 0 5px 15px;
  20461. overflow: hidden;
  20462. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  20463. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  20464. box-sizing: border-box;
  20465. }
  20466. .media img {
  20467. height: 90px;
  20468. width: 160px;
  20469. object-fit: cover;
  20470. }
  20471. .media .title {
  20472. padding: 5px;
  20473. text-align: left;
  20474. width: 100%;
  20475. box-sizing: border-box;
  20476. }
  20477. .media .btn {
  20478. width: 100%;
  20479. height: 35px;
  20480. line-height: 35px;
  20481. color: #fff;
  20482. background: #606060;
  20483. text-align: center;
  20484. overflow: hidden;
  20485. white-space: nowrap;
  20486. text-overflow: ellipsis;
  20487. }
  20488. .detail_content_top {
  20489. width: 100%;
  20490. padding: 25px 0 25px 0;
  20491. }
  20492. .detail_title {
  20493. text-align: center;
  20494. font-size: 24px;
  20495. }
  20496. .detail_time {
  20497. font-size: 13px;
  20498. padding: 15px 0 0 40px;
  20499. }
  20500. .detail_content {
  20501. line-height: 2pc;
  20502. width: 90%;
  20503. margin: 0 auto;
  20504. padding-top: 30px;
  20505. text-indent: 30px;
  20506. overflow: auto;
  20507. height: 200px;
  20508. }
  20509. .score_box >>> .el-rate {
  20510. margin-left: 10px;
  20511. }
  20512. .dialog_change >>> .el-dialog {
  20513. border-radius: 5px;
  20514. }
  20515. .dialog_change >>> .el-dialog__header {
  20516. background: #f2f2f2;
  20517. text-align: center;
  20518. }
  20519. .dialog_change >>> .el-dialog__title {
  20520. line-height: 5px;
  20521. }
  20522. .dialog_change >>> .el-dialog__body {
  20523. background: #fff;
  20524. padding: 10px 20px;
  20525. }
  20526. .score_box {
  20527. display: flex;
  20528. align-items: center;
  20529. margin-bottom: 18px;
  20530. margin-top: 20px;
  20531. }
  20532. .up_photo {
  20533. width: 120px;
  20534. cursor: pointer;
  20535. margin-top: 10px;
  20536. }
  20537. .up_photo2 {
  20538. width: 180px;
  20539. box-sizing: border-box;
  20540. min-width: 180px;
  20541. height: 180px;
  20542. max-height: 180px;
  20543. min-height: 180px;
  20544. cursor: pointer;
  20545. display: flex;
  20546. flex-direction: column;
  20547. align-items: center;
  20548. justify-content: center;
  20549. background: rgb(242, 246, 255);
  20550. /* padding: 25px; */
  20551. margin-bottom: 10px;
  20552. }
  20553. .up_photo2 img {
  20554. width: 50%;
  20555. height: auto;
  20556. }
  20557. .up_photo2 span {
  20558. color: #898989;
  20559. }
  20560. .plworkBox {
  20561. display: flex;
  20562. align-items: center;
  20563. margin-top: 10px;
  20564. flex-wrap: wrap;
  20565. }
  20566. .upload_send {
  20567. margin: 30px auto 30px;
  20568. width: 60%;
  20569. background: #3681fc;
  20570. text-align: center;
  20571. height: 35px;
  20572. line-height: 35px;
  20573. color: #fff;
  20574. border-radius: 5px;
  20575. cursor: pointer;
  20576. }
  20577. .marginT {
  20578. margin-top: 20px;
  20579. }
  20580. .cd_content_steps {
  20581. display: flex;
  20582. width: 90%;
  20583. justify-content: space-around;
  20584. border-top: 1px solid #eeeeee;
  20585. }
  20586. .cd_steps_box {
  20587. display: flex;
  20588. justify-content: center;
  20589. align-items: center;
  20590. flex-direction: column;
  20591. cursor: pointer;
  20592. }
  20593. .first {
  20594. display: flex;
  20595. align-items: center;
  20596. margin: 15px 0 20px 0;
  20597. font-size: 20px;
  20598. }
  20599. .first > div:nth-child(2) {
  20600. font-size: 16px !important;
  20601. padding-left: 10px;
  20602. line-height: 26px;
  20603. box-sizing: border-box;
  20604. }
  20605. .blue_box_one {
  20606. text-align: center;
  20607. color: #fff;
  20608. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  20609. border-radius: 7px;
  20610. margin: 10px;
  20611. cursor: pointer;
  20612. width: 95%;
  20613. height: 45px;
  20614. display: flex;
  20615. flex-direction: row;
  20616. justify-content: flex-start;
  20617. align-items: center;
  20618. }
  20619. .blue_box_one > div:nth-child(1) {
  20620. line-height: 30px;
  20621. margin: 0 5px 0 10px;
  20622. width: 30%;
  20623. min-width: 70px;
  20624. border-radius: 4px;
  20625. }
  20626. .blue_box_one > div:nth-child(2) {
  20627. white-space: nowrap;
  20628. text-overflow: ellipsis;
  20629. overflow: hidden;
  20630. word-break: break-all;
  20631. width: 70%;
  20632. text-align: left;
  20633. margin-right: 10px;
  20634. max-width: calc(100% - 85px);
  20635. }
  20636. .blue_box_one > div:nth-child(2):hover {
  20637. overflow: hidden;
  20638. text-overflow: ellipsis;
  20639. white-space: nowrap;
  20640. cursor: pointer;
  20641. }
  20642. .upFile {
  20643. margin: 0 auto;
  20644. width: 120px;
  20645. background: #3681fc;
  20646. color: #fff;
  20647. height: 30px;
  20648. text-align: center;
  20649. line-height: 30px;
  20650. border-radius: 5px;
  20651. font-size: 14px;
  20652. cursor: pointer;
  20653. }
  20654. .courseTitle {
  20655. width: 85%;
  20656. margin: 10px auto 26px auto;
  20657. display: flex;
  20658. flex-direction: row;
  20659. align-items: center;
  20660. justify-content: space-between;
  20661. text-align: center;
  20662. }
  20663. .courseTitle .ctitle {
  20664. font-size: 20px;
  20665. font-weight: bold;
  20666. color: #0e1e33;
  20667. white-space: nowrap;
  20668. overflow: hidden;
  20669. text-overflow: ellipsis;
  20670. }
  20671. .inviteBox {
  20672. font-size: 14px;
  20673. /* margin-top: 5px; */
  20674. color: #00000099;
  20675. text-align: center;
  20676. }
  20677. .courseTitle >>> .el-tooltip {
  20678. width: 100%;
  20679. white-space: nowrap;
  20680. overflow: hidden;
  20681. text-overflow: ellipsis;
  20682. word-break: break-word;
  20683. }
  20684. .ml {
  20685. margin-left: 20px;
  20686. color: #5b7dba;
  20687. border-left: 3px solid #5b7dba;
  20688. padding-left: 5px;
  20689. font-weight: bold;
  20690. }
  20691. .return {
  20692. width: 2rem;
  20693. height: 2rem;
  20694. cursor: pointer;
  20695. }
  20696. .return > img {
  20697. width: 100%;
  20698. height: 100%;
  20699. }
  20700. .returnBtn {
  20701. width: 86px;
  20702. height: 36px;
  20703. background: #3681fc;
  20704. border-radius: 4px;
  20705. color: #fff;
  20706. text-align: center;
  20707. line-height: 36px;
  20708. margin-right: 20px;
  20709. cursor: pointer;
  20710. font-size: 14px;
  20711. font-weight: 400;
  20712. display: flex;
  20713. flex-direction: row;
  20714. flex-wrap: nowrap;
  20715. align-items: center;
  20716. justify-content: center;
  20717. }
  20718. .reBtnIcon,
  20719. .commentIcon,
  20720. .vedioIcon,
  20721. .vedioIcon1 {
  20722. /* width: 36px; */
  20723. height: 36px;
  20724. border-radius: 4px;
  20725. position: relative;
  20726. /* background: #e0eafb; */
  20727. background: #0061ff;
  20728. cursor: pointer;
  20729. margin-right: 12px;
  20730. display: flex;
  20731. align-items: center;
  20732. padding: 0 10px;
  20733. box-sizing: border-box;
  20734. font-size: 14px;
  20735. color: #fff;
  20736. }
  20737. .reBtnIcon::before,
  20738. .commentIcon::before,
  20739. .vedioIcon::before,
  20740. .vedioIcon1::before {
  20741. content: "";
  20742. display: block;
  20743. background-size: 100% 100%;
  20744. background-repeat: no-repeat;
  20745. width: 20px;
  20746. height: 20px;
  20747. margin-right: 5px;
  20748. /* position: absolute; */
  20749. /* top: 8px;
  20750. left: 8px; */
  20751. }
  20752. .vedioIcon1 {
  20753. background: #f63564;
  20754. }
  20755. .reBtnIcon::before {
  20756. background-image: url("../../assets/icon/newIcons/refresh.png");
  20757. }
  20758. .commentIcon::before {
  20759. background-image: url("../../assets/icon/newIcons/comment.png");
  20760. }
  20761. .vedioIcon::before {
  20762. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20763. }
  20764. .vedioIcon1::before {
  20765. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  20766. background-image: url("../../assets/icon/newIcons/transcribe.png");
  20767. }
  20768. .tool {
  20769. display: flex;
  20770. flex-direction: column;
  20771. flex-wrap: nowrap;
  20772. width: 13%;
  20773. margin: 0 30px;
  20774. align-items: center;
  20775. position: relative;
  20776. padding: 10px 25px;
  20777. cursor: pointer;
  20778. }
  20779. .whiteBIcon {
  20780. width: 150px;
  20781. }
  20782. .whiteBIcon > img {
  20783. width: 100%;
  20784. height: 100%;
  20785. }
  20786. .mask {
  20787. background-color: rgba(0, 0, 0, 0);
  20788. position: fixed;
  20789. top: 0;
  20790. left: 0;
  20791. width: 100%;
  20792. height: 100%;
  20793. z-index: 20000;
  20794. display: flex;
  20795. align-items: center;
  20796. justify-content: center;
  20797. }
  20798. .progressBox {
  20799. width: 500px;
  20800. height: 180px;
  20801. background: #fff;
  20802. border-radius: 10px;
  20803. box-shadow: 0 0 6px 1px #bfbfbf;
  20804. display: flex;
  20805. align-items: center;
  20806. justify-content: center;
  20807. flex-direction: column;
  20808. position: relative;
  20809. color: #6c6c6c;
  20810. }
  20811. .progressBox >>> .el-progress-bar__outer {
  20812. background-color: #d1dfff !important;
  20813. }
  20814. .progressBox .lbox {
  20815. height: 50px;
  20816. font-size: 19px;
  20817. display: flex;
  20818. align-items: center;
  20819. color: #747474;
  20820. }
  20821. .progressBox .lbox img {
  20822. width: 40px;
  20823. margin-right: 20px;
  20824. }
  20825. .closeCss {
  20826. position: absolute;
  20827. top: 8px;
  20828. right: 8px;
  20829. cursor: pointer;
  20830. width: 20px;
  20831. height: 20px;
  20832. }
  20833. .closeCss > img {
  20834. width: 100%;
  20835. height: 100%;
  20836. }
  20837. .uploadVedio {
  20838. display: flex;
  20839. flex-direction: column;
  20840. flex-wrap: nowrap;
  20841. justify-content: center;
  20842. align-items: center;
  20843. margin: 0 15px 10px 0;
  20844. }
  20845. .uploadVedio > img {
  20846. width: 30px;
  20847. height: 30px;
  20848. }
  20849. .uploadVedio > span {
  20850. white-space: nowrap;
  20851. overflow: hidden;
  20852. text-overflow: ellipsis;
  20853. width: 75px;
  20854. margin-top: 7px;
  20855. }
  20856. .picName {
  20857. white-space: nowrap;
  20858. overflow: hidden;
  20859. text-overflow: ellipsis;
  20860. width: 75px;
  20861. margin-top: 7px;
  20862. }
  20863. .new_top {
  20864. display: flex;
  20865. background: #fff;
  20866. flex-direction: row;
  20867. justify-content: flex-start;
  20868. align-items: center;
  20869. height: 60px;
  20870. position: fixed;
  20871. top: 20px;
  20872. left: 22%;
  20873. width: 77%;
  20874. z-index: 999;
  20875. border-radius: 12px 12px 0 0;
  20876. border-bottom: 1px solid #cad1dc;
  20877. padding: 10px 0;
  20878. }
  20879. .new_topFixed {
  20880. width: 100%;
  20881. height: 40px;
  20882. position: fixed;
  20883. top: 0px;
  20884. display: block;
  20885. background: #f2f2f2;
  20886. z-index: 998;
  20887. }
  20888. .before {
  20889. position: absolute;
  20890. background: #c3dad4;
  20891. width: 6px;
  20892. height: 100%;
  20893. }
  20894. .courseIndex {
  20895. display: flex;
  20896. flex-direction: row;
  20897. align-items: center;
  20898. width: calc(100% - 745px);
  20899. }
  20900. .courseIndex > div:nth-child(1) {
  20901. margin: 0 0 0 10px;
  20902. font-size: 20px;
  20903. min-width: 100px;
  20904. font-weight: bold;
  20905. border-left: 4px solid #3363b9;
  20906. height: 32px;
  20907. text-align: center;
  20908. line-height: 35px;
  20909. }
  20910. .courseIndex > div:nth-child(2) {
  20911. font-size: 20px;
  20912. /* width: 300px; */
  20913. max-width: calc(100% - 105px);
  20914. white-space: nowrap;
  20915. overflow: hidden;
  20916. text-overflow: ellipsis;
  20917. }
  20918. .courseIndex > div:nth-child(3) {
  20919. border-bottom: 1px solid #d7d7d7;
  20920. padding-bottom: 5px;
  20921. background: #3681fc;
  20922. width: 55px;
  20923. min-width: 55px;
  20924. border-radius: 5px;
  20925. color: #fff;
  20926. text-align: center;
  20927. height: 20px;
  20928. line-height: 26px;
  20929. font-size: 14px;
  20930. margin: 0 0 0 10px;
  20931. }
  20932. .course_text {
  20933. padding: 20px 0 0 15px;
  20934. text-indent: 30px;
  20935. width: 80%;
  20936. min-height: 20px;
  20937. }
  20938. .vedioList {
  20939. background: #f2f2f2;
  20940. border: 1px solid #ececec;
  20941. /* width: 38.8%; */
  20942. /* width: 300px; */
  20943. width: 100%;
  20944. height: 445px;
  20945. border-radius: 10px;
  20946. overflow: hidden;
  20947. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20948. }
  20949. .vedioNav {
  20950. margin: 10px 0 0 15px;
  20951. border-bottom: 1px solid #d7d7d7;
  20952. padding-bottom: 5px;
  20953. background: #3681fc;
  20954. width: 55px;
  20955. min-width: 55px;
  20956. border-radius: 5px;
  20957. color: #fff;
  20958. text-align: center;
  20959. height: 20px;
  20960. line-height: 26px;
  20961. font-size: 14px;
  20962. }
  20963. .queTop {
  20964. display: flex;
  20965. padding: 20px 0 20px 30px;
  20966. width: 100%;
  20967. flex-direction: row;
  20968. justify-content: flex-start;
  20969. align-items: center;
  20970. box-sizing: border-box;
  20971. }
  20972. .queTopTitle {
  20973. display: flex;
  20974. flex-direction: row;
  20975. flex-wrap: nowrap;
  20976. align-items: center;
  20977. font-weight: bold;
  20978. font-size: 20px;
  20979. color: rgb(14, 30, 51);
  20980. }
  20981. .queTopTitle::before {
  20982. content: "";
  20983. width: 2px;
  20984. height: 22px;
  20985. background: #3681fc;
  20986. border-radius: 3px;
  20987. display: block;
  20988. margin: 2px 6px 0 0;
  20989. }
  20990. .queTopRight {
  20991. display: flex;
  20992. flex-direction: row;
  20993. flex-wrap: nowrap;
  20994. align-items: center;
  20995. }
  20996. .queTopClose {
  20997. margin-right: 20px;
  20998. cursor: pointer;
  20999. position: relative;
  21000. display: flex;
  21001. }
  21002. .closeImg,
  21003. .openImg {
  21004. width: 25px;
  21005. height: 25px;
  21006. position: absolute;
  21007. left: -20px;
  21008. top: -1px;
  21009. }
  21010. .closeImg > img,
  21011. .openImg > img {
  21012. width: 100%;
  21013. height: 100%;
  21014. }
  21015. .question {
  21016. width: 40px;
  21017. margin-right: 10px;
  21018. margin-top: 7px;
  21019. }
  21020. .queTitle {
  21021. margin-left: 5px;
  21022. font-size: 25px;
  21023. display: flex;
  21024. align-items: center;
  21025. }
  21026. .addEditor {
  21027. width: 100px;
  21028. height: 30px;
  21029. background: #42cda6;
  21030. color: #fff;
  21031. border-radius: 5px;
  21032. text-align: center;
  21033. line-height: 30px;
  21034. box-shadow: 1px 3px 6px 1px #bfbfbf;
  21035. cursor: pointer;
  21036. }
  21037. /* .vedioName {
  21038. cursor: pointer;
  21039. margin: 0px 0px 10px 5px;
  21040. white-space: nowrap;
  21041. overflow: hidden;
  21042. text-overflow: ellipsis;
  21043. width: 100%;
  21044. } */
  21045. .vedioTime {
  21046. width: 35px;
  21047. position: absolute;
  21048. color: #fff;
  21049. bottom: 0px;
  21050. right: 0px;
  21051. text-align: center;
  21052. background: #46411f;
  21053. height: 20px;
  21054. font-size: 14px;
  21055. line-height: 20px;
  21056. }
  21057. .homework {
  21058. width: 200px;
  21059. display: flex;
  21060. flex-direction: column;
  21061. flex-wrap: nowrap;
  21062. align-items: center;
  21063. cursor: pointer;
  21064. }
  21065. .homebox {
  21066. display: flex;
  21067. flex-wrap: wrap;
  21068. flex-direction: row;
  21069. justify-content: flex-start;
  21070. align-items: center;
  21071. padding: 15px 0;
  21072. }
  21073. .isChooseActive {
  21074. color: #3681fc !important;
  21075. font-weight: bold !important;
  21076. }
  21077. .chooseWho {
  21078. display: flex;
  21079. width: 100%;
  21080. flex-direction: row;
  21081. flex-wrap: nowrap;
  21082. justify-content: flex-start;
  21083. padding-bottom: 10px;
  21084. }
  21085. .chooseWho > div {
  21086. cursor: pointer;
  21087. padding-bottom: 10px;
  21088. margin: 0 30px 0 0;
  21089. font-weight: 400;
  21090. color: #0e1e33;
  21091. }
  21092. .addPoint > div > img {
  21093. cursor: pointer;
  21094. width: 85px;
  21095. border-radius: 15px;
  21096. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  21097. }
  21098. .addPoint > div {
  21099. display: flex;
  21100. flex-direction: column;
  21101. flex-wrap: nowrap;
  21102. align-items: center;
  21103. }
  21104. .isBorder > div {
  21105. margin: 0 0 10px 0;
  21106. align-items: flex-start !important;
  21107. }
  21108. .noiframeBox {
  21109. display: flex;
  21110. flex-wrap: wrap;
  21111. }
  21112. .iframeBox iframe {
  21113. width: 100%;
  21114. height: 800px;
  21115. border: none;
  21116. margin-bottom: 20px;
  21117. border: 1px solid #ccc;
  21118. }
  21119. .upload_toolBtn {
  21120. background: #3681fc;
  21121. color: #fff;
  21122. width: 110px;
  21123. text-align: center;
  21124. height: 35px;
  21125. line-height: 35px;
  21126. font-size: 14px;
  21127. border-radius: 5px;
  21128. cursor: pointer;
  21129. position: absolute;
  21130. right: 10px;
  21131. bottom: 0;
  21132. }
  21133. .binfo_input,
  21134. .pj {
  21135. font: inherit;
  21136. color: currentColor;
  21137. width: 100%;
  21138. margin: 0;
  21139. padding: 15px 14px;
  21140. display: block;
  21141. min-width: 0;
  21142. outline: none;
  21143. box-sizing: content-box;
  21144. background: none;
  21145. -webkit-tap-highlight-color: transparent;
  21146. border: 1px solid rgba(0, 0, 0, 0.23);
  21147. border-radius: 4px;
  21148. box-sizing: border-box;
  21149. resize: none;
  21150. }
  21151. .binfo_input:focus-visible {
  21152. border: 1px solid rgba(61, 103, 188);
  21153. }
  21154. .dialog_diy >>> .el-dialog__header,
  21155. .dialog_diy1 >>> .el-dialog__header {
  21156. background: #454545 !important;
  21157. padding: 15px 20px;
  21158. }
  21159. .dialog_diy >>> .el-dialog__title,
  21160. .dialog_diy1 >>> .el-dialog__title {
  21161. color: #fff;
  21162. }
  21163. .dialog_diy >>> .el-dialog__headerbtn,
  21164. .dialog_diy1 >>> .el-dialog__headerbtn {
  21165. top: 19px;
  21166. }
  21167. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  21168. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  21169. color: #fff;
  21170. }
  21171. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  21172. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  21173. color: #fff;
  21174. }
  21175. .dialog_diy1 >>> .el-dialog__body {
  21176. padding: 0;
  21177. }
  21178. .dialog_diy >>> .el-dialog__body,
  21179. .dialog_diy >>> .el-dialog__footer,
  21180. .dialog_diy1 >>> .el-dialog__footer {
  21181. background: #fafafa;
  21182. }
  21183. .a_addBox {
  21184. padding: 0 0 0 15px;
  21185. }
  21186. .a_add_box {
  21187. padding: 10px;
  21188. background: #fff;
  21189. margin-bottom: 10px;
  21190. border-radius: 5px;
  21191. box-shadow: 0 0 5px 0 #d5d5d5;
  21192. }
  21193. .a_add_head {
  21194. display: flex;
  21195. align-items: flex-start;
  21196. /* justify-content: space-between; */
  21197. flex-direction: column;
  21198. /* flex-direction: row; */
  21199. margin: 10px 0 20px 0;
  21200. font-size: 18px;
  21201. width: 100%;
  21202. }
  21203. .askIndex {
  21204. background: #3681fc;
  21205. border-radius: 50%;
  21206. color: #fff;
  21207. width: 25px;
  21208. height: 25px;
  21209. min-width: 25px;
  21210. min-height: 25px;
  21211. text-align: center;
  21212. line-height: 25px;
  21213. margin-right: 5px;
  21214. }
  21215. .a_add_head .a_add_head_input {
  21216. width: 300px;
  21217. }
  21218. .a_add_head .a_add_head_div {
  21219. display: flex;
  21220. align-items: center;
  21221. justify-content: space-between;
  21222. }
  21223. .a_add_body {
  21224. display: flex;
  21225. align-items: center;
  21226. }
  21227. .a_add_input {
  21228. display: flex;
  21229. align-items: center;
  21230. flex-wrap: wrap;
  21231. width: 100%;
  21232. }
  21233. .a_add_input >>> .el-radio-group,
  21234. .a_add_input >>> .el-checkbox-group {
  21235. width: 100%;
  21236. }
  21237. .a_add_input >>> .el-radio,
  21238. .a_add_input >>> .el-checkbox {
  21239. display: flex;
  21240. flex-direction: row;
  21241. flex-wrap: nowrap;
  21242. align-items: center;
  21243. padding: 15px 0;
  21244. }
  21245. .a_add_input >>> .el-radio:not(:last-child),
  21246. .a_add_input >>> .el-checkbox:not(:last-child) {
  21247. width: 100%;
  21248. border-bottom: 1px solid #efefef;
  21249. }
  21250. .redioStyle >>> .el-radio__label {
  21251. font-size: 18px;
  21252. }
  21253. .redioStyle >>> .el-radio__label > span,
  21254. .redioStyle >>> .el-checkbox__label > span {
  21255. word-break: break-all;
  21256. white-space: normal;
  21257. }
  21258. .redioStyle >>> .el-checkbox__label {
  21259. font-size: 18px;
  21260. }
  21261. .toolHeng2 {
  21262. width: 100%;
  21263. padding-left: 37px;
  21264. box-sizing: border-box;
  21265. }
  21266. .workNav {
  21267. font-size: 20px;
  21268. font-weight: bold;
  21269. color: #0e1e33;
  21270. display: flex;
  21271. flex-direction: row;
  21272. flex-wrap: nowrap;
  21273. align-items: center;
  21274. padding: 15px 0 15px 0;
  21275. }
  21276. .workNav::before {
  21277. content: "";
  21278. width: 2px;
  21279. height: 22px;
  21280. background: #3681fc;
  21281. border-radius: 3px;
  21282. display: block;
  21283. margin: 2px 6px 0 0;
  21284. }
  21285. .toolHeng {
  21286. display: flex;
  21287. flex-direction: row;
  21288. flex-wrap: wrap;
  21289. justify-content: flex-start;
  21290. align-items: center;
  21291. width: 100%;
  21292. }
  21293. .toolHeng > div {
  21294. padding-left: 20px;
  21295. }
  21296. .isWidth {
  21297. width: 20%;
  21298. }
  21299. .textTitle {
  21300. display: flex;
  21301. flex-direction: row;
  21302. flex-wrap: nowrap;
  21303. align-items: center;
  21304. width: 95%;
  21305. }
  21306. .textTitle >>> .el-form-item__label {
  21307. font-size: 22px;
  21308. color: #918f8f;
  21309. width: 100px;
  21310. }
  21311. .textTitle >>> .el-form-item__content {
  21312. width: calc(100% - 100px);
  21313. }
  21314. .textCss >>> .el-dialog {
  21315. width: 800px !important;
  21316. height: 400px;
  21317. background: #fafafa;
  21318. }
  21319. .textCss >>> .el-dialog__body {
  21320. margin: 55px 8% 0 8%;
  21321. padding: 0 !important;
  21322. }
  21323. .textCss >>> .el-dialog__footer {
  21324. padding-top: 38px;
  21325. }
  21326. .toolsCss >>> .el-dialog__body {
  21327. padding: 20px;
  21328. }
  21329. .lineCss >>> .el-dialog__body {
  21330. display: flex;
  21331. flex-direction: row;
  21332. align-items: center;
  21333. justify-content: center;
  21334. }
  21335. .newNav {
  21336. display: flex;
  21337. flex-direction: row;
  21338. align-items: baseline;
  21339. justify-content: flex-start;
  21340. }
  21341. .navListItem {
  21342. width: calc(100% - 20px);
  21343. height: 50px;
  21344. margin: 0px auto 10px;
  21345. display: flex;
  21346. flex-direction: row;
  21347. flex-wrap: nowrap;
  21348. align-items: center;
  21349. justify-content: space-between;
  21350. background: #f0f4fa;
  21351. border-radius: 6px 6px 6px 6px;
  21352. }
  21353. .navText {
  21354. cursor: pointer;
  21355. white-space: nowrap;
  21356. overflow: hidden;
  21357. text-overflow: ellipsis;
  21358. width: 220px;
  21359. padding: 0 10px;
  21360. font-weight: 400;
  21361. color: #0e1e33;
  21362. }
  21363. .downIcon {
  21364. width: 20px;
  21365. min-width: 20px;
  21366. height: 20px;
  21367. margin-right: 15px;
  21368. cursor: pointer;
  21369. }
  21370. .downIcon > img {
  21371. width: 100%;
  21372. height: 100%;
  21373. }
  21374. .noVedio {
  21375. display: flex;
  21376. flex-direction: row;
  21377. justify-content: center;
  21378. align-content: center;
  21379. }
  21380. .noNavText {
  21381. cursor: pointer;
  21382. margin: 0px 0px 10px 5px;
  21383. width: 112px;
  21384. }
  21385. .listNoVedio {
  21386. margin: 0 0 0 30px;
  21387. width: 97%;
  21388. }
  21389. .video-player >>> .video-js {
  21390. height: 100%;
  21391. }
  21392. .hangVedioList {
  21393. width: 90% !important;
  21394. height: 150px !important;
  21395. margin: 20px 0 0 30px;
  21396. }
  21397. .hangVedio {
  21398. width: 100%;
  21399. height: 170px !important;
  21400. align-items: flex-start !important;
  21401. }
  21402. .hangHand {
  21403. height: 150px !important;
  21404. }
  21405. .twoChild {
  21406. width: 95%;
  21407. margin: 10px;
  21408. border-radius: 5px;
  21409. background: #f2f2f2;
  21410. display: flex;
  21411. flex-direction: column;
  21412. flex-wrap: nowrap;
  21413. justify-content: flex-start;
  21414. align-items: flex-start;
  21415. transition: all 0.5s;
  21416. overflow: hidden;
  21417. height: 0;
  21418. background: #e7f3ff;
  21419. }
  21420. .twoChild > div:nth-child(1) {
  21421. margin-top: 5px;
  21422. }
  21423. .navChild {
  21424. width: 100%;
  21425. cursor: pointer;
  21426. margin-bottom: 10px;
  21427. position: relative;
  21428. }
  21429. .navChild img {
  21430. position: absolute;
  21431. right: 11px;
  21432. width: 15px;
  21433. top: 50%;
  21434. transform: translateY(-50%);
  21435. }
  21436. .navActive,
  21437. .toolActive {
  21438. height: auto !important;
  21439. overflow: auto !important;
  21440. /* // padding-bottom: 16px; */
  21441. }
  21442. .toolActive {
  21443. padding: 0;
  21444. }
  21445. .navTask {
  21446. display: flex;
  21447. flex-direction: row;
  21448. flex-wrap: nowrap;
  21449. align-items: center;
  21450. align-content: flex-start;
  21451. height: 40px;
  21452. justify-content: flex-start;
  21453. padding: 0 10px;
  21454. width: 100%;
  21455. box-sizing: border-box;
  21456. }
  21457. .navTaskname {
  21458. white-space: nowrap;
  21459. text-overflow: ellipsis;
  21460. overflow: hidden;
  21461. word-break: break-all;
  21462. padding-left: 5px;
  21463. }
  21464. .openTaskActive {
  21465. /* background-color: #e0eafb !important;
  21466. color: #0061ff; */
  21467. color:#fff;
  21468. background: rgb(55, 129, 252) !important;
  21469. }
  21470. .iframeName {
  21471. margin: 5px 0;
  21472. border-left: 4px solid #41c4a4;
  21473. padding-left: 4px;
  21474. }
  21475. .toolTitle {
  21476. margin: 0px 0px 20px;
  21477. font-size: 20px;
  21478. font-weight: 500;
  21479. border-left: 4px solid #41c4a4;
  21480. padding-left: 4px;
  21481. }
  21482. .cru_selectBox {
  21483. overflow: auto;
  21484. width: 95%;
  21485. margin: 17px auto 0;
  21486. height: calc(100% - 40px - 21px - 20px - 17px);
  21487. background: #fff;
  21488. border-radius: 8px;
  21489. }
  21490. .cru_selectBox::-webkit-scrollbar,
  21491. .study_top::-webkit-scrollbar,
  21492. .textContent::-webkit-scrollbar {
  21493. /*滚动条整体样式*/
  21494. width: 6px;
  21495. /*高宽分别对应横竖滚动条的尺寸*/
  21496. height: 6px;
  21497. }
  21498. /*定义滚动条轨道 内阴影+圆角*/
  21499. .cru_selectBox::-webkit-scrollbar-track,
  21500. .study_top::-webkit-scrollbar-track,
  21501. .textContent::-webkit-scrollbar {
  21502. border-radius: 10px;
  21503. background-color: #b8bdc9;
  21504. }
  21505. /*定义滑块 内阴影+圆角*/
  21506. .cru_selectBox::-webkit-scrollbar-thumb,
  21507. .study_top::-webkit-scrollbar-thumb,
  21508. .textContent::-webkit-scrollbar-thumb {
  21509. border-radius: 10px;
  21510. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  21511. background-color: #2c5ab3;
  21512. }
  21513. .vedioBox {
  21514. border-radius: 0 0 20px 20px;
  21515. background: #fff;
  21516. overflow: auto;
  21517. }
  21518. .taskBox {
  21519. width: 98%;
  21520. background: #f0f4fa;
  21521. margin: 10px auto;
  21522. padding: 0 10px;
  21523. border-radius: 4px;
  21524. box-sizing: border-box;
  21525. }
  21526. .vedioTaskBox {
  21527. width: 100%;
  21528. display: flex;
  21529. flex-direction: row;
  21530. flex-wrap: nowrap;
  21531. align-items: flex-start;
  21532. position: relative;
  21533. }
  21534. .toolBox {
  21535. margin: 15px 0 0 25px;
  21536. display: flex;
  21537. position: relative;
  21538. padding: 18px 20px;
  21539. border-top-left-radius: 5px;
  21540. border-top-right-radius: 5px;
  21541. width: 90%;
  21542. }
  21543. .btnAll {
  21544. position: absolute;
  21545. right: 0;
  21546. display: flex;
  21547. flex-direction: row;
  21548. flex-wrap: nowrap;
  21549. align-items: center;
  21550. }
  21551. .btnLeft,
  21552. .btnRight {
  21553. display: flex;
  21554. flex-direction: row;
  21555. flex-wrap: nowrap;
  21556. align-items: center;
  21557. padding: 5px 0;
  21558. }
  21559. .btnLeft {
  21560. border-right: 1px solid #cad1dc;
  21561. }
  21562. .btnLeft > .custom-tooltip {
  21563. background: #3681fc;
  21564. color: #fff;
  21565. }
  21566. .last:hover {
  21567. background: #3383fa !important;
  21568. color: #fff;
  21569. border: 1px solid #3383fa !important;
  21570. }
  21571. .last,
  21572. .returnBtn1 {
  21573. width: 90px;
  21574. height: 36px;
  21575. background: #ffffff;
  21576. border-radius: 4px;
  21577. border: 1px solid #0061ff;
  21578. color: #0061ff;
  21579. cursor: pointer;
  21580. display: flex;
  21581. flex-direction: row;
  21582. flex-wrap: nowrap;
  21583. align-items: center;
  21584. justify-content: center;
  21585. margin-left: 12px;
  21586. }
  21587. .returnBtn1 {
  21588. background: #f0f4fa;
  21589. border-radius: 4px;
  21590. border: 1px solid #cad1dc;
  21591. margin: 0 12px;
  21592. }
  21593. .lastImg {
  21594. min-width: 15px;
  21595. width: 15px;
  21596. height: 15px;
  21597. display: flex;
  21598. }
  21599. .lastText {
  21600. padding: 0 5px 0 5px;
  21601. box-sizing: border-box;
  21602. font-size: 14px;
  21603. }
  21604. .lastImg > img {
  21605. width: 100%;
  21606. height: 100%;
  21607. }
  21608. /* .vedioTimeBox {
  21609. display: flex;
  21610. flex-direction: row;
  21611. align-items: center;
  21612. flex-wrap: nowrap;
  21613. position: relative;
  21614. } */
  21615. .navBox {
  21616. background: #fff;
  21617. height: calc(100% - 40px);
  21618. overflow-y: auto;
  21619. overflow-x: hidden;
  21620. }
  21621. .worksBox {
  21622. margin: 0 0 10px 25px;
  21623. border-bottom: 1px solid #eeeeee;
  21624. padding: 18px 20px;
  21625. border-radius: 4px;
  21626. width: 90%;
  21627. }
  21628. .worksBTitle {
  21629. font-size: 20px;
  21630. padding-bottom: 15px;
  21631. border-bottom: 1px solid #eeeeee;
  21632. display: flex;
  21633. align-items: center;
  21634. }
  21635. .greenBox {
  21636. width: 5px;
  21637. height: 30px;
  21638. background: #63b6fa;
  21639. margin-right: 5px;
  21640. }
  21641. .worksDetailBox {
  21642. display: flex;
  21643. width: 100%;
  21644. flex-direction: row;
  21645. flex-wrap: wrap;
  21646. align-items: flex-end;
  21647. justify-content: flex-start;
  21648. padding: 15px 5px;
  21649. box-sizing: border-box;
  21650. }
  21651. .works {
  21652. display: flex;
  21653. flex-direction: column;
  21654. flex-wrap: nowrap;
  21655. align-items: flex-start;
  21656. justify-content: flex-start;
  21657. align-content: center;
  21658. max-width: 240px;
  21659. width: calc(100% / 3 - 10px);
  21660. height: auto;
  21661. margin-right: 10px;
  21662. margin-bottom: 10px;
  21663. overflow: hidden;
  21664. height: 140px;
  21665. box-shadow: 0 0 6px 1px #dfdada;
  21666. border-radius: 15px;
  21667. }
  21668. .workImg {
  21669. width: 100%;
  21670. /* height: calc(100% - 40px); */
  21671. height: 105px;
  21672. position: relative;
  21673. }
  21674. .workImg > img {
  21675. width: 100%;
  21676. height: 100%;
  21677. object-fit: contain;
  21678. cursor: pointer;
  21679. }
  21680. .worksName {
  21681. height: 40px;
  21682. line-height: 40px;
  21683. display: flex;
  21684. width: 100%;
  21685. flex-direction: row;
  21686. flex-wrap: nowrap;
  21687. justify-content: space-between;
  21688. align-items: center;
  21689. margin: 0 0 0 10px;
  21690. }
  21691. .worksName > div:nth-child(1) {
  21692. width: 110px;
  21693. white-space: nowrap;
  21694. overflow: hidden;
  21695. text-overflow: ellipsis;
  21696. }
  21697. .worksName > div:nth-child(2) {
  21698. color: #b7b4b5;
  21699. }
  21700. .noWorksS {
  21701. padding: 15px 0;
  21702. display: flex;
  21703. flex-direction: row;
  21704. flex-wrap: wrap;
  21705. align-items: center;
  21706. justify-content: flex-start;
  21707. }
  21708. .noWorksName,
  21709. .isWorksName,
  21710. .isWorksName2 {
  21711. background: #ddebf8;
  21712. color: #000;
  21713. width: 90px;
  21714. height: 25px;
  21715. text-align: center;
  21716. line-height: 25px;
  21717. border-radius: 4px;
  21718. margin: 10px 15px 10px 0;
  21719. white-space: nowrap;
  21720. overflow: hidden;
  21721. padding: 5px;
  21722. text-overflow: ellipsis;
  21723. cursor: pointer;
  21724. border: 1px solid #ddebf8;
  21725. }
  21726. .noWorksName {
  21727. background: #fff;
  21728. color: #0061ff;
  21729. border: 1px solid #0061ff;
  21730. }
  21731. .noWorksName > span{
  21732. max-width: 100%;
  21733. display: block;
  21734. overflow: hidden;
  21735. text-overflow: ellipsis;
  21736. white-space: nowrap;
  21737. }
  21738. .isWorksName2 {
  21739. width: 100px;
  21740. height: 40px;
  21741. line-height: 40px;
  21742. position: relative;
  21743. background: #dae6f9;
  21744. }
  21745. .isWorksName {
  21746. background: #e7ebf1 !important;
  21747. width: 100px;
  21748. height: 40px;
  21749. line-height: 40px;
  21750. position: relative;
  21751. color: #acb4bf;
  21752. border: 1px solid #cad1dc !important;
  21753. }
  21754. .isSelectName,
  21755. .noWorksName:hover {
  21756. background: #3383fa !important;
  21757. color: #fff !important;
  21758. border: 1px solid #3383fa !important;
  21759. }
  21760. .title {
  21761. background: #1e5cc9;
  21762. /* width: 98%; */
  21763. height: 45px;
  21764. color: #fff;
  21765. line-height: 45px;
  21766. padding-left: 20px;
  21767. box-sizing: border-box;
  21768. }
  21769. .textBox {
  21770. font-size: 20px;
  21771. width: 90%;
  21772. display: flex;
  21773. flex-direction: column;
  21774. align-items: center;
  21775. margin: 20px auto 0;
  21776. max-height: calc(100% - 75px);
  21777. overflow: auto;
  21778. }
  21779. .textContent {
  21780. font-size: 18px;
  21781. width: 95%;
  21782. max-width: 95%;
  21783. }
  21784. .answerBg {
  21785. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  21786. background-size: 100% 100%;
  21787. width: 100%;
  21788. height: 100%;
  21789. color: #fff;
  21790. text-align: center;
  21791. display: flex;
  21792. flex-direction: column;
  21793. flex-wrap: nowrap;
  21794. align-items: center;
  21795. position: relative;
  21796. justify-content: center;
  21797. }
  21798. .answerBg > div:nth-child(1) {
  21799. /* font-size: 22px;
  21800. padding: 25px 0 10px; */
  21801. }
  21802. .answerContent {
  21803. width: 215px;
  21804. max-height: 60px;
  21805. word-break: break-all;
  21806. text-align: center;
  21807. /* white-space: nowrap; */
  21808. overflow: hidden;
  21809. text-overflow: ellipsis;
  21810. /* padding: 23px 0 0; */
  21811. -webkit-line-clamp: 3;
  21812. -webkit-box-orient: vertical;
  21813. display: -webkit-box;
  21814. font-size: 15px;
  21815. cursor: pointer;
  21816. }
  21817. .elist_input_box {
  21818. display: flex;
  21819. align-items: flex-start;
  21820. flex-wrap: nowrap;
  21821. padding: 10px 0 15px 30px;
  21822. flex-direction: column;
  21823. }
  21824. .elist_input {
  21825. /* width: 40%; */
  21826. width: 45%;
  21827. padding: 20px;
  21828. /* margin: 20px; */
  21829. box-sizing: border-box;
  21830. }
  21831. .elist_input .elist_input_box input {
  21832. font: inherit;
  21833. color: currentColor;
  21834. width: 200px;
  21835. padding: 8px 14px;
  21836. display: block;
  21837. min-width: 0;
  21838. outline: none;
  21839. border: 1px solid rgba(0, 0, 0, 0.23);
  21840. border-radius: 4px;
  21841. box-sizing: border-box;
  21842. background: #fff;
  21843. margin: 0 20px 0 0;
  21844. }
  21845. .elist_input .elist_input_box span {
  21846. height: 36px;
  21847. line-height: 36px;
  21848. color: rgb(82, 82, 82);
  21849. }
  21850. .elist_input .elist_input_box .remove {
  21851. height: 20px;
  21852. width: 20px;
  21853. background-size: 100% 100%;
  21854. background-position: unset;
  21855. margin-left: 5px;
  21856. }
  21857. .elist_input_box >>> .el-rate {
  21858. display: flex;
  21859. height: 36px;
  21860. align-items: center;
  21861. }
  21862. .elist_input_box .elist_inptu_text {
  21863. min-height: 50px;
  21864. /* width: 500px;
  21865. max-height: 150px; */
  21866. width: 100%;
  21867. line-height: 50px;
  21868. color: rgb(82, 82, 82);
  21869. overflow: auto;
  21870. text-indent: 5px;
  21871. background: #f7f6f9;
  21872. border-radius: 10px;
  21873. }
  21874. .elist_input_box .elist_inptu_text input {
  21875. width: 500px;
  21876. }
  21877. .elist_input_box >>> .el-rate__icon {
  21878. font-size: 24px;
  21879. }
  21880. .isClick {
  21881. background: #4d9def;
  21882. }
  21883. .bzBox {
  21884. display: flex;
  21885. flex-direction: row;
  21886. align-items: center;
  21887. }
  21888. .bzBox .yCss {
  21889. width: 7px;
  21890. height: 7px;
  21891. background: #fff;
  21892. margin: 0 16px 0 6px;
  21893. border-radius: 50%;
  21894. border: 5px solid #3681fc;
  21895. z-index: 99;
  21896. }
  21897. .bzBox > div:nth-child(2) {
  21898. font-size: 18px;
  21899. font-weight: bold;
  21900. color: #0e1e33;
  21901. }
  21902. .navTitile {
  21903. padding: 0 0px 0 15px;
  21904. font-size: 16px;
  21905. font-weight: bold;
  21906. color: #0e1e33;
  21907. height: 40px;
  21908. line-height: 40px;
  21909. }
  21910. .isTypeOne {
  21911. width: 240px;
  21912. height: 170px;
  21913. /* border: 1px solid #f8f8f8; */
  21914. border-radius: 10px;
  21915. box-shadow: 0 0 6px 1px #dfdada;
  21916. }
  21917. .e_add_top {
  21918. display: flex;
  21919. justify-content: space-between;
  21920. padding: 10px 20px;
  21921. border-radius: 3px;
  21922. background: #fff;
  21923. }
  21924. .e_add_title2 {
  21925. display: flex;
  21926. align-items: center;
  21927. }
  21928. .e_add_title2 span {
  21929. width: 40px;
  21930. }
  21931. .e_add_title {
  21932. display: flex;
  21933. align-items: center;
  21934. color: #b8b8b8;
  21935. font-size: 18px;
  21936. position: relative;
  21937. height: 40px;
  21938. }
  21939. .e_add_title span {
  21940. margin-right: 10px;
  21941. }
  21942. .e_add_title .el_input {
  21943. width: 300px;
  21944. }
  21945. .e_add_title >>> .el-input__inner {
  21946. width: 400px;
  21947. }
  21948. .e_add_btn {
  21949. }
  21950. .e_add_content {
  21951. display: flex;
  21952. width: 100%;
  21953. max-width: 650px;
  21954. height: 550px;
  21955. }
  21956. .e_add_list {
  21957. background: #fff;
  21958. height: 500px;
  21959. width: 210px;
  21960. position: relative;
  21961. margin: 15px 5px 0 0;
  21962. flex-shrink: 0;
  21963. display: flex;
  21964. flex-direction: column;
  21965. }
  21966. .e_add_list_title {
  21967. font-size: 20px;
  21968. width: 100%;
  21969. box-sizing: border-box;
  21970. padding: 15px 40px;
  21971. text-align: center;
  21972. border-bottom: 1px solid #eaeaea;
  21973. position: relative;
  21974. display: flex;
  21975. align-items: center;
  21976. justify-content: center;
  21977. height: 57px;
  21978. background: #f6f6f6;
  21979. }
  21980. .e_add_list_title span {
  21981. overflow: hidden;
  21982. white-space: nowrap;
  21983. text-overflow: ellipsis;
  21984. }
  21985. .e_add_list_title img {
  21986. position: absolute;
  21987. right: 15px;
  21988. width: 25px;
  21989. cursor: pointer;
  21990. top: 50%;
  21991. transform: translateY(-50%);
  21992. }
  21993. .e_add_list_body {
  21994. height: calc(100% - 187px);
  21995. overflow: auto;
  21996. }
  21997. .e_add_list_child {
  21998. width: 100%;
  21999. display: flex;
  22000. align-items: center;
  22001. justify-content: center;
  22002. position: relative;
  22003. box-sizing: border-box;
  22004. padding: 15px 40px;
  22005. text-align: center;
  22006. }
  22007. .e_add_list_child span {
  22008. overflow: hidden;
  22009. white-space: nowrap;
  22010. text-overflow: ellipsis;
  22011. cursor: pointer;
  22012. }
  22013. .e_add_list_child img {
  22014. position: absolute;
  22015. right: 10px;
  22016. width: 21px;
  22017. cursor: pointer;
  22018. top: 50%;
  22019. transform: translateY(-50%);
  22020. }
  22021. .e_add_list_child + .e_add_list_child {
  22022. border-top: 1px solid #eaeaea;
  22023. }
  22024. .e_add_list_child .active {
  22025. color: #409eff;
  22026. }
  22027. .e_add_list_btn {
  22028. position: absolute;
  22029. bottom: 0;
  22030. height: 50px;
  22031. background: rgb(120, 120, 254);
  22032. width: 100%;
  22033. color: #fff;
  22034. font-size: 16px;
  22035. text-align: center;
  22036. line-height: 50px;
  22037. cursor: pointer;
  22038. }
  22039. .e_add_list_detail {
  22040. position: absolute;
  22041. bottom: 0;
  22042. height: 130px;
  22043. background: rgb(120, 120, 254);
  22044. width: 100%;
  22045. color: #fff;
  22046. font-size: 16px;
  22047. display: flex;
  22048. align-items: center;
  22049. justify-content: center;
  22050. }
  22051. .e_add_list_detail textarea {
  22052. height: 90%;
  22053. width: 95%;
  22054. border: none;
  22055. resize: none;
  22056. outline: none;
  22057. padding: 5px;
  22058. box-sizing: border-box;
  22059. }
  22060. .e_add_list_pbox {
  22061. width: 100%;
  22062. max-width: 650px;
  22063. /* height: 600px; */
  22064. }
  22065. .e_add_list_pbox_title {
  22066. height: 50px;
  22067. background: #fff;
  22068. display: flex;
  22069. align-items: center;
  22070. width: 100%;
  22071. box-sizing: border-box;
  22072. padding: 0 20px;
  22073. }
  22074. .type_title {
  22075. font-size: 18px;
  22076. font-weight: 700;
  22077. }
  22078. .type_content {
  22079. font-size: 16px;
  22080. /* margin-left: 30px; */
  22081. }
  22082. .type_content span + span {
  22083. margin-left: 20px;
  22084. }
  22085. .type_content span {
  22086. cursor: pointer;
  22087. padding-bottom: 5px;
  22088. box-sizing: border-box;
  22089. }
  22090. .type_content .active {
  22091. color: #409eff;
  22092. border-bottom: 2px solid #409eff;
  22093. }
  22094. .e_add_list_pbox_content {
  22095. height: calc(100% - 50px);
  22096. display: flex;
  22097. align-items: center;
  22098. width: 100%;
  22099. background: #fff;
  22100. }
  22101. .evaCss {
  22102. display: flex;
  22103. flex-direction: row;
  22104. flex-wrap: nowrap;
  22105. align-items: flex-start;
  22106. padding: 0 0 20px;
  22107. }
  22108. .cru_line {
  22109. position: absolute;
  22110. bottom: 0px;
  22111. transition: all 0.5s;
  22112. left: 0px;
  22113. width: 125px;
  22114. margin-left: -25px;
  22115. }
  22116. .isNoMessage {
  22117. width: 20%;
  22118. margin: 25% auto 0;
  22119. }
  22120. .isNoMessage > img {
  22121. width: 100%;
  22122. height: 100%;
  22123. }
  22124. .fullStyle >>> .el-dialog__body {
  22125. height: 100% !important;
  22126. }
  22127. .fullStyle >>> .el-dialog,
  22128. .fullStyle {
  22129. width: 100% !important;
  22130. max-width: 100% !important;
  22131. height: 100% !important;
  22132. margin: 0 !important;
  22133. }
  22134. .full_diy >>> .el-dialog {
  22135. margin: 0 !important;
  22136. height: 100%;
  22137. padding: 4px;
  22138. }
  22139. .full_diy >>> .el-dialog__body {
  22140. height: calc(100% - 100px);
  22141. }
  22142. .full_diy2 >>> .el-dialog__body {
  22143. height: calc(100% - 50px);
  22144. padding: 0;
  22145. }
  22146. .switchCss {
  22147. /* width: 100%; */
  22148. display: flex;
  22149. flex-direction: row;
  22150. flex-wrap: nowrap;
  22151. align-items: center;
  22152. /* justify-content: center; */
  22153. }
  22154. .isClickNav {
  22155. /* color: #499eef; */
  22156. color: #000;
  22157. }
  22158. .commentImg {
  22159. width: 25px;
  22160. height: 25px;
  22161. cursor: pointer;
  22162. }
  22163. .commentImg > img {
  22164. width: 100%;
  22165. height: 100%;
  22166. }
  22167. .comment {
  22168. background: #f9f9f9;
  22169. border-radius: 0 0 4px 4px;
  22170. display: flex;
  22171. flex-direction: row;
  22172. flex-wrap: nowrap;
  22173. align-items: center;
  22174. justify-content: flex-end;
  22175. height: 35px;
  22176. }
  22177. .commentList {
  22178. display: flex;
  22179. flex-direction: row;
  22180. flex-wrap: nowrap;
  22181. align-items: center;
  22182. justify-content: center;
  22183. align-content: center;
  22184. /* margin-left: 15px; */
  22185. /* margin-left: 8px; */
  22186. }
  22187. .scoreImg {
  22188. width: 17px;
  22189. height: 17px;
  22190. }
  22191. .studentDetail {
  22192. display: flex;
  22193. flex-direction: row;
  22194. flex-wrap: nowrap;
  22195. /* align-items: center; */
  22196. align-items: flex-start;
  22197. }
  22198. .tx {
  22199. width: 50px;
  22200. }
  22201. .tx > img {
  22202. width: 100%;
  22203. height: 100%;
  22204. }
  22205. .nameAndTime {
  22206. display: flex;
  22207. flex-direction: column;
  22208. flex-wrap: nowrap;
  22209. align-items: flex-start;
  22210. margin-left: 10px;
  22211. }
  22212. .worksAnswer {
  22213. color: #4078dd;
  22214. margin: 10px 0;
  22215. font-size: 16px;
  22216. position: relative;
  22217. }
  22218. .worksAnswer > img {
  22219. width: 500px;
  22220. height: 300px;
  22221. object-fit: contain;
  22222. margin: 0 auto;
  22223. display: block;
  22224. }
  22225. .commentTop {
  22226. border-bottom: 1px solid #eaeaea;
  22227. padding-bottom: 10px;
  22228. }
  22229. .commentBox {
  22230. padding-top: 15px;
  22231. }
  22232. .pl {
  22233. font-size: 18px;
  22234. }
  22235. .plPerson {
  22236. width: 100%;
  22237. }
  22238. .plName {
  22239. display: flex;
  22240. flex-direction: row;
  22241. flex-wrap: nowrap;
  22242. align-items: baseline;
  22243. color: #78787a;
  22244. width: 100%;
  22245. }
  22246. .deleteComment {
  22247. cursor: pointer;
  22248. margin-left: auto;
  22249. color: #237ade;
  22250. }
  22251. .plContent {
  22252. margin-top: 5px;
  22253. }
  22254. .evalCss {
  22255. background: #fff;
  22256. font-size: 18px;
  22257. }
  22258. .nav {
  22259. color: #9d9d9d;
  22260. padding: 5px 0 15px 20px;
  22261. }
  22262. .middleBox {
  22263. padding: 5px 0 15px 20px;
  22264. }
  22265. .pfBox {
  22266. padding-bottom: 30px;
  22267. }
  22268. .nameAndrate {
  22269. display: flex;
  22270. flex-direction: row;
  22271. flex-wrap: nowrap;
  22272. align-items: center;
  22273. padding-bottom: 10px;
  22274. height: 30px;
  22275. line-height: 30px;
  22276. }
  22277. .nameAndrate > div {
  22278. margin-left: 10px;
  22279. color: #000;
  22280. height: 30px;
  22281. }
  22282. .nameAndrate >>> .el-rate__icon {
  22283. font-size: 28px !important;
  22284. }
  22285. .pfBox > div:nth-child(2) {
  22286. background: #f7f6f9;
  22287. width: 400px;
  22288. min-height: 45px;
  22289. border-radius: 10px;
  22290. font-size: 16px;
  22291. display: flex;
  22292. flex-wrap: wrap;
  22293. align-items: center;
  22294. padding: 10px 20px;
  22295. box-sizing: border-box;
  22296. color: #000;
  22297. }
  22298. .bz {
  22299. display: flex;
  22300. flex-direction: row;
  22301. flex-wrap: nowrap;
  22302. align-items: flex-start;
  22303. }
  22304. .bz > div {
  22305. padding: 0 10px;
  22306. }
  22307. .select_box2_title {
  22308. background: #fff;
  22309. border-radius: 5px;
  22310. padding: 15px 10px;
  22311. box-sizing: border-box;
  22312. margin-bottom: 10px;
  22313. display: flex;
  22314. flex-direction: row;
  22315. flex-wrap: nowrap;
  22316. align-items: center;
  22317. }
  22318. .select_box2_title > div:nth-child(2) {
  22319. margin-left: 10px;
  22320. color: #c4c4c4;
  22321. }
  22322. .select_box2_box {
  22323. display: flex;
  22324. height: 500px;
  22325. }
  22326. .select_box2_img {
  22327. width: calc(100% - 310px);
  22328. height: 100%;
  22329. overflow: auto;
  22330. background: #fff;
  22331. border-radius: 5px;
  22332. }
  22333. .select_box2_img img {
  22334. width: 100%;
  22335. }
  22336. .select_box2_answer {
  22337. background: #fff;
  22338. margin-left: 10px;
  22339. border-radius: 5px;
  22340. width: 300px;
  22341. overflow: auto;
  22342. height: 90%;
  22343. display: flex;
  22344. flex-direction: column;
  22345. align-items: flex-start;
  22346. padding-top: 10px;
  22347. box-sizing: border-box;
  22348. position: relative;
  22349. }
  22350. .select_answer_title {
  22351. padding: 0 0 15px 20px;
  22352. color: #c4c4c4;
  22353. }
  22354. .select_box2_answer_box {
  22355. margin: 0 0 10px 20px;
  22356. width: 85%;
  22357. display: flex;
  22358. flex-direction: row;
  22359. flex-wrap: nowrap;
  22360. align-items: center;
  22361. }
  22362. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  22363. color: #000;
  22364. }
  22365. .upAnswerCss {
  22366. position: absolute;
  22367. bottom: 15px;
  22368. right: 15px;
  22369. }
  22370. .upAnswerCss >>> .el-button {
  22371. width: 95px;
  22372. height: 35px;
  22373. line-height: 35px;
  22374. padding: 0;
  22375. }
  22376. .rightWidthCss {
  22377. width: 60%;
  22378. display: flex;
  22379. flex-direction: row;
  22380. align-items: flex-start;
  22381. }
  22382. .rightAnswer {
  22383. display: flex;
  22384. flex-direction: row;
  22385. flex-wrap: nowrap;
  22386. align-items: center;
  22387. color: red;
  22388. margin-bottom: 31px;
  22389. }
  22390. .rightAnswerCss {
  22391. display: flex;
  22392. flex-direction: column;
  22393. flex-wrap: nowrap;
  22394. padding-top: 60px;
  22395. }
  22396. .blueCss {
  22397. color: #767de1;
  22398. margin-left: 10px;
  22399. }
  22400. .redCss {
  22401. color: red;
  22402. }
  22403. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  22404. color: rgb(0 123 255) !important;
  22405. }
  22406. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  22407. color: rgb(0 123 255) !important;
  22408. }
  22409. .zuoyeYulan {
  22410. padding-top: 0;
  22411. font-size: 18px;
  22412. display: flex;
  22413. align-items: flex-end;
  22414. }
  22415. .buttonA {
  22416. margin-left: 10px;
  22417. padding: 0;
  22418. }
  22419. .displayBox {
  22420. margin-bottom: 10px;
  22421. display: block;
  22422. border-bottom: 3px solid #eee;
  22423. display: flex;
  22424. align-items: center;
  22425. }
  22426. .easy_comment {
  22427. width: calc(100% - 90px);
  22428. margin-left: 10px;
  22429. display: flex;
  22430. flex-wrap: wrap;
  22431. }
  22432. .easy_comment > div {
  22433. border: 1px solid #4a4a4a;
  22434. color: #666;
  22435. border-radius: 15px;
  22436. padding: 5px 10px;
  22437. font-size: 16px;
  22438. margin-bottom: 10px;
  22439. margin-right: 5px;
  22440. cursor: pointer;
  22441. }
  22442. .easy_comment div:hover {
  22443. border: 1px solid #f7ba2a;
  22444. color: #c69217;
  22445. }
  22446. .xuan_right_box {
  22447. padding: 10px 0;
  22448. background: #f0f4fa;
  22449. margin: 0 15px 0 25px;
  22450. border-bottom-left-radius: 5px;
  22451. border-bottom-right-radius: 5px;
  22452. width: 91.5%;
  22453. }
  22454. .tool_right_box {
  22455. display: flex;
  22456. align-items: center;
  22457. }
  22458. .tool_right_box + .tool_right_box {
  22459. margin-top: 10px;
  22460. }
  22461. .right_box_xuan {
  22462. border-radius: 5px;
  22463. padding: 5px;
  22464. margin-left: 10px;
  22465. min-width: 85px;
  22466. background: #fff;
  22467. color: #0061ff;
  22468. border: 1px solid #0061ff;
  22469. font-size: 14px;
  22470. }
  22471. .pButton:hover {
  22472. opacity: 1 !important;
  22473. }
  22474. .pButton {
  22475. position: fixed;
  22476. text-align: center;
  22477. cursor: pointer;
  22478. z-index: 999;
  22479. right: 20px;
  22480. top: 110px;
  22481. width: 50px;
  22482. height: 50px;
  22483. display: flex;
  22484. align-items: center;
  22485. justify-content: center;
  22486. border-radius: 5px;
  22487. }
  22488. .pzClass {
  22489. width: calc(100% - 340px);
  22490. }
  22491. .newDialogCss {
  22492. /* position: fixed;
  22493. right: 5%;
  22494. top: 50%;
  22495. width: 340px;
  22496. transform: translateY(-50%);
  22497. height: 60%;
  22498. box-shadow: 0px 0 8px 0px #555555;
  22499. border-radius: 15px;
  22500. z-index: 999; */
  22501. position: fixed;
  22502. right: 20px;
  22503. top: 101px;
  22504. width: 330px;
  22505. height: calc(100% - 80px);
  22506. z-index: 999;
  22507. background: #fff;
  22508. border-top-right-radius: 0px;
  22509. border-bottom-right-radius: 0px;
  22510. overflow: hidden;
  22511. }
  22512. .newDialogCss>.scoreList{
  22513. width:100%;
  22514. height:100%;
  22515. box-sizing:border-box;
  22516. padding:10px 15px;
  22517. overflow:auto;
  22518. padding-bottom:80px;
  22519. }
  22520. .pzTop {
  22521. color: #fff;
  22522. background: #000;
  22523. display: flex;
  22524. flex-direction: row;
  22525. flex-wrap: nowrap;
  22526. align-items: center;
  22527. justify-content: space-between;
  22528. height: 40px;
  22529. border-radius: 15px 15px 0 0;
  22530. user-select: none;
  22531. }
  22532. .pzTop2 .checkbox {
  22533. display: flex;
  22534. align-items: center;
  22535. padding: 5px 10px;
  22536. flex: 0 0 auto;
  22537. font-weight: bold;
  22538. border-bottom: 1px solid #eee;
  22539. justify-content: space-between;
  22540. }
  22541. .checkbox>.cb-tabList{
  22542. display:flex;
  22543. align-items:center;
  22544. }
  22545. .cb-tabList>div{
  22546. margin-right:20px;
  22547. font-weight:400;
  22548. cursor:pointer;
  22549. }
  22550. .cb-tabList>.cb-tabItem{
  22551. color:#1684FC;
  22552. position:relative;
  22553. }
  22554. .cb-tabItem::after{
  22555. content:"";
  22556. width:100%;
  22557. height:2px;
  22558. background:#1684FC;
  22559. position:absolute;
  22560. bottom:-5px;
  22561. left:0
  22562. }
  22563. .pzTop2 .check {
  22564. text-align: center;
  22565. cursor: pointer;
  22566. box-sizing: border-box;
  22567. display: flex;
  22568. }
  22569. .pzTop2 img {
  22570. width: 25px;
  22571. cursor: pointer;
  22572. }
  22573. .pzTop > div:nth-child(1) {
  22574. padding-left: 10px;
  22575. }
  22576. .pzTop > div:nth-child(2) {
  22577. width: 15px;
  22578. height: 15px;
  22579. padding-right: 10px;
  22580. cursor: pointer;
  22581. }
  22582. .pzTop > div:nth-child(2) > img {
  22583. width: 100%;
  22584. height: 100%;
  22585. }
  22586. .pzBox,
  22587. .noPzBox {
  22588. height: calc(100% - 60px);
  22589. /* background: #ededed; */
  22590. background: #fff;
  22591. /* border-radius: 0 0 15px 15px; */
  22592. }
  22593. .noPzBox {
  22594. display: flex;
  22595. flex-direction: column;
  22596. flex-wrap: nowrap;
  22597. justify-content: center;
  22598. align-items: center;
  22599. }
  22600. .pzList {
  22601. background: #f7f7f7;
  22602. width: 90%;
  22603. margin: 0 auto 15px;
  22604. border-radius: 5px;
  22605. }
  22606. .pzNavTop {
  22607. display: flex;
  22608. flex-direction: row;
  22609. flex-wrap: nowrap;
  22610. padding: 10px 10px 0 10px;
  22611. align-items: center;
  22612. }
  22613. .pzDelete {
  22614. cursor: pointer;
  22615. margin-left: auto;
  22616. font-size: 14px;
  22617. color: #afafaf;
  22618. }
  22619. .pzNavTop > div:nth-child(1) {
  22620. background: #3760af;
  22621. width: 35px;
  22622. height: 35px;
  22623. color: #fff;
  22624. text-align: center;
  22625. line-height: 35px;
  22626. border-radius: 50%;
  22627. font-size: 14px;
  22628. }
  22629. .pzNavTop > div:nth-child(2) {
  22630. font-size: 18px;
  22631. color: #959595;
  22632. margin-left: 5px;
  22633. }
  22634. .pzContent {
  22635. padding: 10px;
  22636. word-break: break-word;
  22637. }
  22638. .pzContent audio {
  22639. width: 100%;
  22640. }
  22641. .pzContent audio::-webkit-media-controls-panel {
  22642. background: #fff;
  22643. }
  22644. .pzContent >>> img {
  22645. max-width: 100%;
  22646. }
  22647. .pzListBox {
  22648. padding-top: 15px;
  22649. height: calc(100% - 110px);
  22650. overflow: auto;
  22651. }
  22652. .addPzButton {
  22653. position: relative;
  22654. margin-top: 3px;
  22655. width: 100%;
  22656. }
  22657. .addPzButton .img1 {
  22658. position: absolute;
  22659. top: 50%;
  22660. right: 25px;
  22661. transform: translateY(-50%);
  22662. height: 100%;
  22663. display: flex;
  22664. align-items: center;
  22665. }
  22666. .addPzButton .img1 div {
  22667. display: flex;
  22668. }
  22669. .addPzButton .img1 div img {
  22670. width: 28px;
  22671. margin-left: 10px;
  22672. cursor: pointer;
  22673. }
  22674. .addPzButton .img1 div span {
  22675. font-size: 14px;
  22676. margin: 4px 0 0 3px;
  22677. color: #afafaf;
  22678. }
  22679. .addPz {
  22680. background: #4b79ce;
  22681. width: 100px;
  22682. color: #fff;
  22683. font-size: 12px;
  22684. height: 30px;
  22685. margin: 0 auto;
  22686. text-align: center;
  22687. line-height: 30px;
  22688. border-radius: 10px;
  22689. cursor: pointer;
  22690. }
  22691. .addDialogCss {
  22692. position: fixed;
  22693. width: 600px;
  22694. height: 70%;
  22695. min-height: 450px;
  22696. box-shadow: 0px 0 8px 0px #555555;
  22697. border-radius: 15px;
  22698. z-index: 999;
  22699. left: 50%;
  22700. top: 50%;
  22701. margin: -18% 0 0 -300px;
  22702. }
  22703. .teacherPz {
  22704. display: flex;
  22705. flex-direction: row;
  22706. align-items: center;
  22707. flex-wrap: nowrap;
  22708. }
  22709. .teacherPzImg {
  22710. width: 30px;
  22711. height: 30px;
  22712. }
  22713. .teacherPzImg > img {
  22714. width: 100%;
  22715. height: 100%;
  22716. }
  22717. .addPzBox {
  22718. height: calc(100% - 40px);
  22719. background: #ededed;
  22720. border-bottom-left-radius: 15px;
  22721. border-bottom-right-radius: 15px;
  22722. }
  22723. .pzAudioClass {
  22724. margin: 15px 14px;
  22725. background: #fff;
  22726. height: 100%;
  22727. display: flex;
  22728. justify-content: center;
  22729. align-items: center;
  22730. }
  22731. .pzConText {
  22732. width: 95%;
  22733. height: 100%;
  22734. margin: 10px auto 0;
  22735. border: none;
  22736. background: #fff;
  22737. border-radius: 0px;
  22738. }
  22739. .pzConText >>> .text {
  22740. height: calc(100% - 82px);
  22741. }
  22742. .addTextCss {
  22743. background: #4b79ce;
  22744. width: 80px;
  22745. height: 30px;
  22746. text-align: center;
  22747. color: #fff;
  22748. line-height: 30px;
  22749. border-radius: 10px;
  22750. margin: 10px auto 0;
  22751. cursor: pointer;
  22752. }
  22753. .pzConText:focus-visible {
  22754. border: none !important;
  22755. }
  22756. .maxWidth {
  22757. width: 1000px;
  22758. }
  22759. .noPz {
  22760. width: 150px;
  22761. margin: 0 auto 20%;
  22762. }
  22763. .noPz > img {
  22764. width: 100%;
  22765. height: 100%;
  22766. }
  22767. .timeAndReply {
  22768. display: flex;
  22769. flex-direction: row;
  22770. flex-wrap: nowrap;
  22771. justify-content: space-between;
  22772. align-items: center;
  22773. font-size: 14px;
  22774. box-sizing: border-box;
  22775. padding: 0 10px 10px 0px;
  22776. }
  22777. .timeAndReply .time {
  22778. color: #bfbfbf;
  22779. padding: 0 0 0 10px;
  22780. box-sizing: border-box;
  22781. }
  22782. .timeAndReply > div:last-child {
  22783. cursor: pointer;
  22784. color: #777;
  22785. }
  22786. /* table 样式 */
  22787. .cont >>> table {
  22788. border-top: 1px solid #ccc;
  22789. border-left: 1px solid #ccc;
  22790. }
  22791. .cont >>> table td,
  22792. .cont >>> table th {
  22793. border-bottom: 1px solid #ccc;
  22794. border-right: 1px solid #ccc;
  22795. /* padding: 20px 5px; */
  22796. padding: 5px 10px;
  22797. max-width: 0px;
  22798. height: 30px;
  22799. vertical-align: baseline;
  22800. box-sizing: border-box;
  22801. }
  22802. .cont >>> table th {
  22803. border-bottom: 2px solid #ccc;
  22804. text-align: center;
  22805. }
  22806. /* blockquote 样式 */
  22807. .cont >>> blockquote {
  22808. display: block;
  22809. border-left: 8px solid #d0e5f2;
  22810. padding: 5px 10px;
  22811. margin: 10px 0;
  22812. line-height: 1.4;
  22813. font-size: 100%;
  22814. background-color: #f1f1f1;
  22815. }
  22816. /* code 样式 */
  22817. .cont >>> code {
  22818. display: inline-block;
  22819. /* *display: inline; */
  22820. zoom: 1;
  22821. background-color: #f1f1f1;
  22822. border-radius: 3px;
  22823. padding: 3px 5px;
  22824. margin: 0 3px;
  22825. }
  22826. .cont >>> pre code {
  22827. display: block;
  22828. }
  22829. /* ul ol 样式 */
  22830. .cont >>> ul,
  22831. ol {
  22832. margin: 10px 0 10px 20px;
  22833. }
  22834. .addPzCheck {
  22835. display: flex;
  22836. flex-direction: row;
  22837. flex-wrap: nowrap;
  22838. padding: 10px 15px 0;
  22839. }
  22840. .addPzCheck span {
  22841. cursor: pointer;
  22842. padding-bottom: 5px;
  22843. font-weight: bold;
  22844. }
  22845. .addPzCheck span + span {
  22846. margin-left: 10px;
  22847. }
  22848. .addPzCheck .isChooseActive {
  22849. color: #3e88f4;
  22850. border-bottom: 2px solid #2f80f3;
  22851. }
  22852. /* code 样式 */
  22853. .cont {
  22854. /* -webkit-user-modify: read-write; */
  22855. overflow-wrap: break-word;
  22856. -webkit-line-break: after-white-space;
  22857. word-break: break-word;
  22858. white-space: pre-line;
  22859. }
  22860. .scoreBox,
  22861. .scoreDetailBox {
  22862. display: flex;
  22863. align-items: center;
  22864. justify-content: flex-start;
  22865. margin-top: 20px;
  22866. font-size: 18px;
  22867. width: 100%;
  22868. }
  22869. .scoreBox .t,
  22870. .scoreDetailBox .t {
  22871. margin-right: 10px;
  22872. width: 100px;
  22873. text-align: right;
  22874. }
  22875. .scoreDetailBox {
  22876. align-items: flex-start;
  22877. }
  22878. .scoreDetailBox >>> .el-textarea {
  22879. width: calc(100% - 200px);
  22880. }
  22881. .scoreBox >>> .el-input {
  22882. width: 130px;
  22883. font-size: 38px;
  22884. }
  22885. .scoreBox >>> .el-input__inner {
  22886. height: 60px;
  22887. }
  22888. .answerScore {
  22889. position: absolute;
  22890. top: 10px;
  22891. right: 10px;
  22892. background: #0000008f;
  22893. border-radius: 5px;
  22894. padding: 3px 5px;
  22895. font-size: 14px;
  22896. color: #fff;
  22897. cursor: pointer;
  22898. }
  22899. .open_box .switch_box {
  22900. width: 100%;
  22901. margin: 0 auto;
  22902. display: flex;
  22903. justify-content: space-between;
  22904. }
  22905. .open_box .switch_box + .switch_box {
  22906. margin-top: 10px;
  22907. }
  22908. .deleteImg,.deleteImg1 {
  22909. width: 25px !important;
  22910. height: 25px !important;
  22911. cursor: pointer;
  22912. position: absolute;
  22913. top: 10px;
  22914. right: 10px;
  22915. }
  22916. .deleteImg2 {
  22917. width: 23px !important;
  22918. height: 23px !important;
  22919. top: 5px;
  22920. right: 5px;
  22921. }
  22922. .deleteImg1{
  22923. width: 23px !important;
  22924. height: 23px !important;
  22925. top: 5px !important;
  22926. right: 30px !important;
  22927. }
  22928. .rightW {
  22929. right: 40px;
  22930. }
  22931. .drawPBox {
  22932. display: flex;
  22933. flex-direction: column;
  22934. position: relative;
  22935. }
  22936. .drawPBox span {
  22937. font-size: 18px;
  22938. color: #606266;
  22939. padding-bottom: 10px;
  22940. margin: 10px 0;
  22941. border-bottom: 1px solid #eaeaea;
  22942. }
  22943. .drawPBox img {
  22944. width: 500px;
  22945. height: 300px;
  22946. object-fit: contain;
  22947. cursor: pointer;
  22948. margin: 0 auto;
  22949. }
  22950. .sentenBox {
  22951. background: #fff;
  22952. height: 450px;
  22953. overflow: auto;
  22954. background-image: url("../../assets/icon/conSentences/stuBg.png");
  22955. background-position: 102%;
  22956. background-repeat: no-repeat;
  22957. background-size: 60%;
  22958. }
  22959. .addSen {
  22960. background: #409efe;
  22961. width: 90px;
  22962. color: #fff;
  22963. height: 35px;
  22964. text-align: center;
  22965. line-height: 35px;
  22966. border-radius: 5px;
  22967. float: right;
  22968. margin: 10px 20px 0 0;
  22969. cursor: pointer;
  22970. }
  22971. .sentenTop {
  22972. display: flex;
  22973. flex-direction: row;
  22974. flex-wrap: nowrap;
  22975. align-items: center;
  22976. padding: 55px 0 0 20px;
  22977. box-sizing: border-box;
  22978. }
  22979. .sentenTop > div:nth-child(2) {
  22980. width: 300px;
  22981. margin: 0 15px;
  22982. }
  22983. .sentenTop > div:nth-child(3) {
  22984. background: #409efe;
  22985. color: #fff;
  22986. width: 65px;
  22987. height: 35px;
  22988. text-align: center;
  22989. line-height: 35px;
  22990. border-radius: 5px;
  22991. cursor: pointer;
  22992. }
  22993. .cardList,
  22994. .cardList1 {
  22995. padding: 10px 0 10px 0;
  22996. display: flex;
  22997. flex-direction: row;
  22998. flex-wrap: wrap;
  22999. align-items: center;
  23000. box-sizing: border-box;
  23001. border-bottom: 1px solid #f4f4f4;
  23002. width: 98%;
  23003. margin: 0 auto;
  23004. min-width: 60%;
  23005. max-width: 85%;
  23006. }
  23007. .cardList1 {
  23008. padding: 10px 0 10px 10px !important;
  23009. margin: 0 !important;
  23010. }
  23011. .cardBox {
  23012. display: flex;
  23013. flex-direction: row;
  23014. flex-wrap: wrap;
  23015. align-items: center;
  23016. align-content: center;
  23017. }
  23018. .cardBox > div {
  23019. margin-bottom: 10px;
  23020. }
  23021. .isCard,
  23022. .isChooseCard,
  23023. .noCard,
  23024. .isCard1 {
  23025. width: 130px;
  23026. height: 60px;
  23027. text-align: center;
  23028. line-height: 60px;
  23029. font-size: 20px;
  23030. cursor: pointer;
  23031. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  23032. background-size: cover;
  23033. transition: all 2s;
  23034. margin-right: 20px;
  23035. }
  23036. .isCard > div,
  23037. .noCard > div,
  23038. .isCard1 > div {
  23039. white-space: nowrap;
  23040. overflow: hidden;
  23041. text-overflow: ellipsis;
  23042. width: 75%;
  23043. margin: 0 auto;
  23044. }
  23045. .noCard {
  23046. background-image: none;
  23047. }
  23048. .isCard1 {
  23049. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  23050. }
  23051. .isChooseCard {
  23052. background-image: none;
  23053. border: 1px dashed #b9b9b9;
  23054. border-radius: 10px;
  23055. }
  23056. .card {
  23057. width: 130px;
  23058. height: 60px;
  23059. }
  23060. .card > img {
  23061. width: 100%;
  23062. height: 100%;
  23063. }
  23064. .rightCardBox {
  23065. margin: 10px 0 0 10px;
  23066. }
  23067. .rightCardBox > div:nth-child(1) {
  23068. margin-bottom: 10px;
  23069. }
  23070. .cardCss {
  23071. display: flex;
  23072. flex-direction: column;
  23073. flex-wrap: nowrap;
  23074. align-items: center;
  23075. border-bottom: 3px solid #b4c3d3;
  23076. padding: 0 0 5px 0;
  23077. margin-right: 10px;
  23078. }
  23079. .cardCss > div:nth-child(2) {
  23080. background: #5b7b9d;
  23081. color: #fff;
  23082. width: 20px;
  23083. height: 20px;
  23084. border-radius: 50%;
  23085. text-align: center;
  23086. line-height: 20px;
  23087. }
  23088. .isWrong {
  23089. display: flex;
  23090. flex-direction: row;
  23091. flex-wrap: nowrap;
  23092. align-content: center;
  23093. align-items: center;
  23094. }
  23095. .answerRight {
  23096. width: 25%;
  23097. }
  23098. .isTj {
  23099. display: flex;
  23100. flex-direction: row;
  23101. flex-wrap: nowrap;
  23102. align-items: center;
  23103. }
  23104. .isTj > div:nth-child(2) {
  23105. color: #727070;
  23106. margin-left: 10px;
  23107. }
  23108. .isTjImg {
  23109. width: 30px;
  23110. height: 30px;
  23111. }
  23112. .isTjImg > img {
  23113. width: 100%;
  23114. height: 100%;
  23115. }
  23116. .cardAnswerBox {
  23117. font-size: 18px;
  23118. width: 97%;
  23119. border: 5px;
  23120. padding: 0;
  23121. border-radius: 5px;
  23122. margin: 10px auto;
  23123. word-break: break-word;
  23124. }
  23125. .w_name {
  23126. margin-bottom: 10px;
  23127. }
  23128. .w_name span {
  23129. font-size: 16px;
  23130. }
  23131. .w_teachert {
  23132. width: 50px !important;
  23133. position: absolute;
  23134. height: auto !important;
  23135. z-index: 10;
  23136. right: 25px;
  23137. top: -25px;
  23138. }
  23139. .group_workBox {
  23140. }
  23141. .group_workBox + .group_workBox {
  23142. margin-top: 20px;
  23143. }
  23144. .group_box {
  23145. padding-bottom: 20px;
  23146. border-bottom: 2px solid #f0f0f0;
  23147. margin-top: 10px;
  23148. }
  23149. .group_title {
  23150. display: flex;
  23151. align-items: center;
  23152. justify-content: space-between;
  23153. width: 95%;
  23154. }
  23155. .group_name {
  23156. background-image: url(../../assets/icon/groupN.png);
  23157. width: 220px;
  23158. background-size: 100% 100%;
  23159. height: 67px;
  23160. padding: 0 20px 0 43px;
  23161. box-sizing: border-box;
  23162. line-height: 63px;
  23163. color: #fff;
  23164. overflow: hidden;
  23165. white-space: nowrap;
  23166. text-overflow: ellipsis;
  23167. }
  23168. .group_work {
  23169. width: 100%;
  23170. padding: 0 10px;
  23171. box-sizing: border-box;
  23172. display: flex;
  23173. flex-wrap: wrap;
  23174. }
  23175. .g_d_box {
  23176. display: flex;
  23177. flex-flow: wrap;
  23178. justify-content: space-around;
  23179. }
  23180. .g_d_box .isChair {
  23181. background-image: url(../../assets/avatar.png) !important;
  23182. }
  23183. .g_d_group {
  23184. width: 500px;
  23185. margin-bottom: 80px;
  23186. }
  23187. .g_d_group_chair {
  23188. display: flex;
  23189. align-items: center;
  23190. justify-content: center;
  23191. }
  23192. .g_d_group_chair > div + div {
  23193. margin-left: 30px;
  23194. }
  23195. .g_d_group_chair > div,
  23196. .g_d_group_chair2 > div {
  23197. display: flex;
  23198. flex-direction: column;
  23199. align-items: center;
  23200. }
  23201. .g_d_group_chair > div > span:nth-child(1),
  23202. .g_d_group_chair2 > div > span:nth-child(1) {
  23203. background-image: url(../../assets/icon/chair.png);
  23204. width: 50px;
  23205. height: 50px;
  23206. display: block;
  23207. background-size: 100% 100%;
  23208. }
  23209. .g_d_group_tableBox {
  23210. display: flex;
  23211. align-items: center;
  23212. justify-content: center;
  23213. }
  23214. .g_d_group_chair2 {
  23215. display: flex;
  23216. flex-direction: column;
  23217. align-items: center;
  23218. justify-content: center;
  23219. }
  23220. .g_d_group_chair2 > div + div {
  23221. margin-top: 10px;
  23222. }
  23223. .g_d_group_table {
  23224. background-image: url(../../assets/icon/groupBg.png);
  23225. width: 354px;
  23226. height: 196px;
  23227. background-size: 100% 100%;
  23228. display: flex;
  23229. align-items: center;
  23230. justify-content: center;
  23231. flex-direction: column;
  23232. color: #fff;
  23233. }
  23234. .g_d_group_table > div:nth-child(1) {
  23235. font-size: 24px;
  23236. margin-bottom: 5px;
  23237. }
  23238. .g_d_group_table > div:nth-child(2) div {
  23239. cursor: pointer;
  23240. background: #2e77bf;
  23241. padding: 4px 10px;
  23242. border-radius: 5px;
  23243. }
  23244. .groupBox {
  23245. }
  23246. .groupContent + .groupContent {
  23247. margin-top: 30px;
  23248. }
  23249. .groupTitle {
  23250. font-size: 24px;
  23251. color: rgb(80, 80, 80);
  23252. margin-bottom: 20px;
  23253. }
  23254. .groupName {
  23255. display: flex;
  23256. align-items: center;
  23257. }
  23258. .groupn {
  23259. font-size: 15px;
  23260. margin-right: 10px;
  23261. }
  23262. .groupName + .groupName {
  23263. margin-top: 15px;
  23264. }
  23265. .groupBtn {
  23266. margin-left: 10px;
  23267. }
  23268. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  23269. text-align: left;
  23270. }
  23271. .g_d_btnBox {
  23272. display: flex;
  23273. justify-content: flex-end;
  23274. align-items: center;
  23275. margin-bottom: 20px;
  23276. }
  23277. .updateChair {
  23278. position: relative;
  23279. }
  23280. .updateChairBtn {
  23281. position: absolute;
  23282. width: 50px;
  23283. height: 50px;
  23284. overflow: hidden;
  23285. /* display: flex; */
  23286. align-items: center;
  23287. justify-content: center;
  23288. background: #00000087;
  23289. color: #fff;
  23290. border-radius: 50px;
  23291. display: none;
  23292. cursor: pointer;
  23293. }
  23294. .updateChair:hover .updateChairBtn {
  23295. display: flex;
  23296. }
  23297. .group_staic_box {
  23298. display: flex;
  23299. padding: 30px 40px 10px;
  23300. flex-wrap: wrap;
  23301. }
  23302. .group_staic {
  23303. /* width: 50%; */
  23304. margin-bottom: 20px;
  23305. display: flex;
  23306. align-items: center;
  23307. }
  23308. .group_staic span:nth-child(1) {
  23309. width: 150px;
  23310. text-align: right;
  23311. margin-right: 15px;
  23312. }
  23313. .group_staic span:nth-child(2) {
  23314. background: rgb(0 123 255);
  23315. color: #fff;
  23316. border-radius: 5px;
  23317. padding: 5px;
  23318. }
  23319. .codeFileBox {
  23320. height: 300px;
  23321. background: #fff;
  23322. display: flex;
  23323. align-items: center;
  23324. justify-content: center;
  23325. }
  23326. .codeFileBox img {
  23327. width: 200px;
  23328. margin: 0;
  23329. height: auto;
  23330. }
  23331. .codeFileBox div {
  23332. background: rgb(80, 142, 226);
  23333. color: #fff;
  23334. padding: 10px 20px;
  23335. border-radius: 25px;
  23336. cursor: pointer;
  23337. margin-left: 15px;
  23338. }
  23339. .radioBox {
  23340. display: flex;
  23341. flex-direction: column;
  23342. flex-wrap: nowrap;
  23343. align-items: flex-start;
  23344. }
  23345. .radioBox > div {
  23346. margin: 10px 0 0 10px;
  23347. }
  23348. /* .radioBox >>> .el-radio__input,
  23349. .radioBox >>> .el-checkbox__inner {
  23350. margin-left: 10px;
  23351. } */
  23352. .radioBox >>> .el-radio__label,
  23353. .radioBox >>> .el-checkbox__label {
  23354. display: flex;
  23355. align-items: center;
  23356. width: 100%;
  23357. }
  23358. .radioBox >>> .el-radio__label > span {
  23359. width: 100%;
  23360. display: -webkit-box;
  23361. overflow: hidden;
  23362. white-space: normal !important;
  23363. text-overflow: ellipsis;
  23364. word-wrap: break-word;
  23365. }
  23366. .inImg {
  23367. width: 100px;
  23368. cursor: pointer;
  23369. }
  23370. .inImg > img {
  23371. width: 100%;
  23372. height: 100%;
  23373. object-fit: cover;
  23374. }
  23375. .timuImgBox {
  23376. margin: 10px 0;
  23377. display: flex;
  23378. flex-direction: column;
  23379. flex-wrap: wrap;
  23380. align-items: flex-start;
  23381. }
  23382. .timuImg {
  23383. width: 150px;
  23384. margin: 5px 0;
  23385. cursor: pointer;
  23386. }
  23387. .timuImg > img {
  23388. width: 100%;
  23389. height: 100%;
  23390. object-fit: cover;
  23391. }
  23392. .worksTop {
  23393. display: flex;
  23394. flex-direction: row;
  23395. align-items: flex-end;
  23396. }
  23397. .worksTitle{
  23398. display: flex;
  23399. flex-direction: row;
  23400. flex-wrap: nowrap;
  23401. align-items: center;
  23402. }
  23403. .worksTitle::before,.worksTop::before{
  23404. content: '';
  23405. display: block;
  23406. width: 3px;
  23407. height: 20px;
  23408. background: #0061FF;
  23409. border-radius: 3px;
  23410. margin: 0 5px 0 0;
  23411. }
  23412. .corOpen {
  23413. margin: 0 0 0 10px;
  23414. font-size: 14px;
  23415. cursor: pointer;
  23416. color: #505050;
  23417. }
  23418. .corOpen:hover {
  23419. color: #499eef;
  23420. }
  23421. .navCorOpenBox {
  23422. display: flex;
  23423. flex-direction: row;
  23424. align-items: center;
  23425. justify-content: space-between;
  23426. height: 55px;
  23427. background: #ffffff;
  23428. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  23429. border-radius: 8px 8px 0px 0px;
  23430. z-index: 9;
  23431. position: relative;
  23432. }
  23433. .navCorOpen {
  23434. padding-right: 15px;
  23435. cursor: pointer;
  23436. width: 45px;
  23437. display: flex;
  23438. }
  23439. .navCorOpen > img {
  23440. width: 100%;
  23441. height: 100%;
  23442. }
  23443. .mlImg {
  23444. width: 40px !important;
  23445. min-width: 40px;
  23446. cursor: pointer;
  23447. transform: rotate(180deg);
  23448. }
  23449. .mlImg > img {
  23450. width: 100%;
  23451. height: 100%;
  23452. }
  23453. .navLeftCss {
  23454. width: 100% !important;
  23455. left: 0 !important;
  23456. }
  23457. .isContentCss {
  23458. width: 100% !important;
  23459. }
  23460. .isAllWidth {
  23461. width: 100% !important;
  23462. }
  23463. .group_switch {
  23464. margin-right: 10px;
  23465. height: 30px;
  23466. display: flex;
  23467. align-items: center;
  23468. }
  23469. .group_switch > span {
  23470. margin-right: 5px;
  23471. }
  23472. .fileC_box {
  23473. padding-top: 15px;
  23474. }
  23475. .fileC_box > .fileC_title {
  23476. padding: 10px 5px 14px 10px;
  23477. border-top: 1px solid #cad1dc;
  23478. font-size: 14px;
  23479. font-weight: 400;
  23480. color: #cad1dc;
  23481. width: calc(100% - 20px);
  23482. margin: 0 auto;
  23483. box-sizing: border-box;
  23484. }
  23485. .pl_select_box {
  23486. height: 40px;
  23487. line-height: 40px;
  23488. width: 100%;
  23489. cursor: pointer;
  23490. padding: 0 20px;
  23491. box-sizing: border-box;
  23492. border-radius: 5px;
  23493. border: 1px solid #d6d6d6;
  23494. white-space: nowrap;
  23495. overflow: hidden;
  23496. text-overflow: ellipsis;
  23497. background: #fff;
  23498. text-align: left;
  23499. }
  23500. .newButton {
  23501. width: 102px;
  23502. height: 36px;
  23503. background: #e7ebf1;
  23504. border-radius: 4px;
  23505. color: #0e1e33;
  23506. font-weight: 400;
  23507. font-size: 14px;
  23508. border: none;
  23509. float: right;
  23510. margin-left: 10px;
  23511. }
  23512. .el-table >>> .even_row {
  23513. background-color: #f0f4fa;
  23514. }
  23515. .stageBoxCss,
  23516. .stageBoxIsCss {
  23517. display: flex;
  23518. flex-direction: row;
  23519. flex-wrap: nowrap;
  23520. align-items: center;
  23521. height: 50px;
  23522. border-bottom: 1px solid #e2f5fc;
  23523. cursor: pointer;
  23524. width: 100%;
  23525. }
  23526. .stageBoxIsCss {
  23527. background: #0061ff;
  23528. color: #fff;
  23529. border-radius: 8px;
  23530. }
  23531. .closeTri,
  23532. .closeTri1 {
  23533. min-width: 15px;
  23534. width: 15px;
  23535. height: 15px;
  23536. }
  23537. .closeTri1 {
  23538. padding-left: 10px;
  23539. cursor: pointer;
  23540. }
  23541. .closeTri > img,
  23542. .closeTri1 > img {
  23543. width: 100%;
  23544. height: 100%;
  23545. /* transition: all .5s; */
  23546. }
  23547. .noToolBlue {
  23548. min-width: 10px;
  23549. width: 10px;
  23550. height: 10px;
  23551. background: #0061ff;
  23552. border-radius: 50%;
  23553. margin-left: 13px;
  23554. }
  23555. .stageChild,
  23556. .toolChild {
  23557. height: 0;
  23558. overflow: hidden;
  23559. transition: all 0.5s;
  23560. }
  23561. .toolChild {
  23562. /* margin: 0 0 0 17px;
  23563. padding: 0 0 0 20px;
  23564. border-left: 1px solid #d7d7d7; */
  23565. }
  23566. .toolChild > div + div{
  23567. margin-top:5px;
  23568. }
  23569. .gjCss {
  23570. display: flex;
  23571. flex-direction: row;
  23572. flex-wrap: nowrap;
  23573. align-items: center;
  23574. padding: 10px 0 10px 40px;
  23575. box-sizing: border-box;
  23576. font-size: 14px;
  23577. cursor: pointer;
  23578. border-radius:5px;
  23579. }
  23580. .toolChild > div {
  23581. position: relative;
  23582. width: 100%;
  23583. }
  23584. .toolChild > div::before {
  23585. /* content: "";
  23586. width: 15px;
  23587. height: 1px;
  23588. background: #cad1dc;
  23589. position: absolute;
  23590. top: 24px;
  23591. left: -20px;
  23592. display: block; */
  23593. }
  23594. .isGjCss {
  23595. /* color: #0061ff; */
  23596. color:#fff;
  23597. background: rgb(55, 129, 252);
  23598. /* background-color: #e0eafb !important;
  23599. color: #0061ff !important; */
  23600. }
  23601. .navItem {
  23602. background: #ffffff;
  23603. border-radius: 4px;
  23604. width: 100%;
  23605. margin: 10px auto;
  23606. position: relative;
  23607. height: 40px;
  23608. display: flex;
  23609. flex-direction: row;
  23610. flex-wrap: nowrap;
  23611. align-items: center;
  23612. }
  23613. .navItemList {
  23614. display: flex;
  23615. flex-direction: row;
  23616. flex-wrap: nowrap;
  23617. align-items: center;
  23618. padding: 0 13px;
  23619. cursor: pointer;
  23620. width: calc(100% - 60px);
  23621. height: 100%;
  23622. }
  23623. .navItemList > div:first-child {
  23624. min-width: 60px;
  23625. }
  23626. .navItemList > div:last-child {
  23627. width: calc(100% - 80px);
  23628. white-space: nowrap;
  23629. overflow: hidden;
  23630. text-overflow: ellipsis;
  23631. word-break: break-word;
  23632. }
  23633. /* .isItemList > div {
  23634. color: #fff !important;
  23635. } */
  23636. .tool_work_box {
  23637. width: 100%;
  23638. padding: 0 37px 0;
  23639. box-sizing: border-box;
  23640. }
  23641. .tool_box {
  23642. width: 100%;
  23643. padding: 0 0 0 20px;
  23644. }
  23645. .tool_type_box {
  23646. display: flex;
  23647. flex-direction: row;
  23648. align-items: baseline;
  23649. flex-wrap: nowrap;
  23650. justify-content: flex-start;
  23651. position: relative;
  23652. }
  23653. .toolSort {
  23654. display: flex;
  23655. flex-direction: row;
  23656. flex-wrap: wrap;
  23657. justify-content: flex-start;
  23658. align-items: flex-start;
  23659. padding: 0 0 15px 0;
  23660. }
  23661. .toolSort > div {
  23662. margin: 0 10px 0 0;
  23663. width: 135px;
  23664. box-sizing: border-box;
  23665. border: 2px solid transparent;
  23666. }
  23667. .tools {
  23668. width: 100%;
  23669. display: flex;
  23670. flex-direction: column;
  23671. flex-wrap: nowrap;
  23672. align-items: flex-start;
  23673. }
  23674. .whiteBIcon {
  23675. width: fit-content;
  23676. cursor: pointer;
  23677. display: flex;
  23678. flex-direction: column;
  23679. flex-wrap: nowrap;
  23680. align-items: center;
  23681. font-size: 14px;
  23682. }
  23683. .tool:hover {
  23684. border: 2px solid #a5c7ff;
  23685. border-radius: 5px;
  23686. }
  23687. .whiteBIcon > img {
  23688. width: 65px;
  23689. height: 100%;
  23690. }
  23691. .whiteBIcon > img {
  23692. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  23693. border-radius: 15px;
  23694. }
  23695. .check {
  23696. /* width: 20px;
  23697. height: 20px; */
  23698. cursor: pointer;
  23699. margin: 10px 0;
  23700. position: absolute;
  23701. right: 2px;
  23702. top: -5px;
  23703. }
  23704. .noChoose,
  23705. .isChoose {
  23706. width: 15px;
  23707. height: 15px;
  23708. border-radius: 50%;
  23709. border: 1px solid #adadad;
  23710. }
  23711. .isChoose {
  23712. border: 4px solid #0363ff !important;
  23713. width: 10px;
  23714. height: 10px;
  23715. }
  23716. .isToolChoose {
  23717. border: 2px solid #5394ff !important;
  23718. border-radius: 5px;
  23719. box-shadow: 0 0 6px 0px #5394ff;
  23720. }
  23721. .checkDiv {
  23722. display: flex;
  23723. align-items: center;
  23724. }
  23725. .checkDiv span {
  23726. margin-left: 5px;
  23727. color: #858585;
  23728. }
  23729. .check img {
  23730. width: 20px;
  23731. height: 20px;
  23732. }
  23733. .lockTaskIcon {
  23734. width: 20px;
  23735. height: 20px;
  23736. position: absolute;
  23737. right: 10px;
  23738. top: 10px;
  23739. }
  23740. .lockTaskIcon > img {
  23741. width: 100%;
  23742. height: 100%;
  23743. }
  23744. .pick_box {
  23745. display: flex;
  23746. align-items: flex-start;
  23747. flex-wrap: wrap;
  23748. }
  23749. .selectBox {
  23750. width: 110px;
  23751. margin-left: 10px;
  23752. margin: 0 10px 0 auto;
  23753. }
  23754. .selectBox >>> .el-input__inner {
  23755. height: 30px;
  23756. line-height: 30px;
  23757. }
  23758. .selectBox >>> .el-input__icon {
  23759. line-height: 30px;
  23760. }
  23761. .sentenceTitle {
  23762. display: flex;
  23763. flex-direction: row;
  23764. flex-wrap: nowrap;
  23765. align-items: center;
  23766. }
  23767. .sentenceTitle::before {
  23768. content: attr(index);
  23769. background: #3681fc;
  23770. border-radius: 50%;
  23771. color: #fff;
  23772. width: 25px;
  23773. height: 25px;
  23774. min-width: 25px;
  23775. min-height: 25px;
  23776. text-align: center;
  23777. line-height: 25px;
  23778. margin-right: 5px;
  23779. }
  23780. .hfBox {
  23781. padding: 10px;
  23782. box-sizing: border-box;
  23783. }
  23784. .whoReplyWho {
  23785. display: flex;
  23786. flex-direction: row;
  23787. flex-wrap: nowrap;
  23788. align-items: baseline;
  23789. justify-content: flex-start;
  23790. }
  23791. .hfBottom {
  23792. display: flex;
  23793. flex-direction: row;
  23794. flex-wrap: nowrap;
  23795. align-items: center;
  23796. justify-content: space-between;
  23797. font-size: 14px;
  23798. }
  23799. .deleteHfItem {
  23800. cursor: pointer;
  23801. width: 20px;
  23802. height: 20px;
  23803. }
  23804. .deleteHfItem > img {
  23805. width: 100%;
  23806. height: 100%;
  23807. }
  23808. .whoReplyWho > .hfImg {
  23809. width: 12px;
  23810. height: 12px;
  23811. margin: 0 5px;
  23812. }
  23813. .whoReplyWho > .hfImg > img {
  23814. width: 100%;
  23815. height: 100%;
  23816. }
  23817. .hfContent {
  23818. padding-top: 10px;
  23819. box-sizing: border-box;
  23820. display: -webkit-box;
  23821. overflow: hidden;
  23822. white-space: normal !important;
  23823. text-overflow: ellipsis;
  23824. word-wrap: break-word;
  23825. -webkit-box-orient: vertical;
  23826. }
  23827. .hfTime {
  23828. text-align: left;
  23829. box-sizing: border-box;
  23830. padding: 10px 0 10px 0px;
  23831. color: #bfbfbf;
  23832. font-size: 14px;
  23833. }
  23834. .btnAllNT {
  23835. position: fixed;
  23836. bottom: 100px;
  23837. right: 40px;
  23838. z-index: 999;
  23839. display: flex;
  23840. flex-direction: row;
  23841. }
  23842. .btnAllNT > img {
  23843. cursor: pointer;
  23844. width: 80px;
  23845. }
  23846. .toolMask {
  23847. position: fixed;
  23848. width: 100%;
  23849. height: 100%;
  23850. background: #3f3c3c;
  23851. opacity: 0.5;
  23852. top: 0;
  23853. left: 0;
  23854. z-index: 999;
  23855. }
  23856. .addToolCss {
  23857. position: fixed;
  23858. z-index: 999;
  23859. background: #fff;
  23860. right: 5%;
  23861. bottom: 18%;
  23862. min-width: 1035px;
  23863. min-height: 300px;
  23864. border-radius: 10px;
  23865. box-shadow: 0 0 8px 1px #b2b2b2;
  23866. }
  23867. .toolTop {
  23868. display: flex;
  23869. flex-direction: row;
  23870. flex-wrap: nowrap;
  23871. justify-content: space-between;
  23872. align-items: center;
  23873. padding: 20px;
  23874. }
  23875. .toolTop > div:nth-child(2) {
  23876. width: 15px;
  23877. height: 15px;
  23878. padding-right: 10px;
  23879. cursor: pointer;
  23880. }
  23881. .toolTop > div:nth-child(2) > img {
  23882. width: 100%;
  23883. height: 100%;
  23884. }
  23885. .fullStyle>>>.el-dialog__body {
  23886. height: calc(100% - 125px) !important;
  23887. box-sizing: border-box;
  23888. padding: 30px 0 !important;
  23889. background: #fff !important;
  23890. }
  23891. .fullStyle>>>.el-dialog {
  23892. width: 100% !important;
  23893. max-width: 100% !important;
  23894. height: 100% !important;
  23895. margin: 0 !important;
  23896. }
  23897. .fullStyle {
  23898. width: 100% !important;
  23899. max-width: 100% !important;
  23900. height: 100% !important;
  23901. margin: 0 auto !important;
  23902. }
  23903. .fullStyle>>>.el-dialog__footer{
  23904. background: #fff !important;
  23905. }
  23906. .engUpBox {
  23907. width: 100%;
  23908. height: 100%;
  23909. }
  23910. .engTitle,
  23911. .engText {
  23912. display: flex;
  23913. flex-direction: row;
  23914. flex-wrap: nowrap;
  23915. align-items: flex-start;
  23916. padding: 0 20px 20px 20px;
  23917. box-sizing: border-box;
  23918. }
  23919. .engTitle > .div:first-child,
  23920. .engText > div:first-child {
  23921. min-width: 75px;
  23922. }
  23923. .correctBox{
  23924. width: 100%;
  23925. display: flex;
  23926. flex-direction: row;
  23927. flex-wrap: nowrap;
  23928. align-items: flex-start;
  23929. }
  23930. .oldBox{
  23931. width: 50%;
  23932. height: 100%;
  23933. display: flex;
  23934. flex-direction: column;
  23935. flex-wrap: nowrap;
  23936. align-items: center;
  23937. border-top: 1px solid #d9d9d9;
  23938. border-left: 1px solid #d9d9d9;
  23939. border-right: 1px solid #d9d9d9;
  23940. }
  23941. .oldBox>div:first-child{
  23942. width: 100%;
  23943. text-align: center;
  23944. background: #d9d9d9;
  23945. height: 35px;
  23946. line-height: 35px;
  23947. font-weight: bold;
  23948. }
  23949. .oldText{
  23950. width: 100%;
  23951. height: calc(100% - 35px);
  23952. overflow: auto;
  23953. margin: 10px 0;
  23954. display: flex;
  23955. flex-direction: column;
  23956. flex-wrap: nowrap;
  23957. align-content: center;
  23958. align-items: center;
  23959. }
  23960. .detailBox{
  23961. width: 50%;
  23962. padding: 10px;
  23963. background: #f6f6f6;
  23964. border-radius: 5px;
  23965. }
  23966. .oldDetail,.oldDetail1{
  23967. padding-bottom: 30px;
  23968. }
  23969. .oldImg{
  23970. width:30px;
  23971. height: 30px;
  23972. }
  23973. .oldImg>img{
  23974. width: 100%;
  23975. height: 100%;
  23976. }
  23977. .allName{
  23978. min-width: 200px;
  23979. white-space: nowrap;
  23980. overflow: hidden;
  23981. text-overflow: ellipsis;
  23982. word-break: break-word;
  23983. cursor: pointer;
  23984. text-align: center;
  23985. border: 1px solid #bcc2cc;
  23986. box-sizing: border-box;
  23987. }
  23988. .engUpTop{
  23989. max-height: 300px;
  23990. overflow: auto;
  23991. }
  23992. .isUpdateToolDetailClass{
  23993. padding: 0 !important;
  23994. }
  23995. .isUpdateToolDetailClass textarea{
  23996. padding:12px;
  23997. font-size: 16px;
  23998. min-height:100%;
  23999. width: 100%;
  24000. box-sizing:border-box;
  24001. outline: none;
  24002. border:none;
  24003. line-height: 30px;
  24004. resize: none;
  24005. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  24006. color: #838383;
  24007. }
  24008. .show_taskD {
  24009. min-width: fit-content;
  24010. margin-left: 10px;
  24011. display: flex;
  24012. align-items: center;
  24013. font-size: 14px;
  24014. cursor: pointer;
  24015. color: #717c8d;
  24016. }
  24017. .show_taskD > img {
  24018. width: 15px;
  24019. margin-right: 5px;
  24020. transition: 0.2s all;
  24021. transform: rotate(-90deg);
  24022. }
  24023. .show_taskD.show > img {
  24024. transform: rotate(0deg);
  24025. }
  24026. .correctCss{
  24027. position: absolute;
  24028. bottom: -70px;
  24029. background: #409eff;
  24030. color: #fff;
  24031. }
  24032. .ScoreBtn{
  24033. background: rgba(87, 159, 248, 1);
  24034. display: flex;
  24035. justify-content: center;
  24036. align-items: center;
  24037. color: #fff;
  24038. font-size: 14px;
  24039. padding:8px 12px;
  24040. border-radius: 5px;
  24041. cursor: pointer;
  24042. }
  24043. .max-height-popover .el-popover {
  24044. min-height: 200px;
  24045. max-height: 400px; /* 设置最大高度 */
  24046. overflow: auto; /* 超出部分显示滚动条 */
  24047. }
  24048. </style>