studyStudent.vue 786 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852
  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 src="../../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  15. <img
  16. v-if="
  17. courseDetail.userid == userid ||
  18. (courseDetail.course_teacher &&
  19. courseDetail.course_teacher.indexOf(userid) != -1)
  20. "
  21. src="../../../assets/icon/learn/addTool.png"
  22. @click="openToolAll"
  23. style="position: relative"
  24. />
  25. <img
  26. src="../../../assets/icon/learn/last.png"
  27. @click="nextOrpreSteps(0)"
  28. />
  29. <img
  30. src="../../../assets/icon/learn/next.png"
  31. @click="nextOrpreSteps(1)"
  32. />
  33. <img
  34. src="../../../assets/icon/learn/return.png"
  35. @click.stop="
  36. goTo(
  37. '/courseDetailTrain?userid=' +
  38. userid +
  39. '&oid=' +
  40. oid +
  41. '&org=' +
  42. org +
  43. '&cid=' +
  44. classId +
  45. '&courseId=' +
  46. id +
  47. '&tType=' +
  48. tType +
  49. '&screenType=' +
  50. screenType
  51. )
  52. "
  53. />
  54. </div>
  55. <div
  56. class="pButton"
  57. style="left: 0; top: 140px"
  58. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  59. @click="setContent2(true)"
  60. >
  61. <!-- 批 , getCourseDetail()-->
  62. <img
  63. src="../../../assets/icon/newIcons/isRight.png"
  64. style="width: 45px"
  65. alt=""
  66. />
  67. </div>
  68. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  69. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  70. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  71. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  72. <div
  73. style="
  74. max-width: calc(100% - 40px);
  75. width: auto;
  76. white-space: nowrap;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. word-break: break-word;
  80. display: block;
  81. "
  82. >
  83. <el-tooltip
  84. effect="light"
  85. :content="courseDetail.title"
  86. placement="top"
  87. >
  88. <div class="ctitle">
  89. {{ courseDetail.title }}
  90. </div>
  91. </el-tooltip>
  92. </div>
  93. <el-tooltip effect="light" content="收缩" placement="top">
  94. <div class="mlImg" @click="setContent2(false)">
  95. <img src="../../../assets/icon/newIcons/isRight.png" alt="" />
  96. </div>
  97. </el-tooltip>
  98. </div>
  99. <div
  100. class="inviteBox"
  101. v-if="tcid && inviteCode"
  102. style="padding: 0 0 8px 0"
  103. >
  104. <div>
  105. <span>随机码:{{ inviteCode }}</span>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="cru_selectBox">
  110. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  111. <div class="stageChild" :class="{ navActive: item.isOpen }">
  112. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  113. <div
  114. class="navItem"
  115. :class="{
  116. openTaskActive:
  117. navIndex == taskCount &&
  118. nav.id == navId &&
  119. stageIndex == courseType,
  120. }"
  121. >
  122. <div v-if="nav.tool[0].tool != undefined">
  123. <div
  124. class="closeTri1"
  125. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  126. @click="openTask(stageIndex, navIndex, nav.id)"
  127. >
  128. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../../assets/icon/newIcons/bDown2.png" alt />
  129. </div>
  130. <div
  131. class="closeTri1"
  132. v-else
  133. @click="openTask(stageIndex, navIndex, nav.id)"
  134. >
  135. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../../assets/icon/newIcons/right.png" alt />
  136. </div>
  137. </div>
  138. <div v-else class="noToolBlue"></div>
  139. <div
  140. @click="openTask(stageIndex, navIndex, nav.id)"
  141. class="navItemList"
  142. :class="{
  143. isItemList:
  144. navIndex == taskCount &&
  145. nav.id == navId &&
  146. stageIndex == courseType,
  147. }"
  148. >
  149. <div>任务{{ navIndex + 1 }}:</div>
  150. <el-tooltip
  151. effect="light"
  152. :content="nav.taskName"
  153. placement="top"
  154. >
  155. <div
  156. :style="{
  157. width:
  158. IsLookOpen && !nav.isLook
  159. ? 'calc(100% - 75px)'
  160. : 'auto',
  161. }"
  162. >
  163. {{ nav.taskName }}
  164. </div>
  165. </el-tooltip>
  166. </div>
  167. </div>
  168. <div
  169. v-if="nav.tool[0].tool != undefined"
  170. class="toolChild"
  171. :class="{ toolActive: nav.isOpen }"
  172. >
  173. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  174. <div
  175. class="gjCss"
  176. :class="{
  177. isGjCss: t.isTool,
  178. }"
  179. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  180. >
  181. <div>工具{{ toolIndex2 + 1 }}:</div>
  182. <div v-if="t.tool == 58">模拟驾驶</div>
  183. <div v-if="t.tool == 59">路径搜索</div>
  184. <div v-if="t.tool == 60">深度学习</div>
  185. <div v-if="t.tool == 10">倒计时</div>
  186. <div v-if="t.tool == 65">挑人</div>
  187. <div v-if="t.tool == 7">思维网格</div>
  188. <div v-if="t.tool == 1">电子白板</div>
  189. <div v-if="t.tool == 52">文档</div>
  190. <div v-if="t.tool == 3">思维导图</div>
  191. <div v-if="t.tool == 48">表格</div>
  192. <div v-if="t.tool == 49">学生分组</div>
  193. <div v-if="t.tool == 4">问卷调查</div>
  194. <div v-if="t.tool == 45">选择题</div>
  195. <div v-if="t.tool == 15">问答</div>
  196. <div v-if="t.tool == 16">作业提交</div>
  197. <div v-if="t.tool == 50">批量上传</div>
  198. <div v-if="t.tool == 41">选择匹配</div>
  199. <div v-if="t.tool == 47">排序</div>
  200. <div v-if="t.tool == 40">个人评价</div>
  201. <div v-if="t.tool == 18">训练平台</div>
  202. <div v-if="t.tool == 21">AIoT Blockly</div>
  203. <div v-if="t.tool == 23">AI Python</div>
  204. <div v-if="t.tool == 24">AI Blockly</div>
  205. <div v-if="t.tool == 32">源码编辑</div>
  206. <div v-if="t.tool == 57">CocoPi</div>
  207. <div v-if="t.tool == 63">海龟编程</div>
  208. <div v-if="t.tool == 28">翻译</div>
  209. <div v-if="t.tool == 31">数字画板</div>
  210. <div v-if="t.tool == 39">GeoGebra</div>
  211. <div v-if="t.tool == 66">公式编辑</div>
  212. <div v-if="t.tool == 67">分子结构</div>
  213. <div v-if="t.tool == 68">时间轴</div>
  214. <div v-if="t.tool == 69">英语写作</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>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  227. <div class="new_topFixed"></div>
  228. <div class="new_top" :class="{ navLeftCss: !mlDialog }">
  229. <div class="courseIndex">
  230. <div>任务{{ taskCount + 1 }}</div>
  231. <el-tooltip
  232. effect="light"
  233. :content="
  234. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  235. "
  236. placement="top"
  237. >
  238. <div>
  239. {{
  240. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  241. .task
  242. }}
  243. </div>
  244. </el-tooltip>
  245. </div>
  246. <div class="btnAll">
  247. <div class="btnLeft">
  248. <el-tooltip effect="light" content="刷新" placement="top">
  249. <div class="reBtnIcon" @click="refreshCourse">
  250. <span>刷新</span>
  251. </div>
  252. </el-tooltip>
  253. <el-tooltip effect="light" content="评论" placement="top">
  254. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  255. <span>评论</span>
  256. </div>
  257. </el-tooltip>
  258. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  259. <el-tooltip effect="light" content="录制" placement="top">
  260. <div class="vedioIcon" @click="startRecording">
  261. <span>录制</span>
  262. </div>
  263. </el-tooltip>
  264. </div>
  265. <div v-else-if="tType == 1 || tType == 4">
  266. <el-tooltip effect="light" content="下载" placement="top">
  267. <div class="vedioIcon1" @click="stopRecording">
  268. <span>下载</span>
  269. </div>
  270. </el-tooltip>
  271. </div>
  272. </div>
  273. <div class="btnRight">
  274. <div
  275. class="last"
  276. @click="nextOrpreSteps(0)"
  277. v-if="!(IsFollow && tType == 2)"
  278. @mouseover="isHovered = true"
  279. @mouseout="isHovered = false"
  280. >
  281. <div class="lastImg">
  282. <img
  283. :src="
  284. isHovered
  285. ? require('../../../assets/icon/newIcons/whiteLast.png')
  286. : require('../../../assets/icon/newIcons/last.png')
  287. "
  288. alt=""
  289. />
  290. </div>
  291. <div class="lastText">上一步</div>
  292. </div>
  293. <div
  294. class="last"
  295. @click="nextOrpreSteps(1)"
  296. v-if="!(IsFollow && tType == 2)"
  297. @mouseover="isHovered1 = true"
  298. @mouseout="isHovered1 = false"
  299. >
  300. <div class="lastText">下一步</div>
  301. <div class="lastImg">
  302. <img
  303. :src="
  304. isHovered1
  305. ? require('../../../assets/icon/newIcons/whiteNext.png')
  306. : require('../../../assets/icon/newIcons/next.png')
  307. "
  308. alt=""
  309. />
  310. </div>
  311. </div>
  312. <!-- <div
  313. class="last"
  314. @click="juriVisible = true"
  315. v-if="tType == 1"
  316. @mouseover="isHovered2 = true"
  317. @mouseout="isHovered2 = false"
  318. >
  319. <div class="lastImg">
  320. <img
  321. :src="
  322. isHovered2
  323. ? require('../../../assets/icon/newIcons/whiteLock.png')
  324. : require('../../../assets/icon/newIcons/lock.png')
  325. "
  326. alt=""
  327. />
  328. </div>
  329. <div class="lastText">权限</div>
  330. </div> -->
  331. <div
  332. class="returnBtn1 returnIcon"
  333. @click.stop="
  334. goTo(
  335. '/courseDetailTrain?userid=' +
  336. userid +
  337. '&oid=' +
  338. oid +
  339. '&org=' +
  340. org +
  341. '&cid=' +
  342. classId +
  343. '&courseId=' +
  344. id +
  345. '&tType=' +
  346. tType +
  347. '&screenType=' +
  348. screenType
  349. )
  350. "
  351. >
  352. <div class="lastImg">
  353. <img src="../../../assets/icon/newIcon/return.png" alt="" />
  354. </div>
  355. <div class="lastText" style="color: #000">返回</div>
  356. </div>
  357. </div>
  358. <!-- <div
  359. class="returnBtn lockIcon"
  360. @click="juriVisible = true"
  361. v-if="tType == 1"
  362. >
  363. 权限
  364. </div>
  365. <div
  366. class="returnBtn vedioIcon"
  367. @click="startRecording"
  368. v-if="!videoStart && (tType == 1 || tType == 4)"
  369. >
  370. 录制
  371. </div>
  372. <div
  373. class="returnBtn"
  374. @click="stopRecording"
  375. v-else-if="tType == 1 || tType == 4"
  376. style="background: #ee5255"
  377. >
  378. 下载
  379. </div>
  380. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  381. 评论
  382. </div>
  383. <div
  384. class="returnBtn"
  385. @click="nextOrpreSteps(0)"
  386. v-if="!(IsFollow && tType == 2)"
  387. >
  388. 上一步
  389. </div>
  390. <div
  391. class="returnBtn"
  392. @click="nextOrpreSteps(1)"
  393. v-if="!(IsFollow && tType == 2)"
  394. >
  395. 下一步
  396. </div>
  397. <div class="returnBtn" @click="refreshCourse">刷新</div>
  398. <div
  399. class="returnBtn returnIcon"
  400. @click.stop="
  401. goTo(
  402. '/courseDetailTrain?userid=' +
  403. userid +
  404. '&oid=' +
  405. oid +
  406. '&org=' +
  407. org +
  408. '&cid=' +
  409. classId +
  410. '&courseId=' +
  411. id +
  412. '&tType=' +
  413. tType +
  414. '&screenType=' +
  415. screenType
  416. )
  417. "
  418. >
  419. 返回
  420. </div> -->
  421. </div>
  422. </div>
  423. <div
  424. class="isNoMessage"
  425. v-if="
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .chapterData.length == 0 &&
  428. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  429. .toolChoose[0].tool.length == 0 &&
  430. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  431. .taskDetail == '' &&
  432. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  433. .eList &&
  434. !(
  435. courseDetail.userid == userid ||
  436. (courseDetail.course_teacher &&
  437. courseDetail.course_teacher.indexOf(userid) != -1)
  438. )
  439. "
  440. >
  441. <img src="../../../assets/icon/isNoMessage.png" alt />
  442. </div>
  443. <div class="study_top" :class="{ pzClass: pzDialog }">
  444. <div
  445. class="vedioBox"
  446. v-if="
  447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .taskDetail != '' ||
  449. vChapterData[taskCount].length > 0 ||
  450. fileC[taskCount].length > 0
  451. "
  452. style="border-radius: 0 0 20px 20px"
  453. >
  454. <div
  455. class="taskBox"
  456. v-if="
  457. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  458. .taskDetail != ''
  459. "
  460. >
  461. <div
  462. style="
  463. display: flex;
  464. flex-wrap: nowrap;
  465. flex-direction: column;
  466. position: relative;
  467. "
  468. >
  469. <div
  470. style="
  471. padding: 15px 0;
  472. line-height: 29px;
  473. font-size: 18px;
  474. color: #0e1e33;
  475. "
  476. class="cont"
  477. v-if="
  478. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  479. .taskDetail != ''
  480. "
  481. v-html="
  482. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  483. .taskDetail
  484. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  485. taskCount
  486. ].taskDetail
  487. : '暂无描述'
  488. "
  489. ></div>
  490. </div>
  491. </div>
  492. <div
  493. class="student_head"
  494. v-if="
  495. vChapterData[taskCount].length > 0 ||
  496. fileC[taskCount].length > 0
  497. "
  498. >
  499. <div class="vedioTaskBox" v-loading="downLoading">
  500. <div
  501. :class="
  502. contentDialog == false
  503. ? 'box_course isContentCss'
  504. : 'box_course'
  505. "
  506. v-if="
  507. vChapterData.length > 0 &&
  508. vChapterData[taskCount] &&
  509. showType !== ''
  510. "
  511. >
  512. <div class="wheel" style="height: auto" v-if="showType === 0">
  513. <div
  514. class="workd_media"
  515. style="height: 650px; width: calc(100% - 50px)"
  516. >
  517. <video-player
  518. class="video-player vjs-custom-skin"
  519. :class="contentDialog == false ? 'isAllWidth' : ''"
  520. :playsinline="true"
  521. :options="playerO[taskCount]"
  522. @play="onPlayerPlay($event)"
  523. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  524. ></video-player>
  525. </div>
  526. </div>
  527. <div
  528. class="wheel"
  529. v-if="showType == 1"
  530. style="
  531. box-shadow: 0 0 6px 1px #f2f2f2;
  532. width: 95%;
  533. margin: 0 auto;
  534. background: #f1f1f1;
  535. "
  536. >
  537. <div class="title">查看文档</div>
  538. <el-form class="textBox">
  539. <el-form-item class="textTitle">
  540. <div style="font-size: 22px">
  541. {{ text.name }}
  542. </div>
  543. </el-form-item>
  544. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  545. <div v-html="text.url" class="textContent cont"></div>
  546. </el-form>
  547. </div>
  548. <div
  549. class="wheel"
  550. v-if="
  551. pptImgUrl1.indexOf(
  552. 'https://view.officeapps.live.com/op/view.aspx?src='
  553. ) != -1 && showType == 2
  554. "
  555. style="width: 95%; margin: 0 auto"
  556. >
  557. <iframe
  558. style="width: 100%; height: 100%; border: none"
  559. :src="pptImgUrl1"
  560. ></iframe>
  561. </div>
  562. <div
  563. class="wheel"
  564. v-else-if="showType == 2"
  565. style="width: 95%; margin: 0 auto"
  566. >
  567. <iframe
  568. style="width: 100%; height: 100%; border: none"
  569. security="restricted"
  570. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  571. :src="pptImgUrl1"
  572. ></iframe>
  573. </div>
  574. <div
  575. class="wheel"
  576. v-if="showType == 3"
  577. style="width: 95%; margin: 0 auto"
  578. >
  579. <pdf
  580. :pdfUrl="pptImgUrl1"
  581. style="width: 100%; height: 100%; overflow: auto"
  582. ></pdf>
  583. </div>
  584. <div
  585. class="wheel"
  586. v-if="showType == 4"
  587. style="width: 95%; margin: 0 auto"
  588. >
  589. <el-image
  590. :src="pptImgUrl1"
  591. fit="contain"
  592. style="width: 100%; height: 100%; cursor: pointer"
  593. @click="previewImg(pptImgUrl1)"
  594. ></el-image>
  595. </div>
  596. </div>
  597. <div
  598. class="pButton"
  599. style="position: absolute; right: 20px; top: 0; z-index: 998"
  600. v-if="!contentDialog"
  601. @click="setContent(true)"
  602. >
  603. <!-- 批 -->
  604. <img
  605. src="../../../assets/icon/newIcons/isLeft.png"
  606. style="width: 45px"
  607. alt=""
  608. />
  609. </div>
  610. <div
  611. v-if="contentDialog == true"
  612. :style="{
  613. width:
  614. (vChapterData[taskCount].length > 0 ||
  615. fileC[taskCount].length > 0) &&
  616. showType === ''
  617. ? 'calc(100%)'
  618. : '300px',
  619. margin:
  620. (vChapterData[taskCount].length > 0 ||
  621. fileC[taskCount].length > 0) &&
  622. showType === ''
  623. ? '0 15px'
  624. : '0 15px 0 0',
  625. }"
  626. >
  627. <div
  628. class="vedioList"
  629. v-if="
  630. vChapterData[taskCount].length > 0 ||
  631. fileC[taskCount].length > 0
  632. "
  633. style="height: 650px"
  634. >
  635. <div class="navCorOpenBox">
  636. <div class="navTitile">内容列表:</div>
  637. <div class="navCorOpen" @click="setContent(false)">
  638. <img
  639. src="../../../assets/icon/newIcons/isRight.png"
  640. alt=""
  641. />
  642. </div>
  643. </div>
  644. <div class="navBox">
  645. <div
  646. v-show="
  647. vChapterData[taskCount].length > 0 ||
  648. fileC[taskCount].length > 0
  649. "
  650. style="padding: 10px 0 25px 0"
  651. >
  652. <div
  653. class="vedioTimeBox"
  654. v-for="(vitem, vindex) in vChapterData[taskCount]"
  655. :key="vindex + '1'"
  656. >
  657. <div class="navListItem" v-if="vitem.type == 2">
  658. <div
  659. @click="lookVedio(vitem.url, vindex)"
  660. class="navText"
  661. :class="isClickNav == vindex ? 'isClickNav' : ''"
  662. >
  663. <span v-if="vitem.text">{{ vitem.text }}-</span
  664. >{{ vitem.name }}
  665. </div>
  666. <div class="downIcon" @click="downloadFile2(vitem)">
  667. <img
  668. src="../../../assets/icon/newIcon/down.png"
  669. alt
  670. />
  671. </div>
  672. </div>
  673. <div class="navListItem" v-if="vitem.type == 6">
  674. <div
  675. @click="lookText(taskCount, vindex)"
  676. class="navText"
  677. :class="isClickNav == vindex ? 'isClickNav' : ''"
  678. >
  679. {{ vitem.name }}.doc
  680. </div>
  681. <div
  682. class="downIcon"
  683. @click="checkFileFull1(vitem.type, vitem)"
  684. >
  685. <img
  686. src="../../../assets/icon/newIcon/allScreen.png"
  687. alt
  688. />
  689. </div>
  690. </div>
  691. <div
  692. class="navListItem"
  693. v-if="vitem.type == 8 || vitem.type == 14"
  694. >
  695. <div
  696. @click="doUrl(vitem.url, vindex)"
  697. class="navText"
  698. :class="isClickNav == vindex ? 'isClickNav' : ''"
  699. >
  700. {{ vitem.title ? vitem.title : vitem.url }}
  701. </div>
  702. <div
  703. class="downIcon"
  704. @click="checkFileFull1(vitem.type, vitem)"
  705. >
  706. <img
  707. src="../../../assets/icon/newIcon/allScreen.png"
  708. alt
  709. />
  710. </div>
  711. </div>
  712. <div class="navListItem" v-if="vitem.type == 3">
  713. <div
  714. @click="downFile(vitem, vindex)"
  715. class="navText"
  716. :class="isClickNav == vindex ? 'isClickNav' : ''"
  717. >
  718. <span v-if="vitem.text">{{ vitem.text }}-</span
  719. >{{ vitem.name }}
  720. </div>
  721. <div
  722. class="downIcon"
  723. @click="checkFileFull1(vitem.type, vitem)"
  724. >
  725. <img
  726. src="../../../assets/icon/newIcon/allScreen.png"
  727. alt
  728. />
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 12">
  738. <div class="navText" @click="downloadFile2(vitem)">
  739. <span v-if="vitem.text">{{ vitem.text }}-</span
  740. >{{ vitem.name }}
  741. </div>
  742. <div
  743. class="downIcon"
  744. @click="checkFileFull1(vitem.type, vitem)"
  745. >
  746. <img
  747. src="../../../assets/icon/newIcon/allScreen.png"
  748. alt
  749. />
  750. </div>
  751. <div class="downIcon" @click="downloadFile2(vitem)">
  752. <img
  753. src="../../../assets/icon/newIcon/down.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div class="navListItem" v-if="vitem.type == 13">
  759. <div
  760. class="navText"
  761. @click="checkPhoto(vitem, vindex)"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.name }}
  765. </div>
  766. <div class="downIcon" @click="downloadFile2(vitem)">
  767. <img
  768. src="../../../assets/icon/newIcon/down.png"
  769. alt
  770. />
  771. </div>
  772. </div>
  773. </div>
  774. <div
  775. class="fileC_box"
  776. v-if="fileC[taskCount].length > 0"
  777. >
  778. <div class="fileC_title">以下文件不支持预览</div>
  779. <div
  780. class="vedioTimeBox"
  781. v-for="(vitem, vindex) in fileC[taskCount]"
  782. :key="vindex + '1'"
  783. >
  784. <div class="navListItem" v-if="vitem.type == 12">
  785. <div class="navText" style="color: #acb4bf">
  786. <span v-if="vitem.text">{{ vitem.text }}-</span
  787. >{{ vitem.name }}
  788. </div>
  789. <div
  790. class="downIcon"
  791. @click="downloadFile2(vitem)"
  792. >
  793. <img
  794. src="../../../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div>
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. <div style="width: calc(100% - 315px)">
  807. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  808. <!-- <el-button
  809. type="primary"
  810. class="newButton"
  811. @click="checkFileFull(showType, pptImgUrl1)"
  812. >全屏查看</el-button
  813. >
  814. <el-button
  815. type="primary"
  816. class="newButton"
  817. @click="downloadFile(pptImgUrl1)"
  818. v-if="showType != 2"
  819. >文件下载</el-button
  820. > -->
  821. <el-button
  822. class="newButton"
  823. v-if="
  824. showType == 2 &&
  825. pptImgUrl1.indexOf(
  826. 'https://view.officeapps.live.com/op/view.aspx?src='
  827. ) == -1
  828. "
  829. type="primary"
  830. @click="openLine(pptImgUrl1)"
  831. >打开链接
  832. </el-button>
  833. </div>
  834. <!-- <div
  835. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  836. v-if="showType == 1"
  837. >
  838. <el-button
  839. type="primary"
  840. class="newButton"
  841. @click="checkFileFull(showType, text)"
  842. >全屏查看</el-button
  843. >
  844. </div> -->
  845. </div>
  846. </div>
  847. </div>
  848. <div class="student_body" v-resize="resize">
  849. <div
  850. class="vedioBox"
  851. :style="{
  852. borderRadius:
  853. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  854. .taskDetail == '' &&
  855. vChapterData[taskCount].length == 0 &&
  856. fileC[taskCount].length == 0
  857. ? '0 0 20px 20px'
  858. : '20px',
  859. }"
  860. v-if="
  861. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  862. .toolChoose[0].tool &&
  863. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  864. .toolChoose[0].tool.length > 0
  865. "
  866. >
  867. <div
  868. class="toolHeng2"
  869. style="position: relative"
  870. v-if="
  871. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  872. .toolChoose[0].tool &&
  873. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  874. .toolChoose[0].tool.length &&
  875. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  876. .toolChoose[0].tool.length > 0
  877. "
  878. >
  879. <div class="workNav">工作区</div>
  880. <div
  881. class="filebox"
  882. style="flex-wrap: nowrap"
  883. v-for="(tool, toolIndex) in chapInfoList[courseType]
  884. .chapterInfo[0].taskJson[taskCount].toolChoose"
  885. :key="toolIndex"
  886. >
  887. <div class="bzBox">
  888. <div class="yCss"></div>
  889. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  890. 工具{{ toolIndex + 1 }}
  891. </div>
  892. <div
  893. v-if="timeWorkList[toolIndex].length > 0"
  894. style="margin: 0 0 0 10px"
  895. >
  896. {{
  897. timeWorkList[toolIndex][0].time
  898. ? "时间:" + timeWorkList[toolIndex][0].time
  899. : ""
  900. }}
  901. </div>
  902. </div>
  903. <div class="toolBox">
  904. <div>
  905. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  906. :key="indexTool"-->
  907. <!-- <div class="iframeBox">
  908. <div
  909. class="addPoint isBorder"
  910. v-for="(tooC, toolCIndex) in tool.tool"
  911. :key="toolCIndex"
  912. >
  913. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  914. <div
  915. class="iframeName"
  916. >
  917. 电子白板
  918. </div>
  919. <iframe
  920. src="https://iwb.cocorobo.cn/"
  921. ref="whiteBoard"
  922. ></iframe>
  923. </div>
  924. </div>
  925. </div>-->
  926. <div class="noiframeBox">
  927. <div
  928. class="addPoint"
  929. v-for="(tooC, toolCIndex) in tool.tool"
  930. :key="toolCIndex"
  931. >
  932. <div v-if="tooC == 1">
  933. <img
  934. src="../../../assets/icon/secondToolList/whiteBoard.png"
  935. alt
  936. @click="addTools(tooC, toolIndex, taskCount)"
  937. />
  938. <div style="margin: 5px 0">电子白板</div>
  939. </div>
  940. <div v-if="tooC == 3">
  941. <img
  942. src="../../../assets/icon/secondToolList/mindMapping.png"
  943. alt
  944. @click="addTools(tooC, toolIndex, taskCount)"
  945. />
  946. <div style="margin: 5px 0">思维导图</div>
  947. </div>
  948. <div v-if="tooC == 6">
  949. <img
  950. src="../../../assets/icon/secondToolList/doc.png"
  951. alt
  952. @click="addTools(tooC, toolIndex, taskCount)"
  953. />
  954. <div style="margin: 5px 0">协同文档</div>
  955. </div>
  956. <div v-if="tooC == 7">
  957. <img
  958. src="../../../assets/icon/secondToolList/mindNetwork.png"
  959. alt
  960. @click="addTools(tooC, toolIndex, taskCount)"
  961. />
  962. <div style="margin: 5px 0">思维网格</div>
  963. </div>
  964. <div v-if="tooC == 8">
  965. <img
  966. src="../../../assets/icon/secondToolList/library.png"
  967. alt
  968. @click="addTools(tooC, toolIndex, taskCount)"
  969. />
  970. <div style="margin: 5px 0">素材库</div>
  971. </div>
  972. <div v-if="tooC == 17">
  973. <img
  974. src="../../../assets/icon/secondToolList/library.png"
  975. alt
  976. @click="addTools(tooC, toolIndex, taskCount)"
  977. />
  978. <div style="margin: 5px 0">学习资料</div>
  979. </div>
  980. <div v-if="tooC == 2">
  981. <img
  982. @click="addTools(tooC, toolIndex, taskCount)"
  983. src="../../../assets/icon/secondToolList/note.png"
  984. alt
  985. />
  986. <div style="margin: 5px 0">便签</div>
  987. </div>
  988. <div v-if="tooC == 4">
  989. <img
  990. @click="addTools(tooC, toolIndex, taskCount)"
  991. src="../../../assets/icon/thirdToolList/ask.png"
  992. alt
  993. />
  994. <div style="margin: 5px 0">问卷调查</div>
  995. </div>
  996. <div v-if="tooC == 45">
  997. <img
  998. @click="addTools(tooC, toolIndex, taskCount)"
  999. src="../../../assets/icon/thirdToolList/choose.png"
  1000. alt
  1001. />
  1002. <div style="margin: 5px 0">选择题</div>
  1003. </div>
  1004. <!-- <div v-if="tooC == 5">
  1005. <img
  1006. @click="addTools(tooC, toolIndex, taskCount)"
  1007. src="../../../assets/icon/thirdToolList/score.png"
  1008. alt
  1009. />
  1010. <div style="margin: 5px 0">量规评分</div>
  1011. </div> -->
  1012. <div v-if="tooC == 10">
  1013. <img
  1014. @click="addTools(tooC, toolIndex, taskCount)"
  1015. src="../../../assets/icon/thirdToolList/time.png"
  1016. alt
  1017. />
  1018. <div style="margin: 5px 0">倒计时</div>
  1019. </div>
  1020. <div v-if="tooC == 15">
  1021. <img
  1022. @click="addTools(tooC, toolIndex, taskCount)"
  1023. src="../../../assets/icon/thirdToolList/answer.png"
  1024. alt
  1025. />
  1026. <div style="margin: 5px 0">问答</div>
  1027. </div>
  1028. <div v-if="tooC == 26">
  1029. <img
  1030. @click="addTools(tooC, toolIndex, taskCount)"
  1031. src="../../../assets/icon/thirdToolList/courseDesign.png"
  1032. alt
  1033. />
  1034. <div style="margin: 5px 0">课程设计</div>
  1035. </div>
  1036. <div v-if="tooC == 18">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">训练服务器</div>
  1043. </div>
  1044. <div v-if="tooC == 16">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../../assets/icon/thirdToolList/work.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">作业提交</div>
  1051. </div>
  1052. <div v-if="tooC == 50">
  1053. <img
  1054. @click="addTools(tooC, toolIndex, taskCount)"
  1055. src="../../../assets/icon/thirdToolList/plwork.png"
  1056. alt
  1057. />
  1058. <div style="margin: 5px 0">批量上传</div>
  1059. </div>
  1060. <div v-if="tooC == 21">
  1061. <img
  1062. @click="addTools(tooC, toolIndex, taskCount)"
  1063. src="../../../assets/icon/fourthToolList/program.png"
  1064. alt
  1065. />
  1066. <div style="margin: 5px 0">AIoT Blockly</div>
  1067. </div>
  1068. <!-- <div v-if="tooC == 22">
  1069. <img
  1070. @click="addTools(tooC, toolIndex, taskCount)"
  1071. src="../../../assets/icon/fourthToolList/program.png"
  1072. alt
  1073. />
  1074. <div style="margin: 5px 0">AI体验</div>
  1075. </div> -->
  1076. <div v-if="tooC == 23">
  1077. <img
  1078. @click="addTools(tooC, toolIndex, taskCount)"
  1079. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  1080. alt
  1081. />
  1082. <div style="margin: 5px 0">AI Python</div>
  1083. </div>
  1084. <div v-if="tooC == 24">
  1085. <img
  1086. @click="addTools(tooC, toolIndex, taskCount)"
  1087. src="../../../assets/icon/fourthToolList/AIprogram.png"
  1088. alt
  1089. />
  1090. <div style="margin: 5px 0">AI Blockly</div>
  1091. </div>
  1092. <div v-if="tooC == 25">
  1093. <img
  1094. @click="addTools(tooC, toolIndex, taskCount)"
  1095. src="../../../assets/icon/thirdToolList/evalua.png"
  1096. alt
  1097. />
  1098. <div style="margin: 5px 0">目标管理</div>
  1099. </div>
  1100. <div v-if="tooC == 31">
  1101. <img
  1102. @click="addTools(tooC, toolIndex, taskCount)"
  1103. src="../../../assets/icon/secondToolList/networkPanel.png"
  1104. alt
  1105. />
  1106. <div style="margin: 5px 0">数学画板</div>
  1107. </div>
  1108. <div v-if="tooC == 28">
  1109. <img
  1110. @click="addTools(tooC, toolIndex, taskCount)"
  1111. src="../../../assets/icon/secondToolList/translation.png"
  1112. alt
  1113. />
  1114. <div style="margin: 5px 0">翻译</div>
  1115. </div>
  1116. <div v-if="tooC == 37">
  1117. <img
  1118. @click="addTools(tooC, toolIndex, taskCount)"
  1119. src="../../../assets/icon/secondToolList/mohe.png"
  1120. alt
  1121. />
  1122. <div style="margin: 5px 0">魔盒识字</div>
  1123. </div>
  1124. <div v-if="tooC == 38">
  1125. <img
  1126. @click="addTools(tooC, toolIndex, taskCount)"
  1127. src="../../../assets/icon/secondToolList/24game.png"
  1128. alt
  1129. />
  1130. <div style="margin: 5px 0">24点</div>
  1131. </div>
  1132. <div v-if="tooC == 39">
  1133. <img
  1134. @click="addTools(tooC, toolIndex, taskCount)"
  1135. src="../../../assets/icon/secondToolList/GeoGebra.png"
  1136. alt
  1137. />
  1138. <div style="margin: 5px 0">GeoGebra</div>
  1139. </div>
  1140. <div v-if="tooC == 32">
  1141. <img
  1142. @click="addTools(tooC, toolIndex, taskCount)"
  1143. src="../../../assets/icon/thirdToolList/code.png"
  1144. alt
  1145. />
  1146. <div style="margin: 5px 0">源码编辑</div>
  1147. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1148. style="position: absolute;left: 110px;bottom: 30px;">
  1149. 上传文件
  1150. <input type="file" accept="*" style="display: none"
  1151. @change="beforeUpload1($event, 7, toolIndex)" />
  1152. </div> -->
  1153. </div>
  1154. <div v-if="tooC == 40">
  1155. <img
  1156. @click="addTools(tooC, toolIndex, taskCount)"
  1157. src="../../../assets/icon/secondToolList/eval.png"
  1158. alt
  1159. />
  1160. <div style="margin: 5px 0">个人评价</div>
  1161. </div>
  1162. <div v-if="tooC == 41">
  1163. <img
  1164. @click="addTools(tooC, toolIndex, taskCount)"
  1165. src="../../../assets/icon/thirdToolList/select.png"
  1166. alt
  1167. />
  1168. <div style="margin: 5px 0">选择匹配</div>
  1169. </div>
  1170. <div v-if="tooC == 44">
  1171. <img
  1172. @click="addTools(tooC, toolIndex, taskCount)"
  1173. src="../../../assets/icon/thirdToolList/hanClass.png"
  1174. alt
  1175. />
  1176. <div style="margin: 5px 0">汉字宫</div>
  1177. </div>
  1178. <div v-if="tooC == 47">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../../assets/icon/fourthToolList/conSentences.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">排序</div>
  1185. </div>
  1186. <div v-if="tooC == 48">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../../assets/icon/fourthToolList/table.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">表格</div>
  1193. </div>
  1194. <div v-if="tooC == 52">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../../assets/icon/fourthToolList/text.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">文档</div>
  1201. </div>
  1202. <div v-if="tooC == 49">
  1203. <img
  1204. @click="addTools(tooC, toolIndex, taskCount)"
  1205. src="../../../assets/icon/fourthToolList/group.png"
  1206. alt
  1207. />
  1208. <div style="margin: 5px 0">学生分组</div>
  1209. </div>
  1210. <div v-if="tooC == 57">
  1211. <img
  1212. @click="addTools(tooC, toolIndex, taskCount)"
  1213. src="../../../assets/icon/fourthToolList/cocopi.png"
  1214. alt
  1215. />
  1216. <div style="margin: 5px 0">CocoPi</div>
  1217. </div>
  1218. <div v-if="tooC == 58">
  1219. <img
  1220. @click="addTools(tooC, toolIndex, taskCount)"
  1221. src="../../../assets/icon/fourthToolList/car.png"
  1222. alt
  1223. />
  1224. <div style="margin: 5px 0">模拟驾驶</div>
  1225. </div>
  1226. <div v-if="tooC == 59">
  1227. <img
  1228. @click="addTools(tooC, toolIndex, taskCount)"
  1229. src="../../../assets/icon/fourthToolList/lineSearch.png"
  1230. alt
  1231. />
  1232. <div style="margin: 5px 0">路径搜索</div>
  1233. </div>
  1234. <div v-if="tooC == 60">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../../assets/icon/fourthToolList/deepLearning.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">深度学习</div>
  1241. </div>
  1242. <div v-if="tooC == 61">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../../assets/icon/fourthToolList/allHistory.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">全历史</div>
  1249. </div>
  1250. <div v-if="tooC == 62">
  1251. <img
  1252. @click="addTools(tooC, toolIndex, taskCount)"
  1253. src="../../../assets/icon/fourthToolList/interVideo.png"
  1254. alt
  1255. />
  1256. <div style="margin: 5px 0">交互视频</div>
  1257. </div>
  1258. <div v-if="tooC == 63">
  1259. <img
  1260. @click="addTools(tooC, toolIndex, taskCount)"
  1261. src="../../../assets/icon/fourthToolList/Wood.png"
  1262. alt
  1263. />
  1264. <div style="margin: 5px 0">海龟编程</div>
  1265. </div>
  1266. <div v-if="tooC == 65">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../../assets/icon/firstToolList/pickPeople.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">挑人</div>
  1273. </div>
  1274. <div v-if="tooC == 66">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../../assets/icon/secondToolList/formulaEdi.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">公式编辑</div>
  1281. </div>
  1282. <div v-if="tooC == 67">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../../assets/icon/secondToolList/molStr.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">分子结构</div>
  1289. </div>
  1290. <div v-if="tooC == 68">
  1291. <img
  1292. @click="addTools(tooC, toolIndex, taskCount)"
  1293. src="../../../assets/icon/secondToolList/timeAxis.png"
  1294. alt
  1295. />
  1296. <div style="margin: 5px 0">时间轴</div>
  1297. </div>
  1298. <div v-if="tooC == 69">
  1299. <img
  1300. @click="addTools(tooC, toolIndex, taskCount)"
  1301. src="../../../assets/icon/secondToolList/english.png"
  1302. alt
  1303. />
  1304. <div style="margin: 5px 0">英语写作</div>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1310. <!-- <div class="toolTitle">工具描述</div> -->
  1311. <div style="height:100%;"
  1312. v-html="contentConvent(tool.toolDetail)"
  1313. v-if="toolDetailIndex != toolIndex"
  1314. @click.stop="updateToolDetail(toolIndex, 2)"
  1315. ></div>
  1316. <div v-else @click.stop="" style="height:100%;">
  1317. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1318. </div>
  1319. </div>
  1320. <el-button
  1321. type="primary"
  1322. v-if="tool.tool[0] == 32"
  1323. style="position: absolute; right: 30px; top: 30px"
  1324. @click="addImg($event)"
  1325. >上传作业<input
  1326. type="file"
  1327. accept="*"
  1328. style="display: none"
  1329. @change="beforeUpload1($event, 7, toolIndex)"
  1330. /></el-button>
  1331. <el-button
  1332. type="primary"
  1333. v-if="tool.tool[0] == 15"
  1334. style="position: absolute; right: 30px; top: 30px"
  1335. @click="openWordCloud(toolIndex)"
  1336. >生成词云</el-button
  1337. >
  1338. <el-button
  1339. type="primary"
  1340. v-if="
  1341. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1342. "
  1343. style="position: absolute; right: 30px; top: 30px"
  1344. @click="uploadWorks(toolIndex)"
  1345. >导出作业</el-button
  1346. >
  1347. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1348. position: absolute;
  1349. right: 30px;
  1350. transform: translateY(-130%);
  1351. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1352. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1353. </div>
  1354. <div
  1355. v-if="
  1356. tType &&
  1357. tType == 2 &&
  1358. !sIsOpen &&
  1359. tool.tool.indexOf(16) != -1
  1360. "
  1361. class="worksBox"
  1362. >
  1363. <div
  1364. class="zuoyeYulan"
  1365. v-if="workStudent[toolIndex].length > 0"
  1366. >
  1367. <span class="worksTitle">作业预览</span>
  1368. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1369. </div>
  1370. <div
  1371. class="worksDetailBox"
  1372. v-if="workStudent[toolIndex].length > 0"
  1373. >
  1374. <div
  1375. class="works"
  1376. style="
  1377. width: 200px;
  1378. height: 140px;
  1379. margin: 10px 10px 10px 0;
  1380. box-shadow: 0 0 6px 1px #dfdada;
  1381. "
  1382. v-for="(w, wIndex) in workStudent[toolIndex]"
  1383. :key="wIndex"
  1384. >
  1385. <div class="workImg" v-if="w.type == 0">
  1386. <img
  1387. :src="w.works"
  1388. @click="previewImg(w.works)"
  1389. alt
  1390. />
  1391. <div
  1392. class="answerScore"
  1393. v-if="w.score"
  1394. @click.stop="openScore(w)"
  1395. :class="{
  1396. rightW:
  1397. w.userid == userid || tType == 1 || tType == 4,
  1398. }"
  1399. >
  1400. {{ JSON.parse(w.score).wScore }}分
  1401. </div>
  1402. <div
  1403. class="answerScore"
  1404. @click.stop="openScore(w)"
  1405. v-else-if="courseDetail.userid == userid"
  1406. :class="{
  1407. rightW:
  1408. w.userid == userid || tType == 1 || tType == 4,
  1409. }"
  1410. >
  1411. 评分
  1412. </div>
  1413. <img
  1414. class="deleteImg"
  1415. src="../../../assets/deleteworks.png"
  1416. v-if="
  1417. w.userid == userid || tType == 1 || tType == 4
  1418. "
  1419. @click.stop="deleteWorks(w.wid)"
  1420. alt
  1421. />
  1422. </div>
  1423. <div class="workImg" v-if="w.type == 1">
  1424. <img :src="word" @click="openFile(w.works)" alt />
  1425. <div
  1426. class="answerScore"
  1427. v-if="w.score"
  1428. @click.stop="openScore(w)"
  1429. :class="{
  1430. rightW:
  1431. w.userid == userid || tType == 1 || tType == 4,
  1432. }"
  1433. >
  1434. {{ JSON.parse(w.score).wScore }}分
  1435. </div>
  1436. <div
  1437. class="answerScore"
  1438. @click.stop="openScore(w)"
  1439. v-else-if="courseDetail.userid == userid"
  1440. :class="{
  1441. rightW:
  1442. w.userid == userid || tType == 1 || tType == 4,
  1443. }"
  1444. >
  1445. 评分
  1446. </div>
  1447. <img
  1448. class="deleteImg"
  1449. src="../../../assets/deleteworks.png"
  1450. v-if="
  1451. w.userid == userid || tType == 1 || tType == 4
  1452. "
  1453. @click.stop="deleteWorks(w.wid)"
  1454. alt
  1455. />
  1456. </div>
  1457. <div class="workImg" v-if="w.type == 3">
  1458. <img
  1459. style="cursor: pointer"
  1460. :src="video"
  1461. @click="openVideo(w)"
  1462. alt
  1463. />
  1464. <div
  1465. class="answerScore"
  1466. v-if="w.score"
  1467. @click.stop="openScore(w)"
  1468. :class="{
  1469. rightW:
  1470. w.userid == userid || tType == 1 || tType == 4,
  1471. }"
  1472. >
  1473. {{ JSON.parse(w.score).wScore }}分
  1474. </div>
  1475. <div
  1476. class="answerScore"
  1477. @click.stop="openScore(w)"
  1478. v-else-if="courseDetail.userid == userid"
  1479. :class="{
  1480. rightW:
  1481. w.userid == userid || tType == 1 || tType == 4,
  1482. }"
  1483. >
  1484. 评分
  1485. </div>
  1486. <img
  1487. class="deleteImg"
  1488. src="../../../assets/deleteworks.png"
  1489. v-if="
  1490. w.userid == userid || tType == 1 || tType == 4
  1491. "
  1492. @click.stop="deleteWorks(w.wid)"
  1493. alt
  1494. />
  1495. </div>
  1496. <div class="workImg" v-if="w.type == 12">
  1497. <img
  1498. style="cursor: pointer"
  1499. :src="word2"
  1500. @click="downloadFile(w.works)"
  1501. alt
  1502. />
  1503. <div
  1504. class="answerScore"
  1505. v-if="w.score"
  1506. @click.stop="openScore(w)"
  1507. :class="{
  1508. rightW:
  1509. w.userid == userid || tType == 1 || tType == 4,
  1510. }"
  1511. >
  1512. {{ JSON.parse(w.score).wScore }}分
  1513. </div>
  1514. <div
  1515. class="answerScore"
  1516. @click.stop="openScore(w)"
  1517. v-else-if="courseDetail.userid == userid"
  1518. :class="{
  1519. rightW:
  1520. w.userid == userid || tType == 1 || tType == 4,
  1521. }"
  1522. >
  1523. 评分
  1524. </div>
  1525. <img
  1526. class="deleteImg"
  1527. src="../../../assets/deleteworks.png"
  1528. v-if="
  1529. w.userid == userid || tType == 1 || tType == 4
  1530. "
  1531. @click.stop="deleteWorks(w.wid)"
  1532. alt
  1533. />
  1534. </div>
  1535. <div class="worksName">
  1536. <div>{{ w.sName }}</div>
  1537. </div>
  1538. </div>
  1539. </div>
  1540. </div>
  1541. <div
  1542. v-if="
  1543. tType &&
  1544. tType == 2 &&
  1545. !sIsOpen &&
  1546. tool.tool.indexOf(32) != -1
  1547. "
  1548. class="worksBox"
  1549. >
  1550. <div
  1551. class="zuoyeYulan"
  1552. v-if="workStudent[toolIndex].length > 0"
  1553. >
  1554. <span class="worksTitle">作业预览</span>
  1555. </div>
  1556. <div
  1557. class="worksDetailBox"
  1558. v-if="workStudent[toolIndex].length > 0"
  1559. >
  1560. <div
  1561. class="works"
  1562. style="
  1563. width: 200px;
  1564. height: 140px;
  1565. margin: 10px 10px 10px 0;
  1566. box-shadow: 0 0 6px 1px #dfdada;
  1567. "
  1568. v-for="(w, wIndex) in workStudent[toolIndex]"
  1569. :key="wIndex"
  1570. >
  1571. <div class="workImg">
  1572. <img
  1573. :src="word2"
  1574. @click="downloadFile(w.works)"
  1575. alt
  1576. />
  1577. <div
  1578. class="answerScore"
  1579. v-if="w.score"
  1580. @click.stop="openScore(w)"
  1581. :class="{
  1582. rightW:
  1583. w.userid == userid || tType == 1 || tType == 4,
  1584. }"
  1585. >
  1586. {{ JSON.parse(w.score).wScore }}分
  1587. </div>
  1588. <div
  1589. class="answerScore"
  1590. @click.stop="openScore(w)"
  1591. v-else-if="courseDetail.userid == userid"
  1592. :class="{
  1593. rightW:
  1594. w.userid == userid || tType == 1 || tType == 4,
  1595. }"
  1596. >
  1597. 评分
  1598. </div>
  1599. <img
  1600. class="deleteImg"
  1601. src="../../../assets/deleteworks.png"
  1602. v-if="
  1603. w.userid == userid || tType == 1 || tType == 4
  1604. "
  1605. @click.stop="deleteWorks(w.wid)"
  1606. alt
  1607. />
  1608. </div>
  1609. <div class="worksName">
  1610. <div>{{ w.sName }}</div>
  1611. </div>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. <div
  1616. v-if="
  1617. tType &&
  1618. tType == 2 &&
  1619. !sIsOpen &&
  1620. tool.tool.indexOf(57) != -1
  1621. "
  1622. class="worksBox"
  1623. >
  1624. <div
  1625. class="zuoyeYulan"
  1626. v-if="workStudent[toolIndex].length > 0"
  1627. >
  1628. <span class="worksTitle">作业预览</span>
  1629. </div>
  1630. <div
  1631. class="worksDetailBox"
  1632. v-if="workStudent[toolIndex].length > 0"
  1633. >
  1634. <div
  1635. class="works"
  1636. style="
  1637. width: 200px;
  1638. height: 140px;
  1639. margin: 10px 10px 10px 0;
  1640. box-shadow: 0 0 6px 1px #dfdada;
  1641. "
  1642. v-for="(w, wIndex) in workStudent[toolIndex]"
  1643. :key="wIndex"
  1644. >
  1645. <div class="workImg">
  1646. <img
  1647. :src="word2"
  1648. @click="downloadFile(w.works)"
  1649. v-if="w.type == 12"
  1650. alt
  1651. />
  1652. <img
  1653. :src="word2"
  1654. @click="
  1655. openCocoPi(57, toolIndex, w.userid, w.sName)
  1656. "
  1657. v-else-if="w.type == 15"
  1658. alt
  1659. />
  1660. <div
  1661. class="answerScore"
  1662. v-if="w.score"
  1663. @click.stop="openScore(w)"
  1664. :class="{
  1665. rightW:
  1666. w.userid == userid || tType == 1 || tType == 4,
  1667. }"
  1668. >
  1669. {{ JSON.parse(w.score).wScore }}分
  1670. </div>
  1671. <div
  1672. class="answerScore"
  1673. @click.stop="openScore(w)"
  1674. v-else-if="courseDetail.userid == userid"
  1675. :class="{
  1676. rightW:
  1677. w.userid == userid || tType == 1 || tType == 4,
  1678. }"
  1679. >
  1680. 评分
  1681. </div>
  1682. <img
  1683. class="deleteImg"
  1684. src="../../../assets/deleteworks.png"
  1685. v-if="
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. "
  1688. @click.stop="deleteWorks(w.wid)"
  1689. alt
  1690. />
  1691. </div>
  1692. <div class="worksName">
  1693. <div>{{ w.sName }}</div>
  1694. </div>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. <div
  1699. v-if="
  1700. tType &&
  1701. tType == 2 &&
  1702. !sIsOpen &&
  1703. tool.tool.indexOf(4) != -1
  1704. "
  1705. class="worksBox"
  1706. >
  1707. <div
  1708. class="zuoyeYulan"
  1709. v-if="workStudent[toolIndex].length > 0"
  1710. >
  1711. <span class="worksTitle">作业预览</span>
  1712. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1713. </div>
  1714. <div
  1715. class="worksDetailBox"
  1716. v-if="workStudent[toolIndex].length > 0"
  1717. >
  1718. <div
  1719. class="isWorksName2"
  1720. v-for="(w, wIndex) in workStudent[toolIndex]"
  1721. :key="wIndex"
  1722. @click="
  1723. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1724. "
  1725. >
  1726. {{ w.sName }}
  1727. <img
  1728. class="deleteImg deleteImg2"
  1729. src="../../../assets/deleteworks.png"
  1730. v-if="w.userid == userid || tType == 1 || tType == 4"
  1731. @click.stop="deleteWorks(w.wid)"
  1732. alt
  1733. />
  1734. </div>
  1735. <!-- <div
  1736. class="works"
  1737. style="
  1738. width: 200px;
  1739. height: 140px;
  1740. border-radius: 10px;
  1741. box-shadow: 0 0 6px 1px #dfdada;
  1742. overflow: hidden;
  1743. "
  1744. v-for="(w, wIndex) in workStudent[toolIndex]"
  1745. :key="wIndex"
  1746. >
  1747. <div class="workImg">
  1748. <img
  1749. src="../../../assets/icon/works/noImg.png"
  1750. @click="
  1751. openTools(
  1752. 4,
  1753. toolIndex,
  1754. taskCount,
  1755. w.works,
  1756. w.sName
  1757. )
  1758. "
  1759. alt
  1760. />
  1761. </div>
  1762. <div class="worksName">
  1763. <div>{{ w.sName }}</div>
  1764. <div>{{ w.time }}</div>
  1765. </div>
  1766. </div> -->
  1767. </div>
  1768. </div>
  1769. <div
  1770. v-if="
  1771. tType &&
  1772. tType == 2 &&
  1773. !sIsOpen &&
  1774. tool.tool.indexOf(45) != -1
  1775. "
  1776. class="worksBox"
  1777. >
  1778. <div
  1779. class="zuoyeYulan"
  1780. v-if="workStudent[toolIndex].length > 0"
  1781. >
  1782. <span class="worksTitle">作业预览</span>
  1783. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1784. </div>
  1785. <div
  1786. class="worksDetailBox"
  1787. v-if="workStudent[toolIndex].length > 0"
  1788. >
  1789. <div
  1790. class="isWorksName2"
  1791. v-for="(w, wIndex) in workStudent[toolIndex]"
  1792. :key="wIndex"
  1793. @click="
  1794. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1795. "
  1796. >
  1797. {{ w.sName }}
  1798. <img
  1799. class="deleteImg deleteImg2"
  1800. src="../../../assets/deleteworks.png"
  1801. v-if="w.userid == userid || tType == 1 || tType == 4"
  1802. @click.stop="deleteWorks(w.wid)"
  1803. alt
  1804. />
  1805. </div>
  1806. </div>
  1807. </div>
  1808. <div
  1809. v-if="
  1810. tType &&
  1811. tType == 2 &&
  1812. !sIsOpen &&
  1813. tool.tool.indexOf(69) != -1
  1814. "
  1815. class="worksBox"
  1816. >
  1817. <div
  1818. class="zuoyeYulan"
  1819. v-if="workStudent[toolIndex].length > 0"
  1820. >
  1821. <span class="worksTitle">作业预览</span>
  1822. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1823. </div>
  1824. <div
  1825. class="worksDetailBox"
  1826. v-if="workStudent[toolIndex].length > 0"
  1827. >
  1828. <div
  1829. class="isWorksName2"
  1830. v-for="(w, wIndex) in workStudent[toolIndex]"
  1831. :key="wIndex"
  1832. @click="
  1833. openTools(69, toolIndex, taskCount, w.works, w.sName)
  1834. "
  1835. >
  1836. {{ w.sName }}
  1837. <img
  1838. class="deleteImg deleteImg2"
  1839. src="../../../assets/deleteworks.png"
  1840. v-if="w.userid == userid || tType == 1 || tType == 4"
  1841. @click.stop="deleteWorks(w.wid)"
  1842. alt
  1843. />
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div
  1848. v-if="
  1849. tType &&
  1850. tType == 2 &&
  1851. !sIsOpen &&
  1852. tool.tool.indexOf(15) != -1
  1853. "
  1854. class="worksBox"
  1855. >
  1856. <div
  1857. class="zuoyeYulan"
  1858. v-if="workStudent[toolIndex].length > 0"
  1859. >
  1860. <span class="worksTitle">作业预览</span>
  1861. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1862. </div>
  1863. <div
  1864. class="worksDetailBox"
  1865. v-if="workStudent[toolIndex].length > 0"
  1866. >
  1867. <div
  1868. class="works"
  1869. v-for="(w, wIndex) in workStudent[toolIndex]"
  1870. :key="wIndex"
  1871. >
  1872. <div class="workImg">
  1873. <!-- <img
  1874. src="../../../assets/icon/works/noImg.png"
  1875. @click="openTools(15, toolIndex, taskCount, w.works)"
  1876. alt=""
  1877. />-->
  1878. <div class="answerBg">
  1879. <!-- <div>{{ w.sName }}</div> -->
  1880. <el-tooltip
  1881. class="item"
  1882. effect="light"
  1883. :content="JSON.parse(w.works)[0].answer"
  1884. placement="top"
  1885. >
  1886. <div class="answerContent">
  1887. {{ JSON.parse(w.works)[0].answer }}
  1888. </div>
  1889. </el-tooltip>
  1890. <div
  1891. class="answerScore"
  1892. v-if="w.score"
  1893. @click.stop="openScore(w)"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid ||
  1897. tType == 1 ||
  1898. tType == 4,
  1899. }"
  1900. >
  1901. {{ JSON.parse(w.score).wScore }}分
  1902. </div>
  1903. <div
  1904. class="answerScore"
  1905. @click.stop="openScore(w)"
  1906. v-else-if="courseDetail.userid == userid"
  1907. :class="{
  1908. rightW:
  1909. w.userid == userid ||
  1910. tType == 1 ||
  1911. tType == 4,
  1912. }"
  1913. >
  1914. 评分
  1915. </div>
  1916. <img
  1917. class="deleteImg"
  1918. src="../../../assets/deleteworks.png"
  1919. v-if="
  1920. w.userid == userid || tType == 1 || tType == 4
  1921. "
  1922. @click.stop="deleteWorks(w.wid)"
  1923. alt
  1924. />
  1925. </div>
  1926. <div class="comment">
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. </div>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <div
  1936. v-if="
  1937. tType &&
  1938. tType == 2 &&
  1939. !sIsOpen &&
  1940. tool.tool.indexOf(1) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="workStudent[toolIndex].length > 0"
  1947. >
  1948. <span class="worksTitle">作业预览</span>
  1949. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1950. </div>
  1951. <div
  1952. class="worksDetailBox"
  1953. v-if="workStudent[toolIndex].length > 0"
  1954. >
  1955. <div
  1956. class="works"
  1957. style="
  1958. width: 200px;
  1959. height: 140px;
  1960. margin: 10px 10px 10px 0;
  1961. box-shadow: 0 0 6px 1px #dfdada;
  1962. "
  1963. v-for="(w, wIndex) in workStudent[toolIndex]"
  1964. :key="wIndex"
  1965. >
  1966. <div class="workImg">
  1967. <img
  1968. :src="w.works"
  1969. @click="previewImg(w.works)"
  1970. alt
  1971. />
  1972. <div
  1973. class="answerScore"
  1974. v-if="w.score"
  1975. @click.stop="openScore(w)"
  1976. :class="{
  1977. rightW:
  1978. w.userid == userid || tType == 1 || tType == 4,
  1979. }"
  1980. >
  1981. {{ JSON.parse(w.score).wScore }}分
  1982. </div>
  1983. <div
  1984. class="answerScore"
  1985. @click.stop="openScore(w)"
  1986. v-else-if="courseDetail.userid == userid"
  1987. :class="{
  1988. rightW:
  1989. w.userid == userid || tType == 1 || tType == 4,
  1990. }"
  1991. >
  1992. 评分
  1993. </div>
  1994. <img
  1995. class="deleteImg"
  1996. src="../../../assets/deleteworks.png"
  1997. v-if="
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. "
  2000. @click.stop="deleteWorks(w.wid)"
  2001. alt
  2002. />
  2003. </div>
  2004. <div class="worksName">
  2005. <div>{{ w.sName }}</div>
  2006. </div>
  2007. </div>
  2008. </div>
  2009. </div>
  2010. <div
  2011. v-if="
  2012. tType &&
  2013. tType == 2 &&
  2014. !sIsOpen &&
  2015. tool.tool.indexOf(3) != -1
  2016. "
  2017. class="worksBox"
  2018. >
  2019. <div
  2020. class="zuoyeYulan"
  2021. v-if="workStudent[toolIndex].length > 0"
  2022. >
  2023. <span class="worksTitle">作业预览</span>
  2024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2025. </div>
  2026. <div
  2027. class="worksDetailBox"
  2028. v-if="workStudent[toolIndex].length > 0"
  2029. >
  2030. <div
  2031. class="works"
  2032. style="
  2033. width: 200px;
  2034. height: 140px;
  2035. margin: 10px 10px 10px 0;
  2036. box-shadow: 0 0 6px 1px #dfdada;
  2037. "
  2038. v-for="(w, wIndex) in workStudent[toolIndex]"
  2039. :key="wIndex"
  2040. >
  2041. <div class="workImg">
  2042. <img
  2043. :src="w.works"
  2044. @click="previewImg(w.works)"
  2045. alt
  2046. />
  2047. <div
  2048. class="answerScore"
  2049. v-if="w.score"
  2050. @click.stop="openScore(w)"
  2051. :class="{
  2052. rightW:
  2053. w.userid == userid || tType == 1 || tType == 4,
  2054. }"
  2055. >
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div
  2059. class="answerScore"
  2060. @click.stop="openScore(w)"
  2061. v-else-if="courseDetail.userid == userid"
  2062. :class="{
  2063. rightW:
  2064. w.userid == userid || tType == 1 || 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="worksName">
  2080. <div>{{ w.sName }}</div>
  2081. </div>
  2082. </div>
  2083. </div>
  2084. </div>
  2085. <div
  2086. v-if="
  2087. tType &&
  2088. tType == 2 &&
  2089. !sIsOpen &&
  2090. tool.tool.indexOf(6) != -1
  2091. "
  2092. class="worksBox"
  2093. >
  2094. <div
  2095. class="zuoyeYulan"
  2096. v-if="workStudent[toolIndex].length > 0"
  2097. >
  2098. <span class="worksTitle">作业预览</span>
  2099. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2100. </div>
  2101. <div
  2102. class="worksDetailBox"
  2103. v-if="workStudent[toolIndex].length > 0"
  2104. >
  2105. <div
  2106. class="works"
  2107. style="
  2108. width: 200px;
  2109. height: 140px;
  2110. margin: 10px 10px 10px 0;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in workStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <div class="workImg">
  2117. <img
  2118. :src="w.works"
  2119. @click="previewImg(w.works)"
  2120. alt
  2121. />
  2122. <div
  2123. class="answerScore"
  2124. v-if="w.score"
  2125. @click.stop="openScore(w)"
  2126. :class="{
  2127. rightW:
  2128. w.userid == userid || tType == 1 || tType == 4,
  2129. }"
  2130. >
  2131. {{ JSON.parse(w.score).wScore }}分
  2132. </div>
  2133. <div
  2134. class="answerScore"
  2135. @click.stop="openScore(w)"
  2136. v-else-if="courseDetail.userid == userid"
  2137. :class="{
  2138. rightW:
  2139. w.userid == userid || tType == 1 || tType == 4,
  2140. }"
  2141. >
  2142. 评分
  2143. </div>
  2144. <img
  2145. class="deleteImg"
  2146. src="../../../assets/deleteworks.png"
  2147. v-if="
  2148. w.userid == userid || tType == 1 || tType == 4
  2149. "
  2150. @click.stop="deleteWorks(w.wid)"
  2151. alt
  2152. />
  2153. </div>
  2154. <div class="worksName">
  2155. <div>{{ w.sName }}</div>
  2156. </div>
  2157. </div>
  2158. </div>
  2159. </div>
  2160. <div
  2161. v-if="
  2162. tType &&
  2163. tType == 2 &&
  2164. !sIsOpen &&
  2165. tool.tool.indexOf(7) != -1
  2166. "
  2167. class="worksBox"
  2168. >
  2169. <div
  2170. class="zuoyeYulan"
  2171. v-if="workStudent[toolIndex].length > 0"
  2172. >
  2173. <span class="worksTitle">作业预览</span>
  2174. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2175. </div>
  2176. <div
  2177. class="worksDetailBox"
  2178. v-if="workStudent[toolIndex].length > 0"
  2179. >
  2180. <div
  2181. class="works"
  2182. style="
  2183. width: 200px;
  2184. height: 140px;
  2185. margin: 10px 10px 10px 0;
  2186. box-shadow: 0 0 6px 1px #dfdada;
  2187. "
  2188. v-for="(w, wIndex) in workStudent[toolIndex]"
  2189. :key="wIndex"
  2190. >
  2191. <div class="workImg">
  2192. <img
  2193. :src="w.works"
  2194. @click="previewImg(w.works)"
  2195. alt
  2196. />
  2197. <div
  2198. class="answerScore"
  2199. v-if="w.score"
  2200. @click.stop="openScore(w)"
  2201. :class="{
  2202. rightW:
  2203. w.userid == userid || tType == 1 || tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid || tType == 1 || tType == 4,
  2215. }"
  2216. >
  2217. 评分
  2218. </div>
  2219. <img
  2220. class="deleteImg"
  2221. src="../../../assets/deleteworks.png"
  2222. v-if="
  2223. w.userid == userid || tType == 1 || tType == 4
  2224. "
  2225. @click.stop="deleteWorks(w.wid)"
  2226. alt
  2227. />
  2228. </div>
  2229. <div class="worksName">
  2230. <div>{{ w.sName }}</div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. <div
  2236. v-if="
  2237. tType &&
  2238. tType == 2 &&
  2239. !sIsOpen &&
  2240. tool.tool.indexOf(26) != -1
  2241. "
  2242. class="worksBox"
  2243. >
  2244. <div
  2245. class="zuoyeYulan"
  2246. v-if="workStudent[toolIndex].length > 0"
  2247. >
  2248. <span class="worksTitle">作业预览</span>
  2249. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2250. </div>
  2251. <div
  2252. class="worksDetailBox"
  2253. v-if="workStudent[toolIndex].length > 0"
  2254. >
  2255. <div
  2256. class="works"
  2257. style="
  2258. width: 200px;
  2259. height: 140px;
  2260. margin: 10px 10px 10px 0;
  2261. box-shadow: 0 0 6px 1px #dfdada;
  2262. "
  2263. v-for="(w, wIndex) in workStudent[toolIndex]"
  2264. :key="wIndex"
  2265. >
  2266. <div class="workImg">
  2267. <img
  2268. :src="w.works"
  2269. @click="previewImg(w.works)"
  2270. alt
  2271. />
  2272. <img
  2273. class="deleteImg"
  2274. src="../../../assets/deleteworks.png"
  2275. v-if="
  2276. w.userid == userid || tType == 1 || tType == 4
  2277. "
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <div class="worksName">
  2283. <div>{{ w.sName }}</div>
  2284. </div>
  2285. </div>
  2286. </div>
  2287. </div>
  2288. <div
  2289. v-if="
  2290. tType &&
  2291. ((tType == 2 && sIsOpen == true) ||
  2292. tType == 1 ||
  2293. tType == 4) &&
  2294. tool.tool.indexOf(16) != -1
  2295. "
  2296. class="worksBox"
  2297. >
  2298. <div
  2299. class="zuoyeYulan"
  2300. v-if="
  2301. (worksStudent.length &&
  2302. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2303. "
  2304. >
  2305. <div class="worksTop">
  2306. <div>作业预览</div>
  2307. <div
  2308. class="corOpen"
  2309. @click="contract(toolIndex)"
  2310. v-if="
  2311. (isCloseList[toolIndex].isCloseBoolean) &&
  2312. isCloseList[toolIndex].isClose == 0
  2313. "
  2314. >
  2315. 折叠
  2316. </div>
  2317. <div
  2318. class="corOpen"
  2319. @click="contract(toolIndex)"
  2320. v-if="isCloseList[toolIndex].isClose == 1"
  2321. >
  2322. 展开
  2323. </div>
  2324. </div>
  2325. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2326. </div>
  2327. <div
  2328. class="group_workBox"
  2329. v-for="(g, gindex) in courseGroup.group"
  2330. :key="gindex"
  2331. >
  2332. <div class="group_box">
  2333. <div class="group_title">
  2334. <el-tooltip
  2335. class="item"
  2336. effect="light"
  2337. :content="g.name"
  2338. placement="top"
  2339. >
  2340. <div class="group_name">{{ g.name }}</div>
  2341. </el-tooltip>
  2342. </div>
  2343. <div
  2344. class="group_work"
  2345. v-if="
  2346. g.works &&
  2347. g.works.length &&
  2348. g.works[toolIndex].length
  2349. "
  2350. >
  2351. <div
  2352. class="works"
  2353. style="
  2354. width: 200px;
  2355. height: 140px;
  2356. margin: 10px 10px 10px 0;
  2357. border-radius: 15px;
  2358. box-shadow: 0 0 6px 1px #dfdada;
  2359. "
  2360. v-for="(w, wIndex) in g.works[toolIndex]"
  2361. :key="wIndex"
  2362. :class="w.type == 1 ? 'isTypeOne' : ''"
  2363. >
  2364. <div class="workImg" v-if="w.type == 0">
  2365. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2366. <img
  2367. :src="w.works"
  2368. @click="previewImg(w.works)"
  2369. alt
  2370. />
  2371. <div
  2372. class="answerScore"
  2373. v-if="w.score"
  2374. @click.stop="openScore(w)"
  2375. :class="{
  2376. rightW:
  2377. w.userid == userid ||
  2378. tType == 1 ||
  2379. tType == 4 ||
  2380. w.ateacher == userid,
  2381. }"
  2382. >
  2383. {{ JSON.parse(w.score).wScore }}分
  2384. </div>
  2385. <div
  2386. class="answerScore"
  2387. @click.stop="openScore(w)"
  2388. v-else-if="courseDetail.userid == userid"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid ||
  2392. tType == 1 ||
  2393. tType == 4 ||
  2394. w.ateacher == userid,
  2395. }"
  2396. >
  2397. 评分
  2398. </div>
  2399. <img
  2400. class="deleteImg"
  2401. src="../../../assets/deleteworks.png"
  2402. v-if="
  2403. w.userid == userid || tType == 1 || tType == 4
  2404. "
  2405. @click.stop="deleteWorks(w.wid)"
  2406. alt
  2407. />
  2408. </div>
  2409. <div class="workImg" v-if="w.type == 1">
  2410. <img :src="word" @click="openFile(w.works)" alt />
  2411. <!-- @click="openFile(w.works)" -->
  2412. <div
  2413. class="answerScore"
  2414. v-if="w.score"
  2415. @click.stop="openScore(w)"
  2416. :class="{
  2417. rightW:
  2418. w.userid == userid ||
  2419. tType == 1 ||
  2420. tType == 4 ||
  2421. w.ateacher == userid,
  2422. }"
  2423. >
  2424. {{ JSON.parse(w.score).wScore }}分
  2425. </div>
  2426. <div
  2427. class="answerScore"
  2428. @click.stop="openScore(w)"
  2429. v-else-if="courseDetail.userid == userid"
  2430. :class="{
  2431. rightW:
  2432. w.userid == userid ||
  2433. tType == 1 ||
  2434. tType == 4 ||
  2435. w.ateacher == userid,
  2436. }"
  2437. >
  2438. 评分
  2439. </div>
  2440. <img
  2441. class="deleteImg"
  2442. src="../../../assets/deleteworks.png"
  2443. v-if="
  2444. w.userid == userid || tType == 1 || tType == 4
  2445. "
  2446. @click.stop="deleteWorks(w.wid)"
  2447. alt
  2448. />
  2449. </div>
  2450. <div class="workImg" v-if="w.type == 3">
  2451. <img
  2452. style="cursor: pointer"
  2453. :src="video"
  2454. @click="openVideo(w)"
  2455. alt
  2456. />
  2457. <!-- @click="openVideo(w.works)" -->
  2458. <div
  2459. class="answerScore"
  2460. v-if="w.score"
  2461. @click.stop="openScore(w)"
  2462. :class="{
  2463. rightW:
  2464. w.userid == userid ||
  2465. tType == 1 ||
  2466. tType == 4 ||
  2467. w.ateacher == userid,
  2468. }"
  2469. >
  2470. {{ JSON.parse(w.score).wScore }}分
  2471. </div>
  2472. <div
  2473. class="answerScore"
  2474. @click.stop="openScore(w)"
  2475. v-else-if="courseDetail.userid == userid"
  2476. :class="{
  2477. rightW:
  2478. w.userid == userid ||
  2479. tType == 1 ||
  2480. tType == 4 ||
  2481. w.ateacher == userid,
  2482. }"
  2483. >
  2484. 评分
  2485. </div>
  2486. <img
  2487. class="deleteImg"
  2488. src="../../../assets/deleteworks.png"
  2489. v-if="
  2490. w.userid == userid || tType == 1 || tType == 4
  2491. "
  2492. @click.stop="deleteWorks(w.wid)"
  2493. alt
  2494. />
  2495. </div>
  2496. <div class="workImg" v-if="w.type == 12">
  2497. <img
  2498. style="cursor: pointer"
  2499. :src="word2"
  2500. @click="downloadFile(w.works)"
  2501. alt
  2502. />
  2503. <!-- @click="openVideo(w.works)" -->
  2504. <div
  2505. class="answerScore"
  2506. v-if="w.score"
  2507. @click.stop="openScore(w)"
  2508. :class="{
  2509. rightW:
  2510. w.userid == userid ||
  2511. tType == 1 ||
  2512. tType == 4 ||
  2513. w.ateacher == userid,
  2514. }"
  2515. >
  2516. {{ JSON.parse(w.score).wScore }}分
  2517. </div>
  2518. <div
  2519. class="answerScore"
  2520. @click.stop="openScore(w)"
  2521. v-else-if="courseDetail.userid == userid"
  2522. :class="{
  2523. rightW:
  2524. w.userid == userid ||
  2525. tType == 1 ||
  2526. tType == 4 ||
  2527. w.ateacher == userid,
  2528. }"
  2529. >
  2530. 评分
  2531. </div>
  2532. <img
  2533. class="deleteImg"
  2534. src="../../../assets/deleteworks.png"
  2535. v-if="
  2536. w.userid == userid || tType == 1 || tType == 4
  2537. "
  2538. @click.stop="deleteWorks(w.wid)"
  2539. alt
  2540. />
  2541. </div>
  2542. <div class="comment" style="min-width: 200px">
  2543. <div class="worksName">
  2544. <div>{{ w.sName }}</div>
  2545. </div>
  2546. <div class="commentList">
  2547. <div class="commentList">
  2548. <div
  2549. class="commentImg"
  2550. @click="
  2551. isLikes(w.wid, userid, 1, null, w.isLikes)
  2552. "
  2553. >
  2554. <img
  2555. :src="w.isLikes == true ? likes : noLikes"
  2556. alt=""
  2557. />
  2558. </div>
  2559. <div>{{ w.likesCount }}</div>
  2560. </div>
  2561. <div
  2562. class="commentList"
  2563. style="margin-right: 15px"
  2564. >
  2565. <div
  2566. class="commentImg"
  2567. @click="
  2568. commentOther(
  2569. w,
  2570. toolIndex,
  2571. wIndex,
  2572. null,
  2573. g.id
  2574. )
  2575. "
  2576. >
  2577. <img
  2578. src="../../../assets/icon/comment/comment.png"
  2579. alt=""
  2580. />
  2581. </div>
  2582. <div>{{ w.commentCount }}</div>
  2583. </div>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="group_work" v-else>暂无提交作业</div>
  2589. </div>
  2590. </div>
  2591. <div
  2592. :id="'tool-' + toolIndex"
  2593. :style="{
  2594. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2595. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2596. }"
  2597. class="worksDetailBox"
  2598. v-if="
  2599. worksStudent.length &&
  2600. worksStudent[toolIndex].length > 0
  2601. "
  2602. >
  2603. <div
  2604. class="works"
  2605. style="
  2606. width: 200px;
  2607. height: 140px;
  2608. margin: 10px 10px 10px 0;
  2609. border-radius: 15px;
  2610. box-shadow: 0 0 6px 1px #dfdada;
  2611. "
  2612. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2613. :key="wIndex"
  2614. :class="w.type == 1 ? 'isTypeOne' : ''"
  2615. >
  2616. <div class="workImg" v-if="w.type == 0">
  2617. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2618. <img
  2619. :src="w.works"
  2620. @click="previewImg(w.works)"
  2621. alt
  2622. />
  2623. <div
  2624. class="answerScore"
  2625. v-if="w.score"
  2626. @click.stop="openScore(w)"
  2627. :class="{
  2628. rightW:
  2629. w.userid == userid ||
  2630. tType == 1 ||
  2631. tType == 4 ||
  2632. w.ateacher == userid,
  2633. }"
  2634. >
  2635. {{ JSON.parse(w.score).wScore }}分
  2636. </div>
  2637. <div
  2638. class="answerScore"
  2639. @click.stop="openScore(w)"
  2640. v-else-if="courseDetail.userid == userid"
  2641. :class="{
  2642. rightW:
  2643. w.userid == userid ||
  2644. tType == 1 ||
  2645. tType == 4 ||
  2646. w.ateacher == userid,
  2647. }"
  2648. >
  2649. 评分
  2650. </div>
  2651. <img
  2652. class="deleteImg"
  2653. src="../../../assets/deleteworks.png"
  2654. v-if="
  2655. w.userid == userid || tType == 1 || tType == 4
  2656. "
  2657. @click.stop="deleteWorks(w.wid)"
  2658. alt
  2659. />
  2660. </div>
  2661. <div class="workImg" v-if="w.type == 1">
  2662. <img :src="word" @click="openFile(w.works)" alt />
  2663. <!-- @click="openFile(w.works)" -->
  2664. <div
  2665. class="answerScore"
  2666. v-if="w.score"
  2667. @click.stop="openScore(w)"
  2668. :class="{
  2669. rightW:
  2670. w.userid == userid ||
  2671. tType == 1 ||
  2672. tType == 4 ||
  2673. w.ateacher == userid,
  2674. }"
  2675. >
  2676. {{ JSON.parse(w.score).wScore }}分
  2677. </div>
  2678. <div
  2679. class="answerScore"
  2680. @click.stop="openScore(w)"
  2681. v-else-if="courseDetail.userid == userid"
  2682. :class="{
  2683. rightW:
  2684. w.userid == userid ||
  2685. tType == 1 ||
  2686. tType == 4 ||
  2687. w.ateacher == userid,
  2688. }"
  2689. >
  2690. 评分
  2691. </div>
  2692. <img
  2693. class="deleteImg"
  2694. src="../../../assets/deleteworks.png"
  2695. v-if="
  2696. w.userid == userid || tType == 1 || tType == 4
  2697. "
  2698. @click.stop="deleteWorks(w.wid)"
  2699. alt
  2700. />
  2701. </div>
  2702. <div class="workImg" v-if="w.type == 3">
  2703. <img
  2704. style="cursor: pointer"
  2705. :src="video"
  2706. @click="openVideo(w)"
  2707. alt
  2708. />
  2709. <!-- @click="openVideo(w.works)" -->
  2710. <div
  2711. class="answerScore"
  2712. v-if="w.score"
  2713. @click.stop="openScore(w)"
  2714. :class="{
  2715. rightW:
  2716. w.userid == userid ||
  2717. tType == 1 ||
  2718. tType == 4 ||
  2719. w.ateacher == userid,
  2720. }"
  2721. >
  2722. {{ JSON.parse(w.score).wScore }}分
  2723. </div>
  2724. <div
  2725. class="answerScore"
  2726. @click.stop="openScore(w)"
  2727. v-else-if="courseDetail.userid == userid"
  2728. :class="{
  2729. rightW:
  2730. w.userid == userid ||
  2731. tType == 1 ||
  2732. tType == 4 ||
  2733. w.ateacher == userid,
  2734. }"
  2735. >
  2736. 评分
  2737. </div>
  2738. <img
  2739. class="deleteImg"
  2740. src="../../../assets/deleteworks.png"
  2741. v-if="
  2742. w.userid == userid || tType == 1 || tType == 4
  2743. "
  2744. @click.stop="deleteWorks(w.wid)"
  2745. alt
  2746. />
  2747. </div>
  2748. <div class="workImg" v-if="w.type == 12">
  2749. <img
  2750. style="cursor: pointer"
  2751. :src="word2"
  2752. @click="downloadFile(w.works)"
  2753. alt
  2754. />
  2755. <!-- @click="openVideo(w.works)" -->
  2756. <div
  2757. class="answerScore"
  2758. v-if="w.score"
  2759. @click.stop="openScore(w)"
  2760. :class="{
  2761. rightW:
  2762. w.userid == userid ||
  2763. tType == 1 ||
  2764. tType == 4 ||
  2765. w.ateacher == userid,
  2766. }"
  2767. >
  2768. {{ JSON.parse(w.score).wScore }}分
  2769. </div>
  2770. <div
  2771. class="answerScore"
  2772. @click.stop="openScore(w)"
  2773. v-else-if="courseDetail.userid == userid"
  2774. :class="{
  2775. rightW:
  2776. w.userid == userid ||
  2777. tType == 1 ||
  2778. tType == 4 ||
  2779. w.ateacher == userid,
  2780. }"
  2781. >
  2782. 评分
  2783. </div>
  2784. <img
  2785. class="deleteImg"
  2786. src="../../../assets/deleteworks.png"
  2787. v-if="
  2788. w.userid == userid || tType == 1 || tType == 4
  2789. "
  2790. @click.stop="deleteWorks(w.wid)"
  2791. alt
  2792. />
  2793. </div>
  2794. <div class="comment" style="min-width: 200px">
  2795. <div class="worksName">
  2796. <div>{{ w.sName }}</div>
  2797. </div>
  2798. <div class="commentList">
  2799. <div class="commentList">
  2800. <div
  2801. class="commentImg"
  2802. @click="
  2803. isLikes(w.wid, userid, 1, null, w.isLikes)
  2804. "
  2805. >
  2806. <img
  2807. :src="w.isLikes == true ? likes : noLikes"
  2808. alt=""
  2809. />
  2810. </div>
  2811. <div>{{ w.likesCount }}</div>
  2812. </div>
  2813. <div class="commentList" style="margin-right: 15px">
  2814. <div
  2815. class="commentImg"
  2816. @click="commentOther(w, toolIndex, wIndex)"
  2817. >
  2818. <img
  2819. src="../../../assets/icon/comment/comment.png"
  2820. alt=""
  2821. />
  2822. </div>
  2823. <div>{{ w.commentCount }}</div>
  2824. </div>
  2825. </div>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2830. 未提交
  2831. </div>
  2832. <div
  2833. class="noWorksS"
  2834. v-if="noWorksS && noWorksS[toolIndex].length"
  2835. >
  2836. <div
  2837. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2838. :key="sIndex"
  2839. class="noWorksName"
  2840. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  2841. >
  2842. {{ s.student }}
  2843. </div>
  2844. </div>
  2845. </div>
  2846. <div
  2847. v-if="
  2848. tType &&
  2849. ((tType == 2 && sIsOpen == true) ||
  2850. tType == 1 ||
  2851. tType == 4) &&
  2852. tool.tool.indexOf(32) != -1
  2853. "
  2854. class="worksBox"
  2855. >
  2856. <div
  2857. class="zuoyeYulan"
  2858. v-if="
  2859. worksStudent.length &&
  2860. worksStudent[toolIndex].length > 0
  2861. "
  2862. >
  2863. <div class="worksTop">
  2864. <div>作业预览</div>
  2865. <div
  2866. class="corOpen"
  2867. @click="contract(toolIndex)"
  2868. v-if="
  2869. (isCloseList[toolIndex].isCloseBoolean) &&
  2870. isCloseList[toolIndex].isClose == 0
  2871. "
  2872. >
  2873. 折叠
  2874. </div>
  2875. <div
  2876. class="corOpen"
  2877. @click="contract(toolIndex)"
  2878. v-if="isCloseList[toolIndex].isClose == 1"
  2879. >
  2880. 展开
  2881. </div>
  2882. </div>
  2883. </div>
  2884. <div
  2885. :id="'tool-' + toolIndex"
  2886. :style="{
  2887. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  2888. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  2889. }"
  2890. class="worksDetailBox"
  2891. v-if="
  2892. worksStudent.length &&
  2893. worksStudent[toolIndex].length > 0
  2894. "
  2895. >
  2896. <div
  2897. class="works"
  2898. style="
  2899. width: 200px;
  2900. height: 140px;
  2901. margin: 10px 10px 10px 0;
  2902. border-radius: 15px;
  2903. box-shadow: 0 0 6px 1px #dfdada;
  2904. "
  2905. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2906. :key="wIndex"
  2907. :class="w.type == 1 ? 'isTypeOne' : ''"
  2908. >
  2909. <div class="workImg">
  2910. <img
  2911. :src="word2"
  2912. @click="downloadFile(w.works)"
  2913. alt
  2914. />
  2915. <div
  2916. class="answerScore"
  2917. v-if="w.score"
  2918. @click.stop="openScore(w)"
  2919. :class="{
  2920. rightW:
  2921. w.userid == userid ||
  2922. tType == 1 ||
  2923. tType == 4 ||
  2924. w.ateacher == userid,
  2925. }"
  2926. >
  2927. {{ JSON.parse(w.score).wScore }}分
  2928. </div>
  2929. <div
  2930. class="answerScore"
  2931. @click.stop="openScore(w)"
  2932. v-else-if="courseDetail.userid == userid"
  2933. :class="{
  2934. rightW:
  2935. w.userid == userid ||
  2936. tType == 1 ||
  2937. tType == 4 ||
  2938. w.ateacher == userid,
  2939. }"
  2940. >
  2941. 评分
  2942. </div>
  2943. <img
  2944. class="deleteImg"
  2945. src="../../../assets/deleteworks.png"
  2946. v-if="
  2947. w.userid == userid || tType == 1 || tType == 4
  2948. "
  2949. @click.stop="deleteWorks(w.wid)"
  2950. alt
  2951. />
  2952. </div>
  2953. <div class="comment" style="min-width: 200px">
  2954. <div class="worksName">
  2955. <div>{{ w.sName }}</div>
  2956. </div>
  2957. <div class="commentList">
  2958. <div class="commentList">
  2959. <div
  2960. class="commentImg"
  2961. @click="
  2962. isLikes(w.wid, userid, 1, null, w.isLikes)
  2963. "
  2964. >
  2965. <img
  2966. :src="w.isLikes == true ? likes : noLikes"
  2967. alt=""
  2968. />
  2969. </div>
  2970. <div>{{ w.likesCount }}</div>
  2971. </div>
  2972. <div class="commentList" style="margin-right: 15px">
  2973. <div
  2974. class="commentImg"
  2975. @click="commentOther(w, toolIndex, wIndex)"
  2976. >
  2977. <img
  2978. src="../../../assets/icon/comment/comment.png"
  2979. alt=""
  2980. />
  2981. </div>
  2982. <div>{{ w.commentCount }}</div>
  2983. </div>
  2984. </div>
  2985. </div>
  2986. </div>
  2987. </div>
  2988. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2989. 未提交
  2990. </div>
  2991. <div
  2992. class="noWorksS"
  2993. v-if="noWorksS && noWorksS[toolIndex].length"
  2994. >
  2995. <div
  2996. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2997. :key="sIndex"
  2998. class="noWorksName"
  2999. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3000. >
  3001. {{ s.student }}
  3002. </div>
  3003. </div>
  3004. </div>
  3005. <div
  3006. v-if="
  3007. tType &&
  3008. ((tType == 2 && sIsOpen == true) ||
  3009. tType == 1 ||
  3010. tType == 4) &&
  3011. tool.tool.indexOf(57) != -1
  3012. "
  3013. class="worksBox"
  3014. >
  3015. <div
  3016. class="zuoyeYulan"
  3017. v-if="
  3018. worksStudent.length &&
  3019. worksStudent[toolIndex].length > 0
  3020. "
  3021. >
  3022. <div class="worksTop">
  3023. <div>作业预览</div>
  3024. <div
  3025. class="corOpen"
  3026. @click="contract(toolIndex)"
  3027. v-if="
  3028. (isCloseList[toolIndex].isCloseBoolean) &&
  3029. isCloseList[toolIndex].isClose == 0
  3030. "
  3031. >
  3032. 折叠
  3033. </div>
  3034. <div
  3035. class="corOpen"
  3036. @click="contract(toolIndex)"
  3037. v-if="isCloseList[toolIndex].isClose == 1"
  3038. >
  3039. 展开
  3040. </div>
  3041. </div>
  3042. </div>
  3043. <div
  3044. :id="'tool-' + toolIndex"
  3045. :style="{
  3046. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3047. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3048. }"
  3049. class="worksDetailBox"
  3050. v-if="
  3051. worksStudent.length &&
  3052. worksStudent[toolIndex].length > 0
  3053. "
  3054. >
  3055. <div
  3056. class="works"
  3057. style="
  3058. width: 200px;
  3059. height: 140px;
  3060. margin: 10px 10px 10px 0;
  3061. border-radius: 15px;
  3062. box-shadow: 0 0 6px 1px #dfdada;
  3063. "
  3064. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3065. :key="wIndex"
  3066. :class="w.type == 1 ? 'isTypeOne' : ''"
  3067. >
  3068. <div class="workImg">
  3069. <img
  3070. :src="word2"
  3071. @click="downloadFile(w.works)"
  3072. v-if="w.type == 12"
  3073. alt
  3074. />
  3075. <img
  3076. :src="word2"
  3077. @click="
  3078. openCocoPi(57, toolIndex, w.userid, w.sName)
  3079. "
  3080. v-else-if="w.type == 15"
  3081. alt
  3082. />
  3083. <div
  3084. class="answerScore"
  3085. v-if="w.score"
  3086. @click.stop="openScore(w)"
  3087. :class="{
  3088. rightW:
  3089. w.userid == userid ||
  3090. tType == 1 ||
  3091. tType == 4 ||
  3092. w.ateacher == userid,
  3093. }"
  3094. >
  3095. {{ JSON.parse(w.score).wScore }}分
  3096. </div>
  3097. <div
  3098. class="answerScore"
  3099. @click.stop="openScore(w)"
  3100. v-else-if="courseDetail.userid == userid"
  3101. :class="{
  3102. rightW:
  3103. w.userid == userid ||
  3104. tType == 1 ||
  3105. tType == 4 ||
  3106. w.ateacher == userid,
  3107. }"
  3108. >
  3109. 评分
  3110. </div>
  3111. <img
  3112. class="deleteImg"
  3113. src="../../../assets/deleteworks.png"
  3114. v-if="
  3115. w.userid == userid || tType == 1 || tType == 4
  3116. "
  3117. @click.stop="deleteWorks(w.wid)"
  3118. alt
  3119. />
  3120. </div>
  3121. <div class="comment" style="min-width: 200px">
  3122. <div class="worksName">
  3123. <div>{{ w.sName }}</div>
  3124. </div>
  3125. <div class="commentList">
  3126. <div class="commentList">
  3127. <div
  3128. class="commentImg"
  3129. @click="
  3130. isLikes(w.wid, userid, 1, null, w.isLikes)
  3131. "
  3132. >
  3133. <img
  3134. :src="w.isLikes == true ? likes : noLikes"
  3135. alt=""
  3136. />
  3137. </div>
  3138. <div>{{ w.likesCount }}</div>
  3139. </div>
  3140. <div class="commentList" style="margin-right: 15px">
  3141. <div
  3142. class="commentImg"
  3143. @click="commentOther(w, toolIndex, wIndex)"
  3144. >
  3145. <img
  3146. src="../../../assets/icon/comment/comment.png"
  3147. alt=""
  3148. />
  3149. </div>
  3150. <div>{{ w.commentCount }}</div>
  3151. </div>
  3152. </div>
  3153. </div>
  3154. </div>
  3155. </div>
  3156. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3157. 未提交
  3158. </div>
  3159. <div
  3160. class="noWorksS"
  3161. v-if="noWorksS && noWorksS[toolIndex].length"
  3162. >
  3163. <div
  3164. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3165. :key="sIndex"
  3166. class="noWorksName"
  3167. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3168. >
  3169. {{ s.student }}
  3170. </div>
  3171. </div>
  3172. </div>
  3173. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3174. <div
  3175. class="zuoyeYulan"
  3176. v-if="
  3177. worksStudent.length &&
  3178. worksStudent[toolIndex].length > 0
  3179. "
  3180. >
  3181. <span class="worksTitle">作业预览</span>
  3182. <div
  3183. class="corOpen"
  3184. @click="contract(toolIndex)"
  3185. v-if="
  3186. (isCloseList[toolIndex].isCloseBoolean) &&
  3187. isCloseList[toolIndex].isClose == 0
  3188. "
  3189. >
  3190. 折叠
  3191. </div>
  3192. <div
  3193. class="corOpen"
  3194. @click="contract(toolIndex)"
  3195. v-if="isCloseList[toolIndex].isClose == 1"
  3196. >
  3197. 展开
  3198. </div>
  3199. </div>
  3200. <div
  3201. :id="'tool-' + toolIndex"
  3202. :style="{
  3203. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3204. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3205. }"
  3206. class="worksDetailBox"
  3207. v-if="
  3208. worksStudent.length &&
  3209. worksStudent[toolIndex].length > 0
  3210. "
  3211. >
  3212. <div
  3213. class="works"
  3214. style="
  3215. width: 200px;
  3216. height: 140px;
  3217. margin: 10px 10px 10px 0;
  3218. border-radius: 15px;
  3219. box-shadow: 0 0 6px 1px #dfdada;
  3220. "
  3221. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3222. :key="wIndex"
  3223. :class="w.type == 1 ? 'isTypeOne' : ''"
  3224. >
  3225. <div class="workImg" v-if="w.type == 0">
  3226. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3227. <img
  3228. :src="w.works"
  3229. @click="previewImg(w.works)"
  3230. alt
  3231. />
  3232. <div
  3233. class="answerScore"
  3234. v-if="w.score"
  3235. @click.stop="openScore(w)"
  3236. :class="{
  3237. rightW:
  3238. w.userid == userid ||
  3239. tType == 1 ||
  3240. tType == 4 ||
  3241. w.ateacher == userid,
  3242. }"
  3243. >
  3244. {{ JSON.parse(w.score).wScore }}分
  3245. </div>
  3246. <div
  3247. class="answerScore"
  3248. @click.stop="openScore(w)"
  3249. v-else-if="courseDetail.userid == userid"
  3250. :class="{
  3251. rightW:
  3252. w.userid == userid ||
  3253. tType == 1 ||
  3254. tType == 4 ||
  3255. w.ateacher == userid,
  3256. }"
  3257. >
  3258. 评分
  3259. </div>
  3260. <img
  3261. class="deleteImg"
  3262. src="../../../assets/deleteworks.png"
  3263. v-if="
  3264. w.userid == userid || tType == 1 || tType == 4
  3265. "
  3266. @click.stop="deleteWorks(w.wid)"
  3267. alt
  3268. />
  3269. </div>
  3270. <div
  3271. class="workImg"
  3272. style="cursor: pointer"
  3273. v-if="w.type == 1"
  3274. >
  3275. <img :src="word" @click="openFile(w.works)" alt />
  3276. <!-- @click="openFile(w.works)" -->
  3277. <div
  3278. class="answerScore"
  3279. v-if="w.score"
  3280. @click.stop="openScore(w)"
  3281. :class="{
  3282. rightW:
  3283. w.userid == userid ||
  3284. tType == 1 ||
  3285. tType == 4 ||
  3286. w.ateacher == userid,
  3287. }"
  3288. >
  3289. {{ JSON.parse(w.score).wScore }}分
  3290. </div>
  3291. <div
  3292. class="answerScore"
  3293. @click.stop="openScore(w)"
  3294. v-else-if="courseDetail.userid == userid"
  3295. :class="{
  3296. rightW:
  3297. w.userid == userid ||
  3298. tType == 1 ||
  3299. tType == 4 ||
  3300. w.ateacher == userid,
  3301. }"
  3302. >
  3303. 评分
  3304. </div>
  3305. <img
  3306. class="deleteImg"
  3307. src="../../../assets/deleteworks.png"
  3308. v-if="
  3309. w.userid == userid || tType == 1 || tType == 4
  3310. "
  3311. @click.stop="deleteWorks(w.wid)"
  3312. alt
  3313. />
  3314. </div>
  3315. <div class="workImg" v-if="w.type == 3">
  3316. <img
  3317. style="cursor: pointer"
  3318. :src="video"
  3319. @click="openVideo(w)"
  3320. alt
  3321. />
  3322. <!-- @click="openVideo(w.works)" -->
  3323. <div
  3324. class="answerScore"
  3325. v-if="w.score"
  3326. @click.stop="openScore(w)"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid,
  3333. }"
  3334. >
  3335. {{ JSON.parse(w.score).wScore }}分
  3336. </div>
  3337. <div
  3338. class="answerScore"
  3339. @click.stop="openScore(w)"
  3340. v-else-if="courseDetail.userid == userid"
  3341. :class="{
  3342. rightW:
  3343. w.userid == userid ||
  3344. tType == 1 ||
  3345. tType == 4 ||
  3346. w.ateacher == userid,
  3347. }"
  3348. >
  3349. 评分
  3350. </div>
  3351. <img
  3352. class="deleteImg"
  3353. src="../../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="comment" style="min-width: 200px">
  3362. <div class="worksName">
  3363. <div
  3364. style="cursor: pointer"
  3365. @click="
  3366. openSname(w.sName, w.wid, toolIndex, w.userid)
  3367. "
  3368. >
  3369. {{ w.sName }}
  3370. </div>
  3371. </div>
  3372. <div class="commentList">
  3373. <div class="commentList">
  3374. <div
  3375. class="commentImg"
  3376. @click="
  3377. isLikes(w.wid, userid, 1, null, w.isLikes)
  3378. "
  3379. >
  3380. <img
  3381. :src="w.isLikes == true ? likes : noLikes"
  3382. alt=""
  3383. />
  3384. </div>
  3385. <div>{{ w.likesCount }}</div>
  3386. </div>
  3387. <div class="commentList" style="margin-right: 15px">
  3388. <div
  3389. class="commentImg"
  3390. @click="commentOther(w, toolIndex, wIndex)"
  3391. >
  3392. <img
  3393. src="../../../assets/icon/comment/comment.png"
  3394. alt=""
  3395. />
  3396. </div>
  3397. <div>{{ w.commentCount }}</div>
  3398. </div>
  3399. </div>
  3400. </div>
  3401. </div>
  3402. </div>
  3403. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3404. 未提交
  3405. </div>
  3406. <div
  3407. class="noWorksS"
  3408. v-if="noWorksS && noWorksS[toolIndex].length"
  3409. >
  3410. <div
  3411. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3412. :key="sIndex"
  3413. class="noWorksName"
  3414. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  3415. >
  3416. {{ s.student }}
  3417. </div>
  3418. </div>
  3419. </div>
  3420. <div
  3421. v-if="
  3422. tType &&
  3423. ((tType == 2 && sIsOpen == true) ||
  3424. tType == 1 ||
  3425. tType == 4) &&
  3426. tool.tool.indexOf(4) != -1 &&
  3427. (tool.askJson[0].answer ||
  3428. tool.askJson[0].answer === 0) &&
  3429. checkJson[toolIndex].length
  3430. "
  3431. class="xuan_right_box"
  3432. >
  3433. <div
  3434. class="tool_right_box"
  3435. v-for="(item, index) in tool.askJson"
  3436. :key="index"
  3437. >
  3438. <div style="width: calc(100% - 30px);">
  3439. <el-tooltip
  3440. effect="light"
  3441. :content="index + 1 + '、' + item.askstitle"
  3442. placement="top"
  3443. popper-class="text_tooltip"
  3444. >
  3445. <div
  3446. style="
  3447. width: calc(100% - 130px);
  3448. display: block;
  3449. white-space: nowrap;
  3450. overflow: hidden;
  3451. text-overflow: ellipsis;
  3452. word-break: break-word;
  3453. cursor: pointer;
  3454. "
  3455. >
  3456. {{ index + 1 + "、" + item.askstitle }}
  3457. </div>
  3458. </el-tooltip>
  3459. </div>
  3460. <div class="right_box_xuan">
  3461. <span>正确率</span>
  3462. <span>{{
  3463. (checkJson[toolIndex][index].right
  3464. ? checkJson[toolIndex][index].right
  3465. : 0) + "%"
  3466. }}</span>
  3467. </div>
  3468. </div>
  3469. </div>
  3470. <div
  3471. class="xuan_right_box"
  3472. style="background: unset; padding: 0 10px"
  3473. v-if="
  3474. tType &&
  3475. ((tType == 2 && sIsOpen == true) ||
  3476. tType == 1 ||
  3477. tType == 4) &&
  3478. tool.tool.indexOf(4) != -1
  3479. "
  3480. >
  3481. <AskStatic
  3482. v-if="
  3483. worksStudent.length &&
  3484. worksStudent[toolIndex].length > 0
  3485. "
  3486. :askJSON="tool"
  3487. :checkJson="checkJson[toolIndex]"
  3488. ></AskStatic>
  3489. </div>
  3490. <div
  3491. v-if="
  3492. tType &&
  3493. ((tType == 2 && sIsOpen == true) ||
  3494. tType == 1 ||
  3495. tType == 4) &&
  3496. tool.tool.indexOf(4) != -1
  3497. "
  3498. class="worksBox"
  3499. >
  3500. <div
  3501. class="zuoyeYulan"
  3502. v-if="
  3503. worksStudent.length &&
  3504. worksStudent[toolIndex].length > 0
  3505. "
  3506. >
  3507. <div class="worksTop">
  3508. <div>作业预览</div>
  3509. <div
  3510. class="corOpen"
  3511. @click="contract(toolIndex)"
  3512. v-if="
  3513. (isCloseList[toolIndex].isCloseBoolean) &&
  3514. isCloseList[toolIndex].isClose == 0
  3515. "
  3516. >
  3517. 折叠
  3518. </div>
  3519. <div
  3520. class="corOpen"
  3521. @click="contract(toolIndex)"
  3522. v-if="isCloseList[toolIndex].isClose == 1"
  3523. >
  3524. 展开
  3525. </div>
  3526. </div>
  3527. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3528. </div>
  3529. <div>
  3530. <div
  3531. :id="'tool-' + toolIndex"
  3532. :style="{
  3533. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3534. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3535. }"
  3536. class="worksDetailBox"
  3537. v-if="
  3538. worksStudent.length &&
  3539. worksStudent[toolIndex].length > 0
  3540. "
  3541. >
  3542. <div
  3543. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3544. :key="wIndex"
  3545. class="isWorksName2"
  3546. @click="
  3547. openTools(4, toolIndex, taskCount, w.works, w.sName)
  3548. "
  3549. >
  3550. {{ w.sName }}
  3551. <img
  3552. class="deleteImg deleteImg2"
  3553. src="../../../assets/deleteworks.png"
  3554. v-if="
  3555. w.userid == userid || tType == 1 || tType == 4
  3556. "
  3557. @click.stop="deleteWorks(w.wid)"
  3558. alt
  3559. />
  3560. </div>
  3561. <!-- <div class="works" style="
  3562. width: 200px;
  3563. height: 140px;
  3564. border-radius: 10px;
  3565. box-shadow: 0 0 6px 1px #dfdada;
  3566. overflow: hidden;
  3567. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  3568. <div class="workImg">
  3569. <img src="../../../assets/icon/works/noImg.png" @click="
  3570. openTools(
  3571. 4,
  3572. toolIndex,
  3573. taskCount,
  3574. w.works,
  3575. w.sName
  3576. )
  3577. " alt />
  3578. </div>
  3579. <div class="worksName">
  3580. <div>{{ w.sName }}</div>
  3581. <div>{{ w.time }}</div>
  3582. </div>
  3583. </div> -->
  3584. </div>
  3585. </div>
  3586. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3587. 未提交
  3588. </div>
  3589. <div
  3590. class="noWorksS"
  3591. v-if="noWorksS && noWorksS[toolIndex].length"
  3592. >
  3593. <div
  3594. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3595. :key="sIndex"
  3596. class="noWorksName"
  3597. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  3598. >
  3599. {{ s.student }}
  3600. </div>
  3601. </div>
  3602. </div>
  3603. <div
  3604. v-if="
  3605. tType &&
  3606. ((tType == 2 && sIsOpen == true) ||
  3607. tType == 1 ||
  3608. tType == 4) &&
  3609. tool.tool.indexOf(45) != -1 &&
  3610. (tool.testJson.testJson[0].answer ||
  3611. tool.testJson.testJson[0].answer === 0) &&
  3612. checkJson[toolIndex].length
  3613. "
  3614. class="xuan_right_box"
  3615. >
  3616. <div
  3617. class="tool_right_box"
  3618. v-for="(item, index) in tool.testJson.testJson"
  3619. :key="index"
  3620. >
  3621. <div class="right_box_xuan" style="margin-right: 10px">
  3622. <span>正确率</span>
  3623. <span>{{
  3624. (checkJson[toolIndex][index].right
  3625. ? checkJson[toolIndex][index].right
  3626. : 0) + "%"
  3627. }}</span>
  3628. </div>
  3629. <div style="width: calc(100% - 30px);">
  3630. <el-tooltip
  3631. effect="light"
  3632. :content="index + 1 + '、' + item.teststitle"
  3633. placement="top"
  3634. popper-class="text_tooltip"
  3635. >
  3636. <div
  3637. style="
  3638. width: calc(100% - 130px);
  3639. display: block;
  3640. white-space: nowrap;
  3641. overflow: hidden;
  3642. text-overflow: ellipsis;
  3643. word-break: break-word;
  3644. cursor: pointer;
  3645. "
  3646. >
  3647. {{ index + 1 + "、" + item.teststitle }}
  3648. </div>
  3649. </el-tooltip>
  3650. </div>
  3651. </div>
  3652. </div>
  3653. <div
  3654. class="xuan_right_box"
  3655. style="background: unset; padding: 0 10px; width: 91.5%"
  3656. v-if="
  3657. tType &&
  3658. ((tType == 2 && sIsOpen == true) ||
  3659. tType == 1 ||
  3660. tType == 4) &&
  3661. tool.tool.indexOf(45) != -1
  3662. "
  3663. >
  3664. <AskStatic2
  3665. v-if="
  3666. worksStudent.length &&
  3667. worksStudent[toolIndex].length > 0
  3668. "
  3669. :askJSON="tool"
  3670. :checkJson="checkJson[toolIndex]"
  3671. ></AskStatic2>
  3672. </div>
  3673. <div
  3674. v-if="
  3675. tType &&
  3676. ((tType == 2 && sIsOpen == true) ||
  3677. tType == 1 ||
  3678. tType == 4) &&
  3679. tool.tool.indexOf(45) != -1
  3680. "
  3681. class="worksBox"
  3682. >
  3683. <div
  3684. class="zuoyeYulan"
  3685. v-if="
  3686. worksStudent.length &&
  3687. worksStudent[toolIndex].length > 0
  3688. "
  3689. >
  3690. <div class="worksTop">
  3691. <div>作业预览</div>
  3692. <div
  3693. class="corOpen"
  3694. @click="contract(toolIndex)"
  3695. v-if="
  3696. (isCloseList[toolIndex].isCloseBoolean) &&
  3697. isCloseList[toolIndex].isClose == 0
  3698. "
  3699. >
  3700. 折叠
  3701. </div>
  3702. <div
  3703. class="corOpen"
  3704. @click="contract(toolIndex)"
  3705. v-if="isCloseList[toolIndex].isClose == 1"
  3706. >
  3707. 展开
  3708. </div>
  3709. </div>
  3710. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3711. </div>
  3712. <div>
  3713. <div
  3714. :id="'tool-' + toolIndex"
  3715. :style="{
  3716. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3717. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3718. }"
  3719. class="worksDetailBox"
  3720. v-if="
  3721. worksStudent.length &&
  3722. worksStudent[toolIndex].length > 0
  3723. "
  3724. >
  3725. <div
  3726. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3727. :key="wIndex"
  3728. class="isWorksName2"
  3729. @click="
  3730. openTools(
  3731. 45,
  3732. toolIndex,
  3733. taskCount,
  3734. w.works,
  3735. w.sName
  3736. )
  3737. "
  3738. >
  3739. {{ w.sName }}
  3740. <img
  3741. class="deleteImg deleteImg2"
  3742. src="../../../assets/deleteworks.png"
  3743. v-if="
  3744. w.userid == userid || tType == 1 || tType == 4
  3745. "
  3746. @click.stop="deleteWorks(w.wid)"
  3747. alt
  3748. />
  3749. </div>
  3750. </div>
  3751. </div>
  3752. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3753. 未提交
  3754. </div>
  3755. <div
  3756. class="noWorksS"
  3757. v-if="noWorksS && noWorksS[toolIndex].length"
  3758. >
  3759. <div
  3760. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3761. :key="sIndex"
  3762. class="noWorksName"
  3763. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  3764. >
  3765. {{ s.student }}
  3766. </div>
  3767. </div>
  3768. </div>
  3769. <div
  3770. v-if="
  3771. tType &&
  3772. ((tType == 2 && sIsOpen == true) ||
  3773. tType == 1 ||
  3774. tType == 4) &&
  3775. tool.tool.indexOf(69) != -1
  3776. "
  3777. class="worksBox"
  3778. >
  3779. <div
  3780. class="zuoyeYulan"
  3781. v-if="
  3782. worksStudent.length &&
  3783. worksStudent[toolIndex].length > 0
  3784. "
  3785. >
  3786. <div class="worksTop">
  3787. <div>作业预览</div>
  3788. <div
  3789. class="corOpen"
  3790. @click="contract(toolIndex)"
  3791. v-if="
  3792. (isCloseList[toolIndex].isCloseBoolean) &&
  3793. isCloseList[toolIndex].isClose == 0
  3794. "
  3795. >
  3796. 折叠
  3797. </div>
  3798. <div
  3799. class="corOpen"
  3800. @click="contract(toolIndex)"
  3801. v-if="isCloseList[toolIndex].isClose == 1"
  3802. >
  3803. 展开
  3804. </div>
  3805. </div>
  3806. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3807. </div>
  3808. <div>
  3809. <div
  3810. :id="'tool-' + toolIndex"
  3811. :style="{
  3812. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3813. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3814. }"
  3815. class="worksDetailBox"
  3816. v-if="
  3817. worksStudent.length &&
  3818. worksStudent[toolIndex].length > 0
  3819. "
  3820. >
  3821. <div
  3822. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3823. :key="wIndex"
  3824. class="isWorksName2"
  3825. style="width: 160px;height: 65px;line-height: 65px;"
  3826. @click="
  3827. openTools(
  3828. 69,
  3829. toolIndex,
  3830. taskCount,
  3831. w.works,
  3832. w.sName,
  3833. w.wid
  3834. )
  3835. "
  3836. >
  3837. {{ w.sName }}
  3838. <img
  3839. class="deleteImg1"
  3840. src="../../../assets/evaEnglish.png"
  3841. @click.stop="openEnglishEva(w.wid,toolIndex)"
  3842. alt
  3843. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  3844. />
  3845. <img
  3846. class="deleteImg deleteImg2"
  3847. src="../../../assets/deleteworks.png"
  3848. v-if="
  3849. w.userid == userid || tType == 1 || tType == 4
  3850. "
  3851. @click.stop="deleteWorks(w.wid)"
  3852. alt
  3853. />
  3854. </div>
  3855. </div>
  3856. </div>
  3857. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3858. 未提交
  3859. </div>
  3860. <div
  3861. class="noWorksS"
  3862. v-if="noWorksS && noWorksS[toolIndex].length"
  3863. >
  3864. <div
  3865. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3866. :key="sIndex"
  3867. class="noWorksName"
  3868. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  3869. >
  3870. {{ s.student }}
  3871. </div>
  3872. </div>
  3873. </div>
  3874. <div
  3875. v-if="
  3876. tType &&
  3877. ((tType == 2 && sIsOpen == true) ||
  3878. tType == 1 ||
  3879. tType == 4) &&
  3880. tool.tool.indexOf(15) != -1
  3881. "
  3882. class="worksBox"
  3883. >
  3884. <div
  3885. class="zuoyeYulan"
  3886. v-if="
  3887. (worksStudent.length &&
  3888. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  3889. "
  3890. >
  3891. <div class="worksTop">
  3892. <div>作业预览</div>
  3893. <div
  3894. class="corOpen"
  3895. @click="contract(toolIndex)"
  3896. v-if="
  3897. (isCloseList[toolIndex].isCloseBoolean) &&
  3898. isCloseList[toolIndex].isClose == 0
  3899. "
  3900. >
  3901. 折叠
  3902. </div>
  3903. <div
  3904. class="corOpen"
  3905. @click="contract(toolIndex)"
  3906. v-if="isCloseList[toolIndex].isClose == 1"
  3907. >
  3908. 展开
  3909. </div>
  3910. </div>
  3911. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3912. </div>
  3913. <div
  3914. class="group_workBox"
  3915. v-for="(g, gindex) in courseGroup.group"
  3916. :key="gindex"
  3917. >
  3918. <div class="group_box">
  3919. <div class="group_title">
  3920. <el-tooltip
  3921. class="item"
  3922. effect="light"
  3923. :content="g.name"
  3924. placement="top"
  3925. >
  3926. <div class="group_name">{{ g.name }}</div>
  3927. </el-tooltip>
  3928. </div>
  3929. <div
  3930. class="group_work"
  3931. v-if="
  3932. g.works &&
  3933. g.works.length &&
  3934. g.works[toolIndex].length
  3935. "
  3936. >
  3937. <div
  3938. class="works"
  3939. v-for="(w, wIndex) in g.works[toolIndex]"
  3940. :key="wIndex"
  3941. >
  3942. <div
  3943. class="workImg"
  3944. style="
  3945. border-radius: 15px;
  3946. box-shadow: 0px 0px 5px 5px #eee;
  3947. "
  3948. >
  3949. <div
  3950. class="answerBg"
  3951. style="border-radius: 15px 15px 0 0"
  3952. @click="
  3953. commentOther(w, toolIndex, wIndex, null, g.id)
  3954. "
  3955. >
  3956. <div class="answerContent">
  3957. {{ JSON.parse(w.works)[0].answer }}
  3958. </div>
  3959. <div
  3960. class="answerScore"
  3961. v-if="w.score"
  3962. @click.stop="openScore(w)"
  3963. :class="{
  3964. rightW:
  3965. w.userid == userid ||
  3966. tType == 1 ||
  3967. tType == 4,
  3968. }"
  3969. >
  3970. {{ JSON.parse(w.score).wScore }}分
  3971. </div>
  3972. <div
  3973. class="answerScore"
  3974. @click.stop="openScore(w)"
  3975. v-else-if="courseDetail.userid == userid"
  3976. :class="{
  3977. rightW:
  3978. w.userid == userid ||
  3979. tType == 1 ||
  3980. tType == 4,
  3981. }"
  3982. >
  3983. 评分
  3984. </div>
  3985. <img
  3986. class="deleteImg"
  3987. src="../../../assets/deleteworks.png"
  3988. v-if="
  3989. w.userid == userid ||
  3990. tType == 1 ||
  3991. tType == 4
  3992. "
  3993. @click.stop="deleteWorks(w.wid)"
  3994. alt
  3995. />
  3996. </div>
  3997. <div class="comment">
  3998. <div class="worksName">
  3999. <div>{{ w.sName }}</div>
  4000. </div>
  4001. <div class="commentList">
  4002. <div
  4003. class="commentImg"
  4004. @click="
  4005. isLikes(w.wid, userid, 1, null, w.isLikes)
  4006. "
  4007. >
  4008. <img
  4009. :src="w.isLikes == true ? likes : noLikes"
  4010. alt=""
  4011. />
  4012. </div>
  4013. <div>{{ w.likesCount }}</div>
  4014. </div>
  4015. <div
  4016. class="commentList"
  4017. style="margin-right: 15px"
  4018. >
  4019. <div
  4020. class="commentImg"
  4021. @click="
  4022. commentOther(
  4023. w,
  4024. toolIndex,
  4025. wIndex,
  4026. null,
  4027. g.id
  4028. )
  4029. "
  4030. >
  4031. <img
  4032. src="../../../assets/icon/comment/comment.png"
  4033. alt=""
  4034. />
  4035. </div>
  4036. <div>{{ w.commentCount }}</div>
  4037. </div>
  4038. </div>
  4039. </div>
  4040. </div>
  4041. </div>
  4042. <div class="group_work" v-else>暂无提交作业</div>
  4043. </div>
  4044. </div>
  4045. <div
  4046. :id="'tool-' + toolIndex"
  4047. :style="{
  4048. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4049. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4050. }"
  4051. class="worksDetailBox"
  4052. v-if="
  4053. worksStudent.length &&
  4054. worksStudent[toolIndex].length > 0
  4055. "
  4056. >
  4057. <div
  4058. class="works"
  4059. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4060. :key="wIndex"
  4061. >
  4062. <div
  4063. class="workImg"
  4064. style="
  4065. border-radius: 15px;
  4066. box-shadow: 0px 0px 5px 5px #eee;
  4067. "
  4068. >
  4069. <!-- <img
  4070. src="../../../assets/icon/works/noImg.png"
  4071. @click="openTools(15, toolIndex, taskCount, w.works)"
  4072. alt=""
  4073. />-->
  4074. <div
  4075. class="answerBg"
  4076. style="border-radius: 15px 15px 0 0"
  4077. @click="commentOther(w, toolIndex, wIndex)"
  4078. >
  4079. <!-- <div>{{ w.sName }}</div> -->
  4080. <div class="answerContent">
  4081. {{ JSON.parse(w.works)[0].answer }}
  4082. </div>
  4083. <div
  4084. class="answerScore"
  4085. v-if="w.score"
  4086. @click.stop="openScore(w)"
  4087. :class="{
  4088. rightW:
  4089. w.userid == userid ||
  4090. tType == 1 ||
  4091. tType == 4,
  4092. }"
  4093. >
  4094. {{ JSON.parse(w.score).wScore }}分
  4095. </div>
  4096. <div
  4097. class="answerScore"
  4098. @click.stop="openScore(w)"
  4099. v-else-if="courseDetail.userid == userid"
  4100. :class="{
  4101. rightW:
  4102. w.userid == userid ||
  4103. tType == 1 ||
  4104. tType == 4,
  4105. }"
  4106. >
  4107. 评分
  4108. </div>
  4109. <img
  4110. class="deleteImg"
  4111. src="../../../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. <div class="comment">
  4120. <div class="worksName">
  4121. <div>{{ w.sName }}</div>
  4122. </div>
  4123. <div class="commentList">
  4124. <div
  4125. class="commentImg"
  4126. @click="
  4127. isLikes(w.wid, userid, 1, null, w.isLikes)
  4128. "
  4129. >
  4130. <img
  4131. :src="w.isLikes == true ? likes : noLikes"
  4132. alt=""
  4133. />
  4134. </div>
  4135. <div>{{ w.likesCount }}</div>
  4136. </div>
  4137. <div class="commentList" style="margin-right: 15px">
  4138. <div
  4139. class="commentImg"
  4140. @click="commentOther(w, toolIndex, wIndex)"
  4141. >
  4142. <img
  4143. src="../../../assets/icon/comment/comment.png"
  4144. alt=""
  4145. />
  4146. </div>
  4147. <div>{{ w.commentCount }}</div>
  4148. </div>
  4149. </div>
  4150. </div>
  4151. </div>
  4152. </div>
  4153. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4154. 未提交
  4155. </div>
  4156. <div
  4157. class="noWorksS"
  4158. v-if="noWorksS && noWorksS[toolIndex].length"
  4159. >
  4160. <div
  4161. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4162. :key="sIndex"
  4163. class="noWorksName"
  4164. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  4165. >
  4166. {{ s.student }}
  4167. </div>
  4168. </div>
  4169. </div>
  4170. <div
  4171. v-if="
  4172. tType &&
  4173. ((tType == 2 && sIsOpen == true) ||
  4174. tType == 1 ||
  4175. tType == 4) &&
  4176. tool.tool.indexOf(1) != -1
  4177. "
  4178. class="worksBox"
  4179. >
  4180. <div
  4181. class="zuoyeYulan"
  4182. v-if="
  4183. (worksStudent.length &&
  4184. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4185. "
  4186. >
  4187. <div class="worksTop">
  4188. <div>作业预览</div>
  4189. <div
  4190. class="corOpen"
  4191. @click="contract(toolIndex)"
  4192. v-if="
  4193. (isCloseList[toolIndex].isCloseBoolean) &&
  4194. isCloseList[toolIndex].isClose == 0
  4195. "
  4196. >
  4197. 折叠
  4198. </div>
  4199. <div
  4200. class="corOpen"
  4201. @click="contract(toolIndex)"
  4202. v-if="isCloseList[toolIndex].isClose == 1"
  4203. >
  4204. 展开
  4205. </div>
  4206. </div>
  4207. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4208. </div>
  4209. <div
  4210. class="group_workBox"
  4211. v-for="(g, gindex) in courseGroup.group"
  4212. :key="gindex"
  4213. >
  4214. <div class="group_box">
  4215. <div class="group_title">
  4216. <el-tooltip
  4217. class="item"
  4218. effect="light"
  4219. :content="g.name"
  4220. placement="top"
  4221. >
  4222. <div class="group_name">{{ g.name }}</div>
  4223. </el-tooltip>
  4224. </div>
  4225. <div
  4226. class="group_work"
  4227. v-if="
  4228. g.works &&
  4229. g.works.length &&
  4230. g.works[toolIndex].length
  4231. "
  4232. >
  4233. <div
  4234. class="works"
  4235. style="
  4236. width: 200px;
  4237. height: 140px;
  4238. margin: 10px 10px 10px 0;
  4239. border-radius: 15px;
  4240. box-shadow: 0 0 6px 1px #dfdada;
  4241. "
  4242. v-for="(w, wIndex) in g.works[toolIndex]"
  4243. :key="wIndex"
  4244. :class="w.type == 1 ? 'isTypeOne' : ''"
  4245. >
  4246. <div class="workImg">
  4247. <img
  4248. :src="w.works"
  4249. @click="previewImg(w.works)"
  4250. alt
  4251. />
  4252. <div
  4253. class="answerScore"
  4254. v-if="w.score"
  4255. @click.stop="openScore(w)"
  4256. :class="{
  4257. rightW:
  4258. w.userid == userid ||
  4259. tType == 1 ||
  4260. tType == 4,
  4261. }"
  4262. >
  4263. {{ JSON.parse(w.score).wScore }}分
  4264. </div>
  4265. <div
  4266. class="answerScore"
  4267. @click.stop="openScore(w)"
  4268. v-else-if="courseDetail.userid == userid"
  4269. :class="{
  4270. rightW:
  4271. w.userid == userid ||
  4272. tType == 1 ||
  4273. tType == 4,
  4274. }"
  4275. >
  4276. 评分
  4277. </div>
  4278. <img
  4279. class="deleteImg"
  4280. src="../../../assets/deleteworks.png"
  4281. v-if="
  4282. w.userid == userid || tType == 1 || tType == 4
  4283. "
  4284. @click.stop="deleteWorks(w.wid)"
  4285. alt
  4286. />
  4287. </div>
  4288. <div class="comment" style="min-width: 200px">
  4289. <div class="worksName">
  4290. <div>{{ w.sName }}</div>
  4291. </div>
  4292. <div class="commentList">
  4293. <div class="commentList">
  4294. <div
  4295. class="commentImg"
  4296. @click="
  4297. isLikes(w.wid, userid, 1, null, w.isLikes)
  4298. "
  4299. >
  4300. <img
  4301. :src="w.isLikes == true ? likes : noLikes"
  4302. alt=""
  4303. />
  4304. </div>
  4305. <div>{{ w.likesCount }}</div>
  4306. </div>
  4307. <div
  4308. class="commentList"
  4309. style="margin-right: 15px"
  4310. >
  4311. <div
  4312. class="commentImg"
  4313. @click="
  4314. commentOther(
  4315. w,
  4316. toolIndex,
  4317. wIndex,
  4318. null,
  4319. g.id
  4320. )
  4321. "
  4322. >
  4323. <img
  4324. src="../../../assets/icon/comment/comment.png"
  4325. alt=""
  4326. />
  4327. </div>
  4328. <div>{{ w.commentCount }}</div>
  4329. </div>
  4330. </div>
  4331. </div>
  4332. </div>
  4333. </div>
  4334. <div class="group_work" v-else>暂无提交作业</div>
  4335. </div>
  4336. </div>
  4337. <div
  4338. :id="'tool-' + toolIndex"
  4339. :style="{
  4340. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4341. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4342. }"
  4343. class="worksDetailBox"
  4344. v-if="
  4345. worksStudent.length &&
  4346. worksStudent[toolIndex].length > 0
  4347. "
  4348. >
  4349. <div
  4350. class="works"
  4351. style="
  4352. width: 200px;
  4353. height: 140px;
  4354. margin: 10px 10px 10px 0;
  4355. border-radius: 15px;
  4356. box-shadow: 0 0 6px 1px #dfdada;
  4357. "
  4358. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4359. :key="wIndex"
  4360. >
  4361. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  4362. <div class="workImg">
  4363. <img
  4364. :src="w.works"
  4365. @click="previewImg(w.works)"
  4366. alt
  4367. />
  4368. <div
  4369. class="answerScore"
  4370. v-if="w.score"
  4371. @click.stop="openScore(w)"
  4372. :class="{
  4373. rightW:
  4374. w.userid == userid || tType == 1 || tType == 4,
  4375. }"
  4376. >
  4377. {{ JSON.parse(w.score).wScore }}分
  4378. </div>
  4379. <div
  4380. class="answerScore"
  4381. @click.stop="openScore(w)"
  4382. v-else-if="courseDetail.userid == userid"
  4383. :class="{
  4384. rightW:
  4385. w.userid == userid || tType == 1 || tType == 4,
  4386. }"
  4387. >
  4388. 评分
  4389. </div>
  4390. <img
  4391. class="deleteImg"
  4392. src="../../../assets/deleteworks.png"
  4393. v-if="
  4394. w.userid == userid || tType == 1 || tType == 4
  4395. "
  4396. @click.stop="deleteWorks(w.wid)"
  4397. alt
  4398. />
  4399. </div>
  4400. <div class="comment" style="min-width: 200px">
  4401. <div class="worksName">
  4402. <div>{{ w.sName }}</div>
  4403. </div>
  4404. <div class="commentList">
  4405. <div class="commentList">
  4406. <div
  4407. class="commentImg"
  4408. @click="
  4409. isLikes(w.wid, userid, 1, null, w.isLikes)
  4410. "
  4411. >
  4412. <img
  4413. :src="w.isLikes == true ? likes : noLikes"
  4414. alt=""
  4415. />
  4416. </div>
  4417. <div>{{ w.likesCount }}</div>
  4418. </div>
  4419. <div class="commentList" style="margin-right: 15px">
  4420. <div
  4421. class="commentImg"
  4422. @click="commentOther(w, toolIndex, wIndex)"
  4423. >
  4424. <img
  4425. src="../../../assets/icon/comment/comment.png"
  4426. alt=""
  4427. />
  4428. </div>
  4429. <div>{{ w.commentCount }}</div>
  4430. </div>
  4431. </div>
  4432. </div>
  4433. </div>
  4434. </div>
  4435. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4436. 未提交
  4437. </div>
  4438. <div
  4439. class="noWorksS"
  4440. v-if="noWorksS && noWorksS[toolIndex].length"
  4441. >
  4442. <div
  4443. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4444. :key="sIndex"
  4445. class="noWorksName"
  4446. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  4447. >
  4448. {{ s.student }}
  4449. </div>
  4450. </div>
  4451. </div>
  4452. <div
  4453. v-if="
  4454. tType &&
  4455. ((tType == 2 && sIsOpen == true) ||
  4456. tType == 1 ||
  4457. tType == 4) &&
  4458. tool.tool.indexOf(3) != -1
  4459. "
  4460. class="worksBox"
  4461. >
  4462. <div
  4463. class="zuoyeYulan"
  4464. v-if="
  4465. (worksStudent.length &&
  4466. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4467. "
  4468. >
  4469. <div class="worksTop">
  4470. <div>作业预览</div>
  4471. <div
  4472. class="corOpen"
  4473. @click="contract(toolIndex)"
  4474. v-if="
  4475. (isCloseList[toolIndex].isCloseBoolean) &&
  4476. isCloseList[toolIndex].isClose == 0
  4477. "
  4478. >
  4479. 折叠
  4480. </div>
  4481. <div
  4482. class="corOpen"
  4483. @click="contract(toolIndex)"
  4484. v-if="isCloseList[toolIndex].isClose == 1"
  4485. >
  4486. 展开
  4487. </div>
  4488. </div>
  4489. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4490. </div>
  4491. <div
  4492. class="group_workBox"
  4493. v-for="(g, gindex) in courseGroup.group"
  4494. :key="gindex"
  4495. >
  4496. <div class="group_box">
  4497. <div class="group_title">
  4498. <el-tooltip
  4499. class="item"
  4500. effect="light"
  4501. :content="g.name"
  4502. placement="top"
  4503. >
  4504. <div class="group_name">{{ g.name }}</div>
  4505. </el-tooltip>
  4506. </div>
  4507. <div
  4508. class="group_work"
  4509. v-if="
  4510. g.works &&
  4511. g.works.length &&
  4512. g.works[toolIndex].length
  4513. "
  4514. >
  4515. <div
  4516. class="works"
  4517. style="
  4518. width: 200px;
  4519. height: 140px;
  4520. margin: 10px 10px 10px 0;
  4521. border-radius: 15px;
  4522. box-shadow: 0 0 6px 1px #dfdada;
  4523. "
  4524. v-for="(w, wIndex) in g.works[toolIndex]"
  4525. :key="wIndex"
  4526. :class="w.type == 1 ? 'isTypeOne' : ''"
  4527. >
  4528. <div class="workImg">
  4529. <img
  4530. :src="w.works"
  4531. @click="previewImg(w.works)"
  4532. alt
  4533. />
  4534. <div
  4535. class="answerScore"
  4536. v-if="w.score"
  4537. @click.stop="openScore(w)"
  4538. :class="{
  4539. rightW:
  4540. w.userid == userid ||
  4541. tType == 1 ||
  4542. tType == 4,
  4543. }"
  4544. >
  4545. {{ JSON.parse(w.score).wScore }}分
  4546. </div>
  4547. <div
  4548. class="answerScore"
  4549. @click.stop="openScore(w)"
  4550. v-else-if="courseDetail.userid == userid"
  4551. :class="{
  4552. rightW:
  4553. w.userid == userid ||
  4554. tType == 1 ||
  4555. tType == 4,
  4556. }"
  4557. >
  4558. 评分
  4559. </div>
  4560. <img
  4561. class="deleteImg"
  4562. src="../../../assets/deleteworks.png"
  4563. v-if="
  4564. w.userid == userid || tType == 1 || tType == 4
  4565. "
  4566. @click.stop="deleteWorks(w.wid)"
  4567. alt
  4568. />
  4569. </div>
  4570. <div class="comment" style="min-width: 200px">
  4571. <div class="worksName">
  4572. <div>{{ w.sName }}</div>
  4573. </div>
  4574. <div class="commentList">
  4575. <div class="commentList">
  4576. <div
  4577. class="commentImg"
  4578. @click="
  4579. isLikes(w.wid, userid, 1, null, w.isLikes)
  4580. "
  4581. >
  4582. <img
  4583. :src="w.isLikes == true ? likes : noLikes"
  4584. alt=""
  4585. />
  4586. </div>
  4587. <div>{{ w.likesCount }}</div>
  4588. </div>
  4589. <div
  4590. class="commentList"
  4591. style="margin-right: 15px"
  4592. >
  4593. <div
  4594. class="commentImg"
  4595. @click="
  4596. commentOther(
  4597. w,
  4598. toolIndex,
  4599. wIndex,
  4600. null,
  4601. g.id
  4602. )
  4603. "
  4604. >
  4605. <img
  4606. src="../../../assets/icon/comment/comment.png"
  4607. alt=""
  4608. />
  4609. </div>
  4610. <div>{{ w.commentCount }}</div>
  4611. </div>
  4612. </div>
  4613. </div>
  4614. </div>
  4615. </div>
  4616. <div class="group_work" v-else>暂无提交作业</div>
  4617. </div>
  4618. </div>
  4619. <div
  4620. :id="'tool-' + toolIndex"
  4621. :style="{
  4622. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4623. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4624. }"
  4625. class="worksDetailBox"
  4626. v-if="
  4627. worksStudent.length &&
  4628. worksStudent[toolIndex].length > 0
  4629. "
  4630. >
  4631. <div
  4632. class="works"
  4633. style="
  4634. width: 200px;
  4635. height: 140px;
  4636. margin: 10px 10px 10px 0;
  4637. border-radius: 15px;
  4638. box-shadow: 0 0 6px 1px #dfdada;
  4639. "
  4640. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4641. :key="wIndex"
  4642. >
  4643. <!-- @click="previewImg(w.works)" -->
  4644. <div class="workImg">
  4645. <img
  4646. :src="w.works"
  4647. @click="previewImg(w.works)"
  4648. alt
  4649. />
  4650. <div
  4651. class="answerScore"
  4652. v-if="w.score"
  4653. @click.stop="openScore(w)"
  4654. :class="{
  4655. rightW:
  4656. w.userid == userid || tType == 1 || tType == 4,
  4657. }"
  4658. >
  4659. {{ JSON.parse(w.score).wScore }}分
  4660. </div>
  4661. <div
  4662. class="answerScore"
  4663. @click.stop="openScore(w)"
  4664. v-else-if="courseDetail.userid == userid"
  4665. :class="{
  4666. rightW:
  4667. w.userid == userid || tType == 1 || tType == 4,
  4668. }"
  4669. >
  4670. 评分
  4671. </div>
  4672. <img
  4673. class="deleteImg"
  4674. src="../../../assets/deleteworks.png"
  4675. v-if="
  4676. w.userid == userid || tType == 1 || tType == 4
  4677. "
  4678. @click.stop="deleteWorks(w.wid)"
  4679. alt
  4680. />
  4681. </div>
  4682. <div class="comment" style="min-width: 200px">
  4683. <div class="worksName">
  4684. <div>{{ w.sName }}</div>
  4685. </div>
  4686. <div class="commentList">
  4687. <div class="commentList">
  4688. <div
  4689. class="commentImg"
  4690. @click="
  4691. isLikes(w.wid, userid, 1, null, w.isLikes)
  4692. "
  4693. >
  4694. <img
  4695. :src="w.isLikes == true ? likes : noLikes"
  4696. alt=""
  4697. />
  4698. </div>
  4699. <div>{{ w.likesCount }}</div>
  4700. </div>
  4701. <div class="commentList" style="margin-right: 15px">
  4702. <div
  4703. class="commentImg"
  4704. @click="commentOther(w, toolIndex, wIndex)"
  4705. >
  4706. <img
  4707. src="../../../assets/icon/comment/comment.png"
  4708. alt=""
  4709. />
  4710. </div>
  4711. <div>{{ w.commentCount }}</div>
  4712. </div>
  4713. </div>
  4714. </div>
  4715. </div>
  4716. </div>
  4717. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4718. 未提交
  4719. </div>
  4720. <div
  4721. class="noWorksS"
  4722. v-if="noWorksS && noWorksS[toolIndex].length"
  4723. >
  4724. <div
  4725. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4726. :key="sIndex"
  4727. class="noWorksName"
  4728. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  4729. >
  4730. {{ s.student }}
  4731. </div>
  4732. </div>
  4733. </div>
  4734. <div
  4735. v-if="
  4736. tType &&
  4737. ((tType == 2 && sIsOpen == true) ||
  4738. tType == 1 ||
  4739. tType == 4) &&
  4740. tool.tool.indexOf(6) != -1
  4741. "
  4742. class="worksBox"
  4743. >
  4744. <div
  4745. class="zuoyeYulan"
  4746. v-if="
  4747. (worksStudent.length &&
  4748. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4749. "
  4750. >
  4751. <div class="worksTop">
  4752. <div>作业预览</div>
  4753. <div
  4754. class="corOpen"
  4755. @click="contract(toolIndex)"
  4756. v-if="
  4757. (isCloseList[toolIndex].isCloseBoolean) &&
  4758. isCloseList[toolIndex].isClose == 0
  4759. "
  4760. >
  4761. 折叠
  4762. </div>
  4763. <div
  4764. class="corOpen"
  4765. @click="contract(toolIndex)"
  4766. v-if="isCloseList[toolIndex].isClose == 1"
  4767. >
  4768. 展开
  4769. </div>
  4770. </div>
  4771. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4772. </div>
  4773. <div
  4774. class="group_workBox"
  4775. v-for="(g, gindex) in courseGroup.group"
  4776. :key="gindex"
  4777. >
  4778. <div class="group_box">
  4779. <div class="group_title">
  4780. <el-tooltip
  4781. class="item"
  4782. effect="light"
  4783. :content="g.name"
  4784. placement="top"
  4785. >
  4786. <div class="group_name">{{ g.name }}</div>
  4787. </el-tooltip>
  4788. </div>
  4789. <div
  4790. class="group_work"
  4791. v-if="
  4792. g.works &&
  4793. g.works.length &&
  4794. g.works[toolIndex].length
  4795. "
  4796. >
  4797. <div
  4798. class="works"
  4799. style="
  4800. width: 200px;
  4801. height: 140px;
  4802. margin: 10px 10px 10px 0;
  4803. border-radius: 15px;
  4804. box-shadow: 0 0 6px 1px #dfdada;
  4805. "
  4806. v-for="(w, wIndex) in g.works[toolIndex]"
  4807. :key="wIndex"
  4808. :class="w.type == 1 ? 'isTypeOne' : ''"
  4809. >
  4810. <div class="workImg">
  4811. <img
  4812. :src="w.works"
  4813. @click="previewImg(w.works)"
  4814. alt
  4815. />
  4816. <div
  4817. class="answerScore"
  4818. v-if="w.score"
  4819. @click.stop="openScore(w)"
  4820. :class="{
  4821. rightW:
  4822. w.userid == userid ||
  4823. tType == 1 ||
  4824. tType == 4,
  4825. }"
  4826. >
  4827. {{ JSON.parse(w.score).wScore }}分
  4828. </div>
  4829. <div
  4830. class="answerScore"
  4831. @click.stop="openScore(w)"
  4832. v-else-if="courseDetail.userid == userid"
  4833. :class="{
  4834. rightW:
  4835. w.userid == userid ||
  4836. tType == 1 ||
  4837. tType == 4,
  4838. }"
  4839. >
  4840. 评分
  4841. </div>
  4842. <img
  4843. class="deleteImg"
  4844. src="../../../assets/deleteworks.png"
  4845. v-if="
  4846. w.userid == userid || tType == 1 || tType == 4
  4847. "
  4848. @click.stop="deleteWorks(w.wid)"
  4849. alt
  4850. />
  4851. </div>
  4852. <div class="comment" style="min-width: 200px">
  4853. <div class="worksName">
  4854. <div>{{ w.sName }}</div>
  4855. </div>
  4856. <div class="commentList">
  4857. <div class="commentList">
  4858. <div
  4859. class="commentImg"
  4860. @click="
  4861. isLikes(w.wid, userid, 1, null, w.isLikes)
  4862. "
  4863. >
  4864. <img
  4865. :src="w.isLikes == true ? likes : noLikes"
  4866. alt=""
  4867. />
  4868. </div>
  4869. <div>{{ w.likesCount }}</div>
  4870. </div>
  4871. <div
  4872. class="commentList"
  4873. style="margin-right: 15px"
  4874. >
  4875. <div
  4876. class="commentImg"
  4877. @click="
  4878. commentOther(
  4879. w,
  4880. toolIndex,
  4881. wIndex,
  4882. null,
  4883. g.id
  4884. )
  4885. "
  4886. >
  4887. <img
  4888. src="../../../assets/icon/comment/comment.png"
  4889. alt=""
  4890. />
  4891. </div>
  4892. <div>{{ w.commentCount }}</div>
  4893. </div>
  4894. </div>
  4895. </div>
  4896. </div>
  4897. </div>
  4898. <div class="group_work" v-else>暂无提交作业</div>
  4899. </div>
  4900. </div>
  4901. <div
  4902. :id="'tool-' + toolIndex"
  4903. :style="{
  4904. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4905. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4906. }"
  4907. class="worksDetailBox"
  4908. v-if="
  4909. worksStudent.length &&
  4910. worksStudent[toolIndex].length > 0
  4911. "
  4912. >
  4913. <div
  4914. class="works"
  4915. style="
  4916. width: 200px;
  4917. height: 140px;
  4918. margin: 10px 10px 10px 0;
  4919. border-radius: 15px;
  4920. box-shadow: 0 0 6px 1px #dfdada;
  4921. "
  4922. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4923. :key="wIndex"
  4924. >
  4925. <!-- @click="previewImg(w.works)" -->
  4926. <div class="workImg">
  4927. <img
  4928. :src="w.works"
  4929. @click="previewImg(w.works)"
  4930. alt
  4931. />
  4932. <div
  4933. class="answerScore"
  4934. v-if="w.score"
  4935. @click.stop="openScore(w)"
  4936. :class="{
  4937. rightW:
  4938. w.userid == userid || tType == 1 || tType == 4,
  4939. }"
  4940. >
  4941. {{ JSON.parse(w.score).wScore }}分
  4942. </div>
  4943. <div
  4944. class="answerScore"
  4945. @click.stop="openScore(w)"
  4946. v-else-if="courseDetail.userid == userid"
  4947. :class="{
  4948. rightW:
  4949. w.userid == userid || tType == 1 || tType == 4,
  4950. }"
  4951. >
  4952. 评分
  4953. </div>
  4954. <img
  4955. class="deleteImg"
  4956. src="../../../assets/deleteworks.png"
  4957. v-if="
  4958. w.userid == userid || tType == 1 || tType == 4
  4959. "
  4960. @click.stop="deleteWorks(w.wid)"
  4961. alt
  4962. />
  4963. </div>
  4964. <div class="comment" style="min-width: 200px">
  4965. <div class="worksName">
  4966. <div>{{ w.sName }}</div>
  4967. </div>
  4968. <div class="commentList">
  4969. <div class="commentList">
  4970. <div
  4971. class="commentImg"
  4972. @click="
  4973. isLikes(w.wid, userid, 1, null, w.isLikes)
  4974. "
  4975. >
  4976. <img
  4977. :src="w.isLikes == true ? likes : noLikes"
  4978. alt=""
  4979. />
  4980. </div>
  4981. <div>{{ w.likesCount }}</div>
  4982. </div>
  4983. <div class="commentList" style="margin-right: 15px">
  4984. <div
  4985. class="commentImg"
  4986. @click="commentOther(w, toolIndex, wIndex)"
  4987. >
  4988. <img
  4989. src="../../../assets/icon/comment/comment.png"
  4990. alt=""
  4991. />
  4992. </div>
  4993. <div>{{ w.commentCount }}</div>
  4994. </div>
  4995. </div>
  4996. </div>
  4997. </div>
  4998. </div>
  4999. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5000. 未提交
  5001. </div>
  5002. <div
  5003. class="noWorksS"
  5004. v-if="noWorksS && noWorksS[toolIndex].length"
  5005. >
  5006. <div
  5007. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5008. :key="sIndex"
  5009. class="noWorksName"
  5010. >
  5011. {{ s.student }}
  5012. </div>
  5013. </div>
  5014. </div>
  5015. <div
  5016. v-if="
  5017. tType &&
  5018. ((tType == 2 && sIsOpen == true) ||
  5019. tType == 1 ||
  5020. tType == 4) &&
  5021. tool.tool.indexOf(7) != -1
  5022. "
  5023. class="worksBox"
  5024. >
  5025. <div
  5026. class="zuoyeYulan"
  5027. v-if="
  5028. (worksStudent.length &&
  5029. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5030. "
  5031. >
  5032. <div class="worksTop">
  5033. <div>作业预览</div>
  5034. <div
  5035. class="corOpen"
  5036. @click="contract(toolIndex)"
  5037. v-if="
  5038. (isCloseList[toolIndex].isCloseBoolean) &&
  5039. isCloseList[toolIndex].isClose == 0
  5040. "
  5041. >
  5042. 折叠
  5043. </div>
  5044. <div
  5045. class="corOpen"
  5046. @click="contract(toolIndex)"
  5047. v-if="isCloseList[toolIndex].isClose == 1"
  5048. >
  5049. 展开
  5050. </div>
  5051. </div>
  5052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5053. </div>
  5054. <div
  5055. class="group_workBox"
  5056. v-for="(g, gindex) in courseGroup.group"
  5057. :key="gindex"
  5058. >
  5059. <div class="group_box">
  5060. <div class="group_title">
  5061. <el-tooltip
  5062. class="item"
  5063. effect="light"
  5064. :content="g.name"
  5065. placement="top"
  5066. >
  5067. <div class="group_name">{{ g.name }}</div>
  5068. </el-tooltip>
  5069. </div>
  5070. <div
  5071. class="group_work"
  5072. v-if="
  5073. g.works &&
  5074. g.works.length &&
  5075. g.works[toolIndex].length
  5076. "
  5077. >
  5078. <div
  5079. class="works"
  5080. style="
  5081. width: 200px;
  5082. height: 140px;
  5083. margin: 10px 10px 10px 0;
  5084. border-radius: 15px;
  5085. box-shadow: 0 0 6px 1px #dfdada;
  5086. "
  5087. v-for="(w, wIndex) in g.works[toolIndex]"
  5088. :key="wIndex"
  5089. :class="w.type == 1 ? 'isTypeOne' : ''"
  5090. >
  5091. <div class="workImg">
  5092. <img
  5093. :src="w.works"
  5094. @click="previewImg(w.works)"
  5095. alt
  5096. />
  5097. <div
  5098. class="answerScore"
  5099. v-if="w.score"
  5100. @click.stop="openScore(w)"
  5101. :class="{
  5102. rightW:
  5103. w.userid == userid ||
  5104. tType == 1 ||
  5105. tType == 4,
  5106. }"
  5107. >
  5108. {{ JSON.parse(w.score).wScore }}分
  5109. </div>
  5110. <div
  5111. class="answerScore"
  5112. @click.stop="openScore(w)"
  5113. v-else-if="courseDetail.userid == userid"
  5114. :class="{
  5115. rightW:
  5116. w.userid == userid ||
  5117. tType == 1 ||
  5118. tType == 4,
  5119. }"
  5120. >
  5121. 评分
  5122. </div>
  5123. <img
  5124. class="deleteImg"
  5125. src="../../../assets/deleteworks.png"
  5126. v-if="
  5127. w.userid == userid || tType == 1 || tType == 4
  5128. "
  5129. @click.stop="deleteWorks(w.wid)"
  5130. alt
  5131. />
  5132. </div>
  5133. <div class="comment" style="min-width: 200px">
  5134. <div class="worksName">
  5135. <div>{{ w.sName }}</div>
  5136. </div>
  5137. <div class="commentList">
  5138. <div class="commentList">
  5139. <div
  5140. class="commentImg"
  5141. @click="
  5142. isLikes(w.wid, userid, 1, null, w.isLikes)
  5143. "
  5144. >
  5145. <img
  5146. :src="w.isLikes == true ? likes : noLikes"
  5147. alt=""
  5148. />
  5149. </div>
  5150. <div>{{ w.likesCount }}</div>
  5151. </div>
  5152. <div
  5153. class="commentList"
  5154. style="margin-right: 15px"
  5155. >
  5156. <div
  5157. class="commentImg"
  5158. @click="
  5159. commentOther(
  5160. w,
  5161. toolIndex,
  5162. wIndex,
  5163. null,
  5164. g.id
  5165. )
  5166. "
  5167. >
  5168. <img
  5169. src="../../../assets/icon/comment/comment.png"
  5170. alt=""
  5171. />
  5172. </div>
  5173. <div>{{ w.commentCount }}</div>
  5174. </div>
  5175. </div>
  5176. </div>
  5177. </div>
  5178. </div>
  5179. <div class="group_work" v-else>暂无提交作业</div>
  5180. </div>
  5181. </div>
  5182. <div
  5183. :id="'tool-' + toolIndex"
  5184. :style="{
  5185. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5186. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5187. }"
  5188. class="worksDetailBox"
  5189. v-if="
  5190. worksStudent.length &&
  5191. worksStudent[toolIndex].length > 0
  5192. "
  5193. >
  5194. <div
  5195. class="works"
  5196. style="
  5197. width: 200px;
  5198. height: 140px;
  5199. margin: 10px 10px 10px 0;
  5200. border-radius: 15px;
  5201. box-shadow: 0 0 6px 1px #dfdada;
  5202. "
  5203. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5204. :key="wIndex"
  5205. >
  5206. <!-- @click="previewImg(w.works)" -->
  5207. <div class="workImg">
  5208. <img
  5209. :src="w.works"
  5210. @click="previewImg(w.works)"
  5211. alt
  5212. />
  5213. <div
  5214. class="answerScore"
  5215. v-if="w.score"
  5216. @click.stop="openScore(w)"
  5217. :class="{
  5218. rightW:
  5219. w.userid == userid || tType == 1 || tType == 4,
  5220. }"
  5221. >
  5222. {{ JSON.parse(w.score).wScore }}分
  5223. </div>
  5224. <div
  5225. class="answerScore"
  5226. @click.stop="openScore(w)"
  5227. v-else-if="courseDetail.userid == userid"
  5228. :class="{
  5229. rightW:
  5230. w.userid == userid || tType == 1 || tType == 4,
  5231. }"
  5232. >
  5233. 评分
  5234. </div>
  5235. <img
  5236. class="deleteImg"
  5237. src="../../../assets/deleteworks.png"
  5238. v-if="
  5239. w.userid == userid || tType == 1 || tType == 4
  5240. "
  5241. @click.stop="deleteWorks(w.wid)"
  5242. alt
  5243. />
  5244. </div>
  5245. <div class="comment" style="min-width: 200px">
  5246. <div class="worksName">
  5247. <div>{{ w.sName }}</div>
  5248. </div>
  5249. <div class="commentList">
  5250. <div class="commentList">
  5251. <div
  5252. class="commentImg"
  5253. @click="
  5254. isLikes(w.wid, userid, 1, null, w.isLikes)
  5255. "
  5256. >
  5257. <img
  5258. :src="w.isLikes == true ? likes : noLikes"
  5259. alt=""
  5260. />
  5261. </div>
  5262. <div>{{ w.likesCount }}</div>
  5263. </div>
  5264. <div class="commentList" style="margin-right: 15px">
  5265. <div
  5266. class="commentImg"
  5267. @click="commentOther(w, toolIndex, wIndex)"
  5268. >
  5269. <img
  5270. src="../../../assets/icon/comment/comment.png"
  5271. alt=""
  5272. />
  5273. </div>
  5274. <div>{{ w.commentCount }}</div>
  5275. </div>
  5276. </div>
  5277. </div>
  5278. </div>
  5279. </div>
  5280. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5281. 未提交
  5282. </div>
  5283. <div
  5284. class="noWorksS"
  5285. v-if="noWorksS && noWorksS[toolIndex].length"
  5286. >
  5287. <div
  5288. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5289. :key="sIndex"
  5290. class="noWorksName"
  5291. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  5292. >
  5293. {{ s.student }}
  5294. </div>
  5295. </div>
  5296. </div>
  5297. <div
  5298. v-if="
  5299. tType &&
  5300. ((tType == 2 && sIsOpen == true) ||
  5301. tType == 1 ||
  5302. tType == 4) &&
  5303. tool.tool.indexOf(26) != -1
  5304. "
  5305. class="worksBox"
  5306. >
  5307. <div
  5308. class="zuoyeYulan"
  5309. v-if="
  5310. worksStudent.length &&
  5311. worksStudent[toolIndex].length > 0
  5312. "
  5313. >
  5314. <div class="worksTop">
  5315. <div>作业预览</div>
  5316. <div
  5317. class="corOpen"
  5318. @click="contract(toolIndex)"
  5319. v-if="
  5320. (isCloseList[toolIndex].isCloseBoolean) &&
  5321. isCloseList[toolIndex].isClose == 0
  5322. "
  5323. >
  5324. 折叠
  5325. </div>
  5326. <div
  5327. class="corOpen"
  5328. @click="contract(toolIndex)"
  5329. v-if="isCloseList[toolIndex].isClose == 1"
  5330. >
  5331. 展开
  5332. </div>
  5333. </div>
  5334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5335. </div>
  5336. <div
  5337. :id="'tool-' + toolIndex"
  5338. :style="{
  5339. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5340. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5341. }"
  5342. class="worksDetailBox"
  5343. v-if="
  5344. worksStudent.length &&
  5345. worksStudent[toolIndex].length > 0
  5346. "
  5347. >
  5348. <div
  5349. class="works"
  5350. style="width: 240px; height: 140px; overflow: hidden"
  5351. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5352. :key="wIndex"
  5353. :class="w.type == 1 ? 'isTypeOne' : ''"
  5354. >
  5355. <div class="workImg" v-if="w.type == 0">
  5356. <img
  5357. :src="w.works"
  5358. @click="previewImg(w.works)"
  5359. alt
  5360. />
  5361. <img
  5362. class="deleteImg"
  5363. src="../../../assets/deleteworks.png"
  5364. v-if="
  5365. w.userid == userid || tType == 1 || tType == 4
  5366. "
  5367. @click.stop="deleteWorks(w.wid)"
  5368. alt
  5369. />
  5370. </div>
  5371. <div class="workImg" v-if="w.type == 1">
  5372. <img :src="word" @click="openFile(w.works)" alt />
  5373. <img
  5374. class="deleteImg"
  5375. src="../../../assets/deleteworks.png"
  5376. v-if="
  5377. w.userid == userid || tType == 1 || tType == 4
  5378. "
  5379. @click.stop="deleteWorks(w.wid)"
  5380. alt
  5381. />
  5382. </div>
  5383. <div class="worksName">
  5384. <div>{{ w.sName }}</div>
  5385. </div>
  5386. </div>
  5387. </div>
  5388. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5389. 未提交
  5390. </div>
  5391. <div
  5392. class="noWorksS"
  5393. v-if="noWorksS && noWorksS[toolIndex].length"
  5394. >
  5395. <div
  5396. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5397. :key="sIndex"
  5398. class="noWorksName"
  5399. >
  5400. {{ s.student }}
  5401. </div>
  5402. </div>
  5403. </div>
  5404. <div
  5405. v-if="
  5406. tType &&
  5407. ((tType == 2 && sIsOpen == true) ||
  5408. tType == 1 ||
  5409. tType == 4) &&
  5410. tool.tool.indexOf(40) != -1
  5411. "
  5412. class="worksBox"
  5413. >
  5414. <div
  5415. class="zuoyeYulan"
  5416. v-if="
  5417. worksStudent.length &&
  5418. worksStudent[toolIndex].length > 0
  5419. "
  5420. >
  5421. <div class="worksTop">
  5422. <div>作业预览</div>
  5423. <div
  5424. class="corOpen"
  5425. @click="contract(toolIndex)"
  5426. v-if="
  5427. (isCloseList[toolIndex].isCloseBoolean) &&
  5428. isCloseList[toolIndex].isClose == 0
  5429. "
  5430. >
  5431. 折叠
  5432. </div>
  5433. <div
  5434. class="corOpen"
  5435. @click="contract(toolIndex)"
  5436. v-if="isCloseList[toolIndex].isClose == 1"
  5437. >
  5438. 展开
  5439. </div>
  5440. </div>
  5441. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5442. </div>
  5443. <div
  5444. :id="'tool-' + toolIndex"
  5445. :style="{
  5446. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5447. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5448. }"
  5449. class="worksDetailBox"
  5450. v-if="
  5451. worksStudent.length &&
  5452. worksStudent[toolIndex].length > 0
  5453. "
  5454. >
  5455. <div
  5456. class="works"
  5457. style="
  5458. width: 200px;
  5459. height: 140px;
  5460. margin: 10px 10px 10px 0;
  5461. border-radius: 15px;
  5462. box-shadow: 0 0 6px 1px #dfdada;
  5463. "
  5464. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5465. :key="wIndex"
  5466. :class="w.type == 1 ? 'isTypeOne' : ''"
  5467. >
  5468. <div class="workImg">
  5469. <img
  5470. src="../../../assets/icon/works/noImg.png"
  5471. @click="openPj(w.works, toolIndex)"
  5472. alt
  5473. />
  5474. <img
  5475. class="deleteImg"
  5476. src="../../../assets/deleteworks.png"
  5477. v-if="
  5478. w.userid == userid || tType == 1 || tType == 4
  5479. "
  5480. @click.stop="deleteWorks(w.wid)"
  5481. alt
  5482. />
  5483. </div>
  5484. <div class="comment" style="min-width: 200px">
  5485. <div class="worksName">
  5486. <div>{{ w.sName }}</div>
  5487. </div>
  5488. <div class="commentList">
  5489. <div class="commentList">
  5490. <div
  5491. class="commentImg"
  5492. @click="
  5493. isLikes(w.wid, userid, 1, null, w.isLikes)
  5494. "
  5495. >
  5496. <img
  5497. :src="w.isLikes == true ? likes : noLikes"
  5498. alt=""
  5499. />
  5500. </div>
  5501. <div>{{ w.likesCount }}</div>
  5502. </div>
  5503. <div class="commentList" style="margin-right: 15px">
  5504. <div
  5505. class="commentImg"
  5506. @click="commentOther(w, toolIndex, wIndex)"
  5507. >
  5508. <img
  5509. src="../../../assets/icon/comment/comment.png"
  5510. alt=""
  5511. />
  5512. </div>
  5513. <div>{{ w.commentCount }}</div>
  5514. </div>
  5515. </div>
  5516. </div>
  5517. </div>
  5518. </div>
  5519. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5520. 未提交
  5521. </div>
  5522. <div
  5523. class="noWorksS"
  5524. v-if="noWorksS && noWorksS[toolIndex].length"
  5525. >
  5526. <div
  5527. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5528. :key="sIndex"
  5529. class="noWorksName"
  5530. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  5531. >
  5532. {{ s.student }}
  5533. </div>
  5534. </div>
  5535. </div>
  5536. <div
  5537. v-if="
  5538. tType &&
  5539. tType == 2 &&
  5540. !sIsOpen &&
  5541. tool.tool.indexOf(40) != -1
  5542. "
  5543. class="worksBox"
  5544. >
  5545. <div
  5546. class="zuoyeYulan"
  5547. v-if="workStudent[toolIndex].length > 0"
  5548. >
  5549. <span class="worksTitle">作业预览</span>
  5550. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5551. </div>
  5552. <div
  5553. class="worksDetailBox"
  5554. v-if="workStudent[toolIndex].length > 0"
  5555. >
  5556. <div
  5557. class="works"
  5558. style="
  5559. width: 200px;
  5560. height: 140px;
  5561. margin: 10px 10px 10px 0;
  5562. "
  5563. v-for="(w, wIndex) in workStudent[toolIndex]"
  5564. :key="wIndex"
  5565. >
  5566. <div class="workImg">
  5567. <img
  5568. src="../../../assets/icon/works/noImg.png"
  5569. @click="openPj(w.works, toolIndex)"
  5570. alt
  5571. />
  5572. <img
  5573. class="deleteImg"
  5574. src="../../../assets/deleteworks.png"
  5575. v-if="
  5576. w.userid == userid || tType == 1 || tType == 4
  5577. "
  5578. @click.stop="deleteWorks(w.wid)"
  5579. alt
  5580. />
  5581. </div>
  5582. <div class="worksName">
  5583. <div>{{ w.sName }}</div>
  5584. </div>
  5585. </div>
  5586. </div>
  5587. </div>
  5588. <div
  5589. v-if="
  5590. tType &&
  5591. ((tType == 2 && sIsOpen == true) ||
  5592. tType == 1 ||
  5593. tType == 4) &&
  5594. tool.tool.indexOf(41) != -1
  5595. "
  5596. >
  5597. <AnswerData2
  5598. v-if="
  5599. worksStudent.length &&
  5600. worksStudent[toolIndex].length > 0
  5601. "
  5602. :problemJson="tool.selectJson.answer"
  5603. :people="worksStudent[toolIndex]"
  5604. ></AnswerData2>
  5605. </div>
  5606. <div
  5607. v-if="
  5608. tType &&
  5609. ((tType == 2 && sIsOpen == true) ||
  5610. tType == 1 ||
  5611. tType == 4) &&
  5612. tool.tool.indexOf(41) != -1
  5613. "
  5614. class="worksBox"
  5615. >
  5616. <div
  5617. class="zuoyeYulan"
  5618. v-if="
  5619. worksStudent.length &&
  5620. worksStudent[toolIndex].length > 0
  5621. "
  5622. >
  5623. <div class="worksTop">
  5624. <div>作业预览</div>
  5625. <div
  5626. class="corOpen"
  5627. @click="contract(toolIndex)"
  5628. v-if="
  5629. (isCloseList[toolIndex].isCloseBoolean) &&
  5630. isCloseList[toolIndex].isClose == 0
  5631. "
  5632. >
  5633. 折叠
  5634. </div>
  5635. <div
  5636. class="corOpen"
  5637. @click="contract(toolIndex)"
  5638. v-if="isCloseList[toolIndex].isClose == 1"
  5639. >
  5640. 展开
  5641. </div>
  5642. </div>
  5643. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5644. </div>
  5645. <div
  5646. :id="'tool-' + toolIndex"
  5647. :style="{
  5648. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5649. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5650. }"
  5651. class="worksDetailBox"
  5652. v-if="
  5653. worksStudent.length &&
  5654. worksStudent[toolIndex].length > 0
  5655. "
  5656. >
  5657. <div
  5658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5659. :key="wIndex"
  5660. class="isWorksName2"
  5661. @click="openXz(w, toolIndex)"
  5662. >
  5663. {{ w.sName }}
  5664. <img
  5665. class="deleteImg deleteImg2"
  5666. src="../../../assets/deleteworks.png"
  5667. v-if="w.userid == userid || tType == 1 || tType == 4"
  5668. @click.stop="deleteWorks(w.wid)"
  5669. alt
  5670. />
  5671. </div>
  5672. <!-- <div
  5673. class="works"
  5674. style="
  5675. width: 200px;
  5676. height: 140px;
  5677. margin: 10px 10px 10px 0;
  5678. border-radius: 15px;
  5679. box-shadow: 0 0 6px 1px #dfdada;
  5680. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  5681. :class="w.type == 5 ? 'isTypeOne' : ''">
  5682. <div class="workImg">
  5683. <img src="../../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  5684. </div>
  5685. <div class="worksName">
  5686. <div>{{ w.sName }}</div>
  5687. </div>
  5688. </div> -->
  5689. </div>
  5690. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5691. 未提交
  5692. </div>
  5693. <div
  5694. class="noWorksS"
  5695. v-if="noWorksS && noWorksS[toolIndex].length"
  5696. >
  5697. <div
  5698. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5699. :key="sIndex"
  5700. class="noWorksName"
  5701. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  5702. >
  5703. {{ s.student }}
  5704. </div>
  5705. </div>
  5706. </div>
  5707. <div
  5708. v-if="
  5709. tType &&
  5710. tType == 2 &&
  5711. !sIsOpen &&
  5712. tool.tool.indexOf(41) != -1
  5713. "
  5714. class="worksBox"
  5715. >
  5716. <div
  5717. class="zuoyeYulan"
  5718. v-if="workStudent[toolIndex].length > 0"
  5719. >
  5720. <span class="worksTitle">作业预览</span>
  5721. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5722. </div>
  5723. <div
  5724. class="worksDetailBox"
  5725. v-if="workStudent[toolIndex].length > 0"
  5726. >
  5727. <div
  5728. class="works"
  5729. style="
  5730. width: 200px;
  5731. height: 140px;
  5732. margin: 10px 10px 10px 0;
  5733. "
  5734. v-for="(w, wIndex) in workStudent[toolIndex]"
  5735. :key="wIndex"
  5736. >
  5737. <div class="workImg">
  5738. <img
  5739. src="../../../assets/icon/works/noImg.png"
  5740. @click="openXz(w, toolIndex)"
  5741. alt
  5742. />
  5743. <img
  5744. class="deleteImg"
  5745. src="../../../assets/deleteworks.png"
  5746. v-if="
  5747. w.userid == userid || tType == 1 || tType == 4
  5748. "
  5749. @click.stop="deleteWorks(w.wid)"
  5750. alt
  5751. />
  5752. </div>
  5753. <div class="worksName">
  5754. <div>{{ w.sName }}</div>
  5755. </div>
  5756. </div>
  5757. </div>
  5758. </div>
  5759. <div v-if="false" class="xuan_right_box">
  5760. <div
  5761. class="tool_right_box"
  5762. v-for="(item, index) in tool.sentenceList"
  5763. :key="index"
  5764. >
  5765. <div>
  5766. <span
  5767. style="word-break: break-all; white-space: normal"
  5768. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  5769. >
  5770. </div>
  5771. <div class="right_box_xuan">
  5772. <span>正确率</span>
  5773. <span>{{
  5774. (checkJson[toolIndex][index].right
  5775. ? checkJson[toolIndex][index].right
  5776. : 0) + "%"
  5777. }}</span>
  5778. </div>
  5779. <div class="right_box_xuan">
  5780. <span>答对人数</span>
  5781. <span>{{
  5782. checkJson[toolIndex][index].rightPerson.length
  5783. }}</span>
  5784. </div>
  5785. </div>
  5786. </div>
  5787. <div
  5788. v-if="
  5789. tType &&
  5790. ((tType == 2 && sIsOpen == true) ||
  5791. tType == 1 ||
  5792. tType == 4) &&
  5793. tool.tool.indexOf(47) != -1
  5794. "
  5795. >
  5796. <AnswerData
  5797. v-if="
  5798. checkJson[toolIndex].length &&
  5799. (tool.sentenceList || tool.sentenceList.length > 0)
  5800. "
  5801. :people="checkJson[toolIndex]"
  5802. ></AnswerData>
  5803. </div>
  5804. <div
  5805. v-if="
  5806. tType &&
  5807. tType == 2 &&
  5808. !sIsOpen &&
  5809. tool.tool.indexOf(47) != -1
  5810. "
  5811. class="worksBox"
  5812. >
  5813. <div
  5814. class="zuoyeYulan"
  5815. v-if="workStudent[toolIndex].length > 0"
  5816. >
  5817. <span class="worksTitle">作业预览</span>
  5818. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5819. </div>
  5820. <div
  5821. class="worksDetailBox"
  5822. v-if="workStudent[toolIndex].length > 0"
  5823. >
  5824. <div
  5825. class="works"
  5826. style="
  5827. width: 200px;
  5828. height: 140px;
  5829. margin: 10px 10px 10px 0;
  5830. "
  5831. v-for="(w, wIndex) in workStudent[toolIndex]"
  5832. :key="wIndex"
  5833. >
  5834. <!-- @click="openXz(w, toolIndex)" -->
  5835. <div class="workImg" @click="openSen(w, toolIndex)">
  5836. <img src="../../../assets/icon/works/noImg.png" alt />
  5837. <img
  5838. class="deleteImg"
  5839. src="../../../assets/deleteworks.png"
  5840. v-if="
  5841. w.userid == userid || tType == 1 || tType == 4
  5842. "
  5843. @click.stop="deleteWorks(w.wid)"
  5844. alt
  5845. />
  5846. </div>
  5847. <div class="worksName">
  5848. <div>
  5849. {{ w.sName }}
  5850. </div>
  5851. </div>
  5852. </div>
  5853. </div>
  5854. </div>
  5855. <div
  5856. v-if="
  5857. tType &&
  5858. ((tType == 2 && sIsOpen == true) ||
  5859. tType == 1 ||
  5860. tType == 4) &&
  5861. tool.tool.indexOf(47) != -1
  5862. "
  5863. class="worksBox"
  5864. >
  5865. <div
  5866. class="zuoyeYulan"
  5867. v-if="
  5868. worksStudent.length &&
  5869. worksStudent[toolIndex].length > 0
  5870. "
  5871. >
  5872. <div class="worksTop">
  5873. <div>作业预览</div>
  5874. <div
  5875. class="corOpen"
  5876. @click="contract(toolIndex)"
  5877. v-if="
  5878. (isCloseList[toolIndex].isCloseBoolean) &&
  5879. isCloseList[toolIndex].isClose == 0
  5880. "
  5881. >
  5882. 折叠
  5883. </div>
  5884. <div
  5885. class="corOpen"
  5886. @click="contract(toolIndex)"
  5887. v-if="isCloseList[toolIndex].isClose == 1"
  5888. >
  5889. 展开
  5890. </div>
  5891. </div>
  5892. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5893. </div>
  5894. <div
  5895. :id="'tool-' + toolIndex"
  5896. :style="{
  5897. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5898. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5899. }"
  5900. class="worksDetailBox"
  5901. v-if="
  5902. worksStudent.length &&
  5903. worksStudent[toolIndex].length > 0
  5904. "
  5905. >
  5906. <!-- @click="openXz(w, toolIndex)" -->
  5907. <div
  5908. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5909. :key="wIndex"
  5910. class="isWorksName2"
  5911. @click="openSen(w, toolIndex)"
  5912. >
  5913. {{ w.sName }}
  5914. <img
  5915. class="deleteImg deleteImg2"
  5916. src="../../../assets/deleteworks.png"
  5917. v-if="w.userid == userid || tType == 1 || tType == 4"
  5918. @click.stop="deleteWorks(w.wid)"
  5919. alt
  5920. />
  5921. </div>
  5922. </div>
  5923. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5924. 未提交
  5925. </div>
  5926. <div
  5927. class="noWorksS"
  5928. v-if="noWorksS && noWorksS[toolIndex].length"
  5929. >
  5930. <div
  5931. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5932. :key="sIndex"
  5933. class="noWorksName"
  5934. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  5935. >
  5936. {{ s.student }}
  5937. </div>
  5938. </div>
  5939. </div>
  5940. <div
  5941. v-if="
  5942. tType &&
  5943. ((tType == 2 && sIsOpen == true) ||
  5944. tType == 1 ||
  5945. tType == 4) &&
  5946. tool.tool.indexOf(48) != -1
  5947. "
  5948. class="worksBox"
  5949. >
  5950. <div
  5951. class="zuoyeYulan"
  5952. v-if="
  5953. worksStudent.length &&
  5954. worksStudent[toolIndex].length > 0
  5955. "
  5956. >
  5957. <div class="worksTop">
  5958. <div>作业预览</div>
  5959. <div
  5960. class="corOpen"
  5961. @click="contract(toolIndex)"
  5962. v-if="
  5963. (isCloseList[toolIndex].isCloseBoolean) &&
  5964. isCloseList[toolIndex].isClose == 0
  5965. "
  5966. >
  5967. 折叠
  5968. </div>
  5969. <div
  5970. class="corOpen"
  5971. @click="contract(toolIndex)"
  5972. v-if="isCloseList[toolIndex].isClose == 1"
  5973. >
  5974. 展开
  5975. </div>
  5976. </div>
  5977. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5978. </div>
  5979. <div
  5980. :id="'tool-' + toolIndex"
  5981. :style="{
  5982. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5983. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5984. }"
  5985. class="worksDetailBox"
  5986. v-if="
  5987. worksStudent.length &&
  5988. worksStudent[toolIndex].length > 0
  5989. "
  5990. >
  5991. <div
  5992. class="works"
  5993. style="
  5994. width: 200px;
  5995. height: 140px;
  5996. margin: 10px 10px 10px 0;
  5997. border-radius: 15px;
  5998. box-shadow: 0 0 6px 1px #dfdada;
  5999. "
  6000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6001. :key="wIndex"
  6002. :class="w.type == 1 ? 'isTypeOne' : ''"
  6003. >
  6004. <div class="workImg">
  6005. <img :src="word" @click="openTable(w)" alt />
  6006. <!-- @click="openFile(w.works)" -->
  6007. <div
  6008. class="answerScore"
  6009. v-if="w.score"
  6010. @click.stop="openScore(w)"
  6011. :class="{
  6012. rightW:
  6013. w.userid == userid ||
  6014. tType == 1 ||
  6015. tType == 4 ||
  6016. w.ateacher == userid,
  6017. }"
  6018. >
  6019. {{ JSON.parse(w.score).wScore }}分
  6020. </div>
  6021. <div
  6022. class="answerScore"
  6023. @click.stop="openScore(w)"
  6024. v-else-if="courseDetail.userid == userid"
  6025. :class="{
  6026. rightW:
  6027. w.userid == userid ||
  6028. tType == 1 ||
  6029. tType == 4 ||
  6030. w.ateacher == userid,
  6031. }"
  6032. >
  6033. 评分
  6034. </div>
  6035. <img
  6036. class="deleteImg"
  6037. src="../../../assets/deleteworks.png"
  6038. v-if="
  6039. w.userid == userid || tType == 1 || tType == 4
  6040. "
  6041. @click.stop="deleteWorks(w.wid)"
  6042. alt
  6043. />
  6044. </div>
  6045. <div class="comment" style="min-width: 200px">
  6046. <div class="worksName">
  6047. <div>{{ w.sName }}</div>
  6048. </div>
  6049. <div class="commentList">
  6050. <div class="commentList">
  6051. <div
  6052. class="commentImg"
  6053. @click="
  6054. isLikes(w.wid, userid, 1, null, w.isLikes)
  6055. "
  6056. >
  6057. <img
  6058. :src="w.isLikes == true ? likes : noLikes"
  6059. alt=""
  6060. />
  6061. </div>
  6062. <div>{{ w.likesCount }}</div>
  6063. </div>
  6064. <div class="commentList" style="margin-right: 15px">
  6065. <div
  6066. class="commentImg"
  6067. @click="commentOther(w, toolIndex, wIndex)"
  6068. >
  6069. <img
  6070. src="../../../assets/icon/comment/comment.png"
  6071. alt=""
  6072. />
  6073. </div>
  6074. <div>{{ w.commentCount }}</div>
  6075. </div>
  6076. </div>
  6077. </div>
  6078. </div>
  6079. </div>
  6080. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6081. 未提交
  6082. </div>
  6083. <div
  6084. class="noWorksS"
  6085. v-if="noWorksS && noWorksS[toolIndex].length"
  6086. >
  6087. <div
  6088. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6089. :key="sIndex"
  6090. class="noWorksName"
  6091. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  6092. >
  6093. {{ s.student }}
  6094. </div>
  6095. </div>
  6096. </div>
  6097. <div
  6098. v-if="
  6099. tType &&
  6100. tType == 2 &&
  6101. !sIsOpen &&
  6102. tool.tool.indexOf(48) != -1
  6103. "
  6104. class="worksBox"
  6105. >
  6106. <div
  6107. class="zuoyeYulan"
  6108. v-if="workStudent[toolIndex].length > 0"
  6109. >
  6110. <span class="worksTitle">作业预览</span>
  6111. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6112. </div>
  6113. <div
  6114. class="worksDetailBox"
  6115. v-if="workStudent[toolIndex].length > 0"
  6116. >
  6117. <div
  6118. class="works"
  6119. style="
  6120. width: 200px;
  6121. height: 140px;
  6122. margin: 10px 10px 10px 0;
  6123. box-shadow: 0 0 6px 1px #dfdada;
  6124. "
  6125. v-for="(w, wIndex) in workStudent[toolIndex]"
  6126. :key="wIndex"
  6127. >
  6128. <div class="workImg">
  6129. <img :src="word" @click="openTable(w)" alt />
  6130. <div
  6131. class="answerScore"
  6132. v-if="w.score"
  6133. @click.stop="openScore(w)"
  6134. :class="{
  6135. rightW:
  6136. w.userid == userid || tType == 1 || tType == 4,
  6137. }"
  6138. >
  6139. {{ JSON.parse(w.score).wScore }}分
  6140. </div>
  6141. <div
  6142. class="answerScore"
  6143. @click.stop="openScore(w)"
  6144. v-else-if="courseDetail.userid == userid"
  6145. :class="{
  6146. rightW:
  6147. w.userid == userid || tType == 1 || tType == 4,
  6148. }"
  6149. >
  6150. 评分
  6151. </div>
  6152. <img
  6153. class="deleteImg"
  6154. src="../../../assets/deleteworks.png"
  6155. v-if="
  6156. w.userid == userid || tType == 1 || tType == 4
  6157. "
  6158. @click.stop="deleteWorks(w.wid)"
  6159. alt
  6160. />
  6161. </div>
  6162. <div class="worksName">
  6163. <div>{{ w.sName }}</div>
  6164. </div>
  6165. </div>
  6166. </div>
  6167. </div>
  6168. <div
  6169. v-if="
  6170. tType &&
  6171. ((tType == 2 && sIsOpen == true) ||
  6172. tType == 1 ||
  6173. tType == 4) &&
  6174. tool.tool.indexOf(52) != -1
  6175. "
  6176. class="worksBox"
  6177. >
  6178. <div
  6179. class="zuoyeYulan"
  6180. v-if="
  6181. worksStudent.length &&
  6182. worksStudent[toolIndex].length > 0
  6183. "
  6184. >
  6185. <div class="worksTop">
  6186. <div>作业预览</div>
  6187. <div
  6188. class="corOpen"
  6189. @click="contract(toolIndex)"
  6190. v-if="
  6191. (isCloseList[toolIndex].isCloseBoolean) &&
  6192. isCloseList[toolIndex].isClose == 0
  6193. "
  6194. >
  6195. 折叠
  6196. </div>
  6197. <div
  6198. class="corOpen"
  6199. @click="contract(toolIndex)"
  6200. v-if="isCloseList[toolIndex].isClose == 1"
  6201. >
  6202. 展开
  6203. </div>
  6204. </div>
  6205. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6206. </div>
  6207. <div
  6208. :id="'tool-' + toolIndex"
  6209. :style="{
  6210. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6211. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6212. }"
  6213. class="worksDetailBox"
  6214. v-if="
  6215. worksStudent.length &&
  6216. worksStudent[toolIndex].length > 0
  6217. "
  6218. >
  6219. <div
  6220. class="works"
  6221. style="
  6222. width: 200px;
  6223. height: 140px;
  6224. margin: 10px 10px 10px 0;
  6225. border-radius: 15px;
  6226. box-shadow: 0 0 6px 1px #dfdada;
  6227. "
  6228. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6229. :key="wIndex"
  6230. :class="w.type == 1 ? 'isTypeOne' : ''"
  6231. >
  6232. <div class="workImg">
  6233. <img :src="word" @click="openWord(w)" alt />
  6234. <!-- @click="openFile(w.works)" -->
  6235. <div
  6236. class="answerScore"
  6237. v-if="w.score"
  6238. @click.stop="openScore(w)"
  6239. :class="{
  6240. rightW:
  6241. w.userid == userid ||
  6242. tType == 1 ||
  6243. tType == 4 ||
  6244. w.ateacher == userid,
  6245. }"
  6246. >
  6247. {{ JSON.parse(w.score).wScore }}分
  6248. </div>
  6249. <div
  6250. class="answerScore"
  6251. @click.stop="openScore(w)"
  6252. v-else-if="courseDetail.userid == userid"
  6253. :class="{
  6254. rightW:
  6255. w.userid == userid ||
  6256. tType == 1 ||
  6257. tType == 4 ||
  6258. w.ateacher == userid,
  6259. }"
  6260. >
  6261. 评分
  6262. </div>
  6263. <img
  6264. class="deleteImg"
  6265. src="../../../assets/deleteworks.png"
  6266. v-if="
  6267. w.userid == userid || tType == 1 || tType == 4
  6268. "
  6269. @click.stop="deleteWorks(w.wid)"
  6270. alt
  6271. />
  6272. </div>
  6273. <div class="comment" style="min-width: 200px">
  6274. <div class="worksName">
  6275. <div>{{ w.sName }}</div>
  6276. </div>
  6277. <div class="commentList">
  6278. <div class="commentList">
  6279. <div
  6280. class="commentImg"
  6281. @click="
  6282. isLikes(w.wid, userid, 1, null, w.isLikes)
  6283. "
  6284. >
  6285. <img
  6286. :src="w.isLikes == true ? likes : noLikes"
  6287. alt=""
  6288. />
  6289. </div>
  6290. <div>{{ w.likesCount }}</div>
  6291. </div>
  6292. <div class="commentList" style="margin-right: 15px">
  6293. <div
  6294. class="commentImg"
  6295. @click="commentOther(w, toolIndex, wIndex)"
  6296. >
  6297. <img
  6298. src="../../../assets/icon/comment/comment.png"
  6299. alt=""
  6300. />
  6301. </div>
  6302. <div>{{ w.commentCount }}</div>
  6303. </div>
  6304. </div>
  6305. </div>
  6306. </div>
  6307. </div>
  6308. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6309. 未提交
  6310. </div>
  6311. <div
  6312. class="noWorksS"
  6313. v-if="noWorksS && noWorksS[toolIndex].length"
  6314. >
  6315. <div
  6316. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6317. :key="sIndex"
  6318. class="noWorksName"
  6319. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  6320. >
  6321. {{ s.student }}
  6322. </div>
  6323. </div>
  6324. </div>
  6325. <div
  6326. v-if="
  6327. tType &&
  6328. tType == 2 &&
  6329. !sIsOpen &&
  6330. tool.tool.indexOf(52) != -1
  6331. "
  6332. class="worksBox"
  6333. >
  6334. <div
  6335. class="zuoyeYulan"
  6336. v-if="workStudent[toolIndex].length > 0"
  6337. >
  6338. <span class="worksTitle">作业预览</span>
  6339. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6340. </div>
  6341. <div
  6342. class="worksDetailBox"
  6343. v-if="workStudent[toolIndex].length > 0"
  6344. >
  6345. <div
  6346. class="works"
  6347. style="
  6348. width: 200px;
  6349. height: 140px;
  6350. margin: 10px 10px 10px 0;
  6351. box-shadow: 0 0 6px 1px #dfdada;
  6352. "
  6353. v-for="(w, wIndex) in workStudent[toolIndex]"
  6354. :key="wIndex"
  6355. >
  6356. <div class="workImg">
  6357. <img :src="word" @click="openWord(w)" alt />
  6358. <div
  6359. class="answerScore"
  6360. v-if="w.score"
  6361. @click.stop="openScore(w)"
  6362. :class="{
  6363. rightW:
  6364. w.userid == userid || tType == 1 || tType == 4,
  6365. }"
  6366. >
  6367. {{ JSON.parse(w.score).wScore }}分
  6368. </div>
  6369. <div
  6370. class="answerScore"
  6371. @click.stop="openScore(w)"
  6372. v-else-if="courseDetail.userid == userid"
  6373. :class="{
  6374. rightW:
  6375. w.userid == userid || tType == 1 || tType == 4,
  6376. }"
  6377. >
  6378. 评分
  6379. </div>
  6380. <img
  6381. class="deleteImg"
  6382. src="../../../assets/deleteworks.png"
  6383. v-if="
  6384. w.userid == userid || tType == 1 || tType == 4
  6385. "
  6386. @click.stop="deleteWorks(w.wid)"
  6387. alt
  6388. />
  6389. </div>
  6390. <div class="worksName">
  6391. <div>{{ w.sName }}</div>
  6392. </div>
  6393. </div>
  6394. </div>
  6395. </div>
  6396. <div
  6397. v-if="tool.tool.indexOf(49) != -1"
  6398. class="xuan_right_box"
  6399. style="margin: 0 15px 0 25px; width: 93%"
  6400. >
  6401. <div
  6402. v-if="courseDetail.userid == userid"
  6403. style="
  6404. display: flex;
  6405. justify-content: flex-end;
  6406. margin-right: 10px;
  6407. "
  6408. >
  6409. <el-button
  6410. type="primary"
  6411. size="small"
  6412. @click="addTools(49, toolIndex, taskCount)"
  6413. >分组设置</el-button
  6414. >
  6415. </div>
  6416. <div
  6417. v-if="groupStudentUid[toolIndex]"
  6418. class="group_staic_box"
  6419. >
  6420. <div
  6421. v-for="(gp, gd) in tool.groupJson.group"
  6422. :key="gd"
  6423. class="group_staic"
  6424. >
  6425. <span> {{ gp.name }}</span>
  6426. <span>
  6427. 目前人数{{
  6428. groupStudentUid[toolIndex][gd].length
  6429. }}人</span
  6430. >
  6431. </div>
  6432. </div>
  6433. </div>
  6434. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  6435. <div
  6436. class="zuoyeYulan"
  6437. v-if="
  6438. worksStudent.length &&
  6439. worksStudent[toolIndex].length > 0
  6440. "
  6441. >
  6442. <span class="worksTitle">作业预览</span>
  6443. </div>
  6444. <div>
  6445. <div
  6446. class="group_workBox"
  6447. v-for="(g, gindex) in tool.groupJson.group"
  6448. :key="gindex"
  6449. >
  6450. <div
  6451. class="group_box"
  6452. v-if="
  6453. groupStudentUid[toolIndex] &&
  6454. worksStudent[toolIndex] &&
  6455. (worksStudent[toolIndex][gindex].length ||
  6456. groupStudentUid[toolIndex][gindex].indexOf(
  6457. userid
  6458. ) != -1)
  6459. "
  6460. >
  6461. <div class="group_title">
  6462. <el-tooltip
  6463. class="item"
  6464. effect="light"
  6465. :content="g.name"
  6466. placement="top"
  6467. >
  6468. <div class="group_name">{{ g.name }}</div>
  6469. </el-tooltip>
  6470. <el-button
  6471. type="primary"
  6472. v-if="
  6473. groupStudentUid[toolIndex][gindex].indexOf(
  6474. userid
  6475. ) != -1
  6476. "
  6477. @click="groupUpload(toolIndex, taskCount, gindex)"
  6478. >上传作业</el-button
  6479. >
  6480. </div>
  6481. <div class="group_work">
  6482. <div
  6483. class="works"
  6484. style="
  6485. width: 200px;
  6486. height: 140px;
  6487. margin: 10px 10px 10px 0;
  6488. border-radius: 15px;
  6489. box-shadow: 0 0 6px 1px #dfdada;
  6490. "
  6491. v-for="(w, wIndex) in worksStudent[toolIndex][
  6492. gindex
  6493. ]"
  6494. :key="wIndex"
  6495. :class="w.type == 1 ? 'isTypeOne' : ''"
  6496. >
  6497. <div class="workImg" v-if="w.type == 0">
  6498. <img
  6499. :src="w.works"
  6500. @click="previewImg(w.works)"
  6501. alt
  6502. />
  6503. <div
  6504. class="answerScore"
  6505. v-if="w.score"
  6506. @click.stop="openScore(w)"
  6507. :class="{
  6508. rightW:
  6509. w.userid == userid ||
  6510. tType == 1 ||
  6511. tType == 4 ||
  6512. w.ateacher == userid,
  6513. }"
  6514. >
  6515. {{ JSON.parse(w.score).wScore }}分
  6516. </div>
  6517. <div
  6518. class="answerScore"
  6519. @click.stop="openScore(w)"
  6520. v-else-if="courseDetail.userid == userid"
  6521. :class="{
  6522. rightW:
  6523. w.userid == userid ||
  6524. tType == 1 ||
  6525. tType == 4 ||
  6526. w.ateacher == userid,
  6527. }"
  6528. >
  6529. 评分
  6530. </div>
  6531. <img
  6532. class="deleteImg"
  6533. src="../../../assets/deleteworks.png"
  6534. v-if="
  6535. w.userid == userid ||
  6536. tType == 1 ||
  6537. tType == 4
  6538. "
  6539. @click.stop="deleteWorks(w.wid)"
  6540. alt
  6541. />
  6542. </div>
  6543. <div class="workImg" v-if="w.type == 1">
  6544. <img
  6545. :src="word"
  6546. @click="openFile(w.works)"
  6547. alt
  6548. />
  6549. <!-- @click="openFile(w.works)" -->
  6550. <div
  6551. class="answerScore"
  6552. v-if="w.score"
  6553. @click.stop="openScore(w)"
  6554. :class="{
  6555. rightW:
  6556. w.userid == userid ||
  6557. tType == 1 ||
  6558. tType == 4 ||
  6559. w.ateacher == userid,
  6560. }"
  6561. >
  6562. {{ JSON.parse(w.score).wScore }}分
  6563. </div>
  6564. <div
  6565. class="answerScore"
  6566. @click.stop="openScore(w)"
  6567. v-else-if="courseDetail.userid == userid"
  6568. :class="{
  6569. rightW:
  6570. w.userid == userid ||
  6571. tType == 1 ||
  6572. tType == 4 ||
  6573. w.ateacher == userid,
  6574. }"
  6575. >
  6576. 评分
  6577. </div>
  6578. <img
  6579. class="deleteImg"
  6580. src="../../../assets/deleteworks.png"
  6581. v-if="
  6582. w.userid == userid ||
  6583. tType == 1 ||
  6584. tType == 4
  6585. "
  6586. @click.stop="deleteWorks(w.wid)"
  6587. alt
  6588. />
  6589. </div>
  6590. <div class="workImg" v-if="w.type == 3">
  6591. <img
  6592. style="cursor: pointer"
  6593. :src="video"
  6594. @click="openVideo(w)"
  6595. alt
  6596. />
  6597. <!-- @click="openVideo(w.works)" -->
  6598. <div
  6599. class="answerScore"
  6600. v-if="w.score"
  6601. @click.stop="openScore(w)"
  6602. :class="{
  6603. rightW:
  6604. w.userid == userid ||
  6605. tType == 1 ||
  6606. tType == 4 ||
  6607. w.ateacher == userid,
  6608. }"
  6609. >
  6610. {{ JSON.parse(w.score).wScore }}分
  6611. </div>
  6612. <div
  6613. class="answerScore"
  6614. @click.stop="openScore(w)"
  6615. v-else-if="courseDetail.userid == userid"
  6616. :class="{
  6617. rightW:
  6618. w.userid == userid ||
  6619. tType == 1 ||
  6620. tType == 4 ||
  6621. w.ateacher == userid,
  6622. }"
  6623. >
  6624. 评分
  6625. </div>
  6626. <img
  6627. class="deleteImg"
  6628. src="../../../assets/deleteworks.png"
  6629. v-if="
  6630. w.userid == userid ||
  6631. tType == 1 ||
  6632. tType == 4
  6633. "
  6634. @click.stop="deleteWorks(w.wid)"
  6635. alt
  6636. />
  6637. </div>
  6638. <div class="workImg" v-if="w.type == 12">
  6639. <img
  6640. style="cursor: pointer"
  6641. :src="word2"
  6642. @click="downloadFile(w.works)"
  6643. alt
  6644. />
  6645. <!-- @click="openVideo(w.works)" -->
  6646. <div
  6647. class="answerScore"
  6648. v-if="w.score"
  6649. @click.stop="openScore(w)"
  6650. :class="{
  6651. rightW:
  6652. w.userid == userid ||
  6653. tType == 1 ||
  6654. tType == 4 ||
  6655. w.ateacher == userid,
  6656. }"
  6657. >
  6658. {{ JSON.parse(w.score).wScore }}分
  6659. </div>
  6660. <div
  6661. class="answerScore"
  6662. @click.stop="openScore(w)"
  6663. v-else-if="courseDetail.userid == userid"
  6664. :class="{
  6665. rightW:
  6666. w.userid == userid ||
  6667. tType == 1 ||
  6668. tType == 4 ||
  6669. w.ateacher == userid,
  6670. }"
  6671. >
  6672. 评分
  6673. </div>
  6674. <img
  6675. class="deleteImg"
  6676. src="../../../assets/deleteworks.png"
  6677. v-if="
  6678. w.userid == userid ||
  6679. tType == 1 ||
  6680. tType == 4
  6681. "
  6682. @click.stop="deleteWorks(w.wid)"
  6683. alt
  6684. />
  6685. </div>
  6686. <div class="comment" style="min-width: 200px">
  6687. <div class="worksName">
  6688. <div>{{ w.sName }}</div>
  6689. </div>
  6690. <div class="commentList">
  6691. <div class="commentList">
  6692. <div
  6693. class="commentImg"
  6694. @click="
  6695. isLikes(
  6696. w.wid,
  6697. userid,
  6698. 1,
  6699. null,
  6700. w.isLikes
  6701. )
  6702. "
  6703. >
  6704. <img
  6705. :src="
  6706. w.isLikes == true ? likes : noLikes
  6707. "
  6708. alt=""
  6709. />
  6710. </div>
  6711. <div>{{ w.likesCount }}</div>
  6712. </div>
  6713. <div
  6714. class="commentList"
  6715. style="margin-right: 15px"
  6716. >
  6717. <div
  6718. class="commentImg"
  6719. @click="
  6720. commentOther(
  6721. w,
  6722. toolIndex,
  6723. wIndex,
  6724. gindex
  6725. )
  6726. "
  6727. >
  6728. <img
  6729. src="../../../assets/icon/comment/comment.png"
  6730. alt=""
  6731. />
  6732. </div>
  6733. <div>{{ w.commentCount }}</div>
  6734. </div>
  6735. </div>
  6736. </div>
  6737. </div>
  6738. </div>
  6739. </div>
  6740. </div>
  6741. </div>
  6742. </div>
  6743. </div>
  6744. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  6745. 上传文件
  6746. <input
  6747. type="file"
  6748. accept="image/png, image/gif, image/jpeg"
  6749. style="display: none"
  6750. @change="beforeUpload1($event, 2, index)"
  6751. />
  6752. </div>-->
  6753. </div>
  6754. </div>
  6755. <!-- <div
  6756. class="vedioBox"
  6757. style="margin-top: 10px"
  6758. v-if="
  6759. courseDetail.userid == userid ||
  6760. (courseDetail.course_teacher &&
  6761. courseDetail.course_teacher.indexOf(userid) != -1)
  6762. "
  6763. :style="{
  6764. borderRadius:
  6765. !(
  6766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6767. .toolChoose[0].tool &&
  6768. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6769. .toolChoose[0].tool.length > 0
  6770. ) &&
  6771. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6772. .taskDetail == '' &&
  6773. vChapterData[taskCount].length == 0 &&
  6774. fileC[taskCount].length == 0
  6775. ? '0 0 20px 20px'
  6776. : '20px',
  6777. }"
  6778. >
  6779. <div
  6780. class="queTop"
  6781. @click="isClose = !isClose"
  6782. style="
  6783. padding: 15px 0 15px 37px;
  6784. justify-content: space-between;
  6785. "
  6786. >
  6787. <div class="queTopTitle">新增工具</div>
  6788. <div class="queTopRight">
  6789. <div class="queTopClose" v-if="isClose == 0">
  6790. 展开
  6791. <div class="closeImg">
  6792. <img src="../../../assets/icon/newIcon/close.png" alt="" />
  6793. </div>
  6794. </div>
  6795. <div class="queTopClose" v-if="isClose == 1">
  6796. 折叠
  6797. <div class="openImg">
  6798. <img src="../../../assets/icon/newIcon/open.png" alt="" />
  6799. </div>
  6800. </div>
  6801. <el-button
  6802. style="margin: 0 30px 0 auto"
  6803. type="primary"
  6804. size="small"
  6805. v-if="isClose == 1 && checktoolArray.length > 0"
  6806. @click.stop="addToolChoose"
  6807. >确定</el-button
  6808. >
  6809. </div>
  6810. </div>
  6811. <div
  6812. class="tool_work_box"
  6813. :style="isClose == 0 ? 'display:none' : 'display:block'"
  6814. >
  6815. <div class="tool_box">
  6816. <div class="tool_type_box">
  6817. <div class="chooseWho">
  6818. <div
  6819. :class="toolType == 0 ? 'isChooseActive' : ''"
  6820. @click="(toolType = 0), $forceUpdate()"
  6821. >
  6822. 互动类
  6823. </div>
  6824. <div
  6825. :class="toolType == 1 ? 'isChooseActive' : ''"
  6826. @click="(toolType = 1), $forceUpdate()"
  6827. >
  6828. 思维类
  6829. </div>
  6830. <div
  6831. :class="toolType == 2 ? 'isChooseActive' : ''"
  6832. @click="(toolType = 2), $forceUpdate()"
  6833. >
  6834. 测评类
  6835. </div>
  6836. <div
  6837. :class="toolType == 3 ? 'isChooseActive' : ''"
  6838. @click="(toolType = 3), $forceUpdate()"
  6839. >
  6840. 编程类
  6841. </div>
  6842. <div
  6843. :class="toolType == 5 ? 'isChooseActive' : ''"
  6844. @click="(toolType = 5), $forceUpdate()"
  6845. >
  6846. 学科类
  6847. </div>
  6848. </div>
  6849. </div>
  6850. <div>
  6851. <div class="toolSort" v-if="toolType == 0">
  6852. <div class="tool">
  6853. <div class="whiteBIcon" @click="addTools2(10)">
  6854. <img
  6855. src="../../../assets/icon/thirdToolList/time.png"
  6856. alt
  6857. />
  6858. <div style="margin: 5px 0">倒计时</div>
  6859. </div>
  6860. <div class="check" @click="addTools2(10)">
  6861. <img
  6862. src="../../../assets/icon/checkNo.png"
  6863. alt
  6864. v-if="checktoolArray.indexOf(10) == -1"
  6865. />
  6866. <div class="checkDiv" v-else>
  6867. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6868. >已选择</span
  6869. >
  6870. </div>
  6871. </div>
  6872. </div>
  6873. <div class="tool">
  6874. <div class="whiteBIcon" @click="addTools2(65)">
  6875. <img
  6876. src="../../../assets/icon/firstToolList/pickPeople.png"
  6877. alt
  6878. />
  6879. <div style="margin: 5px 0">挑人</div>
  6880. </div>
  6881. <div class="check" @click="addTools2(65)">
  6882. <img
  6883. src="../../../assets/icon/checkNo.png"
  6884. alt
  6885. v-if="checktoolArray.indexOf(65) == -1"
  6886. />
  6887. <div class="checkDiv" v-else>
  6888. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6889. >已选择</span
  6890. >
  6891. </div>
  6892. </div>
  6893. </div>
  6894. </div>
  6895. <div class="toolSort" v-if="toolType == 1">
  6896. <div class="tool">
  6897. <div class="whiteBIcon" @click="addTools2(7)">
  6898. <img
  6899. src="../../../assets/icon/secondToolList/mindNetwork.png"
  6900. alt
  6901. />
  6902. <div style="margin: 5px 0">思维网格</div>
  6903. </div>
  6904. <div class="check" @click="addTools2(7)">
  6905. <img
  6906. src="../../../assets/icon/checkNo.png"
  6907. alt
  6908. v-if="checktoolArray.indexOf(7) == -1"
  6909. />
  6910. <div class="checkDiv" v-else>
  6911. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6912. >已选择</span
  6913. >
  6914. </div>
  6915. </div>
  6916. </div>
  6917. <div class="tool">
  6918. <div class="whiteBIcon" @click="addTools2(1)">
  6919. <img
  6920. src="../../../assets/icon/secondToolList/whiteBoard.png"
  6921. alt
  6922. />
  6923. <div style="margin: 5px 0">电子白板</div>
  6924. </div>
  6925. <div class="check" @click="addTools2(1)">
  6926. <img
  6927. src="../../../assets/icon/checkNo.png"
  6928. alt
  6929. v-if="checktoolArray.indexOf(1) == -1"
  6930. />
  6931. <div class="checkDiv" v-else>
  6932. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6933. >已选择</span
  6934. >
  6935. </div>
  6936. </div>
  6937. </div>
  6938. <div class="tool">
  6939. <div class="whiteBIcon" @click="addTools2(52)">
  6940. <img
  6941. src="../../../assets/icon/fourthToolList/text.png"
  6942. alt
  6943. />
  6944. <div style="margin: 5px 0">文档</div>
  6945. </div>
  6946. <div class="check" @click="addTools2(52)">
  6947. <img
  6948. src="../../../assets/icon/checkNo.png"
  6949. alt
  6950. v-if="checktoolArray.indexOf(52) == -1"
  6951. />
  6952. <div class="checkDiv" v-else>
  6953. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6954. >已选择</span
  6955. >
  6956. </div>
  6957. </div>
  6958. </div>
  6959. <div class="tool">
  6960. <div class="whiteBIcon" @click="addTools2(3)">
  6961. <img
  6962. src="../../../assets/icon/secondToolList/mindMapping.png"
  6963. alt
  6964. />
  6965. <div style="margin: 5px 0">思维导图</div>
  6966. </div>
  6967. <div class="check" @click="addTools2(3)">
  6968. <img
  6969. src="../../../assets/icon/checkNo.png"
  6970. alt
  6971. v-if="checktoolArray.indexOf(3) == -1"
  6972. />
  6973. <div class="checkDiv" v-else>
  6974. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6975. >已选择</span
  6976. >
  6977. </div>
  6978. </div>
  6979. </div>
  6980. <div class="tool">
  6981. <div class="whiteBIcon" @click="addTools2(48)">
  6982. <img
  6983. src="../../../assets/icon/fourthToolList/table.png"
  6984. alt
  6985. />
  6986. <div style="margin: 5px 0">表格</div>
  6987. </div>
  6988. <div class="check" @click="addTools2(48)">
  6989. <img
  6990. src="../../../assets/icon/checkNo.png"
  6991. alt
  6992. v-if="checktoolArray.indexOf(48) == -1"
  6993. />
  6994. <div class="checkDiv" v-else>
  6995. <img src="../../../assets/icon/checkedIs.png" alt /><span
  6996. >已选择</span
  6997. >
  6998. </div>
  6999. </div>
  7000. </div>
  7001. </div>
  7002. <div class="toolSort" v-if="toolType == 6">
  7003. <div v-show="tooC == 49">
  7004. <img
  7005. @click="addTools(tooC, toolIndex, taskCount)"
  7006. src="../../../assets/icon/fourthToolList/group.png"
  7007. alt
  7008. />
  7009. <div style="margin: 5px 0">学生分组</div>
  7010. </div>
  7011. </div>
  7012. <div class="toolSort" v-if="toolType == 2">
  7013. <div class="tool">
  7014. <div class="whiteBIcon" @click="addTools2(16)">
  7015. <img
  7016. src="../../../assets/icon/thirdToolList/work.png"
  7017. alt
  7018. />
  7019. <div style="margin: 5px 0">作业提交</div>
  7020. </div>
  7021. <div class="check" @click="addTools2(16)">
  7022. <img
  7023. src="../../../assets/icon/checkNo.png"
  7024. alt
  7025. v-if="checktoolArray.indexOf(16) == -1"
  7026. />
  7027. <div class="checkDiv" v-else>
  7028. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7029. >已选择</span
  7030. >
  7031. </div>
  7032. </div>
  7033. </div>
  7034. <div class="tool">
  7035. <div class="whiteBIcon" @click="addTools2(50)">
  7036. <img
  7037. src="../../../assets/icon/thirdToolList/plwork.png"
  7038. alt
  7039. />
  7040. <div style="margin: 5px 0">批量上传</div>
  7041. </div>
  7042. <div class="check" @click="addTools2(50)">
  7043. <img
  7044. src="../../../assets/icon/checkNo.png"
  7045. alt
  7046. v-if="checktoolArray.indexOf(50) == -1"
  7047. />
  7048. <div class="checkDiv" v-else>
  7049. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7050. >已选择</span
  7051. >
  7052. </div>
  7053. </div>
  7054. </div>
  7055. </div>
  7056. <div class="toolSort" v-if="toolType == 3">
  7057. <div class="tool">
  7058. <div class="whiteBIcon" @click="addTools2(18)">
  7059. <img
  7060. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  7061. alt
  7062. />
  7063. <div style="margin: 5px 0">训练平台</div>
  7064. </div>
  7065. <div class="check" @click="addTools2(18)">
  7066. <img
  7067. src="../../../assets/icon/checkNo.png"
  7068. alt
  7069. v-if="checktoolArray.indexOf(18) == -1"
  7070. />
  7071. <div class="checkDiv" v-else>
  7072. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7073. >已选择</span
  7074. >
  7075. </div>
  7076. </div>
  7077. </div>
  7078. <div class="tool">
  7079. <div class="whiteBIcon" @click="addTools2(21)">
  7080. <img
  7081. src="../../../assets/icon/fourthToolList/program.png"
  7082. alt
  7083. />
  7084. <div style="margin: 5px 0">AIoT Blockly</div>
  7085. </div>
  7086. <div class="check" @click="addTools2(21)">
  7087. <img
  7088. src="../../../assets/icon/checkNo.png"
  7089. alt
  7090. v-if="checktoolArray.indexOf(21) == -1"
  7091. />
  7092. <div class="checkDiv" v-else>
  7093. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7094. >已选择</span
  7095. >
  7096. </div>
  7097. </div>
  7098. </div>
  7099. <div class="tool">
  7100. <div class="whiteBIcon" @click="addTools2(23)">
  7101. <img
  7102. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  7103. alt
  7104. />
  7105. <div style="margin: 5px 0">AI Python</div>
  7106. </div>
  7107. <div class="check" @click="addTools2(23)">
  7108. <img
  7109. src="../../../assets/icon/checkNo.png"
  7110. alt
  7111. v-if="checktoolArray.indexOf(23) == -1"
  7112. />
  7113. <div class="checkDiv" v-else>
  7114. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7115. >已选择</span
  7116. >
  7117. </div>
  7118. </div>
  7119. </div>
  7120. <div class="tool">
  7121. <div class="whiteBIcon" @click="addTools2(24)">
  7122. <img
  7123. src="../../../assets/icon/fourthToolList/AIprogram.png"
  7124. alt
  7125. />
  7126. <div style="margin: 5px 0">AI Blockly</div>
  7127. </div>
  7128. <div class="check" @click="addTools2(24)">
  7129. <img
  7130. src="../../../assets/icon/checkNo.png"
  7131. alt
  7132. v-if="checktoolArray.indexOf(24) == -1"
  7133. />
  7134. <div class="checkDiv" v-else>
  7135. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7136. >已选择</span
  7137. >
  7138. </div>
  7139. </div>
  7140. </div>
  7141. <div class="tool">
  7142. <div class="whiteBIcon" @click="addTools2(32)">
  7143. <img
  7144. src="../../../assets/icon/thirdToolList/code.png"
  7145. alt
  7146. />
  7147. <div style="margin: 5px 0">源码编辑</div>
  7148. </div>
  7149. <div class="check" @click="addTools2(32)">
  7150. <img
  7151. src="../../../assets/icon/checkNo.png"
  7152. alt
  7153. v-if="checktoolArray.indexOf(32) == -1"
  7154. />
  7155. <div class="checkDiv" v-else>
  7156. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7157. >已选择</span
  7158. >
  7159. </div>
  7160. </div>
  7161. </div>
  7162. <div class="tool">
  7163. <div class="whiteBIcon" @click="addTools2(57)">
  7164. <img
  7165. src="../../../assets/icon/fourthToolList/cocopi.png"
  7166. alt
  7167. />
  7168. <div style="margin: 5px 0">CocoPi</div>
  7169. </div>
  7170. <div class="check" @click="addTools2(57)">
  7171. <img
  7172. src="../../../assets/icon/checkNo.png"
  7173. alt
  7174. v-if="checktoolArray.indexOf(57) == -1"
  7175. />
  7176. <div class="checkDiv" v-else>
  7177. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7178. >已选择</span
  7179. >
  7180. </div>
  7181. </div>
  7182. </div>
  7183. <div class="tool">
  7184. <div class="whiteBIcon" @click="addTools2(63)">
  7185. <img
  7186. src="../../../assets/icon/fourthToolList/Wood.png"
  7187. alt
  7188. />
  7189. <div style="margin: 5px 0">海龟编程</div>
  7190. </div>
  7191. <div class="check" @click="addTools2(63)">
  7192. <img
  7193. src="../../../assets/icon/checkNo.png"
  7194. alt
  7195. v-if="checktoolArray.indexOf(63) == -1"
  7196. />
  7197. <div class="checkDiv" v-else>
  7198. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7199. >已选择</span
  7200. >
  7201. </div>
  7202. </div>
  7203. </div>
  7204. </div>
  7205. <div class="toolSort" v-if="toolType == 5">
  7206. <div class="tool">
  7207. <div class="whiteBIcon" @click="addTools2(28)">
  7208. <img
  7209. src="../../../assets/icon/secondToolList/translation.png"
  7210. alt
  7211. />
  7212. <div style="margin: 5px 0">翻译</div>
  7213. </div>
  7214. <div class="check" @click="addTools2(28)">
  7215. <img
  7216. src="../../../assets/icon/checkNo.png"
  7217. alt
  7218. v-if="checktoolArray.indexOf(28) == -1"
  7219. />
  7220. <div class="checkDiv" v-else>
  7221. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7222. >已选择</span
  7223. >
  7224. </div>
  7225. </div>
  7226. </div>
  7227. <div class="tool">
  7228. <div class="whiteBIcon" @click="addTools2(31)">
  7229. <img
  7230. src="../../../assets/icon/secondToolList/networkPanel.png"
  7231. alt
  7232. />
  7233. <div style="margin: 5px 0">数字画板</div>
  7234. </div>
  7235. <div class="check" @click="addTools2(31)">
  7236. <img
  7237. src="../../../assets/icon/checkNo.png"
  7238. alt
  7239. v-if="checktoolArray.indexOf(31) == -1"
  7240. />
  7241. <div class="checkDiv" v-else>
  7242. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7243. >已选择</span
  7244. >
  7245. </div>
  7246. </div>
  7247. </div>
  7248. <div class="tool">
  7249. <div class="whiteBIcon" @click="addTools2(39)">
  7250. <img
  7251. src="../../../assets/icon/secondToolList/GeoGebra.png"
  7252. alt
  7253. />
  7254. <div style="margin: 5px 0">GeoGebra</div>
  7255. </div>
  7256. <div class="check" @click="addTools2(39)">
  7257. <img
  7258. src="../../../assets/icon/checkNo.png"
  7259. alt
  7260. v-if="checktoolArray.indexOf(39) == -1"
  7261. />
  7262. <div class="checkDiv" v-else>
  7263. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7264. >已选择</span
  7265. >
  7266. </div>
  7267. </div>
  7268. </div>
  7269. <div class="tool">
  7270. <div class="whiteBIcon" @click="addTools2(66)">
  7271. <img
  7272. src="../../../assets/icon/secondToolList/formulaEdi.png"
  7273. alt
  7274. />
  7275. <div style="margin: 5px 0">公式编辑</div>
  7276. </div>
  7277. <div class="check" @click="addTools2(66)">
  7278. <img
  7279. src="../../../assets/icon/checkNo.png"
  7280. alt
  7281. v-if="checktoolArray.indexOf(66) == -1"
  7282. />
  7283. <div class="checkDiv" v-else>
  7284. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7285. >已选择</span
  7286. >
  7287. </div>
  7288. </div>
  7289. </div>
  7290. <div class="tool">
  7291. <div class="whiteBIcon" @click="addTools2(67)">
  7292. <img
  7293. src="../../../assets/icon/secondToolList/molStr.png"
  7294. alt
  7295. />
  7296. <div style="margin: 5px 0">分子结构</div>
  7297. </div>
  7298. <div class="check" @click="addTools2(67)">
  7299. <img
  7300. src="../../../assets/icon/checkNo.png"
  7301. alt
  7302. v-if="checktoolArray.indexOf(67) == -1"
  7303. />
  7304. <div class="checkDiv" v-else>
  7305. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7306. >已选择</span
  7307. >
  7308. </div>
  7309. </div>
  7310. </div>
  7311. <div class="tool">
  7312. <div class="whiteBIcon" @click="addTools2(68)">
  7313. <img
  7314. src="../../../assets/icon/secondToolList/timeAxis.png"
  7315. alt
  7316. />
  7317. <div style="margin: 5px 0">时间轴</div>
  7318. </div>
  7319. <div class="check" @click="addTools2(68)">
  7320. <img
  7321. src="../../../assets/icon/checkNo.png"
  7322. alt
  7323. v-if="checktoolArray.indexOf(68) == -1"
  7324. />
  7325. <div class="checkDiv" v-else>
  7326. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7327. >已选择</span
  7328. >
  7329. </div>
  7330. </div>
  7331. </div>
  7332. </div>
  7333. <div class="toolSort" v-if="toolType == 7">
  7334. <div class="tool">
  7335. <div class="whiteBIcon" @click="addTools2(40)">
  7336. <img
  7337. src="../../../assets/icon/secondToolList/eval.png"
  7338. alt
  7339. />
  7340. <div style="margin: 5px 0">个人评价</div>
  7341. </div>
  7342. <div class="check" @click="addTools2(40)">
  7343. <img
  7344. src="../../../assets/icon/checkNo.png"
  7345. alt
  7346. v-if="checktoolArray.indexOf(40) == -1"
  7347. />
  7348. <div class="checkDiv" v-else>
  7349. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7350. >已选择</span
  7351. >
  7352. </div>
  7353. </div>
  7354. </div>
  7355. </div>
  7356. <div class="toolSort" v-if="toolType == 4">
  7357. <div class="tool">
  7358. <div class="whiteBIcon" @click="addTools2(26)">
  7359. <img
  7360. src="../../../assets/icon/thirdToolList/courseDesign.png"
  7361. alt
  7362. />
  7363. <div style="margin: 5px 0">课程设计</div>
  7364. </div>
  7365. <div class="check" @click="addTools2(26)">
  7366. <img
  7367. src="../../../assets/icon/checkNo.png"
  7368. alt
  7369. v-if="checktoolArray.indexOf(26) == -1"
  7370. />
  7371. <div class="checkDiv" v-else>
  7372. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7373. >已选择</span
  7374. >
  7375. </div>
  7376. </div>
  7377. </div>
  7378. <div class="tool">
  7379. <div class="whiteBIcon" @click="addTools2(25)">
  7380. <img
  7381. src="../../../assets/icon/thirdToolList/evalua.png"
  7382. alt
  7383. />
  7384. <div style="margin: 5px 0">目标管理</div>
  7385. </div>
  7386. <div class="check" @click="addTools2(25)">
  7387. <img
  7388. src="../../../assets/icon/checkNo.png"
  7389. alt
  7390. v-if="checktoolArray.indexOf(25) == -1"
  7391. />
  7392. <div class="checkDiv" v-else>
  7393. <img src="../../../assets/icon/checkedIs.png" alt /><span
  7394. >已选择</span
  7395. >
  7396. </div>
  7397. </div>
  7398. </div>
  7399. </div>
  7400. </div>
  7401. </div>
  7402. </div>
  7403. </div> -->
  7404. <div
  7405. class="vedioBox"
  7406. style="margin-top: 10px; border-radius: 20px"
  7407. v-if="
  7408. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7409. .eList &&
  7410. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7411. .eList.length &&
  7412. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7413. .eList.length > 0 &&
  7414. tType != 2
  7415. "
  7416. >
  7417. <div
  7418. class="queTop"
  7419. style="
  7420. font-size: 20px;
  7421. padding: 15px 0 15px 37px;
  7422. font-weight: bold;
  7423. "
  7424. >
  7425. <!-- <div class="question" style="width: 30px">
  7426. <img src="../assets/icon/toolIcon.png" alt />
  7427. </div>
  7428. <div class="queTitle">
  7429. <div>工具</div>
  7430. </div>-->
  7431. 评一评
  7432. </div>
  7433. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  7434. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  7435. <el-table
  7436. :data="
  7437. chapInfoList[courseType].chapterInfo[0].taskJson[
  7438. taskCount
  7439. ].eList
  7440. "
  7441. :header-cell-style="{ background: '#F0F4FA' }"
  7442. :row-class-name="tableRowClassName"
  7443. border
  7444. stripe
  7445. style="width: 100%"
  7446. >
  7447. <el-table-column
  7448. label="评价名称"
  7449. align="center"
  7450. >
  7451. <template slot-scope="scope"
  7452. ><div>{{ scope.row.value }}</div></template
  7453. >
  7454. </el-table-column>
  7455. <el-table-column
  7456. label="评价描述"
  7457. align="center"
  7458. >
  7459. <template slot-scope="scope"
  7460. ><div>
  7461. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  7462. </div></template
  7463. >
  7464. </el-table-column>
  7465. <el-table-column label="目标" align="center">
  7466. <template slot-scope="scope"
  7467. ><div>
  7468. {{
  7469. scope.row.target
  7470. ? scope.row.target[scope.row.target.length - 1]
  7471. : "-"
  7472. }}
  7473. </div></template
  7474. ></el-table-column
  7475. >
  7476. </el-table>
  7477. <!-- <div
  7478. v-for="(eItem, eIndex) in chapInfoList[courseType]
  7479. .chapterInfo[0].taskJson[taskCount].eList"
  7480. :key="eIndex"
  7481. class="elist_input_box"
  7482. >
  7483. <div style="width: 95%">
  7484. <div
  7485. style="
  7486. display: flex;
  7487. flex-direction: row;
  7488. flex-wrap: nowrap;
  7489. align-items: center;
  7490. "
  7491. >
  7492. <div style="max-width: calc(100% - 285px)">
  7493. <span>{{ eItem.value }}</span>
  7494. </div>
  7495. <div
  7496. style="
  7497. padding-left: 25px;
  7498. display: flex;
  7499. flex-direction: row;
  7500. align-items: center;
  7501. "
  7502. >
  7503. <el-rate
  7504. v-model="eItem.score"
  7505. :colors="colors"
  7506. disabled
  7507. ></el-rate>
  7508. </div>
  7509. </div>
  7510. <div class="elist_inptu_text" style="padding-left: 10px">
  7511. <span v-if="eItem.detail != ''">{{
  7512. eItem.detail
  7513. }}</span>
  7514. <span v-else style="color: #b2b1b3; font-size: 14px"
  7515. >暂无描述...</span
  7516. >
  7517. </div>
  7518. </div>
  7519. </div> -->
  7520. </div>
  7521. <div
  7522. v-if="evalua"
  7523. style="
  7524. border: 1px solid #e5e5e5;
  7525. max-width: 650px;
  7526. width: 100%;
  7527. margin-top: 20px;
  7528. box-shadow: 3px 1px 15px 3px #e0e0e0;
  7529. "
  7530. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  7531. >
  7532. <div class="e_add_top">
  7533. <div class="e_add_title" style="width: 100%">
  7534. <!-- <span>目标管理名称</span> -->
  7535. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  7536. <img
  7537. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  7538. src="../../../assets/line.png"
  7539. class="cru_line"
  7540. style="
  7541. width: 125px;
  7542. height: 20px;
  7543. bottom: -10px;
  7544. left: 5px;
  7545. "
  7546. />
  7547. <!-- <el-input
  7548. v-model="eTitle"
  7549. placeholder="请输入名称"
  7550. @change="setMindData"
  7551. ></el-input>-->
  7552. <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>
  7553. <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>
  7554. </div>
  7555. </div>
  7556. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  7557. <div class="e_add_list_pbox">
  7558. <div class="e_add_list_pbox_title">
  7559. <!-- <span class="type_title">切换模式</span> -->
  7560. <div class="type_content">
  7561. <span
  7562. :class="{ active: typeMode == 1 }"
  7563. @click="typeMode = 1"
  7564. >目标树</span
  7565. >
  7566. <span
  7567. :class="{ active: typeMode == 2 }"
  7568. @click="typeMode = 2"
  7569. >目标罗盘</span
  7570. >
  7571. <!-- <span
  7572. :class="{ active: typeMode == 3 }"
  7573. @click="typeMode = 3"
  7574. >目标看板</span
  7575. > -->
  7576. </div>
  7577. </div>
  7578. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  7579. <Mind
  7580. :showBar="false"
  7581. :mindData="data"
  7582. style="width: 100%"
  7583. v-show="typeMode == 1"
  7584. ></Mind>
  7585. <Sunburst
  7586. :Josn="eJson"
  7587. :num="eJSONNum"
  7588. style="width: 100%"
  7589. v-if="typeMode == 2"
  7590. ></Sunburst>
  7591. <SeeBoard
  7592. :Josn="eJson"
  7593. :num="eJSONNum"
  7594. :ename="eTitle"
  7595. style="width: 100%"
  7596. v-if="typeMode == 3"
  7597. >
  7598. </SeeBoard>
  7599. </div>
  7600. </div>
  7601. </div>
  7602. </div>
  7603. </div>
  7604. </div>
  7605. <!-- <div
  7606. class="project_box"
  7607. style="margin-top: 15px; padding-bottom: 30px"
  7608. >
  7609. <div
  7610. style="
  7611. display: flex;
  7612. flex-wrap: nowrap;
  7613. flex-direction: column;
  7614. position: relative;
  7615. "
  7616. >
  7617. <div class="queTop">
  7618. <div class="question">
  7619. <img src="../../../assets/icon/homeWork.png" alt="" />
  7620. </div>
  7621. <div class="queTitle">
  7622. <div>作业提交<span>(提交图文视频等)</span></div>
  7623. <div>:任务:{{ task.task }}</div>
  7624. </div>
  7625. </div>
  7626. <div class="ediBottom">
  7627. <div
  7628. class="addEditor"
  7629. style="margin-top: 23px"
  7630. @click="openAddWork"
  7631. v-if="!isNoHomeWork"
  7632. >
  7633. 选择文件
  7634. </div>
  7635. <div
  7636. class="addEditor"
  7637. style="margin-top: 23px"
  7638. @click="openAddWork"
  7639. v-else
  7640. >
  7641. 已提交
  7642. </div>
  7643. </div>
  7644. </div>
  7645. </div>-->
  7646. </div>
  7647. </div>
  7648. <el-dialog
  7649. title="作业提交"
  7650. :visible.sync="dialogVisible"
  7651. :append-to-body="true"
  7652. width="500px"
  7653. :before-close="handleClose"
  7654. class="dialog_change"
  7655. >
  7656. <div class="marginT">
  7657. <div>上传文件</div>
  7658. <div
  7659. class="chapter_add"
  7660. @click="addImg($event)"
  7661. v-if="studyJuri[0].cover.length == 0"
  7662. >
  7663. <div class="up_photo">
  7664. <img src="../../../assets/icon/uploadImg.png" alt />
  7665. </div>
  7666. <!-- <input
  7667. type="file"
  7668. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  7669. style="display: none"
  7670. @change="beforeUpload1($event, 1)"
  7671. /> -->
  7672. <input
  7673. type="file"
  7674. accept="*"
  7675. style="display: none"
  7676. @change="beforeUpload1($event, 1)"
  7677. />
  7678. <!-- <input
  7679. type="file"
  7680. accept="image/*"
  7681. capture="camera"
  7682. style="display: none"
  7683. @change="beforeUpload1($event, 1)"
  7684. /> -->
  7685. </div>
  7686. <div
  7687. class="chapter_add"
  7688. style="
  7689. display: flex;
  7690. width: 100%;
  7691. flex-direction: row;
  7692. flex-wrap: wrap;
  7693. justify-content: flex-start;
  7694. padding: 15px 0;
  7695. "
  7696. v-if="studyJuri[0].cover.length > 0"
  7697. >
  7698. <div class="upCover">
  7699. <img
  7700. :src="studyJuri[0].cover[0].url"
  7701. alt
  7702. v-if="fileType == 0"
  7703. />
  7704. <img :src="word" alt v-else-if="fileType == 1" />
  7705. <img :src="video" alt v-else-if="fileType == 2" />
  7706. <img :src="word2" alt v-else-if="fileType == 3" />
  7707. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  7708. <div class="deleteWord" @click="clean(1)">
  7709. <img src="../../../assets/icon/deleteWorks.png" alt />
  7710. </div>
  7711. </div>
  7712. </div>
  7713. </div>
  7714. <div
  7715. class="upload_send"
  7716. @click="addCourseWorks(taskCount)"
  7717. v-if="!proVisible"
  7718. >
  7719. 提交
  7720. </div>
  7721. </el-dialog>
  7722. </div>
  7723. </div>
  7724. <div
  7725. class="pButton"
  7726. @click="(pzDialog = true), selectPz()"
  7727. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  7728. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  7729. >
  7730. <!-- 批 -->
  7731. <img src="../../../assets/mlBtn.png" style="width: 25px" alt="" />
  7732. </div>
  7733. <div v-if="pzDialog == true" class="newDialogCss">
  7734. <div class="pzTop2">
  7735. <!-- <div>评论</div>
  7736. <div @click="pzDialog = false">
  7737. <img src="../../../assets/close1.png" alt="" />
  7738. </div> -->
  7739. <div class="checkbox">
  7740. <div class="check" style="font-size: 25px; position: unset">
  7741. 评论
  7742. </div>
  7743. <el-select v-model="pzStype" @change="selectPz" class="selectBox">
  7744. <el-option label="时间降序" :value="1"></el-option>
  7745. <el-option label="时间升序" :value="2"></el-option>
  7746. <el-option label="我的评课" :value="3"></el-option>
  7747. </el-select>
  7748. <img src="../../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  7749. </div>
  7750. </div>
  7751. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  7752. <div class="pzListBox" v-if="pzList && pzList.length">
  7753. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  7754. <div class="pzNavTop">
  7755. <div>评</div>
  7756. <div>
  7757. {{
  7758. pz.username && pz.username.length > 5
  7759. ? pz.username.substring(0, 5) + "..."
  7760. : pz.username
  7761. }}的评论
  7762. </div>
  7763. <div
  7764. class="pzDelete"
  7765. v-if="pz.userid == userid"
  7766. @click="deletePz(pz.id)"
  7767. >
  7768. 删除
  7769. </div>
  7770. </div>
  7771. <div
  7772. @click="checkImg(getImgList(pz.content))"
  7773. class="pzContent cont"
  7774. v-html="pz.content"
  7775. v-if="pz.type == '1'"
  7776. ></div>
  7777. <div class="pzContent" v-if="pz.type == '2'">
  7778. <audio :src="pz.content" controls="controls" ref="audio">
  7779. Your browser does not support the audio element.
  7780. </audio>
  7781. </div>
  7782. <div class="pzContent" v-if="pz.type == '3'">
  7783. <img
  7784. :src="pz.content"
  7785. style="width: 90%; margin: 0 auto; display: block"
  7786. @click="previewImg(pz.content)"
  7787. />
  7788. </div>
  7789. <div class="timeAndReply">
  7790. <div class="time">
  7791. {{ pz.time }}
  7792. </div>
  7793. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  7794. </div>
  7795. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  7796. <div
  7797. v-for="(h, hIndex) in pz.hfList"
  7798. :key="hIndex"
  7799. class="hfItem"
  7800. >
  7801. <div class="whoReplyWho">
  7802. <div class="hfName">{{ h.username }}</div>
  7803. <div class="hfImg">
  7804. <img src="../../../assets/icon/newIcons/right.png" alt="" />
  7805. </div>
  7806. <div class="hfName">{{ pz.username }}</div>
  7807. </div>
  7808. <div class="hfContent" v-html="h.content"></div>
  7809. <div class="hfBottom">
  7810. <div class="hfTime">{{ h.time }}</div>
  7811. <div
  7812. class="deleteHfItem"
  7813. @click="deleteReply(h.id)"
  7814. v-if="userid == h.userid"
  7815. >
  7816. <img src="../../../assets/icon/newIcons/delete.png" alt="" />
  7817. </div>
  7818. </div>
  7819. </div>
  7820. </div>
  7821. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  7822. <div class="replyInput">
  7823. <el-input v-model="reply[pzIndex]"></el-input>
  7824. </div>
  7825. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  7826. </div> -->
  7827. </div>
  7828. </div>
  7829. <div class="noPz" v-else>
  7830. <img src="../../../assets/icon/noPz.png" alt="" />
  7831. </div>
  7832. <div class="addPzButton">
  7833. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  7834. 添加评论
  7835. </div>
  7836. <!-- <div class="img1">
  7837. <div @click="(addPzDialog = true), (pzType = 2)">
  7838. <img src="../../../assets/audio.png" /><span>音频</span>
  7839. </div>
  7840. </div> -->
  7841. </div>
  7842. </div>
  7843. </div>
  7844. <div
  7845. v-if="toolDialogVisible == true"
  7846. class="toolMask"
  7847. @click="toolDialogVisible = false"
  7848. ></div>
  7849. <div v-if="toolDialogVisible == true" class="addToolCss">
  7850. <div class="toolTop">
  7851. <div style="font-weight: bold">新增工具</div>
  7852. <div @click="toolDialogVisible = false">
  7853. <img src="../../../assets/icon/close.png" class="toolClose" alt="" />
  7854. </div>
  7855. </div>
  7856. <div class="tool_box">
  7857. <div class="tool_type_box">
  7858. <div class="chooseWho">
  7859. <div
  7860. :class="toolType == 0 ? 'isChooseActive' : ''"
  7861. @click="(toolType = 0), $forceUpdate()"
  7862. >
  7863. 互动类
  7864. </div>
  7865. <div
  7866. :class="toolType == 1 ? 'isChooseActive' : ''"
  7867. @click="(toolType = 1), $forceUpdate()"
  7868. >
  7869. 思维类
  7870. </div>
  7871. <div
  7872. :class="toolType == 2 ? 'isChooseActive' : ''"
  7873. @click="(toolType = 2), $forceUpdate()"
  7874. >
  7875. 测评类
  7876. </div>
  7877. <div
  7878. :class="toolType == 3 ? 'isChooseActive' : ''"
  7879. @click="(toolType = 3), $forceUpdate()"
  7880. >
  7881. 编程类
  7882. </div>
  7883. <div
  7884. :class="toolType == 5 ? 'isChooseActive' : ''"
  7885. @click="(toolType = 5), $forceUpdate()"
  7886. >
  7887. 学科类
  7888. </div>
  7889. </div>
  7890. </div>
  7891. <div>
  7892. <div class="toolSort" v-if="toolType == 0">
  7893. <div
  7894. class="tool"
  7895. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  7896. @click="addTools2(10)"
  7897. >
  7898. <div class="whiteBIcon">
  7899. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  7900. <div style="margin: 5px 0">倒计时</div>
  7901. </div>
  7902. <div class="check">
  7903. <div
  7904. v-if="checktoolArray.indexOf(10) == -1"
  7905. class="noChoose"
  7906. ></div>
  7907. <div v-else class="isChoose"></div>
  7908. </div>
  7909. </div>
  7910. <div
  7911. class="tool"
  7912. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  7913. @click="addTools2(65)"
  7914. >
  7915. <div class="whiteBIcon">
  7916. <img src="../../../assets/icon/firstToolList/pickPeople.png" alt />
  7917. <div style="margin: 5px 0">挑人</div>
  7918. </div>
  7919. <div class="check">
  7920. <div
  7921. v-if="checktoolArray.indexOf(65) == -1"
  7922. class="noChoose"
  7923. ></div>
  7924. <div v-else class="isChoose"></div>
  7925. </div>
  7926. </div>
  7927. </div>
  7928. <div class="toolSort" v-if="toolType == 1">
  7929. <div
  7930. class="tool"
  7931. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  7932. @click="addTools2(7)"
  7933. >
  7934. <div class="whiteBIcon">
  7935. <img
  7936. src="../../../assets/icon/secondToolList/mindNetwork.png"
  7937. alt
  7938. />
  7939. <div style="margin: 5px 0">思维网格</div>
  7940. </div>
  7941. <div class="check">
  7942. <div
  7943. v-if="checktoolArray.indexOf(7) == -1"
  7944. class="noChoose"
  7945. ></div>
  7946. <div v-else class="isChoose"></div>
  7947. </div>
  7948. </div>
  7949. <div
  7950. class="tool"
  7951. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  7952. @click="addTools2(1)"
  7953. >
  7954. <div class="whiteBIcon">
  7955. <img
  7956. src="../../../assets/icon/secondToolList/whiteBoard.png"
  7957. alt
  7958. />
  7959. <div style="margin: 5px 0">电子白板</div>
  7960. </div>
  7961. <div class="check">
  7962. <div
  7963. v-if="checktoolArray.indexOf(1) == -1"
  7964. class="noChoose"
  7965. ></div>
  7966. <div v-else class="isChoose"></div>
  7967. </div>
  7968. </div>
  7969. <div
  7970. class="tool"
  7971. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  7972. @click="addTools2(52)"
  7973. >
  7974. <div class="whiteBIcon">
  7975. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  7976. <div style="margin: 5px 0">文档</div>
  7977. </div>
  7978. <div class="check">
  7979. <div
  7980. v-if="checktoolArray.indexOf(52) == -1"
  7981. class="noChoose"
  7982. ></div>
  7983. <div v-else class="isChoose"></div>
  7984. </div>
  7985. </div>
  7986. <div
  7987. class="tool"
  7988. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  7989. @click="addTools2(3)"
  7990. >
  7991. <div class="whiteBIcon">
  7992. <img
  7993. src="../../../assets/icon/secondToolList/mindMapping.png"
  7994. alt
  7995. />
  7996. <div style="margin: 5px 0">思维导图</div>
  7997. </div>
  7998. <div class="check">
  7999. <div
  8000. v-if="checktoolArray.indexOf(3) == -1"
  8001. class="noChoose"
  8002. ></div>
  8003. <div v-else class="isChoose"></div>
  8004. </div>
  8005. </div>
  8006. <div
  8007. class="tool"
  8008. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  8009. @click="addTools2(48)"
  8010. >
  8011. <div class="whiteBIcon">
  8012. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  8013. <div style="margin: 5px 0">表格</div>
  8014. </div>
  8015. <div class="check">
  8016. <div
  8017. v-if="checktoolArray.indexOf(48) == -1"
  8018. class="noChoose"
  8019. ></div>
  8020. <div v-else class="isChoose"></div>
  8021. </div>
  8022. </div>
  8023. </div>
  8024. <div class="toolSort" v-if="toolType == 6">
  8025. <div v-show="tooC == 49">
  8026. <img
  8027. @click="addTools(tooC, toolIndex, taskCount)"
  8028. src="../../../assets/icon/fourthToolList/group.png"
  8029. alt
  8030. />
  8031. <div style="margin: 5px 0">学生分组</div>
  8032. </div>
  8033. </div>
  8034. <div class="toolSort" v-if="toolType == 2">
  8035. <div
  8036. class="tool"
  8037. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  8038. @click="addTools2(16)"
  8039. >
  8040. <div class="whiteBIcon">
  8041. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  8042. <div style="margin: 5px 0">作业提交</div>
  8043. </div>
  8044. <div class="check">
  8045. <div
  8046. v-if="checktoolArray.indexOf(16) == -1"
  8047. class="noChoose"
  8048. ></div>
  8049. <div v-else class="isChoose"></div>
  8050. </div>
  8051. </div>
  8052. <div
  8053. class="tool"
  8054. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  8055. @click="addTools2(50)"
  8056. >
  8057. <div class="whiteBIcon">
  8058. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  8059. <div style="margin: 5px 0">批量上传</div>
  8060. </div>
  8061. <div class="check">
  8062. <div
  8063. v-if="checktoolArray.indexOf(50) == -1"
  8064. class="noChoose"
  8065. ></div>
  8066. <div v-else class="isChoose"></div>
  8067. </div>
  8068. </div>
  8069. </div>
  8070. <div class="toolSort" v-if="toolType == 3">
  8071. <div
  8072. class="tool"
  8073. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  8074. @click="addTools2(18)"
  8075. >
  8076. <div class="whiteBIcon">
  8077. <img
  8078. src="../../../assets/icon/thirdToolList/trainPlatform.png"
  8079. alt
  8080. />
  8081. <div style="margin: 5px 0">训练平台</div>
  8082. </div>
  8083. <div class="check">
  8084. <div
  8085. v-if="checktoolArray.indexOf(18) == -1"
  8086. class="noChoose"
  8087. ></div>
  8088. <div v-else class="isChoose"></div>
  8089. </div>
  8090. </div>
  8091. <div
  8092. class="tool"
  8093. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  8094. @click="addTools2(21)"
  8095. >
  8096. <div class="whiteBIcon">
  8097. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  8098. <div style="margin: 5px 0">AIoT Blockly</div>
  8099. </div>
  8100. <div class="check">
  8101. <div
  8102. v-if="checktoolArray.indexOf(21) == -1"
  8103. class="noChoose"
  8104. ></div>
  8105. <div v-else class="isChoose"></div>
  8106. </div>
  8107. </div>
  8108. <div
  8109. class="tool"
  8110. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  8111. @click="addTools2(23)"
  8112. >
  8113. <div class="whiteBIcon">
  8114. <img
  8115. src="../../../assets/icon/fourthToolList/Pythonprogram.png"
  8116. alt
  8117. />
  8118. <div style="margin: 5px 0">AI Python</div>
  8119. </div>
  8120. <div class="check">
  8121. <div
  8122. v-if="checktoolArray.indexOf(23) == -1"
  8123. class="noChoose"
  8124. ></div>
  8125. <div v-else class="isChoose"></div>
  8126. </div>
  8127. </div>
  8128. <div
  8129. class="tool"
  8130. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  8131. @click="addTools2(24)"
  8132. >
  8133. <div class="whiteBIcon">
  8134. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  8135. <div style="margin: 5px 0">AI Blockly</div>
  8136. </div>
  8137. <div class="check">
  8138. <div
  8139. v-if="checktoolArray.indexOf(24) == -1"
  8140. class="noChoose"
  8141. ></div>
  8142. <div v-else class="isChoose"></div>
  8143. </div>
  8144. </div>
  8145. <div
  8146. class="tool"
  8147. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  8148. @click="addTools2(32)"
  8149. >
  8150. <div class="whiteBIcon">
  8151. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  8152. <div style="margin: 5px 0">源码编辑</div>
  8153. </div>
  8154. <div class="check">
  8155. <div
  8156. v-if="checktoolArray.indexOf(32) == -1"
  8157. class="noChoose"
  8158. ></div>
  8159. <div v-else class="isChoose"></div>
  8160. </div>
  8161. </div>
  8162. <div
  8163. class="tool"
  8164. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  8165. @click="addTools2(57)"
  8166. >
  8167. <div class="whiteBIcon">
  8168. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  8169. <div style="margin: 5px 0">CocoPi</div>
  8170. </div>
  8171. <div class="check">
  8172. <div
  8173. v-if="checktoolArray.indexOf(57) == -1"
  8174. class="noChoose"
  8175. ></div>
  8176. <div v-else class="isChoose"></div>
  8177. </div>
  8178. </div>
  8179. <div
  8180. class="tool"
  8181. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  8182. @click="addTools2(63)"
  8183. >
  8184. <div class="whiteBIcon">
  8185. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  8186. <div style="margin: 5px 0">海龟编程</div>
  8187. </div>
  8188. <div class="check">
  8189. <div
  8190. v-if="checktoolArray.indexOf(63) == -1"
  8191. class="noChoose"
  8192. ></div>
  8193. <div v-else class="isChoose"></div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. <div class="toolSort" v-if="toolType == 7">
  8198. <div
  8199. class="tool"
  8200. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  8201. @click="addTools2(40)"
  8202. >
  8203. <div class="whiteBIcon">
  8204. <img src="../../../assets/icon/secondToolList/eval.png" alt />
  8205. <div style="margin: 5px 0">个人评价</div>
  8206. </div>
  8207. <div class="check">
  8208. <div
  8209. v-if="checktoolArray.indexOf(40) == -1"
  8210. class="noChoose"
  8211. ></div>
  8212. <div v-else class="isChoose"></div>
  8213. </div>
  8214. </div>
  8215. </div>
  8216. <div class="toolSort" v-if="toolType == 5">
  8217. <div
  8218. class="tool"
  8219. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  8220. @click="addTools2(28)"
  8221. >
  8222. <div class="whiteBIcon">
  8223. <img
  8224. src="../../../assets/icon/secondToolList/translation.png"
  8225. alt
  8226. />
  8227. <div style="margin: 5px 0">翻译</div>
  8228. </div>
  8229. <div class="check">
  8230. <div
  8231. v-if="checktoolArray.indexOf(28) == -1"
  8232. class="noChoose"
  8233. ></div>
  8234. <div v-else class="isChoose"></div>
  8235. </div>
  8236. </div>
  8237. <div
  8238. class="tool"
  8239. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  8240. @click="addTools2(31)"
  8241. >
  8242. <div class="whiteBIcon">
  8243. <img
  8244. src="../../../assets/icon/secondToolList/networkPanel.png"
  8245. alt
  8246. />
  8247. <div style="margin: 5px 0">数字画板</div>
  8248. </div>
  8249. <div class="check">
  8250. <div
  8251. v-if="checktoolArray.indexOf(31) == -1"
  8252. class="noChoose"
  8253. ></div>
  8254. <div v-else class="isChoose"></div>
  8255. </div>
  8256. </div>
  8257. <div
  8258. class="tool"
  8259. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  8260. @click="addTools2(39)"
  8261. >
  8262. <div class="whiteBIcon">
  8263. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  8264. <div style="margin: 5px 0">GeoGebra</div>
  8265. </div>
  8266. <div class="check">
  8267. <div
  8268. v-if="checktoolArray.indexOf(39) == -1"
  8269. class="noChoose"
  8270. ></div>
  8271. <div v-else class="isChoose"></div>
  8272. </div>
  8273. </div>
  8274. <div
  8275. class="tool"
  8276. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  8277. @click="addTools2(66)"
  8278. >
  8279. <div class="whiteBIcon">
  8280. <img
  8281. src="../../../assets/icon/secondToolList/formulaEdi.png"
  8282. alt
  8283. />
  8284. <div style="margin: 5px 0">公式编辑</div>
  8285. </div>
  8286. <div class="check">
  8287. <div
  8288. v-if="checktoolArray.indexOf(66) == -1"
  8289. class="noChoose"
  8290. ></div>
  8291. <div v-else class="isChoose"></div>
  8292. </div>
  8293. </div>
  8294. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  8295. <div class="whiteBIcon" @click="addTools2(67)">
  8296. <img src="../../../../assets/icon/secondToolList/molStr.png" alt />
  8297. <div style="margin: 5px 0">分子结构</div>
  8298. </div>
  8299. <div class="check" @click="addTools2(67)">
  8300. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  8301. <div v-else class="isChoose"></div>
  8302. </div>
  8303. </div> -->
  8304. <div
  8305. class="tool"
  8306. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  8307. @click="addTools2(68)"
  8308. >
  8309. <div class="whiteBIcon">
  8310. <img src="../../../assets/icon/secondToolList/timeAxis.png" alt />
  8311. <div style="margin: 5px 0">时间轴</div>
  8312. </div>
  8313. <div class="check">
  8314. <div
  8315. v-if="checktoolArray.indexOf(68) == -1"
  8316. class="noChoose"
  8317. ></div>
  8318. <div v-else class="isChoose"></div>
  8319. </div>
  8320. </div>
  8321. <!-- <div
  8322. class="tool"
  8323. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  8324. @click="addTools2(69)"
  8325. >
  8326. <div class="whiteBIcon">
  8327. <img src="../../../assets/icon/secondToolList/english.png" alt />
  8328. <div style="margin: 5px 0">英语写作</div>
  8329. </div>
  8330. <div class="check">
  8331. <div
  8332. v-if="checktoolArray.indexOf(69) == -1"
  8333. class="noChoose"
  8334. ></div>
  8335. <div v-else class="isChoose"></div>
  8336. </div>
  8337. </div> -->
  8338. </div>
  8339. <div class="toolSort" v-if="toolType == 4">
  8340. <div
  8341. class="tool"
  8342. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  8343. @click="addTools2(26)"
  8344. >
  8345. <div class="whiteBIcon">
  8346. <img
  8347. src="../../../assets/icon/thirdToolList/courseDesign.png"
  8348. alt
  8349. />
  8350. <div style="margin: 5px 0">课程设计</div>
  8351. </div>
  8352. <div class="check">
  8353. <div
  8354. v-if="checktoolArray.indexOf(26) == -1"
  8355. class="noChoose"
  8356. ></div>
  8357. <div v-else class="isChoose"></div>
  8358. </div>
  8359. </div>
  8360. <div
  8361. class="tool"
  8362. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  8363. @click="addTools2(25)"
  8364. >
  8365. <div class="whiteBIcon">
  8366. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  8367. <div style="margin: 5px 0">目标管理</div>
  8368. </div>
  8369. <div class="check">
  8370. <div
  8371. v-if="checktoolArray.indexOf(25) == -1"
  8372. class="noChoose"
  8373. ></div>
  8374. <div v-else class="isChoose"></div>
  8375. </div>
  8376. </div>
  8377. </div>
  8378. </div>
  8379. </div>
  8380. <span
  8381. slot="footer"
  8382. class="dialog-footer"
  8383. style="display: block; text-align: center; padding: 0 0 10px 0"
  8384. >
  8385. <el-button @click="toolDialogVisible = false">取 消</el-button>
  8386. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  8387. </span>
  8388. </div>
  8389. <div
  8390. v-if="replyDialogVisible == true"
  8391. class="addDialogCss"
  8392. v-el-drag-dialog
  8393. >
  8394. <div class="pzTop">
  8395. <div class="teacherPz">
  8396. <div class="teacherPzImg">
  8397. <img src="../../../assets/icon/teacherPz.png" alt="" />
  8398. </div>
  8399. <div style="margin-left: 10px; height: 25px">添加回复</div>
  8400. </div>
  8401. <div @click="replyDialogVisible = false">
  8402. <img src="../../../assets/close1.png" class="pzClose" alt="" />
  8403. </div>
  8404. </div>
  8405. <div class="addPzBox">
  8406. <!-- <div class="addPzCheck">
  8407. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8408. >文本</span
  8409. >
  8410. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8411. >音频</span
  8412. >
  8413. </div> -->
  8414. <div style="height: calc(100% - 50px)">
  8415. <editor-bar
  8416. class="binfo_input pzConText"
  8417. style="width: 100% !important; margin: 0 auto"
  8418. placeholder="请输入回复描述"
  8419. v-model="reply"
  8420. @change="change"
  8421. ></editor-bar>
  8422. </div>
  8423. <div class="addTextCss" @click="addHf">确定</div>
  8424. </div>
  8425. </div>
  8426. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  8427. <div class="pzTop">
  8428. <div class="teacherPz">
  8429. <div class="teacherPzImg">
  8430. <img src="../../../assets/icon/teacherPz.png" alt="" />
  8431. </div>
  8432. <div style="margin-left: 10px; height: 25px">教师评论</div>
  8433. </div>
  8434. <div @click="addPzDialog = false">
  8435. <img src="../../../assets/close1.png" class="pzClose" alt="" />
  8436. </div>
  8437. </div>
  8438. <div class="addPzBox">
  8439. <div class="addPzCheck">
  8440. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  8441. >文本</span
  8442. >
  8443. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  8444. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  8445. >音频</span
  8446. >
  8447. </div>
  8448. <div style="height: calc(100% - 95px)">
  8449. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  8450. v-if="pzType == 1"></textarea> -->
  8451. <editor-bar
  8452. class="binfo_input pzConText"
  8453. style="width: 100% !important"
  8454. placeholder="请输入任务描述"
  8455. v-model="pzConText"
  8456. @change="change"
  8457. v-if="pzType == 1"
  8458. ></editor-bar>
  8459. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  8460. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  8461. <div @click="addImg($event)">
  8462. <el-button type="primary">上传图片</el-button>
  8463. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  8464. @change="beforeUpload1($event, 4)" />
  8465. </div>
  8466. </div> -->
  8467. </div>
  8468. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  8469. 确定
  8470. </div>
  8471. </div>
  8472. </div>
  8473. <div v-if="proVisible" class="mask">
  8474. <div class="progressBox">
  8475. <!-- <div id="closePro" class="closeCss">
  8476. <img src="../../../assets/icon/close.png" alt />
  8477. </div> -->
  8478. <div class="lbox">
  8479. <img src="../../../assets/loading.gif" />上传中,请稍后
  8480. </div>
  8481. <div style="margin-bottom: 10px">
  8482. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  8483. </div>
  8484. <el-progress
  8485. :text-inside="true"
  8486. :stroke-width="20"
  8487. :percentage="progress"
  8488. style="width: 80%"
  8489. ></el-progress>
  8490. </div>
  8491. </div>
  8492. <div v-if="proVisible2" class="mask">
  8493. <div class="progressBox">
  8494. <div class="lbox">
  8495. <img src="../../../assets/loading.gif" />上传中,请稍后
  8496. </div>
  8497. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  8498. </div>
  8499. </div>
  8500. <el-dialog :visible.sync="pictureDialog" size="tiny">
  8501. <img width="100%" :src="dialogImageUrl" alt />
  8502. </el-dialog>
  8503. <el-dialog
  8504. :title="noteName != '' ? noteName : '查看问卷'"
  8505. :visible.sync="dialogVisible5"
  8506. :append-to-body="true"
  8507. width="1000px"
  8508. :before-close="handleClose"
  8509. class="dialog_diy dialog_diy3"
  8510. >
  8511. <div>
  8512. <div
  8513. class="a_add_title"
  8514. style="
  8515. display: flex;
  8516. flex-direction: row;
  8517. align-items: center;
  8518. justify-content: center;
  8519. "
  8520. >
  8521. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8522. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8523. </div>
  8524. <div class="a_addBox">
  8525. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8526. 题目内容
  8527. </div>
  8528. <div
  8529. class="a_add_box"
  8530. v-for="(item1, index1) in askJson.askCount"
  8531. :key="index1"
  8532. >
  8533. <div class="a_add_head">
  8534. <div style="display: flex">
  8535. <span class="askIndex"> {{ index1 + 1 }}</span>
  8536. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8537. </div>
  8538. <img
  8539. v-if="askJson.askJson[index1].img"
  8540. :src="askJson.askJson[index1].img"
  8541. style="height: 300px; margin-top: 10px; max-width: 100%"
  8542. />
  8543. </div>
  8544. <div class="a_add_body">
  8545. <div class="a_add_input">
  8546. <el-radio-group
  8547. v-model="radio[index1]"
  8548. v-if="
  8549. askJson.askJson[index1].type == '1' ||
  8550. !askJson.askJson[index1].type
  8551. "
  8552. >
  8553. <el-radio
  8554. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8555. .checkList"
  8556. :key="checkIndex"
  8557. :label="checkIndex"
  8558. :disabled="isAnswer"
  8559. class="redioStyle"
  8560. ><span v-html="item2"></span
  8561. ></el-radio>
  8562. </el-radio-group>
  8563. <el-checkbox-group
  8564. v-model="radio[index1]"
  8565. v-if="askJson.askJson[index1].type == '2'"
  8566. >
  8567. <el-checkbox
  8568. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8569. .checkList"
  8570. :key="checkIndex1"
  8571. :label="checkIndex1"
  8572. :disabled="isAnswer"
  8573. class="redioStyle"
  8574. ><span v-html="item2"></span>
  8575. </el-checkbox>
  8576. </el-checkbox-group>
  8577. </div>
  8578. </div>
  8579. </div>
  8580. </div>
  8581. </div>
  8582. <span slot="footer" class="dialog-footer">
  8583. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  8584. >取 消</el-button
  8585. >
  8586. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  8587. >确 定</el-button
  8588. >
  8589. </span>
  8590. </el-dialog>
  8591. <el-dialog
  8592. :title="noteName != '' ? noteName : '查看问卷'"
  8593. :visible.sync="dialogVisible5Teacher"
  8594. :append-to-body="true"
  8595. width="1000px"
  8596. :before-close="handleClose"
  8597. class="dialog_diy dialog_diy3"
  8598. >
  8599. <div>
  8600. <div class="w_name">
  8601. 学生姓名:<span>{{ sStudent.student }}</span>
  8602. </div>
  8603. <div
  8604. class="a_add_title"
  8605. style="
  8606. display: flex;
  8607. flex-direction: row;
  8608. align-items: center;
  8609. justify-content: center;
  8610. "
  8611. >
  8612. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8613. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  8614. </div>
  8615. <div class="a_addBox">
  8616. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8617. 题目内容
  8618. </div>
  8619. <div
  8620. class="a_add_box"
  8621. v-for="(item1, index1) in askJson.askCount"
  8622. :key="index1"
  8623. >
  8624. <div class="a_add_head">
  8625. <div style="display: flex">
  8626. <span class="askIndex">{{ index1 + 1 }}</span>
  8627. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  8628. </div>
  8629. <img
  8630. v-if="askJson.askJson[index1].img"
  8631. :src="askJson.askJson[index1].img"
  8632. style="height: 300px; margin-top: 10px; max-width: 100%"
  8633. />
  8634. </div>
  8635. <div class="a_add_body">
  8636. <div class="a_add_input">
  8637. <el-radio-group
  8638. v-model="radio[index1]"
  8639. v-if="
  8640. askJson.askJson[index1].type == '1' ||
  8641. !askJson.askJson[index1].type
  8642. "
  8643. >
  8644. <el-radio
  8645. v-for="(item2, checkIndex) in askJson.askJson[index1]
  8646. .checkList"
  8647. :key="checkIndex"
  8648. :label="checkIndex"
  8649. :disabled="isAnswer"
  8650. class="redioStyle"
  8651. ><span v-html="item2"></span
  8652. ></el-radio>
  8653. </el-radio-group>
  8654. <el-checkbox-group
  8655. v-model="radio[index1]"
  8656. v-if="askJson.askJson[index1].type == '2'"
  8657. >
  8658. <el-checkbox
  8659. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  8660. .checkList"
  8661. :key="checkIndex1"
  8662. :label="checkIndex1"
  8663. :disabled="isAnswer"
  8664. class="redioStyle"
  8665. ><span v-html="item2"></span>
  8666. </el-checkbox>
  8667. </el-checkbox-group>
  8668. </div>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. <span slot="footer" class="dialog-footer">
  8674. <el-button
  8675. @click="dialogVisible5Teacher = false"
  8676. v-show="noteName == ''"
  8677. >取 消</el-button
  8678. >
  8679. <el-button
  8680. type="primary"
  8681. @click="addStudentAskTeacher"
  8682. v-show="noteName == ''"
  8683. >确 定</el-button
  8684. >
  8685. </span>
  8686. </el-dialog>
  8687. <el-dialog
  8688. :title="noteName != '' ? noteName : '查看选择题'"
  8689. :visible.sync="dialogVisibleChoice"
  8690. :append-to-body="true"
  8691. width="1000px"
  8692. :before-close="handleClose"
  8693. class="dialog_diy dialog_diy3"
  8694. >
  8695. <div>
  8696. <!-- <div class="a_add_title" style="
  8697. display: flex;
  8698. flex-direction: row;
  8699. align-items: center;
  8700. justify-content: center;
  8701. ">
  8702. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  8703. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  8704. </div> -->
  8705. <div class="a_addBox">
  8706. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8707. 题目内容
  8708. </div>
  8709. <div
  8710. class="a_add_box"
  8711. v-for="(item1, index1) in testJson.testCount"
  8712. :key="index1"
  8713. >
  8714. <div class="a_add_head">
  8715. <div style="display: flex">
  8716. <span class="askIndex">{{ index1 + 1 }}</span>
  8717. <div
  8718. v-if="testJson.testJson[index1].type == '1'"
  8719. style="margin-right: 5px; min-width: 70px"
  8720. >
  8721. (单选题)
  8722. </div>
  8723. <div
  8724. v-if="testJson.testJson[index1].type == '2'"
  8725. style="margin-right: 5px; min-width: 70px"
  8726. >
  8727. (多选题)
  8728. </div>
  8729. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8730. </div>
  8731. <img
  8732. v-if="testJson.testJson[index1].img"
  8733. :src="testJson.testJson[index1].img"
  8734. style="height: 300px; margin-top: 10px; max-width: 100%"
  8735. />
  8736. </div>
  8737. <div
  8738. class="timuImgBox"
  8739. v-if="
  8740. testJson.testJson[index1].timuList &&
  8741. testJson.testJson[index1].timuList.length
  8742. "
  8743. >
  8744. <div
  8745. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8746. :key="tIndex"
  8747. class="timuImg"
  8748. @click.stop="previewImg(timg.src)"
  8749. >
  8750. <img :src="timg.src" alt="" />
  8751. </div>
  8752. </div>
  8753. <div class="a_add_body">
  8754. <div class="a_add_input">
  8755. <el-radio-group
  8756. v-model="radio[index1]"
  8757. v-if="testJson.testJson[index1].type == '1'"
  8758. >
  8759. <div class="radioBox">
  8760. <el-radio
  8761. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8762. .checkList"
  8763. :key="checkIndex"
  8764. :label="checkIndex"
  8765. :disabled="isAnswer"
  8766. class="redioStyle"
  8767. >
  8768. <div
  8769. style="margin-right: 10px"
  8770. v-if="item2 && item2.imgType && item2.imgType == 1"
  8771. >
  8772. <div class="inImg" @click.stop="previewImg(item2.src)">
  8773. <img :src="item2.src" alt="" />
  8774. </div>
  8775. </div>
  8776. <span v-else v-html="item2"></span>
  8777. </el-radio>
  8778. </div>
  8779. </el-radio-group>
  8780. <el-checkbox-group
  8781. v-model="radio[index1]"
  8782. v-if="testJson.testJson[index1].type == '2'"
  8783. >
  8784. <div class="radioBox">
  8785. <el-checkbox
  8786. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8787. .checkList"
  8788. :key="checkIndex"
  8789. :label="checkIndex"
  8790. :disabled="isAnswer"
  8791. class="redioStyle"
  8792. >
  8793. <div
  8794. style="margin-right: 10px"
  8795. v-if="item2 && item2.imgType && item2.imgType == 1"
  8796. >
  8797. <div class="inImg" @click.stop="previewImg(item2.src)">
  8798. <img :src="item2.src" alt="" />
  8799. </div>
  8800. </div>
  8801. <span v-else v-html="item2"></span>
  8802. </el-checkbox>
  8803. </div>
  8804. </el-checkbox-group>
  8805. </div>
  8806. </div>
  8807. </div>
  8808. </div>
  8809. </div>
  8810. <span slot="footer" class="dialog-footer">
  8811. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  8812. >取 消</el-button
  8813. >
  8814. <el-button
  8815. type="primary"
  8816. @click="addStudentTest"
  8817. v-show="noteName == ''"
  8818. >确 定</el-button
  8819. >
  8820. </span>
  8821. </el-dialog>
  8822. <el-dialog
  8823. :title="noteName != '' ? noteName : '查看选择题'"
  8824. :visible.sync="dialogVisibleChoiceTeacher"
  8825. :append-to-body="true"
  8826. width="1000px"
  8827. :before-close="handleClose"
  8828. class="dialog_diy dialog_diy3"
  8829. >
  8830. <div>
  8831. <div class="w_name">
  8832. 学生姓名:<span>{{ sStudent.student }}</span>
  8833. </div>
  8834. <div class="a_addBox">
  8835. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  8836. 题目内容
  8837. </div>
  8838. <div
  8839. class="a_add_box"
  8840. v-for="(item1, index1) in testJson.testCount"
  8841. :key="index1"
  8842. >
  8843. <div class="a_add_head">
  8844. <div style="display: flex">
  8845. <span class="askIndex">{{ index1 + 1 }}</span>
  8846. <div
  8847. v-if="testJson.testJson[index1].type == '1'"
  8848. style="margin-right: 5px; min-width: 70px"
  8849. >
  8850. (单选题)
  8851. </div>
  8852. <div
  8853. v-if="testJson.testJson[index1].type == '2'"
  8854. style="margin-right: 5px; min-width: 70px"
  8855. >
  8856. (多选题)
  8857. </div>
  8858. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  8859. </div>
  8860. <img
  8861. v-if="testJson.testJson[index1].img"
  8862. :src="testJson.testJson[index1].img"
  8863. style="height: 300px; margin-top: 10px; max-width: 100%"
  8864. />
  8865. </div>
  8866. <div
  8867. class="timuImgBox"
  8868. v-if="
  8869. testJson.testJson[index1].timuList &&
  8870. testJson.testJson[index1].timuList.length
  8871. "
  8872. >
  8873. <div
  8874. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  8875. :key="tIndex"
  8876. class="timuImg"
  8877. @click.stop="previewImg(timg.src)"
  8878. >
  8879. <img :src="timg.src" alt="" />
  8880. </div>
  8881. </div>
  8882. <div class="a_add_body">
  8883. <div class="a_add_input">
  8884. <el-radio-group
  8885. v-model="radio[index1]"
  8886. v-if="testJson.testJson[index1].type == '1'"
  8887. >
  8888. <div class="radioBox">
  8889. <el-radio
  8890. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8891. .checkList"
  8892. :key="checkIndex"
  8893. :label="checkIndex"
  8894. :disabled="isAnswer"
  8895. class="redioStyle"
  8896. >
  8897. <div
  8898. style="margin-right: 10px"
  8899. v-if="item2 && item2.imgType && item2.imgType == 1"
  8900. >
  8901. <div class="inImg" @click.stop="previewImg(item2.src)">
  8902. <img :src="item2.src" alt="" />
  8903. </div>
  8904. </div>
  8905. <span v-else v-html="item2"></span>
  8906. </el-radio>
  8907. </div>
  8908. </el-radio-group>
  8909. <el-checkbox-group
  8910. v-model="radio[index1]"
  8911. v-if="testJson.testJson[index1].type == '2'"
  8912. >
  8913. <div class="radioBox">
  8914. <el-checkbox
  8915. v-for="(item2, checkIndex) in testJson.testJson[index1]
  8916. .checkList"
  8917. :key="checkIndex"
  8918. :label="checkIndex"
  8919. :disabled="isAnswer"
  8920. class="redioStyle"
  8921. >
  8922. <div
  8923. style="margin-right: 10px"
  8924. v-if="item2 && item2.imgType && item2.imgType == 1"
  8925. >
  8926. <div class="inImg" @click.stop="previewImg(item2.src)">
  8927. <img :src="item2.src" alt="" />
  8928. </div>
  8929. </div>
  8930. <span v-else v-html="item2"></span>
  8931. </el-checkbox>
  8932. </div>
  8933. </el-checkbox-group>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. <span slot="footer" class="dialog-footer">
  8940. <el-button
  8941. @click="dialogVisibleChoiceTeacher = false"
  8942. v-show="noteName == ''"
  8943. >取 消</el-button
  8944. >
  8945. <el-button
  8946. type="primary"
  8947. @click="addStudentTestTeacher"
  8948. v-show="noteName == ''"
  8949. >确 定</el-button
  8950. >
  8951. </span>
  8952. </el-dialog>
  8953. <el-dialog
  8954. title="查看富文本"
  8955. :visible.sync="dialogVisible1"
  8956. :append-to-body="true"
  8957. width="500px"
  8958. :before-close="handleClose"
  8959. class="dialog_diy textCss"
  8960. >
  8961. <el-form style="font-size: 20px">
  8962. <el-form-item label="文本标题" class="textTitle">
  8963. <div style="font-size: 20px">{{ text.name }}</div>
  8964. </el-form-item>
  8965. <div>富文本内容</div>
  8966. <div
  8967. v-html="text.url"
  8968. style="font-size: 18px; padding: 40px 0 0 0"
  8969. ></div>
  8970. </el-form>
  8971. <span slot="footer" class="dialog-footer">
  8972. <el-button type="primary" @click="dialogVisible1 = false"
  8973. >确定</el-button
  8974. >
  8975. </span>
  8976. </el-dialog>
  8977. <el-dialog
  8978. title="文件预览"
  8979. :visible.sync="dialogVisible3"
  8980. width="50%"
  8981. :before-close="handleClose"
  8982. class="dialog_diy"
  8983. :class="{ fullStyle: full }"
  8984. >
  8985. <div slot="title" class="header-title">
  8986. <div style="color: #fff">文件预览</div>
  8987. <div style="position: absolute; top: 19px; right: 50px">
  8988. <img
  8989. src="../../../assets/full.png"
  8990. style="height: 16px; cursor: pointer"
  8991. alt=""
  8992. @click="fullTools"
  8993. />
  8994. </div>
  8995. </div>
  8996. <pdf
  8997. v-if="showPDF"
  8998. :pdfUrl="pptImgUrl"
  8999. style="width: 100%; height: 520px; overflow: auto"
  9000. :class="{ fullStyle: full }"
  9001. ></pdf>
  9002. <iframe
  9003. v-else
  9004. :src="pptImgUrl"
  9005. frameborder="0"
  9006. width="100%"
  9007. height="600"
  9008. :class="{ fullStyle: full }"
  9009. ></iframe>
  9010. </el-dialog>
  9011. <el-dialog
  9012. title="文件预览"
  9013. :visible.sync="dialogVisible6"
  9014. width="50%"
  9015. :before-close="handleClose"
  9016. class="dialog_diy"
  9017. >
  9018. <iframe
  9019. :src="pptImgUrl1"
  9020. frameborder="0"
  9021. width="100%"
  9022. height="600"
  9023. ></iframe>
  9024. </el-dialog>
  9025. <el-dialog
  9026. title="提示"
  9027. :visible.sync="dialogVisible4"
  9028. :append-to-body="true"
  9029. width="800px"
  9030. :before-close="handleClose"
  9031. class="dialog_diy notice"
  9032. >
  9033. <div>此功能暂未开放!</div>
  9034. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  9035. </el-dialog>
  9036. <el-dialog
  9037. title="问答"
  9038. :visible.sync="answerDialogVisible"
  9039. :append-to-body="true"
  9040. width="800px"
  9041. :before-close="handleClose"
  9042. class="dialog_diy"
  9043. >
  9044. <div>
  9045. <div
  9046. style="
  9047. display: flex;
  9048. flex-wrap: nowrap;
  9049. flex-direction: column;
  9050. position: relative;
  9051. "
  9052. >
  9053. <div class="queTop" style="padding: 20px 0 20px 0">
  9054. <div class="question">
  9055. <img src="../../../assets/icon/question.png" alt />
  9056. </div>
  9057. <div class="queTitle">
  9058. <div style="width: 90px; min-width: 90px">提问:</div>
  9059. <div>{{ answerQ }}</div>
  9060. </div>
  9061. </div>
  9062. <div class="ediBottom">
  9063. <textarea
  9064. rows="6"
  9065. class="binfo_input"
  9066. cols
  9067. style="width: 95%; height: 120px"
  9068. v-model="questionAnswer"
  9069. ></textarea>
  9070. </div>
  9071. </div>
  9072. </div>
  9073. <div slot="footer">
  9074. <el-button @click="answerDialogVisible = false">取 消</el-button>
  9075. <el-button type="primary" @click="addQuestion">提 交</el-button>
  9076. </div>
  9077. </el-dialog>
  9078. <el-dialog
  9079. title="问答"
  9080. :visible.sync="answerDialogVisibleTeacher"
  9081. :append-to-body="true"
  9082. width="800px"
  9083. :before-close="handleClose"
  9084. class="dialog_diy"
  9085. >
  9086. <div>
  9087. <div class="w_name">
  9088. 学生姓名:<span>{{ sStudent.student }}</span>
  9089. </div>
  9090. <div
  9091. style="
  9092. display: flex;
  9093. flex-wrap: nowrap;
  9094. flex-direction: column;
  9095. position: relative;
  9096. "
  9097. >
  9098. <div class="queTop" style="padding: 20px 0 20px 0">
  9099. <div class="question">
  9100. <img src="../../../assets/icon/question.png" alt />
  9101. </div>
  9102. <div class="queTitle">
  9103. <div style="width: 90px; min-width: 90px">提问:</div>
  9104. <div>{{ answerQ }}</div>
  9105. </div>
  9106. </div>
  9107. <div class="ediBottom">
  9108. <textarea
  9109. rows="6"
  9110. class="binfo_input"
  9111. cols
  9112. style="width: 95%; height: 120px"
  9113. v-model="questionAnswer"
  9114. ></textarea>
  9115. </div>
  9116. </div>
  9117. </div>
  9118. <div slot="footer">
  9119. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  9120. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  9121. </div>
  9122. </el-dialog>
  9123. <el-dialog
  9124. title="倒计时"
  9125. :visible.sync="timeDialogVisible"
  9126. :append-to-body="true"
  9127. width="800px"
  9128. :before-close="handleClose"
  9129. class="dialog_diy"
  9130. >
  9131. <div>
  9132. <div style="margin-bottom: 20px; color: #999">
  9133. 提示:点击“+”或“-”修改倒计时时长。
  9134. </div>
  9135. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  9136. </div>
  9137. <div slot="footer">
  9138. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  9139. </div>
  9140. </el-dialog>
  9141. <el-dialog
  9142. title="权限设置"
  9143. :visible.sync="juriVisible"
  9144. :append-to-body="true"
  9145. width="400px"
  9146. :before-close="handleClose"
  9147. class="dialog_diy"
  9148. >
  9149. <div>
  9150. <div class="open_box">
  9151. <div class="switch_box">
  9152. <span>允许学生查看所有作业</span>
  9153. <el-switch
  9154. v-model="sIsOpen"
  9155. active-text=""
  9156. class="switchCss"
  9157. @change="updateSLook"
  9158. ></el-switch>
  9159. </div>
  9160. <div
  9161. class="switch_box"
  9162. v-if="
  9163. courseDetail.userid == userid ||
  9164. (courseDetail.course_teacher &&
  9165. courseDetail.course_teacher.indexOf(userid) != -1)
  9166. "
  9167. >
  9168. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  9169. <span>禁止学生查看所有阶段</span>
  9170. <el-switch
  9171. v-model="IsLookOpen"
  9172. active-text=""
  9173. class="switchCss"
  9174. @change="updateLookOpen"
  9175. ></el-switch>
  9176. </div>
  9177. <div class="switch_box" v-if="courseDetail.userid == userid">
  9178. <span>开启跟随模式</span>
  9179. <el-switch
  9180. v-model="IsFollow"
  9181. active-text=""
  9182. class="switchCss"
  9183. @change="updateFollow"
  9184. ></el-switch>
  9185. </div>
  9186. </div>
  9187. </div>
  9188. <div slot="footer">
  9189. <el-button
  9190. style="background: #409efe; color: #fff"
  9191. @click="juriVisible = false"
  9192. >关 闭</el-button
  9193. >
  9194. </div>
  9195. </el-dialog>
  9196. <el-dialog
  9197. title="查看视频"
  9198. :visible.sync="videoVisible"
  9199. :append-to-body="true"
  9200. width="1000px"
  9201. :before-close="handleClose"
  9202. class="dialog_diy1"
  9203. >
  9204. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  9205. <video-player
  9206. class="video-player vjs-custom-skin"
  9207. :playsinline="true"
  9208. :options="videoDetail"
  9209. @play="onPlayerPlay($event)"
  9210. style="width: 100%; height: 100%"
  9211. ></video-player>
  9212. </div>
  9213. <div slot="footer">
  9214. <el-button
  9215. style="background: #409efe; color: #fff"
  9216. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  9217. >
  9218. 关 闭</el-button
  9219. >
  9220. </div>
  9221. </el-dialog>
  9222. <el-dialog
  9223. title="查看详情"
  9224. :visible.sync="commentDialogVisible"
  9225. :append-to-body="true"
  9226. width="800px"
  9227. :before-close="handleClose"
  9228. class="dialog_diy"
  9229. >
  9230. <div class="commentTop">
  9231. <div class="studentDetail">
  9232. <div class="tx"><img src="../../../assets/avatar.png" alt="" /></div>
  9233. <div class="nameAndTime">
  9234. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9235. <div>{{ commentDetail.time }}</div>
  9236. </div>
  9237. <div
  9238. class="returnBtn"
  9239. style="margin-left: auto; width: 80px"
  9240. v-if="
  9241. commentDetail.works &&
  9242. commentDetail.type == 0 &&
  9243. (tType == 1 || tType == 4)
  9244. "
  9245. @click="
  9246. showPicturePaint(
  9247. commentDetail.img ? commentDetail.img : commentDetail.works
  9248. )
  9249. "
  9250. >
  9251. 教师批注
  9252. </div>
  9253. </div>
  9254. <div
  9255. class="worksAnswer"
  9256. v-if="commentDetail.works && commentDetail.type == 2"
  9257. >
  9258. {{ JSON.parse(commentDetail.works)[0].answer }}
  9259. </div>
  9260. <div
  9261. class="worksAnswer"
  9262. v-if="commentDetail.works && commentDetail.type == 1"
  9263. >
  9264. <img
  9265. src="../../../assets/teacherWork.png"
  9266. v-if="commentDetail.ateacher"
  9267. class="w_teachert"
  9268. />
  9269. <pdf
  9270. v-if="showPDF"
  9271. :pdfUrl="pptImgUrl"
  9272. style="width: 100%; height: 520px; overflow: auto"
  9273. :class="{ fullStyle: full }"
  9274. ></pdf>
  9275. <iframe
  9276. v-else
  9277. :src="pptImgUrl"
  9278. frameborder="0"
  9279. width="100%"
  9280. height="600"
  9281. :class="{ fullStyle: full }"
  9282. ></iframe>
  9283. </div>
  9284. <div
  9285. class="worksAnswer"
  9286. v-if="commentDetail.works && commentDetail.type == 0"
  9287. >
  9288. <img
  9289. src="../../../assets/teacherWork.png"
  9290. v-if="commentDetail.ateacher"
  9291. class="w_teachert"
  9292. style="right: 105px"
  9293. />
  9294. <img
  9295. :src="commentDetail.works"
  9296. alt=""
  9297. @click="previewImg(commentDetail.works)"
  9298. />
  9299. </div>
  9300. <div
  9301. class="worksAnswer"
  9302. v-if="commentDetail.works && commentDetail.type == 3"
  9303. >
  9304. <img
  9305. src="../../../assets/teacherWork.png"
  9306. v-if="commentDetail.ateacher"
  9307. class="w_teachert"
  9308. />
  9309. <video-player
  9310. class="video-player vjs-custom-skin"
  9311. :playsinline="true"
  9312. :options="videoDetail"
  9313. @play="onPlayerPlay($event)"
  9314. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9315. ></video-player>
  9316. </div>
  9317. <div
  9318. class="worksAnswer"
  9319. v-if="commentDetail.works && commentDetail.type == 10"
  9320. >
  9321. <div class="cont" v-html="commentDetail.works.text"></div>
  9322. </div>
  9323. <div
  9324. class="worksAnswer codeFileBox"
  9325. v-if="commentDetail.works && commentDetail.type == 12"
  9326. @click="downloadFile(commentDetail.works)"
  9327. >
  9328. <img src="../../../assets/icon/codeFile.png" />
  9329. <div>点击下载文件</div>
  9330. </div>
  9331. <div
  9332. class="worksAnswer codeFileBox"
  9333. v-if="commentDetail.works && commentDetail.type == 15"
  9334. @click="
  9335. openCocoPi(
  9336. 57,
  9337. commentIndexJson.toolIndex,
  9338. commentDetail.userid,
  9339. commentDetail.sName
  9340. )
  9341. "
  9342. >
  9343. <img src="../../../assets/icon/codeFile.png" />
  9344. <div>点击打开CocoPi</div>
  9345. </div>
  9346. <div
  9347. class="worksAnswer"
  9348. v-if="commentDetail.works && commentDetail.type == 13"
  9349. >
  9350. <div v-html="JSON.parse(commentDetail.works).text"></div>
  9351. </div>
  9352. <div
  9353. class="worksAnswer"
  9354. v-if="commentDetail.works && commentDetail.type == 4"
  9355. >
  9356. <div class="evalCss">
  9357. <div class="nav">请选择星星进行评分</div>
  9358. <div class="middleBox" v-if="eScore.eStar">
  9359. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9360. <div class="nameAndrate">
  9361. <div>{{ e.value }}</div>
  9362. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  9363. </div>
  9364. <div v-if="e.detail">{{ e.detail }}</div>
  9365. </div>
  9366. <div class="bz">
  9367. <textarea
  9368. disabled
  9369. rows="4"
  9370. class="pj"
  9371. style="
  9372. padding: 10px 5px;
  9373. width: 70%;
  9374. background: #f7f6f9;
  9375. font-size: 14px;
  9376. text-indent: 10px;
  9377. color: #000;
  9378. "
  9379. cols
  9380. v-model="eScore.eBzText"
  9381. placeholder="请输入评价内容..."
  9382. ></textarea>
  9383. </div>
  9384. </div>
  9385. </div>
  9386. </div>
  9387. <div class="comment">
  9388. <div class="commentList">
  9389. <div class="commentImg">
  9390. <img
  9391. @click="
  9392. isLikes(
  9393. commentDetail.wid,
  9394. userid,
  9395. 1,
  9396. null,
  9397. commentDetail.isLikes
  9398. )
  9399. "
  9400. :src="commentDetail.isLikes == true ? likes : noLikes"
  9401. alt=""
  9402. />
  9403. </div>
  9404. <div>{{ commentDetail.likesCount }}</div>
  9405. </div>
  9406. <div class="commentList">
  9407. <div class="commentImg">
  9408. <img src="../../../assets/icon/comment/comment.png" alt="" />
  9409. </div>
  9410. <div>{{ commentDetail.commentCount }}</div>
  9411. </div>
  9412. </div>
  9413. <div class="drawPBox" v-if="commentDetail.img">
  9414. <span>教师批注</span>
  9415. <img
  9416. :src="commentDetail.img"
  9417. alt=""
  9418. @click="previewImg(commentDetail.img)"
  9419. />
  9420. <span
  9421. class="deleteImg"
  9422. v-if="tType == 1 || tType == 4"
  9423. @click.stop="deletePicturePaint(commentDetail.wid)"
  9424. style="
  9425. font-size: 14px;
  9426. width: auto !important;
  9427. color: #b4b4b4;
  9428. top: unset;
  9429. bottom: 0;
  9430. border: none;
  9431. padding: 0;
  9432. height: auto !important;
  9433. margin: 0;
  9434. "
  9435. >删除</span
  9436. >
  9437. </div>
  9438. </div>
  9439. <div class="commentBox">
  9440. <div class="pl">评论:</div>
  9441. <div style="max-height: 200px; overflow: auto">
  9442. <div
  9443. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  9444. style="padding: 10px 0 0 0"
  9445. >
  9446. <div
  9447. class="studentDetail"
  9448. style="padding-top: 10px"
  9449. v-for="(co, coIndex) in commentDetail.commentJson"
  9450. :key="coIndex"
  9451. >
  9452. <div class="tx" style="min-width: 50px">
  9453. <img src="../../../assets/avatar.png" alt="" />
  9454. </div>
  9455. <div class="plPerson">
  9456. <div class="plName">
  9457. <div>{{ co.commentPeople }}</div>
  9458. <div style="margin-left: 5px">
  9459. {{ co.commentTime }}
  9460. </div>
  9461. <div
  9462. class="deleteComment"
  9463. v-if="userid == co.userid"
  9464. @click="deleteComment(co.wid)"
  9465. >
  9466. 删除
  9467. </div>
  9468. </div>
  9469. <div class="plContent">{{ co.commentText }}</div>
  9470. </div>
  9471. </div>
  9472. </div>
  9473. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  9474. </div>
  9475. </div>
  9476. <div style="margin-top: 10px">
  9477. <div class="displayBox">
  9478. <div
  9479. style="
  9480. color: #556db4;
  9481. font-size: 14px;
  9482. font-weight: bold;
  9483. padding-bottom: 10px;
  9484. "
  9485. >
  9486. 评价
  9487. </div>
  9488. <div class="easy_comment" v-if="false">
  9489. <div
  9490. v-for="(p, pIndex) in PlTextList"
  9491. :key="pIndex"
  9492. @click="fastText(p, 1)"
  9493. >
  9494. {{ p }}
  9495. </div>
  9496. </div>
  9497. </div>
  9498. <div>
  9499. <textarea
  9500. rows="3"
  9501. class="pj"
  9502. style="padding: 10px 5px"
  9503. cols
  9504. v-model="commentText"
  9505. placeholder="请输入评论"
  9506. ></textarea>
  9507. </div>
  9508. </div>
  9509. <div slot="footer">
  9510. <el-button
  9511. @click="
  9512. (commentDialogVisible = false),
  9513. (commentIndexJson = {}),
  9514. videoDetail.sources && videoDetail.sources[0]
  9515. ? (videoDetail.sources[0].src = '')
  9516. : ''
  9517. "
  9518. >取 消</el-button
  9519. >
  9520. <el-button
  9521. type="primary"
  9522. @click="addComment(commentDetail.wid, userid, 2)"
  9523. >确 定</el-button
  9524. >
  9525. </div>
  9526. </el-dialog>
  9527. <el-dialog
  9528. title="查看文档"
  9529. :visible.sync="fullDialogVisible"
  9530. :append-to-body="true"
  9531. width="100%"
  9532. :before-close="handleClose"
  9533. :show-close="false"
  9534. class="dialog_diy full_diy"
  9535. :class="{ full_diy2: fulltype == 3 }"
  9536. >
  9537. <div slot="title" class="header-title">
  9538. <div style="color: #fff">查看文档</div>
  9539. <div
  9540. @click="fullDialogVisible = false"
  9541. style="
  9542. cursor: pointer;
  9543. position: absolute;
  9544. top: 20px;
  9545. right: 20px;
  9546. color: #fff;
  9547. "
  9548. >
  9549. 退出全屏
  9550. </div>
  9551. </div>
  9552. <div style="height: 100%">
  9553. <div
  9554. class="wheel"
  9555. v-if="
  9556. fulltype == 2 &&
  9557. fullUrl.indexOf(
  9558. 'https://view.officeapps.live.com/op/view.aspx?src='
  9559. ) != -1
  9560. "
  9561. style="width: 95%; margin: 0 auto"
  9562. >
  9563. <iframe
  9564. style="width: 100%; height: 100%; border: none"
  9565. :src="fullUrl"
  9566. ></iframe>
  9567. </div>
  9568. <iframe
  9569. v-else-if="fulltype == 2"
  9570. style="width: 100%; height: 100%; border: none"
  9571. :src="fullUrl"
  9572. security="restricted"
  9573. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  9574. ></iframe>
  9575. <pdf
  9576. v-else-if="fulltype == 3"
  9577. :pdfUrl="fullUrl"
  9578. style="width: 100%; height: 100%; overflow: auto"
  9579. ></pdf>
  9580. <div
  9581. class="wheel"
  9582. v-if="fulltype == 1"
  9583. style="
  9584. box-shadow: 0 0 6px 1px #f2f2f2;
  9585. width: 100%;
  9586. background: #f1f1f1;
  9587. "
  9588. >
  9589. <div class="title" style="width: 100%; box-sizing: border-box">
  9590. 查看文档
  9591. </div>
  9592. <el-form class="textBox" style="height: 90%">
  9593. <el-form-item class="textTitle">
  9594. <div style="font-size: 22px">
  9595. {{ fullUrl.name }}
  9596. </div>
  9597. </el-form-item>
  9598. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  9599. <div
  9600. v-html="fullUrl.url"
  9601. class="textContent"
  9602. style="height: auto"
  9603. ></div>
  9604. </el-form>
  9605. </div>
  9606. </div>
  9607. <!-- <div slot="footer">
  9608. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  9609. </div> -->
  9610. </el-dialog>
  9611. <el-dialog
  9612. title="个人评价"
  9613. :visible.sync="studentEvalDialogVisible"
  9614. :append-to-body="true"
  9615. width="800px"
  9616. :before-close="handleClose"
  9617. class="dialog_diy"
  9618. >
  9619. <div class="evalCss">
  9620. <div class="nav">请选择星星进行评分</div>
  9621. <div class="middleBox" v-if="eScore.eStar">
  9622. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9623. <div class="nameAndrate">
  9624. <div>{{ e.value }}</div>
  9625. <el-rate
  9626. v-model="eScore.eStar[eIndex]"
  9627. :disabled="isStar"
  9628. ></el-rate>
  9629. </div>
  9630. <div v-if="e.detail">{{ e.detail }}</div>
  9631. </div>
  9632. <div class="easy_comment" v-if="false">
  9633. <div
  9634. v-for="(p, pIndex) in PlTextList"
  9635. :key="pIndex"
  9636. @click="fastText(p, 2)"
  9637. >
  9638. {{ p }}
  9639. </div>
  9640. </div>
  9641. <div class="bz">
  9642. <textarea
  9643. :disabled="isStar"
  9644. rows="4"
  9645. class="pj"
  9646. style="
  9647. padding: 10px 5px;
  9648. width: 70%;
  9649. background: #f7f6f9;
  9650. font-size: 14px;
  9651. text-indent: 10px;
  9652. "
  9653. cols
  9654. v-model="eScore.eBzText"
  9655. placeholder="请输入评价内容..."
  9656. ></textarea>
  9657. </div>
  9658. </div>
  9659. </div>
  9660. <div slot="footer">
  9661. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  9662. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  9663. >确 定</el-button
  9664. >
  9665. </div>
  9666. </el-dialog>
  9667. <el-dialog
  9668. title="个人评价"
  9669. :visible.sync="studentEvalDialogVisibleTeacher"
  9670. :append-to-body="true"
  9671. width="800px"
  9672. :before-close="handleClose"
  9673. class="dialog_diy"
  9674. >
  9675. <div class="w_name">
  9676. 学生姓名:<span>{{ sStudent.student }}</span>
  9677. </div>
  9678. <div class="evalCss">
  9679. <div class="nav">请选择星星进行评分</div>
  9680. <div class="middleBox" v-if="eScore.eStar">
  9681. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  9682. <div class="nameAndrate">
  9683. <div>{{ e.value }}</div>
  9684. <el-rate
  9685. v-model="eScore.eStar[eIndex]"
  9686. :disabled="isStar"
  9687. ></el-rate>
  9688. </div>
  9689. <div v-if="e.detail">{{ e.detail }}</div>
  9690. </div>
  9691. <div class="easy_comment" v-if="false">
  9692. <div
  9693. v-for="(p, pIndex) in PlTextList"
  9694. :key="pIndex"
  9695. @click="fastText(p, 2)"
  9696. >
  9697. {{ p }}
  9698. </div>
  9699. </div>
  9700. <div class="bz">
  9701. <textarea
  9702. :disabled="isStar"
  9703. rows="4"
  9704. class="pj"
  9705. style="
  9706. padding: 10px 5px;
  9707. width: 70%;
  9708. background: #f7f6f9;
  9709. font-size: 14px;
  9710. text-indent: 10px;
  9711. "
  9712. cols
  9713. v-model="eScore.eBzText"
  9714. placeholder="请输入评价内容..."
  9715. ></textarea>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. <div slot="footer">
  9720. <el-button @click="studentEvalDialogVisibleTeacher = false"
  9721. >取 消</el-button
  9722. >
  9723. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  9724. >确 定</el-button
  9725. >
  9726. </div>
  9727. </el-dialog>
  9728. <el-dialog
  9729. title="选择匹配"
  9730. :visible.sync="dialogVisibleSelect"
  9731. :append-to-body="true"
  9732. width="90%"
  9733. :before-close="handleClose"
  9734. class="dialog_diy dialog_diy3"
  9735. >
  9736. <div v-if="selectJson">
  9737. <div class="select_box2">
  9738. <div class="select_box2_title">
  9739. <div>选择匹配</div>
  9740. <div>请选择对应的答案进行答题!</div>
  9741. </div>
  9742. <div class="select_box2_box">
  9743. <div class="select_box2_img">
  9744. <img
  9745. :src="selectJson.url"
  9746. @click="previewImg(selectJson.url)"
  9747. alt=""
  9748. />
  9749. </div>
  9750. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9751. <div style="padding-top: 15px">
  9752. <div class="select_answer_title" v-if="isSelect">
  9753. {{ selectAnswer.stu }}
  9754. </div>
  9755. <div class="select_answer_title" v-else>
  9756. 根据题目选择对应答案
  9757. </div>
  9758. <div
  9759. class="select_box2_answer_box"
  9760. v-for="(item2, checkIndex) in selectJson.select"
  9761. :key="checkIndex"
  9762. >
  9763. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9764. <el-select
  9765. :disabled="isSelect"
  9766. v-model="selectAnswer.answer[checkIndex]"
  9767. placeholder="请选择正确答案"
  9768. >
  9769. <el-option
  9770. v-for="(e, eIndex) in selectJson.select"
  9771. :key="eIndex"
  9772. :label="e"
  9773. :value="eIndex"
  9774. >
  9775. </el-option>
  9776. </el-select>
  9777. </div>
  9778. </div>
  9779. <div
  9780. class="rightAnswerCss"
  9781. v-if="isSelect && (tType == 1 || tType == 4)"
  9782. >
  9783. <div
  9784. v-for="(a, aIndex) in selectJson.answer"
  9785. :key="aIndex"
  9786. class="rightAnswer"
  9787. >
  9788. <div
  9789. v-if="selectAnswer.answer[aIndex] === a"
  9790. style="color: #767de1"
  9791. >
  9792. 回答正确
  9793. </div>
  9794. <div v-else>回答错误</div>
  9795. <div
  9796. style="margin-left: 10px"
  9797. v-if="selectAnswer.answer[aIndex] !== a"
  9798. >
  9799. 正确答案:
  9800. </div>
  9801. <div
  9802. :class="
  9803. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9804. "
  9805. >
  9806. {{ selectJson.select[a] }}
  9807. </div>
  9808. </div>
  9809. </div>
  9810. </div>
  9811. <div class="upAnswerCss">
  9812. <el-button
  9813. type="primary"
  9814. @click="addSelectAnswer"
  9815. v-if="!isSelect"
  9816. >提交答案</el-button
  9817. >
  9818. </div>
  9819. </div>
  9820. </div>
  9821. </div>
  9822. </el-dialog>
  9823. <el-dialog
  9824. title="选择匹配"
  9825. :visible.sync="dialogVisibleSelectTeacher"
  9826. :append-to-body="true"
  9827. width="90%"
  9828. :before-close="handleClose"
  9829. class="dialog_diy dialog_diy3"
  9830. >
  9831. <div v-if="selectJson">
  9832. <div class="w_name">
  9833. 学生姓名:<span>{{ sStudent.student }}</span>
  9834. </div>
  9835. <div class="select_box2">
  9836. <div class="select_box2_title">
  9837. <div>选择匹配</div>
  9838. <div>请选择对应的答案进行答题!</div>
  9839. </div>
  9840. <div class="select_box2_box">
  9841. <div class="select_box2_img">
  9842. <img
  9843. :src="selectJson.url"
  9844. @click="previewImg(selectJson.url)"
  9845. alt=""
  9846. />
  9847. </div>
  9848. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  9849. <div style="padding-top: 15px">
  9850. <div class="select_answer_title" v-if="isSelect">
  9851. {{ selectAnswer.stu }}
  9852. </div>
  9853. <div class="select_answer_title" v-else>
  9854. 根据题目选择对应答案
  9855. </div>
  9856. <div
  9857. class="select_box2_answer_box"
  9858. v-for="(item2, checkIndex) in selectJson.select"
  9859. :key="checkIndex"
  9860. >
  9861. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  9862. <el-select
  9863. :disabled="isSelect"
  9864. v-model="selectAnswer.answer[checkIndex]"
  9865. placeholder="请选择正确答案"
  9866. >
  9867. <el-option
  9868. v-for="(e, eIndex) in selectJson.select"
  9869. :key="eIndex"
  9870. :label="e"
  9871. :value="eIndex"
  9872. >
  9873. </el-option>
  9874. </el-select>
  9875. </div>
  9876. </div>
  9877. <div
  9878. class="rightAnswerCss"
  9879. v-if="isSelect && (tType == 1 || tType == 4)"
  9880. >
  9881. <div
  9882. v-for="(a, aIndex) in selectJson.answer"
  9883. :key="aIndex"
  9884. class="rightAnswer"
  9885. >
  9886. <div
  9887. v-if="selectAnswer.answer[aIndex] === a"
  9888. style="color: #767de1"
  9889. >
  9890. 回答正确
  9891. </div>
  9892. <div v-else>回答错误</div>
  9893. <div
  9894. style="margin-left: 10px"
  9895. v-if="selectAnswer.answer[aIndex] !== a"
  9896. >
  9897. 正确答案:
  9898. </div>
  9899. <div
  9900. :class="
  9901. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  9902. "
  9903. >
  9904. {{ selectJson.select[a] }}
  9905. </div>
  9906. </div>
  9907. </div>
  9908. </div>
  9909. <div class="upAnswerCss">
  9910. <el-button
  9911. type="primary"
  9912. @click="addSelectAnswerTeacher"
  9913. v-if="!isSelect"
  9914. >提交答案</el-button
  9915. >
  9916. </div>
  9917. </div>
  9918. </div>
  9919. </div>
  9920. </el-dialog>
  9921. <el-dialog
  9922. title="教师评分"
  9923. :visible.sync="dialogVisibleScore"
  9924. :append-to-body="true"
  9925. width="800px"
  9926. :before-close="handleClose"
  9927. class="dialog_diy"
  9928. >
  9929. <div>
  9930. <div class="studentDetail">
  9931. <div class="tx"><img src="../../../assets/avatar.png" alt="" /></div>
  9932. <div class="nameAndTime">
  9933. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  9934. <div>{{ commentDetail.time }}</div>
  9935. </div>
  9936. </div>
  9937. <div
  9938. class="worksAnswer"
  9939. v-if="commentDetail.works && commentDetail.type == 2"
  9940. >
  9941. {{ JSON.parse(commentDetail.works)[0].answer }}
  9942. </div>
  9943. <div
  9944. class="worksAnswer"
  9945. v-if="commentDetail.works && commentDetail.type == 1"
  9946. >
  9947. <pdf
  9948. v-if="showPDF"
  9949. :pdfUrl="pptImgUrl"
  9950. style="width: 100%; height: 520px; overflow: auto"
  9951. :class="{ fullStyle: full }"
  9952. ></pdf>
  9953. <iframe
  9954. v-else
  9955. :src="pptImgUrl"
  9956. frameborder="0"
  9957. width="100%"
  9958. height="600"
  9959. :class="{ fullStyle: full }"
  9960. ></iframe>
  9961. </div>
  9962. <div
  9963. class="worksAnswer"
  9964. v-if="commentDetail.works && commentDetail.type == 0"
  9965. >
  9966. <img
  9967. :src="commentDetail.works"
  9968. alt=""
  9969. @click="previewImg(commentDetail.works)"
  9970. />
  9971. </div>
  9972. <div
  9973. class="worksAnswer"
  9974. v-if="commentDetail.works && commentDetail.type == 3"
  9975. >
  9976. <video-player
  9977. class="video-player vjs-custom-skin"
  9978. :playsinline="true"
  9979. :options="videoDetail"
  9980. @play="onPlayerPlay($event)"
  9981. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  9982. ></video-player>
  9983. </div>
  9984. <div
  9985. class="worksAnswer codeFileBox"
  9986. v-if="commentDetail.works && commentDetail.type == 12"
  9987. @click="downloadFile(commentDetail.works)"
  9988. >
  9989. <img src="../../../assets/icon/codeFile.png" />
  9990. <div>点击下载文件</div>
  9991. </div>
  9992. <div
  9993. class="worksAnswer codeFileBox"
  9994. v-if="commentDetail.works && commentDetail.type == 15"
  9995. @click="
  9996. openCocoPi(
  9997. 57,
  9998. commentIndexJson.toolIndex,
  9999. commentDetail.userid,
  10000. commentDetail.sName
  10001. )
  10002. "
  10003. >
  10004. <img src="../../../assets/icon/codeFile.png" />
  10005. <div>点击打开CocoPi</div>
  10006. </div>
  10007. <div
  10008. class="worksAnswer"
  10009. v-if="commentDetail.works && commentDetail.type == 13"
  10010. >
  10011. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10012. </div>
  10013. <div class="scoreBox">
  10014. <span class="t">请输入分数</span>
  10015. <el-input-number
  10016. :disabled="courseDetail.userid != userid"
  10017. v-model="wScore"
  10018. :controls="false"
  10019. :min="0"
  10020. :max="100"
  10021. ></el-input-number>
  10022. </div>
  10023. <div class="scoreDetailBox">
  10024. <span class="t">评分评论</span>
  10025. <el-input
  10026. type="textarea"
  10027. :rows="5"
  10028. :disabled="courseDetail.userid != userid"
  10029. resize="none"
  10030. v-model="scoreDetail"
  10031. placeholder="请输入对学生的评价"
  10032. >
  10033. </el-input>
  10034. </div>
  10035. </div>
  10036. <span slot="footer" class="dialog-footer">
  10037. <el-button
  10038. @click="
  10039. (dialogVisibleScore = false),
  10040. (commentIndexJson = {}),
  10041. videoDetail.sources && videoDetail.sources[0]
  10042. ? (videoDetail.sources[0].src = '')
  10043. : ''
  10044. "
  10045. >取 消</el-button
  10046. >
  10047. <el-button
  10048. type="primary"
  10049. v-if="courseDetail.userid == userid"
  10050. @click="scoreWork(commentDetail.wid)"
  10051. >确 定
  10052. </el-button>
  10053. </span>
  10054. </el-dialog>
  10055. <el-dialog
  10056. title="排序"
  10057. :visible.sync="dialogVisibleSentence"
  10058. :append-to-body="true"
  10059. width="1000px"
  10060. :before-close="handleClose"
  10061. class="dialog_diy dialog_diy3"
  10062. >
  10063. <div>
  10064. <div class="sentenBox">
  10065. <div
  10066. v-for="(st, stIndex) in sentenceList"
  10067. :key="stIndex"
  10068. style="padding-bottom: 20px"
  10069. >
  10070. <div
  10071. style="padding: 15px 0 10px 20px"
  10072. class="sentenceTitle"
  10073. :index="stIndex + 1"
  10074. >
  10075. 题目{{ stIndex + 1 }}:请选择正确顺序
  10076. </div>
  10077. <div class="cardList" v-if="st.chooseSenList">
  10078. <div class="cardBox">
  10079. <div
  10080. v-for="(r, rIndex) in st.chooseSenList"
  10081. :key="rIndex"
  10082. @click="returnCard(r, stIndex, rIndex)"
  10083. >
  10084. <el-tooltip
  10085. class="item"
  10086. effect="light"
  10087. :content="r"
  10088. placement="top"
  10089. v-if="r != '' && r != undefined"
  10090. >
  10091. <div
  10092. :class="{
  10093. isCard: r,
  10094. isChooseCard: r == '' || r == undefined,
  10095. }"
  10096. >
  10097. <div>{{ r }}</div>
  10098. </div>
  10099. </el-tooltip>
  10100. <div
  10101. :class="{
  10102. isCard: r,
  10103. isChooseCard: r == '' || r == undefined,
  10104. }"
  10105. v-else
  10106. >
  10107. <div>{{ r }}</div>
  10108. </div>
  10109. </div>
  10110. </div>
  10111. </div>
  10112. <div class="cardList" v-if="st.addChangeSen">
  10113. <div class="cardBox">
  10114. <div
  10115. v-for="(s, sIndex) in st.addChangeSen"
  10116. :key="sIndex"
  10117. @click="setRightAnswer(s, stIndex, sIndex)"
  10118. >
  10119. <el-tooltip
  10120. class="item"
  10121. effect="light"
  10122. :content="s"
  10123. placement="top"
  10124. v-if="s != '' && s != undefined"
  10125. >
  10126. <div
  10127. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10128. >
  10129. <div>{{ s }}</div>
  10130. </div>
  10131. </el-tooltip>
  10132. <div
  10133. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10134. v-else
  10135. >
  10136. <div>{{ s }}</div>
  10137. </div>
  10138. </div>
  10139. </div>
  10140. </div>
  10141. </div>
  10142. </div>
  10143. </div>
  10144. <span slot="footer" class="dialog-footer">
  10145. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  10146. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  10147. </span>
  10148. </el-dialog>
  10149. <el-dialog
  10150. title="排序"
  10151. :visible.sync="dialogVisibleSentenceTeacher"
  10152. :append-to-body="true"
  10153. width="1000px"
  10154. :before-close="handleClose"
  10155. class="dialog_diy dialog_diy3"
  10156. >
  10157. <div>
  10158. <div class="w_name">
  10159. 学生姓名:<span>{{ sStudent.student }}</span>
  10160. </div>
  10161. <div class="sentenBox">
  10162. <div
  10163. v-for="(st, stIndex) in sentenceList"
  10164. :key="stIndex"
  10165. style="padding-bottom: 20px"
  10166. >
  10167. <div
  10168. style="padding: 15px 0 10px 20px"
  10169. class="sentenceTitle"
  10170. :index="stIndex + 1"
  10171. >
  10172. 题目{{ stIndex + 1 }}:请选择正确顺序
  10173. </div>
  10174. <div class="cardList" v-if="st.chooseSenList">
  10175. <div class="cardBox">
  10176. <div
  10177. v-for="(r, rIndex) in st.chooseSenList"
  10178. :key="rIndex"
  10179. @click="returnCard(r, stIndex, rIndex)"
  10180. >
  10181. <el-tooltip
  10182. class="item"
  10183. effect="light"
  10184. :content="r"
  10185. placement="top"
  10186. v-if="r != '' && r != undefined"
  10187. >
  10188. <div
  10189. :class="{
  10190. isCard: r,
  10191. isChooseCard: r == '' || r == undefined,
  10192. }"
  10193. >
  10194. <div>{{ r }}</div>
  10195. </div>
  10196. </el-tooltip>
  10197. <div
  10198. :class="{
  10199. isCard: r,
  10200. isChooseCard: r == '' || r == undefined,
  10201. }"
  10202. v-else
  10203. >
  10204. <div>{{ r }}</div>
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div class="cardList" v-if="st.addChangeSen">
  10210. <div class="cardBox">
  10211. <div
  10212. v-for="(s, sIndex) in st.addChangeSen"
  10213. :key="sIndex"
  10214. @click="setRightAnswer(s, stIndex, sIndex)"
  10215. >
  10216. <el-tooltip
  10217. class="item"
  10218. effect="light"
  10219. :content="s"
  10220. placement="top"
  10221. v-if="s != '' && s != undefined"
  10222. >
  10223. <div
  10224. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10225. >
  10226. <div>{{ s }}</div>
  10227. </div>
  10228. </el-tooltip>
  10229. <div
  10230. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  10231. v-else
  10232. >
  10233. <div>{{ s }}</div>
  10234. </div>
  10235. </div>
  10236. </div>
  10237. </div>
  10238. </div>
  10239. </div>
  10240. </div>
  10241. <span slot="footer" class="dialog-footer">
  10242. <el-button @click="dialogVisibleSentenceTeacher = false"
  10243. >取 消</el-button
  10244. >
  10245. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  10246. </span>
  10247. </el-dialog>
  10248. <el-dialog
  10249. title="排序"
  10250. :visible.sync="dialogVisibleSentence1"
  10251. :append-to-body="true"
  10252. width="1000px"
  10253. :before-close="handleClose"
  10254. class="dialog_diy dialog_diy3"
  10255. >
  10256. <div>
  10257. <div class="sentenBox">
  10258. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10259. {{ sentenceList1.stuName }}的作业
  10260. </div>
  10261. <div
  10262. v-for="(st, stIndex) in sentenceList1"
  10263. :key="stIndex"
  10264. style="padding-bottom: 20px"
  10265. >
  10266. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  10267. 第{{ stIndex + 1 }}题
  10268. </div>
  10269. <div class="isWrong">
  10270. <div class="cardList1" v-if="st.chooseSenList">
  10271. <div class="cardBox">
  10272. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  10273. <el-tooltip
  10274. class="item"
  10275. effect="light"
  10276. :content="s"
  10277. placement="top"
  10278. >
  10279. <div class="isCard">
  10280. <div>{{ s }}</div>
  10281. </div>
  10282. </el-tooltip>
  10283. </div>
  10284. </div>
  10285. <div class="cardAnswerBox">
  10286. 组成句子:{{ st.chooseSenList.join(" ") }}
  10287. </div>
  10288. </div>
  10289. <div v-if="tType == 2" class="isTj">
  10290. <div class="isTjImg">
  10291. <img src="../../../assets/icon/conSentences/right.png" alt="" />
  10292. </div>
  10293. <div>已提交</div>
  10294. </div>
  10295. <div
  10296. class="answerRight isTj"
  10297. v-if="
  10298. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  10299. (tType == 1 || tType == 4)
  10300. "
  10301. >
  10302. <div class="isTjImg">
  10303. <img src="../../../assets/icon/conSentences/right.png" alt="" />
  10304. </div>
  10305. <div>回答正确</div>
  10306. </div>
  10307. <div
  10308. class="answerRight isTj"
  10309. v-if="
  10310. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10311. (tType == 1 || tType == 4)
  10312. "
  10313. >
  10314. <div class="isTjImg">
  10315. <img src="../../../assets/icon/conSentences/wrong.png" alt="" />
  10316. </div>
  10317. <div>回答错误</div>
  10318. </div>
  10319. </div>
  10320. <div
  10321. v-if="
  10322. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  10323. (tType == 1 || tType == 4)
  10324. "
  10325. >
  10326. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  10327. <div
  10328. class="cardList"
  10329. v-if="st.rightAnswer"
  10330. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  10331. >
  10332. <div class="cardBox">
  10333. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  10334. <el-tooltip
  10335. class="item"
  10336. effect="light"
  10337. :content="r"
  10338. placement="top"
  10339. >
  10340. <div class="isCard1">
  10341. <div>{{ r }}</div>
  10342. </div>
  10343. </el-tooltip>
  10344. </div>
  10345. </div>
  10346. <div class="cardAnswerBox">
  10347. 组成句子:{{ st.rightAnswer.join(" ") }}
  10348. </div>
  10349. </div>
  10350. </div>
  10351. </div>
  10352. </div>
  10353. </div>
  10354. <span slot="footer" class="dialog-footer">
  10355. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  10356. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  10357. >确 定</el-button
  10358. >
  10359. </span>
  10360. </el-dialog>
  10361. <el-dialog
  10362. title="教师提交作业"
  10363. :visible.sync="dialogVisibleWorks"
  10364. :append-to-body="true"
  10365. width="500px"
  10366. :before-close="handleClose"
  10367. class="dialog_change"
  10368. >
  10369. <div class="marginT">
  10370. <div class="w_name">
  10371. 学生姓名:<span>{{ sStudent.student }}</span>
  10372. </div>
  10373. <div>上传文件</div>
  10374. <div
  10375. class="chapter_add"
  10376. @click="addImg($event)"
  10377. v-if="studyJuri[0].cover.length == 0"
  10378. >
  10379. <div class="up_photo">
  10380. <img src="../../../assets/uploadImg2.png" alt />
  10381. </div>
  10382. <!-- <input
  10383. type="file"
  10384. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  10385. style="display: none"
  10386. @change="beforeUpload1($event, 1)"
  10387. /> -->
  10388. <input
  10389. type="file"
  10390. accept="*"
  10391. style="display: none"
  10392. @change="beforeUpload1($event, 1)"
  10393. />
  10394. </div>
  10395. <!-- capture="camera" -->
  10396. <div
  10397. class="chapter_add"
  10398. style="
  10399. display: flex;
  10400. width: 100%;
  10401. flex-direction: row;
  10402. flex-wrap: wrap;
  10403. justify-content: flex-start;
  10404. padding: 15px 0;
  10405. "
  10406. v-if="studyJuri[0].cover.length > 0"
  10407. >
  10408. <div class="upCover">
  10409. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  10410. <img :src="word" alt v-else-if="fileType == 1" />
  10411. <img :src="video" alt v-else-if="fileType == 2" />
  10412. <img :src="word2" alt v-else-if="fileType == 3" />
  10413. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  10414. <div class="deleteWord" @click="clean(1)">
  10415. <img src="../../../assets/icon/deleteWorks.png" alt />
  10416. </div>
  10417. </div>
  10418. </div>
  10419. </div>
  10420. <div
  10421. class="upload_send"
  10422. @click="addCourseWorksTeacher(taskCount)"
  10423. v-if="!proVisible"
  10424. >
  10425. 提交
  10426. </div>
  10427. </el-dialog>
  10428. <ImgDraw
  10429. :drawShow="drawShow"
  10430. @closeDraw="closeDraw"
  10431. @addImgDraw="addImgDraw"
  10432. :bg="bg"
  10433. ></ImgDraw>
  10434. <el-dialog
  10435. title="表格"
  10436. :visible.sync="dialogVisibleTable"
  10437. :append-to-body="true"
  10438. width="95%"
  10439. :before-close="handleClose"
  10440. class="dialog_diy"
  10441. >
  10442. <el-form>
  10443. <div
  10444. style="
  10445. display: flex;
  10446. align-items: center;
  10447. justify-content: space-between;
  10448. "
  10449. >
  10450. <span>表格内容</span>
  10451. <el-button type="primary" size="small" @click="returnTableText"
  10452. >还原模板</el-button
  10453. >
  10454. </div>
  10455. <Table
  10456. v-model="tableJson.text"
  10457. @change="change"
  10458. v-if="dialogVisibleTable"
  10459. ></Table>
  10460. </el-form>
  10461. <span slot="footer" class="dialog-footer">
  10462. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  10463. <el-button type="primary" @click="addTableWorks">确定</el-button>
  10464. </span>
  10465. </el-dialog>
  10466. <el-dialog
  10467. title="表格"
  10468. :visible.sync="dialogVisibleTableTeacher"
  10469. :append-to-body="true"
  10470. width="95%"
  10471. :before-close="handleClose"
  10472. class="dialog_diy"
  10473. >
  10474. <el-form>
  10475. <div class="w_name">
  10476. 学生姓名:<span>{{ sStudent.student }}</span>
  10477. </div>
  10478. <div>表格内容</div>
  10479. <Table
  10480. v-model="tableJson.text"
  10481. @change="change"
  10482. v-if="dialogVisibleTableTeacher"
  10483. ></Table>
  10484. </el-form>
  10485. <span slot="footer" class="dialog-footer">
  10486. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  10487. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  10488. </span>
  10489. </el-dialog>
  10490. <el-dialog
  10491. title="文档"
  10492. :visible.sync="dialogVisibleWord"
  10493. :append-to-body="true"
  10494. width="95%"
  10495. :before-close="handleClose"
  10496. class="dialog_diy"
  10497. >
  10498. <el-form>
  10499. <div
  10500. style="
  10501. display: flex;
  10502. align-items: center;
  10503. justify-content: space-between;
  10504. "
  10505. >
  10506. <span>文档内容</span>
  10507. <el-button type="primary" size="small" @click="returnWordText"
  10508. >还原模板</el-button
  10509. >
  10510. </div>
  10511. <editor-bar
  10512. v-model="wordJson.text"
  10513. v-if="dialogVisibleWord"
  10514. ></editor-bar>
  10515. </el-form>
  10516. <span slot="footer" class="dialog-footer">
  10517. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  10518. <el-button type="primary" @click="addWordWorks">确定</el-button>
  10519. </span>
  10520. </el-dialog>
  10521. <el-dialog
  10522. title="文档"
  10523. :visible.sync="dialogVisibleWordTeacher"
  10524. :append-to-body="true"
  10525. width="95%"
  10526. :before-close="handleClose"
  10527. class="dialog_diy"
  10528. >
  10529. <el-form>
  10530. <div class="w_name">
  10531. 学生姓名:<span>{{ sStudent.student }}</span>
  10532. </div>
  10533. <div>文档内容</div>
  10534. <editor-bar
  10535. v-model="wordJson.text"
  10536. v-if="dialogVisibleWordTeacher"
  10537. ></editor-bar>
  10538. </el-form>
  10539. <span slot="footer" class="dialog-footer">
  10540. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  10541. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  10542. </span>
  10543. </el-dialog>
  10544. <el-dialog
  10545. title="表格"
  10546. :visible.sync="dialogVisibleTable2"
  10547. :append-to-body="true"
  10548. width="95%"
  10549. :before-close="handleClose"
  10550. class="dialog_diy"
  10551. >
  10552. <el-form>
  10553. <div class="cont" v-html="tableJson.text"></div>
  10554. </el-form>
  10555. <span slot="footer" class="dialog-footer">
  10556. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  10557. </span>
  10558. </el-dialog>
  10559. <el-dialog
  10560. title="文档"
  10561. :visible.sync="dialogVisibleTable3"
  10562. :append-to-body="true"
  10563. width="95%"
  10564. :before-close="handleClose"
  10565. class="dialog_diy"
  10566. >
  10567. <el-form>
  10568. <div class="cont" v-html="tableJson.text"></div>
  10569. </el-form>
  10570. <span slot="footer" class="dialog-footer">
  10571. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  10572. </span>
  10573. </el-dialog>
  10574. <el-dialog
  10575. title="分组设置"
  10576. :visible.sync="dialogVisibleGroup"
  10577. :append-to-body="true"
  10578. width="95%"
  10579. :before-close="handleClose"
  10580. class="dialog_diy"
  10581. >
  10582. <div v-if="dialogVisibleGroup">
  10583. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  10584. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  10585. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  10586. </div>
  10587. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  10588. @click="lockChair">
  10589. 锁定位置
  10590. </div>
  10591. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  10592. 解锁位置
  10593. </div> -->
  10594. <div class="group_switch">
  10595. <span>开放选座</span>
  10596. <el-switch
  10597. v-model="islock"
  10598. active-text=""
  10599. class="switchCss"
  10600. @change="lockChair"
  10601. ></el-switch>
  10602. </div>
  10603. <div
  10604. type="primary"
  10605. @click="updateGroup"
  10606. class="returnBtn"
  10607. style="background-color: #225bc7"
  10608. >
  10609. 分组设置
  10610. </div>
  10611. </div>
  10612. <div>
  10613. <div
  10614. class="g_d_box"
  10615. v-if="groupJson.group && groupStudent[toolindex]"
  10616. >
  10617. <div
  10618. class="g_d_group"
  10619. v-for="(g, gindex) in groupJson.group"
  10620. :key="gindex"
  10621. >
  10622. <div class="g_d_group_chair">
  10623. <div v-if="groupJson.number > 1">
  10624. <span
  10625. :class="{
  10626. isChair:
  10627. groupStudent[toolindex][gindex] &&
  10628. groupStudent[toolindex][gindex][0],
  10629. updateChair:
  10630. courseDetail.userid == userid &&
  10631. groupStudent[toolindex][gindex] &&
  10632. groupStudent[toolindex][gindex][0] &&
  10633. groupJson.islock == 2,
  10634. }"
  10635. ><span
  10636. class="updateChairBtn"
  10637. @click="
  10638. updateGroupChair(
  10639. groupStudent[toolindex][gindex] &&
  10640. groupStudent[toolindex][gindex][0]
  10641. )
  10642. "
  10643. >修改</span
  10644. ></span
  10645. ><span>{{
  10646. groupStudent[toolindex][gindex] &&
  10647. groupStudent[toolindex][gindex][0]
  10648. ? groupStudent[toolindex][gindex] &&
  10649. groupStudent[toolindex][gindex][0].name
  10650. : "空位置"
  10651. }}</span>
  10652. </div>
  10653. <div v-if="groupJson.number > 4">
  10654. <span
  10655. :class="{
  10656. isChair:
  10657. groupStudent[toolindex][gindex] &&
  10658. groupStudent[toolindex][gindex][4],
  10659. updateChair:
  10660. courseDetail.userid == userid &&
  10661. groupStudent[toolindex][gindex] &&
  10662. groupStudent[toolindex][gindex][4] &&
  10663. groupJson.islock == 2,
  10664. }"
  10665. ><span
  10666. class="updateChairBtn"
  10667. @click="
  10668. updateGroupChair(
  10669. groupStudent[toolindex][gindex] &&
  10670. groupStudent[toolindex][gindex][4]
  10671. )
  10672. "
  10673. >修改</span
  10674. ></span
  10675. ><span>{{
  10676. groupStudent[toolindex][gindex] &&
  10677. groupStudent[toolindex][gindex][4]
  10678. ? groupStudent[toolindex][gindex] &&
  10679. groupStudent[toolindex][gindex][4].name
  10680. : "空位置"
  10681. }}</span>
  10682. </div>
  10683. <div v-if="groupJson.number > 8">
  10684. <span
  10685. :class="{
  10686. isChair:
  10687. groupStudent[toolindex][gindex] &&
  10688. groupStudent[toolindex][gindex][8],
  10689. updateChair:
  10690. courseDetail.userid == userid &&
  10691. groupStudent[toolindex][gindex] &&
  10692. groupStudent[toolindex][gindex][8] &&
  10693. groupJson.islock == 2,
  10694. }"
  10695. ><span
  10696. class="updateChairBtn"
  10697. @click="
  10698. updateGroupChair(
  10699. groupStudent[toolindex][gindex] &&
  10700. groupStudent[toolindex][gindex][8]
  10701. )
  10702. "
  10703. >修改</span
  10704. ></span
  10705. ><span>{{
  10706. groupStudent[toolindex][gindex] &&
  10707. groupStudent[toolindex][gindex][8]
  10708. ? groupStudent[toolindex][gindex] &&
  10709. groupStudent[toolindex][gindex][8].name
  10710. : "空位置"
  10711. }}</span>
  10712. </div>
  10713. </div>
  10714. <div class="g_d_group_tableBox">
  10715. <div class="g_d_group_chair2">
  10716. <div v-if="groupJson.number > 2">
  10717. <span
  10718. :class="{
  10719. isChair:
  10720. groupStudent[toolindex][gindex] &&
  10721. groupStudent[toolindex][gindex][2],
  10722. updateChair:
  10723. courseDetail.userid == userid &&
  10724. groupStudent[toolindex][gindex] &&
  10725. groupStudent[toolindex][gindex][2] &&
  10726. groupJson.islock == 2,
  10727. }"
  10728. ><span
  10729. class="updateChairBtn"
  10730. @click="
  10731. updateGroupChair(
  10732. groupStudent[toolindex][gindex] &&
  10733. groupStudent[toolindex][gindex][2]
  10734. )
  10735. "
  10736. >修改</span
  10737. ></span
  10738. ><span>{{
  10739. groupStudent[toolindex][gindex] &&
  10740. groupStudent[toolindex][gindex][2]
  10741. ? groupStudent[toolindex][gindex] &&
  10742. groupStudent[toolindex][gindex][2].name
  10743. : "空位置"
  10744. }}</span>
  10745. </div>
  10746. <div v-if="groupJson.number > 6">
  10747. <span
  10748. :class="{
  10749. isChair:
  10750. groupStudent[toolindex][gindex] &&
  10751. groupStudent[toolindex][gindex][6],
  10752. updateChair:
  10753. courseDetail.userid == userid &&
  10754. groupStudent[toolindex][gindex] &&
  10755. groupStudent[toolindex][gindex][6] &&
  10756. groupJson.islock == 2,
  10757. }"
  10758. ><span
  10759. class="updateChairBtn"
  10760. @click="
  10761. updateGroupChair(
  10762. groupStudent[toolindex][gindex] &&
  10763. groupStudent[toolindex][gindex][6]
  10764. )
  10765. "
  10766. >修改</span
  10767. ></span
  10768. ><span>{{
  10769. groupStudent[toolindex][gindex] &&
  10770. groupStudent[toolindex][gindex][6]
  10771. ? groupStudent[toolindex][gindex] &&
  10772. groupStudent[toolindex][gindex][6].name
  10773. : "空位置"
  10774. }}</span>
  10775. </div>
  10776. </div>
  10777. <div class="g_d_group_table">
  10778. <div>
  10779. {{ g.name }}
  10780. </div>
  10781. <div>
  10782. <div
  10783. v-if="
  10784. courseDetail.userid == userid && groupJson.islock == 2
  10785. "
  10786. @click="deleteGroupChair(gindex)"
  10787. >
  10788. 移除组员
  10789. </div>
  10790. <div
  10791. @click="selectGroup(gindex)"
  10792. v-else-if="
  10793. groupStudentUid[toolindex] &&
  10794. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  10795. "
  10796. >
  10797. 加入分组
  10798. </div>
  10799. <div
  10800. @click="
  10801. exitGroup(
  10802. groupStudent[toolindex][gindex] &&
  10803. groupStudent[toolindex][gindex][
  10804. groupStudentUid[toolindex][gindex].indexOf(userid)
  10805. ].id
  10806. )
  10807. "
  10808. v-else-if="
  10809. groupStudentUid[toolindex] &&
  10810. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  10811. "
  10812. >
  10813. 退出分组
  10814. </div>
  10815. </div>
  10816. </div>
  10817. <div class="g_d_group_chair2">
  10818. <div v-if="groupJson.number > 3">
  10819. <span
  10820. :class="{
  10821. isChair:
  10822. groupStudent[toolindex][gindex] &&
  10823. groupStudent[toolindex][gindex][3],
  10824. updateChair:
  10825. courseDetail.userid == userid &&
  10826. groupStudent[toolindex][gindex] &&
  10827. groupStudent[toolindex][gindex][3] &&
  10828. groupJson.islock == 2,
  10829. }"
  10830. ><span
  10831. class="updateChairBtn"
  10832. @click="
  10833. updateGroupChair(
  10834. groupStudent[toolindex][gindex] &&
  10835. groupStudent[toolindex][gindex][3]
  10836. )
  10837. "
  10838. >修改</span
  10839. ></span
  10840. ><span>{{
  10841. groupStudent[toolindex][gindex] &&
  10842. groupStudent[toolindex][gindex][3]
  10843. ? groupStudent[toolindex][gindex] &&
  10844. groupStudent[toolindex][gindex][3].name
  10845. : "空位置"
  10846. }}</span>
  10847. </div>
  10848. <div v-if="groupJson.number > 7">
  10849. <span
  10850. :class="{
  10851. isChair:
  10852. groupStudent[toolindex][gindex] &&
  10853. groupStudent[toolindex][gindex][7],
  10854. updateChair:
  10855. courseDetail.userid == userid &&
  10856. groupStudent[toolindex][gindex] &&
  10857. groupStudent[toolindex][gindex][7] &&
  10858. groupJson.islock == 2,
  10859. }"
  10860. ><span
  10861. class="updateChairBtn"
  10862. @click="
  10863. updateGroupChair(
  10864. groupStudent[toolindex][gindex] &&
  10865. groupStudent[toolindex][gindex][7]
  10866. )
  10867. "
  10868. >修改</span
  10869. ></span
  10870. ><span>{{
  10871. groupStudent[toolindex][gindex] &&
  10872. groupStudent[toolindex][gindex][7]
  10873. ? groupStudent[toolindex][gindex] &&
  10874. groupStudent[toolindex][gindex][7].name
  10875. : "空位置"
  10876. }}</span>
  10877. </div>
  10878. </div>
  10879. </div>
  10880. <div class="g_d_group_chair">
  10881. <div v-if="groupJson.number > 1">
  10882. <span
  10883. :class="{
  10884. isChair:
  10885. groupStudent[toolindex][gindex] &&
  10886. groupStudent[toolindex][gindex][1],
  10887. updateChair:
  10888. courseDetail.userid == userid &&
  10889. groupStudent[toolindex][gindex] &&
  10890. groupStudent[toolindex][gindex][1] &&
  10891. groupJson.islock == 2,
  10892. }"
  10893. ><span
  10894. class="updateChairBtn"
  10895. @click="
  10896. updateGroupChair(
  10897. groupStudent[toolindex][gindex] &&
  10898. groupStudent[toolindex][gindex][1]
  10899. )
  10900. "
  10901. >修改</span
  10902. ></span
  10903. ><span>{{
  10904. groupStudent[toolindex][gindex] &&
  10905. groupStudent[toolindex][gindex][1]
  10906. ? groupStudent[toolindex][gindex] &&
  10907. groupStudent[toolindex][gindex][1].name
  10908. : "空位置"
  10909. }}</span>
  10910. </div>
  10911. <div v-if="groupJson.number > 5">
  10912. <span
  10913. :class="{
  10914. isChair:
  10915. groupStudent[toolindex][gindex] &&
  10916. groupStudent[toolindex][gindex][5],
  10917. updateChair:
  10918. courseDetail.userid == userid &&
  10919. groupStudent[toolindex][gindex] &&
  10920. groupStudent[toolindex][gindex][5] &&
  10921. groupJson.islock == 2,
  10922. }"
  10923. ><span
  10924. class="updateChairBtn"
  10925. @click="
  10926. updateGroupChair(
  10927. groupStudent[toolindex][gindex] &&
  10928. groupStudent[toolindex][gindex][5]
  10929. )
  10930. "
  10931. >修改</span
  10932. ></span
  10933. ><span>{{
  10934. groupStudent[toolindex][gindex] &&
  10935. groupStudent[toolindex][gindex][5]
  10936. ? groupStudent[toolindex][gindex] &&
  10937. groupStudent[toolindex][gindex][5].name
  10938. : "空位置"
  10939. }}</span>
  10940. </div>
  10941. <div v-if="groupJson.number > 9">
  10942. <span
  10943. :class="{
  10944. isChair:
  10945. groupStudent[toolindex][gindex] &&
  10946. groupStudent[toolindex][gindex][9],
  10947. updateChair:
  10948. courseDetail.userid == userid &&
  10949. groupStudent[toolindex][gindex] &&
  10950. groupStudent[toolindex][gindex][9] &&
  10951. groupJson.islock == 2,
  10952. }"
  10953. ><span
  10954. class="updateChairBtn"
  10955. @click="
  10956. updateGroupChair(
  10957. groupStudent[toolindex][gindex] &&
  10958. groupStudent[toolindex][gindex][9]
  10959. )
  10960. "
  10961. >修改</span
  10962. ></span
  10963. ><span>{{
  10964. groupStudent[toolindex][gindex] &&
  10965. groupStudent[toolindex][gindex][9]
  10966. ? groupStudent[toolindex][gindex] &&
  10967. groupStudent[toolindex][gindex][9].name
  10968. : "空位置"
  10969. }}</span>
  10970. </div>
  10971. </div>
  10972. </div>
  10973. </div>
  10974. </div>
  10975. </div>
  10976. <span slot="footer" class="dialog-footer">
  10977. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  10978. </span>
  10979. </el-dialog>
  10980. <el-dialog
  10981. title="分组设置"
  10982. :visible.sync="dialogVisibleGroup2"
  10983. :append-to-body="true"
  10984. width="650px"
  10985. :before-close="handleClose"
  10986. class="dialog_diy"
  10987. >
  10988. <div class="groupBox">
  10989. <div v-if="groupJson2.group" class="groupContent">
  10990. <div class="groupTitle">请设置小组数量及名称</div>
  10991. <div
  10992. v-for="(item, index) in groupJson2.group"
  10993. :key="index"
  10994. class="groupName"
  10995. >
  10996. <span class="groupn">第{{ index + 1 }}组名称:</span>
  10997. <el-input
  10998. v-model="item.name"
  10999. placeholder="请输入名称..."
  11000. style="width: 250px"
  11001. ></el-input>
  11002. <!-- <div class="groupBtn">
  11003. <el-button type="primary" size="small" @click="addGroup(index)">
  11004. 添加</el-button>
  11005. <el-button type="primary" size="small" @click="deleteGroup(index)"
  11006. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  11007. </div> -->
  11008. </div>
  11009. </div>
  11010. <div class="groupContent">
  11011. <div class="groupTitle">请设置每组人数</div>
  11012. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  11013. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  11014. <el-input
  11015. v-model="groupJson.number"
  11016. style="width: 150px"
  11017. placeholder="请输入2-10的数字"
  11018. @change="numberPan"
  11019. ></el-input>
  11020. </div>
  11021. </div>
  11022. <span slot="footer" class="dialog-footer">
  11023. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  11024. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  11025. </span>
  11026. </el-dialog>
  11027. <el-dialog
  11028. title="作业提交"
  11029. :visible.sync="dialogVisibleGroupWork"
  11030. :append-to-body="true"
  11031. width="500px"
  11032. :before-close="handleClose"
  11033. class="dialog_change"
  11034. >
  11035. <div class="marginT">
  11036. <div>上传文件</div>
  11037. <div
  11038. class="chapter_add"
  11039. @click="addImg($event)"
  11040. v-if="studyJuri[0].cover.length == 0"
  11041. >
  11042. <div class="up_photo">
  11043. <img src="../../../assets/icon/uploadImg.png" alt />
  11044. </div>
  11045. <!-- <input
  11046. type="file"
  11047. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11048. style="display: none"
  11049. @change="beforeUpload1($event, 1)"
  11050. /> -->
  11051. <input
  11052. type="file"
  11053. accept="*"
  11054. style="display: none"
  11055. @change="beforeUpload1($event, 1)"
  11056. />
  11057. </div>
  11058. <!-- capture="camera" -->
  11059. <div
  11060. class="chapter_add"
  11061. style="
  11062. display: flex;
  11063. width: 100%;
  11064. flex-direction: row;
  11065. flex-wrap: wrap;
  11066. justify-content: flex-start;
  11067. padding: 15px 0;
  11068. "
  11069. v-if="studyJuri[0].cover.length > 0"
  11070. >
  11071. <div class="upCover">
  11072. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  11073. <img :src="word" alt v-else-if="fileType == 1" />
  11074. <img :src="video" alt v-else-if="fileType == 2" />
  11075. <img :src="word2" alt v-else-if="fileType == 3" />
  11076. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11077. <div class="deleteWord" @click="clean(1)">
  11078. <img src="../../../assets/icon/deleteWorks.png" alt />
  11079. </div>
  11080. </div>
  11081. </div>
  11082. </div>
  11083. <div
  11084. class="upload_send"
  11085. @click="addCourseWorks2(taskCount)"
  11086. v-if="!proVisible"
  11087. >
  11088. 提交
  11089. </div>
  11090. </el-dialog>
  11091. <el-dialog
  11092. title="修改分组"
  11093. :visible.sync="dialogVisibleUpdateGroup"
  11094. :append-to-body="true"
  11095. width="350px"
  11096. :before-close="handleClose"
  11097. class="dialog_diy"
  11098. >
  11099. <div>
  11100. <h2>
  11101. {{ this.updateGroupUser.name }}
  11102. </h2>
  11103. <div style="color: rgb(171 171 171); margin-top: 10px">
  11104. 请选择要进入的分组
  11105. </div>
  11106. <el-radio-group v-model="checkChair">
  11107. <el-radio
  11108. style="display: block; margin-top: 20px"
  11109. v-for="(item, index) in updateGroupArray"
  11110. :label="item.label"
  11111. :key="index"
  11112. >{{ item.name }}</el-radio
  11113. >
  11114. </el-radio-group>
  11115. </div>
  11116. <span slot="footer" class="dialog-footer">
  11117. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  11118. <el-button type="primary" @click="updateChair">确定</el-button>
  11119. </span>
  11120. </el-dialog>
  11121. <el-dialog
  11122. title="移除组员"
  11123. :visible.sync="dialogVisibleDeleteGroup"
  11124. :append-to-body="true"
  11125. width="350px"
  11126. :before-close="handleClose"
  11127. class="dialog_diy"
  11128. >
  11129. <div>
  11130. <h2>
  11131. {{ this.deleteGroupArray.name }}
  11132. </h2>
  11133. <div style="color: rgb(171 171 171); margin-top: 10px">
  11134. 请选择要删除的组员
  11135. </div>
  11136. <el-checkbox-group v-model="checkDeleteGroup">
  11137. <el-checkbox
  11138. style="display: flex; margin-top: 20px"
  11139. v-for="(item, index) in deleteGroupUser"
  11140. :label="item.userid"
  11141. :key="index"
  11142. >{{ item.name }}</el-checkbox
  11143. >
  11144. </el-checkbox-group>
  11145. </div>
  11146. <span slot="footer" class="dialog-footer">
  11147. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  11148. <el-button type="primary" @click="deleteChair">确定</el-button>
  11149. </span>
  11150. </el-dialog>
  11151. <el-dialog
  11152. title="批量上传"
  11153. :visible.sync="dialogVisiblePl"
  11154. :append-to-body="true"
  11155. width="700px"
  11156. :before-close="handleClose"
  11157. class="dialog_change"
  11158. >
  11159. <div class="marginT">
  11160. <div class="plworkBox">
  11161. <div
  11162. class="chapter_add"
  11163. style="
  11164. display: flex;
  11165. width: 150px;
  11166. flex-direction: row;
  11167. flex-wrap: wrap;
  11168. justify-content: flex-start;
  11169. margin: 0 10px 10px 0;
  11170. "
  11171. v-for="(item, index) in plworkFile"
  11172. :key="index"
  11173. >
  11174. <div class="upCover2">
  11175. <img
  11176. :src="item.url"
  11177. alt
  11178. v-if="item.fileType == 1"
  11179. @click="previewImg(item.url)"
  11180. />
  11181. <img :src="word" alt v-else-if="item.fileType == 4" />
  11182. <img :src="video" alt v-else />
  11183. <!-- <span class="picName">{{ item.name }}</span> -->
  11184. <!-- <el-input
  11185. v-model="item.username"
  11186. placeholder="请输入学生名字"
  11187. style="margin-top: 10px"
  11188. ></el-input> -->
  11189. <div
  11190. class="pl_select_box"
  11191. @click="
  11192. getUpdateMore(true, checkUpload(), item.username, index)
  11193. "
  11194. >
  11195. {{ getSName(item.username) }}
  11196. </div>
  11197. <!-- <el-select
  11198. style="margin-top: 10px"
  11199. v-model="item.username"
  11200. filterable
  11201. allow-create
  11202. placeholder="请选择学生"
  11203. >
  11204. <el-option
  11205. v-for="item1 in checkUpload()"
  11206. :key="item1.userid"
  11207. :label="item1.name ? item1.name : item1.username"
  11208. :value="item1.userid"
  11209. >
  11210. </el-option>
  11211. </el-select> -->
  11212. <div class="deleteWord" @click="clean2(index)">
  11213. <img src="../../../assets/icon/deleteWorks.png" alt />
  11214. </div>
  11215. </div>
  11216. </div>
  11217. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  11218. <div class="up_photo2">
  11219. <img src="../../../assets/icon/plwork.png" alt />
  11220. <span>点击上传文件</span>
  11221. </div>
  11222. <input
  11223. type="file"
  11224. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11225. multiple="multiple"
  11226. style="display: none"
  11227. @change="beforeUpload3($event, 6)"
  11228. />
  11229. </div>
  11230. </div>
  11231. </div>
  11232. <!-- capture="camera" -->
  11233. <div
  11234. class="upload_send"
  11235. @click="addCourseWorksPl(taskCount)"
  11236. v-if="!proVisible2"
  11237. >
  11238. 提交
  11239. </div>
  11240. </el-dialog>
  11241. <el-dialog
  11242. title="修改名称"
  11243. :visible.sync="dialogVisibleSname"
  11244. width="500px"
  11245. :before-close="handleClose"
  11246. class="dialog_diy"
  11247. center
  11248. >
  11249. <div
  11250. style="
  11251. text-align: center;
  11252. display: flex;
  11253. align-items: center;
  11254. justify-content: center;
  11255. "
  11256. >
  11257. <span class="tian1">名称</span>
  11258. <div
  11259. class="pl_select_box"
  11260. style="margin-left: 10px; width: 200px"
  11261. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  11262. >
  11263. {{ getSName(worksSName) }}
  11264. </div>
  11265. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  11266. placeholder="请选择学生">
  11267. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  11268. :value="item.userid">
  11269. </el-option>
  11270. </el-select> -->
  11271. <!-- <el-input
  11272. v-model="worksSName"
  11273. style="width: 250px; margin: 15px 0px"
  11274. ></el-input> -->
  11275. </div>
  11276. <span slot="footer" class="dialog-footer">
  11277. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  11278. <el-button type="primary" @click="updateName">确 定</el-button>
  11279. </span>
  11280. </el-dialog>
  11281. <el-dialog
  11282. title="英语写作"
  11283. :visible.sync="engDialogVisible"
  11284. :append-to-body="true"
  11285. width="800px"
  11286. :before-close="handleClose"
  11287. class="dialog_diy"
  11288. >
  11289. <onlineWrite
  11290. v-if="engDialogVisible"
  11291. :englishList="englishList"
  11292. :myAnswerList1="myAnswerList1"
  11293. ref="engJson"
  11294. ></onlineWrite>
  11295. <span slot="footer" class="dialog-footer" style="text-align: center;">
  11296. <el-button @click="engDialogVisible = false">取 消</el-button>
  11297. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  11298. </span>
  11299. </el-dialog>
  11300. <el-dialog
  11301. title="英语写作"
  11302. :visible.sync="engUpdateDialogVisible"
  11303. :append-to-body="true"
  11304. width="800px"
  11305. :before-close="handleClose"
  11306. class="dialog_diy fullStyle"
  11307. >
  11308. <div class="engUpBox">
  11309. <div class="engUpTop">
  11310. <div class="engTitle">
  11311. <div>作文题目:</div>
  11312. <div>{{ englishList1.engTitle }}</div>
  11313. </div>
  11314. <div class="engText">
  11315. <div>作文内容:</div>
  11316. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  11317. </div>
  11318. </div>
  11319. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  11320. <div class="oldBox">
  11321. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  11322. <div class="oldText">
  11323. <div class="detailBox">
  11324. <div class="oldDetail">
  11325. <div>标题:</div>
  11326. <div>{{ oldEnglishJson.engTitle }} </div>
  11327. </div>
  11328. <div class="oldDetail1">
  11329. <div>正文:</div>
  11330. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  11331. </div>
  11332. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  11333. <div>图片:</div>
  11334. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  11335. </div>
  11336. </div>
  11337. </div>
  11338. </div>
  11339. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  11340. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  11341. <div class="oldText">
  11342. <div class="detailBox" style="position: relative;">
  11343. <div class="oldDetail">
  11344. <div>标题:</div>
  11345. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11346. <div v-else v-html="newEnglishList.engTitle"></div>
  11347. </div>
  11348. <div class="oldDetail">
  11349. <div>正文:</div>
  11350. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11351. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11352. </div>
  11353. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11354. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11355. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11356. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11357. </div>
  11358. </div>
  11359. </div>
  11360. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  11361. <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">
  11362. <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>
  11363. <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>
  11364. </div>
  11365. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  11366. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  11367. <div class="detailBox" style="position: relative;">
  11368. <div class="oldDetail">
  11369. <div>标题:</div>
  11370. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  11371. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  11372. </div>
  11373. <div class="oldDetail">
  11374. <div>正文:</div>
  11375. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  11376. <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText)"></div>
  11377. </div>
  11378. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11379. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11380. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11381. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11382. </div>
  11383. </div>
  11384. <div class="oldText" v-else-if="newEngIndex == -1">
  11385. <div class="detailBox" style="position: relative;">
  11386. <div class="oldDetail">
  11387. <div>标题:</div>
  11388. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  11389. <div v-else v-html="newEnglishList.engTitle"></div>
  11390. </div>
  11391. <div class="oldDetail">
  11392. <div>正文:</div>
  11393. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  11394. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div>
  11395. </div>
  11396. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11397. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11398. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11399. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11400. </div>
  11401. </div>
  11402. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  11403. <div class="detailBox" style="position: relative;">
  11404. <div class="oldDetail">
  11405. <div>标题:</div>
  11406. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11407. <div v-else>
  11408. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  11409. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  11410. </div>
  11411. </div>
  11412. <div class="oldDetail">
  11413. <div>正文:</div>
  11414. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div>
  11415. <div v-else>
  11416. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  11417. <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText)"></div>
  11418. </div>
  11419. </div>
  11420. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  11421. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  11422. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  11423. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  11424. </div>
  11425. </div>
  11426. </div>
  11427. </div>
  11428. </div>
  11429. <span slot="footer" class="dialog-footer">
  11430. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  11431. <el-button type="primary" @click="addCorrect">确 定</el-button>
  11432. </span>
  11433. </el-dialog>
  11434. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  11435. <interVideo
  11436. :dialogVisibleVideo.sync="dialogVisibleVideo"
  11437. :videoJson="videoJson"
  11438. :userid="userid"
  11439. :id="id"
  11440. :courseType="courseType"
  11441. :taskCount="taskCount"
  11442. :toolindex="toolindex"
  11443. ></interVideo>
  11444. <UpdateMore
  11445. :dialogVisibleMember.sync="dialogVisibleMember"
  11446. :cList="uploadStudentJuri"
  11447. :userid="userid"
  11448. :searchTN="worksSName2"
  11449. @setPlname="setPlname"
  11450. ></UpdateMore>
  11451. <wordCloud
  11452. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  11453. :data="wordCloudData"
  11454. ></wordCloud>
  11455. <el-dialog
  11456. title="挑人"
  11457. :visible.sync="dialogVisiblePickPeople"
  11458. width="650px"
  11459. :before-close="handleClose"
  11460. class="dialog_diy"
  11461. center
  11462. >
  11463. <div class="pick_box">
  11464. <div
  11465. class="noWorksName"
  11466. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  11467. v-for="(item, index) in uploadStudentJuri"
  11468. :key="index"
  11469. @click="pickStudent(item)"
  11470. >
  11471. {{ item.name }}
  11472. </div>
  11473. </div>
  11474. </el-dialog>
  11475. </div>
  11476. </template>
  11477. <script>
  11478. import "../../../common/aws-sdk-2.235.1.min.js";
  11479. // import pdf from "../components/pdf3";
  11480. import pdf from "../../components/vpdf";
  11481. import AskStatic from "../../components/askStatic";
  11482. import AskStatic2 from "../../components/askStatic2";
  11483. import AnswerData2 from "../../components/answerData2";
  11484. import AnswerData from "../../components/answerData";
  11485. import EditorBar from "../../tools/wangEnduit.vue";
  11486. import Table from "../../tools/table.vue";
  11487. import Time from "../../tools/time.vue";
  11488. import Mind from "../../tools/jsmind.vue";
  11489. import Sunburst from "../../tools/sunburst";
  11490. import SeeBoard from "../../tools/seeBoard";
  11491. import * as imageConversion from "image-conversion";
  11492. import Audio from "../../components/audio.vue";
  11493. import ImgDraw from "../../tools/imgDraw/imgDraw";
  11494. import { Empty } from "element-ui";
  11495. import RecordRTC from "recordrtc";
  11496. import interVideo from "../../interVideo/index.vue";
  11497. import UpdateMore from "../../updateMore/updateMore.vue";
  11498. import wordCloud from "../../wordCloud/index.vue";
  11499. import axios from "axios";
  11500. import JSZip from "jszip";
  11501. import FileSaver from "file-saver";
  11502. import onlineWrite from "./commpont/onlineWrite";
  11503. import englishEva from "../../components/englishEva";
  11504. import * as Diff from 'diff'
  11505. const getFile = (url) => {
  11506. return new Promise((resolve, reject) => {
  11507. var credentials = {
  11508. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  11509. secretAccessKey: "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",
  11510. }; //秘钥形式的登录上传
  11511. window.AWS.config.update(credentials);
  11512. window.AWS.config.region = "cn-northwest-1"; //设置区域
  11513. let url2 = url;
  11514. let _url2 = "";
  11515. if (
  11516. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  11517. ) {
  11518. _url2 = url2.split(
  11519. "https://view.officeapps.live.com/op/view.aspx?src="
  11520. )[1];
  11521. } else {
  11522. _url2 = url2;
  11523. }
  11524. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  11525. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  11526. var params = {
  11527. Bucket: "ccrb",
  11528. Key: name
  11529. };
  11530. s3.getObject(params, function (err, data) {
  11531. if (err) {
  11532. console.log(err, err.stack)
  11533. resolve({ data: 1 });
  11534. }else {
  11535. resolve({ data: data.Body });
  11536. console.log(data);
  11537. } // sxuccessful response
  11538. });
  11539. // axios({
  11540. // method: "get",
  11541. // url,
  11542. // responseType: "blob",
  11543. // })
  11544. // .then((data) => {
  11545. // resolve({ data: data.data });
  11546. // })
  11547. // .catch((error) => {
  11548. // resolve({ data: 1 });
  11549. // // reject(error.toString());
  11550. // });
  11551. });
  11552. };
  11553. export default {
  11554. components: {
  11555. EditorBar,
  11556. Time,
  11557. pdf,
  11558. AskStatic,
  11559. AskStatic2,
  11560. Mind,
  11561. Sunburst,
  11562. SeeBoard,
  11563. AnswerData2,
  11564. AnswerData,
  11565. Audio,
  11566. ImgDraw,
  11567. Table,
  11568. interVideo,
  11569. UpdateMore,
  11570. wordCloud,
  11571. onlineWrite,
  11572. englishEva,
  11573. },
  11574. data() {
  11575. return {
  11576. bg: null,
  11577. drawShow: false,
  11578. dialogVisible: false,
  11579. dialogVisiblePl: false,
  11580. commentDialogVisible: false,
  11581. dialogVisibleMember: false,
  11582. dialogVisibleWordCloud: false,
  11583. videoVisible: false,
  11584. isStar: false,
  11585. studentEvalDialogVisible: false,
  11586. studentEvalDialogVisibleTeacher: false,
  11587. dialogVisibleSelect: false,
  11588. dialogVisibleSelectTeacher: false,
  11589. dialogVisibleScore: false,
  11590. dialogVisibleSentence: false,
  11591. dialogVisibleSentenceTeacher: false,
  11592. dialogVisibleSentence1: false,
  11593. dialogVisibleWorks: false,
  11594. dialogVisibleTable: false,
  11595. dialogVisibleTableTeacher: false,
  11596. dialogVisibleWord: false,
  11597. dialogVisibleWordTeacher: false,
  11598. dialogVisibleTable2: false,
  11599. dialogVisibleTable3: false,
  11600. dialogVisibleGroupWork: false,
  11601. dialogVisibleUpdateGroup: false,
  11602. dialogVisibleDeleteGroup: false,
  11603. dialogVisibleSname: false,
  11604. dialogVisibleVideo: false,
  11605. dialogVisiblePickPeople: false,
  11606. engDialogVisible: false,
  11607. engUpdateDialogVisible:false,
  11608. engEvaDialogVisible: false,
  11609. evaEngJson: {
  11610. teacherJson: {},
  11611. studentJson: {},
  11612. message: {},
  11613. },
  11614. isNoUserid:false,
  11615. engListLength:0,
  11616. engWid:"",
  11617. newEnglishList:{
  11618. engTitle:"",
  11619. engText:"",
  11620. },
  11621. newEnglishList1:[],
  11622. oldEnglishJson:{},
  11623. oldEnglishJson1:{},
  11624. englishList1:{},
  11625. englishList:{},
  11626. myAnswerList1:{},
  11627. topHeight:0,
  11628. newEngIndex:-1,
  11629. englishToolIndex:0,
  11630. userMes:{},
  11631. englishToolIndex:0,
  11632. worksSName: "",
  11633. classJuri: [],
  11634. uploadStudentJuri: [],
  11635. uploadCid: "",
  11636. snameWid: "",
  11637. sStudent: {},
  11638. sTool: "",
  11639. bzText: "",
  11640. commentDetail: [],
  11641. selectAnswer: [],
  11642. videoDetail: {},
  11643. selectJson: {},
  11644. englishList: {},
  11645. topHeight:0,
  11646. eScore: { eBzText: "", eStar: [] },
  11647. id: this.$route.query.courseId,
  11648. userid: this.$route.query.userid,
  11649. classId: this.$route.query.cid,
  11650. // courseTypeLine: this.$route.query.type,
  11651. oid: this.$route.query.oid,
  11652. org: this.$route.query.org,
  11653. tType: this.$route.query.tType,
  11654. courseType: this.$route.query.type,
  11655. screenType: this.$route.query.screenType,
  11656. tcid2: this.$route.query.tcid,
  11657. tcid: "",
  11658. pptImgUrl: "",
  11659. pptImgUrl1: "",
  11660. commentText: "",
  11661. full: false,
  11662. sIsOpen: false,
  11663. IsLookOpen: false,
  11664. IsFollow: false,
  11665. pzDialog: false,
  11666. contentDialog: false,
  11667. mlDialog: false,
  11668. type: 1,
  11669. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  11670. sentenceList1: [],
  11671. tableJson: [],
  11672. tableJsonO: [],
  11673. wordJson: [],
  11674. wordJsonO: [],
  11675. vedio: [],
  11676. text: [],
  11677. textList: [],
  11678. line: [],
  11679. lineList: [],
  11680. chapTools: [],
  11681. chapToolList: [],
  11682. file: [],
  11683. fileC: [],
  11684. vedioTime: [],
  11685. upToolImg: "",
  11686. preTime: 0,
  11687. rateList: {
  11688. ca: 0,
  11689. },
  11690. rateParams: [],
  11691. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  11692. studyJuri: [
  11693. {
  11694. content: "",
  11695. cover: [],
  11696. upVedio: [],
  11697. upFile: [],
  11698. },
  11699. ],
  11700. isClose: 0,
  11701. plworkFile: [],
  11702. mr: require("../../../assets/vedioPic.png"),
  11703. word: require("../../../assets/icon/isWord.png"),
  11704. word2: require("../../../assets/icon/word2.png"),
  11705. video: require("../../../assets/icon/isVideo.png"),
  11706. noLikes: require("../../../assets/icon/comment/noLikes.png"),
  11707. likes: require("../../../assets/icon/comment/likes.png"),
  11708. scoreImg: require("../../../assets/score.png"),
  11709. courseDetail: {},
  11710. reply: "",
  11711. isSelect: false,
  11712. chapInfo: [],
  11713. chapInfoList: [],
  11714. taskCount: 0,
  11715. imgList: [],
  11716. noImgList: [],
  11717. pzList: [],
  11718. timeWorkList: [],
  11719. PlTextList: [
  11720. "Excellent!",
  11721. "nice!",
  11722. "很有创意!",
  11723. "还不错哦~",
  11724. "继续努力哦~",
  11725. ],
  11726. isClickNav: "",
  11727. navId: "",
  11728. playerOptions: {
  11729. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11730. autoplay: false, //如果true,浏览器准备好时开始回放。
  11731. muted: false, // 默认情况下将会消除任何音频。
  11732. loop: false, // 导致视频一结束就重新开始。
  11733. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11734. language: "zh-CN",
  11735. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11736. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11737. sources: [
  11738. {
  11739. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11740. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11741. },
  11742. ],
  11743. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11744. // poster: dataRes.imgUrl, //你的封面地址
  11745. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11746. controlBar: {
  11747. timeDivider: true, //当前时间和持续时间的分隔符
  11748. durationDisplay: true, //显示持续时间
  11749. remainingTimeDisplay: false, //是否显示剩余时间功能
  11750. fullscreenToggle: true, //全屏按钮
  11751. },
  11752. },
  11753. playerOptions1: {
  11754. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  11755. autoplay: false, //如果true,浏览器准备好时开始回放。
  11756. muted: false, // 默认情况下将会消除任何音频。
  11757. loop: false, // 导致视频一结束就重新开始。
  11758. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  11759. language: "zh-CN",
  11760. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  11761. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  11762. sources: [
  11763. {
  11764. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  11765. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  11766. },
  11767. ],
  11768. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  11769. // poster: dataRes.imgUrl, //你的封面地址
  11770. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  11771. controlBar: {
  11772. timeDivider: true, //当前时间和持续时间的分隔符
  11773. durationDisplay: true, //显示持续时间
  11774. remainingTimeDisplay: false, //是否显示剩余时间功能
  11775. fullscreenToggle: true, //全屏按钮
  11776. },
  11777. },
  11778. playerO: {},
  11779. noneBtnImg: false,
  11780. proVisible: false,
  11781. proVisible2: false,
  11782. progress: 0,
  11783. isFinishSize: 0,
  11784. isAllSize: 0,
  11785. questionAnswer: "",
  11786. answerQ: "", //问答标题
  11787. rateJson: [],
  11788. wbCount: 0,
  11789. wordCount: 0,
  11790. mindCount: 0,
  11791. askCount: 0,
  11792. noteCount: 0,
  11793. mindNetWorkCount: 0,
  11794. libraryCount: 0,
  11795. workCount: 0,
  11796. timeCount: 0,
  11797. answerCount: 0,
  11798. trainCount: 0,
  11799. evalCount: 0,
  11800. dialogImageUrl: "",
  11801. pictureDialog: false,
  11802. toolTypeList: [],
  11803. dialogVisible1: false,
  11804. dialogVisible2: false,
  11805. dialogVisible3: false,
  11806. dialogVisible6: false,
  11807. dialogVisible4: false,
  11808. isNoHomeWork: false,
  11809. dialogVisible5: false,
  11810. dialogVisible5Teacher: false,
  11811. dialogVisibleChoice: false,
  11812. dialogVisibleChoiceTeacher: false,
  11813. answerDialogVisible: false,
  11814. answerDialogVisibleTeacher: false,
  11815. juriVisible: false,
  11816. timeDialogVisible: false,
  11817. replyDialogVisible: false,
  11818. toolDialogVisible: false,
  11819. replyIndex: 0,
  11820. replyPid: "",
  11821. radio: [],
  11822. isAsk: false,
  11823. askJson: {
  11824. askCount: 1,
  11825. askTitle: "",
  11826. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  11827. },
  11828. testJson: {},
  11829. checkJson: [],
  11830. askList: [],
  11831. answerList: [],
  11832. navList: [],
  11833. addPzDialog: false,
  11834. pzConText: "",
  11835. worksStudent: [],
  11836. isCloseList: [],
  11837. workStudent: [],
  11838. groupStudent: [],
  11839. groupStudentUid: [],
  11840. noWorksS: [],
  11841. isWorksS: [],
  11842. noWorksStudent: [],
  11843. toolindex: 0,
  11844. toolDetailIndex: null,
  11845. groupIndex: 0,
  11846. workTypeB: false,
  11847. workTypeC: false,
  11848. isAnswer: false,
  11849. isHovered: false,
  11850. isHovered1: false,
  11851. isHovered2: false,
  11852. timer: null,
  11853. opertimer: null,
  11854. showType: 0,
  11855. fileType: 0,
  11856. showPDF: false,
  11857. noteName: "",
  11858. evaJuri: [],
  11859. evalua: "",
  11860. eTitle: "",
  11861. eName: "",
  11862. eJson: {},
  11863. fid: "", //一级
  11864. sid: "", //二级
  11865. tid: "", //二级
  11866. typeMode: 1,
  11867. eJSONNum: 0,
  11868. Etype: 1,
  11869. data: {
  11870. meta: {
  11871. name: "example",
  11872. author: "dd@163.com",
  11873. version: "0.2",
  11874. },
  11875. format: "node_array",
  11876. data: [{ id: "root", isroot: true, topic: "" }],
  11877. },
  11878. fullDialogVisible: false,
  11879. fulltype: "",
  11880. fullUrl: "",
  11881. commentIndexJson: {},
  11882. Stbodywidth: 0,
  11883. ispzType: 0,
  11884. pzType: 1,
  11885. wScore: 0,
  11886. scoreDetail: "",
  11887. videoStart: false,
  11888. recorder: null,
  11889. groupJson: {},
  11890. islock: false,
  11891. groupJson2: {},
  11892. dialogVisibleGroup: false,
  11893. dialogVisibleGroup2: false,
  11894. updateGroupArray: [],
  11895. updateGroupUser: {},
  11896. deleteGroupUser: [],
  11897. deleteGroupArray: {},
  11898. checkChair: "",
  11899. checkDeleteGroup: [],
  11900. inviteCode: "",
  11901. courseGroupStudent: [],
  11902. courseGroupStudentUid: [],
  11903. courseGroup: {},
  11904. isGroup: false,
  11905. toolIndex: null,
  11906. tool: {},
  11907. isWorkTool: [
  11908. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  11909. ], //, 40
  11910. videoJson: {},
  11911. toolType: 0,
  11912. checktoolArray: [],
  11913. vChapterData: [],
  11914. isUpdateToolDetail: false,
  11915. isUpdateToolDetail1: false,
  11916. updateToolDetailInner: "",
  11917. checkboxList: [],
  11918. plIndex: "",
  11919. worksSName2: "",
  11920. worksSid: "",
  11921. wordCloudData: [],
  11922. isPickStudent: [],
  11923. pzStype: 1,
  11924. downLoading: false,
  11925. greyType: false,
  11926. correctWord: [],
  11927. };
  11928. },
  11929. methods: {
  11930. gx(){
  11931. this.$forceUpdate();
  11932. },
  11933. isUpdateCorrect(t,p){
  11934. if(this.greyType == false){
  11935. this.isUpdateText = t;
  11936. this.greyType = true;
  11937. }else{
  11938. if(p == 1){
  11939. this.newEnglishList.engText = this.isUpdateText;
  11940. }else if(p == 2){
  11941. this.oldEnglishJson1.engText = this.isUpdateText;
  11942. }else if(p == 3){
  11943. this.newEnglishList.engText = this.isUpdateText;
  11944. }else{
  11945. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  11946. }
  11947. this.greyType = false
  11948. }
  11949. },
  11950. aiCorrect(t,p){
  11951. let aiText = "";
  11952. const loading = this.$loading.service({
  11953. background: "rgba(255, 255, 255)",
  11954. target: document.querySelectorAll(".loadingText")[0],
  11955. });
  11956. let param = {
  11957. model: "gpt-3.5-turbo",
  11958. temperature: 0,
  11959. max_tokens: 2048,
  11960. top_p: 1,
  11961. frequency_penalty: 0,
  11962. presence_penalty: 0,
  11963. messages: [
  11964. {
  11965. role: "user",
  11966. content:
  11967.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  11968. },
  11969. ],
  11970. uid: this.userid,
  11971. stream: false,
  11972. };
  11973. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  11974. (res) => {
  11975. if (
  11976. res.data.FunctionResponse &&
  11977. res.data.FunctionResponse.result &&
  11978. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  11979. ) {
  11980. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  11981. return;
  11982. }
  11983. aiText =
  11984. res.data.FunctionResponse.choices[0].message.content;
  11985. aiText = aiText.replace(/%/g,"%25");
  11986. // let w = "";
  11987. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  11988. // for(var k = 0;k<a.length;k++){
  11989. // //diffWordsWithSpace
  11990. // if(a.length > 1){
  11991. // if(a[k].added == true){
  11992. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  11993. // }else if(a[k].removed == true){
  11994. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  11995. // }else{
  11996. // w += '<span>' + a[k].value + '</span>';
  11997. // }
  11998. // }else{
  11999. // if(p == 1){
  12000. // w = this.newEnglishList.engText;
  12001. // }else if(p == 2){
  12002. // w = this.oldEnglishJson1.engText;
  12003. // }else if(p == 3){
  12004. // w = this.newEnglishList.engText;
  12005. // }else{
  12006. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  12007. // }
  12008. // }
  12009. // }
  12010. if(p == 1){
  12011. this.newEnglishList.engText = aiText;
  12012. }else if(p == 2){
  12013. this.oldEnglishJson1.engText = aiText;
  12014. }else if(p == 3){
  12015. this.newEnglishList.engText = aiText;
  12016. }else{
  12017. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  12018. }
  12019. loading.close();
  12020. },
  12021. (err) => {
  12022. console.log(err);
  12023. loading.close();
  12024. }
  12025. );
  12026. },
  12027. addToolChoose() {
  12028. if (!this.checktoolArray.length) {
  12029. this.$message.error("请选择要添加的任务");
  12030. return;
  12031. }
  12032. if (
  12033. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12034. this.taskCount
  12035. ].toolChoose[0].tool.length
  12036. ) {
  12037. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12038. this.taskCount
  12039. ].toolChoose[0].tool = this.checktoolArray;
  12040. } else {
  12041. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12042. this.taskCount
  12043. ].toolChoose.push({
  12044. tool: this.checktoolArray,
  12045. toolDetail: "",
  12046. toolType: 0,
  12047. askCount: 1,
  12048. askTitle: "",
  12049. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  12050. });
  12051. }
  12052. let params = [
  12053. {
  12054. cid: this.id,
  12055. chapters: JSON.stringify(this.chapInfoList),
  12056. uid: this.userid,
  12057. unitIndex: this.courseType,
  12058. },
  12059. ];
  12060. this.ajax
  12061. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12062. .then((res) => {
  12063. this.$message({
  12064. message: "添加成功",
  12065. type: "success",
  12066. });
  12067. this.checktoolArray = [];
  12068. this.getCourseDetail(2);
  12069. this.checkBz(
  12070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12071. this.taskCount
  12072. ].toolChoose.length - 1
  12073. );
  12074. this.toolDialogVisible = false;
  12075. this.refreshCourse();
  12076. this.$forceUpdate();
  12077. })
  12078. .catch((err) => {
  12079. console.error(err);
  12080. });
  12081. },
  12082. checkBz(index) {
  12083. this.isUpdateToolDetail = false;
  12084. this.$forceUpdate();
  12085. setTimeout(() => {
  12086. document.scrollingElement.scrollTop =
  12087. document.querySelectorAll(".filebox")[index].offsetTop +
  12088. document.querySelector(".student_body").offsetTop;
  12089. }, 500);
  12090. },
  12091. updateToolDetail(i, type) {
  12092. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  12093. this.toolDetailIndex = i
  12094. this.isUpdateToolDetail1 = true;
  12095. setTimeout(() => {
  12096. this.updateToolDetailInner = JSON.parse(
  12097. JSON.stringify(
  12098. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12099. this.taskCount
  12100. ].toolChoose[i].toolDetail
  12101. )
  12102. );
  12103. document.querySelector(".checkTextArea").focus();
  12104. }, 0);
  12105. } else if((this.isUpdateToolDetail1 && type != 2)){
  12106. // this.toolDetailIndex = i;
  12107. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12108. this.taskCount
  12109. ].toolChoose[i].toolDetail = JSON.parse(
  12110. JSON.stringify(this.updateToolDetailInner)
  12111. );
  12112. let params = [
  12113. {
  12114. cid: this.id,
  12115. chapters: JSON.stringify(this.chapInfoList),
  12116. uid: this.userid,
  12117. unitIndex: this.courseType,
  12118. },
  12119. ];
  12120. this.ajax
  12121. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12122. .then((res) => {
  12123. this.isUpdateToolDetail1 = false;
  12124. this.$message({
  12125. message: "修改成功",
  12126. type: "success",
  12127. });
  12128. this.toolDetailIndex = null;
  12129. this.updateToolDetailInner = "";
  12130. this.getCourseDetail(2);
  12131. this.$forceUpdate();
  12132. })
  12133. .catch((err) => {
  12134. console.error(err);
  12135. });
  12136. } else if((this.isUpdateToolDetail1 && type == 2)){
  12137. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12138. this.taskCount
  12139. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  12140. JSON.stringify(this.updateToolDetailInner)
  12141. );
  12142. let params = [
  12143. {
  12144. cid: this.id,
  12145. chapters: JSON.stringify(this.chapInfoList),
  12146. uid: this.userid,
  12147. unitIndex: this.courseType,
  12148. },
  12149. ];
  12150. this.ajax
  12151. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  12152. .then((res) => {
  12153. this.$message({
  12154. message: "修改成功",
  12155. type: "success",
  12156. });
  12157. this.toolDetailIndex = i;
  12158. this.isUpdateToolDetail1 = true;
  12159. setTimeout(() => {
  12160. this.updateToolDetailInner = JSON.parse(
  12161. JSON.stringify(
  12162. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  12163. this.taskCount
  12164. ].toolChoose[i].toolDetail
  12165. )
  12166. );
  12167. document.querySelector(".checkTextArea").focus();
  12168. }, 0);
  12169. this.getCourseDetail(2);
  12170. this.$forceUpdate();
  12171. })
  12172. .catch((err) => {
  12173. console.error(err);
  12174. });
  12175. }
  12176. },
  12177. jumpGj(i, j, k, l) {
  12178. for (var z = 0; z < this.navList.length; z++) {
  12179. for (var q = 0; q < this.navList[z].task.length; q++) {
  12180. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  12181. this.navList[z].task[q].tool[w].isTool = false;
  12182. }
  12183. }
  12184. }
  12185. this.navList[i].task[j].tool[k].isTool =
  12186. !this.navList[i].task[j].tool[k].isTool;
  12187. var a = document.scrollingElement;
  12188. let target = document.querySelector(`#gj${k}`);
  12189. if (target) {
  12190. target.scrollIntoView(true);
  12191. setTimeout(() => {
  12192. a.scrollTop = a.scrollTop - 150;
  12193. }, 0);
  12194. }
  12195. this.navId = ""
  12196. if (l) {
  12197. this.courseType = i;
  12198. // this.navId = l;
  12199. this.taskCount = j;
  12200. this.selectPz();
  12201. this.getHomeWork();
  12202. this.getCourseDetail(2);
  12203. }
  12204. // var b = this.$refs["bz" + k][0];
  12205. // a.scrollTop = b.offsetTop;
  12206. },
  12207. addTools2(i) {
  12208. if (i == 4) {
  12209. // this.openTools2(4);
  12210. this.$message.error("暂未开放");
  12211. return;
  12212. }
  12213. if (i == 45) {
  12214. // this.openTools2(45);
  12215. this.$message.error("暂未开放");
  12216. return;
  12217. }
  12218. if (i == 47) {
  12219. // this.openTools2(47);
  12220. this.$message.error("暂未开放");
  12221. return;
  12222. }
  12223. if (i == 49) {
  12224. // this.openTools2(49);
  12225. this.$message.error("暂未开放");
  12226. return;
  12227. }
  12228. if (i == 62) {
  12229. // this.openTools(itemTaskIndex, 62, toolIndex);
  12230. this.$message.error("暂未开放");
  12231. return;
  12232. }
  12233. if (i == 15) {
  12234. // this.openTools(itemTaskIndex, 15, toolIndex);
  12235. this.$message.error("暂未开放");
  12236. return;
  12237. }
  12238. if (i == 40) {
  12239. // this.openTools(itemTaskIndex, 40, toolIndex);
  12240. this.$message.error("暂未开放");
  12241. return;
  12242. }
  12243. if (i == 41) {
  12244. // this.openTools(itemTaskIndex, 41, toolIndex);
  12245. this.$message.error("暂未开放");
  12246. return;
  12247. }
  12248. if (i == 42) {
  12249. // this.openTools(itemTaskIndex, 42, toolIndex);
  12250. this.$message.error("暂未开放");
  12251. return;
  12252. }
  12253. if (this.checktoolArray.length > 0) {
  12254. if (this.checktoolArray.indexOf(i) != -1) {
  12255. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  12256. } else {
  12257. this.checktoolArray = [];
  12258. this.checktoolArray.push(i);
  12259. }
  12260. } else {
  12261. this.checktoolArray.push(i);
  12262. }
  12263. this.$forceUpdate();
  12264. },
  12265. jump() {
  12266. window.parent.postMessage({ tools: "43" }, "*");
  12267. },
  12268. getUpdateMore(f, checkboxList, searchTN, index) {
  12269. this.dialogVisibleMember = f;
  12270. this.checkboxList = checkboxList;
  12271. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  12272. this.plIndex = index;
  12273. },
  12274. setPlname(a) {
  12275. if (this.plworkFile.length) {
  12276. this.plworkFile[this.plIndex].username = a;
  12277. } else {
  12278. this.worksSName = a;
  12279. }
  12280. this.dialogVisibleMember = false;
  12281. },
  12282. previewImg(url) {
  12283. this.$hevueImgPreview(url);
  12284. },
  12285. checkImg(list) {
  12286. if (!list.length) {
  12287. return;
  12288. }
  12289. this.$hevueImgPreview({
  12290. multiple: true, // 开启多图预览模式
  12291. imgList: list, // 需要预览的多图数组
  12292. });
  12293. },
  12294. change(val) {
  12295. console.log(val);
  12296. },
  12297. goTo(path) {
  12298. this.$router.push(path);
  12299. },
  12300. handlePictureCardPreview(url) {
  12301. this.dialogImageUrl = url;
  12302. this.pictureDialog = true;
  12303. },
  12304. clean(type) {
  12305. if (type == 1) {
  12306. this.studyJuri[0].cover.splice(0, 1);
  12307. } else if (type == 2) {
  12308. this.studyJuri[0].upVedio.splice(0, 1);
  12309. } else {
  12310. this.studyJuri[0].upFile.splice(0, 1);
  12311. }
  12312. },
  12313. clean2(index) {
  12314. this.plworkFile.splice(index, 1);
  12315. },
  12316. handleClose(done) {
  12317. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  12318. this.videoDetail.sources[0].src = "";
  12319. }
  12320. this.commentIndexJson = {};
  12321. done();
  12322. },
  12323. fullTools() {
  12324. this.full = !this.full;
  12325. },
  12326. imgChange(file, fileList, type) {
  12327. if (type == 1) {
  12328. var _tmp = this.studyJuri[0].cover;
  12329. } else if (type == 2) {
  12330. var _tmp = this.studyJuri[0].upVedio;
  12331. } else {
  12332. var _tmp = this.studyJuri[0].upFile;
  12333. }
  12334. this.noneBtnImg = _tmp.length >= 1;
  12335. },
  12336. setContent(bool) {
  12337. this.contentDialog = bool;
  12338. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  12339. document.querySelector(".workd_media").style.height = "650px";
  12340. } else if (document.querySelector(".workd_media")) {
  12341. document.querySelector(".workd_media").style.height = "auto";
  12342. }
  12343. },
  12344. setContent2(bool) {
  12345. this.mlDialog = bool;
  12346. if (
  12347. bool &&
  12348. this.contentDialog &&
  12349. document.querySelector(".workd_media")
  12350. ) {
  12351. document.querySelector(".workd_media").style.height = "650px";
  12352. } else if (document.querySelector(".workd_media")) {
  12353. document.querySelector(".workd_media").style.height = "auto";
  12354. }
  12355. },
  12356. openToolAll() {
  12357. this.toolDialogVisible = true;
  12358. },
  12359. addImg(e) {
  12360. var el = e.currentTarget;
  12361. // this.$message.success('触发上传')
  12362. el.getElementsByTagName("input")[0].click();
  12363. e.target.value = "";
  12364. },
  12365. addSelectAnswer() {
  12366. let params = [
  12367. {
  12368. uid: this.userid,
  12369. cid: this.id,
  12370. stage: this.courseType,
  12371. task: this.taskCount,
  12372. tool: this.toolindex,
  12373. content: this.selectAnswer.answer,
  12374. type: 7,
  12375. },
  12376. ];
  12377. this.ajax
  12378. .post(this.$store.state.api + "addCourseWorks", params)
  12379. .then((res) => {
  12380. this.$message({
  12381. message: "提交成功",
  12382. type: "success",
  12383. });
  12384. this.dialogVisibleSelect = false;
  12385. // this.selectAnswer = {};
  12386. this.selectSWorks();
  12387. this.selectStudent();
  12388. })
  12389. .catch((err) => {
  12390. this.$message.error("提交失败");
  12391. console.error(err);
  12392. });
  12393. },
  12394. addSelectAnswerTeacher() {
  12395. let params = [
  12396. {
  12397. uid: this.sStudent.userid,
  12398. cid: this.id,
  12399. stage: this.courseType,
  12400. task: this.taskCount,
  12401. tool: this.toolindex,
  12402. content: this.selectAnswer.answer,
  12403. type: 7,
  12404. },
  12405. ];
  12406. this.ajax
  12407. .post(this.$store.state.api + "addCourseWorks", params)
  12408. .then((res) => {
  12409. this.$message({
  12410. message: "提交成功",
  12411. type: "success",
  12412. });
  12413. this.dialogVisibleSelectTeacher = false;
  12414. // this.selectAnswer = {};
  12415. this.selectSWorks();
  12416. this.selectStudent();
  12417. })
  12418. .catch((err) => {
  12419. this.$message.error("提交失败");
  12420. console.error(err);
  12421. });
  12422. },
  12423. addSenWorks() {
  12424. for (var i = 0; i < this.sentenceList.length; i++) {
  12425. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12426. if (
  12427. this.sentenceList[i].chooseSenList[j] == undefined ||
  12428. this.sentenceList[i].chooseSenList[j] == ""
  12429. ) {
  12430. this.$message.error("请将答案填写完整!");
  12431. return;
  12432. }
  12433. }
  12434. }
  12435. let params = [
  12436. {
  12437. uid: this.userid,
  12438. cid: this.id,
  12439. stage: this.courseType,
  12440. task: this.taskCount,
  12441. tool: this.toolindex,
  12442. content: JSON.stringify(this.sentenceList),
  12443. type: 9,
  12444. },
  12445. ];
  12446. this.ajax
  12447. .post(this.$store.state.api + "addCourseWorks", params)
  12448. .then((res) => {
  12449. this.$message({
  12450. message: "提交成功",
  12451. type: "success",
  12452. });
  12453. this.dialogVisibleSentence = false;
  12454. // this.selectAnswer = {};
  12455. this.selectSWorks();
  12456. this.selectStudent();
  12457. })
  12458. .catch((err) => {
  12459. this.$message.error("提交失败");
  12460. console.error(err);
  12461. });
  12462. },
  12463. addSenWorksTeacher() {
  12464. for (var i = 0; i < this.sentenceList.length; i++) {
  12465. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  12466. if (
  12467. this.sentenceList[i].chooseSenList[j] == undefined ||
  12468. this.sentenceList[i].chooseSenList[j] == ""
  12469. ) {
  12470. this.$message.error("请将答案填写完整!");
  12471. return;
  12472. }
  12473. }
  12474. }
  12475. let params = [
  12476. {
  12477. uid: this.sStudent.userid,
  12478. cid: this.id,
  12479. stage: this.courseType,
  12480. task: this.taskCount,
  12481. tool: this.toolindex,
  12482. content: JSON.stringify(this.sentenceList),
  12483. type: 9,
  12484. },
  12485. ];
  12486. this.ajax
  12487. .post(this.$store.state.api + "addCourseWorks", params)
  12488. .then((res) => {
  12489. this.$message({
  12490. message: "提交成功",
  12491. type: "success",
  12492. });
  12493. this.dialogVisibleSentenceTeacher = false;
  12494. // this.selectAnswer = {};
  12495. this.selectSWorks();
  12496. this.selectStudent();
  12497. })
  12498. .catch((err) => {
  12499. this.$message.error("提交失败");
  12500. console.error(err);
  12501. });
  12502. },
  12503. returnTableText() {
  12504. this.$confirm("确定还原此模板吗?", "提示", {
  12505. confirmButtonText: "确定",
  12506. cancelButtonText: "取消",
  12507. type: "warning",
  12508. })
  12509. .then(() => {
  12510. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  12511. })
  12512. .catch(() => {});
  12513. },
  12514. addTableWorks() {
  12515. let params = [
  12516. {
  12517. uid: this.userid,
  12518. cid: this.id,
  12519. stage: this.courseType,
  12520. task: this.taskCount,
  12521. tool: this.toolindex,
  12522. content: JSON.stringify(this.tableJson),
  12523. type: 10,
  12524. },
  12525. ];
  12526. this.ajax
  12527. .post(this.$store.state.api + "addCourseWorks", params)
  12528. .then((res) => {
  12529. this.$message({
  12530. message: "提交成功",
  12531. type: "success",
  12532. });
  12533. this.dialogVisibleTable = false;
  12534. // this.selectAnswer = {};
  12535. this.selectSWorks();
  12536. this.selectStudent();
  12537. })
  12538. .catch((err) => {
  12539. this.$message.error("提交失败");
  12540. console.error(err);
  12541. });
  12542. },
  12543. tableRowClassName({ row, rowIndex }) {
  12544. if ((rowIndex + 1) % 2 === 0) {
  12545. return "even_row";
  12546. } else {
  12547. return "";
  12548. }
  12549. },
  12550. addTableWorksTeacher() {
  12551. let params = [
  12552. {
  12553. uid: this.sStudent.userid,
  12554. cid: this.id,
  12555. stage: this.courseType,
  12556. task: this.taskCount,
  12557. tool: this.toolindex,
  12558. content: JSON.stringify(this.tableJson),
  12559. type: 10,
  12560. },
  12561. ];
  12562. this.ajax
  12563. .post(this.$store.state.api + "addCourseWorks", params)
  12564. .then((res) => {
  12565. this.$message({
  12566. message: "提交成功",
  12567. type: "success",
  12568. });
  12569. this.dialogVisibleTableTeacher = false;
  12570. // this.selectAnswer = {};
  12571. this.selectSWorks();
  12572. this.selectStudent();
  12573. })
  12574. .catch((err) => {
  12575. this.$message.error("提交失败");
  12576. console.error(err);
  12577. });
  12578. },
  12579. returnWordText() {
  12580. this.$confirm("确定还原此模板吗?", "提示", {
  12581. confirmButtonText: "确定",
  12582. cancelButtonText: "取消",
  12583. type: "warning",
  12584. })
  12585. .then(() => {
  12586. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  12587. })
  12588. .catch(() => {});
  12589. },
  12590. addWordWorks() {
  12591. let params = [
  12592. {
  12593. uid: this.userid,
  12594. cid: this.id,
  12595. stage: this.courseType,
  12596. task: this.taskCount,
  12597. tool: this.toolindex,
  12598. content: JSON.stringify(this.wordJson),
  12599. type: 13,
  12600. atool: 52,
  12601. },
  12602. ];
  12603. this.ajax
  12604. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12605. .then((res) => {
  12606. this.$message({
  12607. message: "提交成功",
  12608. type: "success",
  12609. });
  12610. this.dialogVisibleWord = false;
  12611. // this.selectAnswer = {};
  12612. this.selectSWorks();
  12613. this.selectStudent();
  12614. })
  12615. .catch((err) => {
  12616. this.$message.error("提交失败");
  12617. console.error(err);
  12618. });
  12619. },
  12620. addWordWorksTeacher() {
  12621. let params = [
  12622. {
  12623. uid: this.sStudent.userid,
  12624. cid: this.id,
  12625. stage: this.courseType,
  12626. task: this.taskCount,
  12627. tool: this.toolindex,
  12628. content: JSON.stringify(this.wordJson),
  12629. type: 13,
  12630. atool: 52,
  12631. },
  12632. ];
  12633. this.ajax
  12634. .post(this.$store.state.api + "addCourseWorks3-2", params)
  12635. .then((res) => {
  12636. this.$message({
  12637. message: "提交成功",
  12638. type: "success",
  12639. });
  12640. this.dialogVisibleWordTeacher = false;
  12641. // this.selectAnswer = {};
  12642. this.selectSWorks();
  12643. this.selectStudent();
  12644. })
  12645. .catch((err) => {
  12646. this.$message.error("提交失败");
  12647. console.error(err);
  12648. });
  12649. },
  12650. addCourseWorks(i) {
  12651. var typesql;
  12652. if (this.fileType === 0) {
  12653. typesql = 1;
  12654. } else if (this.fileType === 1) {
  12655. typesql = 4;
  12656. } else if (this.fileType === 2) {
  12657. typesql = 5;
  12658. } else if (this.fileType === 3) {
  12659. typesql = 12;
  12660. }
  12661. if (!this.studyJuri[0].cover[0].url) {
  12662. this.$message.error("请上传文件");
  12663. return;
  12664. }
  12665. let params = [
  12666. {
  12667. uid: this.userid,
  12668. cid: this.id,
  12669. stage: this.courseType,
  12670. task: i,
  12671. tool: this.toolindex,
  12672. content: this.studyJuri[0].cover[0].url,
  12673. type: typesql,
  12674. },
  12675. ];
  12676. this.ajax
  12677. .post(this.$store.state.api + "addCourseWorksR", params)
  12678. .then((res) => {
  12679. this.$message({
  12680. message: "提交成功",
  12681. type: "success",
  12682. });
  12683. this.studyJuri[0].cover = [];
  12684. this.dialogVisible = false;
  12685. this.getCourseDetail(2);
  12686. })
  12687. .catch((err) => {
  12688. this.$message.error("提交失败");
  12689. console.error(err);
  12690. });
  12691. },
  12692. addCourseWorksPl(i) {
  12693. let _files = this.plworkFile;
  12694. var c = 1;
  12695. for (var k = 0; k < _files.length; k++) {
  12696. if (!_files[k].username) {
  12697. c = 2;
  12698. }
  12699. }
  12700. if (c == 2) {
  12701. this.$message.error("请填写学生姓名");
  12702. return;
  12703. }
  12704. let params = [
  12705. {
  12706. ateacher: this.userid,
  12707. cid: this.id,
  12708. stage: this.courseType,
  12709. task: i,
  12710. tool: this.toolindex,
  12711. content: JSON.stringify(_files),
  12712. },
  12713. ];
  12714. this.ajax
  12715. .post(this.$store.state.api + "addCourseWorksPl", params)
  12716. .then((res) => {
  12717. this.$message({
  12718. message: "提交成功",
  12719. type: "success",
  12720. });
  12721. this.plworkFile = [];
  12722. this.dialogVisiblePl = false;
  12723. this.getCourseDetail(2);
  12724. })
  12725. .catch((err) => {
  12726. this.$message.error("提交失败");
  12727. console.error(err);
  12728. });
  12729. },
  12730. addCourseWorks2(i) {
  12731. var typesql;
  12732. if (this.fileType === 0) {
  12733. typesql = 0;
  12734. } else if (this.fileType === 1) {
  12735. typesql = 1;
  12736. } else if (this.fileType === 2) {
  12737. typesql = 3;
  12738. } else if (this.fileType === 3) {
  12739. typesql = 12;
  12740. }
  12741. if (!this.studyJuri[0].cover[0].url) {
  12742. this.$message.error("请上传文件");
  12743. return;
  12744. }
  12745. let params = [
  12746. {
  12747. uid: this.userid,
  12748. cid: this.id,
  12749. stage: this.courseType,
  12750. task: i,
  12751. tool: this.toolindex,
  12752. content: JSON.stringify({
  12753. type: typesql,
  12754. groupIndex: this.groupIndex,
  12755. url: this.studyJuri[0].cover[0].url,
  12756. }),
  12757. type: 11,
  12758. atool: 49,
  12759. text: "",
  12760. },
  12761. ];
  12762. this.ajax
  12763. .post(this.$store.state.api + "addCourseWorks5", params)
  12764. .then((res) => {
  12765. this.$message({
  12766. message: "提交成功",
  12767. type: "success",
  12768. });
  12769. this.studyJuri[0].cover = [];
  12770. this.dialogVisibleGroupWork = false;
  12771. this.getCourseDetail(2);
  12772. })
  12773. .catch((err) => {
  12774. this.$message.error("提交失败");
  12775. console.error(err);
  12776. });
  12777. },
  12778. addEnglishWork() {
  12779. this.myAnList = this.$refs['engJson'].myAnswerList;
  12780. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  12781. this.$message.error("请输入作文标题和正文!");
  12782. return;
  12783. }
  12784. let params = [
  12785. {
  12786. uid: this.userid,
  12787. cid: this.id,
  12788. stage: this.courseType,
  12789. task: this.taskCount,
  12790. tool: this.englishToolIndex,
  12791. content: JSON.stringify(this.myAnList),
  12792. type: 16,
  12793. atool: 69,
  12794. text: "",
  12795. },
  12796. ];
  12797. this.ajax
  12798. .post(this.$store.state.api + "addCourseWorks5", params)
  12799. .then((res) => {
  12800. this.$message({
  12801. message: "提交成功",
  12802. type: "success",
  12803. });
  12804. this.myAnList = {};
  12805. this.englishList = {};
  12806. this.englishToolIndex = 0;
  12807. this.engDialogVisible = false;
  12808. this.selectSWorks();
  12809. this.selectStudent();
  12810. })
  12811. .catch((err) => {
  12812. this.$message.error("提交失败");
  12813. console.error(err);
  12814. });
  12815. },
  12816. addCourseWorksGong(i, data, tool) {
  12817. let params = [
  12818. {
  12819. uid: this.userid,
  12820. cid: this.id,
  12821. stage: this.courseType,
  12822. task: this.taskCount,
  12823. tool: i,
  12824. content: data,
  12825. type: 12,
  12826. atool: tool,
  12827. text: "",
  12828. },
  12829. ];
  12830. this.ajax
  12831. .post(this.$store.state.api + "addCourseWorks5", params)
  12832. .then((res) => {
  12833. this.$message({
  12834. message: "提交成功",
  12835. type: "success",
  12836. });
  12837. this.studyJuri[0].cover = [];
  12838. this.selectSWorks();
  12839. this.selectStudent();
  12840. })
  12841. .catch((err) => {
  12842. this.$message.error("提交失败");
  12843. console.error(err);
  12844. });
  12845. },
  12846. addCourseWorksGongTeacher(i, data, tool) {
  12847. let params = [
  12848. {
  12849. uid: this.sStudent.userid,
  12850. cid: this.id,
  12851. stage: this.courseType,
  12852. task: this.taskCount,
  12853. tool: i,
  12854. content: data,
  12855. type: 12,
  12856. atool: tool,
  12857. text: "",
  12858. },
  12859. ];
  12860. this.ajax
  12861. .post(this.$store.state.api + "addCourseWorks5", params)
  12862. .then((res) => {
  12863. this.$message({
  12864. message: "提交成功",
  12865. type: "success",
  12866. });
  12867. this.studyJuri[0].cover = [];
  12868. this.dialogVisibleWorks = false;
  12869. this.selectSWorks();
  12870. this.selectStudent();
  12871. })
  12872. .catch((err) => {
  12873. this.$message.error("提交失败");
  12874. console.error(err);
  12875. });
  12876. },
  12877. addCourseWorksGongPl(i, data, tool, type) {
  12878. let params = [
  12879. {
  12880. uid: this.sStudent.userid,
  12881. cid: this.id,
  12882. stage: this.courseType,
  12883. task: this.taskCount,
  12884. tool: i,
  12885. content: data,
  12886. type: type,
  12887. atool: tool,
  12888. text: "",
  12889. },
  12890. ];
  12891. this.ajax
  12892. .post(this.$store.state.api + "addCourseWorks5", params)
  12893. .then((res) => {
  12894. this.$message({
  12895. message: "提交成功",
  12896. type: "success",
  12897. });
  12898. this.studyJuri[0].cover = [];
  12899. this.dialogVisibleWorks = false;
  12900. this.selectSWorks();
  12901. this.selectStudent();
  12902. })
  12903. .catch((err) => {
  12904. this.$message.error("提交失败");
  12905. console.error(err);
  12906. });
  12907. },
  12908. addCourseWorksTeacher(i) {
  12909. var typesql;
  12910. if (this.sTool == 32) {
  12911. this.addCourseWorksGongTeacher(
  12912. this.toolindex,
  12913. this.studyJuri[0].cover[0].url,
  12914. this.sTool
  12915. );
  12916. return;
  12917. }
  12918. if (this.fileType === 0) {
  12919. typesql = 1;
  12920. } else if (this.fileType === 1) {
  12921. typesql = 4;
  12922. } else if (this.fileType === 2) {
  12923. typesql = 5;
  12924. } else if (this.fileType === 3) {
  12925. typesql = 12;
  12926. }
  12927. if (this.sTool == 50) {
  12928. this.addCourseWorksGongPl(
  12929. this.toolindex,
  12930. this.studyJuri[0].cover[0].url,
  12931. this.sTool,
  12932. typesql
  12933. );
  12934. return;
  12935. }
  12936. if (!this.studyJuri[0].cover[0].url) {
  12937. this.$message.error("请上传文件");
  12938. return;
  12939. }
  12940. let params = [
  12941. {
  12942. uid: this.sStudent.userid,
  12943. cid: this.id,
  12944. stage: this.courseType,
  12945. task: i,
  12946. tool: this.toolindex,
  12947. content: this.studyJuri[0].cover[0].url,
  12948. type: typesql,
  12949. ateacher: this.userid,
  12950. },
  12951. ];
  12952. this.ajax
  12953. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  12954. .then((res) => {
  12955. this.$message({
  12956. message: "提交成功",
  12957. type: "success",
  12958. });
  12959. this.studyJuri[0].cover = [];
  12960. this.dialogVisibleWorks = false;
  12961. this.getCourseDetail(2);
  12962. })
  12963. .catch((err) => {
  12964. this.$message.error("提交失败");
  12965. console.error(err);
  12966. });
  12967. },
  12968. selectUploadStudent(type) {
  12969. const loading = this.$loading.service({
  12970. background: "rgba(255, 255, 255, 0.7)",
  12971. target: document.body,
  12972. });
  12973. let params = {
  12974. cid: this.uploadCid,
  12975. oid: this.oid,
  12976. cn: "",
  12977. };
  12978. this.ajax
  12979. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  12980. .then((res) => {
  12981. loading.close();
  12982. var studentK = [];
  12983. if (this.isWorksS[this.toolindex].length > 0) {
  12984. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  12985. studentK.push(this.isWorksS[this.toolindex][z].uid);
  12986. }
  12987. studentK = studentK.join(",");
  12988. }
  12989. this.uploadStudentJuri = res.data[0].filter((el) => {
  12990. return studentK.indexOf(el.userid) == -1;
  12991. });
  12992. if (this.worksSName && this.worksSid) {
  12993. this.uploadStudentJuri.push({
  12994. userid: this.worksSid,
  12995. name: this.worksSName,
  12996. });
  12997. }
  12998. if (type == 1) {
  12999. this.plworkFile = [];
  13000. this.dialogVisibleSname = true;
  13001. } else if (type == 2) {
  13002. this.dialogVisiblePl = true;
  13003. }
  13004. })
  13005. .catch((err) => {
  13006. loading.close();
  13007. console.error(err);
  13008. });
  13009. },
  13010. selectPickStudent() {
  13011. const loading = this.$loading.service({
  13012. background: "rgba(255, 255, 255, 0.7)",
  13013. target: document.body,
  13014. });
  13015. let params = {
  13016. cid: this.uploadCid,
  13017. oid: this.oid,
  13018. cn: "",
  13019. };
  13020. this.ajax
  13021. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  13022. .then((res) => {
  13023. loading.close();
  13024. this.uploadStudentJuri = res.data[0];
  13025. this.dialogVisiblePickPeople = true;
  13026. })
  13027. .catch((err) => {
  13028. loading.close();
  13029. console.error(err);
  13030. });
  13031. },
  13032. arrayToArray(arrayo, arrayt) {
  13033. let array1 = arrayo;
  13034. let array2 = arrayt;
  13035. let commonElements = [];
  13036. for (let i = 0; i < array1.length; i++) {
  13037. for (let j = 0; j < array2.length; j++) {
  13038. if (array1[i] === array2[j]) {
  13039. commonElements.push(array1[i]);
  13040. }
  13041. }
  13042. }
  13043. return commonElements;
  13044. },
  13045. selectWorksStudent() {
  13046. let params = {
  13047. oid: this.oid,
  13048. cid: this.courseDetail.juri,
  13049. };
  13050. this.ajax
  13051. .get(this.$store.state.api + "selectWorksStudent", params)
  13052. .then((res) => {
  13053. var a = res.data[0];
  13054. for (var i = 0; i < this.isWorksS.length; i++) {
  13055. this.noWorksS[i] = [];
  13056. var studentK = [];
  13057. if (this.isWorksS[i].length > 0) {
  13058. for (var z = 0; z < this.isWorksS[i].length; z++) {
  13059. studentK.push(this.isWorksS[i][z].uid);
  13060. }
  13061. studentK = studentK.join(",");
  13062. for (var j = 0; j < a.length; j++) {
  13063. if (studentK.indexOf(a[j].userid) == -1) {
  13064. if (this.tcid) {
  13065. // a[j].classid.indexOf(this.tcid) != -1
  13066. if (
  13067. this.arrayToArray(
  13068. a[j].classid.split(","),
  13069. this.tcid.split(",")
  13070. ).length
  13071. ) {
  13072. this.noWorksS[i].push({
  13073. student: a[j].name,
  13074. userid: a[j].userid,
  13075. });
  13076. }
  13077. } else {
  13078. this.noWorksS[i].push({
  13079. student: a[j].name,
  13080. userid: a[j].userid,
  13081. });
  13082. }
  13083. }
  13084. }
  13085. } else {
  13086. for (var k = 0; k < a.length; k++) {
  13087. if (this.tcid) {
  13088. if (
  13089. this.arrayToArray(
  13090. a[k].classid.split(","),
  13091. this.tcid.split(",")
  13092. ).length
  13093. ) {
  13094. this.noWorksS[i].push({
  13095. student: a[k].name,
  13096. userid: a[k].userid,
  13097. });
  13098. }
  13099. } else {
  13100. this.noWorksS[i].push({
  13101. student: a[k].name,
  13102. userid: a[k].userid,
  13103. });
  13104. }
  13105. }
  13106. }
  13107. }
  13108. this.$forceUpdate();
  13109. if (
  13110. Object.keys(this.commentDetail).length &&
  13111. Object.keys(this.commentIndexJson).length &&
  13112. !this.dialogVisibleScore
  13113. ) {
  13114. let a = 1;
  13115. let c = this.commentIndexJson;
  13116. if (
  13117. this.commentIndexJson.gindex ||
  13118. this.commentIndexJson.gindex === 0
  13119. ) {
  13120. for (
  13121. var i = 0;
  13122. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13123. i++
  13124. ) {
  13125. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  13126. groupA: for (var k = 0; k < _el.length; k++) {
  13127. let el = _el[k];
  13128. if (el.wid == this.commentDetail.wid) {
  13129. a = 2;
  13130. this.commentOther(
  13131. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  13132. this.commentIndexJson.toolIndex,
  13133. k,
  13134. this.commentIndexJson.gindex
  13135. );
  13136. break groupA;
  13137. }
  13138. }
  13139. }
  13140. if (a === 1) {
  13141. this.commentDetail = [];
  13142. this.commentIndexJson = {};
  13143. this.commentDialogVisible = false;
  13144. this.$message("此作业已被删除");
  13145. }
  13146. } else {
  13147. if (this.isGroup && this.commentIndexJson.gid) {
  13148. groupA: for (
  13149. var i = 0;
  13150. i < this.courseGroup.group.length;
  13151. i++
  13152. ) {
  13153. let _group = this.courseGroup.group[i];
  13154. if (_group.id == this.commentIndexJson.gid) {
  13155. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  13156. for (var k = 0; k < _el2.length; k++) {
  13157. let el2 = _el2[k];
  13158. if (el2.wid == this.commentDetail.wid) {
  13159. a = 2;
  13160. this.commentOther(
  13161. _el2[k],
  13162. this.commentIndexJson.toolIndex,
  13163. k,
  13164. null,
  13165. this.commentIndexJson.gid
  13166. );
  13167. break groupA;
  13168. }
  13169. }
  13170. }
  13171. }
  13172. }
  13173. if (a == 1) {
  13174. for (
  13175. var i = 0;
  13176. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  13177. i++
  13178. ) {
  13179. let el =
  13180. this.worksStudent[this.commentIndexJson.toolIndex][i];
  13181. if (el.wid == this.commentDetail.wid) {
  13182. a = 2;
  13183. this.commentOther(
  13184. this.worksStudent[this.commentIndexJson.toolIndex][i],
  13185. this.commentIndexJson.toolIndex,
  13186. i
  13187. );
  13188. break;
  13189. }
  13190. }
  13191. }
  13192. if (a === 1) {
  13193. this.commentDetail = [];
  13194. this.commentIndexJson = {};
  13195. this.commentDialogVisible = false;
  13196. this.$message("此作业已被删除");
  13197. }
  13198. }
  13199. }
  13200. })
  13201. .catch((err) => {
  13202. console.error(err);
  13203. });
  13204. },
  13205. selectStudent() {
  13206. //学生查看自己作业
  13207. let params = {
  13208. uid: this.userid,
  13209. cid: this.id,
  13210. s: this.courseType,
  13211. t: this.taskCount,
  13212. };
  13213. this.ajax
  13214. .get(this.$store.state.api + "selectStudentWorks", params)
  13215. .then((res) => {
  13216. var a =
  13217. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13218. this.taskCount
  13219. ].toolChoose;
  13220. var b = res.data[0];
  13221. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13222. var y = [
  13223. "AVI",
  13224. "NAVI",
  13225. "MPEG",
  13226. "ASF",
  13227. "MOV",
  13228. "WMV",
  13229. "3GP",
  13230. "RM",
  13231. "RMVB",
  13232. "FLV",
  13233. "F4V",
  13234. "H.264",
  13235. "H.265",
  13236. "REAL VIDEO",
  13237. "MKV",
  13238. "WebM",
  13239. "HDDVD",
  13240. "MP4",
  13241. "MPG",
  13242. "M4V",
  13243. "MGV",
  13244. "OGV",
  13245. "QTM",
  13246. "STR",
  13247. "AMC",
  13248. "DVX",
  13249. "EVO",
  13250. "DAT",
  13251. "OGG",
  13252. "OGM",
  13253. ];
  13254. for (var i = 0; i < a.length; i++) {
  13255. this.workStudent[i] = [];
  13256. for (var j = 0; j < b.length; j++) {
  13257. if (i == b[j].tool) {
  13258. if (
  13259. (b[j].type == 1 ||
  13260. b[j].type == 4 ||
  13261. b[j].type == 5 ||
  13262. b[j].type == 6 ||
  13263. b[j].type == 12 ||
  13264. b[j].type == 7) &&
  13265. a[i].tool[0] != 15 &&
  13266. a[i].tool[0] != 4 &&
  13267. a[i].tool[0] != 45 &&
  13268. a[i].tool[0] != 50 &&
  13269. a[i].tool[0] != 32 &&
  13270. a[i].tool[0] != 57 &&
  13271. a[i].tool[0] != 52 &&
  13272. a[i].tool[0] != 69
  13273. ) {
  13274. if (
  13275. c.indexOf(
  13276. b[j].content
  13277. .split(".")
  13278. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13279. ) != -1 &&
  13280. a[i].tool[0] == 16 &&
  13281. b[j].atool != 50
  13282. ) {
  13283. this.workStudent[i].push({
  13284. works: b[j].content,
  13285. sName: b[j].name,
  13286. score: b[j].score,
  13287. img: b[j].img,
  13288. type: 1,
  13289. time: b[j].time,
  13290. userid: b[j].userid,
  13291. wid: b[j].id,
  13292. });
  13293. } else if (
  13294. y.indexOf(
  13295. b[j].content
  13296. .split(".")
  13297. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  13298. ) != -1 &&
  13299. a[i].tool[0] == 16 &&
  13300. b[j].atool != 50
  13301. ) {
  13302. this.workStudent[i].push({
  13303. userid: b[j].userid,
  13304. wid: b[j].id,
  13305. works: b[j].content,
  13306. sName: b[j].name,
  13307. score: b[j].score,
  13308. img: b[j].img,
  13309. type: 3,
  13310. time: b[j].time,
  13311. });
  13312. } else if (b[j].type == 6 && b[j].atool != 50) {
  13313. this.workStudent[i].push({
  13314. userid: b[j].userid,
  13315. wid: b[j].id,
  13316. works: b[j].content,
  13317. sName: b[j].name,
  13318. score: b[j].score,
  13319. img: b[j].img,
  13320. type: 4,
  13321. time: b[j].time,
  13322. });
  13323. } else if (b[j].type == 7 && b[j].atool != 50) {
  13324. this.workStudent[i].push({
  13325. userid: b[j].userid,
  13326. wid: b[j].id,
  13327. works: b[j].content,
  13328. sName: b[j].name,
  13329. score: b[j].score,
  13330. img: b[j].img,
  13331. type: 5,
  13332. time: b[j].time,
  13333. });
  13334. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  13335. this.workStudent[i].push({
  13336. works: b[j].content,
  13337. sName: b[j].name,
  13338. score: b[j].score,
  13339. img: b[j].img,
  13340. type: 12,
  13341. time: b[j].time,
  13342. userid: b[j].userid,
  13343. wid: b[j].id,
  13344. });
  13345. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  13346. this.workStudent[i].push({
  13347. works: b[j].content,
  13348. sName: b[j].name,
  13349. score: b[j].score,
  13350. img: b[j].img,
  13351. type: 0,
  13352. time: b[j].time,
  13353. userid: b[j].userid,
  13354. wid: b[j].id,
  13355. });
  13356. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  13357. this.workStudent[i].push({
  13358. works: b[j].content,
  13359. sName: b[j].name,
  13360. score: b[j].score,
  13361. img: b[j].img,
  13362. type: 0,
  13363. time: b[j].time,
  13364. userid: b[j].userid,
  13365. wid: b[j].id,
  13366. });
  13367. }
  13368. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  13369. this.workStudent[i].push({
  13370. works: b[j].content,
  13371. sName: b[j].name,
  13372. score: b[j].score,
  13373. img: b[j].img,
  13374. type: 2,
  13375. time: b[j].time,
  13376. userid: b[j].userid,
  13377. wid: b[j].id,
  13378. });
  13379. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  13380. //问卷
  13381. this.workStudent[i].push({
  13382. works: b[j].content,
  13383. sName: b[j].name,
  13384. score: b[j].score,
  13385. img: b[j].img,
  13386. type: 2,
  13387. time: b[j].time,
  13388. userid: b[j].userid,
  13389. wid: b[j].id,
  13390. });
  13391. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  13392. //选择题
  13393. this.workStudent[i].push({
  13394. works: b[j].content,
  13395. sName: b[j].name,
  13396. score: b[j].score,
  13397. img: b[j].img,
  13398. type: 8,
  13399. time: b[j].time,
  13400. userid: b[j].userid,
  13401. wid: b[j].id,
  13402. });
  13403. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  13404. //选择题
  13405. this.workStudent[i].push({
  13406. works: b[j].content,
  13407. sName: b[j].name,
  13408. score: b[j].score,
  13409. img: b[j].img,
  13410. type: 9,
  13411. time: b[j].time,
  13412. userid: b[j].userid,
  13413. wid: b[j].id,
  13414. });
  13415. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  13416. //选择题
  13417. this.workStudent[i].push({
  13418. works: b[j].content,
  13419. sName: b[j].name,
  13420. score: b[j].score,
  13421. img: b[j].img,
  13422. type: 10,
  13423. time: b[j].time,
  13424. userid: b[j].userid,
  13425. wid: b[j].id,
  13426. });
  13427. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  13428. //选择题
  13429. this.workStudent[i].push({
  13430. works: b[j].content,
  13431. sName: b[j].name,
  13432. score: b[j].score,
  13433. img: b[j].img,
  13434. type: 13,
  13435. time: b[j].time,
  13436. userid: b[j].userid,
  13437. wid: b[j].id,
  13438. });
  13439. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  13440. //选择题
  13441. this.workStudent[i].push({
  13442. works: b[j].content,
  13443. sName: b[j].name,
  13444. score: b[j].score,
  13445. img: b[j].img,
  13446. type: 12,
  13447. time: b[j].time,
  13448. userid: b[j].userid,
  13449. wid: b[j].id,
  13450. });
  13451. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  13452. //选择题
  13453. this.workStudent[i].push({
  13454. works: b[j].content,
  13455. sName: b[j].name,
  13456. score: b[j].score,
  13457. img: b[j].img,
  13458. type: 12,
  13459. time: b[j].time,
  13460. userid: b[j].userid,
  13461. wid: b[j].id,
  13462. });
  13463. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  13464. //选择题
  13465. this.workStudent[i].push({
  13466. works: b[j].content,
  13467. sName: b[j].name,
  13468. score: b[j].score,
  13469. img: b[j].img,
  13470. type: 15,
  13471. time: b[j].time,
  13472. userid: b[j].userid,
  13473. wid: b[j].id,
  13474. });
  13475. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  13476. //英语写作
  13477. this.workStudent[i].push({
  13478. works: b[j].content,
  13479. sName: b[j].name,
  13480. score: b[j].score,
  13481. img: b[j].img,
  13482. type: 16,
  13483. time: b[j].time,
  13484. userid: b[j].userid,
  13485. wid: b[j].id,
  13486. aiCode: b[j].aiCode,
  13487. teacherCode: b[j].teacherCode
  13488. });
  13489. }
  13490. }
  13491. }
  13492. }
  13493. })
  13494. .catch((err) => {
  13495. console.error(err);
  13496. });
  13497. },
  13498. openVideo(w) {
  13499. this.videoDetail = {};
  13500. this.playerOptions1.sources[0].src = w.works;
  13501. this.videoDetail = this.playerOptions1;
  13502. this.videoVisible = true;
  13503. },
  13504. isLikes(wid, uid, t, c, isLikes) {
  13505. if (isLikes == false) {
  13506. let params = [
  13507. {
  13508. wid: wid,
  13509. lid: uid,
  13510. t: t,
  13511. c: c,
  13512. },
  13513. ];
  13514. this.ajax
  13515. .post(this.$store.state.api + "insertComment", params)
  13516. .then((res) => {
  13517. this.$message({
  13518. message: "点赞成功",
  13519. type: "success",
  13520. });
  13521. this.selectSWorks();
  13522. this.selectStudent();
  13523. })
  13524. .catch((err) => {
  13525. this.$message.error("点赞失败");
  13526. console.error(err);
  13527. });
  13528. } else {
  13529. let params = {
  13530. wid: wid,
  13531. lid: uid,
  13532. type: t,
  13533. };
  13534. this.ajax
  13535. .get(this.$store.state.api + "deleteComment", params)
  13536. .then((res) => {
  13537. this.$message({
  13538. message: "取消点赞成功",
  13539. type: "success",
  13540. });
  13541. this.selectSWorks();
  13542. this.selectStudent();
  13543. })
  13544. .catch((err) => {
  13545. console.error(err);
  13546. });
  13547. }
  13548. },
  13549. deleteComment(wid) {
  13550. this.$confirm("确定删除此评论吗?", "提示", {
  13551. confirmButtonText: "确定",
  13552. cancelButtonText: "取消",
  13553. type: "warning",
  13554. })
  13555. .then(() => {
  13556. let params = {
  13557. id: wid,
  13558. };
  13559. this.ajax
  13560. .get(this.$store.state.api + "deleteComment2", params)
  13561. .then((res) => {
  13562. this.$message({
  13563. message: "删除评论成功",
  13564. type: "success",
  13565. });
  13566. this.selectSWorks();
  13567. this.selectStudent();
  13568. })
  13569. .catch((err) => {
  13570. console.error(err);
  13571. });
  13572. })
  13573. .catch(() => {});
  13574. },
  13575. commentOther(w, toolIndex, wIndex, gindex, gid) {
  13576. this.commentIndexJson = {
  13577. toolIndex: toolIndex,
  13578. wIndex: wIndex,
  13579. gindex: gindex,
  13580. gid: gid,
  13581. };
  13582. this.commentDetail = [];
  13583. this.commentDialogVisible = true;
  13584. this.commentDetail = w;
  13585. if (w.works && w.type == 1) {
  13586. this.pptImgUrl = "";
  13587. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13588. if (
  13589. a.indexOf(
  13590. w.works
  13591. .split(".")
  13592. [w.works.split(".").length - 1].toLocaleUpperCase()
  13593. ) != -1
  13594. ) {
  13595. this.pptImgUrl =
  13596. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13597. this.showPDF = false;
  13598. } else if (
  13599. w.works
  13600. .split(".")
  13601. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13602. ) {
  13603. this.pptImgUrl = w.works;
  13604. this.showPDF = true;
  13605. }
  13606. } else if (w.works && w.type == 3) {
  13607. this.videoDetail = {};
  13608. this.playerOptions1.sources[0].src = w.works;
  13609. this.videoDetail = this.playerOptions1;
  13610. // this.videoVisible = true;
  13611. } else if (w.works && w.type == 4) {
  13612. this.eScore = JSON.parse(w.works);
  13613. this.rateJson =
  13614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13615. this.taskCount
  13616. ].toolChoose[toolIndex].rateJson;
  13617. } else if (w.works && w.type == 10) {
  13618. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  13619. } else if (w.works && w.type == 13) {
  13620. this.wordJson =
  13621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13622. this.taskCount
  13623. ].toolChoose[toolIndex].wordJson;
  13624. }
  13625. },
  13626. openScore(w) {
  13627. this.wScore = 0;
  13628. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  13629. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  13630. this.commentDetail = [];
  13631. this.dialogVisibleScore = true;
  13632. this.commentDetail = w;
  13633. if (w.works && w.type == 1) {
  13634. this.pptImgUrl = "";
  13635. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  13636. if (
  13637. a.indexOf(
  13638. w.works
  13639. .split(".")
  13640. [w.works.split(".").length - 1].toLocaleUpperCase()
  13641. ) != -1
  13642. ) {
  13643. this.pptImgUrl =
  13644. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  13645. this.showPDF = false;
  13646. } else if (
  13647. w.works
  13648. .split(".")
  13649. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  13650. ) {
  13651. this.pptImgUrl = w.works;
  13652. this.showPDF = true;
  13653. }
  13654. } else if (w.works && w.type == 3) {
  13655. this.videoDetail = {};
  13656. this.playerOptions1.sources[0].src = w.works;
  13657. this.videoDetail = this.playerOptions1;
  13658. }
  13659. },
  13660. addComment(wid, uid, t) {
  13661. if (this.commentText == "") {
  13662. this.$message.error("请输入评论");
  13663. return;
  13664. }
  13665. let params2 = [
  13666. {
  13667. wid: wid,
  13668. lid: uid,
  13669. t: t,
  13670. },
  13671. ];
  13672. this.ajax
  13673. .post(this.$store.state.api + "getComment", params2)
  13674. .then((res) => {
  13675. if (res.data[0].length > 0) {
  13676. this.$message.error("一个作业只能评论一条");
  13677. } else {
  13678. let params = [
  13679. {
  13680. wid: wid,
  13681. lid: uid,
  13682. t: t,
  13683. c: this.commentText,
  13684. },
  13685. ];
  13686. this.ajax
  13687. .post(this.$store.state.api + "insertComment", params)
  13688. .then((res) => {
  13689. this.$message({
  13690. message: "评论成功",
  13691. type: "success",
  13692. });
  13693. this.commentText = "";
  13694. this.selectSWorks();
  13695. this.selectStudent();
  13696. })
  13697. .catch((err) => {
  13698. this.$message.error("评论失败");
  13699. console.error(err);
  13700. });
  13701. }
  13702. })
  13703. .catch((err) => {
  13704. // this.$message.error("评论失败");
  13705. console.error(err);
  13706. });
  13707. },
  13708. scoreWork(wid) {
  13709. if (this.wScore == 0) {
  13710. this.$message.error("请评分");
  13711. return;
  13712. }
  13713. let params = [
  13714. {
  13715. wid: wid,
  13716. score: JSON.stringify({
  13717. wScore: this.wScore,
  13718. detail: this.scoreDetail,
  13719. }),
  13720. },
  13721. ];
  13722. this.ajax
  13723. .post(this.$store.state.api + "scoreWork", params)
  13724. .then((res) => {
  13725. this.$message({
  13726. message: "评分成功",
  13727. type: "success",
  13728. });
  13729. this.wScore = 0;
  13730. this.scoreDetail = "";
  13731. this.dialogVisibleScore = false;
  13732. this.selectSWorks();
  13733. this.selectStudent();
  13734. })
  13735. .catch((err) => {
  13736. this.$message.error("评分失败");
  13737. console.error(err);
  13738. });
  13739. },
  13740. openXz(w, i) {
  13741. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  13742. .taskJson[this.taskCount].toolChoose[i].selectJson
  13743. ? JSON.parse(
  13744. JSON.stringify(
  13745. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13746. this.taskCount
  13747. ].toolChoose[i].selectJson
  13748. )
  13749. )
  13750. : { url: "", select: [], answer: [] };
  13751. var a = w.works.split(",");
  13752. for (var k = 0; k < a.length; k++) {
  13753. a[k] = parseInt(a[k]);
  13754. }
  13755. this.selectAnswer = { answer: a, stu: w.sName };
  13756. this.isSelect = true;
  13757. this.dialogVisibleSelect = true;
  13758. },
  13759. openSen(w, i) {
  13760. this.sentenceList1 = JSON.parse(w.works);
  13761. this.sentenceList1.stuName = w.sName;
  13762. this.dialogVisibleSentence1 = true;
  13763. },
  13764. openPj(w, toolindex) {
  13765. this.isStar = true;
  13766. this.eScore = JSON.parse(w);
  13767. this.rateJson =
  13768. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13769. this.taskCount
  13770. ].toolChoose[toolindex].rateJson;
  13771. this.studentEvalDialogVisible = true;
  13772. },
  13773. openEnglishEva(id,i){
  13774. let params = {
  13775. wid: id
  13776. };
  13777. this.ajax
  13778. .get(this.$store.state.api + "selectEngWork", params)
  13779. .then((res) => {
  13780. this.evaEngJson.message = res.data[0][0];
  13781. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  13782. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  13783. .toolChoose[i].englishList;
  13784. this.engEvaDialogVisible = true;
  13785. })
  13786. .catch((err) => {
  13787. console.error(err);
  13788. });
  13789. },
  13790. deleteWorks(id) {
  13791. this.$confirm("确定删除此作业吗?", "提示", {
  13792. confirmButtonText: "确定",
  13793. cancelButtonText: "取消",
  13794. type: "warning",
  13795. })
  13796. .then(() => {
  13797. let params = [
  13798. {
  13799. id: id,
  13800. },
  13801. ];
  13802. this.ajax
  13803. .post(this.$store.state.api + "deleteCourseWork", params)
  13804. .then((res) => {
  13805. this.$message({
  13806. message: "删除成功",
  13807. type: "success",
  13808. });
  13809. this.selectStudent();
  13810. this.selectSWorks();
  13811. this.selectSLook();
  13812. })
  13813. .catch((err) => {
  13814. this.$message.error("网络异常");
  13815. console.error(err);
  13816. });
  13817. })
  13818. .catch(() => {});
  13819. },
  13820. selectSWorks(gindex) {
  13821. //教师查看全部作业
  13822. let params = {
  13823. cid: this.id,
  13824. s: this.courseType,
  13825. t: this.taskCount,
  13826. };
  13827. this.ajax
  13828. .get(this.$store.state.api + "selectSWorks", params)
  13829. .then((res) => {
  13830. var a =
  13831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  13832. this.taskCount
  13833. ].toolChoose;
  13834. var b = res.data[0];
  13835. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  13836. var y = [
  13837. "AVI",
  13838. "NAVI",
  13839. "MPEG",
  13840. "ASF",
  13841. "MOV",
  13842. "WMV",
  13843. "3GP",
  13844. "RM",
  13845. "RMVB",
  13846. "FLV",
  13847. "F4V",
  13848. "H.264",
  13849. "H.265",
  13850. "REAL VIDEO",
  13851. "MKV",
  13852. "WebM",
  13853. "HDDVD",
  13854. "MP4",
  13855. "MPG",
  13856. "M4V",
  13857. "MGV",
  13858. "OGV",
  13859. "QTM",
  13860. "STR",
  13861. "AMC",
  13862. "DVX",
  13863. "EVO",
  13864. "DAT",
  13865. "OGG",
  13866. "OGM",
  13867. ];
  13868. var d = res.data[1];
  13869. var e = res.data[2];
  13870. var f = res.data[3];
  13871. let _worksStudent = [];
  13872. var _worksStudent2 = [];
  13873. for (var i = 0; i < a.length; i++) {
  13874. _worksStudent[i] = [];
  13875. _worksStudent2[i] = [];
  13876. if (
  13877. !this.isCloseList[i] ||
  13878. this.isCloseList[i].isClose == undefined
  13879. ) {
  13880. this.isCloseList[i] = { isClose: 0 };
  13881. }
  13882. this.groupStudent[i] = [];
  13883. this.groupStudentUid[i] = [];
  13884. if (this.isGroup) {
  13885. for (
  13886. var groupI = 0;
  13887. groupI < this.courseGroup.group.length;
  13888. groupI++
  13889. ) {
  13890. this.courseGroup.group[groupI].works[i] = [];
  13891. }
  13892. }
  13893. this.isWorksS[i] = [];
  13894. this.checkJson[i] = [];
  13895. if (a[i].tool[0] == 49) {
  13896. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  13897. this.groupStudent[i][gA] = [];
  13898. this.groupStudentUid[i][gA] = [];
  13899. _worksStudent[i][gA] = [];
  13900. _worksStudent2[i][gA] = [];
  13901. this.isCloseList[i][gA] = [];
  13902. for (var g = 0; g < f.length; g++) {
  13903. if (
  13904. f[g].ttype == 2 &&
  13905. this.tcid &&
  13906. this.arrayToArray(
  13907. (f[g].classid ? f[g].classid.split(",") : []),
  13908. this.tcid.split(",")
  13909. ).length == 0
  13910. ) {
  13911. continue;
  13912. }
  13913. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  13914. (f[g].classid ? f[g].classid.split(",") : []),
  13915. this.tcid.split(",")
  13916. ).length !== 0 || this.arrayToArray(
  13917. (f[g].classid ? f[g].classid.split(",") : []),
  13918. this.classId ? this.classId.split(",") : []
  13919. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  13920. this.groupStudent[i][gA].push(f[g]);
  13921. this.groupStudentUid[i][gA].push(f[g].userid);
  13922. }
  13923. }
  13924. }
  13925. this.$forceUpdate();
  13926. }
  13927. for (var j = 0; j < b.length; j++) {
  13928. if (
  13929. b[j].ttype == 2 &&
  13930. this.tcid &&
  13931. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  13932. .length == 0
  13933. ) {
  13934. continue;
  13935. }
  13936. var likesCount = 0;
  13937. var commentCount = 0;
  13938. var isLikes = false;
  13939. var commentJson = [];
  13940. var data = b[j];
  13941. if (i == b[j].tool) {
  13942. if (data.type == 2 && a[i].tool[0] == 4) {
  13943. // if(JSON.parse(data.content)[0].anwer){
  13944. var checkL =
  13945. JSON.parse(data.content)[0].anwer instanceof Array
  13946. ? JSON.parse(data.content)[0].anwer
  13947. : JSON.parse(data.content)[0].anwer.split(",");
  13948. for (var z = 0; z < checkL.length; z++) {
  13949. if (!this.checkJson[i][z]) {
  13950. this.checkJson[i].push({
  13951. checkCount: [],
  13952. checkPerson: [],
  13953. rightPerson: [],
  13954. });
  13955. }
  13956. if (!this.checkJson[i][z].checkCount.length) {
  13957. this.checkJson[i][z].checkCount = [];
  13958. let _askItemCount = JSON.parse(data.content)[0].askJson
  13959. .askJson[z].askItem;
  13960. for (var aic = 0; aic < _askItemCount; aic++) {
  13961. this.checkJson[i][z].checkCount.push(0);
  13962. }
  13963. }
  13964. if (checkL[z] instanceof Array) {
  13965. if (
  13966. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  13967. checkL[z].sort().join(",")
  13968. ) {
  13969. this.checkJson[i][z].rightPerson.push(data.name);
  13970. }
  13971. for (var q = 0; q < checkL[z].length; q++) {
  13972. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  13973. ? this.checkJson[i][z].checkPerson[
  13974. parseInt(checkL[z][q])
  13975. ].push(data.name)
  13976. : (this.checkJson[i][z].checkPerson[
  13977. parseInt(checkL[z][q])
  13978. ] = [data.name]);
  13979. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  13980. ? this.checkJson[i][z].checkCount[
  13981. parseInt(checkL[z][q])
  13982. ]++
  13983. : (this.checkJson[i][z].checkCount[
  13984. parseInt(checkL[z][q])
  13985. ] = 1);
  13986. }
  13987. } else {
  13988. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  13989. this.checkJson[i][z].rightPerson.push(data.name);
  13990. }
  13991. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  13992. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  13993. ? this.checkJson[i][z].checkPerson[
  13994. parseInt(checkL[z])
  13995. ].push(data.name)
  13996. : (this.checkJson[i][z].checkPerson[
  13997. parseInt(checkL[z])
  13998. ] = [data.name]);
  13999. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14000. ? this.checkJson[i][z].checkCount[
  14001. parseInt(checkL[z])
  14002. ]++
  14003. : (this.checkJson[i][z].checkCount[
  14004. parseInt(checkL[z])
  14005. ] = 1);
  14006. }
  14007. }
  14008. }
  14009. } else if (data.type == 8 && a[i].tool[0] == 45) {
  14010. var checkL = JSON.parse(data.content)[0].anwer;
  14011. for (var z = 0; z < checkL.length; z++) {
  14012. if (!this.checkJson[i][z]) {
  14013. this.checkJson[i].push({
  14014. checkCount: [],
  14015. checkPerson: [],
  14016. rightPerson: [],
  14017. });
  14018. }
  14019. if (!this.checkJson[i][z].checkCount.length) {
  14020. this.checkJson[i][z].checkCount = [];
  14021. let _askItemCount = JSON.parse(data.content)[0].testJson
  14022. .testJson[z].testItem;
  14023. for (var aic = 0; aic < _askItemCount; aic++) {
  14024. this.checkJson[i][z].checkCount.push(0);
  14025. }
  14026. }
  14027. if (checkL[z] instanceof Array) {
  14028. if (
  14029. JSON.parse(data.content)[0]
  14030. .testJson.testJson[z].answer.sort()
  14031. .join(",") == checkL[z].sort().join(",")
  14032. ) {
  14033. this.checkJson[i][z].rightPerson.push(data.name);
  14034. }
  14035. for (var q = 0; q < checkL[z].length; q++) {
  14036. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  14037. ? this.checkJson[i][z].checkPerson[
  14038. parseInt(checkL[z][q])
  14039. ].push(data.name)
  14040. : (this.checkJson[i][z].checkPerson[
  14041. parseInt(checkL[z][q])
  14042. ] = [data.name]);
  14043. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  14044. ? this.checkJson[i][z].checkCount[
  14045. parseInt(checkL[z][q])
  14046. ]++
  14047. : (this.checkJson[i][z].checkCount[
  14048. parseInt(checkL[z][q])
  14049. ] = 1);
  14050. }
  14051. } else {
  14052. if (
  14053. JSON.parse(data.content)[0].testJson.testJson[z]
  14054. .answer == checkL[z]
  14055. ) {
  14056. this.checkJson[i][z].rightPerson.push(data.name);
  14057. }
  14058. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  14059. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  14060. ? this.checkJson[i][z].checkPerson[
  14061. parseInt(checkL[z])
  14062. ].push(data.name)
  14063. : (this.checkJson[i][z].checkPerson[
  14064. parseInt(checkL[z])
  14065. ] = [data.name]);
  14066. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  14067. ? this.checkJson[i][z].checkCount[
  14068. parseInt(checkL[z])
  14069. ]++
  14070. : (this.checkJson[i][z].checkCount[
  14071. parseInt(checkL[z])
  14072. ] = 1);
  14073. }
  14074. }
  14075. }
  14076. } else if (data.type == 9 && a[i].tool[0] == 47) {
  14077. var checkL = JSON.parse(data.content);
  14078. for (var z = 0; z < checkL.length; z++) {
  14079. if (!this.checkJson[i][z]) {
  14080. this.checkJson[i].push({
  14081. checkCount: [],
  14082. checkPerson: [],
  14083. rightPerson: [],
  14084. });
  14085. }
  14086. this.checkJson[i][z].checkPerson.push(data.name);
  14087. if (
  14088. checkL[z].chooseSenList.toString() ==
  14089. checkL[z].rightAnswer.toString()
  14090. ) {
  14091. this.checkJson[i][z].rightPerson.push(data.name);
  14092. }
  14093. }
  14094. }
  14095. for (var k = 0; k < d.length; k++) {
  14096. //点赞
  14097. if (d[k].workId == b[j].id) {
  14098. likesCount++;
  14099. if (d[k].likesId == this.userid) {
  14100. isLikes = true;
  14101. }
  14102. }
  14103. }
  14104. for (var l = 0; l < e.length; l++) {
  14105. //评论
  14106. if (e[l].workId == b[j].id) {
  14107. if (e[l].comment != "") {
  14108. commentCount++;
  14109. commentJson.push({
  14110. commentText: e[l].comment,
  14111. commentTime: e[l].commentTime,
  14112. commentPeople: e[l].commentPeople,
  14113. userid: e[l].userid,
  14114. wid: e[l].id,
  14115. });
  14116. }
  14117. }
  14118. }
  14119. if (
  14120. (b[j].type == 1 ||
  14121. b[j].type == 4 ||
  14122. b[j].type == 5 ||
  14123. b[j].type == 6 ||
  14124. b[j].type == 12 ||
  14125. b[j].type == 7) &&
  14126. a[i].tool[0] != 15 &&
  14127. a[i].tool[0] != 4 &&
  14128. a[i].tool[0] != 45 &&
  14129. a[i].tool[0] != 50 &&
  14130. a[i].tool[0] != 32 &&
  14131. a[i].tool[0] != 57 &&
  14132. a[i].tool[0] != 52
  14133. ) {
  14134. if (
  14135. c.indexOf(
  14136. b[j].content
  14137. .split(".")
  14138. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14139. ) != -1 &&
  14140. a[i].tool[0] == 16 &&
  14141. b[j].atool != 50
  14142. ) {
  14143. let _works = {
  14144. userid: b[j].userid,
  14145. ateacher: b[j].ateacher,
  14146. wid: b[j].id,
  14147. works: b[j].content,
  14148. sName: b[j].name,
  14149. type: 1,
  14150. time: b[j].time,
  14151. score: b[j].score,
  14152. img: b[j].img,
  14153. likesCount: likesCount,
  14154. commentCount: commentCount,
  14155. isLikes: isLikes,
  14156. commentJson: commentJson,
  14157. };
  14158. if (this.isGroup) {
  14159. let isGw = 1;
  14160. for (
  14161. var groupI = 0;
  14162. groupI < this.courseGroup.group.length;
  14163. groupI++
  14164. ) {
  14165. let gid = this.courseGroup.group[groupI].id;
  14166. if (
  14167. this.courseGroupStudentUid[gid].indexOf(
  14168. b[j].userid
  14169. ) != -1
  14170. ) {
  14171. isGw = 2;
  14172. this.courseGroup.group[groupI].works[i].push(_works);
  14173. break;
  14174. }
  14175. }
  14176. if (isGw == 1) {
  14177. _worksStudent[i].push(_works);
  14178. }
  14179. } else {
  14180. _worksStudent[i].push(_works);
  14181. }
  14182. _worksStudent2[i].push(_works);
  14183. this.isWorksS[i].push({
  14184. uid: b[j].userid,
  14185. sName: b[j].name,
  14186. });
  14187. } else if (
  14188. y.indexOf(
  14189. b[j].content
  14190. .split(".")
  14191. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  14192. ) != -1 &&
  14193. a[i].tool[0] == 16 &&
  14194. b[j].atool != 50
  14195. ) {
  14196. let _works = {
  14197. userid: b[j].userid,
  14198. ateacher: b[j].ateacher,
  14199. wid: b[j].id,
  14200. works: b[j].content,
  14201. sName: b[j].name,
  14202. type: 3,
  14203. time: b[j].time,
  14204. score: b[j].score,
  14205. img: b[j].img,
  14206. likesCount: likesCount,
  14207. commentCount: commentCount,
  14208. isLikes: isLikes,
  14209. commentJson: commentJson,
  14210. };
  14211. if (this.isGroup) {
  14212. let isGw = 1;
  14213. for (
  14214. var groupI = 0;
  14215. groupI < this.courseGroup.group.length;
  14216. groupI++
  14217. ) {
  14218. let gid = this.courseGroup.group[groupI].id;
  14219. if (
  14220. this.courseGroupStudentUid[gid].indexOf(
  14221. b[j].userid
  14222. ) != -1
  14223. ) {
  14224. isGw = 2;
  14225. this.courseGroup.group[groupI].works[i].push(_works);
  14226. break;
  14227. }
  14228. }
  14229. if (isGw == 1) {
  14230. _worksStudent[i].push(_works);
  14231. }
  14232. } else {
  14233. _worksStudent[i].push(_works);
  14234. }
  14235. _worksStudent2[i].push(_works);
  14236. this.isWorksS[i].push({
  14237. uid: b[j].userid,
  14238. sName: b[j].name,
  14239. });
  14240. } else if (b[j].type == 6 && b[j].atool != 50) {
  14241. let _works = {
  14242. userid: b[j].userid,
  14243. ateacher: b[j].ateacher,
  14244. wid: b[j].id,
  14245. works: b[j].content,
  14246. sName: b[j].name,
  14247. type: 4,
  14248. time: b[j].time,
  14249. score: b[j].score,
  14250. img: b[j].img,
  14251. likesCount: likesCount,
  14252. commentCount: commentCount,
  14253. isLikes: isLikes,
  14254. commentJson: commentJson,
  14255. };
  14256. _worksStudent[i].push(_works);
  14257. _worksStudent2[i].push(_works);
  14258. this.isWorksS[i].push({
  14259. uid: b[j].userid,
  14260. sName: b[j].name,
  14261. });
  14262. } else if (b[j].type == 7 && b[j].atool != 50) {
  14263. let _work = {
  14264. userid: b[j].userid,
  14265. ateacher: b[j].ateacher,
  14266. wid: b[j].id,
  14267. works: b[j].content,
  14268. sName: b[j].name,
  14269. type: 5,
  14270. time: b[j].time,
  14271. score: b[j].score,
  14272. img: b[j].img,
  14273. likesCount: likesCount,
  14274. commentCount: commentCount,
  14275. isLikes: isLikes,
  14276. commentJson: commentJson,
  14277. };
  14278. _worksStudent[i].push(_work);
  14279. _worksStudent2[i].push(_work);
  14280. this.isWorksS[i].push({
  14281. uid: b[j].userid,
  14282. sName: b[j].name,
  14283. });
  14284. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  14285. let _works = {
  14286. userid: b[j].userid,
  14287. ateacher: b[j].ateacher,
  14288. wid: b[j].id,
  14289. works: b[j].content,
  14290. sName: b[j].name,
  14291. type: 12,
  14292. time: b[j].time,
  14293. score: b[j].score,
  14294. img: b[j].img,
  14295. likesCount: likesCount,
  14296. commentCount: commentCount,
  14297. isLikes: isLikes,
  14298. commentJson: commentJson,
  14299. };
  14300. if (this.isGroup) {
  14301. let isGw = 1;
  14302. for (
  14303. var groupI = 0;
  14304. groupI < this.courseGroup.group.length;
  14305. groupI++
  14306. ) {
  14307. let gid = this.courseGroup.group[groupI].id;
  14308. if (
  14309. this.courseGroupStudentUid[gid].indexOf(
  14310. b[j].userid
  14311. ) != -1
  14312. ) {
  14313. isGw = 2;
  14314. this.courseGroup.group[groupI].works[i].push(_works);
  14315. break;
  14316. }
  14317. }
  14318. if (isGw == 1) {
  14319. _worksStudent[i].push(_works);
  14320. }
  14321. } else {
  14322. _worksStudent[i].push(_works);
  14323. }
  14324. _worksStudent2[i].push(_works);
  14325. this.isWorksS[i].push({
  14326. uid: b[j].userid,
  14327. sName: b[j].name,
  14328. });
  14329. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  14330. let _works = {
  14331. userid: b[j].userid,
  14332. ateacher: b[j].ateacher,
  14333. wid: b[j].id,
  14334. works: b[j].content,
  14335. sName: b[j].name,
  14336. type: 0,
  14337. time: b[j].time,
  14338. score: b[j].score,
  14339. img: b[j].img,
  14340. likesCount: likesCount,
  14341. commentCount: commentCount,
  14342. isLikes: isLikes,
  14343. commentJson: commentJson,
  14344. };
  14345. if (this.isGroup) {
  14346. let isGw = 1;
  14347. for (
  14348. var groupI = 0;
  14349. groupI < this.courseGroup.group.length;
  14350. groupI++
  14351. ) {
  14352. let gid = this.courseGroup.group[groupI].id;
  14353. if (
  14354. this.courseGroupStudentUid[gid].indexOf(
  14355. b[j].userid
  14356. ) != -1
  14357. ) {
  14358. isGw = 2;
  14359. this.courseGroup.group[groupI].works[i].push(_works);
  14360. break;
  14361. }
  14362. }
  14363. if (isGw == 1) {
  14364. _worksStudent[i].push(_works);
  14365. }
  14366. } else {
  14367. _worksStudent[i].push(_works);
  14368. }
  14369. _worksStudent2[i].push(_works);
  14370. this.isWorksS[i].push({
  14371. uid: b[j].userid,
  14372. sName: b[j].name,
  14373. });
  14374. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  14375. let _works = {
  14376. userid: b[j].userid,
  14377. ateacher: b[j].ateacher,
  14378. wid: b[j].id,
  14379. works: b[j].content,
  14380. sName: b[j].name,
  14381. type: 0,
  14382. time: b[j].time,
  14383. score: b[j].score,
  14384. img: b[j].img,
  14385. likesCount: likesCount,
  14386. commentCount: commentCount,
  14387. isLikes: isLikes,
  14388. commentJson: commentJson,
  14389. };
  14390. if (this.isGroup) {
  14391. let isGw = 1;
  14392. for (
  14393. var groupI = 0;
  14394. groupI < this.courseGroup.group.length;
  14395. groupI++
  14396. ) {
  14397. let gid = this.courseGroup.group[groupI].id;
  14398. if (
  14399. this.courseGroupStudentUid[gid].indexOf(
  14400. b[j].userid
  14401. ) != -1
  14402. ) {
  14403. isGw = 2;
  14404. this.courseGroup.group[groupI].works[i].push(_works);
  14405. break;
  14406. }
  14407. }
  14408. if (isGw == 1) {
  14409. _worksStudent[i].push(_works);
  14410. }
  14411. } else {
  14412. _worksStudent[i].push(_works);
  14413. }
  14414. _worksStudent2[i].push(_works);
  14415. this.isWorksS[i].push({
  14416. uid: b[j].userid,
  14417. sName: b[j].name,
  14418. });
  14419. }
  14420. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  14421. let _works = {
  14422. userid: b[j].userid,
  14423. ateacher: b[j].ateacher,
  14424. wid: b[j].id,
  14425. works: b[j].content,
  14426. sName: b[j].name,
  14427. type: 2,
  14428. time: b[j].time,
  14429. score: b[j].score,
  14430. img: b[j].img,
  14431. likesCount: likesCount,
  14432. commentCount: commentCount,
  14433. isLikes: isLikes,
  14434. commentJson: commentJson,
  14435. };
  14436. if (this.isGroup) {
  14437. let isGw = 1;
  14438. for (
  14439. var groupI = 0;
  14440. groupI < this.courseGroup.group.length;
  14441. groupI++
  14442. ) {
  14443. let gid = this.courseGroup.group[groupI].id;
  14444. if (
  14445. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  14446. -1
  14447. ) {
  14448. isGw = 2;
  14449. this.courseGroup.group[groupI].works[i].push(_works);
  14450. break;
  14451. }
  14452. }
  14453. if (isGw == 1) {
  14454. _worksStudent[i].push(_works);
  14455. }
  14456. } else {
  14457. _worksStudent[i].push(_works);
  14458. }
  14459. _worksStudent2[i].push(_works);
  14460. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14461. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  14462. //问卷
  14463. let _work = {
  14464. userid: b[j].userid,
  14465. ateacher: b[j].ateacher,
  14466. wid: b[j].id,
  14467. works: b[j].content,
  14468. sName: b[j].name,
  14469. type: 2,
  14470. time: b[j].time,
  14471. score: b[j].score,
  14472. img: b[j].img,
  14473. likesCount: likesCount,
  14474. commentCount: commentCount,
  14475. isLikes: isLikes,
  14476. commentJson: commentJson,
  14477. };
  14478. _worksStudent[i].push(_work);
  14479. _worksStudent2[i].push(_work);
  14480. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14481. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  14482. //选择题
  14483. let _work = {
  14484. userid: b[j].userid,
  14485. ateacher: b[j].ateacher,
  14486. wid: b[j].id,
  14487. works: b[j].content,
  14488. sName: b[j].name,
  14489. type: 8,
  14490. time: b[j].time,
  14491. score: b[j].score,
  14492. img: b[j].img,
  14493. likesCount: likesCount,
  14494. commentCount: commentCount,
  14495. isLikes: isLikes,
  14496. commentJson: commentJson,
  14497. };
  14498. _worksStudent[i].push(_work);
  14499. _worksStudent2[i].push(_work);
  14500. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14501. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  14502. //选择题
  14503. let _work = {
  14504. userid: b[j].userid,
  14505. ateacher: b[j].ateacher,
  14506. wid: b[j].id,
  14507. works: b[j].content,
  14508. sName: b[j].name,
  14509. type: 9,
  14510. time: b[j].time,
  14511. score: b[j].score,
  14512. img: b[j].img,
  14513. likesCount: likesCount,
  14514. commentCount: commentCount,
  14515. isLikes: isLikes,
  14516. commentJson: commentJson,
  14517. };
  14518. _worksStudent[i].push(_work);
  14519. _worksStudent2[i].push(_work);
  14520. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14521. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  14522. //选择题
  14523. let _work = {
  14524. userid: b[j].userid,
  14525. ateacher: b[j].ateacher,
  14526. wid: b[j].id,
  14527. works: b[j].content,
  14528. sName: b[j].name,
  14529. type: 10,
  14530. time: b[j].time,
  14531. score: b[j].score,
  14532. img: b[j].img,
  14533. likesCount: likesCount,
  14534. commentCount: commentCount,
  14535. isLikes: isLikes,
  14536. commentJson: commentJson,
  14537. };
  14538. _worksStudent[i].push(_work);
  14539. _worksStudent2[i].push(_work);
  14540. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14541. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  14542. //选择题
  14543. let _work = {
  14544. userid: b[j].userid,
  14545. ateacher: b[j].ateacher,
  14546. wid: b[j].id,
  14547. works: b[j].content,
  14548. sName: b[j].name,
  14549. type: 13,
  14550. time: b[j].time,
  14551. score: b[j].score,
  14552. img: b[j].img,
  14553. likesCount: likesCount,
  14554. commentCount: commentCount,
  14555. isLikes: isLikes,
  14556. commentJson: commentJson,
  14557. };
  14558. _worksStudent[i].push(_work);
  14559. _worksStudent2[i].push(_work);
  14560. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14561. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  14562. //选择题
  14563. let _work = {
  14564. userid: b[j].userid,
  14565. ateacher: b[j].ateacher,
  14566. wid: b[j].id,
  14567. works: b[j].content,
  14568. sName: b[j].name,
  14569. type: 16,
  14570. time: b[j].time,
  14571. score: b[j].score,
  14572. img: b[j].img,
  14573. likesCount: likesCount,
  14574. commentCount: commentCount,
  14575. isLikes: isLikes,
  14576. commentJson: commentJson,
  14577. aiCode: b[j].aiCode,
  14578. teacherCode: b[j].teacherCode
  14579. };
  14580. _worksStudent[i].push(_work);
  14581. _worksStudent2[i].push(_work);
  14582. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14583. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  14584. let _gindex = JSON.parse(b[j].content);
  14585. if (
  14586. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  14587. b[j].userid
  14588. ) != -1
  14589. ) {
  14590. let _work = {
  14591. userid: b[j].userid,
  14592. ateacher: b[j].ateacher,
  14593. wid: b[j].id,
  14594. works: _gindex.url,
  14595. sName: b[j].name,
  14596. type: _gindex.type,
  14597. time: b[j].time,
  14598. score: b[j].score,
  14599. img: b[j].img,
  14600. likesCount: likesCount,
  14601. commentCount: commentCount,
  14602. isLikes: isLikes,
  14603. commentJson: commentJson,
  14604. };
  14605. _worksStudent[i][_gindex.groupIndex].push(_work);
  14606. _worksStudent2[i][_gindex.groupIndex].push(_work);
  14607. }
  14608. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14609. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  14610. let _work = {
  14611. userid: b[j].userid,
  14612. ateacher: b[j].ateacher,
  14613. wid: b[j].id,
  14614. works: b[j].content,
  14615. sName: b[j].name ? b[j].name : b[j].userid,
  14616. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  14617. time: b[j].time,
  14618. score: b[j].score,
  14619. img: b[j].img,
  14620. likesCount: likesCount,
  14621. commentCount: commentCount,
  14622. isLikes: isLikes,
  14623. commentJson: commentJson,
  14624. };
  14625. _worksStudent[i].push(_work);
  14626. _worksStudent2[i].push(_work);
  14627. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14628. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  14629. let _work = {
  14630. userid: b[j].userid,
  14631. ateacher: b[j].ateacher,
  14632. wid: b[j].id,
  14633. works: b[j].content,
  14634. sName: b[j].name ? b[j].name : b[j].userid,
  14635. type: 12,
  14636. time: b[j].time,
  14637. score: b[j].score,
  14638. img: b[j].img,
  14639. likesCount: likesCount,
  14640. commentCount: commentCount,
  14641. isLikes: isLikes,
  14642. commentJson: commentJson,
  14643. };
  14644. _worksStudent[i].push(_work);
  14645. _worksStudent2[i].push(_work);
  14646. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14647. } else if (
  14648. a[i].tool[0] == 57 &&
  14649. b[j].atool == 57 &&
  14650. b[j].type == 12
  14651. ) {
  14652. let _work = {
  14653. userid: b[j].userid,
  14654. ateacher: b[j].ateacher,
  14655. wid: b[j].id,
  14656. works: b[j].content,
  14657. sName: b[j].name ? b[j].name : b[j].userid,
  14658. type: 12,
  14659. time: b[j].time,
  14660. score: b[j].score,
  14661. img: b[j].img,
  14662. likesCount: likesCount,
  14663. commentCount: commentCount,
  14664. isLikes: isLikes,
  14665. commentJson: commentJson,
  14666. };
  14667. _worksStudent[i].push(_work);
  14668. _worksStudent2[i].push(_work);
  14669. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14670. } else if (
  14671. a[i].tool[0] == 57 &&
  14672. b[j].atool == 57 &&
  14673. b[j].type == 15
  14674. ) {
  14675. let _work = {
  14676. userid: b[j].userid,
  14677. ateacher: b[j].ateacher,
  14678. wid: b[j].id,
  14679. works: b[j].content,
  14680. sName: b[j].name ? b[j].name : b[j].userid,
  14681. type: 15,
  14682. time: b[j].time,
  14683. score: b[j].score,
  14684. img: b[j].img,
  14685. likesCount: likesCount,
  14686. commentCount: commentCount,
  14687. isLikes: isLikes,
  14688. commentJson: commentJson,
  14689. };
  14690. _worksStudent[i].push(_work);
  14691. _worksStudent2[i].push(_work);
  14692. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  14693. }
  14694. }
  14695. }
  14696. if (_worksStudent[i] && _worksStudent[i].length) {
  14697. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  14698. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14699. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14700. var scoreA = parseFloat(jscoreA);
  14701. var scoreB = parseFloat(jscoreB);
  14702. if (scoreA == scoreB) {
  14703. return b.likesCount - a.likesCount;
  14704. }
  14705. return scoreB - scoreA;
  14706. });
  14707. if (this.isGroup) {
  14708. for (
  14709. var groupI = 0;
  14710. groupI < this.courseGroup.group.length;
  14711. groupI++
  14712. ) {
  14713. this.courseGroup.group[groupI].works[i] =
  14714. this.courseGroup.group[groupI].works[i].sort(function (
  14715. a,
  14716. b
  14717. ) {
  14718. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  14719. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  14720. var scoreA = parseFloat(jscoreA);
  14721. var scoreB = parseFloat(jscoreB);
  14722. if (scoreA == scoreB) {
  14723. return b.likesCount - a.likesCount;
  14724. }
  14725. return scoreB - scoreA;
  14726. });
  14727. }
  14728. }
  14729. }
  14730. }
  14731. this.timeWorkList = _worksStudent2;
  14732. for (var i = 0; i < a.length; i++) {
  14733. for (var j = 0; j < b.length; j++) {
  14734. var data = b[j];
  14735. if (i == b[j].tool) {
  14736. if (data.type == 2 || data.type == 8) {
  14737. for (var z = 0; z < this.checkJson[i].length; z++) {
  14738. this.checkJson[i][z].checkPerent = [];
  14739. this.checkJson[i][z].right = Math.round(
  14740. (this.checkJson[i][z].rightPerson.length /
  14741. parseInt(_worksStudent[i].length)) *
  14742. 100
  14743. );
  14744. let aaaa = this.checkJson[i][z];
  14745. for (
  14746. var k = 0;
  14747. k < this.checkJson[i][z].checkCount.length;
  14748. k++
  14749. ) {
  14750. this.checkJson[i][z].checkPerent.push(
  14751. Math.round(
  14752. (this.checkJson[i][z].checkCount[k] /
  14753. parseInt(_worksStudent[i].length)) *
  14754. 100
  14755. )
  14756. );
  14757. }
  14758. }
  14759. } else if (data.type == 9) {
  14760. for (var z = 0; z < this.checkJson[i].length; z++) {
  14761. this.checkJson[i][z].checkPerent = [];
  14762. this.checkJson[i][z].right = Math.round(
  14763. (this.checkJson[i][z].rightPerson.length /
  14764. this.checkJson[i][z].checkPerson.length) *
  14765. 100
  14766. );
  14767. }
  14768. }
  14769. }
  14770. }
  14771. }
  14772. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  14773. this.joinGroup(gindex);
  14774. }
  14775. this.worksStudent = _worksStudent;
  14776. this.selectWorksStudent();
  14777. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  14778. this.$nextTick(()=>{
  14779. setTimeout(()=>{
  14780. setTimeout(()=>{
  14781. this.panToolHeight('tool-'+ci);
  14782. }, 500)
  14783. }, 0)
  14784. })
  14785. }
  14786. })
  14787. .catch((err) => {
  14788. console.error(err);
  14789. });
  14790. },
  14791. pngToWhiteBg(file) {
  14792. const _file = file;
  14793. let read = new FileReader();
  14794. read.readAsDataURL(file); // 文件转base64
  14795. return new Promise((resolve, reject) => {
  14796. read.onload = (e) => {
  14797. let img = new Image();
  14798. img.src = e.target.result;
  14799. img.onload = async () => {
  14800. // 生成canvas
  14801. let canvas = document.createElement("canvas");
  14802. let context = canvas.getContext("2d");
  14803. // 绘制图片到canvas上
  14804. canvas.width = img.width;
  14805. canvas.height = img.height;
  14806. // 在canvas绘制前填充白色背景
  14807. context.fillStyle = "#fff";
  14808. context.fillRect(0, 0, canvas.width, canvas.height);
  14809. context.drawImage(img, 0, 0);
  14810. let base64 = canvas.toDataURL(file["type"], 1);
  14811. let newFile = this.dataUrlToFile(base64, _file);
  14812. resolve(newFile);
  14813. };
  14814. };
  14815. });
  14816. },
  14817. dataUrlToFile(dataurl, file) {
  14818. let arr = dataurl.split(","),
  14819. mime = arr[0].match(/:(.*?);/)[1],
  14820. bstr = atob(arr[1]),
  14821. n = bstr.length,
  14822. u8arr = new Uint8Array(n);
  14823. while (n--) {
  14824. u8arr[n] = bstr.charCodeAt(n);
  14825. }
  14826. // return new Blob([u8arr], { type: mime });
  14827. return new File([new Blob([u8arr], { type: mime })], file.name, {
  14828. type: mime,
  14829. });
  14830. },
  14831. async beforeUpload1(event, type, i) {
  14832. // this.$message.success('进入上传')
  14833. var file = "";
  14834. if (type == 5) {
  14835. file = event;
  14836. } else {
  14837. file = event.target.files[0];
  14838. }
  14839. var credentials = {
  14840. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  14841. secretAccessKey: "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",
  14842. }; //秘钥形式的登录上传
  14843. window.AWS.config.update(credentials);
  14844. window.AWS.config.region = "cn-northwest-1"; //设置区域
  14845. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  14846. var _this = this;
  14847. _this.progress = 0;
  14848. _this.proVisible = true;
  14849. _this.isFinishSize = 0;
  14850. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  14851. var b = [
  14852. "DOC",
  14853. "DOCX",
  14854. "DOCM",
  14855. "DOTM",
  14856. "DOTX",
  14857. "PPTX",
  14858. "PPSX",
  14859. "PPT",
  14860. "PPS",
  14861. "PPTM",
  14862. "POTM",
  14863. "PPAM",
  14864. "POTX",
  14865. "PPSM",
  14866. ];
  14867. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  14868. var photoA = [
  14869. "BMP",
  14870. "GIF",
  14871. "PNG",
  14872. "JPEG",
  14873. "JPEG",
  14874. "JPG",
  14875. "TIF",
  14876. "PCX",
  14877. "TGA",
  14878. "EXIF",
  14879. "FPX",
  14880. "SVG",
  14881. "APNG",
  14882. ];
  14883. // if (
  14884. // b.indexOf(
  14885. // file.name
  14886. // .split(".")
  14887. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14888. // ) != -1
  14889. // ) {
  14890. // if (file.size / 1024 / 1024 > 10) {
  14891. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  14892. // return;
  14893. // }
  14894. // } else if (
  14895. // excelA.indexOf(
  14896. // file.name
  14897. // .split(".")
  14898. // [file.name.split(".").length - 1].toLocaleUpperCase()
  14899. // ) != "-1"
  14900. // ) {
  14901. // if (file.size / 1024 / 1024 > 5) {
  14902. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  14903. // return;
  14904. // }
  14905. // }
  14906. if (
  14907. photoA.indexOf(
  14908. file.name
  14909. .split(".")
  14910. [file.name.split(".").length - 1].toLocaleUpperCase()
  14911. ) != -1 &&
  14912. type != 4
  14913. ) {
  14914. // const blob = await imageConversion.compress(file, 0.8)
  14915. file = await this.pngToWhiteBg(file);
  14916. const blob = await imageConversion.compressAccurately(file, 256);
  14917. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  14918. file = new File([blob], file.name, { type: file.type });
  14919. }
  14920. if (file) {
  14921. var params = {
  14922. Key:
  14923. file.name.split(".")[0] +
  14924. new Date().getTime() +
  14925. "." +
  14926. file.name.split(".")[file.name.split(".").length - 1],
  14927. ContentType: file.type,
  14928. Body: file,
  14929. "Access-Control-Allow-Credentials": "*",
  14930. ACL: "public-read",
  14931. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  14932. var options = {
  14933. // partSize: 2048 * 1024 * 1024,
  14934. partSize: 1024 * 1024 * 1024,
  14935. queueSize: 2,
  14936. leavePartsOnError: true,
  14937. };
  14938. bucket
  14939. .upload(params, options)
  14940. .on("httpUploadProgress", function (evt) {
  14941. //这里可以写进度条
  14942. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  14943. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  14944. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  14945. })
  14946. .send(function (err, data) {
  14947. _this.progress = 100;
  14948. _this.isFinishSize = _this.isAllSize;
  14949. setTimeout(() => {
  14950. _this.proVisible = false;
  14951. }, 1000);
  14952. if (err) {
  14953. var a = _this.$refs.upload1.uploadFiles;
  14954. a.splice(a.length - 1, a.length);
  14955. _this.$message.error("上传失败");
  14956. } else {
  14957. // _this.$message.success('上传成功')
  14958. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  14959. var c = [
  14960. "AVI",
  14961. "NAVI",
  14962. "MPEG",
  14963. "ASF",
  14964. "MOV",
  14965. "WMV",
  14966. "3GP",
  14967. "RM",
  14968. "RMVB",
  14969. "FLV",
  14970. "F4V",
  14971. "H.264",
  14972. "H.265",
  14973. "REAL VIDEO",
  14974. "MKV",
  14975. "WebM",
  14976. "HDDVD",
  14977. "MP4",
  14978. "MPG",
  14979. "M4V",
  14980. "MGV",
  14981. "OGV",
  14982. "QTM",
  14983. "STR",
  14984. "AMC",
  14985. "DVX",
  14986. "EVO",
  14987. "DAT",
  14988. "OGG",
  14989. "OGM",
  14990. ];
  14991. if (type == 1) {
  14992. _this.studyJuri[0].cover.push({
  14993. name: file.name,
  14994. url: data.Location,
  14995. uid: file.uid,
  14996. });
  14997. if (
  14998. c.indexOf(
  14999. _this.studyJuri[0].cover[0].url
  15000. .split(".")
  15001. [
  15002. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15003. ].toLocaleUpperCase()
  15004. ) != -1
  15005. ) {
  15006. _this.fileType = 2;
  15007. } else if (
  15008. b.indexOf(
  15009. _this.studyJuri[0].cover[0].url
  15010. .split(".")
  15011. [
  15012. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15013. ].toLocaleUpperCase()
  15014. ) != -1
  15015. ) {
  15016. _this.fileType = 1;
  15017. } else if (
  15018. photoA.indexOf(
  15019. _this.studyJuri[0].cover[0].url
  15020. .split(".")
  15021. [
  15022. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15023. ].toLocaleUpperCase()
  15024. ) != -1
  15025. ) {
  15026. _this.fileType = 0;
  15027. } else {
  15028. _this.fileType = 3;
  15029. }
  15030. _this.imgChange(null, null, type);
  15031. } else if (type == 2) {
  15032. _this.upToolImg = data.Location;
  15033. _this.imgChange(null, null, type);
  15034. _this.addCourseWorks(i);
  15035. } else if (type == 4) {
  15036. _this.addPz("3", data.Location);
  15037. } else if (type == 5) {
  15038. _this.addImgDrawImG(data.Location);
  15039. } else if (type == 6) {
  15040. var _ftype = 1;
  15041. if (
  15042. c.indexOf(
  15043. data.Location.split(".")[
  15044. data.Location.split(".").length - 1
  15045. ].toLocaleUpperCase()
  15046. ) != -1
  15047. ) {
  15048. _ftype = 5;
  15049. } else if (
  15050. b.indexOf(
  15051. data.Location.split(".")[
  15052. data.Location.split(".").length - 1
  15053. ].toLocaleUpperCase()
  15054. ) != -1
  15055. ) {
  15056. _ftype = 4;
  15057. } else {
  15058. _ftype = 1;
  15059. }
  15060. _this.plworkFile.push({
  15061. name: file.name,
  15062. url: data.Location,
  15063. uid: file.uid,
  15064. fileType: _ftype,
  15065. username:
  15066. _this.plworkFile.length > 10
  15067. ? _this.plworkFile.length + 1
  15068. : "0" + (_this.plworkFile.length + 1),
  15069. });
  15070. } else if (type == 7) {
  15071. _this.addCourseWorksGong(i, data.Location, 32);
  15072. } else if (type == 8) {
  15073. _this.addCourseWorksGong(i, data.Location, 57);
  15074. }
  15075. _this.imgChange(null, null, type);
  15076. console.log(data.Location);
  15077. // _this.$message.success('上传成功'+data.Location)
  15078. }
  15079. });
  15080. }
  15081. },
  15082. async beforeUpload3(event, type, i) {
  15083. // this.$message.success('进入上传')
  15084. let file = "";
  15085. let cfindex2 = 0;
  15086. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  15087. file = event.target.files[cfindex];
  15088. var credentials = {
  15089. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15090. secretAccessKey: "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",
  15091. }; //秘钥形式的登录上传
  15092. window.AWS.config.update(credentials);
  15093. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15094. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15095. var _this = this;
  15096. // _this.progress = 0;
  15097. _this.proVisible2 = true;
  15098. var b = [
  15099. "DOC",
  15100. "DOCX",
  15101. "DOCM",
  15102. "DOTM",
  15103. "DOTX",
  15104. "PPTX",
  15105. "PPSX",
  15106. "PPT",
  15107. "PPS",
  15108. "PPTM",
  15109. "POTM",
  15110. "PPAM",
  15111. "POTX",
  15112. "PPSM",
  15113. ];
  15114. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  15115. var photoA = [
  15116. "BMP",
  15117. "GIF",
  15118. "PNG",
  15119. "JPEG",
  15120. "JPG",
  15121. "TIF",
  15122. "PCX",
  15123. "TGA",
  15124. "EXIF",
  15125. "FPX",
  15126. "SVG",
  15127. "APNG",
  15128. ];
  15129. if (
  15130. photoA.indexOf(
  15131. file.name
  15132. .split(".")
  15133. [file.name.split(".").length - 1].toLocaleUpperCase()
  15134. ) != -1 &&
  15135. type != 4
  15136. ) {
  15137. // const blob = await imageConversion.compress(file, 0.8)
  15138. file = await this.pngToWhiteBg(file);
  15139. const blob = await imageConversion.compressAccurately(file, 256);
  15140. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  15141. file = new File([blob], file.name, { type: file.type });
  15142. }
  15143. if (file) {
  15144. var params = {
  15145. Key:
  15146. file.name.split(".")[0] +
  15147. new Date().getTime() +
  15148. "." +
  15149. file.name.split(".")[file.name.split(".").length - 1],
  15150. ContentType: file.type,
  15151. Body: file,
  15152. "Access-Control-Allow-Credentials": "*",
  15153. ACL: "public-read",
  15154. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15155. var options = {
  15156. // partSize: 2048 * 1024 * 1024,
  15157. partSize: 1024 * 1024 * 1024,
  15158. queueSize: 2,
  15159. leavePartsOnError: true,
  15160. };
  15161. bucket
  15162. .upload(params, options)
  15163. .on("httpUploadProgress", function (evt) {
  15164. //这里可以写进度条
  15165. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15166. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15167. })
  15168. .send(function (err, data) {
  15169. // _this.progress = 100;
  15170. cfindex2++;
  15171. setTimeout(() => {
  15172. if (
  15173. cfindex2 == event.target.files.length - 1 ||
  15174. cfindex2 > event.target.files.length - 1
  15175. ) {
  15176. _this.proVisible2 = false;
  15177. }
  15178. }, 1000);
  15179. if (err) {
  15180. var a = _this.$refs.upload1.uploadFiles;
  15181. a.splice(a.length - 1, a.length);
  15182. _this.$message.error("上传失败");
  15183. } else {
  15184. // _this.$message.success('上传成功')
  15185. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15186. var c = [
  15187. "AVI",
  15188. "NAVI",
  15189. "MPEG",
  15190. "ASF",
  15191. "MOV",
  15192. "WMV",
  15193. "3GP",
  15194. "RM",
  15195. "RMVB",
  15196. "FLV",
  15197. "F4V",
  15198. "H.264",
  15199. "H.265",
  15200. "REAL VIDEO",
  15201. "MKV",
  15202. "WebM",
  15203. "HDDVD",
  15204. "MP4",
  15205. "MPG",
  15206. "M4V",
  15207. "MGV",
  15208. "OGV",
  15209. "QTM",
  15210. "STR",
  15211. "AMC",
  15212. "DVX",
  15213. "EVO",
  15214. "DAT",
  15215. "OGG",
  15216. "OGM",
  15217. ];
  15218. if (type == 1) {
  15219. _this.studyJuri[0].cover.push({
  15220. name: file.name,
  15221. url: data.Location,
  15222. uid: file.uid,
  15223. });
  15224. if (
  15225. c.indexOf(
  15226. _this.studyJuri[0].cover[0].url
  15227. .split(".")
  15228. [
  15229. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15230. ].toLocaleUpperCase()
  15231. ) != -1
  15232. ) {
  15233. _this.fileType = 2;
  15234. } else if (
  15235. b.indexOf(
  15236. _this.studyJuri[0].cover[0].url
  15237. .split(".")
  15238. [
  15239. _this.studyJuri[0].cover[0].url.split(".").length - 1
  15240. ].toLocaleUpperCase()
  15241. ) != -1
  15242. ) {
  15243. _this.fileType = 1;
  15244. } else {
  15245. _this.fileType = 0;
  15246. }
  15247. _this.imgChange(null, null, type);
  15248. } else if (type == 2) {
  15249. _this.upToolImg = data.Location;
  15250. _this.imgChange(null, null, type);
  15251. _this.addCourseWorks(i);
  15252. } else if (type == 4) {
  15253. _this.addPz("3", data.Location);
  15254. } else if (type == 5) {
  15255. _this.addImgDrawImG(data.Location);
  15256. } else if (type == 6) {
  15257. var _ftype = 1;
  15258. if (
  15259. c.indexOf(
  15260. data.Location.split(".")[
  15261. data.Location.split(".").length - 1
  15262. ].toLocaleUpperCase()
  15263. ) != -1
  15264. ) {
  15265. _ftype = 5;
  15266. } else if (
  15267. b.indexOf(
  15268. data.Location.split(".")[
  15269. data.Location.split(".").length - 1
  15270. ].toLocaleUpperCase()
  15271. ) != -1
  15272. ) {
  15273. _ftype = 4;
  15274. } else {
  15275. _ftype = 1;
  15276. }
  15277. _this.plworkFile.push({
  15278. name: file.name,
  15279. url: data.Location,
  15280. uid: file.uid,
  15281. fileType: _ftype,
  15282. username:
  15283. _this.plworkFile.length + 1 > 9
  15284. ? _this.plworkFile.length + 1
  15285. : "0" + (_this.plworkFile.length + 1),
  15286. });
  15287. }
  15288. _this.imgChange(null, null, type);
  15289. console.log(data.Location);
  15290. // _this.$message.success('上传成功'+data.Location)
  15291. }
  15292. });
  15293. }
  15294. }
  15295. },
  15296. beforeUpload2(event, type) {
  15297. var file = event.target.files[0];
  15298. var credentials = {
  15299. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15300. secretAccessKey: "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",
  15301. }; //秘钥形式的登录上传
  15302. window.AWS.config.update(credentials);
  15303. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15304. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  15305. var _this = this;
  15306. _this.progress = 0;
  15307. _this.proVisible = true;
  15308. if (file) {
  15309. var params = {
  15310. Key:
  15311. file.name.split(".")[0] +
  15312. new Date().getTime() +
  15313. "." +
  15314. file.name.split(".")[file.name.split(".").length - 1],
  15315. ContentType: file.type,
  15316. Body: file,
  15317. "Access-Control-Allow-Credentials": "*",
  15318. ACL: "public-read",
  15319. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  15320. var options = {
  15321. partSize: 2048 * 1024 * 1024,
  15322. queueSize: 2,
  15323. leavePartsOnError: true,
  15324. };
  15325. bucket
  15326. .upload(params, options)
  15327. .on("httpUploadProgress", function (evt) {
  15328. //这里可以写进度条
  15329. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  15330. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  15331. })
  15332. .send(function (err, data) {
  15333. _this.progress = 100;
  15334. setTimeout(() => {
  15335. _this.proVisible = false;
  15336. }, 1000);
  15337. if (err) {
  15338. var a = _this.$refs.upload1.uploadFiles;
  15339. a.splice(a.length - 1, a.length);
  15340. _this.$message.error("上传失败");
  15341. } else {
  15342. if (type == 2) {
  15343. _this.studyJuri[0].upVedio.push({
  15344. name: file.name,
  15345. url: data.Location,
  15346. uid: file.uid,
  15347. });
  15348. _this.imgChange(null, null, type);
  15349. } else if (type == 3) {
  15350. _this.studyJuri[0].upFile.push({
  15351. name: file.name,
  15352. url: data.Location,
  15353. uid: file.uid,
  15354. });
  15355. _this.imgChange(null, null, type);
  15356. }
  15357. console.log(data.Location);
  15358. }
  15359. });
  15360. }
  15361. },
  15362. allScrell() {
  15363. window.parent.postMessage({ allScreen: this.screenType }, "*");
  15364. },
  15365. nextOrpreSteps(t) {
  15366. if (this.IsFollow && this.tType == 2) {
  15367. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15368. return;
  15369. }
  15370. var b = this.chapInfoList.length - 1;
  15371. if (t == 0) {
  15372. if (this.courseType == 0) {
  15373. if (this.taskCount == 0) {
  15374. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  15375. if (this.IsLookOpen) {
  15376. if (
  15377. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  15378. ) {
  15379. if (
  15380. this.courseDetail.userid != this.userid &&
  15381. this.courseDetail.course_teacher &&
  15382. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15383. ) {
  15384. this.$message.error("任务未解锁");
  15385. } else {
  15386. this.$message.error("上一任务未解锁");
  15387. }
  15388. return;
  15389. }
  15390. }
  15391. this.navList[this.courseType].isOpen = false;
  15392. this.courseType = b;
  15393. this.taskCount =
  15394. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15395. .length - 1;
  15396. this.navList[this.courseType].isOpen = true;
  15397. } else {
  15398. this.taskCount--;
  15399. }
  15400. } else {
  15401. if (this.taskCount == 0) {
  15402. this.navList[this.courseType].isOpen = false;
  15403. this.courseType--;
  15404. this.taskCount =
  15405. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  15406. .length - 1;
  15407. this.navList[this.courseType].isOpen = true;
  15408. } else {
  15409. this.taskCount--;
  15410. }
  15411. }
  15412. } else {
  15413. if (this.courseType == b) {
  15414. if (
  15415. this.taskCount ==
  15416. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15417. 1
  15418. ) {
  15419. this.navList[this.courseType].isOpen = false;
  15420. this.courseType = 0;
  15421. this.taskCount = 0;
  15422. this.navList[this.courseType].isOpen = true;
  15423. } else {
  15424. var bbb = parseInt(this.taskCount) + 1;
  15425. if (
  15426. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15427. .isLook &&
  15428. this.courseDetail.userid != this.userid &&
  15429. this.courseDetail.course_teacher &&
  15430. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15431. this.IsLookOpen
  15432. ) {
  15433. this.$message.error("任务未解锁");
  15434. return;
  15435. }
  15436. this.taskCount++;
  15437. if (this.IsLookOpen) {
  15438. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15439. this.taskCount
  15440. ].isLook = true;
  15441. this.addCourseState(3);
  15442. }
  15443. }
  15444. } else {
  15445. if (
  15446. this.taskCount ==
  15447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  15448. 1
  15449. ) {
  15450. var bbb = parseInt(this.courseType) + 1;
  15451. if (
  15452. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  15453. this.courseDetail.userid != this.userid &&
  15454. this.courseDetail.course_teacher &&
  15455. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15456. this.IsLookOpen
  15457. ) {
  15458. this.$message.error("任务未解锁");
  15459. return;
  15460. }
  15461. this.navList[this.courseType].isOpen = false;
  15462. this.courseType++;
  15463. this.taskCount = 0;
  15464. this.navList[this.courseType].isOpen = true;
  15465. } else {
  15466. var bbb = parseInt(this.taskCount) + 1;
  15467. if (
  15468. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  15469. .isLook &&
  15470. this.courseDetail.userid != this.userid &&
  15471. this.courseDetail.course_teacher &&
  15472. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  15473. this.IsLookOpen
  15474. ) {
  15475. this.$message.error("任务未解锁");
  15476. return;
  15477. }
  15478. this.taskCount++;
  15479. }
  15480. if (this.IsLookOpen) {
  15481. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15482. this.taskCount
  15483. ].isLook = true;
  15484. this.addCourseState(3);
  15485. }
  15486. }
  15487. // if (
  15488. // this.taskCount ==
  15489. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  15490. // ) {
  15491. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  15492. // } else {
  15493. // this.taskCount++;
  15494. // }
  15495. }
  15496. document.scrollingElement.scrollTop = 0;
  15497. this.showType = 0;
  15498. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15499. // if (this.vedio[this.taskCount].length > 0) {
  15500. // var a =
  15501. // document.getElementsByClassName("box_course")[this.taskCount]
  15502. // .offsetHeight;
  15503. // document.getElementsByClassName("vedioList")[
  15504. // this.taskCount
  15505. // ].style.height = a + "px";
  15506. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  15507. // a - 40 + "px";
  15508. // }
  15509. this.isNoHomeWork = false;
  15510. (this.studyJuri = [
  15511. {
  15512. content: "",
  15513. cover: [],
  15514. upVedio: [],
  15515. upFile: [],
  15516. },
  15517. ]),
  15518. (this.radio = []);
  15519. this.isClickNav = "";
  15520. this.selectPz();
  15521. this.getHomeWork();
  15522. this.getCourseDetail(2);
  15523. this.$forceUpdate();
  15524. },
  15525. openTask(s, n, i) {
  15526. if (this.IsFollow && this.tType == 2) {
  15527. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15528. return;
  15529. }
  15530. if (this.IsLookOpen) {
  15531. if (
  15532. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  15533. this.courseDetail.userid != this.userid &&
  15534. this.courseDetail.course_teacher &&
  15535. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  15536. ) {
  15537. this.$message.error("任务未解锁");
  15538. return;
  15539. }
  15540. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  15541. if (
  15542. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  15543. .isLook
  15544. ) {
  15545. this.$message.error("上一任务未解锁");
  15546. return;
  15547. }
  15548. } else if (s > this.courseType) {
  15549. if (n > 0) {
  15550. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  15551. this.$message.error("上一任务未解锁");
  15552. return;
  15553. }
  15554. } else {
  15555. if (
  15556. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  15557. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  15558. ].isLook
  15559. ) {
  15560. this.$message.error("上一任务未解锁");
  15561. return;
  15562. }
  15563. }
  15564. }
  15565. }
  15566. if (this.navList[s].task[n].isOpen == true) {
  15567. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  15568. return;
  15569. }
  15570. this.courseType = s;
  15571. this.navId = i;
  15572. this.taskCount = n;
  15573. this.navList[this.courseType].task[this.taskCount].isOpen =
  15574. !this.navList[this.courseType].task[this.taskCount].isOpen;
  15575. if (this.IsLookOpen) {
  15576. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15577. this.taskCount
  15578. ].isLook = true;
  15579. this.addCourseState(3);
  15580. }
  15581. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  15582. this.isCloseList[ci].isClose = 0;
  15583. this.isCloseList[ci].isCloseBoolean = false;
  15584. this.$nextTick(()=>{
  15585. setTimeout(()=>{
  15586. setTimeout(()=>{
  15587. this.panToolHeight('tool-'+ci);
  15588. }, 0)
  15589. }, 0)
  15590. })
  15591. }
  15592. this.showType = 0;
  15593. this.isNoHomeWork = false;
  15594. (this.studyJuri = [
  15595. {
  15596. content: "",
  15597. cover: [],
  15598. upVedio: [],
  15599. upFile: [],
  15600. },
  15601. ]),
  15602. (this.radio = []);
  15603. document.scrollingElement.scrollTop = 0;
  15604. // setTimeout(() => {
  15605. // let a = document.getElementById(i);
  15606. // if (a.offsetTop - 110 == 0) {
  15607. // window.scrollTo(0, 0);
  15608. // } else {
  15609. // window.scrollTo(0, a.offsetTop);
  15610. // }
  15611. // }, 0);
  15612. for (var z = 0; z < this.navList.length; z++) {
  15613. for (var q = 0; q < this.navList[z].task.length; q++) {
  15614. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  15615. this.navList[z].task[q].tool[w].isTool = false;
  15616. }
  15617. }
  15618. }
  15619. this.selectPz();
  15620. this.getHomeWork();
  15621. this.getCourseDetail(2);
  15622. },
  15623. get(i) {
  15624. if (this.IsFollow && this.tType == 2) {
  15625. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  15626. return;
  15627. }
  15628. // for(var k=0;k<this.navList.length;k++){
  15629. // this.navList[k].isOpen = false;
  15630. // }
  15631. // this.navList[i].isOpen = true;
  15632. this.navList[i].isOpen = !this.navList[i].isOpen;
  15633. if (this.navList[i].isOpen) {
  15634. this.openTask(i, 0, i + "-0");
  15635. }
  15636. },
  15637. addQuestion() {
  15638. this.answerList.push({
  15639. answerTitle: this.answerQ,
  15640. answer: this.questionAnswer,
  15641. });
  15642. let params = [
  15643. {
  15644. uid: this.userid,
  15645. cid: this.id,
  15646. stage: this.courseType,
  15647. task: this.taskCount,
  15648. tool: this.toolindex,
  15649. content: JSON.stringify(this.answerList),
  15650. type: 3,
  15651. },
  15652. ];
  15653. this.ajax
  15654. .post(this.$store.state.api + "addCourseWorks", params)
  15655. .then((res) => {
  15656. this.$message({
  15657. message: "提交成功",
  15658. type: "success",
  15659. });
  15660. this.answerList = [];
  15661. this.answerDialogVisible = false;
  15662. this.selectStudent();
  15663. this.selectSWorks();
  15664. this.selectSLook();
  15665. })
  15666. .catch((err) => {
  15667. this.$message.error("提交失败");
  15668. console.error(err);
  15669. });
  15670. },
  15671. addQuestionTeacher() {
  15672. this.answerList.push({
  15673. answerTitle: this.answerQ,
  15674. answer: this.questionAnswer,
  15675. });
  15676. let params = [
  15677. {
  15678. uid: this.sStudent.userid,
  15679. cid: this.id,
  15680. stage: this.courseType,
  15681. task: this.taskCount,
  15682. tool: this.toolindex,
  15683. content: JSON.stringify(this.answerList),
  15684. type: 3,
  15685. ateacher: this.userid,
  15686. },
  15687. ];
  15688. this.ajax
  15689. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15690. .then((res) => {
  15691. this.$message({
  15692. message: "提交成功",
  15693. type: "success",
  15694. });
  15695. this.answerList = [];
  15696. this.questionAnswer = "";
  15697. this.answerDialogVisibleTeacher = false;
  15698. this.selectStudent();
  15699. this.selectSWorks();
  15700. this.selectSLook();
  15701. })
  15702. .catch((err) => {
  15703. this.$message.error("提交失败");
  15704. console.error(err);
  15705. });
  15706. },
  15707. refreshCourse() {
  15708. // window.location.reload();
  15709. this.navList = [];
  15710. this.getCourseDetail(1);
  15711. },
  15712. getCourseDetail(type, gindex) {
  15713. let loading;
  15714. if (type != 2) {
  15715. loading = this.$loading.service({
  15716. background: "rgba(255, 255, 255, 0.7)",
  15717. target: document.querySelector(".student_table"),
  15718. });
  15719. }
  15720. this.downLoading = false
  15721. // this.navList[0].isOpen = false;
  15722. // this.navList[this.courseType].isOpen = true;
  15723. // this.courseType = this.courseTypeLine;
  15724. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  15725. let params = {
  15726. courseId: this.id,
  15727. };
  15728. this.ajax
  15729. .get(this.$store.state.api + "selectTrainCourseDetail3", params)
  15730. .then((res) => {
  15731. if (type != 2) {
  15732. loading.close();
  15733. if (
  15734. this.courseType >
  15735. JSON.parse(res.data[0][0].chapters).length - 1
  15736. ) {
  15737. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  15738. }
  15739. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15740. .chapterInfo[0].taskJson;
  15741. var b = [
  15742. "AVI",
  15743. "NAVI",
  15744. "MPEG",
  15745. "ASF",
  15746. "MOV",
  15747. "WMV",
  15748. "3GP",
  15749. "RM",
  15750. "RMVB",
  15751. "FLV",
  15752. "F4V",
  15753. "H.264",
  15754. "H.265",
  15755. "REAL VIDEO",
  15756. "MKV",
  15757. "WebM",
  15758. "HDDVD",
  15759. "MP4",
  15760. "MPG",
  15761. "M4V",
  15762. "MGV",
  15763. "OGV",
  15764. "QTM",
  15765. "STR",
  15766. "AMC",
  15767. "DVX",
  15768. "EVO",
  15769. "DAT",
  15770. "OGG",
  15771. "OGM",
  15772. "MP3",
  15773. ];
  15774. let _chapterData = [];
  15775. for (var i = 0; i < a.length; i++) {
  15776. var c = a[i].chapterData;
  15777. this.vedio[i] = [];
  15778. this.textList[i] = [];
  15779. this.lineList[i] = [];
  15780. this.chapToolList[i] = [];
  15781. this.file[i] = [];
  15782. this.fileC[i] = [];
  15783. _chapterData[i] = c.filter((el) => {
  15784. return el.type != 12;
  15785. });
  15786. this.fileC[i] = c.filter((el) => {
  15787. return el.type == 12;
  15788. });
  15789. // else if (c[j].type == 12) {
  15790. // this.fileC[i].push(c[j]);
  15791. // }
  15792. for (var j = 0; j < c.length; j++) {
  15793. if (c[j].type == 7) {
  15794. this.chapToolList[i].push(c[j]);
  15795. } else if (c[j].type == 8 || c[j].type == 14) {
  15796. this.lineList[i].push(c[j]);
  15797. } else if (c[j].type == 6) {
  15798. this.textList[i].push(c[j]);
  15799. } else {
  15800. if (
  15801. b.indexOf(
  15802. c[j].url
  15803. .split(".")
  15804. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15805. ) != -1
  15806. ) {
  15807. this.vedio[i].push(c[j]);
  15808. } else {
  15809. this.file[i].push(c[j]);
  15810. }
  15811. }
  15812. }
  15813. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15814. d.sources[0].src =
  15815. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15816. this.playerO[i] = d;
  15817. }
  15818. this.courseDetail = res.data[0][0];
  15819. this.tcid = this.arrayToArray(
  15820. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  15821. this.tcid2 ? this.tcid2.split(",") : []
  15822. ).join(",");
  15823. this.evalua = res.data[0][0].evaId;
  15824. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  15825. this.courseType
  15826. ];
  15827. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  15828. if (this.tcid && res.data[1].length) {
  15829. let _inviteA = [];
  15830. for (var ik = 0; ik < res.data[1].length; ik++) {
  15831. _inviteA.push({
  15832. cid: res.data[1][ik].classid,
  15833. ic: res.data[1][ik].code,
  15834. });
  15835. }
  15836. for (var ik = 0; ik < _inviteA.length; ik++) {
  15837. if (
  15838. this.arrayToArray(
  15839. _inviteA[ik].cid.split(","),
  15840. this.tcid.split(",")
  15841. ).length
  15842. ) {
  15843. this.inviteCode = _inviteA[ik].ic;
  15844. break;
  15845. }
  15846. }
  15847. }
  15848. for (var l = 0; l < this.chapInfoList.length; l++) {
  15849. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  15850. for (var m = 0; m < w.length; m++) {
  15851. w[m].id = l + "-" + m;
  15852. }
  15853. }
  15854. if (
  15855. _chapterData[this.taskCount].length &&
  15856. _chapterData[this.taskCount][0].type == 2
  15857. ) {
  15858. this.showType = 0;
  15859. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  15860. } else {
  15861. if (_chapterData[this.taskCount].length > 0) {
  15862. let _url = _chapterData[this.taskCount][0].url;
  15863. if (
  15864. _chapterData[this.taskCount][0].type == 8 ||
  15865. _chapterData[this.taskCount][0].type == 14
  15866. ) {
  15867. this.showType = 2;
  15868. if (
  15869. _url.indexOf("https://") == -1 &&
  15870. _url.indexOf("http://") == -1
  15871. ) {
  15872. _url = "https://" + _url;
  15873. }
  15874. this.pptImgUrl1 = _url;
  15875. } else if (_chapterData[this.taskCount][0].type == 3) {
  15876. if (
  15877. _url
  15878. .split(".")
  15879. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15880. ) {
  15881. this.showType = 3;
  15882. this.pptImgUrl1 = _url;
  15883. } else if (
  15884. this.isAssetTypeAnImage(
  15885. _url
  15886. .split(".")
  15887. [_url.split(".").length - 1].toLocaleLowerCase()
  15888. )
  15889. ) {
  15890. this.showType = 4;
  15891. this.pptImgUrl1 = _url;
  15892. } else {
  15893. this.showType = 2;
  15894. this.pptImgUrl1 =
  15895. "https://view.officeapps.live.com/op/view.aspx?src=" +
  15896. encodeURIComponent(_url);
  15897. }
  15898. } else if (_chapterData[this.taskCount][0].type == 13) {
  15899. this.showType = 4;
  15900. this.pptImgUrl1 = _url;
  15901. } else if (_chapterData[this.taskCount][0].type == 6) {
  15902. this.showType = 1;
  15903. this.text = this.textList[this.taskCount][0];
  15904. }
  15905. }
  15906. }
  15907. this.isClickNav = 0;
  15908. if (
  15909. !_chapterData[this.taskCount].length ||
  15910. _chapterData[this.taskCount][0].type == 12
  15911. ) {
  15912. this.isClickNav = "";
  15913. this.showType = "";
  15914. }
  15915. this.vChapterData = _chapterData;
  15916. } else {
  15917. this.showType = 0;
  15918. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  15919. .chapterInfo[0].taskJson;
  15920. var b = [
  15921. "AVI",
  15922. "NAVI",
  15923. "MPEG",
  15924. "ASF",
  15925. "MOV",
  15926. "WMV",
  15927. "3GP",
  15928. "RM",
  15929. "RMVB",
  15930. "FLV",
  15931. "F4V",
  15932. "H.264",
  15933. "H.265",
  15934. "REAL VIDEO",
  15935. "MKV",
  15936. "WebM",
  15937. "HDDVD",
  15938. "MP4",
  15939. "MPG",
  15940. "M4V",
  15941. "MGV",
  15942. "OGV",
  15943. "QTM",
  15944. "STR",
  15945. "AMC",
  15946. "DVX",
  15947. "EVO",
  15948. "DAT",
  15949. "OGG",
  15950. "OGM",
  15951. "MP3",
  15952. ];
  15953. let _chapterData = [];
  15954. for (var i = 0; i < a.length; i++) {
  15955. var c = a[i].chapterData;
  15956. this.vedio[i] = [];
  15957. this.textList[i] = [];
  15958. this.lineList[i] = [];
  15959. this.chapToolList[i] = [];
  15960. this.file[i] = [];
  15961. this.fileC[i] = [];
  15962. _chapterData[i] = c.filter((el) => {
  15963. return el.type != 12;
  15964. });
  15965. this.fileC[i] = c.filter((el) => {
  15966. return el.type == 12;
  15967. });
  15968. for (var j = 0; j < c.length; j++) {
  15969. if (c[j].type == 7) {
  15970. this.chapToolList[i].push(c[j]);
  15971. } else if (c[j].type == 8 || c[j].type == 14) {
  15972. this.lineList[i].push(c[j]);
  15973. } else if (c[j].type == 6) {
  15974. this.textList[i].push(c[j]);
  15975. } else {
  15976. if (
  15977. b.indexOf(
  15978. c[j].url
  15979. .split(".")
  15980. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  15981. ) != -1
  15982. ) {
  15983. this.vedio[i].push(c[j]);
  15984. } else {
  15985. this.file[i].push(c[j]);
  15986. }
  15987. }
  15988. }
  15989. var d = JSON.parse(JSON.stringify(this.playerOptions));
  15990. d.sources[0].src =
  15991. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  15992. this.playerO[i] = d;
  15993. }
  15994. if (
  15995. _chapterData[this.taskCount].length &&
  15996. _chapterData[this.taskCount][0].type == 2
  15997. ) {
  15998. this.showType = 0;
  15999. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  16000. } else {
  16001. if (_chapterData[this.taskCount].length > 0) {
  16002. let _url = _chapterData[this.taskCount][0].url;
  16003. if (
  16004. _chapterData[this.taskCount][0].type == 8 ||
  16005. _chapterData[this.taskCount][0].type == 14
  16006. ) {
  16007. this.showType = 2;
  16008. if (
  16009. _url.indexOf("https://") == -1 &&
  16010. _url.indexOf("http://") == -1
  16011. ) {
  16012. _url = "https://" + _url;
  16013. }
  16014. this.pptImgUrl1 = _url;
  16015. } else if (_chapterData[this.taskCount][0].type == 3) {
  16016. if (
  16017. _url
  16018. .split(".")
  16019. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16020. ) {
  16021. this.showType = 3;
  16022. this.pptImgUrl1 = _url;
  16023. } else if (
  16024. this.isAssetTypeAnImage(
  16025. _url
  16026. .split(".")
  16027. [_url.split(".").length - 1].toLocaleLowerCase()
  16028. )
  16029. ) {
  16030. this.showType = 4;
  16031. this.pptImgUrl1 = _url;
  16032. } else {
  16033. this.showType = 2;
  16034. this.pptImgUrl1 =
  16035. "https://view.officeapps.live.com/op/view.aspx?src=" +
  16036. encodeURIComponent(_url);
  16037. }
  16038. } else if (_chapterData[this.taskCount][0].type == 13) {
  16039. this.showType = 4;
  16040. this.pptImgUrl1 = _url;
  16041. } else if (_chapterData[this.taskCount][0].type == 6) {
  16042. this.showType = 1;
  16043. this.text = this.textList[this.taskCount][0];
  16044. }
  16045. }
  16046. }
  16047. this.isClickNav = 0;
  16048. if (
  16049. !_chapterData[this.taskCount].length ||
  16050. _chapterData[this.taskCount][0].type == 12
  16051. ) {
  16052. this.isClickNav = "";
  16053. this.showType = "";
  16054. }
  16055. this.vChapterData = _chapterData;
  16056. this.$forceUpdate();
  16057. }
  16058. // else {
  16059. // this.courseDetail = res.data[0][0];
  16060. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  16061. // }
  16062. let _this = this;
  16063. if (_this.timer) {
  16064. clearInterval(_this.timer);
  16065. _this.timer = null;
  16066. }
  16067. if (_this.tcid) {
  16068. _this.getCourseGroup(gindex);
  16069. } else {
  16070. _this.selectSWorks(gindex);
  16071. }
  16072. _this.selectStudent();
  16073. _this.selectSLook();
  16074. _this.getPick();
  16075. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16076. _this.setCTask();
  16077. }
  16078. if (_this.dialogVisibleGroup) {
  16079. _this.groupJson =
  16080. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16081. _this.taskCount
  16082. ].toolChoose[_this.toolindex].groupJson;
  16083. }
  16084. _this.$nextTick(() => {
  16085. setTimeout(() => {
  16086. _this.checkEva();
  16087. }, 1000);
  16088. });
  16089. _this.timer = setInterval(function () {
  16090. // _this.getCourseDetail(2);
  16091. if (_this.tcid) {
  16092. _this.getCourseGroup(gindex);
  16093. } else {
  16094. _this.selectSWorks(gindex);
  16095. }
  16096. _this.selectStudent();
  16097. _this.selectSLook();
  16098. _this.getPick();
  16099. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  16100. _this.setCTask();
  16101. }
  16102. if (_this.dialogVisibleGroup) {
  16103. _this.groupJson =
  16104. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  16105. _this.taskCount
  16106. ].toolChoose[_this.toolindex].groupJson;
  16107. }
  16108. if (_this.tType == 4 || _this.ispzType == 4) {
  16109. _this.selectPz();
  16110. }
  16111. }, 5000);
  16112. _this.$nextTick(function () {
  16113. setTimeout(() => {
  16114. // var a =
  16115. // document.getElementsByClassName("box_course")[0].offsetHeight;
  16116. // document.getElementsByClassName("vedioList")[0].style.height =
  16117. // a + "px";
  16118. // document.getElementsByClassName("navBox")[0].style.height =
  16119. // a - 40 + "px";
  16120. // if (_this.vedio[_this.taskCount].length > 0) {
  16121. // _this.vedioTime = [];
  16122. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  16123. // _this.vedioTime[i] = document.getElementsByClassName(
  16124. // "vjs-duration-display"
  16125. // )[i].textContent;
  16126. // }
  16127. // }
  16128. }, 1000);
  16129. });
  16130. })
  16131. .catch((err) => {
  16132. loading.close();
  16133. console.error(err);
  16134. });
  16135. },
  16136. getCourseGroup(gindex) {
  16137. let params = {
  16138. cid: this.id,
  16139. classid: this.tcid ? this.tcid : "1",
  16140. };
  16141. this.ajax
  16142. .get(this.$store.state.api + "getCourseGroup", params)
  16143. .then((res) => {
  16144. if (res.data && res.data[0].length) {
  16145. if (!this.isGroup) {
  16146. let courseGroup = JSON.parse(res.data[0][0].group);
  16147. courseGroup.group = courseGroup.group.filter((el) => {
  16148. el.works = [];
  16149. return el;
  16150. });
  16151. if (courseGroup.isopen == 2) {
  16152. this.isGroup = false;
  16153. this.selectSWorks(gindex);
  16154. return;
  16155. }
  16156. this.courseGroup = courseGroup;
  16157. let groupPerson = res.data[1];
  16158. let group = JSON.parse(res.data[0][0].group).group;
  16159. let courseGroupStudent = {};
  16160. let courseGroupStudentUid = {};
  16161. for (var i = 0; i < group.length; i++) {
  16162. courseGroupStudent[group[i].id] = [];
  16163. courseGroupStudentUid[group[i].id] = [];
  16164. for (var j = 0; j < groupPerson.length; j++) {
  16165. if (groupPerson[j].groupCid == group[i].id) {
  16166. courseGroupStudent[group[i].id].push(groupPerson[j]);
  16167. courseGroupStudentUid[group[i].id].push(
  16168. groupPerson[j].userid
  16169. );
  16170. }
  16171. }
  16172. }
  16173. this.courseGroupStudent = courseGroupStudent;
  16174. this.courseGroupStudentUid = courseGroupStudentUid;
  16175. }
  16176. if (this.courseGroup.isopen == 2) {
  16177. this.isGroup = false;
  16178. } else {
  16179. this.isGroup = true;
  16180. }
  16181. this.selectSWorks(gindex);
  16182. } else {
  16183. this.selectSWorks(gindex);
  16184. this.isGroup = false;
  16185. }
  16186. })
  16187. .catch((err) => {
  16188. // this.$message.error("网络不佳");
  16189. console.error(err);
  16190. });
  16191. },
  16192. setOperationTime() {
  16193. let _this = this;
  16194. if (_this.opertimer) {
  16195. clearInterval(_this.opertimer);
  16196. _this.opertimer = null;
  16197. }
  16198. _this.opertimer = setInterval(() => {
  16199. _this.setoTime("600");
  16200. }, 600000);
  16201. },
  16202. setoTime(time) {
  16203. let params = [
  16204. {
  16205. uid: this.userid,
  16206. cid: this.id,
  16207. type: "2",
  16208. time: time,
  16209. },
  16210. ];
  16211. this.ajax
  16212. .post(this.$store.state.api + "addOperationTimeT2", params)
  16213. .then((res) => {})
  16214. .catch((err) => {
  16215. console.error(err);
  16216. });
  16217. },
  16218. addPz(type, content) {
  16219. if (type == "1" && this.pzConText == "") {
  16220. this.$message.error("评论不能为空!");
  16221. return;
  16222. }
  16223. let params = [
  16224. {
  16225. cid: this.id,
  16226. uid: this.userid,
  16227. s: this.courseType,
  16228. t: this.taskCount,
  16229. c: type == "1" ? this.pzConText : content,
  16230. type: type,
  16231. },
  16232. ];
  16233. this.ajax
  16234. .post(this.$store.state.api + "addPz2", params)
  16235. .then((res) => {
  16236. this.$message({
  16237. message: "添加成功",
  16238. type: "success",
  16239. });
  16240. this.pzConText = "";
  16241. this.addPzDialog = false;
  16242. this.selectPz();
  16243. })
  16244. .catch((err) => {
  16245. this.$message.error("添加失败");
  16246. console.error(err);
  16247. });
  16248. },
  16249. setReplyIndex(id, i) {
  16250. this.replyIndex = i;
  16251. this.replyPid = id;
  16252. this.replyDialogVisible = true;
  16253. },
  16254. addHf() {
  16255. if (this.reply == "") {
  16256. this.$message.error("回复不能为空!");
  16257. return;
  16258. }
  16259. let params = [
  16260. {
  16261. cid: this.id,
  16262. uid: this.userid,
  16263. s: this.courseType,
  16264. t: this.taskCount,
  16265. type: "1",
  16266. ct: 2,
  16267. pid: this.replyPid,
  16268. c: this.reply,
  16269. },
  16270. ];
  16271. this.ajax
  16272. .post(this.$store.state.api + "addHf", params)
  16273. .then((res) => {
  16274. this.reply = "";
  16275. this.$message({
  16276. message: "回复成功",
  16277. type: "success",
  16278. });
  16279. this.replyDialogVisible = false;
  16280. this.selectPz();
  16281. })
  16282. .catch((err) => {
  16283. this.$message.error("回复失败");
  16284. console.error(err);
  16285. });
  16286. },
  16287. deletePz(id) {
  16288. this.$confirm("确定删除此评论吗?", "提示", {
  16289. confirmButtonText: "确定",
  16290. cancelButtonText: "取消",
  16291. type: "warning",
  16292. })
  16293. .then(() => {
  16294. let params = [
  16295. {
  16296. id: id,
  16297. },
  16298. ];
  16299. this.ajax
  16300. .post(this.$store.state.api + "deletePz", params)
  16301. .then((res) => {
  16302. this.$message({
  16303. message: "删除成功",
  16304. type: "success",
  16305. });
  16306. this.selectPz();
  16307. })
  16308. .catch((err) => {
  16309. this.$message.error("网络异常");
  16310. console.error(err);
  16311. });
  16312. })
  16313. .catch(() => {});
  16314. },
  16315. deleteReply(id) {
  16316. this.$confirm("确定删除此回复吗?", "提示", {
  16317. confirmButtonText: "确定",
  16318. cancelButtonText: "取消",
  16319. type: "warning",
  16320. })
  16321. .then(() => {
  16322. let params = [
  16323. {
  16324. id: id,
  16325. },
  16326. ];
  16327. this.ajax
  16328. .post(this.$store.state.api + "deleteReply", params)
  16329. .then((res) => {
  16330. this.$message({
  16331. message: "删除成功",
  16332. type: "success",
  16333. });
  16334. this.selectPz();
  16335. })
  16336. .catch((err) => {
  16337. this.$message.error("网络异常");
  16338. console.error(err);
  16339. });
  16340. })
  16341. .catch(() => {});
  16342. },
  16343. setPz() {
  16344. if (this.ispzType == 4) {
  16345. this.ispzType = 0;
  16346. this.pzDialog = false;
  16347. return;
  16348. }
  16349. this.ispzType = 4;
  16350. this.pzDialog = true;
  16351. this.selectPz();
  16352. },
  16353. selectPz() {
  16354. let params = {
  16355. cid: this.id,
  16356. s: this.courseType,
  16357. t: this.taskCount,
  16358. type: this.pzStype,
  16359. uid: this.userid,
  16360. };
  16361. this.ajax
  16362. .get(this.$store.state.api + "selectPzListType", params)
  16363. .then((res) => {
  16364. this.pzList = res.data[0];
  16365. var a = res.data[1];
  16366. for (var i = 0; i < a.length; i++) {
  16367. for (var j = 0; j < this.pzList.length; j++) {
  16368. if (!this.pzList[j].hfList) {
  16369. this.pzList[j].hfList = [];
  16370. }
  16371. if (a[i].pid == this.pzList[j].id) {
  16372. this.pzList[j].hfList.push(a[i]);
  16373. }
  16374. }
  16375. }
  16376. })
  16377. .catch((err) => {
  16378. console.error(err);
  16379. });
  16380. },
  16381. // selectHf() {
  16382. // let params = {
  16383. // cid: this.id,
  16384. // s: this.courseType,
  16385. // t: this.taskCount,
  16386. // };
  16387. // this.ajax
  16388. // .get(this.$store.state.api + "selectHfList", params)
  16389. // .then((res) => {
  16390. // var a = res.data[0];
  16391. // for (var i = 0; i < a.length; i++) {
  16392. // for (var j = 0; j < this.pzList.length; j++) {
  16393. // if (!this.pzList[i].hfList) {
  16394. // this.pzList[i].hfList = [];
  16395. // }
  16396. // if (a[i].pid == this.pzList[j].id) {
  16397. // this.pzList[i].hfList.push(a[i]);
  16398. // }
  16399. // }
  16400. // }
  16401. // })
  16402. // .catch((err) => {
  16403. // console.error(err);
  16404. // });
  16405. // },
  16406. updateSLook() {
  16407. let params = {
  16408. sopen: this.sIsOpen == false ? 1 : 2,
  16409. cid: this.id,
  16410. };
  16411. this.ajax
  16412. .get(this.$store.state.api + "updateTrainCourseSLook", params)
  16413. .then((res) => {
  16414. if (this.sIsOpen == true) {
  16415. this.$message({
  16416. message: "权限设置成功",
  16417. type: "success",
  16418. });
  16419. } else {
  16420. this.$message({
  16421. message: "权限关闭成功",
  16422. type: "success",
  16423. });
  16424. }
  16425. })
  16426. .catch((err) => {
  16427. console.error(err);
  16428. });
  16429. },
  16430. updateFollow() {
  16431. let params = [
  16432. {
  16433. sopen: this.IsFollow == false ? 1 : 2,
  16434. cid: this.id,
  16435. },
  16436. ];
  16437. this.ajax
  16438. .post(this.$store.state.api + "updateTrainCourseFollow", params)
  16439. .then((res) => {
  16440. if (this.IsFollow == true) {
  16441. this.$message({
  16442. message: "开启成功",
  16443. type: "success",
  16444. });
  16445. } else {
  16446. this.$message({
  16447. message: "关闭成功",
  16448. type: "success",
  16449. });
  16450. }
  16451. this.setCTask();
  16452. })
  16453. .catch((err) => {
  16454. console.error(err);
  16455. });
  16456. },
  16457. setCTask() {
  16458. let params = [
  16459. {
  16460. sopen: this.courseType + "-" + this.taskCount,
  16461. cid: this.id,
  16462. },
  16463. ];
  16464. this.ajax
  16465. .post(this.$store.state.api + "updateTrainCourseFollowC", params)
  16466. .then((res) => {})
  16467. .catch((err) => {
  16468. console.error(err);
  16469. });
  16470. },
  16471. updateLookOpen() {
  16472. let params = [
  16473. {
  16474. sopen: this.IsLookOpen == false ? 1 : 2,
  16475. cid: this.id,
  16476. },
  16477. ];
  16478. this.ajax
  16479. .post(this.$store.state.api + "updateTrainCourseLookOpen", params)
  16480. .then((res) => {
  16481. if (this.IsLookOpen == true) {
  16482. // if (this.courseType != 0 && this.taskCount != 0) {
  16483. // this.openTask(0, 0, "0-0");
  16484. // }
  16485. this.$message({
  16486. message: "权限设置成功",
  16487. type: "success",
  16488. });
  16489. } else {
  16490. this.$message({
  16491. message: "权限关闭成功",
  16492. type: "success",
  16493. });
  16494. }
  16495. this.getCourseState(2);
  16496. })
  16497. .catch((err) => {
  16498. console.error(err);
  16499. });
  16500. },
  16501. selectSLook() {
  16502. let params = {
  16503. cid: this.id,
  16504. };
  16505. this.ajax
  16506. .get(this.$store.state.api + "selectTrainCourseSLook", params)
  16507. .then((res) => {
  16508. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  16509. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  16510. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  16511. if (!this.IsLookOpen) {
  16512. this.setNavList();
  16513. } else {
  16514. this.getCourseState(1);
  16515. }
  16516. if (this.IsFollow && this.tType == 2) {
  16517. this.setContent2(false);
  16518. let _followC = res.data[0][0].followC.split("-");
  16519. if (
  16520. this.courseType != _followC[0] ||
  16521. this.taskCount != _followC[1]
  16522. ) {
  16523. this.navList[this.courseType].isOpen = false;
  16524. this.courseType = _followC[0];
  16525. this.navList[this.courseType].isOpen = true;
  16526. this.taskCount = parseInt(_followC[1]);
  16527. this.navId = res.data[0][0].followC;
  16528. document.scrollingElement.scrollTop = 0;
  16529. this.getCourseDetail(2);
  16530. }
  16531. }
  16532. })
  16533. .catch((err) => {
  16534. console.error(err);
  16535. });
  16536. },
  16537. setNavList() {
  16538. if (this.navList.length == 0) {
  16539. this.navList = [];
  16540. var copyList = [];
  16541. for (var l = 0; l < this.chapInfoList.length; l++) {
  16542. var q = this.chapInfoList[l].dyName;
  16543. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16544. var e;
  16545. copyList.push({
  16546. dyName: q,
  16547. isOpen: l === 0 ? true : false,
  16548. task: [],
  16549. });
  16550. for (var r = 0; r < w.length; r++) {
  16551. e = w[r].task;
  16552. if (this.chapInfoList[l].easy == 1) {
  16553. copyList[l].task.push({
  16554. taskName: q,
  16555. id: l + "-" + r,
  16556. isLook: w[r].isLook,
  16557. isOpen: r === 0 ? true : false,
  16558. tool: [],
  16559. });
  16560. } else {
  16561. copyList[l].task.push({
  16562. taskName: e,
  16563. id: l + "-" + r,
  16564. isLook: w[r].isLook,
  16565. isOpen: r === 0 ? true : false,
  16566. tool: [],
  16567. });
  16568. }
  16569. var t = w[r].toolChoose;
  16570. for (var k = 0; k < t.length; k++) {
  16571. var tool = t[k].tool[0];
  16572. copyList[l].task[r].tool.push({
  16573. tool: tool,
  16574. isTool: false,
  16575. });
  16576. }
  16577. // this.navId = this.navId ? this.navId : l + "-" + r;
  16578. // this.navId = l + "-" + r;
  16579. }
  16580. }
  16581. this.navList = copyList;
  16582. this.navList[0].isOpen = false;
  16583. this.navList[this.courseType].isOpen = true;
  16584. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  16585. } else {
  16586. this.setNavList2();
  16587. }
  16588. },
  16589. setNavList2() {
  16590. for (var l = 0; l < this.chapInfoList.length; l++) {
  16591. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  16592. for (var r = 0; r < w.length; r++) {
  16593. this.navList[l].task[r].isLook = w[r].isLook;
  16594. }
  16595. }
  16596. if (
  16597. this.IsLookOpen &&
  16598. !this.navList[this.courseType].task[this.taskCount].isLook
  16599. ) {
  16600. this.openTask(0, 0, "0-0");
  16601. }
  16602. this.$forceUpdate();
  16603. },
  16604. getCourseState(type) {
  16605. let params = {
  16606. cid: this.id,
  16607. };
  16608. this.ajax
  16609. .get(this.$store.state.api + "getCourseState", params)
  16610. .then((res) => {
  16611. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  16612. this.chapInfoList = JSON.parse(res.data[0][0].state);
  16613. this.setNavList();
  16614. this.$forceUpdate();
  16615. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  16616. this.addCourseState(2);
  16617. } else {
  16618. this.addCourseState(1);
  16619. }
  16620. })
  16621. .catch((err) => {
  16622. console.error(err);
  16623. });
  16624. },
  16625. addCourseState(type) {
  16626. let _state = this.chapInfoList;
  16627. // this.courseType this.taskCount
  16628. if (type == 1 || type == 2) {
  16629. for (var i = 0; i < _state.length; i++) {
  16630. let el = _state[i].chapterInfo[0].taskJson;
  16631. for (var j = 0; j < el.length; j++) {
  16632. // if (i == 0 && j == 0) {
  16633. // el[j].isLook = true;
  16634. // } else {
  16635. // el[j].isLook = false;
  16636. // }
  16637. if (
  16638. this.courseType > i ||
  16639. (this.courseType == i && this.taskCount + 1 > j)
  16640. ) {
  16641. el[j].isLook = true;
  16642. } else {
  16643. el[j].isLook = false;
  16644. }
  16645. }
  16646. }
  16647. }
  16648. let params = [
  16649. {
  16650. cid: this.id,
  16651. state: JSON.stringify(_state),
  16652. },
  16653. ];
  16654. this.ajax
  16655. .post(
  16656. this.$store.state.api +
  16657. (type == 1 ? "addCourseState" : "updateCourseSate"),
  16658. params
  16659. )
  16660. .then((res) => {
  16661. if (this.IsLookOpen) {
  16662. this.setNavList();
  16663. }
  16664. if (type == 3 && type == 2) {
  16665. this.getCourseState(1);
  16666. }
  16667. })
  16668. .catch((err) => {
  16669. console.error(err);
  16670. });
  16671. },
  16672. getHomeWork() {
  16673. let params = {
  16674. cid: this.id,
  16675. stage: this.courseType,
  16676. task: this.taskCount,
  16677. uid: this.userid,
  16678. };
  16679. this.ajax
  16680. .get(this.$store.state.api + "selectWork", params)
  16681. .then((res) => {
  16682. if (res.data[0].length > 0) {
  16683. this.studyJuri = JSON.parse(res.data[0][0].content);
  16684. this.isNoHomeWork = true;
  16685. }
  16686. })
  16687. .catch((err) => {
  16688. console.error(err);
  16689. });
  16690. },
  16691. isAssetTypeAnImage(ext) {
  16692. return (
  16693. [
  16694. "png",
  16695. "jpg",
  16696. "jpeg",
  16697. "bmp",
  16698. "gif",
  16699. "webp",
  16700. "psd",
  16701. "svg",
  16702. "tiff",
  16703. ].indexOf(ext) !== -1
  16704. );
  16705. },
  16706. switchVideo(media) {
  16707. this.playerO = {};
  16708. this.playerOptions.poster = "";
  16709. this.playerOptions.sources[0].src = media;
  16710. this.playerO = this.playerOptions;
  16711. },
  16712. onPlayerPlay() {},
  16713. onPlayerTimeupdate(player) {
  16714. let gklog = player.cache_.currentTime; //当前播放的秒数
  16715. let a = player.cache_.duration; //视频的总时长
  16716. let gklog2 = parseInt(gklog);
  16717. // if(gklog2 == '3'){
  16718. // player.pause()
  16719. // setTimeout(()=>{
  16720. // player.currentTime(gklog2+1)
  16721. // player.play()
  16722. // },1000)
  16723. // }
  16724. console.log(" onPlayerTimeupdate!", gklog);
  16725. console.log(" onPlayerTimeupdate!", gklog2);
  16726. },
  16727. lookVedio(u, i) {
  16728. this.isClickNav = "";
  16729. // this.playerOptions.sources[0].src = u;
  16730. var d = JSON.parse(JSON.stringify(this.playerOptions));
  16731. d.sources[0].src = u;
  16732. this.playerO[this.taskCount] = d;
  16733. this.showType = 0;
  16734. // this.isClickNav = "video" + i;
  16735. this.isClickNav = i;
  16736. this.$forceUpdate();
  16737. },
  16738. lookText(i, t) {
  16739. this.isClickNav = "";
  16740. // this.text = this.textList[i][t];
  16741. this.text = this.vChapterData[i][t];
  16742. // this.dialogVisible1 = true;
  16743. this.showType = 1;
  16744. // this.isClickNav = "text" + t;
  16745. this.isClickNav = t;
  16746. },
  16747. lookTools(i, t) {
  16748. this.chapTools = this.chapToolList[i][t];
  16749. this.dialogVisible2 = true;
  16750. },
  16751. openFile(f) {
  16752. this.pptImgUrl = "";
  16753. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  16754. if (
  16755. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  16756. -1
  16757. ) {
  16758. this.pptImgUrl =
  16759. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  16760. this.showPDF = false;
  16761. this.dialogVisible3 = true;
  16762. } else if (
  16763. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  16764. ) {
  16765. this.pptImgUrl = f;
  16766. this.showPDF = true;
  16767. this.dialogVisible3 = true;
  16768. }
  16769. },
  16770. openTable(f) {
  16771. this.tableJson = JSON.parse(f.works);
  16772. this.dialogVisibleTable2 = true;
  16773. },
  16774. openWord(f) {
  16775. this.tableJson = JSON.parse(f.works);
  16776. this.dialogVisibleTable3 = true;
  16777. },
  16778. doUrl(url, i) {
  16779. this.isClickNav = "";
  16780. this.pptImgUrl1 = "";
  16781. this.showType = 2;
  16782. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  16783. url = "https://" + url;
  16784. }
  16785. this.pptImgUrl1 = "";
  16786. setTimeout(() => {
  16787. this.pptImgUrl1 = url;
  16788. }, 500);
  16789. // this.isClickNav = "line" + i;
  16790. this.isClickNav = i;
  16791. this.$forceUpdate();
  16792. },
  16793. checkPhoto(f, i) {
  16794. this.showType = 4;
  16795. this.pptImgUrl1 = f.url;
  16796. this.isClickNav = i;
  16797. this.$forceUpdate();
  16798. },
  16799. downFile(f, i) {
  16800. this.isClickNav = "";
  16801. this.pptImgUrl1 = "";
  16802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  16803. if (
  16804. a.indexOf(
  16805. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  16806. ) != -1
  16807. ) {
  16808. this.pptImgUrl1 =
  16809. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  16810. // this.dialogVisible3 = true;
  16811. this.showType = 2;
  16812. } else if (
  16813. this.isAssetTypeAnImage(
  16814. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  16815. )
  16816. ) {
  16817. this.showType = 4;
  16818. this.pptImgUrl1 = f.url;
  16819. } else if (
  16820. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  16821. "PDF"
  16822. ) {
  16823. this.pptImgUrl1 = f.url;
  16824. // this.dialogVisible3 = true;
  16825. this.showType = 3;
  16826. } else {
  16827. window.open(this.file[i].url);
  16828. }
  16829. // this.isClickNav = "word" + i;
  16830. this.isClickNav = i;
  16831. },
  16832. downFileList(i) {
  16833. window.open(this.noImgList[i].url);
  16834. },
  16835. openAddWork() {
  16836. this.dialogVisible = true;
  16837. },
  16838. addBzWorks() {
  16839. let params = [
  16840. {
  16841. uid: this.userid,
  16842. cid: this.id,
  16843. stage: this.courseType,
  16844. task: this.taskCount,
  16845. tool: this.toolindex,
  16846. content: JSON.stringify(this.eScore),
  16847. type: 6,
  16848. },
  16849. ];
  16850. this.ajax
  16851. .post(this.$store.state.api + "addCourseWorks", params)
  16852. .then((res) => {
  16853. this.$message({
  16854. message: "提交成功",
  16855. type: "success",
  16856. });
  16857. this.eScore = { eBzText: "", eStar: [] };
  16858. this.studentEvalDialogVisible = false;
  16859. this.selectSWorks();
  16860. })
  16861. .catch((err) => {
  16862. this.$message.error("提交失败");
  16863. console.error(err);
  16864. });
  16865. },
  16866. addBzWorksTeacher() {
  16867. let params = [
  16868. {
  16869. uid: this.sStudent.userid,
  16870. cid: this.id,
  16871. stage: this.courseType,
  16872. task: this.taskCount,
  16873. tool: this.toolindex,
  16874. content: JSON.stringify(this.eScore),
  16875. type: 6,
  16876. },
  16877. ];
  16878. this.ajax
  16879. .post(this.$store.state.api + "addCourseWorks", params)
  16880. .then((res) => {
  16881. this.$message({
  16882. message: "提交成功",
  16883. type: "success",
  16884. });
  16885. this.eScore = { eBzText: "", eStar: [] };
  16886. this.studentEvalDialogVisibleTeacher = false;
  16887. this.selectSWorks();
  16888. })
  16889. .catch((err) => {
  16890. this.$message.error("提交失败");
  16891. console.error(err);
  16892. });
  16893. },
  16894. addStudentAsk() {
  16895. if (!this.radio.length) {
  16896. this.$message.error("请选择选项");
  16897. return;
  16898. }
  16899. for (var i = 0; i < this.askJson.askCount; i++) {
  16900. if (
  16901. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16902. (this.radio[i] !== 0 && !this.radio[i])
  16903. ) {
  16904. this.$message.error("请选择选项");
  16905. return;
  16906. }
  16907. }
  16908. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16909. let params = [
  16910. {
  16911. uid: this.userid,
  16912. cid: this.id,
  16913. stage: this.courseType,
  16914. task: this.taskCount,
  16915. tool: this.toolindex,
  16916. content: JSON.stringify(this.askList),
  16917. type: 2,
  16918. },
  16919. ];
  16920. this.ajax
  16921. .post(this.$store.state.api + "addCourseWorks", params)
  16922. .then((res) => {
  16923. this.$message({
  16924. message: "提交成功",
  16925. type: "success",
  16926. });
  16927. this.askList = [];
  16928. this.dialogVisible5 = false;
  16929. this.selectStudent();
  16930. this.selectSWorks();
  16931. this.selectSLook();
  16932. })
  16933. .catch((err) => {
  16934. this.$message.error("提交失败");
  16935. console.error(err);
  16936. });
  16937. },
  16938. addStudentAskTeacher() {
  16939. if (!this.radio.length) {
  16940. this.$message.error("请选择选项");
  16941. return;
  16942. }
  16943. for (var i = 0; i < this.askJson.askCount; i++) {
  16944. if (
  16945. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16946. (this.radio[i] !== 0 && !this.radio[i])
  16947. ) {
  16948. this.$message.error("请选择选项");
  16949. return;
  16950. }
  16951. }
  16952. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  16953. let params = [
  16954. {
  16955. uid: this.sStudent.userid,
  16956. cid: this.id,
  16957. stage: this.courseType,
  16958. task: this.taskCount,
  16959. tool: this.toolindex,
  16960. content: JSON.stringify(this.askList),
  16961. type: 2,
  16962. },
  16963. ];
  16964. this.ajax
  16965. .post(this.$store.state.api + "addCourseWorks", params)
  16966. .then((res) => {
  16967. this.$message({
  16968. message: "提交成功",
  16969. type: "success",
  16970. });
  16971. this.askList = [];
  16972. this.dialogVisible5Teacher = false;
  16973. this.selectStudent();
  16974. this.selectSWorks();
  16975. this.selectSLook();
  16976. })
  16977. .catch((err) => {
  16978. this.$message.error("提交失败");
  16979. console.error(err);
  16980. });
  16981. },
  16982. addStudentTest() {
  16983. if (!this.radio.length) {
  16984. this.$message.error("请选择选项");
  16985. return;
  16986. }
  16987. for (var i = 0; i < this.testJson.testCount; i++) {
  16988. if (
  16989. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  16990. (this.radio[i] !== 0 && !this.radio[i])
  16991. ) {
  16992. this.$message.error("请选择选项");
  16993. return;
  16994. }
  16995. }
  16996. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  16997. let params = [
  16998. {
  16999. uid: this.userid,
  17000. cid: this.id,
  17001. stage: this.courseType,
  17002. task: this.taskCount,
  17003. tool: this.toolindex,
  17004. content: JSON.stringify(this.askList),
  17005. type: 8,
  17006. },
  17007. ];
  17008. this.ajax
  17009. .post(this.$store.state.api + "addCourseWorks", params)
  17010. .then((res) => {
  17011. this.$message({
  17012. message: "提交成功",
  17013. type: "success",
  17014. });
  17015. this.askList = [];
  17016. this.dialogVisibleChoice = false;
  17017. this.selectStudent();
  17018. this.selectSWorks();
  17019. this.selectSLook();
  17020. })
  17021. .catch((err) => {
  17022. this.$message.error("提交失败");
  17023. console.error(err);
  17024. });
  17025. },
  17026. addStudentTestTeacher() {
  17027. if (!this.radio.length) {
  17028. this.$message.error("请选择选项");
  17029. return;
  17030. }
  17031. for (var i = 0; i < this.testJson.testCount; i++) {
  17032. if (
  17033. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  17034. (this.radio[i] !== 0 && !this.radio[i])
  17035. ) {
  17036. this.$message.error("请选择选项");
  17037. return;
  17038. }
  17039. }
  17040. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  17041. let params = [
  17042. {
  17043. uid: this.sStudent.userid,
  17044. cid: this.id,
  17045. stage: this.courseType,
  17046. task: this.taskCount,
  17047. tool: this.toolindex,
  17048. content: JSON.stringify(this.askList),
  17049. type: 8,
  17050. },
  17051. ];
  17052. this.ajax
  17053. .post(this.$store.state.api + "addCourseWorks", params)
  17054. .then((res) => {
  17055. this.$message({
  17056. message: "提交成功",
  17057. type: "success",
  17058. });
  17059. this.askList = [];
  17060. this.dialogVisibleChoiceTeacher = false;
  17061. this.selectStudent();
  17062. this.selectSWorks();
  17063. this.selectSLook();
  17064. })
  17065. .catch((err) => {
  17066. this.$message.error("提交失败");
  17067. console.error(err);
  17068. });
  17069. },
  17070. addWork() {
  17071. if (this.studyJuri[0].content == "") {
  17072. this.$message.error("请将信息填写完整");
  17073. return;
  17074. } else if (this.studyJuri[0].cover.length == 0) {
  17075. this.$message.error("请将信息填写完整");
  17076. return;
  17077. } else if (this.studyJuri[0].upVedio.length == 0) {
  17078. this.$message.error("请将信息填写完整");
  17079. return;
  17080. }
  17081. if (this.isNoHomeWork) {
  17082. this.$confirm(
  17083. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  17084. "提示",
  17085. {
  17086. confirmButtonText: "确定",
  17087. cancelButtonText: "取消",
  17088. type: "warning",
  17089. }
  17090. )
  17091. .then(() => {
  17092. let params = [
  17093. {
  17094. uid: this.userid,
  17095. cid: this.id,
  17096. stage: this.courseType,
  17097. task: this.taskCount,
  17098. content: JSON.stringify(this.studyJuri),
  17099. },
  17100. ];
  17101. this.ajax
  17102. .post(this.$store.state.api + "addWorks", params)
  17103. .then((res) => {
  17104. this.$message({
  17105. message: "提交成功",
  17106. type: "success",
  17107. });
  17108. this.isNoHomeWork = true;
  17109. this.dialogVisible = false;
  17110. })
  17111. .catch((err) => {
  17112. this.$message.error("提交失败");
  17113. console.error(err);
  17114. });
  17115. })
  17116. .catch(() => {});
  17117. } else {
  17118. let params = [
  17119. {
  17120. uid: this.userid,
  17121. cid: this.id,
  17122. stage: this.courseType,
  17123. task: this.taskCount,
  17124. content: JSON.stringify(this.studyJuri),
  17125. },
  17126. ];
  17127. this.ajax
  17128. .post(this.$store.state.api + "addWorks", params)
  17129. .then((res) => {
  17130. this.$message({
  17131. message: "提交成功",
  17132. type: "success",
  17133. });
  17134. this.isNoHomeWork = true;
  17135. this.dialogVisible = false;
  17136. })
  17137. .catch((err) => {
  17138. this.$message.error("提交失败");
  17139. console.error(err);
  17140. });
  17141. }
  17142. },
  17143. selectCount() {
  17144. let params = {
  17145. cid: this.id,
  17146. chid: this.courseType,
  17147. uid: this.userid,
  17148. };
  17149. this.ajax
  17150. .get(this.$store.state.api + "selectToolsCount", params)
  17151. .then((res) => {
  17152. for (var i = 0; i < res.data[0].length; i++) {
  17153. if (res.data[0][i].tools == 1) {
  17154. this.wbCount = res.data[0][i].count;
  17155. } else if (res.data[0][i].tools == 2) {
  17156. this.wordCount = res.data[0][i].count;
  17157. } else if (res.data[0][i].tools == 3) {
  17158. this.mindCount = res.data[0][i].count;
  17159. } else if (res.data[0][i].tools == 4) {
  17160. this.askCount = res.data[0][i].count;
  17161. } else if (res.data[0][i].tools == 6) {
  17162. this.noteCount = res.data[0][i].count;
  17163. } else if (res.data[0][i].tools == 7) {
  17164. this.mindNetWorkCount = res.data[0][i].count;
  17165. } else if (res.data[0][i].tools == 8) {
  17166. this.libraryCount = res.data[0][i].count;
  17167. } else if (res.data[0][i].tools == 16) {
  17168. this.workCount = res.data[0][i].count;
  17169. } else if (res.data[0][i].tools == 10) {
  17170. this.timeCount = res.data[0][i].count;
  17171. } else if (res.data[0][i].tools == 15) {
  17172. this.answerCount = res.data[0][i].count;
  17173. } else if (res.data[0][i].tools == 18) {
  17174. this.trainCount = res.data[0][i].count;
  17175. }
  17176. }
  17177. })
  17178. .catch((err) => {
  17179. console.error(err);
  17180. });
  17181. },
  17182. openTools(t, i, index, c, sName,id) {
  17183. var z = JSON.parse(c);
  17184. this.noteName = sName;
  17185. if (t == 4) {
  17186. this.radio = [];
  17187. this.isAnswer = false;
  17188. let b = z[0].anwer;
  17189. this.radio = b;
  17190. this.askJson = z[0].askJson;
  17191. this.isAnswer = true;
  17192. this.dialogVisible5 = true;
  17193. } else if (t == 45) {
  17194. this.radio = [];
  17195. this.isAnswer = false;
  17196. let b = z[0].anwer;
  17197. this.radio = b;
  17198. this.testJson = z[0].testJson;
  17199. this.isAnswer = true;
  17200. this.dialogVisibleChoice = true;
  17201. }else if(t == 69){
  17202. this.oldEnglishJson1 = {}
  17203. this.oldEnglishJson = {}
  17204. this.englishList1 = {}
  17205. this.newEngIndex = -1;
  17206. this.isNoUserid = false;
  17207. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17208. .toolChoose[i].englishList;
  17209. this.oldEnglishJson = z;
  17210. this.engWid = id;
  17211. this.newEnglishList = { engTitle:"",engText:"" }
  17212. this.newEnglishList1 = []
  17213. this.selectEngC(id,z);
  17214. }
  17215. // else if (t == 15) {
  17216. // this.answerQ = "";
  17217. // this.questionAnswer = "";
  17218. // this.answerQ = z[0].answerTitle;
  17219. // this.questionAnswer = z[0].answer;
  17220. // this.answerDialogVisible = true;
  17221. // }
  17222. },
  17223. fastText(p, t) {
  17224. if (t == 1) {
  17225. this.commentText += p;
  17226. } else {
  17227. this.eScore.eBzText += p;
  17228. }
  17229. },
  17230. addTools(t, i, index) {
  17231. var a = 0;
  17232. // this.taskCount = index;
  17233. this.toolindex = i;
  17234. if (t == 1) {
  17235. if (this.wbCount > 0) {
  17236. this.updateCount(this.wbCount, t);
  17237. } else {
  17238. this.wbCount++;
  17239. a = this.wbCount;
  17240. this.toolsCount(a, t);
  17241. }
  17242. window.parent.postMessage(
  17243. {
  17244. tools: "1",
  17245. cid: this.id,
  17246. stage: this.courseType,
  17247. task: this.taskCount,
  17248. tool: i,
  17249. },
  17250. "*"
  17251. );
  17252. } else if (t == 2) {
  17253. if (this.wordCount > 0) {
  17254. this.updateCount(this.wordCount, t);
  17255. } else {
  17256. this.wordCount++;
  17257. a = this.wordCount;
  17258. this.toolsCount(a, t);
  17259. }
  17260. window.parent.postMessage({ tools: "2" }, "*");
  17261. } else if (t == 3) {
  17262. if (this.mindCount > 0) {
  17263. this.updateCount(this.mindCount, t);
  17264. } else {
  17265. this.mindCount++;
  17266. a = this.mindCount;
  17267. this.toolsCount(a, t);
  17268. }
  17269. window.parent.postMessage(
  17270. {
  17271. tools: "3",
  17272. cid: this.id,
  17273. stage: this.courseType,
  17274. task: this.taskCount,
  17275. tool: i,
  17276. },
  17277. "*"
  17278. );
  17279. } else if (t == 4) {
  17280. this.radio = [];
  17281. this.noteName = "";
  17282. this.isAnswer = false;
  17283. if (this.askCount > 0) {
  17284. this.updateCount(this.askCount, t);
  17285. } else {
  17286. this.askCount++;
  17287. a = this.askCount;
  17288. this.toolsCount(a, t);
  17289. }
  17290. if (!this.dialogVisible2) {
  17291. this.askJson.askJson =
  17292. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17293. index
  17294. ].toolChoose[i].askJson;
  17295. this.askJson.askTitle =
  17296. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17297. index
  17298. ].toolChoose[i].askTitle;
  17299. this.askJson.askCount =
  17300. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17301. index
  17302. ].toolChoose[i].askCount;
  17303. } else {
  17304. this.askJson.askJson = this.chapTools.askJson.askJson;
  17305. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17306. this.askJson.askCount = this.chapTools.askJson.askCount;
  17307. }
  17308. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17309. if (this.askJson.askJson[k].type == "2") {
  17310. this.radio.push([]);
  17311. } else {
  17312. this.radio.push("");
  17313. }
  17314. }
  17315. this.dialogVisible5 = true;
  17316. // window.parent.postMessage({ tools: "4" }, "*");
  17317. } else if (t == 45) {
  17318. this.noteName = "";
  17319. this.radio = [];
  17320. this.isAnswer = false;
  17321. if (this.askCount > 0) {
  17322. this.updateCount(this.askCount, t);
  17323. } else {
  17324. this.askCount++;
  17325. a = this.askCount;
  17326. this.toolsCount(a, t);
  17327. }
  17328. this.testJson =
  17329. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17330. index
  17331. ].toolChoose[i].testJson;
  17332. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17333. if (this.testJson.testJson[k].type == "2") {
  17334. this.radio.push([]);
  17335. } else {
  17336. this.radio.push("");
  17337. }
  17338. }
  17339. this.dialogVisibleChoice = true;
  17340. // window.parent.postMessage({ tools: "4" }, "*");
  17341. } else if (t == 5) {
  17342. if (this.scoreCount > 0) {
  17343. this.updateCount(this.scoreCount, t);
  17344. } else {
  17345. this.scoreCount++;
  17346. a = this.scoreCount;
  17347. this.toolsCount(a, t);
  17348. }
  17349. this.dialogVisible4 = true;
  17350. // window.parent.postMessage({ tools: "5" }, "*");
  17351. } else if (t == 6) {
  17352. if (this.noteCount > 0) {
  17353. this.updateCount(this.noteCount, t);
  17354. } else {
  17355. this.noteCount++;
  17356. a = this.noteCount;
  17357. this.toolsCount(a, t);
  17358. }
  17359. window.parent.postMessage(
  17360. {
  17361. tools: "6",
  17362. cid: this.id,
  17363. stage: this.courseType,
  17364. task: this.taskCount,
  17365. tool: i,
  17366. },
  17367. "*"
  17368. );
  17369. } else if (t == 7) {
  17370. if (this.mindNetWorkCount > 0) {
  17371. this.updateCount(this.mindNetWorkCount, t);
  17372. } else {
  17373. this.mindNetWorkCount++;
  17374. a = this.mindNetWorkCount;
  17375. this.toolsCount(a, t);
  17376. }
  17377. window.parent.postMessage(
  17378. {
  17379. tools: "7",
  17380. cid: this.id,
  17381. stage: this.courseType,
  17382. task: this.taskCount,
  17383. tool: i,
  17384. },
  17385. "*"
  17386. );
  17387. } else if (t == 16) {
  17388. if (this.workCount > 0) {
  17389. this.updateCount(this.workCount, t);
  17390. } else {
  17391. this.workCount++;
  17392. a = this.workCount;
  17393. this.toolsCount(a, t);
  17394. }
  17395. this.dialogVisible = true;
  17396. } else if (t == 50) {
  17397. if (this.tType == 2) {
  17398. this.$message.error("不支持学生使用");
  17399. return;
  17400. }
  17401. this.plworkFile = [];
  17402. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  17403. if (!this.uploadCid) {
  17404. this.$message.error(
  17405. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  17406. );
  17407. return;
  17408. }
  17409. // this.uploadCid =
  17410. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17411. // index
  17412. // ].toolChoose[i].uploadJson[0];
  17413. this.selectUploadStudent(2);
  17414. } else if (t == 8) {
  17415. if (this.libraryCount > 0) {
  17416. this.updateCount(this.libraryCount, t);
  17417. } else {
  17418. this.libraryCount++;
  17419. a = this.libraryCount;
  17420. this.toolsCount(a, t);
  17421. }
  17422. window.parent.postMessage({ tools: "8" }, "*");
  17423. } else if (t == 17) {
  17424. if (this.libraryCount > 0) {
  17425. this.updateCount(this.libraryCount, t);
  17426. } else {
  17427. this.libraryCount++;
  17428. a = this.libraryCount;
  17429. this.toolsCount(a, t);
  17430. }
  17431. window.parent.postMessage({ tools: "17" }, "*");
  17432. } else if (t == 18) {
  17433. if (this.trainCount > 0) {
  17434. this.updateCount(this.trainCount, t);
  17435. } else {
  17436. this.trainCount++;
  17437. a = this.trainCount;
  17438. this.toolsCount(a, t);
  17439. }
  17440. window.parent.postMessage({ tools: "18" }, "*");
  17441. } else if (t == 10) {
  17442. if (this.timeCount > 0) {
  17443. this.updateCount(this.timeCount, t);
  17444. } else {
  17445. this.timeCount++;
  17446. a = this.timeCount;
  17447. this.toolsCount(a, t);
  17448. }
  17449. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  17450. .taskJson[index].toolChoose[i].preTime
  17451. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17452. .toolChoose[i].preTime
  17453. : "";
  17454. this.timeDialogVisible = true;
  17455. } else if (t == 15) {
  17456. this.answerQ = "";
  17457. this.questionAnswer = "";
  17458. if (this.answerCount > 0) {
  17459. this.updateCount(this.answerCount, t);
  17460. } else {
  17461. this.answerCount++;
  17462. a = this.answerCount;
  17463. this.toolsCount(a, t);
  17464. }
  17465. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17466. .taskJson[index].toolChoose[i].answerQ
  17467. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17468. .toolChoose[i].answerQ
  17469. : "";
  17470. this.answerDialogVisible = true;
  17471. } else if (t == 21) {
  17472. window.parent.postMessage({ tools: "21" }, "*");
  17473. } else if (t == 22) {
  17474. window.parent.postMessage({ tools: "22" }, "*");
  17475. } else if (t == 23) {
  17476. window.parent.postMessage({ tools: "23" }, "*");
  17477. } else if (t == 24) {
  17478. window.parent.postMessage({ tools: "24" }, "*");
  17479. } else if (t == 25) {
  17480. window.parent.postMessage({ tools: "25" }, "*");
  17481. } else if (t == 31) {
  17482. window.parent.postMessage({ tools: "31" }, "*");
  17483. } else if (t == 28) {
  17484. window.parent.postMessage({ tools: "28" }, "*");
  17485. } else if (t == 37) {
  17486. window.parent.postMessage({ tools: "37" }, "*");
  17487. } else if (t == 38) {
  17488. window.parent.postMessage({ tools: "38" }, "*");
  17489. } else if (t == 39) {
  17490. window.parent.postMessage({ tools: "39" }, "*");
  17491. } else if (t == 32) {
  17492. window.parent.postMessage({ tools: "32" }, "*");
  17493. } else if (t == 66) {
  17494. window.parent.postMessage({ tools: "66" }, "*");
  17495. } else if (t == 67) {
  17496. window.parent.postMessage({ tools: "67" }, "*");
  17497. } else if (t == 68) {
  17498. window.parent.postMessage({ tools: "68" }, "*");
  17499. } else if (t == 57) {
  17500. // window.parent.postMessage({ tools: "57" }, "*");
  17501. window.parent.postMessage(
  17502. {
  17503. tools: "57u",
  17504. cid: this.id,
  17505. stage: this.courseType,
  17506. task: this.taskCount,
  17507. tool: i,
  17508. },
  17509. "*"
  17510. );
  17511. } else if (t == 58) {
  17512. window.parent.postMessage({ tools: "58" }, "*");
  17513. } else if (t == 59) {
  17514. window.parent.postMessage({ tools: "59" }, "*");
  17515. } else if (t == 60) {
  17516. window.parent.postMessage({ tools: "60" }, "*");
  17517. } else if (t == 61) {
  17518. window.parent.postMessage({ tools: "61" }, "*");
  17519. } else if (t == 63) {
  17520. window.parent.postMessage({ tools: "63" }, "*");
  17521. } else if (t == 69) {
  17522. if (this.worksStudent[i].length) {
  17523. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17524. if (this.userid == this.worksStudent[i][k].userid) {
  17525. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  17526. break;
  17527. } else {
  17528. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17529. }
  17530. }
  17531. } else {
  17532. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  17533. }
  17534. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  17535. .taskJson[index].toolChoose[i].englishList
  17536. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17537. .toolChoose[i].englishList
  17538. : {};
  17539. this.englishToolIndex = i;
  17540. this.myAnList = this.myAnswerList1;
  17541. this.engDialogVisible = true;
  17542. } else if (t == 65) {
  17543. if (this.tType == 2) {
  17544. this.$message.error("不支持学生使用");
  17545. return;
  17546. }
  17547. this.uploadCid = this.tcid;
  17548. if (!this.uploadCid) {
  17549. this.$message.error(
  17550. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  17551. );
  17552. return;
  17553. }
  17554. this.selectPickStudent();
  17555. } else if (t == 26) {
  17556. window.parent.postMessage(
  17557. {
  17558. tools: "26",
  17559. cid: this.id,
  17560. stage: this.courseType,
  17561. task: this.taskCount,
  17562. tool: i,
  17563. },
  17564. "*"
  17565. );
  17566. } else if (t == 40) {
  17567. if (this.evalCount > 0) {
  17568. this.updateCount(this.evalCount, t);
  17569. } else {
  17570. this.evalCount++;
  17571. a = this.evalCount;
  17572. this.toolsCount(a, t);
  17573. }
  17574. this.eScore = { eBzText: "", eStar: [] };
  17575. if (this.worksStudent[i].length) {
  17576. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17577. if (this.userid == this.worksStudent[i][k].userid) {
  17578. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17579. this.rateJson =
  17580. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17581. index
  17582. ].toolChoose[i].rateJson;
  17583. break;
  17584. } else {
  17585. this.rateJson =
  17586. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17587. index
  17588. ].toolChoose[i].rateJson;
  17589. }
  17590. }
  17591. } else {
  17592. this.rateJson =
  17593. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17594. index
  17595. ].toolChoose[i].rateJson;
  17596. }
  17597. this.isStar = false;
  17598. this.studentEvalDialogVisible = true;
  17599. } else if (t == 41) {
  17600. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17601. .taskJson[index].toolChoose[i].selectJson
  17602. ? JSON.parse(
  17603. JSON.stringify(
  17604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17605. index
  17606. ].toolChoose[i].selectJson
  17607. )
  17608. )
  17609. : { url: "", select: [], answer: [] };
  17610. if (this.worksStudent[i].length) {
  17611. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17612. if (this.userid == this.worksStudent[i][k].userid) {
  17613. var a = this.worksStudent[i][k].works.split(",");
  17614. for (var ki = 0; ki < a.length; ki++) {
  17615. a[ki] = parseInt(a[ki]);
  17616. }
  17617. this.selectAnswer = {
  17618. answer: a,
  17619. stu: this.worksStudent[i][k].sName,
  17620. };
  17621. break;
  17622. } else {
  17623. this.selectAnswer = { answer: [], stu: "" };
  17624. }
  17625. }
  17626. } else {
  17627. this.selectAnswer = { answer: [], stu: "" };
  17628. }
  17629. this.isSelect = false;
  17630. this.dialogVisibleSelect = true;
  17631. } else if (t == 44) {
  17632. window.parent.postMessage({ tools: "44" }, "*");
  17633. } else if (t == 47) {
  17634. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17635. .taskJson[index].toolChoose[i].sentenceList
  17636. ? JSON.parse(
  17637. JSON.stringify(
  17638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17639. index
  17640. ].toolChoose[i].sentenceList
  17641. )
  17642. )
  17643. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17644. for (var q = 0; q < this.sentenceList.length; q++) {
  17645. this.sentenceList[q].chooseSenList = [];
  17646. this.sentenceList[q].addChangeSen = [];
  17647. this.sentenceList[q].addChangeSen = JSON.parse(
  17648. JSON.stringify(this.sentenceList[q].addSentence)
  17649. );
  17650. this.sentenceList[q].chooseSenList.length =
  17651. this.sentenceList[q].rightAnswer.length;
  17652. }
  17653. this.dialogVisibleSentence = true;
  17654. } else if (t == 48) {
  17655. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17656. .taskJson[index].toolChoose[i].tableJson
  17657. ? JSON.parse(
  17658. JSON.stringify(
  17659. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17660. index
  17661. ].toolChoose[i].tableJson
  17662. )
  17663. )
  17664. : { text: "" };
  17665. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  17666. if (this.worksStudent[i].length) {
  17667. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17668. if (this.userid == this.worksStudent[i][k].userid) {
  17669. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17670. break;
  17671. }
  17672. }
  17673. }
  17674. this.dialogVisibleTable = true;
  17675. } else if (t == 52) {
  17676. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17677. .taskJson[index].toolChoose[i].wordJson
  17678. ? JSON.parse(
  17679. JSON.stringify(
  17680. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17681. index
  17682. ].toolChoose[i].wordJson
  17683. )
  17684. )
  17685. : { text: "" };
  17686. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  17687. if (this.worksStudent[i].length) {
  17688. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17689. if (this.userid == this.worksStudent[i][k].userid) {
  17690. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17691. break;
  17692. }
  17693. }
  17694. }
  17695. this.dialogVisibleWord = true;
  17696. } else if (t == 49) {
  17697. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  17698. return
  17699. }
  17700. this.groupJson =
  17701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17702. index
  17703. ].toolChoose[i].groupJson;
  17704. this.islock = this.groupJson.islock == 1 ? true : false;
  17705. this.dialogVisibleGroup = true;
  17706. } else if (t == 62) {
  17707. this.videoJson =
  17708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17709. index
  17710. ].toolChoose[i].videoJson;
  17711. this.dialogVisibleVideo = true;
  17712. }
  17713. },
  17714. teacherWorkSubmit(t, i, index, s) {
  17715. this.sStudent = s;
  17716. this.toolindex = i;
  17717. this.sTool = t;
  17718. if (this.tType !== "1" && this.tType !== "4") {
  17719. return;
  17720. }
  17721. if (t == 16 || t == 32 || t == 50) {
  17722. this.dialogVisibleWorks = true;
  17723. } else if (t == 15) {
  17724. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  17725. .taskJson[index].toolChoose[i].answerQ
  17726. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  17727. .toolChoose[i].answerQ
  17728. : "";
  17729. this.questionAnswer = "";
  17730. this.answerDialogVisibleTeacher = true; //问答
  17731. } else if (t == 52) {
  17732. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17733. .taskJson[index].toolChoose[i].wordJson
  17734. ? JSON.parse(
  17735. JSON.stringify(
  17736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17737. index
  17738. ].toolChoose[i].wordJson
  17739. )
  17740. )
  17741. : { text: "" };
  17742. if (this.worksStudent[i].length) {
  17743. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17744. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17745. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  17746. break;
  17747. }
  17748. }
  17749. }
  17750. this.dialogVisibleWordTeacher = true; //文档
  17751. } else if (t == 4) {
  17752. this.radio = [];
  17753. this.noteName = "";
  17754. this.isAnswer = false;
  17755. if (this.askCount > 0) {
  17756. this.updateCount(this.askCount, t);
  17757. } else {
  17758. this.askCount++;
  17759. a = this.askCount;
  17760. this.toolsCount(a, t);
  17761. }
  17762. if (!this.dialogVisible2) {
  17763. this.askJson.askJson =
  17764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17765. index
  17766. ].toolChoose[i].askJson;
  17767. this.askJson.askTitle =
  17768. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17769. index
  17770. ].toolChoose[i].askTitle;
  17771. this.askJson.askCount =
  17772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17773. index
  17774. ].toolChoose[i].askCount;
  17775. } else {
  17776. this.askJson.askJson = this.chapTools.askJson.askJson;
  17777. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  17778. this.askJson.askCount = this.chapTools.askJson.askCount;
  17779. }
  17780. for (var k = 0; k < this.askJson.askJson.length; k++) {
  17781. if (this.askJson.askJson[k].type == "2") {
  17782. this.radio.push([]);
  17783. } else {
  17784. this.radio.push("");
  17785. }
  17786. }
  17787. this.dialogVisible5Teacher = true;
  17788. } else if (t == 45) {
  17789. this.noteName = "";
  17790. this.radio = [];
  17791. this.isAnswer = false;
  17792. if (this.askCount > 0) {
  17793. this.updateCount(this.askCount, t);
  17794. } else {
  17795. this.askCount++;
  17796. a = this.askCount;
  17797. this.toolsCount(a, t);
  17798. }
  17799. this.testJson =
  17800. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17801. index
  17802. ].toolChoose[i].testJson;
  17803. for (var k = 0; k < this.testJson.testJson.length; k++) {
  17804. if (this.testJson.testJson[k].type == "2") {
  17805. this.radio.push([]);
  17806. } else {
  17807. this.radio.push("");
  17808. }
  17809. }
  17810. this.dialogVisibleChoiceTeacher = true;
  17811. } else if (t == 41) {
  17812. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17813. .taskJson[index].toolChoose[i].selectJson
  17814. ? JSON.parse(
  17815. JSON.stringify(
  17816. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17817. index
  17818. ].toolChoose[i].selectJson
  17819. )
  17820. )
  17821. : { url: "", select: [], answer: [] };
  17822. if (this.worksStudent[i].length) {
  17823. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17824. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17825. var a = this.worksStudent[i][k].works.split(",");
  17826. for (var ki = 0; ki < a.length; ki++) {
  17827. a[ki] = parseInt(a[ki]);
  17828. }
  17829. this.selectAnswer = {
  17830. answer: a,
  17831. stu: this.worksStudent[i][k].sName,
  17832. };
  17833. break;
  17834. } else {
  17835. this.selectAnswer = { answer: [], stu: "" };
  17836. }
  17837. }
  17838. } else {
  17839. this.selectAnswer = { answer: [], stu: "" };
  17840. }
  17841. this.isSelect = false;
  17842. this.dialogVisibleSelectTeacher = true;
  17843. } else if (t == 47) {
  17844. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  17845. .taskJson[index].toolChoose[i].sentenceList
  17846. ? JSON.parse(
  17847. JSON.stringify(
  17848. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17849. index
  17850. ].toolChoose[i].sentenceList
  17851. )
  17852. )
  17853. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  17854. for (var q = 0; q < this.sentenceList.length; q++) {
  17855. this.sentenceList[q].chooseSenList = [];
  17856. this.sentenceList[q].addChangeSen = [];
  17857. this.sentenceList[q].addChangeSen = JSON.parse(
  17858. JSON.stringify(this.sentenceList[q].addSentence)
  17859. );
  17860. this.sentenceList[q].chooseSenList.length =
  17861. this.sentenceList[q].rightAnswer.length;
  17862. }
  17863. this.dialogVisibleSentenceTeacher = true;
  17864. } else if (t == 48) {
  17865. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  17866. .taskJson[index].toolChoose[i].tableJson
  17867. ? JSON.parse(
  17868. JSON.stringify(
  17869. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17870. index
  17871. ].toolChoose[i].tableJson
  17872. )
  17873. )
  17874. : { text: "" };
  17875. if (this.worksStudent[i].length) {
  17876. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17877. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17878. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  17879. break;
  17880. }
  17881. }
  17882. }
  17883. this.dialogVisibleTableTeacher = true;
  17884. } else if (t == 40) {
  17885. if (this.evalCount > 0) {
  17886. this.updateCount(this.evalCount, t);
  17887. } else {
  17888. this.evalCount++;
  17889. a = this.evalCount;
  17890. this.toolsCount(a, t);
  17891. }
  17892. this.eScore = { eBzText: "", eStar: [] };
  17893. if (this.worksStudent[i].length) {
  17894. for (var k = 0; k < this.worksStudent[i].length; k++) {
  17895. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  17896. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  17897. this.rateJson =
  17898. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17899. index
  17900. ].toolChoose[i].rateJson;
  17901. break;
  17902. } else {
  17903. this.rateJson =
  17904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17905. index
  17906. ].toolChoose[i].rateJson;
  17907. }
  17908. }
  17909. } else {
  17910. this.rateJson =
  17911. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17912. index
  17913. ].toolChoose[i].rateJson;
  17914. }
  17915. this.isStar = false;
  17916. this.studentEvalDialogVisibleTeacher = true;
  17917. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  17918. window.parent.postMessage(
  17919. {
  17920. tools: t + "teacher",
  17921. cid: this.id,
  17922. stage: this.courseType,
  17923. task: this.taskCount,
  17924. tool: i,
  17925. student: this.sStudent,
  17926. },
  17927. "*"
  17928. );
  17929. }
  17930. },
  17931. openCocoPi(tool, i, uid, uname) {
  17932. let student = {
  17933. userid: uid,
  17934. student: uname,
  17935. };
  17936. if (tool == 57) {
  17937. window.parent.postMessage(
  17938. {
  17939. tools: tool + "teacher",
  17940. cid: this.id,
  17941. stage: this.courseType,
  17942. task: this.taskCount,
  17943. tool: i,
  17944. student: student,
  17945. },
  17946. "*"
  17947. );
  17948. }
  17949. },
  17950. setRightAnswer(s, i, j) {
  17951. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  17952. if (
  17953. this.sentenceList[i].chooseSenList[q] == undefined ||
  17954. this.sentenceList[i].chooseSenList[q] == ""
  17955. ) {
  17956. this.sentenceList[i].chooseSenList[q] = s;
  17957. this.sentenceList[i].addChangeSen[j] = "";
  17958. break;
  17959. }
  17960. }
  17961. this.$forceUpdate();
  17962. },
  17963. returnCard(r, i, j) {
  17964. var a = this.sentenceList[i].addSentence.indexOf(r);
  17965. this.sentenceList[i].chooseSenList[j] = "";
  17966. this.sentenceList[i].addChangeSen[a] = r;
  17967. this.$forceUpdate();
  17968. },
  17969. // addSentenceTool() {
  17970. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17971. // this.taskCount
  17972. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  17973. // this.sentenceList = [
  17974. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  17975. // ];
  17976. // this.dialogVisibleSentence = false;
  17977. // },
  17978. toolsCount(a, t) {
  17979. let params = {
  17980. cid: this.id,
  17981. chid: this.courseType,
  17982. uid: this.userid,
  17983. tid: t,
  17984. count: a,
  17985. };
  17986. this.ajax
  17987. .get(this.$store.state.api + "insertToolsCount", params)
  17988. .then((res) => {
  17989. this.selectCount();
  17990. })
  17991. .catch((err) => {
  17992. console.error(err);
  17993. });
  17994. },
  17995. updateCount(c, t) {
  17996. c++;
  17997. let params = {
  17998. cid: this.id,
  17999. chid: this.courseType,
  18000. uid: this.userid,
  18001. tid: t,
  18002. count: c,
  18003. };
  18004. this.ajax
  18005. .get(this.$store.state.api + "updateToolsCount", params)
  18006. .then((res) => {
  18007. this.selectCount();
  18008. })
  18009. .catch((err) => {
  18010. console.error(err);
  18011. });
  18012. },
  18013. checkEva() {
  18014. if (this.evalua != "") {
  18015. for (var i = 0; i < this.evaJuri.length; i++) {
  18016. if (this.evalua == this.evaJuri[i].id) {
  18017. this.eTitle = this.evaJuri[i].title;
  18018. this.eJson = JSON.parse(this.evaJuri[i].content);
  18019. }
  18020. }
  18021. this.$forceUpdate();
  18022. setTimeout(() => {
  18023. this.setMindData();
  18024. }, 0);
  18025. }
  18026. },
  18027. selectEva() {
  18028. let params = {
  18029. oid: this.oid,
  18030. };
  18031. this.ajax
  18032. .get(this.$store.state.api + "selectAllEvaluation", params)
  18033. .then((res) => {
  18034. this.evaJuri = res.data[0];
  18035. })
  18036. .catch((err) => {
  18037. console.error(err);
  18038. });
  18039. },
  18040. setMindData() {
  18041. this.data.data = [];
  18042. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  18043. let _eJson = Object.keys(this.eJson);
  18044. let _e = this.eJson;
  18045. for (let i = 0; i < _eJson.length; i++) {
  18046. let element = _e[_eJson[i]];
  18047. this.data.data.push({
  18048. id: element.id,
  18049. parentid: "root",
  18050. topic: element.name,
  18051. });
  18052. let _eJsonc = Object.keys(element.child);
  18053. let _e2 = element.child;
  18054. for (let j = 0; j < _eJsonc.length; j++) {
  18055. let _ec = _e2[_eJsonc[j]];
  18056. this.data.data.push({
  18057. id: _ec.id,
  18058. parentid: element.id,
  18059. topic: _ec.name,
  18060. });
  18061. let _eJsonz = Object.keys(_ec.child);
  18062. let _e3 = _ec.child;
  18063. for (let z = 0; z < _eJsonz.length; z++) {
  18064. let _ez = _e3[_eJsonz[z]];
  18065. this.data.data.push({
  18066. id: _ez.id,
  18067. parentid: _ec.id,
  18068. topic: _ez.name,
  18069. });
  18070. }
  18071. }
  18072. }
  18073. this.$forceUpdate();
  18074. },
  18075. checkFileFull(type, url) {
  18076. this.fullDialogVisible = true;
  18077. this.fulltype = type;
  18078. this.fullUrl = url;
  18079. },
  18080. checkFileFull1(t, f) {
  18081. this.fullDialogVisible = true;
  18082. if (t == 6) {
  18083. this.fulltype = 1;
  18084. this.fullUrl = JSON.parse(JSON.stringify(f));
  18085. } else if (t == 8) {
  18086. this.fulltype = 2;
  18087. this.fullUrl = f.url;
  18088. } else if (
  18089. t == 3 &&
  18090. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  18091. "PDF"
  18092. ) {
  18093. this.fulltype = 3;
  18094. this.fullUrl = f.url;
  18095. } else if (t == 3) {
  18096. this.fulltype = 2;
  18097. this.fullUrl =
  18098. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  18099. }
  18100. },
  18101. openSname(n, id, i, uid) {
  18102. this.snameWid = id;
  18103. this.worksSName = n;
  18104. this.worksSid = uid == n ? "" : uid;
  18105. this.toolindex = i;
  18106. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  18107. if (!this.uploadCid) {
  18108. this.$message.error(
  18109. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  18110. );
  18111. return;
  18112. }
  18113. this.selectUploadStudent(1);
  18114. },
  18115. updateName() {
  18116. let params = {
  18117. n: this.worksSName,
  18118. cid: this.snameWid,
  18119. };
  18120. this.ajax
  18121. .get(this.$store.state.api + "updateCourseWorksName", params)
  18122. .then((res) => {
  18123. this.$message({
  18124. message: "修改成功",
  18125. type: "success",
  18126. });
  18127. this.dialogVisibleSname = false;
  18128. this.getCourseDetail(2);
  18129. this.snameWid = "";
  18130. this.worksSName = "";
  18131. })
  18132. .catch((err) => {
  18133. console.error(err);
  18134. });
  18135. },
  18136. downloadFile2(f) {
  18137. // const loading = this.$loading.service({
  18138. // background: "rgba(255, 255, 255, 0.7)",
  18139. // target: document.body,
  18140. // text: "文件加载中...",
  18141. // });
  18142. // let url2 = f.url;
  18143. // let _url2 = "";
  18144. // if (
  18145. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18146. // ) {
  18147. // _url2 = url2.split(
  18148. // "https://view.officeapps.live.com/op/view.aspx?src="
  18149. // )[1];
  18150. // } else {
  18151. // _url2 = url2;
  18152. // }
  18153. // let params = {
  18154. // url: _url2,
  18155. // name: f.name,
  18156. // };
  18157. // this.ajax
  18158. // .get(this.$store.state.api + "download", params)
  18159. // .then((res) => {
  18160. // loading.close();
  18161. // let content = res.data.data.data;
  18162. // let ab = new ArrayBuffer(content.length);
  18163. // let view = new Uint8Array(ab);
  18164. // for (var i = 0; i < content.length; ++i) {
  18165. // view[i] = content[i];
  18166. // }
  18167. // let elink = document.createElement("a");
  18168. // elink.download = f.name;
  18169. // elink.style.display = "none";
  18170. // let blob = new Blob([ab], {
  18171. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  18172. // });
  18173. // elink.href = URL.createObjectURL(blob);
  18174. // document.body.appendChild(elink);
  18175. // elink.click();
  18176. // document.body.removeChild(elink);
  18177. // })
  18178. // .catch((err) => {
  18179. // loading.close();
  18180. // console.error(err);
  18181. // });
  18182. var credentials = {
  18183. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18184. secretAccessKey: "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",
  18185. }; //秘钥形式的登录上传
  18186. window.AWS.config.update(credentials);
  18187. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18188. let url2 = f.url;
  18189. let _url2 = "";
  18190. if (
  18191. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18192. ) {
  18193. _url2 = url2.split(
  18194. "https://view.officeapps.live.com/op/view.aspx?src="
  18195. )[1];
  18196. } else {
  18197. _url2 = url2;
  18198. }
  18199. let _this = this;
  18200. _this.downLoading = true
  18201. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18202. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18203. var params = {
  18204. Bucket: "ccrb",
  18205. Key: name
  18206. };
  18207. s3.getObject(params, function (err, data) {
  18208. _this.downLoading = false
  18209. if (err) console.log(err, err.stack); // an error occurred
  18210. else {
  18211. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18212. let a = document.createElement("a");
  18213. a.name = f.name;
  18214. a.href = url;
  18215. a.download = f.name;
  18216. a.click();
  18217. console.log(data);
  18218. } // sxuccessful response
  18219. });
  18220. return;
  18221. let url = f.url;
  18222. let _url = "";
  18223. if (
  18224. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18225. ) {
  18226. _url = url.split(
  18227. "https://view.officeapps.live.com/op/view.aspx?src="
  18228. )[1];
  18229. } else {
  18230. _url = url;
  18231. }
  18232. _this.downLoading = true
  18233. // const loading = _this.$loading.service({
  18234. // background: "rgba(255, 255, 255, 0.7)",
  18235. // target: document.body,
  18236. // text: "文件加载中...",
  18237. // });
  18238. let x = new XMLHttpRequest();
  18239. x.open("GET", _url, true);
  18240. x.responseType = "blob";
  18241. x.onload = function () {
  18242. _this.downLoading = false
  18243. // loading.close();
  18244. let url = window.URL.createObjectURL(new Blob([x.response]));
  18245. let a = document.createElement("a");
  18246. a.name = f.name;
  18247. a.href = url;
  18248. a.download = f.name;
  18249. a.click();
  18250. };
  18251. x.send();
  18252. },
  18253. downloadFile(url) {
  18254. var credentials = {
  18255. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  18256. secretAccessKey: "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",
  18257. }; //秘钥形式的登录上传
  18258. window.AWS.config.update(credentials);
  18259. window.AWS.config.region = "cn-northwest-1"; //设置区域
  18260. let url2 = url;
  18261. let _url2 = "";
  18262. if (
  18263. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18264. ) {
  18265. _url2 = url2.split(
  18266. "https://view.officeapps.live.com/op/view.aspx?src="
  18267. )[1];
  18268. } else {
  18269. _url2 = url2;
  18270. }
  18271. const loading2 = this.$loading.service({
  18272. background: "rgba(255, 255, 255, 0.7)",
  18273. target: document.body,
  18274. text: "文件加载中...",
  18275. });
  18276. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  18277. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  18278. var params = {
  18279. Bucket: "ccrb",
  18280. Key: name
  18281. };
  18282. s3.getObject(params, function (err, data) {
  18283. loading2.close();
  18284. if (err) console.log(err, err.stack); // an error occurred
  18285. else {
  18286. let url = window.URL.createObjectURL(new Blob([data.Body]));
  18287. let a = document.createElement("a");
  18288. a.name = name;
  18289. a.href = url;
  18290. a.download = name;
  18291. a.click();
  18292. console.log(data);
  18293. } // sxuccessful response
  18294. });
  18295. return;
  18296. let _this = this;
  18297. let _url = "";
  18298. if (
  18299. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  18300. ) {
  18301. _url = url.split(
  18302. "https://view.officeapps.live.com/op/view.aspx?src="
  18303. )[1];
  18304. } else {
  18305. _url = url;
  18306. }
  18307. const x = new XMLHttpRequest();
  18308. x.open("GET", _url, true);
  18309. x.responseType = "blob";
  18310. const loading = _this.$loading.service({
  18311. background: "rgba(255, 255, 255, 0.7)",
  18312. target: document.body,
  18313. text: "文件加载中...",
  18314. });
  18315. // _this.$message.success("文件下载中...");
  18316. x.onload = function (e) {
  18317. loading.close();
  18318. let content = x.response;
  18319. let elink = document.createElement("a");
  18320. elink.download = decodeURI(
  18321. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  18322. );
  18323. elink.style.display = "none";
  18324. let blob = new Blob([content]);
  18325. elink.href = URL.createObjectURL(blob);
  18326. document.body.appendChild(elink);
  18327. elink.click();
  18328. document.body.removeChild(elink);
  18329. };
  18330. x.send();
  18331. },
  18332. openLine(url) {
  18333. window.open(url);
  18334. },
  18335. resize() {
  18336. if (document.getElementsByClassName("box_course").length) {
  18337. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  18338. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  18339. if (this.showType == 2 || this.showType == 3) {
  18340. document.getElementsByClassName("navBox")[0].style.height =
  18341. a - 40 + 0+ "px";
  18342. } else {
  18343. document.getElementsByClassName("navBox")[0].style.height =
  18344. a - 40 + "px";
  18345. }
  18346. }
  18347. this.Stbodywidth =
  18348. document.getElementsByClassName("student_body").length &&
  18349. document.getElementsByClassName("student_body")[0].offsetWidth;
  18350. },
  18351. closeDraw() {
  18352. this.bg = null;
  18353. this.drawShow = false;
  18354. },
  18355. showPicturePaint(url) {
  18356. let params = {
  18357. img: url,
  18358. };
  18359. this.ajax
  18360. .get(this.$store.state.api + "imgToBase64", params)
  18361. .then((res) => {
  18362. this.drawShow = true;
  18363. this.bg = res.data[0].img;
  18364. })
  18365. .catch((err) => {
  18366. console.error(err);
  18367. });
  18368. },
  18369. addImgDraw(base64) {
  18370. let file = { name: "批注图.png" };
  18371. let img = this.dataUrlToFile(base64, file);
  18372. this.beforeUpload1(img, 5);
  18373. },
  18374. addImgDrawImG(url) {
  18375. // console.log(url);
  18376. let params = [
  18377. {
  18378. wid: this.commentDetail.wid,
  18379. img: url,
  18380. },
  18381. ];
  18382. this.ajax
  18383. .post(this.$store.state.api + "updateCourseWorks", params)
  18384. .then((res) => {
  18385. this.$message({
  18386. message: "提交成功",
  18387. type: "success",
  18388. });
  18389. this.drawShow = false;
  18390. this.bg = "";
  18391. this.selectSWorks();
  18392. this.selectStudent();
  18393. })
  18394. .catch((err) => {
  18395. this.$message.error("提交失败");
  18396. console.error(err);
  18397. });
  18398. },
  18399. deletePicturePaint() {
  18400. this.$confirm("确定删除此批注吗?", "提示", {
  18401. confirmButtonText: "确定",
  18402. cancelButtonText: "取消",
  18403. type: "warning",
  18404. })
  18405. .then(() => {
  18406. let params = [
  18407. {
  18408. wid: this.commentDetail.wid,
  18409. img: "",
  18410. },
  18411. ];
  18412. this.ajax
  18413. .post(this.$store.state.api + "updateCourseWorks", params)
  18414. .then((res) => {
  18415. this.$message({
  18416. message: "删除成功",
  18417. type: "success",
  18418. });
  18419. this.selectSWorks();
  18420. this.selectStudent();
  18421. })
  18422. .catch((err) => {
  18423. this.$message.error("删除失败");
  18424. console.error(err);
  18425. });
  18426. })
  18427. .catch(() => {});
  18428. },
  18429. getAudioVideo(constraintsData) {
  18430. if (navigator.mediaDevices === undefined) {
  18431. navigator.mediaDevices = {};
  18432. }
  18433. if (navigator.mediaDevices.getUserMedia === undefined) {
  18434. navigator.mediaDevices.getUserMedia = function (constraints) {
  18435. // 首先,如果有getUserMedia的话,就获得它
  18436. var getUserMedia =
  18437. navigator.getUserMedia ||
  18438. navigator.webkitGetUserMedia ||
  18439. navigator.mozGetUserMedia ||
  18440. navigator.msGetUserMedia;
  18441. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  18442. if (!getUserMedia) {
  18443. return Promise.reject({ code: 404 });
  18444. }
  18445. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  18446. return new Promise(function (resolve, reject) {
  18447. getUserMedia.call(navigator, constraints, resolve, reject);
  18448. });
  18449. };
  18450. }
  18451. return navigator.mediaDevices.getUserMedia(constraintsData);
  18452. },
  18453. /**
  18454. * 开始录制
  18455. */
  18456. startRecording(callback) {
  18457. let _function = (screenStream) => {
  18458. this.addStreamStopListener(screenStream, () => {
  18459. console.log("流停止监听");
  18460. this.stopRecording();
  18461. this.$emit("streamStop", {});
  18462. // this.stopRecording();
  18463. });
  18464. var options = {
  18465. type: "video",
  18466. mimeType: "video/webm",
  18467. disableLogs: false,
  18468. getNativeBlob: false, // enable it for longer recordings
  18469. ignoreMutedMedia: false,
  18470. };
  18471. // this.video.srcObject = screenStream;
  18472. this.recorder = RecordRTC(screenStream, options);
  18473. this.recorder.startRecording();
  18474. this.recorder.screen = screenStream;
  18475. this.videoStart = true;
  18476. // callback(true);
  18477. };
  18478. this.getAudioVideo({ audio: true })
  18479. .then((res) => {
  18480. this.captureScreen(_function, true);
  18481. console.log("已点击允许,开启成功");
  18482. })
  18483. .catch((err) => {
  18484. // console.log('浏览器不支持,请更换浏览器')
  18485. // } else {
  18486. this.captureScreen(_function, false);
  18487. console.log("请检查是否存在麦克风");
  18488. });
  18489. },
  18490. /**
  18491. * 停止录制
  18492. */
  18493. stopRecording(callback) {
  18494. this.recorder.stopRecording(() => {
  18495. // this.video.src = this.video.srcObject = null;
  18496. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  18497. const url = URL.createObjectURL(this.recorder.getBlob());
  18498. const a = document.createElement("a"); //this.fileName+
  18499. let videoFile = new File(
  18500. [this.recorder.getBlob()],
  18501. this.courseDetail.title + "录屏.mp4",
  18502. {
  18503. type: "video/mp4",
  18504. }
  18505. );
  18506. let downloadUrl = URL.createObjectURL(videoFile);
  18507. document.body.appendChild(a);
  18508. a.style.display = "none";
  18509. a.href = url;
  18510. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  18511. a.click();
  18512. this.recorder.screen.stop();
  18513. this.recorder.destroy();
  18514. this.recorder = null;
  18515. this.videoStart = false;
  18516. // callback(false);
  18517. });
  18518. },
  18519. //初始化
  18520. captureScreen(callback, type) {
  18521. if (navigator.getDisplayMedia) {
  18522. //录制结束,文件下载
  18523. navigator
  18524. .getDisplayMedia({
  18525. video: true,
  18526. })
  18527. .then((screenStream) => {
  18528. if (type) {
  18529. navigator.mediaDevices
  18530. .getUserMedia({ audio: true })
  18531. .then((mic) => {
  18532. screenStream.addTrack(mic.getTracks()[0]);
  18533. callback(screenStream);
  18534. });
  18535. } else {
  18536. callback(screenStream);
  18537. }
  18538. })
  18539. .catch(function (error) {
  18540. console.log("error", error);
  18541. });
  18542. } else if (navigator.mediaDevices.getDisplayMedia) {
  18543. navigator.mediaDevices
  18544. .getDisplayMedia({
  18545. video: true,
  18546. })
  18547. .then((screenStream) => {
  18548. if (type) {
  18549. navigator.mediaDevices
  18550. .getUserMedia({ audio: true })
  18551. .then((mic) => {
  18552. screenStream.addTrack(mic.getTracks()[0]);
  18553. callback(screenStream);
  18554. });
  18555. } else {
  18556. callback(screenStream);
  18557. }
  18558. })
  18559. .catch(function (error) {
  18560. console.log("error", error);
  18561. });
  18562. } else {
  18563. var error = "getDisplayMedia API are not supported in this browser.";
  18564. console.log("error", error);
  18565. alert(error);
  18566. }
  18567. },
  18568. //流监听
  18569. addStreamStopListener(stream, callback) {
  18570. stream.addEventListener(
  18571. "ended",
  18572. function () {
  18573. callback();
  18574. callback = function () {};
  18575. },
  18576. false
  18577. );
  18578. stream.addEventListener(
  18579. "inactive",
  18580. function () {
  18581. callback();
  18582. callback = function () {};
  18583. },
  18584. false
  18585. );
  18586. stream.getTracks().forEach(function (track) {
  18587. track.addEventListener(
  18588. "ended",
  18589. function () {
  18590. callback();
  18591. callback = function () {};
  18592. },
  18593. false
  18594. );
  18595. track.addEventListener(
  18596. "inactive",
  18597. function () {
  18598. callback();
  18599. callback = function () {};
  18600. },
  18601. false
  18602. );
  18603. });
  18604. },
  18605. updateGroup() {
  18606. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18607. this.dialogVisibleGroup2 = true;
  18608. },
  18609. numberPan() {
  18610. if (
  18611. /[^\d]/.test(this.groupJson.number) ||
  18612. this.groupJson.number < 2 ||
  18613. this.groupJson.number > 10
  18614. ) {
  18615. this.$message.error("请输入2-10的数字");
  18616. this.groupJson.number = "";
  18617. }
  18618. },
  18619. updateGroupJson() {
  18620. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  18621. if (
  18622. this.groupStudentUid[this.toolindex][i].length >
  18623. this.groupJson2.number
  18624. ) {
  18625. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  18626. return;
  18627. }
  18628. }
  18629. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  18630. this.islock = this.groupJson.islock == 1 ? true : false;
  18631. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18632. this.taskCount
  18633. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  18634. let params = [
  18635. {
  18636. cid: this.id,
  18637. chapters: JSON.stringify(this.chapInfoList),
  18638. uid: this.userid,
  18639. unitIndex: this.courseType,
  18640. },
  18641. ];
  18642. this.ajax
  18643. .post(this.$store.state.api + "updateTrainCourseNew4", params)
  18644. .then((res) => {
  18645. this.$message.success("设置成功");
  18646. this.getCourseDetail(2);
  18647. this.dialogVisibleGroup2 = false;
  18648. this.groupJson2 = {};
  18649. this.$forceUpdate();
  18650. })
  18651. .catch((err) => {
  18652. this.$message.error("网络不佳");
  18653. console.error(err);
  18654. });
  18655. },
  18656. lockChair() {
  18657. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  18658. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  18659. this.updateGroupJson();
  18660. },
  18661. selectGroup(index) {
  18662. this.getCourseDetail(2, index);
  18663. },
  18664. joinGroup(index) {
  18665. if (this.groupJson.islock == 2) {
  18666. this.$message.error("位置已被锁定,无法加入");
  18667. return;
  18668. }
  18669. if (
  18670. this.groupStudent[this.toolindex][index].length >
  18671. this.groupJson.number ||
  18672. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  18673. ) {
  18674. this.$message.error("位置已满,无法加入");
  18675. return;
  18676. }
  18677. let params = [
  18678. {
  18679. cid: this.id,
  18680. stage: this.courseType,
  18681. task: this.taskCount,
  18682. tool: this.toolindex,
  18683. g: index,
  18684. uid: this.userid,
  18685. },
  18686. ];
  18687. this.ajax
  18688. .post(this.$store.state.api + "joinGroup", params)
  18689. .then((res) => {
  18690. this.$message.success("加入成功");
  18691. this.getCourseDetail(2);
  18692. })
  18693. .catch((err) => {
  18694. this.$message.error("网络不佳");
  18695. console.error(err);
  18696. });
  18697. },
  18698. exitGroup(id) {
  18699. if (this.groupJson.islock == 2) {
  18700. this.$message.error("位置已被锁定,无法退出");
  18701. return;
  18702. }
  18703. let params = [
  18704. {
  18705. gid: id,
  18706. },
  18707. ];
  18708. this.ajax
  18709. .post(this.$store.state.api + "exitGroup", params)
  18710. .then((res) => {
  18711. this.$message.success("退出成功");
  18712. this.getCourseDetail(2);
  18713. })
  18714. .catch((err) => {
  18715. this.$message.error("网络不佳");
  18716. console.error(err);
  18717. });
  18718. },
  18719. groupUpload(index, task, gindex) {
  18720. this.taskCount = task;
  18721. this.toolindex = index;
  18722. this.groupIndex = gindex;
  18723. this.dialogVisibleGroupWork = true;
  18724. },
  18725. updateGroupChair(user) {
  18726. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  18727. el.label = index;
  18728. return index != user.group;
  18729. });
  18730. this.updateGroupUser = user;
  18731. this.dialogVisibleUpdateGroup = true;
  18732. },
  18733. updateChair() {
  18734. if (
  18735. this.groupStudent[this.toolindex][this.checkChair].length >
  18736. this.groupJson.number ||
  18737. this.groupStudent[this.toolindex][this.checkChair].length ==
  18738. this.groupJson.number
  18739. ) {
  18740. this.$message.error("位置已满,无法加入");
  18741. return;
  18742. }
  18743. let params = [
  18744. {
  18745. cid: this.id,
  18746. stage: this.courseType,
  18747. task: this.taskCount,
  18748. tool: this.toolindex,
  18749. g: this.checkChair,
  18750. uid: this.updateGroupUser.userid,
  18751. },
  18752. ];
  18753. this.ajax
  18754. .post(this.$store.state.api + "joinGroup", params)
  18755. .then((res) => {
  18756. this.$message.success("修改成功");
  18757. this.updateGroupUser = {};
  18758. this.checkChair = "";
  18759. this.updateGroupArray = {};
  18760. this.dialogVisibleUpdateGroup = false;
  18761. this.getCourseDetail(2);
  18762. })
  18763. .catch((err) => {
  18764. this.$message.error("网络不佳");
  18765. console.error(err);
  18766. });
  18767. },
  18768. deleteGroupChair(gindex) {
  18769. this.checkDeleteGroup = [];
  18770. this.deleteGroupUser = JSON.parse(
  18771. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  18772. );
  18773. this.deleteGroupArray = this.groupJson.group[gindex];
  18774. this.groupIndex = gindex;
  18775. this.dialogVisibleDeleteGroup = true;
  18776. },
  18777. async deleteChair() {
  18778. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  18779. const gid =
  18780. this.groupStudent[this.toolindex][this.groupIndex][
  18781. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  18782. this.checkDeleteGroup[i]
  18783. )
  18784. ];
  18785. let params = [
  18786. {
  18787. gid: gid.id,
  18788. },
  18789. ];
  18790. var a = await this.deleteChairA(params);
  18791. if (i == this.checkDeleteGroup.length - 1) {
  18792. this.$message.success("退出成功");
  18793. this.dialogVisibleDeleteGroup = false;
  18794. this.deleteGroupUser = [];
  18795. this.deleteGroupArray = {};
  18796. this.groupIndex = "";
  18797. this.checkDeleteGroup = [];
  18798. this.getCourseDetail(2);
  18799. }
  18800. }
  18801. },
  18802. deleteChairA(params) {
  18803. return new Promise((resolve, reject) => {
  18804. this.ajax
  18805. .post(this.$store.state.api + "exitGroup", params)
  18806. .then((res) => {
  18807. resolve(1);
  18808. })
  18809. .catch((err) => {
  18810. this.$message.error("网络不佳");
  18811. console.error(err);
  18812. });
  18813. });
  18814. },
  18815. contract(i) {
  18816. if (this.isCloseList[i].isClose == 0) {
  18817. this.isCloseList[i].isClose = 1;
  18818. } else {
  18819. this.isCloseList[i].isClose = 0;
  18820. }
  18821. this.$forceUpdate();
  18822. },
  18823. openWordCloud(toolindex) {
  18824. let array = [];
  18825. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  18826. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  18827. array.push({ name: works });
  18828. }
  18829. if (this.isGroup) {
  18830. for (var i = 0; i < this.courseGroup.group.length; i++) {
  18831. let works = this.courseGroup.group[i].works[toolindex];
  18832. for (var j = 0; j < works.length; j++) {
  18833. let answer = JSON.parse(works[j].works)[0].answer;
  18834. array.push({ name: answer });
  18835. }
  18836. }
  18837. }
  18838. this.wordCloudData = array;
  18839. this.dialogVisibleWordCloud = true;
  18840. },
  18841. openTips(i) {
  18842. this.tipsIndex = i;
  18843. this.downDialogVisible = true;
  18844. },
  18845. uploadWorks() {
  18846. this.$confirm("确定导出作业吗?", "提示", {
  18847. confirmButtonText: "确定",
  18848. cancelButtonText: "取消",
  18849. type: "warning",
  18850. })
  18851. .then(() => {
  18852. const loading = this.$loading.service({
  18853. background: "rgba(255, 255, 255, 0.7)",
  18854. target: document.body,
  18855. text: "文件加载中...",
  18856. });
  18857. const _worksStudent = this.worksStudent;
  18858. let url = [];
  18859. var counts = {};
  18860. for (var l = 0; l < _worksStudent[i].length; l++) {
  18861. var item = _worksStudent[i][l];
  18862. var name = item.sName;
  18863. if (!counts.hasOwnProperty(name)) {
  18864. counts[name] = 0;
  18865. } else {
  18866. counts[name]++;
  18867. }
  18868. if (counts[name] > 0) {
  18869. item.sName += " (" + counts[name] + ")";
  18870. }
  18871. }
  18872. for (var l = 0; l < _worksStudent[i].length; l++) {
  18873. var item = _worksStudent[i][l];
  18874. if (
  18875. item.works.indexOf(
  18876. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  18877. ) !== -1 &&
  18878. item.works.indexOf("img") === -1
  18879. ) {
  18880. url.push({ name: item.sName, url: item.works });
  18881. }
  18882. }
  18883. // var toolList = [
  18884. // { name: "电子白板", tool: 1 },
  18885. // { name: "思维导图", tool: 3 },
  18886. // { name: "协同文档", tool: 6 },
  18887. // { name: "思维网格", tool: 7 },
  18888. // { name: "素材库", tool: 8 },
  18889. // { name: "学习资料", tool: 17 },
  18890. // { name: "便签", tool: 2 },
  18891. // { name: "问卷调查", tool: 4 },
  18892. // { name: "选择题", tool: 45 },
  18893. // { name: "倒计时", tool: 10 },
  18894. // { name: "问答", tool: 15 },
  18895. // { name: "课程设计", tool: 26 },
  18896. // { name: "训练服务器", tool: 18 },
  18897. // { name: "作业提交", tool: 16 },
  18898. // { name: "批量上传", tool: 50 },
  18899. // { name: "AIoT Blockly", tool: 21 },
  18900. // { name: "AI Python", tool: 23 },
  18901. // { name: "AI Blockly", tool: 24 },
  18902. // { name: "目标管理", tool: 25 },
  18903. // { name: "数学画板", tool: 31 },
  18904. // { name: "翻译", tool: 28 },
  18905. // { name: "魔盒识字", tool: 37 },
  18906. // { name: "数学画板", tool: 31 },
  18907. // { name: "24点", tool: 38 },
  18908. // { name: "GeoGebra", tool: 39 },
  18909. // { name: "源码编辑", tool: 32 },
  18910. // { name: "个人评价", tool: 40 },
  18911. // { name: "选择匹配", tool: 41 },
  18912. // { name: "汉字宫", tool: 44 },
  18913. // { name: "排序", tool: 47 },
  18914. // { name: "表格", tool: 48 },
  18915. // { name: "文档", tool: 52 },
  18916. // { name: "学生分组", tool: 49 },
  18917. // { name: "CocoPi", tool: 57 },
  18918. // { name: "模拟驾驶", tool: 58 },
  18919. // { name: "路径搜索", tool: 59 },
  18920. // { name: "深度学习", tool: 60 },
  18921. // { name: "全历史", tool: 61 },
  18922. // { name: "交互视频", tool: 62 },
  18923. // { name: "海龟编程", tool: 63 },
  18924. // { name: "挑人", tool: 65 },
  18925. // { name: "公式编辑", tool: 66 },
  18926. // { name: "分子结构", tool: 67 },
  18927. // { name: "时间轴", tool: 68 },
  18928. // ];
  18929. // var toolName = "";
  18930. // for(var w = 0;w<toolList.length;w++){
  18931. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  18932. // toolName = toolList[w].name;
  18933. // }
  18934. // }
  18935. console.log(url);
  18936. this.downLoadAll(url, loading);
  18937. })
  18938. .catch(() => {});
  18939. },
  18940. downLoadAll(url, loading) {
  18941. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  18942. const zip = new JSZip();
  18943. const cache = {};
  18944. const promises = [];
  18945. data.forEach((item) => {
  18946. const promise = getFile(item.url).then((data) => {
  18947. if (data.data != 1) {
  18948. // 下载文件, 并存成ArrayBuffer对象
  18949. const file_name =
  18950. item.name +
  18951. "." +
  18952. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  18953. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  18954. cache[file_name] = data.data;
  18955. }
  18956. });
  18957. promises.push(promise);
  18958. });
  18959. Promise.all(promises).then(() => {
  18960. zip.generateAsync({ type: "blob" }).then((content) => {
  18961. // 生成二进制流
  18962. FileSaver.saveAs(
  18963. content,
  18964. this.courseDetail.title + "-" + "作业提交工具.zip"
  18965. ); // 利用file-saver保存文件 自定义文件名
  18966. setTimeout(() => {
  18967. loading.close();
  18968. }, 2000);
  18969. });
  18970. });
  18971. },
  18972. pickStudent(stu) {
  18973. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  18974. return;
  18975. }
  18976. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  18977. confirmButtonText: "确定",
  18978. cancelButtonText: "取消",
  18979. type: "warning",
  18980. })
  18981. .then(() => {
  18982. let params = [
  18983. {
  18984. uid: stu.userid,
  18985. cid: this.id,
  18986. stage: this.courseType,
  18987. task: this.taskCount,
  18988. tool: this.toolindex,
  18989. },
  18990. ];
  18991. this.ajax
  18992. .post(this.$store.state.api + "updateCoursePick", params)
  18993. .then((res) => {
  18994. this.$message.success("操作成功");
  18995. this.getPick();
  18996. })
  18997. .catch((err) => {
  18998. this.$message.error("网络不佳");
  18999. console.error(err);
  19000. });
  19001. })
  19002. .catch(() => {});
  19003. },
  19004. selectUser(){
  19005. let params = {
  19006. userid: this.userid,
  19007. };
  19008. this.ajax
  19009. .get(this.$store.state.api + "selectUser", params)
  19010. .then((res) => {
  19011. this.userMes = res.data[0];
  19012. })
  19013. .catch((err) => {
  19014. console.error(err);
  19015. });
  19016. },
  19017. setEngText(i){
  19018. this.newEngIndex = i;
  19019. this.$forceUpdate();
  19020. },
  19021. addCorrect(){
  19022. this.$confirm("你确定提交批改嘛?", "提示", {
  19023. confirmButtonText: "确定",
  19024. showCancelButton: false,
  19025. closeOnClickModal: false,
  19026. type: "warning",
  19027. })
  19028. .then(() => {
  19029. let params = {
  19030. cid: this.id,
  19031. s: parseInt(this.courseType),
  19032. t: this.taskCount,
  19033. tool: this.toolindex,
  19034. wid: this.engWid,
  19035. c: this.userid,
  19036. 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) : "",
  19037. };
  19038. this.ajax
  19039. .get(this.$store.state.api + "addEngC", params)
  19040. .then((res) => {
  19041. this.$message.success("提交成功");
  19042. this.engUpdateDialogVisible = false;
  19043. })
  19044. .catch((err) => {
  19045. console.error(err);
  19046. });
  19047. })
  19048. .catch(() => {});
  19049. },
  19050. selectEngC(id,z){
  19051. let params = {
  19052. workid: id,
  19053. };
  19054. this.ajax
  19055. .get(this.$store.state.api + "selectEngC", params)
  19056. .then((res) => {
  19057. if(res.data[0].length == 0){
  19058. this.newEnglishList.engTitle = z.engTitle;
  19059. this.newEnglishList.engText = z.engText;
  19060. }else{
  19061. var a = res.data[0];
  19062. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  19063. if(this.userMes[0].type == 2){
  19064. var snum = 0;
  19065. for(var i = 0;i<a.length;i++){
  19066. if(this.userMes[0].userid == a[i].correct){
  19067. this.newEnglishList = JSON.parse(a[i].cWork);
  19068. snum = 1;
  19069. }
  19070. }
  19071. if(snum == 0){
  19072. this.newEnglishList = { engTitle:"",engText:"" };
  19073. this.newEnglishList.engTitle = z.engTitle;
  19074. this.newEnglishList.engText = z.engText;
  19075. }
  19076. }else if(this.userMes[0].type == 1){
  19077. var num = 0;
  19078. for(var w= 0;w<a.length;w++){
  19079. if(this.userMes[0].userid == a[w].correct){
  19080. num = 1;
  19081. }
  19082. }
  19083. if(num == 0){
  19084. this.isNoUserid = true;
  19085. var c = JSON.parse(JSON.stringify(z));
  19086. this.oldEnglishJson1 = c;
  19087. }else{
  19088. this.isNoUserid = false;
  19089. }
  19090. var b = a.sort((item, index) => {
  19091. console.log(item)
  19092. if (item.correct === this.userMes[0].userid) {
  19093. return -1; // 将a移到前面
  19094. } else if (index.correct === this.userMes[0].userid) {
  19095. return 1; // 将b移到前面
  19096. } else {
  19097. return 0; // 保持默认顺序
  19098. }
  19099. });
  19100. for(var p = 0;p<b.length;p++){
  19101. for(var y = 0;y<ppp.length;y++){
  19102. if(b[p].id == ppp[y].id){
  19103. b[p].cWork = JSON.parse(ppp[y].cWork);
  19104. break
  19105. }
  19106. }
  19107. }
  19108. this.newEnglishList1 = b;
  19109. }
  19110. }
  19111. this.greyType = false;
  19112. setTimeout(() => {
  19113. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19114. if(this.newEnglishList1.length > 0){
  19115. if(this.isNoUserid == true){
  19116. this.engListLength = this.newEnglishList1.length + 1;
  19117. this.newEngIndex = -1;
  19118. }else{
  19119. this.engListLength = this.newEnglishList1.length;
  19120. this.newEngIndex = 0;
  19121. }
  19122. }
  19123. if(this.userMes[0].type == 2){
  19124. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19125. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  19126. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  19127. }else if(this.newEngIndex == -1){
  19128. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  19129. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  19130. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  19131. }
  19132. }, 500);
  19133. this.engUpdateDialogVisible = true;
  19134. this.$forceUpdate();
  19135. })
  19136. .catch((err) => {
  19137. console.error(err);
  19138. });
  19139. },
  19140. getPick() {
  19141. let params = {
  19142. cid: this.id,
  19143. };
  19144. this.ajax
  19145. .get(this.$store.state.api + "getPick", params)
  19146. .then((res) => {
  19147. let array = [];
  19148. for (var i = 0; i < res.data[0].length; i++) {
  19149. array.push(res.data[0][i].userid);
  19150. }
  19151. this.isPickStudent = array;
  19152. if (array.indexOf(this.userid) !== -1) {
  19153. this.$confirm("你被老师选到啦!", "提示", {
  19154. confirmButtonText: "确定",
  19155. showCancelButton: false,
  19156. closeOnClickModal: false,
  19157. type: "warning",
  19158. })
  19159. .then(() => {
  19160. let pa = [
  19161. {
  19162. uid: this.userid,
  19163. cid: this.id,
  19164. },
  19165. ];
  19166. this.ajax
  19167. .post(this.$store.state.api + "deletePick", pa)
  19168. .then((res) => {
  19169. this.getPick();
  19170. })
  19171. .catch((err) => {
  19172. this.$message.error("网络不佳");
  19173. console.error(err);
  19174. });
  19175. })
  19176. .catch(() => {});
  19177. }
  19178. })
  19179. .catch((err) => {
  19180. this.$message.error("网络不佳");
  19181. console.error(err);
  19182. });
  19183. },
  19184. foldEva() {
  19185. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  19186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  19187. } else {
  19188. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  19189. setTimeout(() => {
  19190. this.checkEva();
  19191. setTimeout(() => {
  19192. this.checkEva();
  19193. }, 500);
  19194. }, 0);
  19195. }
  19196. this.$forceUpdate();
  19197. },
  19198. panToolHeight(tool) {
  19199. var _tool = document.querySelectorAll('#'+tool)[0]
  19200. var _toolA = _tool ? _tool.offsetHeight : 0
  19201. var _toolC = 0
  19202. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  19203. let boolean2 = (_toolA > _toolC) ? true : false
  19204. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  19205. this.$forceUpdate();
  19206. },
  19207. },
  19208. directives: {
  19209. // 使用局部注册指令的方式
  19210. resize: {
  19211. // 指令的名称
  19212. bind(el, binding) {
  19213. // el为绑定的元素,binding为绑定给指令的对象
  19214. let width = "",
  19215. height = "";
  19216. function isReize() {
  19217. const style = document.defaultView.getComputedStyle(el);
  19218. if (width !== style.width || height !== style.height) {
  19219. binding.value(); // 关键
  19220. }
  19221. width = style.width;
  19222. height = style.height;
  19223. }
  19224. el.__vueSetInterval__ = setInterval(isReize, 300);
  19225. },
  19226. unbind(el) {
  19227. clearInterval(el.__vueSetInterval__);
  19228. },
  19229. },
  19230. autoHeight: {
  19231. update(el, binding) {
  19232. const { value } = binding
  19233. if (value && typeof value === 'number') {
  19234. el.style.height = `${value}px`
  19235. } else {
  19236. el.style.height = 'auto'
  19237. }
  19238. },
  19239. componentUpdated(el) {
  19240. el.style.height = `${el.scrollHeight + 5}px`
  19241. },
  19242. },
  19243. },
  19244. beforeDestroy() {
  19245. window.onresize = null;
  19246. clearInterval(this.timer);
  19247. this.timer = null;
  19248. clearInterval(this.opertimer);
  19249. this.opertimer = null;
  19250. },
  19251. computed: {
  19252. getHeight(){
  19253. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  19254. },
  19255. contentConvent() {
  19256. return function (c) {
  19257. return c
  19258. ? c
  19259. .replaceAll(/\r\n/g, "<br/>")
  19260. .replaceAll(/\n/g, "<br/>")
  19261. .replaceAll(/\s/g, " &nbsp")
  19262. : "";
  19263. };
  19264. },
  19265. checkUpload() {
  19266. return function () {
  19267. var studentK = [];
  19268. if (this.plworkFile.length > 0) {
  19269. for (var z = 0; z < this.plworkFile.length; z++) {
  19270. studentK.push(this.plworkFile[z].username);
  19271. }
  19272. studentK = studentK.join(",");
  19273. }
  19274. var a = this.uploadStudentJuri.filter((el) => {
  19275. return studentK.indexOf(el.userid) == -1;
  19276. });
  19277. return a;
  19278. };
  19279. },
  19280. getSName() {
  19281. return function (name) {
  19282. var check = name;
  19283. this.uploadStudentJuri.forEach((el) => {
  19284. if (el.userid == check) {
  19285. check = el.name ? el.name : el.username;
  19286. }
  19287. });
  19288. return check;
  19289. };
  19290. },
  19291. getImgList() {
  19292. return function (val) {
  19293. let srcList = []; // 定义一个数组用来接收后面的img地址
  19294. val.replace(
  19295. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  19296. function (match, capture) {
  19297. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  19298. srcList.push(capture);
  19299. }
  19300. );
  19301. return srcList;
  19302. };
  19303. },
  19304. retrnToolHeight(){
  19305. return function (tool) {
  19306. var _tool = document.querySelectorAll('#'+tool)[0]
  19307. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  19308. };
  19309. },
  19310. Correct() {
  19311. return function (c) {
  19312. let w = "";
  19313. let a = this.correctWord;
  19314. for(var k = 0;k<a.length;k++){
  19315. //diffWordsWithSpace
  19316. if(a.length > 1){
  19317. if(a[k].added == true){
  19318. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19319. }else if(a[k].removed == true){
  19320. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19321. }else{
  19322. w += '<span>' + a[k].value + '</span>';
  19323. }
  19324. }else{
  19325. w = c
  19326. }
  19327. //diffChars方法
  19328. // if(w == ""){
  19329. // if(a.length > 1){
  19330. // if(a[k].added == true){
  19331. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19332. // }else if(a[k].removed == true){
  19333. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19334. // }
  19335. // }else{
  19336. // w = c
  19337. // }
  19338. // }else{
  19339. // if(k == a.length - 1){
  19340. // if(a[k].added == true){
  19341. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19342. // }else if(a[k].removed == true){
  19343. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19344. // }
  19345. // }else{
  19346. // if(a[k].added == true){
  19347. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  19348. // }else if(a[k].removed == true){
  19349. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  19350. // }
  19351. // }
  19352. // }
  19353. }
  19354. c = w;
  19355. return c;
  19356. };
  19357. },
  19358. },
  19359. mounted() {
  19360. document.body.addEventListener("click", (e) => {
  19361. if (this.isUpdateToolDetail1) {
  19362. this.updateToolDetail(this.toolDetailIndex);
  19363. }
  19364. });
  19365. if (this.screenType == 2) {
  19366. window.parent.postMessage({ allScreen: 4 }, "*");
  19367. } else if (this.screenType == 3) {
  19368. window.parent.postMessage({ allScreen: 5 }, "*");
  19369. } else if (this.screenType == 1) {
  19370. window.parent.postMessage({ allScreen: 6 }, "*");
  19371. }
  19372. this.setOperationTime();
  19373. this.selectEva();
  19374. this.getCourseDetail();
  19375. this.selectCount();
  19376. this.getHomeWork();
  19377. this.selectUser();
  19378. this.contentDialog = true;
  19379. this.setContent2(true);
  19380. if (this.tType == 4) {
  19381. this.pzDialog = true;
  19382. this.selectPz();
  19383. }
  19384. document.scrollingElement.scrollTop = 0;
  19385. window.addEventListener("resize", () => {
  19386. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  19387. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  19388. if (this.showType == 2 || this.showType == 3) {
  19389. document.getElementsByClassName("navBox")[0].style.height =
  19390. a - 40 + 0+ "px";
  19391. } else {
  19392. document.getElementsByClassName("navBox")[0].style.height =
  19393. a - 40 + "px";
  19394. }
  19395. });
  19396. let _this = this;
  19397. setTimeout(() => {
  19398. // _this.vedioTime = [];
  19399. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  19400. // _this.vedioTime[i] = document.getElementsByClassName(
  19401. // "vjs-duration-display"
  19402. // )[i].textContent;
  19403. // }
  19404. }, 1000);
  19405. },
  19406. };
  19407. </script>
  19408. <style scoped>
  19409. @media screen and (max-width: 1280px) {
  19410. /* .courseIndex > div:first-child(2) {
  19411. width: 15% !important;
  19412. } */
  19413. /* .navText {
  19414. width: 120px !important;
  19415. } */
  19416. .evaCss {
  19417. flex-direction: column !important;
  19418. align-items: center !important;
  19419. }
  19420. .elist_input {
  19421. width: 90% !important;
  19422. }
  19423. .dialog_diy1 >>> .el-dialog {
  19424. width: 100% !important;
  19425. }
  19426. .rightWidthCss {
  19427. width: 100% !important;
  19428. }
  19429. .dialog_diy3 >>> .el-dialog {
  19430. width: 100% !important;
  19431. }
  19432. .addToolCss {
  19433. right: 0 !important;
  19434. width: 100% !important;
  19435. min-width: unset !important;
  19436. }
  19437. }
  19438. .evaCssMax {
  19439. flex-direction: column !important;
  19440. align-items: center !important;
  19441. }
  19442. .dialog_diy >>> .el-dialog {
  19443. margin-top: 10vh !important;
  19444. }
  19445. .body_student {
  19446. width: 77%;
  19447. height: 100%;
  19448. position: absolute;
  19449. left: 22%;
  19450. top: 0;
  19451. }
  19452. .student_head {
  19453. width: 100%;
  19454. margin: 20px auto 0;
  19455. padding-bottom: 20px;
  19456. display: flex;
  19457. flex-direction: column;
  19458. flex-wrap: nowrap;
  19459. align-items: flex-start;
  19460. justify-content: flex-start;
  19461. }
  19462. .pb_left {
  19463. width: 20%;
  19464. margin-right: 10px;
  19465. background: rgb(255, 255, 255);
  19466. position: fixed;
  19467. height: calc(100% - 40px);
  19468. border-radius: 20px;
  19469. padding-bottom: 15px;
  19470. box-sizing: border-box;
  19471. }
  19472. .wheel > img,
  19473. .project > img,
  19474. .star > img,
  19475. .evaluate > img,
  19476. .up_photo > img,
  19477. .chapter_add > img,
  19478. .deleteWord > img,
  19479. .question > img,
  19480. .homework > img {
  19481. width: 100%;
  19482. height: 100%;
  19483. }
  19484. .upCover > img {
  19485. width: 131px;
  19486. height: 69px;
  19487. object-fit: cover;
  19488. }
  19489. .upCover {
  19490. width: calc(100% / 3.5);
  19491. position: relative;
  19492. margin: 0 15px 10px 0;
  19493. display: flex;
  19494. flex-direction: column;
  19495. flex-wrap: nowrap;
  19496. justify-content: center;
  19497. align-content: center;
  19498. align-items: center;
  19499. height: fit-content;
  19500. }
  19501. .upCover2 {
  19502. width: 100%;
  19503. position: relative;
  19504. margin: 0 15px 10px 0;
  19505. display: flex;
  19506. flex-direction: column;
  19507. flex-wrap: nowrap;
  19508. justify-content: center;
  19509. align-content: center;
  19510. align-items: center;
  19511. }
  19512. .upCover2 > img {
  19513. width: 100%;
  19514. height: 90px;
  19515. object-fit: contain;
  19516. }
  19517. .chapter_add {
  19518. width: 120px;
  19519. position: relative;
  19520. text-align: center;
  19521. }
  19522. .isAddThings {
  19523. margin-top: 20px;
  19524. position: relative;
  19525. text-align: center;
  19526. background: #f7f8fa;
  19527. height: 90px;
  19528. width: 90px;
  19529. display: flex;
  19530. flex-direction: column;
  19531. justify-content: center;
  19532. }
  19533. .deleteWord {
  19534. width: 22px;
  19535. height: 22px;
  19536. position: absolute;
  19537. right: -5px;
  19538. top: -5px;
  19539. cursor: pointer;
  19540. }
  19541. .box_course {
  19542. /* width: 60%; */
  19543. width: calc(100% - 300px);
  19544. }
  19545. .wheel {
  19546. width: 100%;
  19547. /* height: 100%; */
  19548. height: 650px;
  19549. }
  19550. .right_box {
  19551. display: flex;
  19552. flex-direction: column;
  19553. margin-left: 30px;
  19554. justify-content: space-around;
  19555. }
  19556. .right_box_title {
  19557. font-size: 23px;
  19558. }
  19559. .people {
  19560. display: flex;
  19561. }
  19562. .student_body {
  19563. width: 100%;
  19564. margin: 0 auto;
  19565. margin-top: 10px;
  19566. padding: 0 0 20px;
  19567. }
  19568. .study_top {
  19569. margin-top: 100px;
  19570. width: 100%;
  19571. height: auto;
  19572. padding-bottom: 20px;
  19573. }
  19574. .study_top .checkbox {
  19575. display: flex;
  19576. align-items: center;
  19577. padding: 15px 0 15px 30px;
  19578. flex: 0 0 auto;
  19579. font-weight: bold;
  19580. border-bottom: 1px solid #eee;
  19581. }
  19582. .study_top .check {
  19583. padding-bottom: 5px;
  19584. text-align: center;
  19585. cursor: pointer;
  19586. height: 30px;
  19587. box-sizing: border-box;
  19588. display: flex;
  19589. }
  19590. .study_top .checked {
  19591. border-bottom: 4px solid #3fc6a0;
  19592. padding-bottom: 5px;
  19593. color: #3fc6a0;
  19594. display: flex;
  19595. height: 35px;
  19596. }
  19597. .study_top .checked > div,
  19598. .study_top .check > div {
  19599. margin-right: 5px;
  19600. }
  19601. .videoTop {
  19602. display: flex;
  19603. flex-direction: row;
  19604. justify-content: space-between;
  19605. background: #fff;
  19606. align-items: center;
  19607. width: 95%;
  19608. padding: 20px;
  19609. }
  19610. .filebox {
  19611. display: flex;
  19612. flex-wrap: wrap;
  19613. flex-direction: column;
  19614. padding: 0 0 5px;
  19615. position: relative;
  19616. }
  19617. .filebox:before {
  19618. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  19619. position: absolute;
  19620. top: 20px;
  19621. left: 13px;
  19622. border-left: 2px dotted #cad1dc;
  19623. height: calc(100% - 15px);
  19624. }
  19625. .toolHeng2 > div:last-child::before {
  19626. height: calc(100% - 43px);
  19627. }
  19628. .filebox .tooldetail {
  19629. width: calc(100% - 280px);
  19630. margin: 0px 12px;
  19631. padding: 12px;
  19632. line-height: 30px;
  19633. word-break: break-word;
  19634. background: #ffffff;
  19635. border-radius: 8px 8px 8px 8px;
  19636. opacity: 1;
  19637. border: 1px solid #cad1dc;
  19638. overflow:hidden;
  19639. box-sizing:border-box;
  19640. }
  19641. .file {
  19642. display: flex;
  19643. flex-direction: column;
  19644. align-items: center;
  19645. justify-content: center;
  19646. cursor: pointer;
  19647. width: 200px;
  19648. }
  19649. .file div {
  19650. margin-top: 10px;
  19651. width: 150px;
  19652. text-align: center;
  19653. overflow: hidden;
  19654. white-space: nowrap;
  19655. text-overflow: ellipsis;
  19656. }
  19657. .media {
  19658. display: flex;
  19659. flex-direction: column;
  19660. align-items: center;
  19661. justify-content: center;
  19662. margin: 0 20px 20px 0;
  19663. cursor: pointer;
  19664. margin: 12px 0 5px 15px;
  19665. overflow: hidden;
  19666. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  19667. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  19668. box-sizing: border-box;
  19669. }
  19670. .media img {
  19671. height: 90px;
  19672. width: 160px;
  19673. object-fit: cover;
  19674. }
  19675. .media .title {
  19676. padding: 5px;
  19677. text-align: left;
  19678. width: 100%;
  19679. box-sizing: border-box;
  19680. }
  19681. .media .btn {
  19682. width: 100%;
  19683. height: 35px;
  19684. line-height: 35px;
  19685. color: #fff;
  19686. background: #606060;
  19687. text-align: center;
  19688. overflow: hidden;
  19689. white-space: nowrap;
  19690. text-overflow: ellipsis;
  19691. }
  19692. .detail_content_top {
  19693. width: 100%;
  19694. padding: 25px 0 25px 0;
  19695. }
  19696. .detail_title {
  19697. text-align: center;
  19698. font-size: 24px;
  19699. }
  19700. .detail_time {
  19701. font-size: 13px;
  19702. padding: 15px 0 0 40px;
  19703. }
  19704. .detail_content {
  19705. line-height: 2pc;
  19706. width: 90%;
  19707. margin: 0 auto;
  19708. padding-top: 30px;
  19709. text-indent: 30px;
  19710. overflow: auto;
  19711. height: 200px;
  19712. }
  19713. .score_box >>> .el-rate {
  19714. margin-left: 10px;
  19715. }
  19716. .dialog_change >>> .el-dialog {
  19717. border-radius: 5px;
  19718. }
  19719. .dialog_change >>> .el-dialog__header {
  19720. background: #f2f2f2;
  19721. text-align: center;
  19722. }
  19723. .dialog_change >>> .el-dialog__title {
  19724. line-height: 5px;
  19725. }
  19726. .dialog_change >>> .el-dialog__body {
  19727. background: #fff;
  19728. padding: 10px 20px;
  19729. }
  19730. .score_box {
  19731. display: flex;
  19732. align-items: center;
  19733. margin-bottom: 18px;
  19734. margin-top: 20px;
  19735. }
  19736. .up_photo {
  19737. width: 120px;
  19738. cursor: pointer;
  19739. margin-top: 10px;
  19740. }
  19741. .up_photo2 {
  19742. width: 180px;
  19743. box-sizing: border-box;
  19744. min-width: 180px;
  19745. height: 180px;
  19746. max-height: 180px;
  19747. min-height: 180px;
  19748. cursor: pointer;
  19749. display: flex;
  19750. flex-direction: column;
  19751. align-items: center;
  19752. justify-content: center;
  19753. background: rgb(242, 246, 255);
  19754. /* padding: 25px; */
  19755. margin-bottom: 10px;
  19756. }
  19757. .up_photo2 img {
  19758. width: 50%;
  19759. height: auto;
  19760. }
  19761. .up_photo2 span {
  19762. color: #898989;
  19763. }
  19764. .plworkBox {
  19765. display: flex;
  19766. align-items: center;
  19767. margin-top: 10px;
  19768. flex-wrap: wrap;
  19769. }
  19770. .upload_send {
  19771. margin: 30px auto 30px;
  19772. width: 60%;
  19773. background: #3681fc;
  19774. text-align: center;
  19775. height: 35px;
  19776. line-height: 35px;
  19777. color: #fff;
  19778. border-radius: 5px;
  19779. cursor: pointer;
  19780. }
  19781. .marginT {
  19782. margin-top: 20px;
  19783. }
  19784. .cd_content_steps {
  19785. display: flex;
  19786. width: 90%;
  19787. justify-content: space-around;
  19788. border-top: 1px solid #eeeeee;
  19789. }
  19790. .cd_steps_box {
  19791. display: flex;
  19792. justify-content: center;
  19793. align-items: center;
  19794. flex-direction: column;
  19795. cursor: pointer;
  19796. }
  19797. .first {
  19798. display: flex;
  19799. align-items: center;
  19800. margin: 15px 0 20px 0;
  19801. font-size: 20px;
  19802. }
  19803. .first > div:nth-child(2) {
  19804. font-size: 16px !important;
  19805. padding-left: 10px;
  19806. line-height: 26px;
  19807. box-sizing: border-box;
  19808. }
  19809. .blue_box_one {
  19810. text-align: center;
  19811. color: #fff;
  19812. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  19813. border-radius: 7px;
  19814. margin: 10px;
  19815. cursor: pointer;
  19816. width: 95%;
  19817. height: 45px;
  19818. display: flex;
  19819. flex-direction: row;
  19820. justify-content: flex-start;
  19821. align-items: center;
  19822. }
  19823. .blue_box_one > div:nth-child(1) {
  19824. line-height: 30px;
  19825. margin: 0 5px 0 10px;
  19826. width: 30%;
  19827. min-width: 70px;
  19828. border-radius: 4px;
  19829. }
  19830. .blue_box_one > div:nth-child(2) {
  19831. white-space: nowrap;
  19832. text-overflow: ellipsis;
  19833. overflow: hidden;
  19834. word-break: break-all;
  19835. width: 70%;
  19836. text-align: left;
  19837. margin-right: 10px;
  19838. max-width: calc(100% - 85px);
  19839. }
  19840. .blue_box_one > div:nth-child(2):hover {
  19841. overflow: hidden;
  19842. text-overflow: ellipsis;
  19843. white-space: nowrap;
  19844. cursor: pointer;
  19845. }
  19846. .upFile {
  19847. margin: 0 auto;
  19848. width: 120px;
  19849. background: #3681fc;
  19850. color: #fff;
  19851. height: 30px;
  19852. text-align: center;
  19853. line-height: 30px;
  19854. border-radius: 5px;
  19855. font-size: 14px;
  19856. cursor: pointer;
  19857. }
  19858. .courseTitle {
  19859. width: 85%;
  19860. margin: 10px auto 26px auto;
  19861. display: flex;
  19862. flex-direction: row;
  19863. align-items: center;
  19864. justify-content: space-between;
  19865. text-align: center;
  19866. }
  19867. .courseTitle .ctitle {
  19868. font-size: 20px;
  19869. font-weight: bold;
  19870. color: #0e1e33;
  19871. white-space: nowrap;
  19872. overflow: hidden;
  19873. text-overflow: ellipsis;
  19874. }
  19875. .inviteBox {
  19876. font-size: 14px;
  19877. /* margin-top: 5px; */
  19878. color: #00000099;
  19879. text-align: center;
  19880. }
  19881. .courseTitle >>> .el-tooltip {
  19882. width: 100%;
  19883. white-space: nowrap;
  19884. overflow: hidden;
  19885. text-overflow: ellipsis;
  19886. word-break: break-word;
  19887. }
  19888. .ml {
  19889. margin-left: 20px;
  19890. color: #5b7dba;
  19891. border-left: 3px solid #5b7dba;
  19892. padding-left: 5px;
  19893. font-weight: bold;
  19894. }
  19895. .return {
  19896. width: 2rem;
  19897. height: 2rem;
  19898. cursor: pointer;
  19899. }
  19900. .return > img {
  19901. width: 100%;
  19902. height: 100%;
  19903. }
  19904. .returnBtn {
  19905. width: 86px;
  19906. height: 36px;
  19907. background: #3681fc;
  19908. border-radius: 4px;
  19909. color: #fff;
  19910. text-align: center;
  19911. line-height: 36px;
  19912. margin-right: 20px;
  19913. cursor: pointer;
  19914. font-size: 14px;
  19915. font-weight: 400;
  19916. display: flex;
  19917. flex-direction: row;
  19918. flex-wrap: nowrap;
  19919. align-items: center;
  19920. justify-content: center;
  19921. }
  19922. .reBtnIcon,
  19923. .commentIcon,
  19924. .vedioIcon,
  19925. .vedioIcon1 {
  19926. /* width: 36px; */
  19927. height: 36px;
  19928. border-radius: 4px;
  19929. position: relative;
  19930. /* background: #e0eafb; */
  19931. background: #0061ff;
  19932. cursor: pointer;
  19933. margin-right: 12px;
  19934. display: flex;
  19935. align-items: center;
  19936. padding: 0 10px;
  19937. box-sizing: border-box;
  19938. font-size: 14px;
  19939. color: #fff;
  19940. }
  19941. .reBtnIcon::before,
  19942. .commentIcon::before,
  19943. .vedioIcon::before,
  19944. .vedioIcon1::before {
  19945. content: "";
  19946. display: block;
  19947. background-size: 100% 100%;
  19948. background-repeat: no-repeat;
  19949. width: 20px;
  19950. height: 20px;
  19951. margin-right: 5px;
  19952. /* position: absolute; */
  19953. /* top: 8px;
  19954. left: 8px; */
  19955. }
  19956. .vedioIcon1 {
  19957. background: #f63564;
  19958. }
  19959. .reBtnIcon::before {
  19960. background-image: url("../../../assets/icon/newIcons/refresh.png");
  19961. }
  19962. .commentIcon::before {
  19963. background-image: url("../../../assets/icon/newIcons/comment.png");
  19964. }
  19965. .vedioIcon::before {
  19966. background-image: url("../../../assets/icon/newIcons/transcribe.png");
  19967. }
  19968. .vedioIcon1::before {
  19969. /* background-image: url("../../../assets/icon/newIcons/istranscribe.png"); */
  19970. background-image: url("../../../assets/icon/newIcons/transcribe.png");
  19971. }
  19972. .tool {
  19973. display: flex;
  19974. flex-direction: column;
  19975. flex-wrap: nowrap;
  19976. width: 13%;
  19977. margin: 0 30px;
  19978. align-items: center;
  19979. position: relative;
  19980. padding: 10px 25px;
  19981. cursor: pointer;
  19982. }
  19983. .whiteBIcon {
  19984. width: 150px;
  19985. }
  19986. .whiteBIcon > img {
  19987. width: 100%;
  19988. height: 100%;
  19989. }
  19990. .mask {
  19991. background-color: rgba(0, 0, 0, 0);
  19992. position: fixed;
  19993. top: 0;
  19994. left: 0;
  19995. width: 100%;
  19996. height: 100%;
  19997. z-index: 20000;
  19998. display: flex;
  19999. align-items: center;
  20000. justify-content: center;
  20001. }
  20002. .progressBox {
  20003. width: 500px;
  20004. height: 180px;
  20005. background: #fff;
  20006. border-radius: 10px;
  20007. box-shadow: 0 0 6px 1px #bfbfbf;
  20008. display: flex;
  20009. align-items: center;
  20010. justify-content: center;
  20011. flex-direction: column;
  20012. position: relative;
  20013. color: #6c6c6c;
  20014. }
  20015. .progressBox >>> .el-progress-bar__outer {
  20016. background-color: #d1dfff !important;
  20017. }
  20018. .progressBox .lbox {
  20019. height: 50px;
  20020. font-size: 19px;
  20021. display: flex;
  20022. align-items: center;
  20023. color: #747474;
  20024. }
  20025. .progressBox .lbox img {
  20026. width: 40px;
  20027. margin-right: 20px;
  20028. }
  20029. .closeCss {
  20030. position: absolute;
  20031. top: 8px;
  20032. right: 8px;
  20033. cursor: pointer;
  20034. width: 20px;
  20035. height: 20px;
  20036. }
  20037. .closeCss > img {
  20038. width: 100%;
  20039. height: 100%;
  20040. }
  20041. .uploadVedio {
  20042. display: flex;
  20043. flex-direction: column;
  20044. flex-wrap: nowrap;
  20045. justify-content: center;
  20046. align-items: center;
  20047. margin: 0 15px 10px 0;
  20048. }
  20049. .uploadVedio > img {
  20050. width: 30px;
  20051. height: 30px;
  20052. }
  20053. .uploadVedio > span {
  20054. white-space: nowrap;
  20055. overflow: hidden;
  20056. text-overflow: ellipsis;
  20057. width: 75px;
  20058. margin-top: 7px;
  20059. }
  20060. .picName {
  20061. white-space: nowrap;
  20062. overflow: hidden;
  20063. text-overflow: ellipsis;
  20064. width: 75px;
  20065. margin-top: 7px;
  20066. }
  20067. .new_top {
  20068. display: flex;
  20069. background: #fff;
  20070. flex-direction: row;
  20071. justify-content: flex-start;
  20072. align-items: center;
  20073. height: 60px;
  20074. position: fixed;
  20075. top: 20px;
  20076. left: 22%;
  20077. width: 77%;
  20078. z-index: 999;
  20079. border-radius: 12px 12px 0 0;
  20080. border-bottom: 1px solid #cad1dc;
  20081. padding: 10px 0;
  20082. }
  20083. .new_topFixed {
  20084. width: 100%;
  20085. height: 40px;
  20086. position: fixed;
  20087. top: 0px;
  20088. display: block;
  20089. background: #f2f2f2;
  20090. z-index: 998;
  20091. }
  20092. .before {
  20093. position: absolute;
  20094. background: #c3dad4;
  20095. width: 6px;
  20096. height: 100%;
  20097. }
  20098. .courseIndex {
  20099. display: flex;
  20100. flex-direction: row;
  20101. align-items: center;
  20102. width: calc(100% - 745px);
  20103. }
  20104. .courseIndex > div:nth-child(1) {
  20105. margin: 0 0 0 10px;
  20106. font-size: 20px;
  20107. min-width: 100px;
  20108. font-weight: bold;
  20109. border-left: 4px solid #3363b9;
  20110. height: 32px;
  20111. text-align: center;
  20112. line-height: 35px;
  20113. }
  20114. .courseIndex > div:nth-child(2) {
  20115. font-size: 20px;
  20116. /* width: 300px; */
  20117. max-width: calc(100% - 105px);
  20118. white-space: nowrap;
  20119. overflow: hidden;
  20120. text-overflow: ellipsis;
  20121. }
  20122. .courseIndex > div:nth-child(3) {
  20123. border-bottom: 1px solid #d7d7d7;
  20124. padding-bottom: 5px;
  20125. background: #3681fc;
  20126. width: 55px;
  20127. min-width: 55px;
  20128. border-radius: 5px;
  20129. color: #fff;
  20130. text-align: center;
  20131. height: 20px;
  20132. line-height: 26px;
  20133. font-size: 14px;
  20134. margin: 0 0 0 10px;
  20135. }
  20136. .course_text {
  20137. padding: 20px 0 0 15px;
  20138. text-indent: 30px;
  20139. width: 80%;
  20140. min-height: 20px;
  20141. }
  20142. .vedioList {
  20143. background: #f2f2f2;
  20144. border: 1px solid #ececec;
  20145. /* width: 38.8%; */
  20146. /* width: 300px; */
  20147. width: 100%;
  20148. height: 445px;
  20149. border-radius: 10px;
  20150. overflow: hidden;
  20151. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  20152. }
  20153. .vedioNav {
  20154. margin: 10px 0 0 15px;
  20155. border-bottom: 1px solid #d7d7d7;
  20156. padding-bottom: 5px;
  20157. background: #3681fc;
  20158. width: 55px;
  20159. min-width: 55px;
  20160. border-radius: 5px;
  20161. color: #fff;
  20162. text-align: center;
  20163. height: 20px;
  20164. line-height: 26px;
  20165. font-size: 14px;
  20166. }
  20167. .queTop {
  20168. display: flex;
  20169. padding: 20px 0 20px 30px;
  20170. width: 100%;
  20171. flex-direction: row;
  20172. justify-content: flex-start;
  20173. align-items: center;
  20174. box-sizing: border-box;
  20175. }
  20176. .queTopTitle {
  20177. display: flex;
  20178. flex-direction: row;
  20179. flex-wrap: nowrap;
  20180. align-items: center;
  20181. font-weight: bold;
  20182. font-size: 20px;
  20183. color: rgb(14, 30, 51);
  20184. }
  20185. .queTopTitle::before {
  20186. content: "";
  20187. width: 2px;
  20188. height: 22px;
  20189. background: #3681fc;
  20190. border-radius: 3px;
  20191. display: block;
  20192. margin: 2px 6px 0 0;
  20193. }
  20194. .queTopRight {
  20195. display: flex;
  20196. flex-direction: row;
  20197. flex-wrap: nowrap;
  20198. align-items: center;
  20199. }
  20200. .queTopClose {
  20201. margin-right: 20px;
  20202. cursor: pointer;
  20203. position: relative;
  20204. display: flex;
  20205. }
  20206. .closeImg,
  20207. .openImg {
  20208. width: 25px;
  20209. height: 25px;
  20210. position: absolute;
  20211. left: -20px;
  20212. top: -1px;
  20213. }
  20214. .closeImg > img,
  20215. .openImg > img {
  20216. width: 100%;
  20217. height: 100%;
  20218. }
  20219. .question {
  20220. width: 40px;
  20221. margin-right: 10px;
  20222. margin-top: 7px;
  20223. }
  20224. .queTitle {
  20225. margin-left: 5px;
  20226. font-size: 25px;
  20227. display: flex;
  20228. align-items: center;
  20229. }
  20230. .addEditor {
  20231. width: 100px;
  20232. height: 30px;
  20233. background: #42cda6;
  20234. color: #fff;
  20235. border-radius: 5px;
  20236. text-align: center;
  20237. line-height: 30px;
  20238. box-shadow: 1px 3px 6px 1px #bfbfbf;
  20239. cursor: pointer;
  20240. }
  20241. /* .vedioName {
  20242. cursor: pointer;
  20243. margin: 0px 0px 10px 5px;
  20244. white-space: nowrap;
  20245. overflow: hidden;
  20246. text-overflow: ellipsis;
  20247. width: 100%;
  20248. } */
  20249. .vedioTime {
  20250. width: 35px;
  20251. position: absolute;
  20252. color: #fff;
  20253. bottom: 0px;
  20254. right: 0px;
  20255. text-align: center;
  20256. background: #46411f;
  20257. height: 20px;
  20258. font-size: 14px;
  20259. line-height: 20px;
  20260. }
  20261. .homework {
  20262. width: 200px;
  20263. display: flex;
  20264. flex-direction: column;
  20265. flex-wrap: nowrap;
  20266. align-items: center;
  20267. cursor: pointer;
  20268. }
  20269. .homebox {
  20270. display: flex;
  20271. flex-wrap: wrap;
  20272. flex-direction: row;
  20273. justify-content: flex-start;
  20274. align-items: center;
  20275. padding: 15px 0;
  20276. }
  20277. .isChooseActive {
  20278. color: #3681fc !important;
  20279. font-weight: bold !important;
  20280. }
  20281. .chooseWho {
  20282. display: flex;
  20283. width: 100%;
  20284. flex-direction: row;
  20285. flex-wrap: nowrap;
  20286. justify-content: flex-start;
  20287. padding-bottom: 10px;
  20288. }
  20289. .chooseWho > div {
  20290. cursor: pointer;
  20291. padding-bottom: 10px;
  20292. margin: 0 30px 0 0;
  20293. font-weight: 400;
  20294. color: #0e1e33;
  20295. }
  20296. .addPoint > div > img {
  20297. cursor: pointer;
  20298. width: 85px;
  20299. border-radius: 15px;
  20300. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  20301. }
  20302. .addPoint > div {
  20303. display: flex;
  20304. flex-direction: column;
  20305. flex-wrap: nowrap;
  20306. align-items: center;
  20307. }
  20308. .isBorder > div {
  20309. margin: 0 0 10px 0;
  20310. align-items: flex-start !important;
  20311. }
  20312. .noiframeBox {
  20313. display: flex;
  20314. flex-wrap: wrap;
  20315. }
  20316. .iframeBox iframe {
  20317. width: 100%;
  20318. height: 800px;
  20319. border: none;
  20320. margin-bottom: 20px;
  20321. border: 1px solid #ccc;
  20322. }
  20323. .upload_toolBtn {
  20324. background: #3681fc;
  20325. color: #fff;
  20326. width: 110px;
  20327. text-align: center;
  20328. height: 35px;
  20329. line-height: 35px;
  20330. font-size: 14px;
  20331. border-radius: 5px;
  20332. cursor: pointer;
  20333. position: absolute;
  20334. right: 10px;
  20335. bottom: 0;
  20336. }
  20337. .binfo_input,
  20338. .pj {
  20339. font: inherit;
  20340. color: currentColor;
  20341. width: 100%;
  20342. margin: 0;
  20343. padding: 15px 14px;
  20344. display: block;
  20345. min-width: 0;
  20346. outline: none;
  20347. box-sizing: content-box;
  20348. background: none;
  20349. -webkit-tap-highlight-color: transparent;
  20350. border: 1px solid rgba(0, 0, 0, 0.23);
  20351. border-radius: 4px;
  20352. box-sizing: border-box;
  20353. resize: none;
  20354. }
  20355. .binfo_input:focus-visible {
  20356. border: 1px solid rgba(61, 103, 188);
  20357. }
  20358. .dialog_diy >>> .el-dialog__header,
  20359. .dialog_diy1 >>> .el-dialog__header {
  20360. background: #454545 !important;
  20361. padding: 15px 20px;
  20362. }
  20363. .dialog_diy >>> .el-dialog__title,
  20364. .dialog_diy1 >>> .el-dialog__title {
  20365. color: #fff;
  20366. }
  20367. .dialog_diy >>> .el-dialog__headerbtn,
  20368. .dialog_diy1 >>> .el-dialog__headerbtn {
  20369. top: 19px;
  20370. }
  20371. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  20372. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  20373. color: #fff;
  20374. }
  20375. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  20376. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  20377. color: #fff;
  20378. }
  20379. .dialog_diy1 >>> .el-dialog__body {
  20380. padding: 0;
  20381. }
  20382. .dialog_diy >>> .el-dialog__body,
  20383. .dialog_diy >>> .el-dialog__footer,
  20384. .dialog_diy1 >>> .el-dialog__footer {
  20385. background: #fafafa;
  20386. }
  20387. .a_addBox {
  20388. padding: 0 0 0 15px;
  20389. }
  20390. .a_add_box {
  20391. padding: 10px;
  20392. background: #fff;
  20393. margin-bottom: 10px;
  20394. border-radius: 5px;
  20395. box-shadow: 0 0 5px 0 #d5d5d5;
  20396. }
  20397. .a_add_head {
  20398. display: flex;
  20399. align-items: flex-start;
  20400. /* justify-content: space-between; */
  20401. flex-direction: column;
  20402. /* flex-direction: row; */
  20403. margin: 10px 0 20px 0;
  20404. font-size: 18px;
  20405. width: 100%;
  20406. }
  20407. .askIndex {
  20408. background: #3681fc;
  20409. border-radius: 50%;
  20410. color: #fff;
  20411. width: 25px;
  20412. height: 25px;
  20413. min-width: 25px;
  20414. min-height: 25px;
  20415. text-align: center;
  20416. line-height: 25px;
  20417. margin-right: 5px;
  20418. }
  20419. .a_add_head .a_add_head_input {
  20420. width: 300px;
  20421. }
  20422. .a_add_head .a_add_head_div {
  20423. display: flex;
  20424. align-items: center;
  20425. justify-content: space-between;
  20426. }
  20427. .a_add_body {
  20428. display: flex;
  20429. align-items: center;
  20430. }
  20431. .a_add_input {
  20432. display: flex;
  20433. align-items: center;
  20434. flex-wrap: wrap;
  20435. width: 100%;
  20436. }
  20437. .a_add_input >>> .el-radio-group,
  20438. .a_add_input >>> .el-checkbox-group {
  20439. width: 100%;
  20440. }
  20441. .a_add_input >>> .el-radio,
  20442. .a_add_input >>> .el-checkbox {
  20443. display: flex;
  20444. flex-direction: row;
  20445. flex-wrap: nowrap;
  20446. align-items: center;
  20447. padding: 15px 0;
  20448. }
  20449. .a_add_input >>> .el-radio:not(:last-child),
  20450. .a_add_input >>> .el-checkbox:not(:last-child) {
  20451. width: 100%;
  20452. border-bottom: 1px solid #efefef;
  20453. }
  20454. .redioStyle >>> .el-radio__label {
  20455. font-size: 18px;
  20456. }
  20457. .redioStyle >>> .el-radio__label > span,
  20458. .redioStyle >>> .el-checkbox__label > span {
  20459. word-break: break-all;
  20460. white-space: normal;
  20461. }
  20462. .redioStyle >>> .el-checkbox__label {
  20463. font-size: 18px;
  20464. }
  20465. .toolHeng2 {
  20466. width: 100%;
  20467. padding-left: 37px;
  20468. box-sizing: border-box;
  20469. }
  20470. .workNav {
  20471. font-size: 20px;
  20472. font-weight: bold;
  20473. color: #0e1e33;
  20474. display: flex;
  20475. flex-direction: row;
  20476. flex-wrap: nowrap;
  20477. align-items: center;
  20478. padding: 15px 0 15px 0;
  20479. }
  20480. .workNav::before {
  20481. content: "";
  20482. width: 2px;
  20483. height: 22px;
  20484. background: #3681fc;
  20485. border-radius: 3px;
  20486. display: block;
  20487. margin: 2px 6px 0 0;
  20488. }
  20489. .toolHeng {
  20490. display: flex;
  20491. flex-direction: row;
  20492. flex-wrap: wrap;
  20493. justify-content: flex-start;
  20494. align-items: center;
  20495. width: 100%;
  20496. }
  20497. .toolHeng > div {
  20498. padding-left: 20px;
  20499. }
  20500. .isWidth {
  20501. width: 20%;
  20502. }
  20503. .textTitle {
  20504. display: flex;
  20505. flex-direction: row;
  20506. flex-wrap: nowrap;
  20507. align-items: center;
  20508. width: 95%;
  20509. }
  20510. .textTitle >>> .el-form-item__label {
  20511. font-size: 22px;
  20512. color: #918f8f;
  20513. width: 100px;
  20514. }
  20515. .textTitle >>> .el-form-item__content {
  20516. width: calc(100% - 100px);
  20517. }
  20518. .textCss >>> .el-dialog {
  20519. width: 800px !important;
  20520. height: 400px;
  20521. background: #fafafa;
  20522. }
  20523. .textCss >>> .el-dialog__body {
  20524. margin: 55px 8% 0 8%;
  20525. padding: 0 !important;
  20526. }
  20527. .textCss >>> .el-dialog__footer {
  20528. padding-top: 38px;
  20529. }
  20530. .toolsCss >>> .el-dialog__body {
  20531. padding: 20px;
  20532. }
  20533. .lineCss >>> .el-dialog__body {
  20534. display: flex;
  20535. flex-direction: row;
  20536. align-items: center;
  20537. justify-content: center;
  20538. }
  20539. .newNav {
  20540. display: flex;
  20541. flex-direction: row;
  20542. align-items: baseline;
  20543. justify-content: flex-start;
  20544. }
  20545. .navListItem {
  20546. width: calc(100% - 20px);
  20547. height: 50px;
  20548. margin: 0px auto 10px;
  20549. display: flex;
  20550. flex-direction: row;
  20551. flex-wrap: nowrap;
  20552. align-items: center;
  20553. justify-content: space-between;
  20554. background: #f0f4fa;
  20555. border-radius: 6px 6px 6px 6px;
  20556. }
  20557. .navText {
  20558. cursor: pointer;
  20559. white-space: nowrap;
  20560. overflow: hidden;
  20561. text-overflow: ellipsis;
  20562. width: 220px;
  20563. padding: 0 10px;
  20564. font-weight: 400;
  20565. color: #0e1e33;
  20566. }
  20567. .downIcon {
  20568. width: 20px;
  20569. min-width: 20px;
  20570. height: 20px;
  20571. margin-right: 15px;
  20572. cursor: pointer;
  20573. }
  20574. .downIcon > img {
  20575. width: 100%;
  20576. height: 100%;
  20577. }
  20578. .noVedio {
  20579. display: flex;
  20580. flex-direction: row;
  20581. justify-content: center;
  20582. align-content: center;
  20583. }
  20584. .noNavText {
  20585. cursor: pointer;
  20586. margin: 0px 0px 10px 5px;
  20587. width: 112px;
  20588. }
  20589. .listNoVedio {
  20590. margin: 0 0 0 30px;
  20591. width: 97%;
  20592. }
  20593. .video-player >>> .video-js {
  20594. height: 100%;
  20595. }
  20596. .hangVedioList {
  20597. width: 90% !important;
  20598. height: 150px !important;
  20599. margin: 20px 0 0 30px;
  20600. }
  20601. .hangVedio {
  20602. width: 100%;
  20603. height: 170px !important;
  20604. align-items: flex-start !important;
  20605. }
  20606. .hangHand {
  20607. height: 150px !important;
  20608. }
  20609. .twoChild {
  20610. width: 95%;
  20611. margin: 10px;
  20612. border-radius: 5px;
  20613. background: #f2f2f2;
  20614. display: flex;
  20615. flex-direction: column;
  20616. flex-wrap: nowrap;
  20617. justify-content: flex-start;
  20618. align-items: flex-start;
  20619. transition: all 0.5s;
  20620. overflow: hidden;
  20621. height: 0;
  20622. background: #e7f3ff;
  20623. }
  20624. .twoChild > div:nth-child(1) {
  20625. margin-top: 5px;
  20626. }
  20627. .navChild {
  20628. width: 100%;
  20629. cursor: pointer;
  20630. margin-bottom: 10px;
  20631. position: relative;
  20632. }
  20633. .navChild img {
  20634. position: absolute;
  20635. right: 11px;
  20636. width: 15px;
  20637. top: 50%;
  20638. transform: translateY(-50%);
  20639. }
  20640. .navActive,
  20641. .toolActive {
  20642. height: auto !important;
  20643. overflow: auto !important;
  20644. /* // padding-bottom: 16px; */
  20645. }
  20646. .toolActive {
  20647. padding: 0;
  20648. }
  20649. .navTask {
  20650. display: flex;
  20651. flex-direction: row;
  20652. flex-wrap: nowrap;
  20653. align-items: center;
  20654. align-content: flex-start;
  20655. height: 40px;
  20656. justify-content: flex-start;
  20657. padding: 0 10px;
  20658. width: 100%;
  20659. box-sizing: border-box;
  20660. }
  20661. .navTaskname {
  20662. white-space: nowrap;
  20663. text-overflow: ellipsis;
  20664. overflow: hidden;
  20665. word-break: break-all;
  20666. padding-left: 5px;
  20667. }
  20668. .openTaskActive {
  20669. /* background-color: #e0eafb !important;
  20670. color: #0061ff; */
  20671. color:#fff;
  20672. background: rgb(55, 129, 252) !important;
  20673. }
  20674. .iframeName {
  20675. margin: 5px 0;
  20676. border-left: 4px solid #41c4a4;
  20677. padding-left: 4px;
  20678. }
  20679. .toolTitle {
  20680. margin: 0px 0px 20px;
  20681. font-size: 20px;
  20682. font-weight: 500;
  20683. border-left: 4px solid #41c4a4;
  20684. padding-left: 4px;
  20685. }
  20686. .cru_selectBox {
  20687. overflow: auto;
  20688. width: 95%;
  20689. margin: 17px auto 0;
  20690. height: calc(100% - 40px - 21px - 20px - 17px);
  20691. background: #fff;
  20692. border-radius: 8px;
  20693. }
  20694. .cru_selectBox::-webkit-scrollbar,
  20695. .study_top::-webkit-scrollbar,
  20696. .textContent::-webkit-scrollbar {
  20697. /*滚动条整体样式*/
  20698. width: 6px;
  20699. /*高宽分别对应横竖滚动条的尺寸*/
  20700. height: 6px;
  20701. }
  20702. /*定义滚动条轨道 内阴影+圆角*/
  20703. .cru_selectBox::-webkit-scrollbar-track,
  20704. .study_top::-webkit-scrollbar-track,
  20705. .textContent::-webkit-scrollbar {
  20706. border-radius: 10px;
  20707. background-color: #b8bdc9;
  20708. }
  20709. /*定义滑块 内阴影+圆角*/
  20710. .cru_selectBox::-webkit-scrollbar-thumb,
  20711. .study_top::-webkit-scrollbar-thumb,
  20712. .textContent::-webkit-scrollbar-thumb {
  20713. border-radius: 10px;
  20714. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  20715. background-color: #2c5ab3;
  20716. }
  20717. .vedioBox {
  20718. border-radius: 0 0 20px 20px;
  20719. background: #fff;
  20720. overflow: auto;
  20721. }
  20722. .taskBox {
  20723. width: 98%;
  20724. background: #f0f4fa;
  20725. margin: 10px auto;
  20726. padding: 0 10px;
  20727. border-radius: 4px;
  20728. box-sizing: border-box;
  20729. }
  20730. .vedioTaskBox {
  20731. width: 100%;
  20732. display: flex;
  20733. flex-direction: row;
  20734. flex-wrap: nowrap;
  20735. align-items: flex-start;
  20736. position: relative;
  20737. }
  20738. .toolBox {
  20739. margin: 15px 0 0 25px;
  20740. display: flex;
  20741. position: relative;
  20742. padding: 18px 20px;
  20743. border-top-left-radius: 5px;
  20744. border-top-right-radius: 5px;
  20745. width: 90%;
  20746. }
  20747. .btnAll {
  20748. position: absolute;
  20749. right: 0;
  20750. display: flex;
  20751. flex-direction: row;
  20752. flex-wrap: nowrap;
  20753. align-items: center;
  20754. }
  20755. .btnLeft,
  20756. .btnRight {
  20757. display: flex;
  20758. flex-direction: row;
  20759. flex-wrap: nowrap;
  20760. align-items: center;
  20761. padding: 5px 0;
  20762. }
  20763. .btnLeft {
  20764. border-right: 1px solid #cad1dc;
  20765. }
  20766. .btnLeft > .custom-tooltip {
  20767. background: #3681fc;
  20768. color: #fff;
  20769. }
  20770. .last:hover {
  20771. background: #3383fa !important;
  20772. color: #fff;
  20773. border: 1px solid #3383fa !important;
  20774. }
  20775. .last,
  20776. .returnBtn1 {
  20777. width: 90px;
  20778. height: 36px;
  20779. background: #ffffff;
  20780. border-radius: 4px;
  20781. border: 1px solid #0061ff;
  20782. color: #0061ff;
  20783. cursor: pointer;
  20784. display: flex;
  20785. flex-direction: row;
  20786. flex-wrap: nowrap;
  20787. align-items: center;
  20788. justify-content: center;
  20789. margin-left: 12px;
  20790. }
  20791. .returnBtn1 {
  20792. background: #f0f4fa;
  20793. border-radius: 4px;
  20794. border: 1px solid #cad1dc;
  20795. margin: 0 12px;
  20796. }
  20797. .lastImg {
  20798. min-width: 15px;
  20799. width: 15px;
  20800. height: 15px;
  20801. display: flex;
  20802. }
  20803. .lastText {
  20804. padding: 0 5px 0 5px;
  20805. box-sizing: border-box;
  20806. font-size: 14px;
  20807. }
  20808. .lastImg > img {
  20809. width: 100%;
  20810. height: 100%;
  20811. }
  20812. /* .vedioTimeBox {
  20813. display: flex;
  20814. flex-direction: row;
  20815. align-items: center;
  20816. flex-wrap: nowrap;
  20817. position: relative;
  20818. } */
  20819. .navBox {
  20820. background: #fff;
  20821. height: calc(100% - 40px);
  20822. overflow-y: auto;
  20823. overflow-x: hidden;
  20824. }
  20825. .worksBox {
  20826. margin: 0 0 10px 25px;
  20827. border-bottom: 1px solid #eeeeee;
  20828. padding: 18px 20px;
  20829. border-radius: 4px;
  20830. width: 90%;
  20831. }
  20832. .worksBTitle {
  20833. font-size: 20px;
  20834. padding-bottom: 15px;
  20835. border-bottom: 1px solid #eeeeee;
  20836. display: flex;
  20837. align-items: center;
  20838. }
  20839. .greenBox {
  20840. width: 5px;
  20841. height: 30px;
  20842. background: #63b6fa;
  20843. margin-right: 5px;
  20844. }
  20845. .worksDetailBox {
  20846. display: flex;
  20847. width: 100%;
  20848. flex-direction: row;
  20849. flex-wrap: wrap;
  20850. align-items: flex-end;
  20851. justify-content: flex-start;
  20852. padding: 15px 5px;
  20853. box-sizing: border-box;
  20854. }
  20855. .works {
  20856. display: flex;
  20857. flex-direction: column;
  20858. flex-wrap: nowrap;
  20859. align-items: flex-start;
  20860. justify-content: flex-start;
  20861. align-content: center;
  20862. max-width: 240px;
  20863. width: calc(100% / 3 - 10px);
  20864. height: auto;
  20865. margin-right: 10px;
  20866. margin-bottom: 10px;
  20867. overflow: hidden;
  20868. height: 140px;
  20869. box-shadow: 0 0 6px 1px #dfdada;
  20870. border-radius: 15px;
  20871. }
  20872. .workImg {
  20873. width: 100%;
  20874. /* height: calc(100% - 40px); */
  20875. height: 105px;
  20876. position: relative;
  20877. }
  20878. .workImg > img {
  20879. width: 100%;
  20880. height: 100%;
  20881. object-fit: contain;
  20882. cursor: pointer;
  20883. }
  20884. .worksName {
  20885. height: 40px;
  20886. line-height: 40px;
  20887. display: flex;
  20888. width: 100%;
  20889. flex-direction: row;
  20890. flex-wrap: nowrap;
  20891. justify-content: space-between;
  20892. align-items: center;
  20893. margin: 0 0 0 10px;
  20894. }
  20895. .worksName > div:nth-child(1) {
  20896. width: 110px;
  20897. white-space: nowrap;
  20898. overflow: hidden;
  20899. text-overflow: ellipsis;
  20900. }
  20901. .worksName > div:nth-child(2) {
  20902. color: #b7b4b5;
  20903. }
  20904. .noWorksS {
  20905. padding: 15px 0;
  20906. display: flex;
  20907. flex-direction: row;
  20908. flex-wrap: wrap;
  20909. align-items: center;
  20910. justify-content: flex-start;
  20911. }
  20912. .noWorksName,
  20913. .isWorksName,
  20914. .isWorksName2 {
  20915. background: #ddebf8;
  20916. color: #000;
  20917. width: 90px;
  20918. height: 25px;
  20919. text-align: center;
  20920. line-height: 25px;
  20921. border-radius: 4px;
  20922. margin: 10px 15px 10px 0;
  20923. white-space: nowrap;
  20924. overflow: hidden;
  20925. padding: 5px;
  20926. text-overflow: ellipsis;
  20927. cursor: pointer;
  20928. border: 1px solid #ddebf8;
  20929. }
  20930. .noWorksName {
  20931. background: #fff;
  20932. color: #0061ff;
  20933. border: 1px solid #0061ff;
  20934. }
  20935. .isWorksName2 {
  20936. width: 100px;
  20937. height: 40px;
  20938. line-height: 40px;
  20939. position: relative;
  20940. background: #dae6f9;
  20941. }
  20942. .isWorksName {
  20943. background: #e7ebf1 !important;
  20944. width: 100px;
  20945. height: 40px;
  20946. line-height: 40px;
  20947. position: relative;
  20948. color: #acb4bf;
  20949. border: 1px solid #cad1dc !important;
  20950. }
  20951. .isSelectName,
  20952. .noWorksName:hover {
  20953. background: #3383fa !important;
  20954. color: #fff !important;
  20955. border: 1px solid #3383fa !important;
  20956. }
  20957. .title {
  20958. background: #1e5cc9;
  20959. /* width: 98%; */
  20960. height: 45px;
  20961. color: #fff;
  20962. line-height: 45px;
  20963. padding-left: 20px;
  20964. box-sizing: border-box;
  20965. }
  20966. .textBox {
  20967. font-size: 20px;
  20968. width: 90%;
  20969. display: flex;
  20970. flex-direction: column;
  20971. align-items: center;
  20972. margin: 20px auto 0;
  20973. max-height: calc(100% - 75px);
  20974. overflow: auto;
  20975. }
  20976. .textContent {
  20977. font-size: 18px;
  20978. width: 95%;
  20979. max-width: 95%;
  20980. }
  20981. .answerBg {
  20982. background: url("../../../assets/icon/answerBgNew.png") no-repeat;
  20983. background-size: 100% 100%;
  20984. width: 100%;
  20985. height: 100%;
  20986. color: #fff;
  20987. text-align: center;
  20988. display: flex;
  20989. flex-direction: column;
  20990. flex-wrap: nowrap;
  20991. align-items: center;
  20992. position: relative;
  20993. justify-content: center;
  20994. }
  20995. .answerBg > div:nth-child(1) {
  20996. /* font-size: 22px;
  20997. padding: 25px 0 10px; */
  20998. }
  20999. .answerContent {
  21000. width: 215px;
  21001. max-height: 60px;
  21002. word-break: break-all;
  21003. text-align: center;
  21004. /* white-space: nowrap; */
  21005. overflow: hidden;
  21006. text-overflow: ellipsis;
  21007. /* padding: 23px 0 0; */
  21008. -webkit-line-clamp: 3;
  21009. -webkit-box-orient: vertical;
  21010. display: -webkit-box;
  21011. font-size: 15px;
  21012. cursor: pointer;
  21013. }
  21014. .elist_input_box {
  21015. display: flex;
  21016. align-items: flex-start;
  21017. flex-wrap: nowrap;
  21018. padding: 10px 0 15px 30px;
  21019. flex-direction: column;
  21020. }
  21021. .elist_input {
  21022. /* width: 40%; */
  21023. width: 45%;
  21024. margin: 20px;
  21025. }
  21026. .elist_input .elist_input_box input {
  21027. font: inherit;
  21028. color: currentColor;
  21029. width: 200px;
  21030. padding: 8px 14px;
  21031. display: block;
  21032. min-width: 0;
  21033. outline: none;
  21034. border: 1px solid rgba(0, 0, 0, 0.23);
  21035. border-radius: 4px;
  21036. box-sizing: border-box;
  21037. background: #fff;
  21038. margin: 0 20px 0 0;
  21039. }
  21040. .elist_input .elist_input_box span {
  21041. height: 36px;
  21042. line-height: 36px;
  21043. color: rgb(82, 82, 82);
  21044. }
  21045. .elist_input .elist_input_box .remove {
  21046. height: 20px;
  21047. width: 20px;
  21048. background-size: 100% 100%;
  21049. background-position: unset;
  21050. margin-left: 5px;
  21051. }
  21052. .elist_input_box >>> .el-rate {
  21053. display: flex;
  21054. height: 36px;
  21055. align-items: center;
  21056. }
  21057. .elist_input_box .elist_inptu_text {
  21058. min-height: 50px;
  21059. /* width: 500px;
  21060. max-height: 150px; */
  21061. width: 100%;
  21062. line-height: 50px;
  21063. color: rgb(82, 82, 82);
  21064. overflow: auto;
  21065. text-indent: 5px;
  21066. background: #f7f6f9;
  21067. border-radius: 10px;
  21068. }
  21069. .elist_input_box .elist_inptu_text input {
  21070. width: 500px;
  21071. }
  21072. .elist_input_box >>> .el-rate__icon {
  21073. font-size: 24px;
  21074. }
  21075. .isClick {
  21076. background: #4d9def;
  21077. }
  21078. .bzBox {
  21079. display: flex;
  21080. flex-direction: row;
  21081. align-items: center;
  21082. }
  21083. .bzBox .yCss {
  21084. width: 7px;
  21085. height: 7px;
  21086. background: #fff;
  21087. margin: 0 16px 0 6px;
  21088. border-radius: 50%;
  21089. border: 5px solid #3681fc;
  21090. z-index: 99;
  21091. }
  21092. .bzBox > div:nth-child(2) {
  21093. font-size: 18px;
  21094. font-weight: bold;
  21095. color: #0e1e33;
  21096. }
  21097. .navTitile {
  21098. padding: 0 0px 0 15px;
  21099. font-size: 16px;
  21100. font-weight: bold;
  21101. color: #0e1e33;
  21102. height: 40px;
  21103. line-height: 40px;
  21104. }
  21105. .isTypeOne {
  21106. width: 240px;
  21107. height: 170px;
  21108. /* border: 1px solid #f8f8f8; */
  21109. border-radius: 10px;
  21110. box-shadow: 0 0 6px 1px #dfdada;
  21111. }
  21112. .e_add_top {
  21113. display: flex;
  21114. justify-content: space-between;
  21115. padding: 10px 20px;
  21116. border-radius: 3px;
  21117. background: #fff;
  21118. }
  21119. .e_add_title2 {
  21120. display: flex;
  21121. align-items: center;
  21122. }
  21123. .e_add_title2 span {
  21124. width: 40px;
  21125. }
  21126. .e_add_title {
  21127. display: flex;
  21128. align-items: center;
  21129. color: #b8b8b8;
  21130. font-size: 18px;
  21131. position: relative;
  21132. height: 40px;
  21133. }
  21134. .e_add_title span {
  21135. margin-right: 10px;
  21136. }
  21137. .e_add_title .el_input {
  21138. width: 300px;
  21139. }
  21140. .e_add_title >>> .el-input__inner {
  21141. width: 400px;
  21142. }
  21143. .e_add_btn {
  21144. }
  21145. .e_add_content {
  21146. display: flex;
  21147. width: 100%;
  21148. max-width: 650px;
  21149. height: 550px;
  21150. }
  21151. .e_add_list {
  21152. background: #fff;
  21153. height: 500px;
  21154. width: 210px;
  21155. position: relative;
  21156. margin: 15px 5px 0 0;
  21157. flex-shrink: 0;
  21158. display: flex;
  21159. flex-direction: column;
  21160. }
  21161. .e_add_list_title {
  21162. font-size: 20px;
  21163. width: 100%;
  21164. box-sizing: border-box;
  21165. padding: 15px 40px;
  21166. text-align: center;
  21167. border-bottom: 1px solid #eaeaea;
  21168. position: relative;
  21169. display: flex;
  21170. align-items: center;
  21171. justify-content: center;
  21172. height: 57px;
  21173. background: #f6f6f6;
  21174. }
  21175. .e_add_list_title span {
  21176. overflow: hidden;
  21177. white-space: nowrap;
  21178. text-overflow: ellipsis;
  21179. }
  21180. .e_add_list_title img {
  21181. position: absolute;
  21182. right: 15px;
  21183. width: 25px;
  21184. cursor: pointer;
  21185. top: 50%;
  21186. transform: translateY(-50%);
  21187. }
  21188. .e_add_list_body {
  21189. height: calc(100% - 187px);
  21190. overflow: auto;
  21191. }
  21192. .e_add_list_child {
  21193. width: 100%;
  21194. display: flex;
  21195. align-items: center;
  21196. justify-content: center;
  21197. position: relative;
  21198. box-sizing: border-box;
  21199. padding: 15px 40px;
  21200. text-align: center;
  21201. }
  21202. .e_add_list_child span {
  21203. overflow: hidden;
  21204. white-space: nowrap;
  21205. text-overflow: ellipsis;
  21206. cursor: pointer;
  21207. }
  21208. .e_add_list_child img {
  21209. position: absolute;
  21210. right: 10px;
  21211. width: 21px;
  21212. cursor: pointer;
  21213. top: 50%;
  21214. transform: translateY(-50%);
  21215. }
  21216. .e_add_list_child + .e_add_list_child {
  21217. border-top: 1px solid #eaeaea;
  21218. }
  21219. .e_add_list_child .active {
  21220. color: #409eff;
  21221. }
  21222. .e_add_list_btn {
  21223. position: absolute;
  21224. bottom: 0;
  21225. height: 50px;
  21226. background: rgb(120, 120, 254);
  21227. width: 100%;
  21228. color: #fff;
  21229. font-size: 16px;
  21230. text-align: center;
  21231. line-height: 50px;
  21232. cursor: pointer;
  21233. }
  21234. .e_add_list_detail {
  21235. position: absolute;
  21236. bottom: 0;
  21237. height: 130px;
  21238. background: rgb(120, 120, 254);
  21239. width: 100%;
  21240. color: #fff;
  21241. font-size: 16px;
  21242. display: flex;
  21243. align-items: center;
  21244. justify-content: center;
  21245. }
  21246. .e_add_list_detail textarea {
  21247. height: 90%;
  21248. width: 95%;
  21249. border: none;
  21250. resize: none;
  21251. outline: none;
  21252. padding: 5px;
  21253. box-sizing: border-box;
  21254. }
  21255. .e_add_list_pbox {
  21256. width: 100%;
  21257. max-width: 650px;
  21258. /* height: 600px; */
  21259. }
  21260. .e_add_list_pbox_title {
  21261. height: 50px;
  21262. background: #fff;
  21263. display: flex;
  21264. align-items: center;
  21265. width: 100%;
  21266. box-sizing: border-box;
  21267. padding: 0 20px;
  21268. }
  21269. .type_title {
  21270. font-size: 18px;
  21271. font-weight: 700;
  21272. }
  21273. .type_content {
  21274. font-size: 16px;
  21275. /* margin-left: 30px; */
  21276. }
  21277. .type_content span + span {
  21278. margin-left: 20px;
  21279. }
  21280. .type_content span {
  21281. cursor: pointer;
  21282. padding-bottom: 5px;
  21283. box-sizing: border-box;
  21284. }
  21285. .type_content .active {
  21286. color: #409eff;
  21287. border-bottom: 2px solid #409eff;
  21288. }
  21289. .e_add_list_pbox_content {
  21290. height: calc(100% - 50px);
  21291. display: flex;
  21292. align-items: center;
  21293. width: 100%;
  21294. background: #fff;
  21295. }
  21296. .evaCss {
  21297. display: flex;
  21298. flex-direction: row;
  21299. flex-wrap: nowrap;
  21300. align-items: flex-start;
  21301. padding: 0 0 20px;
  21302. }
  21303. .cru_line {
  21304. position: absolute;
  21305. bottom: 0px;
  21306. transition: all 0.5s;
  21307. left: 0px;
  21308. width: 125px;
  21309. margin-left: -25px;
  21310. }
  21311. .isNoMessage {
  21312. width: 20%;
  21313. margin: 25% auto 0;
  21314. }
  21315. .isNoMessage > img {
  21316. width: 100%;
  21317. height: 100%;
  21318. }
  21319. .fullStyle >>> .el-dialog__body {
  21320. height: 100% !important;
  21321. }
  21322. .fullStyle >>> .el-dialog,
  21323. .fullStyle {
  21324. width: 100% !important;
  21325. max-width: 100% !important;
  21326. height: 100% !important;
  21327. margin: 0 !important;
  21328. }
  21329. .full_diy >>> .el-dialog {
  21330. margin: 0 !important;
  21331. height: 100%;
  21332. padding: 4px;
  21333. }
  21334. .full_diy >>> .el-dialog__body {
  21335. height: calc(100% - 100px);
  21336. }
  21337. .full_diy2 >>> .el-dialog__body {
  21338. height: calc(100% - 50px);
  21339. padding: 0;
  21340. }
  21341. .switchCss {
  21342. /* width: 100%; */
  21343. display: flex;
  21344. flex-direction: row;
  21345. flex-wrap: nowrap;
  21346. align-items: center;
  21347. /* justify-content: center; */
  21348. }
  21349. .isClickNav {
  21350. /* color: #499eef; */
  21351. color: #000;
  21352. }
  21353. .commentImg {
  21354. width: 25px;
  21355. height: 25px;
  21356. cursor: pointer;
  21357. }
  21358. .commentImg > img {
  21359. width: 100%;
  21360. height: 100%;
  21361. }
  21362. .comment {
  21363. background: #f9f9f9;
  21364. border-radius: 0 0 4px 4px;
  21365. display: flex;
  21366. flex-direction: row;
  21367. flex-wrap: nowrap;
  21368. align-items: center;
  21369. justify-content: flex-end;
  21370. height: 35px;
  21371. }
  21372. .commentList {
  21373. display: flex;
  21374. flex-direction: row;
  21375. flex-wrap: nowrap;
  21376. align-items: center;
  21377. justify-content: center;
  21378. align-content: center;
  21379. /* margin-left: 15px; */
  21380. /* margin-left: 8px; */
  21381. }
  21382. .scoreImg {
  21383. width: 17px;
  21384. height: 17px;
  21385. }
  21386. .studentDetail {
  21387. display: flex;
  21388. flex-direction: row;
  21389. flex-wrap: nowrap;
  21390. /* align-items: center; */
  21391. align-items: flex-start;
  21392. }
  21393. .tx {
  21394. width: 50px;
  21395. }
  21396. .tx > img {
  21397. width: 100%;
  21398. height: 100%;
  21399. }
  21400. .nameAndTime {
  21401. display: flex;
  21402. flex-direction: column;
  21403. flex-wrap: nowrap;
  21404. align-items: flex-start;
  21405. margin-left: 10px;
  21406. }
  21407. .worksAnswer {
  21408. color: #4078dd;
  21409. margin: 10px 0;
  21410. font-size: 16px;
  21411. position: relative;
  21412. }
  21413. .worksAnswer > img {
  21414. width: 500px;
  21415. height: 300px;
  21416. object-fit: contain;
  21417. margin: 0 auto;
  21418. display: block;
  21419. }
  21420. .commentTop {
  21421. border-bottom: 1px solid #eaeaea;
  21422. padding-bottom: 10px;
  21423. }
  21424. .commentBox {
  21425. padding-top: 15px;
  21426. }
  21427. .pl {
  21428. font-size: 18px;
  21429. }
  21430. .plPerson {
  21431. width: 100%;
  21432. }
  21433. .plName {
  21434. display: flex;
  21435. flex-direction: row;
  21436. flex-wrap: nowrap;
  21437. align-items: baseline;
  21438. color: #78787a;
  21439. width: 100%;
  21440. }
  21441. .deleteComment {
  21442. cursor: pointer;
  21443. margin-left: auto;
  21444. color: #237ade;
  21445. }
  21446. .plContent {
  21447. margin-top: 5px;
  21448. }
  21449. .evalCss {
  21450. background: #fff;
  21451. font-size: 18px;
  21452. }
  21453. .nav {
  21454. color: #9d9d9d;
  21455. padding: 5px 0 15px 20px;
  21456. }
  21457. .middleBox {
  21458. padding: 5px 0 15px 20px;
  21459. }
  21460. .pfBox {
  21461. padding-bottom: 30px;
  21462. }
  21463. .nameAndrate {
  21464. display: flex;
  21465. flex-direction: row;
  21466. flex-wrap: nowrap;
  21467. align-items: center;
  21468. padding-bottom: 10px;
  21469. height: 30px;
  21470. line-height: 30px;
  21471. }
  21472. .nameAndrate > div {
  21473. margin-left: 10px;
  21474. color: #000;
  21475. height: 30px;
  21476. }
  21477. .nameAndrate >>> .el-rate__icon {
  21478. font-size: 28px !important;
  21479. }
  21480. .pfBox > div:nth-child(2) {
  21481. background: #f7f6f9;
  21482. width: 400px;
  21483. min-height: 45px;
  21484. border-radius: 10px;
  21485. font-size: 16px;
  21486. display: flex;
  21487. flex-wrap: wrap;
  21488. align-items: center;
  21489. padding: 10px 20px;
  21490. box-sizing: border-box;
  21491. color: #000;
  21492. }
  21493. .bz {
  21494. display: flex;
  21495. flex-direction: row;
  21496. flex-wrap: nowrap;
  21497. align-items: flex-start;
  21498. }
  21499. .bz > div {
  21500. padding: 0 10px;
  21501. }
  21502. .select_box2_title {
  21503. background: #fff;
  21504. border-radius: 5px;
  21505. padding: 15px 10px;
  21506. box-sizing: border-box;
  21507. margin-bottom: 10px;
  21508. display: flex;
  21509. flex-direction: row;
  21510. flex-wrap: nowrap;
  21511. align-items: center;
  21512. }
  21513. .select_box2_title > div:nth-child(2) {
  21514. margin-left: 10px;
  21515. color: #c4c4c4;
  21516. }
  21517. .select_box2_box {
  21518. display: flex;
  21519. height: 500px;
  21520. }
  21521. .select_box2_img {
  21522. width: calc(100% - 310px);
  21523. height: 100%;
  21524. overflow: auto;
  21525. background: #fff;
  21526. border-radius: 5px;
  21527. }
  21528. .select_box2_img img {
  21529. width: 100%;
  21530. }
  21531. .select_box2_answer {
  21532. background: #fff;
  21533. margin-left: 10px;
  21534. border-radius: 5px;
  21535. width: 300px;
  21536. overflow: auto;
  21537. height: 90%;
  21538. display: flex;
  21539. flex-direction: column;
  21540. align-items: flex-start;
  21541. padding-top: 10px;
  21542. box-sizing: border-box;
  21543. position: relative;
  21544. }
  21545. .select_answer_title {
  21546. padding: 0 0 15px 20px;
  21547. color: #c4c4c4;
  21548. }
  21549. .select_box2_answer_box {
  21550. margin: 0 0 10px 20px;
  21551. width: 85%;
  21552. display: flex;
  21553. flex-direction: row;
  21554. flex-wrap: nowrap;
  21555. align-items: center;
  21556. }
  21557. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  21558. color: #000;
  21559. }
  21560. .upAnswerCss {
  21561. position: absolute;
  21562. bottom: 15px;
  21563. right: 15px;
  21564. }
  21565. .upAnswerCss >>> .el-button {
  21566. width: 95px;
  21567. height: 35px;
  21568. line-height: 35px;
  21569. padding: 0;
  21570. }
  21571. .rightWidthCss {
  21572. width: 60%;
  21573. display: flex;
  21574. flex-direction: row;
  21575. align-items: flex-start;
  21576. }
  21577. .rightAnswer {
  21578. display: flex;
  21579. flex-direction: row;
  21580. flex-wrap: nowrap;
  21581. align-items: center;
  21582. color: red;
  21583. margin-bottom: 31px;
  21584. }
  21585. .rightAnswerCss {
  21586. display: flex;
  21587. flex-direction: column;
  21588. flex-wrap: nowrap;
  21589. padding-top: 60px;
  21590. }
  21591. .blueCss {
  21592. color: #767de1;
  21593. margin-left: 10px;
  21594. }
  21595. .redCss {
  21596. color: red;
  21597. }
  21598. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  21599. color: rgb(0 123 255) !important;
  21600. }
  21601. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  21602. color: rgb(0 123 255) !important;
  21603. }
  21604. .zuoyeYulan {
  21605. padding-top: 0;
  21606. font-size: 18px;
  21607. display: flex;
  21608. align-items: flex-end;
  21609. }
  21610. .buttonA {
  21611. margin-left: 10px;
  21612. padding: 0;
  21613. }
  21614. .displayBox {
  21615. margin-bottom: 10px;
  21616. display: block;
  21617. border-bottom: 3px solid #eee;
  21618. display: flex;
  21619. align-items: center;
  21620. }
  21621. .easy_comment {
  21622. width: calc(100% - 90px);
  21623. margin-left: 10px;
  21624. display: flex;
  21625. flex-wrap: wrap;
  21626. }
  21627. .easy_comment > div {
  21628. border: 1px solid #4a4a4a;
  21629. color: #666;
  21630. border-radius: 15px;
  21631. padding: 5px 10px;
  21632. font-size: 16px;
  21633. margin-bottom: 10px;
  21634. margin-right: 5px;
  21635. cursor: pointer;
  21636. }
  21637. .easy_comment div:hover {
  21638. border: 1px solid #f7ba2a;
  21639. color: #c69217;
  21640. }
  21641. .xuan_right_box {
  21642. padding: 10px 0;
  21643. background: #f0f4fa;
  21644. margin: 0 15px 0 25px;
  21645. border-bottom-left-radius: 5px;
  21646. border-bottom-right-radius: 5px;
  21647. width: 91.5%;
  21648. }
  21649. .tool_right_box {
  21650. display: flex;
  21651. align-items: center;
  21652. }
  21653. .tool_right_box + .tool_right_box {
  21654. margin-top: 10px;
  21655. }
  21656. .right_box_xuan {
  21657. border-radius: 5px;
  21658. padding: 5px;
  21659. margin-left: 10px;
  21660. min-width: 85px;
  21661. background: #fff;
  21662. color: #0061ff;
  21663. border: 1px solid #0061ff;
  21664. font-size: 14px;
  21665. }
  21666. .pButton:hover {
  21667. opacity: 1 !important;
  21668. }
  21669. .pButton {
  21670. position: fixed;
  21671. text-align: center;
  21672. cursor: pointer;
  21673. z-index: 999;
  21674. right: 20px;
  21675. top: 110px;
  21676. width: 50px;
  21677. height: 50px;
  21678. display: flex;
  21679. align-items: center;
  21680. justify-content: center;
  21681. border-radius: 5px;
  21682. }
  21683. .pzClass {
  21684. width: calc(100% - 340px);
  21685. }
  21686. .newDialogCss {
  21687. /* position: fixed;
  21688. right: 5%;
  21689. top: 50%;
  21690. width: 340px;
  21691. transform: translateY(-50%);
  21692. height: 60%;
  21693. box-shadow: 0px 0 8px 0px #555555;
  21694. border-radius: 15px;
  21695. z-index: 999; */
  21696. position: fixed;
  21697. right: 20px;
  21698. top: 101px;
  21699. width: 330px;
  21700. height: calc(100% - 80px);
  21701. z-index: 999;
  21702. background: #fff;
  21703. border-top-right-radius: 0px;
  21704. border-bottom-right-radius: 0px;
  21705. overflow: hidden;
  21706. }
  21707. .pzTop {
  21708. color: #fff;
  21709. background: #000;
  21710. display: flex;
  21711. flex-direction: row;
  21712. flex-wrap: nowrap;
  21713. align-items: center;
  21714. justify-content: space-between;
  21715. height: 40px;
  21716. border-radius: 15px 15px 0 0;
  21717. user-select: none;
  21718. }
  21719. .pzTop2 .checkbox {
  21720. display: flex;
  21721. align-items: center;
  21722. padding: 5px 30px;
  21723. flex: 0 0 auto;
  21724. font-weight: bold;
  21725. border-bottom: 1px solid #eee;
  21726. justify-content: space-between;
  21727. }
  21728. .pzTop2 .check {
  21729. text-align: center;
  21730. cursor: pointer;
  21731. box-sizing: border-box;
  21732. display: flex;
  21733. }
  21734. .pzTop2 img {
  21735. width: 25px;
  21736. cursor: pointer;
  21737. }
  21738. .pzTop > div:nth-child(1) {
  21739. padding-left: 10px;
  21740. }
  21741. .pzTop > div:nth-child(2) {
  21742. width: 15px;
  21743. height: 15px;
  21744. padding-right: 10px;
  21745. cursor: pointer;
  21746. }
  21747. .pzTop > div:nth-child(2) > img {
  21748. width: 100%;
  21749. height: 100%;
  21750. }
  21751. .pzBox,
  21752. .noPzBox {
  21753. height: calc(100% - 60px);
  21754. /* background: #ededed; */
  21755. background: #fff;
  21756. /* border-radius: 0 0 15px 15px; */
  21757. }
  21758. .noPzBox {
  21759. display: flex;
  21760. flex-direction: column;
  21761. flex-wrap: nowrap;
  21762. justify-content: center;
  21763. align-items: center;
  21764. }
  21765. .pzList {
  21766. background: #f7f7f7;
  21767. width: 90%;
  21768. margin: 0 auto 15px;
  21769. border-radius: 5px;
  21770. }
  21771. .pzNavTop {
  21772. display: flex;
  21773. flex-direction: row;
  21774. flex-wrap: nowrap;
  21775. padding: 10px 10px 0 10px;
  21776. align-items: center;
  21777. }
  21778. .pzDelete {
  21779. cursor: pointer;
  21780. margin-left: auto;
  21781. font-size: 14px;
  21782. color: #afafaf;
  21783. }
  21784. .pzNavTop > div:nth-child(1) {
  21785. background: #3760af;
  21786. width: 35px;
  21787. height: 35px;
  21788. color: #fff;
  21789. text-align: center;
  21790. line-height: 35px;
  21791. border-radius: 50%;
  21792. font-size: 14px;
  21793. }
  21794. .pzNavTop > div:nth-child(2) {
  21795. font-size: 18px;
  21796. color: #959595;
  21797. margin-left: 5px;
  21798. }
  21799. .pzContent {
  21800. padding: 10px;
  21801. word-break: break-word;
  21802. }
  21803. .pzContent audio {
  21804. width: 100%;
  21805. }
  21806. .pzContent audio::-webkit-media-controls-panel {
  21807. background: #fff;
  21808. }
  21809. .pzContent >>> img {
  21810. max-width: 100%;
  21811. }
  21812. .pzListBox {
  21813. padding-top: 15px;
  21814. height: calc(100% - 110px);
  21815. overflow: auto;
  21816. }
  21817. .addPzButton {
  21818. position: relative;
  21819. margin-top: 3px;
  21820. width: 100%;
  21821. }
  21822. .addPzButton .img1 {
  21823. position: absolute;
  21824. top: 50%;
  21825. right: 25px;
  21826. transform: translateY(-50%);
  21827. height: 100%;
  21828. display: flex;
  21829. align-items: center;
  21830. }
  21831. .addPzButton .img1 div {
  21832. display: flex;
  21833. }
  21834. .addPzButton .img1 div img {
  21835. width: 28px;
  21836. margin-left: 10px;
  21837. cursor: pointer;
  21838. }
  21839. .addPzButton .img1 div span {
  21840. font-size: 14px;
  21841. margin: 4px 0 0 3px;
  21842. color: #afafaf;
  21843. }
  21844. .addPz {
  21845. background: #4b79ce;
  21846. width: 100px;
  21847. color: #fff;
  21848. font-size: 12px;
  21849. height: 30px;
  21850. margin: 0 auto;
  21851. text-align: center;
  21852. line-height: 30px;
  21853. border-radius: 10px;
  21854. cursor: pointer;
  21855. }
  21856. .addDialogCss {
  21857. position: fixed;
  21858. width: 600px;
  21859. height: 70%;
  21860. min-height: 450px;
  21861. box-shadow: 0px 0 8px 0px #555555;
  21862. border-radius: 15px;
  21863. z-index: 999;
  21864. left: 50%;
  21865. top: 50%;
  21866. margin: -18% 0 0 -300px;
  21867. }
  21868. .teacherPz {
  21869. display: flex;
  21870. flex-direction: row;
  21871. align-items: center;
  21872. flex-wrap: nowrap;
  21873. }
  21874. .teacherPzImg {
  21875. width: 30px;
  21876. height: 30px;
  21877. }
  21878. .teacherPzImg > img {
  21879. width: 100%;
  21880. height: 100%;
  21881. }
  21882. .addPzBox {
  21883. height: calc(100% - 40px);
  21884. background: #ededed;
  21885. border-bottom-left-radius: 15px;
  21886. border-bottom-right-radius: 15px;
  21887. }
  21888. .pzAudioClass {
  21889. margin: 15px 14px;
  21890. background: #fff;
  21891. height: 100%;
  21892. display: flex;
  21893. justify-content: center;
  21894. align-items: center;
  21895. }
  21896. .pzConText {
  21897. width: 95%;
  21898. height: 100%;
  21899. margin: 10px auto 0;
  21900. border: none;
  21901. background: #fff;
  21902. border-radius: 0px;
  21903. }
  21904. .pzConText >>> .text {
  21905. height: calc(100% - 82px);
  21906. }
  21907. .addTextCss {
  21908. background: #4b79ce;
  21909. width: 80px;
  21910. height: 30px;
  21911. text-align: center;
  21912. color: #fff;
  21913. line-height: 30px;
  21914. border-radius: 10px;
  21915. margin: 10px auto 0;
  21916. cursor: pointer;
  21917. }
  21918. .pzConText:focus-visible {
  21919. border: none !important;
  21920. }
  21921. .maxWidth {
  21922. width: 1000px;
  21923. }
  21924. .noPz {
  21925. width: 150px;
  21926. margin: 0 auto 20%;
  21927. }
  21928. .noPz > img {
  21929. width: 100%;
  21930. height: 100%;
  21931. }
  21932. .timeAndReply {
  21933. display: flex;
  21934. flex-direction: row;
  21935. flex-wrap: nowrap;
  21936. justify-content: space-between;
  21937. align-items: center;
  21938. font-size: 14px;
  21939. box-sizing: border-box;
  21940. padding: 0 10px 10px 0px;
  21941. }
  21942. .timeAndReply .time {
  21943. color: #bfbfbf;
  21944. padding: 0 0 0 10px;
  21945. box-sizing: border-box;
  21946. }
  21947. .timeAndReply > div:last-child {
  21948. cursor: pointer;
  21949. color: #777;
  21950. }
  21951. /* table 样式 */
  21952. .cont >>> table {
  21953. border-top: 1px solid #ccc;
  21954. border-left: 1px solid #ccc;
  21955. }
  21956. .cont >>> table td,
  21957. .cont >>> table th {
  21958. border-bottom: 1px solid #ccc;
  21959. border-right: 1px solid #ccc;
  21960. /* padding: 20px 5px; */
  21961. padding: 5px 10px;
  21962. max-width: 0px;
  21963. height: 30px;
  21964. vertical-align: baseline;
  21965. box-sizing: border-box;
  21966. }
  21967. .cont >>> table th {
  21968. border-bottom: 2px solid #ccc;
  21969. text-align: center;
  21970. }
  21971. /* blockquote 样式 */
  21972. .cont >>> blockquote {
  21973. display: block;
  21974. border-left: 8px solid #d0e5f2;
  21975. padding: 5px 10px;
  21976. margin: 10px 0;
  21977. line-height: 1.4;
  21978. font-size: 100%;
  21979. background-color: #f1f1f1;
  21980. }
  21981. /* code 样式 */
  21982. .cont >>> code {
  21983. display: inline-block;
  21984. /* *display: inline; */
  21985. zoom: 1;
  21986. background-color: #f1f1f1;
  21987. border-radius: 3px;
  21988. padding: 3px 5px;
  21989. margin: 0 3px;
  21990. }
  21991. .cont >>> pre code {
  21992. display: block;
  21993. }
  21994. /* ul ol 样式 */
  21995. .cont >>> ul,
  21996. ol {
  21997. margin: 10px 0 10px 20px;
  21998. }
  21999. .addPzCheck {
  22000. display: flex;
  22001. flex-direction: row;
  22002. flex-wrap: nowrap;
  22003. padding: 10px 15px 0;
  22004. }
  22005. .addPzCheck span {
  22006. cursor: pointer;
  22007. padding-bottom: 5px;
  22008. font-weight: bold;
  22009. }
  22010. .addPzCheck span + span {
  22011. margin-left: 10px;
  22012. }
  22013. .addPzCheck .isChooseActive {
  22014. color: #3e88f4;
  22015. border-bottom: 2px solid #2f80f3;
  22016. }
  22017. /* code 样式 */
  22018. .cont {
  22019. /* -webkit-user-modify: read-write; */
  22020. overflow-wrap: break-word;
  22021. -webkit-line-break: after-white-space;
  22022. }
  22023. .scoreBox,
  22024. .scoreDetailBox {
  22025. display: flex;
  22026. align-items: center;
  22027. justify-content: flex-start;
  22028. margin-top: 20px;
  22029. font-size: 18px;
  22030. width: 100%;
  22031. }
  22032. .scoreBox .t,
  22033. .scoreDetailBox .t {
  22034. margin-right: 10px;
  22035. width: 100px;
  22036. text-align: right;
  22037. }
  22038. .scoreDetailBox {
  22039. align-items: flex-start;
  22040. }
  22041. .scoreDetailBox >>> .el-textarea {
  22042. width: calc(100% - 200px);
  22043. }
  22044. .scoreBox >>> .el-input {
  22045. width: 130px;
  22046. font-size: 38px;
  22047. }
  22048. .scoreBox >>> .el-input__inner {
  22049. height: 60px;
  22050. }
  22051. .answerScore {
  22052. position: absolute;
  22053. top: 10px;
  22054. right: 10px;
  22055. background: #0000008f;
  22056. border-radius: 5px;
  22057. padding: 3px 5px;
  22058. font-size: 14px;
  22059. color: #fff;
  22060. cursor: pointer;
  22061. }
  22062. .open_box .switch_box {
  22063. width: 100%;
  22064. margin: 0 auto;
  22065. display: flex;
  22066. justify-content: space-between;
  22067. }
  22068. .open_box .switch_box + .switch_box {
  22069. margin-top: 10px;
  22070. }
  22071. .deleteImg,.deleteImg1 {
  22072. width: 25px !important;
  22073. height: 25px !important;
  22074. cursor: pointer;
  22075. position: absolute;
  22076. top: 10px;
  22077. right: 10px;
  22078. }
  22079. .deleteImg2 {
  22080. width: 23px !important;
  22081. height: 23px !important;
  22082. top: 5px;
  22083. right: 5px;
  22084. }
  22085. .deleteImg1{
  22086. width: 23px !important;
  22087. height: 23px !important;
  22088. top: 5px !important;
  22089. right: 30px !important;
  22090. }
  22091. .rightW {
  22092. right: 40px;
  22093. }
  22094. .drawPBox {
  22095. display: flex;
  22096. flex-direction: column;
  22097. position: relative;
  22098. }
  22099. .drawPBox span {
  22100. font-size: 18px;
  22101. color: #606266;
  22102. padding-bottom: 10px;
  22103. margin: 10px 0;
  22104. border-bottom: 1px solid #eaeaea;
  22105. }
  22106. .drawPBox img {
  22107. width: 500px;
  22108. height: 300px;
  22109. object-fit: contain;
  22110. cursor: pointer;
  22111. margin: 0 auto;
  22112. }
  22113. .sentenBox {
  22114. background: #fff;
  22115. height: 450px;
  22116. overflow: auto;
  22117. background-image: url("../../../assets/icon/conSentences/stuBg.png");
  22118. background-position: 102%;
  22119. background-repeat: no-repeat;
  22120. background-size: 60%;
  22121. }
  22122. .addSen {
  22123. background: #409efe;
  22124. width: 90px;
  22125. color: #fff;
  22126. height: 35px;
  22127. text-align: center;
  22128. line-height: 35px;
  22129. border-radius: 5px;
  22130. float: right;
  22131. margin: 10px 20px 0 0;
  22132. cursor: pointer;
  22133. }
  22134. .sentenTop {
  22135. display: flex;
  22136. flex-direction: row;
  22137. flex-wrap: nowrap;
  22138. align-items: center;
  22139. padding: 55px 0 0 20px;
  22140. box-sizing: border-box;
  22141. }
  22142. .sentenTop > div:nth-child(2) {
  22143. width: 300px;
  22144. margin: 0 15px;
  22145. }
  22146. .sentenTop > div:nth-child(3) {
  22147. background: #409efe;
  22148. color: #fff;
  22149. width: 65px;
  22150. height: 35px;
  22151. text-align: center;
  22152. line-height: 35px;
  22153. border-radius: 5px;
  22154. cursor: pointer;
  22155. }
  22156. .cardList,
  22157. .cardList1 {
  22158. padding: 10px 0 10px 0;
  22159. display: flex;
  22160. flex-direction: row;
  22161. flex-wrap: wrap;
  22162. align-items: center;
  22163. box-sizing: border-box;
  22164. border-bottom: 1px solid #f4f4f4;
  22165. width: 98%;
  22166. margin: 0 auto;
  22167. min-width: 60%;
  22168. max-width: 85%;
  22169. }
  22170. .cardList1 {
  22171. padding: 10px 0 10px 10px !important;
  22172. margin: 0 !important;
  22173. }
  22174. .cardBox {
  22175. display: flex;
  22176. flex-direction: row;
  22177. flex-wrap: wrap;
  22178. align-items: center;
  22179. align-content: center;
  22180. }
  22181. .cardBox > div {
  22182. margin-bottom: 10px;
  22183. }
  22184. .isCard,
  22185. .isChooseCard,
  22186. .noCard,
  22187. .isCard1 {
  22188. width: 130px;
  22189. height: 60px;
  22190. text-align: center;
  22191. line-height: 60px;
  22192. font-size: 20px;
  22193. cursor: pointer;
  22194. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  22195. background-size: cover;
  22196. transition: all 2s;
  22197. margin-right: 20px;
  22198. }
  22199. .isCard > div,
  22200. .noCard > div,
  22201. .isCard1 > div {
  22202. white-space: nowrap;
  22203. overflow: hidden;
  22204. text-overflow: ellipsis;
  22205. width: 75%;
  22206. margin: 0 auto;
  22207. }
  22208. .noCard {
  22209. background-image: none;
  22210. }
  22211. .isCard1 {
  22212. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  22213. }
  22214. .isChooseCard {
  22215. background-image: none;
  22216. border: 1px dashed #b9b9b9;
  22217. border-radius: 10px;
  22218. }
  22219. .card {
  22220. width: 130px;
  22221. height: 60px;
  22222. }
  22223. .card > img {
  22224. width: 100%;
  22225. height: 100%;
  22226. }
  22227. .rightCardBox {
  22228. margin: 10px 0 0 10px;
  22229. }
  22230. .rightCardBox > div:nth-child(1) {
  22231. margin-bottom: 10px;
  22232. }
  22233. .cardCss {
  22234. display: flex;
  22235. flex-direction: column;
  22236. flex-wrap: nowrap;
  22237. align-items: center;
  22238. border-bottom: 3px solid #b4c3d3;
  22239. padding: 0 0 5px 0;
  22240. margin-right: 10px;
  22241. }
  22242. .cardCss > div:nth-child(2) {
  22243. background: #5b7b9d;
  22244. color: #fff;
  22245. width: 20px;
  22246. height: 20px;
  22247. border-radius: 50%;
  22248. text-align: center;
  22249. line-height: 20px;
  22250. }
  22251. .isWrong {
  22252. display: flex;
  22253. flex-direction: row;
  22254. flex-wrap: nowrap;
  22255. align-content: center;
  22256. align-items: center;
  22257. }
  22258. .answerRight {
  22259. width: 25%;
  22260. }
  22261. .isTj {
  22262. display: flex;
  22263. flex-direction: row;
  22264. flex-wrap: nowrap;
  22265. align-items: center;
  22266. }
  22267. .isTj > div:nth-child(2) {
  22268. color: #727070;
  22269. margin-left: 10px;
  22270. }
  22271. .isTjImg {
  22272. width: 30px;
  22273. height: 30px;
  22274. }
  22275. .isTjImg > img {
  22276. width: 100%;
  22277. height: 100%;
  22278. }
  22279. .cardAnswerBox {
  22280. font-size: 18px;
  22281. width: 97%;
  22282. border: 5px;
  22283. padding: 0;
  22284. border-radius: 5px;
  22285. margin: 10px auto;
  22286. word-break: break-word;
  22287. }
  22288. .w_name {
  22289. margin-bottom: 10px;
  22290. }
  22291. .w_name span {
  22292. font-size: 16px;
  22293. }
  22294. .w_teachert {
  22295. width: 50px !important;
  22296. position: absolute;
  22297. height: auto !important;
  22298. z-index: 10;
  22299. right: 25px;
  22300. top: -25px;
  22301. }
  22302. .group_workBox {
  22303. }
  22304. .group_workBox + .group_workBox {
  22305. margin-top: 20px;
  22306. }
  22307. .group_box {
  22308. padding-bottom: 20px;
  22309. border-bottom: 2px solid #f0f0f0;
  22310. margin-top: 10px;
  22311. }
  22312. .group_title {
  22313. display: flex;
  22314. align-items: center;
  22315. justify-content: space-between;
  22316. width: 95%;
  22317. }
  22318. .group_name {
  22319. background-image: url(../../../assets/icon/groupN.png);
  22320. width: 220px;
  22321. background-size: 100% 100%;
  22322. height: 67px;
  22323. padding: 0 20px 0 43px;
  22324. box-sizing: border-box;
  22325. line-height: 63px;
  22326. color: #fff;
  22327. overflow: hidden;
  22328. white-space: nowrap;
  22329. text-overflow: ellipsis;
  22330. }
  22331. .group_work {
  22332. width: 100%;
  22333. padding: 0 10px;
  22334. box-sizing: border-box;
  22335. display: flex;
  22336. flex-wrap: wrap;
  22337. }
  22338. .g_d_box {
  22339. display: flex;
  22340. flex-flow: wrap;
  22341. justify-content: space-around;
  22342. }
  22343. .g_d_box .isChair {
  22344. background-image: url(../../../assets/avatar.png) !important;
  22345. }
  22346. .g_d_group {
  22347. width: 500px;
  22348. margin-bottom: 80px;
  22349. }
  22350. .g_d_group_chair {
  22351. display: flex;
  22352. align-items: center;
  22353. justify-content: center;
  22354. }
  22355. .g_d_group_chair > div + div {
  22356. margin-left: 30px;
  22357. }
  22358. .g_d_group_chair > div,
  22359. .g_d_group_chair2 > div {
  22360. display: flex;
  22361. flex-direction: column;
  22362. align-items: center;
  22363. }
  22364. .g_d_group_chair > div > span:nth-child(1),
  22365. .g_d_group_chair2 > div > span:nth-child(1) {
  22366. background-image: url(../../../assets/icon/chair.png);
  22367. width: 50px;
  22368. height: 50px;
  22369. display: block;
  22370. background-size: 100% 100%;
  22371. }
  22372. .g_d_group_tableBox {
  22373. display: flex;
  22374. align-items: center;
  22375. justify-content: center;
  22376. }
  22377. .g_d_group_chair2 {
  22378. display: flex;
  22379. flex-direction: column;
  22380. align-items: center;
  22381. justify-content: center;
  22382. }
  22383. .g_d_group_chair2 > div + div {
  22384. margin-top: 10px;
  22385. }
  22386. .g_d_group_table {
  22387. background-image: url(../../../assets/icon/groupBg.png);
  22388. width: 354px;
  22389. height: 196px;
  22390. background-size: 100% 100%;
  22391. display: flex;
  22392. align-items: center;
  22393. justify-content: center;
  22394. flex-direction: column;
  22395. color: #fff;
  22396. }
  22397. .g_d_group_table > div:nth-child(1) {
  22398. font-size: 24px;
  22399. margin-bottom: 5px;
  22400. }
  22401. .g_d_group_table > div:nth-child(2) div {
  22402. cursor: pointer;
  22403. background: #2e77bf;
  22404. padding: 4px 10px;
  22405. border-radius: 5px;
  22406. }
  22407. .groupBox {
  22408. }
  22409. .groupContent + .groupContent {
  22410. margin-top: 30px;
  22411. }
  22412. .groupTitle {
  22413. font-size: 24px;
  22414. color: rgb(80, 80, 80);
  22415. margin-bottom: 20px;
  22416. }
  22417. .groupName {
  22418. display: flex;
  22419. align-items: center;
  22420. }
  22421. .groupn {
  22422. font-size: 15px;
  22423. margin-right: 10px;
  22424. }
  22425. .groupName + .groupName {
  22426. margin-top: 15px;
  22427. }
  22428. .groupBtn {
  22429. margin-left: 10px;
  22430. }
  22431. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22432. text-align: left;
  22433. }
  22434. .g_d_btnBox {
  22435. display: flex;
  22436. justify-content: flex-end;
  22437. align-items: center;
  22438. margin-bottom: 20px;
  22439. }
  22440. .updateChair {
  22441. position: relative;
  22442. }
  22443. .updateChairBtn {
  22444. position: absolute;
  22445. width: 50px;
  22446. height: 50px;
  22447. overflow: hidden;
  22448. /* display: flex; */
  22449. align-items: center;
  22450. justify-content: center;
  22451. background: #00000087;
  22452. color: #fff;
  22453. border-radius: 50px;
  22454. display: none;
  22455. cursor: pointer;
  22456. }
  22457. .updateChair:hover .updateChairBtn {
  22458. display: flex;
  22459. }
  22460. .group_staic_box {
  22461. display: flex;
  22462. padding: 30px 40px 10px;
  22463. flex-wrap: wrap;
  22464. }
  22465. .group_staic {
  22466. /* width: 50%; */
  22467. margin-bottom: 20px;
  22468. display: flex;
  22469. align-items: center;
  22470. }
  22471. .group_staic span:nth-child(1) {
  22472. width: 150px;
  22473. text-align: right;
  22474. margin-right: 15px;
  22475. }
  22476. .group_staic span:nth-child(2) {
  22477. background: rgb(0 123 255);
  22478. color: #fff;
  22479. border-radius: 5px;
  22480. padding: 5px;
  22481. }
  22482. .codeFileBox {
  22483. height: 300px;
  22484. background: #fff;
  22485. display: flex;
  22486. align-items: center;
  22487. justify-content: center;
  22488. }
  22489. .codeFileBox img {
  22490. width: 200px;
  22491. margin: 0;
  22492. height: auto;
  22493. }
  22494. .codeFileBox div {
  22495. background: rgb(80, 142, 226);
  22496. color: #fff;
  22497. padding: 10px 20px;
  22498. border-radius: 25px;
  22499. cursor: pointer;
  22500. margin-left: 15px;
  22501. }
  22502. .radioBox {
  22503. display: flex;
  22504. flex-direction: column;
  22505. flex-wrap: nowrap;
  22506. align-items: flex-start;
  22507. }
  22508. .radioBox > div {
  22509. margin: 10px 0 0 10px;
  22510. }
  22511. /* .radioBox >>> .el-radio__input,
  22512. .radioBox >>> .el-checkbox__inner {
  22513. margin-left: 10px;
  22514. } */
  22515. .radioBox >>> .el-radio__label,
  22516. .radioBox >>> .el-checkbox__label {
  22517. display: flex;
  22518. align-items: center;
  22519. width: 100%;
  22520. }
  22521. .radioBox >>> .el-radio__label > span {
  22522. width: 100%;
  22523. display: -webkit-box;
  22524. overflow: hidden;
  22525. white-space: normal !important;
  22526. text-overflow: ellipsis;
  22527. word-wrap: break-word;
  22528. }
  22529. .inImg {
  22530. width: 100px;
  22531. cursor: pointer;
  22532. }
  22533. .inImg > img {
  22534. width: 100%;
  22535. height: 100%;
  22536. object-fit: cover;
  22537. }
  22538. .timuImgBox {
  22539. margin: 10px 0;
  22540. display: flex;
  22541. flex-direction: column;
  22542. flex-wrap: wrap;
  22543. align-items: flex-start;
  22544. }
  22545. .timuImg {
  22546. width: 150px;
  22547. margin: 5px 0;
  22548. cursor: pointer;
  22549. }
  22550. .timuImg > img {
  22551. width: 100%;
  22552. height: 100%;
  22553. object-fit: cover;
  22554. }
  22555. .worksTop {
  22556. display: flex;
  22557. flex-direction: row;
  22558. align-items: flex-end;
  22559. }
  22560. .worksTitle{
  22561. display: flex;
  22562. flex-direction: row;
  22563. flex-wrap: nowrap;
  22564. align-items: center;
  22565. }
  22566. .worksTitle::before,.worksTop::before{
  22567. content: '';
  22568. display: block;
  22569. width: 3px;
  22570. height: 20px;
  22571. background: #0061FF;
  22572. border-radius: 3px;
  22573. margin: 0 5px 0 0;
  22574. }
  22575. .corOpen {
  22576. margin: 0 0 0 10px;
  22577. font-size: 14px;
  22578. cursor: pointer;
  22579. color: #505050;
  22580. }
  22581. .corOpen:hover {
  22582. color: #499eef;
  22583. }
  22584. .navCorOpenBox {
  22585. display: flex;
  22586. flex-direction: row;
  22587. align-items: center;
  22588. justify-content: space-between;
  22589. height: 55px;
  22590. background: #ffffff;
  22591. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22592. border-radius: 8px 8px 0px 0px;
  22593. z-index: 9;
  22594. position: relative;
  22595. }
  22596. .navCorOpen {
  22597. padding-right: 15px;
  22598. cursor: pointer;
  22599. width: 45px;
  22600. display: flex;
  22601. }
  22602. .navCorOpen > img {
  22603. width: 100%;
  22604. height: 100%;
  22605. }
  22606. .mlImg {
  22607. width: 40px !important;
  22608. min-width: 40px;
  22609. cursor: pointer;
  22610. transform: rotate(180deg);
  22611. }
  22612. .mlImg > img {
  22613. width: 100%;
  22614. height: 100%;
  22615. }
  22616. .navLeftCss {
  22617. width: 100% !important;
  22618. left: 0 !important;
  22619. }
  22620. .isContentCss {
  22621. width: 100% !important;
  22622. }
  22623. .isAllWidth {
  22624. width: 100% !important;
  22625. }
  22626. .group_switch {
  22627. margin-right: 10px;
  22628. height: 30px;
  22629. display: flex;
  22630. align-items: center;
  22631. }
  22632. .group_switch > span {
  22633. margin-right: 5px;
  22634. }
  22635. .fileC_box {
  22636. padding-top: 15px;
  22637. }
  22638. .fileC_box > .fileC_title {
  22639. padding: 10px 5px 14px 10px;
  22640. border-top: 1px solid #cad1dc;
  22641. font-size: 14px;
  22642. font-weight: 400;
  22643. color: #cad1dc;
  22644. width: calc(100% - 20px);
  22645. margin: 0 auto;
  22646. box-sizing: border-box;
  22647. }
  22648. .pl_select_box {
  22649. height: 40px;
  22650. line-height: 40px;
  22651. width: 100%;
  22652. cursor: pointer;
  22653. padding: 0 20px;
  22654. box-sizing: border-box;
  22655. border-radius: 5px;
  22656. border: 1px solid #d6d6d6;
  22657. white-space: nowrap;
  22658. overflow: hidden;
  22659. text-overflow: ellipsis;
  22660. background: #fff;
  22661. text-align: left;
  22662. }
  22663. .newButton {
  22664. width: 102px;
  22665. height: 36px;
  22666. background: #e7ebf1;
  22667. border-radius: 4px;
  22668. color: #0e1e33;
  22669. font-weight: 400;
  22670. font-size: 14px;
  22671. border: none;
  22672. float: right;
  22673. margin-left: 10px;
  22674. }
  22675. .el-table >>> .even_row {
  22676. background-color: #f0f4fa;
  22677. }
  22678. .stageBoxCss,
  22679. .stageBoxIsCss {
  22680. display: flex;
  22681. flex-direction: row;
  22682. flex-wrap: nowrap;
  22683. align-items: center;
  22684. height: 50px;
  22685. border-bottom: 1px solid #e2f5fc;
  22686. cursor: pointer;
  22687. width: 100%;
  22688. }
  22689. .stageBoxIsCss {
  22690. background: #0061ff;
  22691. color: #fff;
  22692. border-radius: 8px;
  22693. }
  22694. .closeTri,
  22695. .closeTri1 {
  22696. min-width: 15px;
  22697. width: 15px;
  22698. height: 15px;
  22699. }
  22700. .closeTri1 {
  22701. padding-left: 10px;
  22702. cursor: pointer;
  22703. }
  22704. .closeTri > img,
  22705. .closeTri1 > img {
  22706. width: 100%;
  22707. height: 100%;
  22708. /* transition: all .5s; */
  22709. }
  22710. .noToolBlue {
  22711. min-width: 10px;
  22712. width: 10px;
  22713. height: 10px;
  22714. background: #0061ff;
  22715. border-radius: 50%;
  22716. margin-left: 13px;
  22717. }
  22718. .stageChild,
  22719. .toolChild {
  22720. height: 0;
  22721. overflow: hidden;
  22722. transition: all 0.5s;
  22723. }
  22724. .toolChild {
  22725. /* margin: 0 0 0 17px;
  22726. padding: 0 0 0 20px;
  22727. border-left: 1px solid #d7d7d7; */
  22728. }
  22729. .toolChild > div + div{
  22730. margin-top:5px;
  22731. }
  22732. .gjCss {
  22733. display: flex;
  22734. flex-direction: row;
  22735. flex-wrap: nowrap;
  22736. align-items: center;
  22737. padding: 10px 0 10px 40px;
  22738. box-sizing: border-box;
  22739. font-size: 14px;
  22740. cursor: pointer;
  22741. border-radius:5px;
  22742. }
  22743. .toolChild > div {
  22744. position: relative;
  22745. width: 100%;
  22746. }
  22747. .toolChild > div::before {
  22748. /* content: "";
  22749. width: 15px;
  22750. height: 1px;
  22751. background: #cad1dc;
  22752. position: absolute;
  22753. top: 24px;
  22754. left: -20px;
  22755. display: block; */
  22756. }
  22757. .isGjCss {
  22758. /* color: #0061ff; */
  22759. color:#fff;
  22760. background: rgb(55, 129, 252);
  22761. /* background-color: #e0eafb !important;
  22762. color: #0061ff !important; */
  22763. }
  22764. .navItem {
  22765. background: #ffffff;
  22766. border-radius: 4px;
  22767. width: 100%;
  22768. margin: 10px auto;
  22769. position: relative;
  22770. height: 40px;
  22771. display: flex;
  22772. flex-direction: row;
  22773. flex-wrap: nowrap;
  22774. align-items: center;
  22775. }
  22776. .navItemList {
  22777. display: flex;
  22778. flex-direction: row;
  22779. flex-wrap: nowrap;
  22780. align-items: center;
  22781. padding: 0 13px;
  22782. cursor: pointer;
  22783. width: calc(100% - 60px);
  22784. height: 100%;
  22785. }
  22786. .navItemList > div:first-child {
  22787. min-width: 60px;
  22788. }
  22789. .navItemList > div:last-child {
  22790. width: calc(100% - 80px);
  22791. white-space: nowrap;
  22792. overflow: hidden;
  22793. text-overflow: ellipsis;
  22794. word-break: break-word;
  22795. }
  22796. /* .isItemList > div {
  22797. color: #fff !important;
  22798. } */
  22799. .tool_work_box {
  22800. width: 100%;
  22801. padding: 0 37px 0;
  22802. box-sizing: border-box;
  22803. }
  22804. .tool_box {
  22805. width: 100%;
  22806. padding: 0 0 0 20px;
  22807. }
  22808. .tool_type_box {
  22809. display: flex;
  22810. flex-direction: row;
  22811. align-items: baseline;
  22812. flex-wrap: nowrap;
  22813. justify-content: flex-start;
  22814. position: relative;
  22815. }
  22816. .toolSort {
  22817. display: flex;
  22818. flex-direction: row;
  22819. flex-wrap: wrap;
  22820. justify-content: flex-start;
  22821. align-items: flex-start;
  22822. padding: 0 0 15px 0;
  22823. }
  22824. .toolSort > div {
  22825. margin: 0 10px 0 0;
  22826. width: 135px;
  22827. box-sizing: border-box;
  22828. border: 2px solid transparent;
  22829. }
  22830. .tools {
  22831. width: 100%;
  22832. display: flex;
  22833. flex-direction: column;
  22834. flex-wrap: nowrap;
  22835. align-items: flex-start;
  22836. }
  22837. .whiteBIcon {
  22838. width: fit-content;
  22839. cursor: pointer;
  22840. display: flex;
  22841. flex-direction: column;
  22842. flex-wrap: nowrap;
  22843. align-items: center;
  22844. font-size: 14px;
  22845. }
  22846. .tool:hover {
  22847. border: 2px solid #a5c7ff;
  22848. border-radius: 5px;
  22849. }
  22850. .whiteBIcon > img {
  22851. width: 65px;
  22852. height: 100%;
  22853. }
  22854. .whiteBIcon > img {
  22855. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22856. border-radius: 15px;
  22857. }
  22858. .check {
  22859. /* width: 20px;
  22860. height: 20px; */
  22861. cursor: pointer;
  22862. margin: 10px 0;
  22863. position: absolute;
  22864. right: 2px;
  22865. top: -5px;
  22866. }
  22867. .noChoose,
  22868. .isChoose {
  22869. width: 15px;
  22870. height: 15px;
  22871. border-radius: 50%;
  22872. border: 1px solid #adadad;
  22873. }
  22874. .isChoose {
  22875. border: 4px solid #0363ff !important;
  22876. width: 10px;
  22877. height: 10px;
  22878. }
  22879. .isToolChoose {
  22880. border: 2px solid #5394ff !important;
  22881. border-radius: 5px;
  22882. box-shadow: 0 0 6px 0px #5394ff;
  22883. }
  22884. .checkDiv {
  22885. display: flex;
  22886. align-items: center;
  22887. }
  22888. .checkDiv span {
  22889. margin-left: 5px;
  22890. color: #858585;
  22891. }
  22892. .check img {
  22893. width: 20px;
  22894. height: 20px;
  22895. }
  22896. .lockTaskIcon {
  22897. width: 20px;
  22898. height: 20px;
  22899. position: absolute;
  22900. right: 10px;
  22901. top: 10px;
  22902. }
  22903. .lockTaskIcon > img {
  22904. width: 100%;
  22905. height: 100%;
  22906. }
  22907. .pick_box {
  22908. display: flex;
  22909. align-items: flex-start;
  22910. flex-wrap: wrap;
  22911. }
  22912. .selectBox {
  22913. width: 110px;
  22914. margin-left: 10px;
  22915. margin: 0 10px 0 auto;
  22916. }
  22917. .selectBox >>> .el-input__inner {
  22918. height: 30px;
  22919. line-height: 30px;
  22920. }
  22921. .selectBox >>> .el-input__icon {
  22922. line-height: 30px;
  22923. }
  22924. .sentenceTitle {
  22925. display: flex;
  22926. flex-direction: row;
  22927. flex-wrap: nowrap;
  22928. align-items: center;
  22929. }
  22930. .sentenceTitle::before {
  22931. content: attr(index);
  22932. background: #3681fc;
  22933. border-radius: 50%;
  22934. color: #fff;
  22935. width: 25px;
  22936. height: 25px;
  22937. min-width: 25px;
  22938. min-height: 25px;
  22939. text-align: center;
  22940. line-height: 25px;
  22941. margin-right: 5px;
  22942. }
  22943. .hfBox {
  22944. padding: 10px;
  22945. box-sizing: border-box;
  22946. }
  22947. .whoReplyWho {
  22948. display: flex;
  22949. flex-direction: row;
  22950. flex-wrap: nowrap;
  22951. align-items: baseline;
  22952. justify-content: flex-start;
  22953. }
  22954. .hfBottom {
  22955. display: flex;
  22956. flex-direction: row;
  22957. flex-wrap: nowrap;
  22958. align-items: center;
  22959. justify-content: space-between;
  22960. font-size: 14px;
  22961. }
  22962. .deleteHfItem {
  22963. cursor: pointer;
  22964. width: 20px;
  22965. height: 20px;
  22966. }
  22967. .deleteHfItem > img {
  22968. width: 100%;
  22969. height: 100%;
  22970. }
  22971. .whoReplyWho > .hfImg {
  22972. width: 12px;
  22973. height: 12px;
  22974. margin: 0 5px;
  22975. }
  22976. .whoReplyWho > .hfImg > img {
  22977. width: 100%;
  22978. height: 100%;
  22979. }
  22980. .hfContent {
  22981. padding-top: 10px;
  22982. box-sizing: border-box;
  22983. display: -webkit-box;
  22984. overflow: hidden;
  22985. white-space: normal !important;
  22986. text-overflow: ellipsis;
  22987. word-wrap: break-word;
  22988. -webkit-box-orient: vertical;
  22989. }
  22990. .hfTime {
  22991. text-align: left;
  22992. box-sizing: border-box;
  22993. padding: 10px 0 10px 0px;
  22994. color: #bfbfbf;
  22995. font-size: 14px;
  22996. }
  22997. .btnAllNT {
  22998. position: fixed;
  22999. bottom: 100px;
  23000. right: 40px;
  23001. z-index: 999;
  23002. display: flex;
  23003. flex-direction: row;
  23004. }
  23005. .btnAllNT > img {
  23006. cursor: pointer;
  23007. width: 80px;
  23008. }
  23009. .toolMask {
  23010. position: fixed;
  23011. width: 100%;
  23012. height: 100%;
  23013. background: #3f3c3c;
  23014. opacity: 0.5;
  23015. top: 0;
  23016. left: 0;
  23017. z-index: 999;
  23018. }
  23019. .addToolCss {
  23020. position: fixed;
  23021. z-index: 999;
  23022. background: #fff;
  23023. right: 5%;
  23024. bottom: 18%;
  23025. min-width: 1035px;
  23026. min-height: 300px;
  23027. border-radius: 10px;
  23028. box-shadow: 0 0 8px 1px #b2b2b2;
  23029. }
  23030. .toolTop {
  23031. display: flex;
  23032. flex-direction: row;
  23033. flex-wrap: nowrap;
  23034. justify-content: space-between;
  23035. align-items: center;
  23036. padding: 20px;
  23037. }
  23038. .toolTop > div:nth-child(2) {
  23039. width: 15px;
  23040. height: 15px;
  23041. padding-right: 10px;
  23042. cursor: pointer;
  23043. }
  23044. .toolTop > div:nth-child(2) > img {
  23045. width: 100%;
  23046. height: 100%;
  23047. }
  23048. .fullStyle>>>.el-dialog__body {
  23049. height: calc(100% - 125px) !important;
  23050. box-sizing: border-box;
  23051. padding: 30px 0 !important;
  23052. background: #fff !important;
  23053. }
  23054. .fullStyle>>>.el-dialog {
  23055. width: 100% !important;
  23056. max-width: 100% !important;
  23057. height: 100% !important;
  23058. margin: 0 !important;
  23059. }
  23060. .fullStyle {
  23061. width: 100% !important;
  23062. max-width: 100% !important;
  23063. height: 100% !important;
  23064. margin: 0 auto !important;
  23065. }
  23066. .fullStyle>>>.el-dialog__footer{
  23067. background: #fff !important;
  23068. }
  23069. .engUpBox {
  23070. width: 100%;
  23071. height: 100%;
  23072. }
  23073. .engTitle,
  23074. .engText {
  23075. display: flex;
  23076. flex-direction: row;
  23077. flex-wrap: nowrap;
  23078. align-items: flex-start;
  23079. padding: 0 20px 20px 20px;
  23080. box-sizing: border-box;
  23081. }
  23082. .engTitle > .div:first-child,
  23083. .engText > div:first-child {
  23084. min-width: 75px;
  23085. }
  23086. .correctBox{
  23087. width: 100%;
  23088. display: flex;
  23089. flex-direction: row;
  23090. flex-wrap: nowrap;
  23091. align-items: flex-start;
  23092. }
  23093. .oldBox{
  23094. width: 50%;
  23095. height: 100%;
  23096. display: flex;
  23097. flex-direction: column;
  23098. flex-wrap: nowrap;
  23099. align-items: center;
  23100. border-top: 1px solid #d9d9d9;
  23101. border-left: 1px solid #d9d9d9;
  23102. border-right: 1px solid #d9d9d9;
  23103. }
  23104. .oldBox>div:first-child{
  23105. width: 100%;
  23106. text-align: center;
  23107. background: #d9d9d9;
  23108. height: 35px;
  23109. line-height: 35px;
  23110. font-weight: bold;
  23111. }
  23112. .oldText{
  23113. width: 100%;
  23114. height: calc(100% - 35px);
  23115. overflow: auto;
  23116. margin: 10px 0;
  23117. display: flex;
  23118. flex-direction: column;
  23119. flex-wrap: nowrap;
  23120. align-content: center;
  23121. align-items: center;
  23122. }
  23123. .detailBox{
  23124. width: 50%;
  23125. padding: 10px;
  23126. background: #f6f6f6;
  23127. border-radius: 5px;
  23128. }
  23129. .oldDetail,.oldDetail1{
  23130. padding-bottom: 30px;
  23131. }
  23132. .oldImg{
  23133. width:30px;
  23134. height: 30px;
  23135. }
  23136. .oldImg>img{
  23137. width: 100%;
  23138. height: 100%;
  23139. }
  23140. .allName{
  23141. min-width: 200px;
  23142. white-space: nowrap;
  23143. overflow: hidden;
  23144. text-overflow: ellipsis;
  23145. word-break: break-word;
  23146. cursor: pointer;
  23147. text-align: center;
  23148. border: 1px solid #bcc2cc;
  23149. box-sizing: border-box;
  23150. }
  23151. .engUpTop{
  23152. max-height: 300px;
  23153. overflow: auto;
  23154. }
  23155. .isUpdateToolDetailClass{
  23156. padding: 0 !important;
  23157. }
  23158. .isUpdateToolDetailClass textarea{
  23159. padding:12px;
  23160. font-size: 16px;
  23161. min-height:100%;
  23162. width: 100%;
  23163. box-sizing:border-box;
  23164. outline: none;
  23165. border:none;
  23166. line-height: 30px;
  23167. resize: none;
  23168. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23169. color: #838383;
  23170. }
  23171. .show_taskD {
  23172. min-width: fit-content;
  23173. margin-left: 10px;
  23174. display: flex;
  23175. align-items: center;
  23176. font-size: 14px;
  23177. cursor: pointer;
  23178. color: #717c8d;
  23179. }
  23180. .show_taskD > img {
  23181. width: 15px;
  23182. margin-right: 5px;
  23183. transition: 0.2s all;
  23184. transform: rotate(-90deg);
  23185. }
  23186. .show_taskD.show > img {
  23187. transform: rotate(0deg);
  23188. }
  23189. .correctCss{
  23190. position: absolute;
  23191. bottom: -70px;
  23192. background: #409eff;
  23193. color: #fff;
  23194. }
  23195. </style>