studyStudent.vue 786 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856
  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. min-width: 130px;
  22189. width: auto;
  22190. height: 60px;
  22191. text-align: center;
  22192. line-height: 60px;
  22193. font-size: 20px;
  22194. cursor: pointer;
  22195. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  22196. background-size: cover;
  22197. transition: all 2s;
  22198. margin-right: 20px;
  22199. background-size: 100% 100%;
  22200. padding: 0 20px;
  22201. box-sizing: border-box;
  22202. }
  22203. .isCard > div,
  22204. .noCard > div,
  22205. .isCard1 > div {
  22206. white-space: nowrap;
  22207. overflow: hidden;
  22208. text-overflow: ellipsis;
  22209. width: 100%;
  22210. margin: 0 auto;
  22211. }
  22212. .noCard {
  22213. background-image: none;
  22214. }
  22215. .isCard1 {
  22216. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  22217. }
  22218. .isChooseCard {
  22219. background-image: none;
  22220. border: 1px dashed #b9b9b9;
  22221. border-radius: 10px;
  22222. }
  22223. .card {
  22224. width: 130px;
  22225. height: 60px;
  22226. }
  22227. .card > img {
  22228. width: 100%;
  22229. height: 100%;
  22230. }
  22231. .rightCardBox {
  22232. margin: 10px 0 0 10px;
  22233. }
  22234. .rightCardBox > div:nth-child(1) {
  22235. margin-bottom: 10px;
  22236. }
  22237. .cardCss {
  22238. display: flex;
  22239. flex-direction: column;
  22240. flex-wrap: nowrap;
  22241. align-items: center;
  22242. border-bottom: 3px solid #b4c3d3;
  22243. padding: 0 0 5px 0;
  22244. margin-right: 10px;
  22245. }
  22246. .cardCss > div:nth-child(2) {
  22247. background: #5b7b9d;
  22248. color: #fff;
  22249. width: 20px;
  22250. height: 20px;
  22251. border-radius: 50%;
  22252. text-align: center;
  22253. line-height: 20px;
  22254. }
  22255. .isWrong {
  22256. display: flex;
  22257. flex-direction: row;
  22258. flex-wrap: nowrap;
  22259. align-content: center;
  22260. align-items: center;
  22261. }
  22262. .answerRight {
  22263. width: 25%;
  22264. }
  22265. .isTj {
  22266. display: flex;
  22267. flex-direction: row;
  22268. flex-wrap: nowrap;
  22269. align-items: center;
  22270. }
  22271. .isTj > div:nth-child(2) {
  22272. color: #727070;
  22273. margin-left: 10px;
  22274. }
  22275. .isTjImg {
  22276. width: 30px;
  22277. height: 30px;
  22278. }
  22279. .isTjImg > img {
  22280. width: 100%;
  22281. height: 100%;
  22282. }
  22283. .cardAnswerBox {
  22284. font-size: 18px;
  22285. width: 97%;
  22286. border: 5px;
  22287. padding: 0;
  22288. border-radius: 5px;
  22289. margin: 10px auto;
  22290. word-break: break-word;
  22291. }
  22292. .w_name {
  22293. margin-bottom: 10px;
  22294. }
  22295. .w_name span {
  22296. font-size: 16px;
  22297. }
  22298. .w_teachert {
  22299. width: 50px !important;
  22300. position: absolute;
  22301. height: auto !important;
  22302. z-index: 10;
  22303. right: 25px;
  22304. top: -25px;
  22305. }
  22306. .group_workBox {
  22307. }
  22308. .group_workBox + .group_workBox {
  22309. margin-top: 20px;
  22310. }
  22311. .group_box {
  22312. padding-bottom: 20px;
  22313. border-bottom: 2px solid #f0f0f0;
  22314. margin-top: 10px;
  22315. }
  22316. .group_title {
  22317. display: flex;
  22318. align-items: center;
  22319. justify-content: space-between;
  22320. width: 95%;
  22321. }
  22322. .group_name {
  22323. background-image: url(../../../assets/icon/groupN.png);
  22324. width: 220px;
  22325. background-size: 100% 100%;
  22326. height: 67px;
  22327. padding: 0 20px 0 43px;
  22328. box-sizing: border-box;
  22329. line-height: 63px;
  22330. color: #fff;
  22331. overflow: hidden;
  22332. white-space: nowrap;
  22333. text-overflow: ellipsis;
  22334. }
  22335. .group_work {
  22336. width: 100%;
  22337. padding: 0 10px;
  22338. box-sizing: border-box;
  22339. display: flex;
  22340. flex-wrap: wrap;
  22341. }
  22342. .g_d_box {
  22343. display: flex;
  22344. flex-flow: wrap;
  22345. justify-content: space-around;
  22346. }
  22347. .g_d_box .isChair {
  22348. background-image: url(../../../assets/avatar.png) !important;
  22349. }
  22350. .g_d_group {
  22351. width: 500px;
  22352. margin-bottom: 80px;
  22353. }
  22354. .g_d_group_chair {
  22355. display: flex;
  22356. align-items: center;
  22357. justify-content: center;
  22358. }
  22359. .g_d_group_chair > div + div {
  22360. margin-left: 30px;
  22361. }
  22362. .g_d_group_chair > div,
  22363. .g_d_group_chair2 > div {
  22364. display: flex;
  22365. flex-direction: column;
  22366. align-items: center;
  22367. }
  22368. .g_d_group_chair > div > span:nth-child(1),
  22369. .g_d_group_chair2 > div > span:nth-child(1) {
  22370. background-image: url(../../../assets/icon/chair.png);
  22371. width: 50px;
  22372. height: 50px;
  22373. display: block;
  22374. background-size: 100% 100%;
  22375. }
  22376. .g_d_group_tableBox {
  22377. display: flex;
  22378. align-items: center;
  22379. justify-content: center;
  22380. }
  22381. .g_d_group_chair2 {
  22382. display: flex;
  22383. flex-direction: column;
  22384. align-items: center;
  22385. justify-content: center;
  22386. }
  22387. .g_d_group_chair2 > div + div {
  22388. margin-top: 10px;
  22389. }
  22390. .g_d_group_table {
  22391. background-image: url(../../../assets/icon/groupBg.png);
  22392. width: 354px;
  22393. height: 196px;
  22394. background-size: 100% 100%;
  22395. display: flex;
  22396. align-items: center;
  22397. justify-content: center;
  22398. flex-direction: column;
  22399. color: #fff;
  22400. }
  22401. .g_d_group_table > div:nth-child(1) {
  22402. font-size: 24px;
  22403. margin-bottom: 5px;
  22404. }
  22405. .g_d_group_table > div:nth-child(2) div {
  22406. cursor: pointer;
  22407. background: #2e77bf;
  22408. padding: 4px 10px;
  22409. border-radius: 5px;
  22410. }
  22411. .groupBox {
  22412. }
  22413. .groupContent + .groupContent {
  22414. margin-top: 30px;
  22415. }
  22416. .groupTitle {
  22417. font-size: 24px;
  22418. color: rgb(80, 80, 80);
  22419. margin-bottom: 20px;
  22420. }
  22421. .groupName {
  22422. display: flex;
  22423. align-items: center;
  22424. }
  22425. .groupn {
  22426. font-size: 15px;
  22427. margin-right: 10px;
  22428. }
  22429. .groupName + .groupName {
  22430. margin-top: 15px;
  22431. }
  22432. .groupBtn {
  22433. margin-left: 10px;
  22434. }
  22435. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  22436. text-align: left;
  22437. }
  22438. .g_d_btnBox {
  22439. display: flex;
  22440. justify-content: flex-end;
  22441. align-items: center;
  22442. margin-bottom: 20px;
  22443. }
  22444. .updateChair {
  22445. position: relative;
  22446. }
  22447. .updateChairBtn {
  22448. position: absolute;
  22449. width: 50px;
  22450. height: 50px;
  22451. overflow: hidden;
  22452. /* display: flex; */
  22453. align-items: center;
  22454. justify-content: center;
  22455. background: #00000087;
  22456. color: #fff;
  22457. border-radius: 50px;
  22458. display: none;
  22459. cursor: pointer;
  22460. }
  22461. .updateChair:hover .updateChairBtn {
  22462. display: flex;
  22463. }
  22464. .group_staic_box {
  22465. display: flex;
  22466. padding: 30px 40px 10px;
  22467. flex-wrap: wrap;
  22468. }
  22469. .group_staic {
  22470. /* width: 50%; */
  22471. margin-bottom: 20px;
  22472. display: flex;
  22473. align-items: center;
  22474. }
  22475. .group_staic span:nth-child(1) {
  22476. width: 150px;
  22477. text-align: right;
  22478. margin-right: 15px;
  22479. }
  22480. .group_staic span:nth-child(2) {
  22481. background: rgb(0 123 255);
  22482. color: #fff;
  22483. border-radius: 5px;
  22484. padding: 5px;
  22485. }
  22486. .codeFileBox {
  22487. height: 300px;
  22488. background: #fff;
  22489. display: flex;
  22490. align-items: center;
  22491. justify-content: center;
  22492. }
  22493. .codeFileBox img {
  22494. width: 200px;
  22495. margin: 0;
  22496. height: auto;
  22497. }
  22498. .codeFileBox div {
  22499. background: rgb(80, 142, 226);
  22500. color: #fff;
  22501. padding: 10px 20px;
  22502. border-radius: 25px;
  22503. cursor: pointer;
  22504. margin-left: 15px;
  22505. }
  22506. .radioBox {
  22507. display: flex;
  22508. flex-direction: column;
  22509. flex-wrap: nowrap;
  22510. align-items: flex-start;
  22511. }
  22512. .radioBox > div {
  22513. margin: 10px 0 0 10px;
  22514. }
  22515. /* .radioBox >>> .el-radio__input,
  22516. .radioBox >>> .el-checkbox__inner {
  22517. margin-left: 10px;
  22518. } */
  22519. .radioBox >>> .el-radio__label,
  22520. .radioBox >>> .el-checkbox__label {
  22521. display: flex;
  22522. align-items: center;
  22523. width: 100%;
  22524. }
  22525. .radioBox >>> .el-radio__label > span {
  22526. width: 100%;
  22527. display: -webkit-box;
  22528. overflow: hidden;
  22529. white-space: normal !important;
  22530. text-overflow: ellipsis;
  22531. word-wrap: break-word;
  22532. }
  22533. .inImg {
  22534. width: 100px;
  22535. cursor: pointer;
  22536. }
  22537. .inImg > img {
  22538. width: 100%;
  22539. height: 100%;
  22540. object-fit: cover;
  22541. }
  22542. .timuImgBox {
  22543. margin: 10px 0;
  22544. display: flex;
  22545. flex-direction: column;
  22546. flex-wrap: wrap;
  22547. align-items: flex-start;
  22548. }
  22549. .timuImg {
  22550. width: 150px;
  22551. margin: 5px 0;
  22552. cursor: pointer;
  22553. }
  22554. .timuImg > img {
  22555. width: 100%;
  22556. height: 100%;
  22557. object-fit: cover;
  22558. }
  22559. .worksTop {
  22560. display: flex;
  22561. flex-direction: row;
  22562. align-items: flex-end;
  22563. }
  22564. .worksTitle{
  22565. display: flex;
  22566. flex-direction: row;
  22567. flex-wrap: nowrap;
  22568. align-items: center;
  22569. }
  22570. .worksTitle::before,.worksTop::before{
  22571. content: '';
  22572. display: block;
  22573. width: 3px;
  22574. height: 20px;
  22575. background: #0061FF;
  22576. border-radius: 3px;
  22577. margin: 0 5px 0 0;
  22578. }
  22579. .corOpen {
  22580. margin: 0 0 0 10px;
  22581. font-size: 14px;
  22582. cursor: pointer;
  22583. color: #505050;
  22584. }
  22585. .corOpen:hover {
  22586. color: #499eef;
  22587. }
  22588. .navCorOpenBox {
  22589. display: flex;
  22590. flex-direction: row;
  22591. align-items: center;
  22592. justify-content: space-between;
  22593. height: 55px;
  22594. background: #ffffff;
  22595. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  22596. border-radius: 8px 8px 0px 0px;
  22597. z-index: 9;
  22598. position: relative;
  22599. }
  22600. .navCorOpen {
  22601. padding-right: 15px;
  22602. cursor: pointer;
  22603. width: 45px;
  22604. display: flex;
  22605. }
  22606. .navCorOpen > img {
  22607. width: 100%;
  22608. height: 100%;
  22609. }
  22610. .mlImg {
  22611. width: 40px !important;
  22612. min-width: 40px;
  22613. cursor: pointer;
  22614. transform: rotate(180deg);
  22615. }
  22616. .mlImg > img {
  22617. width: 100%;
  22618. height: 100%;
  22619. }
  22620. .navLeftCss {
  22621. width: 100% !important;
  22622. left: 0 !important;
  22623. }
  22624. .isContentCss {
  22625. width: 100% !important;
  22626. }
  22627. .isAllWidth {
  22628. width: 100% !important;
  22629. }
  22630. .group_switch {
  22631. margin-right: 10px;
  22632. height: 30px;
  22633. display: flex;
  22634. align-items: center;
  22635. }
  22636. .group_switch > span {
  22637. margin-right: 5px;
  22638. }
  22639. .fileC_box {
  22640. padding-top: 15px;
  22641. }
  22642. .fileC_box > .fileC_title {
  22643. padding: 10px 5px 14px 10px;
  22644. border-top: 1px solid #cad1dc;
  22645. font-size: 14px;
  22646. font-weight: 400;
  22647. color: #cad1dc;
  22648. width: calc(100% - 20px);
  22649. margin: 0 auto;
  22650. box-sizing: border-box;
  22651. }
  22652. .pl_select_box {
  22653. height: 40px;
  22654. line-height: 40px;
  22655. width: 100%;
  22656. cursor: pointer;
  22657. padding: 0 20px;
  22658. box-sizing: border-box;
  22659. border-radius: 5px;
  22660. border: 1px solid #d6d6d6;
  22661. white-space: nowrap;
  22662. overflow: hidden;
  22663. text-overflow: ellipsis;
  22664. background: #fff;
  22665. text-align: left;
  22666. }
  22667. .newButton {
  22668. width: 102px;
  22669. height: 36px;
  22670. background: #e7ebf1;
  22671. border-radius: 4px;
  22672. color: #0e1e33;
  22673. font-weight: 400;
  22674. font-size: 14px;
  22675. border: none;
  22676. float: right;
  22677. margin-left: 10px;
  22678. }
  22679. .el-table >>> .even_row {
  22680. background-color: #f0f4fa;
  22681. }
  22682. .stageBoxCss,
  22683. .stageBoxIsCss {
  22684. display: flex;
  22685. flex-direction: row;
  22686. flex-wrap: nowrap;
  22687. align-items: center;
  22688. height: 50px;
  22689. border-bottom: 1px solid #e2f5fc;
  22690. cursor: pointer;
  22691. width: 100%;
  22692. }
  22693. .stageBoxIsCss {
  22694. background: #0061ff;
  22695. color: #fff;
  22696. border-radius: 8px;
  22697. }
  22698. .closeTri,
  22699. .closeTri1 {
  22700. min-width: 15px;
  22701. width: 15px;
  22702. height: 15px;
  22703. }
  22704. .closeTri1 {
  22705. padding-left: 10px;
  22706. cursor: pointer;
  22707. }
  22708. .closeTri > img,
  22709. .closeTri1 > img {
  22710. width: 100%;
  22711. height: 100%;
  22712. /* transition: all .5s; */
  22713. }
  22714. .noToolBlue {
  22715. min-width: 10px;
  22716. width: 10px;
  22717. height: 10px;
  22718. background: #0061ff;
  22719. border-radius: 50%;
  22720. margin-left: 13px;
  22721. }
  22722. .stageChild,
  22723. .toolChild {
  22724. height: 0;
  22725. overflow: hidden;
  22726. transition: all 0.5s;
  22727. }
  22728. .toolChild {
  22729. /* margin: 0 0 0 17px;
  22730. padding: 0 0 0 20px;
  22731. border-left: 1px solid #d7d7d7; */
  22732. }
  22733. .toolChild > div + div{
  22734. margin-top:5px;
  22735. }
  22736. .gjCss {
  22737. display: flex;
  22738. flex-direction: row;
  22739. flex-wrap: nowrap;
  22740. align-items: center;
  22741. padding: 10px 0 10px 40px;
  22742. box-sizing: border-box;
  22743. font-size: 14px;
  22744. cursor: pointer;
  22745. border-radius:5px;
  22746. }
  22747. .toolChild > div {
  22748. position: relative;
  22749. width: 100%;
  22750. }
  22751. .toolChild > div::before {
  22752. /* content: "";
  22753. width: 15px;
  22754. height: 1px;
  22755. background: #cad1dc;
  22756. position: absolute;
  22757. top: 24px;
  22758. left: -20px;
  22759. display: block; */
  22760. }
  22761. .isGjCss {
  22762. /* color: #0061ff; */
  22763. color:#fff;
  22764. background: rgb(55, 129, 252);
  22765. /* background-color: #e0eafb !important;
  22766. color: #0061ff !important; */
  22767. }
  22768. .navItem {
  22769. background: #ffffff;
  22770. border-radius: 4px;
  22771. width: 100%;
  22772. margin: 10px auto;
  22773. position: relative;
  22774. height: 40px;
  22775. display: flex;
  22776. flex-direction: row;
  22777. flex-wrap: nowrap;
  22778. align-items: center;
  22779. }
  22780. .navItemList {
  22781. display: flex;
  22782. flex-direction: row;
  22783. flex-wrap: nowrap;
  22784. align-items: center;
  22785. padding: 0 13px;
  22786. cursor: pointer;
  22787. width: calc(100% - 60px);
  22788. height: 100%;
  22789. }
  22790. .navItemList > div:first-child {
  22791. min-width: 60px;
  22792. }
  22793. .navItemList > div:last-child {
  22794. width: calc(100% - 80px);
  22795. white-space: nowrap;
  22796. overflow: hidden;
  22797. text-overflow: ellipsis;
  22798. word-break: break-word;
  22799. }
  22800. /* .isItemList > div {
  22801. color: #fff !important;
  22802. } */
  22803. .tool_work_box {
  22804. width: 100%;
  22805. padding: 0 37px 0;
  22806. box-sizing: border-box;
  22807. }
  22808. .tool_box {
  22809. width: 100%;
  22810. padding: 0 0 0 20px;
  22811. }
  22812. .tool_type_box {
  22813. display: flex;
  22814. flex-direction: row;
  22815. align-items: baseline;
  22816. flex-wrap: nowrap;
  22817. justify-content: flex-start;
  22818. position: relative;
  22819. }
  22820. .toolSort {
  22821. display: flex;
  22822. flex-direction: row;
  22823. flex-wrap: wrap;
  22824. justify-content: flex-start;
  22825. align-items: flex-start;
  22826. padding: 0 0 15px 0;
  22827. }
  22828. .toolSort > div {
  22829. margin: 0 10px 0 0;
  22830. width: 135px;
  22831. box-sizing: border-box;
  22832. border: 2px solid transparent;
  22833. }
  22834. .tools {
  22835. width: 100%;
  22836. display: flex;
  22837. flex-direction: column;
  22838. flex-wrap: nowrap;
  22839. align-items: flex-start;
  22840. }
  22841. .whiteBIcon {
  22842. width: fit-content;
  22843. cursor: pointer;
  22844. display: flex;
  22845. flex-direction: column;
  22846. flex-wrap: nowrap;
  22847. align-items: center;
  22848. font-size: 14px;
  22849. }
  22850. .tool:hover {
  22851. border: 2px solid #a5c7ff;
  22852. border-radius: 5px;
  22853. }
  22854. .whiteBIcon > img {
  22855. width: 65px;
  22856. height: 100%;
  22857. }
  22858. .whiteBIcon > img {
  22859. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  22860. border-radius: 15px;
  22861. }
  22862. .check {
  22863. /* width: 20px;
  22864. height: 20px; */
  22865. cursor: pointer;
  22866. margin: 10px 0;
  22867. position: absolute;
  22868. right: 2px;
  22869. top: -5px;
  22870. }
  22871. .noChoose,
  22872. .isChoose {
  22873. width: 15px;
  22874. height: 15px;
  22875. border-radius: 50%;
  22876. border: 1px solid #adadad;
  22877. }
  22878. .isChoose {
  22879. border: 4px solid #0363ff !important;
  22880. width: 10px;
  22881. height: 10px;
  22882. }
  22883. .isToolChoose {
  22884. border: 2px solid #5394ff !important;
  22885. border-radius: 5px;
  22886. box-shadow: 0 0 6px 0px #5394ff;
  22887. }
  22888. .checkDiv {
  22889. display: flex;
  22890. align-items: center;
  22891. }
  22892. .checkDiv span {
  22893. margin-left: 5px;
  22894. color: #858585;
  22895. }
  22896. .check img {
  22897. width: 20px;
  22898. height: 20px;
  22899. }
  22900. .lockTaskIcon {
  22901. width: 20px;
  22902. height: 20px;
  22903. position: absolute;
  22904. right: 10px;
  22905. top: 10px;
  22906. }
  22907. .lockTaskIcon > img {
  22908. width: 100%;
  22909. height: 100%;
  22910. }
  22911. .pick_box {
  22912. display: flex;
  22913. align-items: flex-start;
  22914. flex-wrap: wrap;
  22915. }
  22916. .selectBox {
  22917. width: 110px;
  22918. margin-left: 10px;
  22919. margin: 0 10px 0 auto;
  22920. }
  22921. .selectBox >>> .el-input__inner {
  22922. height: 30px;
  22923. line-height: 30px;
  22924. }
  22925. .selectBox >>> .el-input__icon {
  22926. line-height: 30px;
  22927. }
  22928. .sentenceTitle {
  22929. display: flex;
  22930. flex-direction: row;
  22931. flex-wrap: nowrap;
  22932. align-items: center;
  22933. }
  22934. .sentenceTitle::before {
  22935. content: attr(index);
  22936. background: #3681fc;
  22937. border-radius: 50%;
  22938. color: #fff;
  22939. width: 25px;
  22940. height: 25px;
  22941. min-width: 25px;
  22942. min-height: 25px;
  22943. text-align: center;
  22944. line-height: 25px;
  22945. margin-right: 5px;
  22946. }
  22947. .hfBox {
  22948. padding: 10px;
  22949. box-sizing: border-box;
  22950. }
  22951. .whoReplyWho {
  22952. display: flex;
  22953. flex-direction: row;
  22954. flex-wrap: nowrap;
  22955. align-items: baseline;
  22956. justify-content: flex-start;
  22957. }
  22958. .hfBottom {
  22959. display: flex;
  22960. flex-direction: row;
  22961. flex-wrap: nowrap;
  22962. align-items: center;
  22963. justify-content: space-between;
  22964. font-size: 14px;
  22965. }
  22966. .deleteHfItem {
  22967. cursor: pointer;
  22968. width: 20px;
  22969. height: 20px;
  22970. }
  22971. .deleteHfItem > img {
  22972. width: 100%;
  22973. height: 100%;
  22974. }
  22975. .whoReplyWho > .hfImg {
  22976. width: 12px;
  22977. height: 12px;
  22978. margin: 0 5px;
  22979. }
  22980. .whoReplyWho > .hfImg > img {
  22981. width: 100%;
  22982. height: 100%;
  22983. }
  22984. .hfContent {
  22985. padding-top: 10px;
  22986. box-sizing: border-box;
  22987. display: -webkit-box;
  22988. overflow: hidden;
  22989. white-space: normal !important;
  22990. text-overflow: ellipsis;
  22991. word-wrap: break-word;
  22992. -webkit-box-orient: vertical;
  22993. }
  22994. .hfTime {
  22995. text-align: left;
  22996. box-sizing: border-box;
  22997. padding: 10px 0 10px 0px;
  22998. color: #bfbfbf;
  22999. font-size: 14px;
  23000. }
  23001. .btnAllNT {
  23002. position: fixed;
  23003. bottom: 100px;
  23004. right: 40px;
  23005. z-index: 999;
  23006. display: flex;
  23007. flex-direction: row;
  23008. }
  23009. .btnAllNT > img {
  23010. cursor: pointer;
  23011. width: 80px;
  23012. }
  23013. .toolMask {
  23014. position: fixed;
  23015. width: 100%;
  23016. height: 100%;
  23017. background: #3f3c3c;
  23018. opacity: 0.5;
  23019. top: 0;
  23020. left: 0;
  23021. z-index: 999;
  23022. }
  23023. .addToolCss {
  23024. position: fixed;
  23025. z-index: 999;
  23026. background: #fff;
  23027. right: 5%;
  23028. bottom: 18%;
  23029. min-width: 1035px;
  23030. min-height: 300px;
  23031. border-radius: 10px;
  23032. box-shadow: 0 0 8px 1px #b2b2b2;
  23033. }
  23034. .toolTop {
  23035. display: flex;
  23036. flex-direction: row;
  23037. flex-wrap: nowrap;
  23038. justify-content: space-between;
  23039. align-items: center;
  23040. padding: 20px;
  23041. }
  23042. .toolTop > div:nth-child(2) {
  23043. width: 15px;
  23044. height: 15px;
  23045. padding-right: 10px;
  23046. cursor: pointer;
  23047. }
  23048. .toolTop > div:nth-child(2) > img {
  23049. width: 100%;
  23050. height: 100%;
  23051. }
  23052. .fullStyle>>>.el-dialog__body {
  23053. height: calc(100% - 125px) !important;
  23054. box-sizing: border-box;
  23055. padding: 30px 0 !important;
  23056. background: #fff !important;
  23057. }
  23058. .fullStyle>>>.el-dialog {
  23059. width: 100% !important;
  23060. max-width: 100% !important;
  23061. height: 100% !important;
  23062. margin: 0 !important;
  23063. }
  23064. .fullStyle {
  23065. width: 100% !important;
  23066. max-width: 100% !important;
  23067. height: 100% !important;
  23068. margin: 0 auto !important;
  23069. }
  23070. .fullStyle>>>.el-dialog__footer{
  23071. background: #fff !important;
  23072. }
  23073. .engUpBox {
  23074. width: 100%;
  23075. height: 100%;
  23076. }
  23077. .engTitle,
  23078. .engText {
  23079. display: flex;
  23080. flex-direction: row;
  23081. flex-wrap: nowrap;
  23082. align-items: flex-start;
  23083. padding: 0 20px 20px 20px;
  23084. box-sizing: border-box;
  23085. }
  23086. .engTitle > .div:first-child,
  23087. .engText > div:first-child {
  23088. min-width: 75px;
  23089. }
  23090. .correctBox{
  23091. width: 100%;
  23092. display: flex;
  23093. flex-direction: row;
  23094. flex-wrap: nowrap;
  23095. align-items: flex-start;
  23096. }
  23097. .oldBox{
  23098. width: 50%;
  23099. height: 100%;
  23100. display: flex;
  23101. flex-direction: column;
  23102. flex-wrap: nowrap;
  23103. align-items: center;
  23104. border-top: 1px solid #d9d9d9;
  23105. border-left: 1px solid #d9d9d9;
  23106. border-right: 1px solid #d9d9d9;
  23107. }
  23108. .oldBox>div:first-child{
  23109. width: 100%;
  23110. text-align: center;
  23111. background: #d9d9d9;
  23112. height: 35px;
  23113. line-height: 35px;
  23114. font-weight: bold;
  23115. }
  23116. .oldText{
  23117. width: 100%;
  23118. height: calc(100% - 35px);
  23119. overflow: auto;
  23120. margin: 10px 0;
  23121. display: flex;
  23122. flex-direction: column;
  23123. flex-wrap: nowrap;
  23124. align-content: center;
  23125. align-items: center;
  23126. }
  23127. .detailBox{
  23128. width: 50%;
  23129. padding: 10px;
  23130. background: #f6f6f6;
  23131. border-radius: 5px;
  23132. }
  23133. .oldDetail,.oldDetail1{
  23134. padding-bottom: 30px;
  23135. }
  23136. .oldImg{
  23137. width:30px;
  23138. height: 30px;
  23139. }
  23140. .oldImg>img{
  23141. width: 100%;
  23142. height: 100%;
  23143. }
  23144. .allName{
  23145. min-width: 200px;
  23146. white-space: nowrap;
  23147. overflow: hidden;
  23148. text-overflow: ellipsis;
  23149. word-break: break-word;
  23150. cursor: pointer;
  23151. text-align: center;
  23152. border: 1px solid #bcc2cc;
  23153. box-sizing: border-box;
  23154. }
  23155. .engUpTop{
  23156. max-height: 300px;
  23157. overflow: auto;
  23158. }
  23159. .isUpdateToolDetailClass{
  23160. padding: 0 !important;
  23161. }
  23162. .isUpdateToolDetailClass textarea{
  23163. padding:12px;
  23164. font-size: 16px;
  23165. min-height:100%;
  23166. width: 100%;
  23167. box-sizing:border-box;
  23168. outline: none;
  23169. border:none;
  23170. line-height: 30px;
  23171. resize: none;
  23172. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  23173. color: #838383;
  23174. }
  23175. .show_taskD {
  23176. min-width: fit-content;
  23177. margin-left: 10px;
  23178. display: flex;
  23179. align-items: center;
  23180. font-size: 14px;
  23181. cursor: pointer;
  23182. color: #717c8d;
  23183. }
  23184. .show_taskD > img {
  23185. width: 15px;
  23186. margin-right: 5px;
  23187. transition: 0.2s all;
  23188. transform: rotate(-90deg);
  23189. }
  23190. .show_taskD.show > img {
  23191. transform: rotate(0deg);
  23192. }
  23193. .correctCss{
  23194. position: absolute;
  23195. bottom: -70px;
  23196. background: #409eff;
  23197. color: #fff;
  23198. }
  23199. </style>