studyStudent.vue 336 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetail?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div v-if="courseDetail.state == 1">第{{ stageIndex + 1 }}阶段</div>
  55. <div v-if="courseDetail.state == 2">任务查看</div>
  56. <div>{{ item.dyName }}</div>
  57. </div>
  58. <div class="twoChild" :class="{ navActive: item.isOpen }">
  59. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  60. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  61. openTaskActive:
  62. navIndex == taskCount &&
  63. nav.id == navId &&
  64. stageIndex == courseType,
  65. }">
  66. <div class="vedioNav" :class="{
  67. isClick:
  68. navIndex == taskCount &&
  69. nav.id == navId &&
  70. stageIndex == courseType,
  71. }" style="margin: 0">
  72. 任务{{ navIndex + 1 }}
  73. </div>
  74. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  75. <div :style="{
  76. width:
  77. IsLookOpen && !nav.isLook
  78. ? 'calc(100% - 75px)'
  79. : 'auto',
  80. }">
  81. {{ nav.taskName }}
  82. </div>
  83. </el-tooltip>
  84. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  92. <div class="new_top" style="
  93. position: fixed;
  94. top: 0;
  95. left: 20.7%;
  96. width: 80%;
  97. z-index: 999;
  98. box-shadow: 0px 9px 0 0 #f2f2f2;
  99. " :class="{ navLeftCss: !mlDialog }">
  100. <div class="courseIndex">
  101. <div>第{{ courseType - 0 + 1 }}阶段</div>
  102. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  103. <div>{{ chapInfoList[courseType].dyName }}</div>
  104. </el-tooltip>
  105. <div>任务{{ taskCount + 1 }}</div>
  106. </div>
  107. <div class="btnAll">
  108. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  109. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  110. <div class="returnBtn" @click="refreshCourse">刷新</div>
  111.             <div class="returnBtn" @click="setPz" v-if="tType == 1">评论</div>
  112. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  113. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  114. 开始录制
  115. </div>
  116. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  117. style="background: #ee5255">
  118. 下载录制
  119. </div>
  120. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  121. 权限
  122. </div> -->
  123. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  124. '/courseDetail?userid=' +
  125. userid +
  126. '&oid=' +
  127. oid +
  128. '&org=' +
  129. org +
  130. '&cid=' +
  131. classId +
  132. '&courseId=' +
  133. id +
  134. '&tType=' +
  135. tType +
  136. '&screenType=' +
  137. screenType
  138. )
  139. ">
  140. 返回
  141. </div>
  142. </div>
  143. </div>
  144. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  145. .taskJson"
  146. :key="index"-->
  147. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .chapterData.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  151. .taskDetail == '' &&
  152. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  153. ">
  154. <img src="../../assets/icon/isNoMessage.png" alt />
  155. </div>
  156. <div class="study_top" :class="{ pzClass: pzDialog }">
  157. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  159. .taskDetail != '' ||
  160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  161. .chapterData.length > 0
  162. ">
  163. <div class="checkbox">
  164. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  165. ">
  166. 学一学
  167. </div>
  168. </div>
  169. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  170. textList[taskCount].length > 0 ||
  171. lineList[taskCount].length > 0 ||
  172. file[taskCount].length > 0 ||
  173. fileC[taskCount].length > 0 ||
  174. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  175. .taskDetail != ''
  176. ">
  177. <div class="taskBox">
  178. <div style="
  179. display: flex;
  180. flex-wrap: nowrap;
  181. flex-direction: column;
  182. position: relative;
  183. ">
  184. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  185. taskCount
  186. ].taskDetail != ''
  187. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  188. taskCount
  189. ].taskDetail
  190. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  191. taskCount
  192. ].taskDetail
  193. : '暂无描述'
  194. "></div>
  195. </div>
  196. </div>
  197. <div class="vedioTaskBox">
  198. <div :class="contentDialog == false
  199. ? 'box_course isContentCss'
  200. : 'box_course'
  201. " v-if="vedio[taskCount].length > 0 ||
  202. textList[taskCount].length > 0 ||
  203. lineList[taskCount].length > 0 ||
  204. file[taskCount].length > 0
  205. ">
  206. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  207. vedio[taskCount] &&
  208. vedio[taskCount].length > 0 &&
  209. showType == 0
  210. ">
  211. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  212. <video-player class="video-player vjs-custom-skin"
  213. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  214. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  215. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  216. </div>
  217. </div>
  218. <div class="wheel" v-if="showType == 1" style="
  219. box-shadow: 0 0 6px 1px #f2f2f2;
  220. width: 95%;
  221. margin: 0 auto;
  222. background: #f1f1f1;
  223. ">
  224. <div class="title">查看文档</div>
  225. <el-form class="textBox">
  226. <el-form-item class="textTitle">
  227. <div style="font-size: 22px">
  228. {{ text.name }}
  229. </div>
  230. </el-form-item>
  231. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  232. <div v-html="text.url" class="textContent cont"></div>
  233. </el-form>
  234. </div>
  235. <div class="wheel"
  236. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  237. style="width: 95%; margin: 0 auto">
  238. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  239. </div>
  240. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  241. <iframe
  242. style="width: 100%; height: 100%; border: none"
  243. security="restricted"
  244. v-if="pptImgUrl1.indexOf('knowledge.cocorobo.cn')!=-1 || pptImgUrl1.indexOf('cloud.cocorobo.cn')!=-1"
  245. :src="pptImgUrl1"
  246. ></iframe>
  247. <iframe
  248. style="width: 100%; height: 100%; border: none"
  249. security="restricted"
  250. v-else
  251. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  252. :src="pptImgUrl1"
  253. ></iframe>
  254. </div>
  255. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  256. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  257. </div>
  258. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  259. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  260. </div>
  261. </div>
  262. <div class="pButton" style="
  263. position: absolute;
  264. right: 20px;
  265. top: 0;
  266. background: #205cc6;
  267. z-index: 998;
  268. opacity: .8;
  269. " v-if="!contentDialog" @click="setContent(true)">
  270. <!-- 批 -->
  271. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  272. </div>
  273. <div v-if="contentDialog == true" :style="{
  274. width: (!vedio[taskCount].length > 0 &&
  275. !textList[taskCount].length > 0 &&
  276. !lineList[taskCount].length > 0 &&
  277. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  278. !textList[taskCount].length > 0 &&
  279. !lineList[taskCount].length > 0 &&
  280. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  281. }">
  282. <div class="vedioList" v-if="(vedio.length &&
  283. vedio[taskCount] &&
  284. vedio[taskCount].length > 0) ||
  285. (textList.length &&
  286. textList[taskCount] &&
  287. textList[taskCount].length > 0) ||
  288. (lineList.length &&
  289. lineList[taskCount] &&
  290. lineList[taskCount].length > 0) ||
  291. (file.length &&
  292. file[taskCount] &&
  293. file[taskCount].length > 0) ||
  294. (fileC.length &&
  295. fileC[taskCount] &&
  296. fileC[taskCount].length > 0)
  297. " style="height: 650px">
  298. <div class="navCorOpenBox">
  299. <div class="navTitile">内容列表:</div>
  300. <div class="navCorOpen" @click="setContent(false)">
  301. <img src="../../assets/navBtn2.png" alt="" />
  302. </div>
  303. </div>
  304. <div class="navBox">
  305. <div v-show="vedio.length &&
  306. vedio[taskCount] &&
  307. vedio[taskCount].length > 0
  308. ">
  309. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  310. @click="lookVedio(media.url, vedioIndex)">
  311. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  312. ? 'isClickNav'
  313. : ''
  314. ">
  315. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  316. </div>
  317. </div>
  318. </div>
  319. <div v-show="textList.length &&
  320. textList[taskCount] &&
  321. textList[taskCount].length > 0
  322. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  323. @click="lookText(taskCount, textIndex)">
  324. <div style="width: calc(100% - 0px)">
  325. <div class="navText" :class="isClickNav == 'text' + textIndex
  326. ? 'isClickNav'
  327. : ''
  328. ">
  329. {{
  330. textList[taskCount].length > 0 ? text.name : ""
  331. }}.doc
  332. </div>
  333. </div>
  334. </div>
  335. <div v-show="lineList.length &&
  336. lineList[taskCount] &&
  337. lineList[taskCount].length > 0
  338. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  339. @click="doUrl(lines.url, lineIndex)">
  340. <div style="width: calc(100% - 0px)">
  341. <div class="navText" :class="isClickNav == 'line' + lineIndex
  342. ? 'isClickNav'
  343. : ''
  344. ">
  345. {{ lines.title ? lines.title : lines.url }}
  346. </div>
  347. </div>
  348. </div>
  349. <div class="newNav" v-show="file.length &&
  350. file[taskCount] &&
  351. file[taskCount].length > 0
  352. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  353. <div style="width: calc(100% - 0px)">
  354. <div class="navText" :class="isClickNav == 'word' + fileIndex
  355. ? 'isClickNav'
  356. : ''
  357. ">
  358. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  359. </div>
  360. </div>
  361. </div>
  362. <div class="newNav" v-show="fileC.length &&
  363. fileC[taskCount] &&
  364. fileC[taskCount].length > 0
  365. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  366. <div style="width: calc(100% - 0px)">
  367. <div class="navText">
  368. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. </div>
  376. <div style="width: 81%">
  377. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  378. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  379. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  380. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  381. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  382. </el-button>
  383. </div>
  384. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  385. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="student_body" v-resize="resize" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  391. .chapterData.length">
  392. <div class="vedioBox">
  393. <div class="queTop" style="
  394. font-size: 25px;
  395. padding: 15px 0 15px 30px;
  396. font-weight: bold;
  397. ">
  398. 教师工作区
  399. </div>
  400. <div class="tool_work_box">
  401. <div class="tool_box">
  402. <div class="tool_type_box">
  403. <div class="chooseWho">
  404. <div :class="toolType == 0 ? 'isChooseActive' : ''
  405. " @click="(toolType = 0), $forceUpdate()">
  406. 互动类
  407. </div>
  408. <div :class="toolType == 1 ? 'isChooseActive' : ''
  409. " @click="(toolType = 1), $forceUpdate()">
  410. 思维类
  411. </div>
  412. <div :class="toolType == 2 ? 'isChooseActive' : ''
  413. " @click="(toolType = 2), $forceUpdate()">
  414. 评价类
  415. </div>
  416. <div :class="toolType == 3 ? 'isChooseActive' : ''
  417. " @click="(toolType = 3), $forceUpdate()">
  418. 编程类
  419. </div>
  420. <div :class="toolType == 5 ? 'isChooseActive' : ''
  421. " @click="(toolType = 5), $forceUpdate()">
  422. 学科类
  423. </div>
  424. <div :class="toolType == 4 ? 'isChooseActive' : ''
  425. " @click="(toolType = 4), $forceUpdate()">
  426. 其他
  427. </div>
  428. </div>
  429. </div>
  430. <div>
  431. <div class="toolSort" v-if="toolType == 0">
  432. <div class="tool">
  433. <div class="whiteBIcon">
  434. <img src="../../assets/icon/thirdToolList/time.png" alt />
  435. <div style="margin: 5px 0">倒计时</div>
  436. </div>
  437. </div>
  438. <div class="tool">
  439. <div class="whiteBIcon">
  440. <img src="../../assets/icon/fourthToolList/group.png" alt />
  441. <div style="margin: 5px 0">学生分组</div>
  442. </div>
  443. </div>
  444. <div class="tool">
  445. <div class="whiteBIcon">
  446. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  447. <div style="margin: 5px 0">交互视频</div>
  448. </div>
  449. </div>
  450. </div>
  451. <div class="toolSort" v-if="toolType == 1">
  452. <div class="tool">
  453. <div class="whiteBIcon">
  454. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  455. <div style="margin: 5px 0">思维网格</div>
  456. </div>
  457. </div>
  458. <div class="tool">
  459. <div class="whiteBIcon" @click="addTools(1, 0, taskCount)">
  460. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  461. <div style="margin: 5px 0">电子白板</div>
  462. </div>
  463. </div>
  464. <div class="tool">
  465. <div class="whiteBIcon">
  466. <img src="../../assets/icon/fourthToolList/text.png" alt />
  467. <div style="margin: 5px 0">文档</div>
  468. </div>
  469. </div>
  470. <div class="tool">
  471. <div class="whiteBIcon" @click="addTools(3, 0, taskCount)">
  472. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  473. <div style="margin: 5px 0">思维导图</div>
  474. </div>
  475. </div>
  476. <div class="tool">
  477. <div class="whiteBIcon">
  478. <img src="../../assets/icon/fourthToolList/table.png" alt />
  479. <div style="margin: 5px 0">表格</div>
  480. </div>
  481. </div>
  482. </div>
  483. <div class="toolSort" v-if="toolType == 2">
  484. <div class="tool">
  485. <div class="whiteBIcon">
  486. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  487. <div style="margin: 5px 0">问卷调查</div>
  488. </div>
  489. </div>
  490. <div class="tool">
  491. <div class="whiteBIcon">
  492. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  493. <div style="margin: 5px 0">选择题</div>
  494. </div>
  495. </div>
  496. <div class="tool">
  497. <div class="whiteBIcon">
  498. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  499. <div style="margin: 5px 0">问答</div>
  500. </div>
  501. </div>
  502. <div class="tool">
  503. <div class="whiteBIcon">
  504. <img src="../../assets/icon/thirdToolList/work.png" alt />
  505. <div style="margin: 5px 0">作业提交</div>
  506. </div>
  507. </div>
  508. <div class="tool">
  509. <div class="whiteBIcon">
  510. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  511. <div style="margin: 5px 0">批量上传</div>
  512. </div>
  513. </div>
  514. <div class="tool">
  515. <div class="whiteBIcon">
  516. <img src="../../assets/icon/secondToolList/eval.png" alt />
  517. <div style="margin: 5px 0">个人评价</div>
  518. </div>
  519. </div>
  520. <div class="tool">
  521. <div class="whiteBIcon">
  522. <img src="../../assets/icon/thirdToolList/select.png" alt />
  523. <div style="margin: 5px 0">选择匹配</div>
  524. </div>
  525. </div>
  526. <div class="tool">
  527. <div class="whiteBIcon">
  528. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  529. <div style="margin: 5px 0">排序</div>
  530. </div>
  531. </div>
  532. </div>
  533. <div class="toolSort" v-if="toolType == 3">
  534. <div class="tool">
  535. <div class="whiteBIcon">
  536. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  537. <div style="margin: 5px 0">训练平台</div>
  538. </div>
  539. </div>
  540. <div class="tool">
  541. <div class="whiteBIcon">
  542. <img src="../../assets/icon/fourthToolList/program.png" alt />
  543. <div style="margin: 5px 0">AIoT Blockly</div>
  544. </div>
  545. </div>
  546. <div class="tool">
  547. <div class="whiteBIcon">
  548. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  549. <div style="margin: 5px 0">AI体验</div>
  550. </div>
  551. </div>
  552. <div class="tool">
  553. <div class="whiteBIcon">
  554. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  555. <div style="margin: 5px 0">AI Python</div>
  556. </div>
  557. </div>
  558. <div class="tool">
  559. <div class="whiteBIcon">
  560. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  561. <div style="margin: 5px 0">AI Blockly</div>
  562. </div>
  563. </div>
  564. <div class="tool">
  565. <div class="whiteBIcon">
  566. <img src="../../assets/icon/thirdToolList/code.png" alt />
  567. <div style="margin: 5px 0">源码编辑</div>
  568. </div>
  569. </div>
  570. <div class="tool">
  571. <div class="whiteBIcon">
  572. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  573. <div style="margin: 5px 0">CocoPi</div>
  574. </div>
  575. </div>
  576. <div class="tool">
  577. <div class="whiteBIcon">
  578. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  579. <div style="margin: 5px 0">海龟编程</div>
  580. </div>
  581. </div>
  582. </div>
  583. <div class="toolSort" v-if="toolType == 5">
  584. <div class="tool">
  585. <div class="whiteBIcon">
  586. <img src="../../assets/icon/secondToolList/translation.png" alt />
  587. <div style="margin: 5px 0">翻译</div>
  588. </div>
  589. </div>
  590. <div class="tool">
  591. <div class="whiteBIcon">
  592. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  593. <div style="margin: 5px 0">魔盒识字</div>
  594. </div>
  595. </div>
  596. <div class="tool">
  597. <div class="whiteBIcon">
  598. <img src="../../assets/icon/secondToolList/24game.png" alt />
  599. <div style="margin: 5px 0">24点</div>
  600. </div>
  601. </div>
  602. <div class="tool">
  603. <div class="whiteBIcon">
  604. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  605. <div style="margin: 5px 0">数学画板</div>
  606. </div>
  607. </div>
  608. <div class="tool">
  609. <div class="whiteBIcon">
  610. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  611. <div style="margin: 5px 0">GeoGebra</div>
  612. </div>
  613. </div>
  614. <div class="tool">
  615. <div class="whiteBIcon">
  616. <img src="../../assets/icon/fourthToolList/car.png" alt />
  617. <div style="margin: 5px 0">模拟驾驶</div>
  618. </div>
  619. </div>
  620. <div class="tool">
  621. <div class="whiteBIcon">
  622. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  623. <div style="margin: 5px 0">路径搜索</div>
  624. </div>
  625. </div>
  626. <div class="tool">
  627. <div class="whiteBIcon">
  628. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  629. <div style="margin: 5px 0">深度学习</div>
  630. </div>
  631. </div>
  632. <div class="tool">
  633. <div class="whiteBIcon">
  634. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  635. <div style="margin: 5px 0">全历史</div>
  636. </div>
  637. </div>
  638. </div>
  639. <div class="toolSort" v-if="toolType == 4">
  640. <div class="tool">
  641. <div class="whiteBIcon">
  642. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  643. <div style="margin: 5px 0">课程设计</div>
  644. </div>
  645. </div>
  646. <div class="tool">
  647. <div class="whiteBIcon">
  648. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  649. <div style="margin: 5px 0">目标管理</div>
  650. </div>
  651. </div>
  652. </div>
  653. </div>
  654. </div>
  655. <div class="tool_works_box" v-if="worksTeacher.length">
  656. <div class="zuoyeYulan">
  657. <div class="worksTop">
  658. <div>作业预览</div>
  659. </div>
  660. </div>
  661. <div class="worksDetailBox">
  662. <div class="works" style="
  663. width: 200px;
  664. height: 140px;
  665. margin: 10px 10px 10px 0;
  666. border-radius: 15px;
  667. box-shadow: 0 0 6px 1px #dfdada;
  668. " v-for="(w, wIndex) in worksTeacher" :key="wIndex"
  669. :class="w.type == 1 ? 'isTypeOne' : ''">
  670. <div class="workImg" v-if="w.type == 0">
  671. <img :src="w.works" @click="previewImg(w.works)" alt />
  672. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  673. rightW:
  674. w.userid == userid || tType == 1 || tType == 4,
  675. }">
  676. {{ JSON.parse(w.score).wScore }}分
  677. </div>
  678. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  679. :class="{
  680. rightW:
  681. w.userid == userid || tType == 1 || tType == 4,
  682. }">
  683. 评分
  684. </div>
  685. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  686. " @click.stop="deleteWorks(w.wid)" alt />
  687. </div>
  688. <div class="comment" style="min-width: 200px">
  689. <div class="worksName">
  690. <div>{{ w.sName }}</div>
  691. </div>
  692. <div class="commentList">
  693. <div class="commentList">
  694. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  695. ">
  696. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  697. </div>
  698. <div>{{ w.likesCount }}</div>
  699. </div>
  700. <div class="commentList" style="margin-right: 15px">
  701. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  702. <img src="../../assets/icon/comment/comment.png" alt="" />
  703. </div>
  704. <div>{{ w.commentCount }}</div>
  705. </div>
  706. </div>
  707. </div>
  708. </div>
  709. </div>
  710. </div>
  711. </div>
  712. </div>
  713. <div class="vedioBox">
  714. <div class="queTop" style="
  715. font-size: 25px;
  716. padding: 15px 0 15px 30px;
  717. font-weight: bold;
  718. ">
  719. 学生工作区
  720. </div>
  721. <div class="tool_work_box">
  722. <div class="noWorksS">
  723. <div v-for="(s, sIndex) in noWorksS" :key="sIndex" class="noWorksName"
  724. :class="{ isWork: s.type == '2' }" @click="openStudentTool(s)">
  725. {{ s.student }}
  726. </div>
  727. </div>
  728. <div class="tool_works_box" v-if="worksStudent2.length">
  729. <div class="zuoyeYulan">
  730. <div class="worksTop">
  731. <div>作业预览</div>
  732. </div>
  733. </div>
  734. <div class="worksDetailBox">
  735. <div class="works" style="
  736. width: 200px;
  737. height: 140px;
  738. margin: 10px 10px 10px 0;
  739. border-radius: 15px;
  740. box-shadow: 0 0 6px 1px #dfdada;
  741. " v-for="(w, wIndex) in worksStudent2" :key="wIndex"
  742. :class="w.type == 1 ? 'isTypeOne' : ''">
  743. <div class="workImg" v-if="w.type == 0">
  744. <img :src="w.works" @click="previewImg(w.works)" alt />
  745. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  746. rightW:
  747. w.userid == userid || tType == 1 || tType == 4,
  748. }">
  749. {{ JSON.parse(w.score).wScore }}分
  750. </div>
  751. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  752. :class="{
  753. rightW:
  754. w.userid == userid || tType == 1 || tType == 4,
  755. }">
  756. 评分
  757. </div>
  758. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  759. " @click.stop="deleteWorks(w.wid)" alt />
  760. </div>
  761. <div class="comment" style="min-width: 200px">
  762. <div class="worksName">
  763. <div>{{ w.sName }}</div>
  764. </div>
  765. <div class="commentList">
  766. <div class="commentList">
  767. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  768. ">
  769. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  770. </div>
  771. <div>{{ w.likesCount }}</div>
  772. </div>
  773. <div class="commentList" style="margin-right: 15px">
  774. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  775. <img src="../../assets/icon/comment/comment.png" alt="" />
  776. </div>
  777. <div>{{ w.commentCount }}</div>
  778. </div>
  779. </div>
  780. </div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. </div>
  786. </div>
  787. </div>
  788. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  789. :before-close="handleClose" class="dialog_change">
  790. <div class="marginT">
  791. <div>上传文件</div>
  792. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  793. <div class="up_photo">
  794. <img src="../../assets/icon/uploadImg.png" alt />
  795. </div>
  796. <!-- <input
  797. type="file"
  798. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  799. style="display: none"
  800. @change="beforeUpload1($event, 1)"
  801. /> -->
  802. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  803. <!-- <input
  804. type="file"
  805. accept="image/*"
  806. capture="camera"
  807. style="display: none"
  808. @change="beforeUpload1($event, 1)"
  809. /> -->
  810. </div>
  811. <div class="chapter_add" style="
  812. display: flex;
  813. width: 100%;
  814. flex-direction: row;
  815. flex-wrap: wrap;
  816. justify-content: flex-start;
  817. padding: 15px 0;
  818. " v-if="studyJuri[0].cover.length > 0">
  819. <div class="upCover">
  820. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  821. <img :src="word" alt v-else-if="fileType == 1" />
  822. <img :src="video" alt v-else-if="fileType == 2" />
  823. <img :src="word2" alt v-else-if="fileType == 3" />
  824. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  825. <div class="deleteWord" @click="clean(1)">
  826. <img src="../../assets/icon/deleteWorks.png" alt />
  827. </div>
  828. </div>
  829. </div>
  830. </div>
  831. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  832. 提交
  833. </div>
  834. </el-dialog>
  835. </div>
  836. </div>
  837. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4 || ispzType == 4">
  838. <!-- 批 -->
  839. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  840. </div>
  841. <div v-if="pzDialog == true" class="newDialogCss">
  842. <div class="pzTop2">
  843. <!-- <div>批注</div>
  844. <div @click="pzDialog = false">
  845. <img src="../../assets/close1.png" alt="" />
  846. </div> -->
  847. <div class="checkbox">
  848. <div class="check" style="font-size: 25px">评课笔记</div>
  849. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  850. </div>
  851. </div>
  852. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  853. <div class="pzListBox" v-if="pzList && pzList.length">
  854. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  855. <div class="pzNavTop">
  856. <div>批</div>
  857. <div>
  858. {{
  859. pz.username && pz.username.length > 5
  860. ? pz.username.substring(0, 5) + "..."
  861. : pz.username
  862. }}的批注
  863. </div>
  864. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  865. 删除
  866. </div>
  867. </div>
  868. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  869. <div class="pzContent" v-if="pz.type == '2'">
  870. <audio :src="pz.content" controls="controls" ref="audio">
  871. Your browser does not support the audio element.
  872. </audio>
  873. </div>
  874. <div class="pzContent" v-if="pz.type == '3'">
  875. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  876. </div>
  877. <div class="time">
  878. {{ pz.time }}
  879. </div>
  880. </div>
  881. </div>
  882. <div class="noPz" v-else>
  883. <img src="../../assets/icon/noPz.png" alt="" />
  884. </div>
  885. <div class="addPzButton">
  886. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  887. 添加批注
  888. </div>
  889. <!-- <div class="img1">
  890. <div @click="(addPzDialog = true), (pzType = 2)">
  891. <img src="../../assets/audio.png" /><span>音频</span>
  892. </div>
  893. </div> -->
  894. </div>
  895. </div>
  896. </div>
  897. <div v-if="addPzDialog == true" class="addDialogCss">
  898. <div class="pzTop">
  899. <div class="teacherPz">
  900. <div class="teacherPzImg">
  901. <img src="../../assets/icon/teacherPz.png" alt="" />
  902. </div>
  903. <div style="margin-left: 10px; height: 25px">教师批注</div>
  904. </div>
  905. <div @click="addPzDialog = false">
  906. <img src="../../assets/close1.png" alt="" />
  907. </div>
  908. </div>
  909. <div class="addPzBox">
  910. <div class="addPzCheck">
  911. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  912. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  913. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  914. </div>
  915. <div style="height: calc(100% - 95px)">
  916. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  917. v-if="pzType == 1"></textarea> -->
  918. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  919. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  920. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  921. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  922. <div @click="addImg($event)">
  923. <el-button type="primary">上传图片</el-button>
  924. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  925. @change="beforeUpload1($event, 4)" />
  926. </div>
  927. </div> -->
  928. </div>
  929. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  930. 确定
  931. </div>
  932. </div>
  933. </div>
  934. <div v-if="proVisible" class="mask">
  935. <div class="progressBox">
  936. <!-- <div id="closePro" class="closeCss">
  937. <img src="../../assets/icon/close.png" alt />
  938. </div> -->
  939. <div class="lbox">
  940. <img src="../../assets/loading.gif" />上传中,请稍后
  941. </div>
  942. <div style="margin-bottom: 10px">
  943. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  944. </div>
  945. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  946. </div>
  947. </div>
  948. <div v-if="proVisible2" class="mask">
  949. <div class="progressBox">
  950. <div class="lbox">
  951. <img src="../../assets/loading.gif" />上传中,请稍后
  952. </div>
  953. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  954. </div>
  955. </div>
  956. <el-dialog :visible.sync="pictureDialog" size="tiny">
  957. <img width="100%" :src="dialogImageUrl" alt />
  958. </el-dialog>
  959. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  960. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  961. <div>
  962. <div class="a_add_title" style="
  963. display: flex;
  964. flex-direction: row;
  965. align-items: center;
  966. justify-content: center;
  967. ">
  968. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  969. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  970. </div>
  971. <div class="a_addBox">
  972. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  973. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  974. <div class="a_add_head">
  975. <div style="display: flex">
  976. {{ index1 + 1 + "、" }}
  977. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  978. </div>
  979. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  980. style="height: 300px; margin-top: 10px; max-width: 100%" />
  981. </div>
  982. <div class="a_add_body">
  983. <div class="a_add_input">
  984. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  985. !askJson.askJson[index1].type
  986. ">
  987. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  988. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  989. v-html="item2"></span></el-radio>
  990. </el-radio-group>
  991. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  992. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  993. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  994. v-html="item2"></span>
  995. </el-checkbox>
  996. </el-checkbox-group>
  997. </div>
  998. </div>
  999. </div>
  1000. </div>
  1001. </div>
  1002. <span slot="footer" class="dialog-footer">
  1003. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  1004. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  1005. </span>
  1006. </el-dialog>
  1007. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  1008. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1009. <div>
  1010. <div class="w_name">
  1011. 学生姓名:<span>{{ sStudent.student }}</span>
  1012. </div>
  1013. <div class="a_add_title" style="
  1014. display: flex;
  1015. flex-direction: row;
  1016. align-items: center;
  1017. justify-content: center;
  1018. ">
  1019. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1020. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1021. </div>
  1022. <div class="a_addBox">
  1023. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1024. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1025. <div class="a_add_head">
  1026. <div style="display: flex">
  1027. {{ index1 + 1 + "、" }}
  1028. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  1029. </div>
  1030. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  1031. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1032. </div>
  1033. <div class="a_add_body">
  1034. <div class="a_add_input">
  1035. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  1036. !askJson.askJson[index1].type
  1037. ">
  1038. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  1039. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  1040. v-html="item2"></span></el-radio>
  1041. </el-radio-group>
  1042. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  1043. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  1044. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  1045. v-html="item2"></span>
  1046. </el-checkbox>
  1047. </el-checkbox-group>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <span slot="footer" class="dialog-footer">
  1054. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  1055. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  1056. </span>
  1057. </el-dialog>
  1058. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  1059. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1060. <div>
  1061. <div class="a_addBox">
  1062. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1063. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1064. <div class="a_add_head">
  1065. <div style="display: flex">
  1066. {{ index1 + 1 + "、" }}
  1067. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  1068. (单选题)
  1069. </div>
  1070. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  1071. (多选题)
  1072. </div>
  1073. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1074. </div>
  1075. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1076. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1077. </div>
  1078. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1079. testJson.testJson[index1].timuList.length
  1080. ">
  1081. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1082. @click.stop="previewImg(timg.src)">
  1083. <img :src="timg.src" alt="" />
  1084. </div>
  1085. </div>
  1086. <div class="a_add_body">
  1087. <div class="a_add_input">
  1088. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1089. <div class="radioBox">
  1090. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1091. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1092. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1093. <div class="inImg" @click.stop="previewImg(item2.src)">
  1094. <img :src="item2.src" alt="" />
  1095. </div>
  1096. </div>
  1097. <span v-else v-html="item2"></span>
  1098. </el-radio>
  1099. </div>
  1100. </el-radio-group>
  1101. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1102. <div class="radioBox">
  1103. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1104. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1105. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1106. <div class="inImg" @click.stop="previewImg(item2.src)">
  1107. <img :src="item2.src" alt="" />
  1108. </div>
  1109. </div>
  1110. <span v-else v-html="item2"></span>
  1111. </el-checkbox>
  1112. </div>
  1113. </el-checkbox-group>
  1114. </div>
  1115. </div>
  1116. </div>
  1117. </div>
  1118. </div>
  1119. <span slot="footer" class="dialog-footer">
  1120. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  1121. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  1122. </span>
  1123. </el-dialog>
  1124. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  1125. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1126. <div>
  1127. <div class="w_name">
  1128. 学生姓名:<span>{{ sStudent.student }}</span>
  1129. </div>
  1130. <div class="a_addBox">
  1131. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1132. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1133. <div class="a_add_head">
  1134. <div style="display: flex">
  1135. {{ index1 + 1 + "、" }}
  1136. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  1137. (单选题)
  1138. </div>
  1139. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  1140. (多选题)
  1141. </div>
  1142. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1143. </div>
  1144. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1145. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1146. </div>
  1147. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1148. testJson.testJson[index1].timuList.length
  1149. ">
  1150. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1151. @click.stop="previewImg(timg.src)">
  1152. <img :src="timg.src" alt="" />
  1153. </div>
  1154. </div>
  1155. <div class="a_add_body">
  1156. <div class="a_add_input">
  1157. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1158. <div class="radioBox">
  1159. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1160. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1161. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1162. <div class="inImg" @click.stop="previewImg(item2.src)">
  1163. <img :src="item2.src" alt="" />
  1164. </div>
  1165. </div>
  1166. <span v-else v-html="item2"></span>
  1167. </el-radio>
  1168. </div>
  1169. </el-radio-group>
  1170. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1171. <div class="radioBox">
  1172. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1173. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1174. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1175. <div class="inImg" @click.stop="previewImg(item2.src)">
  1176. <img :src="item2.src" alt="" />
  1177. </div>
  1178. </div>
  1179. <span v-else v-html="item2"></span>
  1180. </el-checkbox>
  1181. </div>
  1182. </el-checkbox-group>
  1183. </div>
  1184. </div>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. <span slot="footer" class="dialog-footer">
  1189. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  1190. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  1191. </span>
  1192. </el-dialog>
  1193. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  1194. :before-close="handleClose" class="dialog_diy textCss">
  1195. <el-form style="font-size: 20px">
  1196. <el-form-item label="文本标题" class="textTitle">
  1197. <div style="font-size: 20px">{{ text.name }}</div>
  1198. </el-form-item>
  1199. <div>富文本内容</div>
  1200. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  1201. </el-form>
  1202. <span slot="footer" class="dialog-footer">
  1203. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  1204. </span>
  1205. </el-dialog>
  1206. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  1207. :class="{ fullStyle: full }">
  1208. <div slot="title" class="header-title">
  1209. <div style="color: #fff">文件预览</div>
  1210. <div style="position: absolute; top: 19px; right: 50px">
  1211. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  1212. </div>
  1213. </div>
  1214. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1215. :class="{ fullStyle: full }"></pdf>
  1216. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1217. </el-dialog>
  1218. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  1219. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  1220. </el-dialog>
  1221. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  1222. class="dialog_diy notice">
  1223. <div>此功能暂未开放!</div>
  1224. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1225. </el-dialog>
  1226. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  1227. :before-close="handleClose" class="dialog_diy">
  1228. <div>
  1229. <div style="
  1230. display: flex;
  1231. flex-wrap: nowrap;
  1232. flex-direction: column;
  1233. position: relative;
  1234. ">
  1235. <div class="queTop" style="padding: 20px 0 20px 0">
  1236. <div class="question">
  1237. <img src="../../assets/icon/question.png" alt />
  1238. </div>
  1239. <div class="queTitle">
  1240. <div style="width: 90px; min-width: 90px">提问:</div>
  1241. <div>{{ answerQ }}</div>
  1242. </div>
  1243. </div>
  1244. <div class="ediBottom">
  1245. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1246. v-model="questionAnswer"></textarea>
  1247. </div>
  1248. </div>
  1249. </div>
  1250. <div slot="footer">
  1251. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1252. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1253. </div>
  1254. </el-dialog>
  1255. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  1256. :before-close="handleClose" class="dialog_diy">
  1257. <div>
  1258. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  1259. </div>
  1260. <div slot="footer">
  1261. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1262. </div>
  1263. </el-dialog>
  1264. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  1265. class="dialog_diy">
  1266. <div>
  1267. <div class="open_box">
  1268. <div class="switch_box">
  1269. <span>允许学生查看所有作业</span>
  1270. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  1271. </div>
  1272. <div class="switch_box" v-if="courseDetail.userid == userid ||
  1273. (courseDetail.course_teacher &&
  1274. courseDetail.course_teacher.indexOf(userid) != -1)
  1275. ">
  1276. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  1277. <span>禁止学生查看所有阶段</span>
  1278. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  1279. </div>
  1280. <div class="switch_box" v-if="courseDetail.userid == userid">
  1281. <span>开启跟随模式</span>
  1282. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  1283. </div>
  1284. </div>
  1285. </div>
  1286. <div slot="footer">
  1287. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  1288. </div>
  1289. </el-dialog>
  1290. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  1291. class="dialog_diy1">
  1292. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  1293. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1294. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  1295. </div>
  1296. <div slot="footer">
  1297. <el-button style="background: #409efe; color: #fff"
  1298. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  1299. 关 闭</el-button>
  1300. </div>
  1301. </el-dialog>
  1302. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  1303. :before-close="handleClose" class="dialog_diy">
  1304. <div class="commentTop">
  1305. <div class="studentDetail">
  1306. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1307. <div class="nameAndTime">
  1308. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1309. <div>{{ commentDetail.time }}</div>
  1310. </div>
  1311. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  1312. commentDetail.type == 0 &&
  1313. (tType == 1 || tType == 4)
  1314. " @click="showPicturePaint(
  1315. commentDetail.img ? commentDetail.img : commentDetail.works
  1316. )
  1317. ">
  1318. 教师批注
  1319. </div>
  1320. </div>
  1321. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1322. {{ JSON.parse(commentDetail.works)[0].answer }}
  1323. </div>
  1324. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1325. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1326. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1327. :class="{ fullStyle: full }"></pdf>
  1328. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1329. </div>
  1330. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1331. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  1332. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1333. </div>
  1334. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1335. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1336. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1337. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1338. </div>
  1339. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  1340. <div class="cont" v-html="commentDetail.works.text"></div>
  1341. </div>
  1342. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1343. @click="downloadFile(commentDetail.works)">
  1344. <img src="../../assets/icon/codeFile.png" />
  1345. <div>点击下载文件</div>
  1346. </div>
  1347. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1348. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1349. </div>
  1350. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  1351. <div class="evalCss">
  1352. <div class="nav">请选择星星进行评分</div>
  1353. <div class="middleBox" v-if="eScore.eStar">
  1354. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1355. <div class="nameAndrate">
  1356. <div>{{ e.value }}</div>
  1357. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  1358. </div>
  1359. <div v-if="e.detail">{{ e.detail }}</div>
  1360. </div>
  1361. <div class="bz">
  1362. <textarea disabled rows="4" class="pj" style="
  1363. padding: 10px 5px;
  1364. width: 70%;
  1365. background: #f7f6f9;
  1366. font-size: 14px;
  1367. text-indent: 10px;
  1368. color: #000;
  1369. " cols v-model="eScore.eBzText"
  1370. placeholder="请输入评价内容..."></textarea>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. </div>
  1375. <div class="comment">
  1376. <div class="commentList">
  1377. <div class="commentImg">
  1378. <img @click="isLikes(
  1379. commentDetail.wid,
  1380. userid,
  1381. 1,
  1382. null,
  1383. commentDetail.isLikes
  1384. )
  1385. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  1386. </div>
  1387. <div>{{ commentDetail.likesCount }}</div>
  1388. </div>
  1389. <div class="commentList">
  1390. <div class="commentImg">
  1391. <img src="../../assets/icon/comment/comment.png" alt="" />
  1392. </div>
  1393. <div>{{ commentDetail.commentCount }}</div>
  1394. </div>
  1395. </div>
  1396. <div class="drawPBox" v-if="commentDetail.img">
  1397. <span>教师批注</span>
  1398. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  1399. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  1400. style="
  1401. font-size: 14px;
  1402. width: auto !important;
  1403. color: #b4b4b4;
  1404. top: unset;
  1405. bottom: 0;
  1406. border: none;
  1407. padding: 0;
  1408. height: auto !important;
  1409. margin: 0;
  1410. ">删除</span>
  1411. </div>
  1412. </div>
  1413. <div class="commentBox">
  1414. <div class="pl">评论:</div>
  1415. <div style="max-height: 200px; overflow: auto">
  1416. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  1417. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  1418. :key="coIndex">
  1419. <div class="tx" style="min-width: 50px">
  1420. <img src="../../assets/avatar.png" alt="" />
  1421. </div>
  1422. <div class="plPerson">
  1423. <div class="plName">
  1424. <div>{{ co.commentPeople }}</div>
  1425. <div style="margin-left: 5px">
  1426. {{ co.commentTime }}
  1427. </div>
  1428. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  1429. </div>
  1430. <div class="plContent">{{ co.commentText }}</div>
  1431. </div>
  1432. </div>
  1433. </div>
  1434. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  1435. </div>
  1436. </div>
  1437. <div style="margin-top: 10px">
  1438. <div class="displayBox">
  1439. <div style="
  1440. color: #556db4;
  1441. font-size: 14px;
  1442. font-weight: bold;
  1443. padding-bottom: 10px;
  1444. ">
  1445. 评价
  1446. </div>
  1447. <div class="easy_comment" v-if="false">
  1448. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  1449. {{ p }}
  1450. </div>
  1451. </div>
  1452. </div>
  1453. <div>
  1454. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  1455. placeholder="请输入评论"></textarea>
  1456. </div>
  1457. </div>
  1458. <div slot="footer">
  1459. <el-button @click="(commentDialogVisible = false),
  1460. (commentIndexJson = {}),
  1461. videoDetail.sources && videoDetail.sources[0]
  1462. ? (videoDetail.sources[0].src = '')
  1463. : ''
  1464. ">取 消</el-button>
  1465. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  1466. </div>
  1467. </el-dialog>
  1468. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  1469. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  1470. <div slot="title" class="header-title">
  1471. <div style="color: #fff">查看文档</div>
  1472. <div @click="fullDialogVisible = false" style="
  1473. cursor: pointer;
  1474. position: absolute;
  1475. top: 20px;
  1476. right: 20px;
  1477. color: #fff;
  1478. ">
  1479. 退出全屏
  1480. </div>
  1481. </div>
  1482. <div style="height: 100%">
  1483. <div class="wheel"
  1484. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  1485. style="width: 95%; margin: 0 auto">
  1486. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  1487. </div>
  1488. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  1489. security="restricted"
  1490. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  1491. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  1492. <div class="wheel" v-if="fulltype == 1" style="
  1493. box-shadow: 0 0 6px 1px #f2f2f2;
  1494. width: 100%;
  1495. background: #f1f1f1;
  1496. ">
  1497. <div class="title" style="width: 100%; box-sizing: border-box">
  1498. 查看文档
  1499. </div>
  1500. <el-form class="textBox" style="height: 90%">
  1501. <el-form-item class="textTitle">
  1502. <div style="font-size: 22px">
  1503. {{ fullUrl.name }}
  1504. </div>
  1505. </el-form-item>
  1506. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  1507. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  1508. </el-form>
  1509. </div>
  1510. </div>
  1511. <!-- <div slot="footer">
  1512. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  1513. </div> -->
  1514. </el-dialog>
  1515. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  1516. :before-close="handleClose" class="dialog_diy">
  1517. <div class="evalCss">
  1518. <div class="nav">请选择星星进行评分</div>
  1519. <div class="middleBox" v-if="eScore.eStar">
  1520. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1521. <div class="nameAndrate">
  1522. <div>{{ e.value }}</div>
  1523. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1524. </div>
  1525. <div v-if="e.detail">{{ e.detail }}</div>
  1526. </div>
  1527. <div class="easy_comment" v-if="false">
  1528. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1529. {{ p }}
  1530. </div>
  1531. </div>
  1532. <div class="bz">
  1533. <textarea :disabled="isStar" rows="4" class="pj" style="
  1534. padding: 10px 5px;
  1535. width: 70%;
  1536. background: #f7f6f9;
  1537. font-size: 14px;
  1538. text-indent: 10px;
  1539. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1540. </div>
  1541. </div>
  1542. </div>
  1543. <div slot="footer">
  1544. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  1545. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  1546. </div>
  1547. </el-dialog>
  1548. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  1549. :before-close="handleClose" class="dialog_diy">
  1550. <div class="w_name">
  1551. 学生姓名:<span>{{ sStudent.student }}</span>
  1552. </div>
  1553. <div class="evalCss">
  1554. <div class="nav">请选择星星进行评分</div>
  1555. <div class="middleBox" v-if="eScore.eStar">
  1556. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1557. <div class="nameAndrate">
  1558. <div>{{ e.value }}</div>
  1559. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1560. </div>
  1561. <div v-if="e.detail">{{ e.detail }}</div>
  1562. </div>
  1563. <div class="easy_comment" v-if="false">
  1564. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1565. {{ p }}
  1566. </div>
  1567. </div>
  1568. <div class="bz">
  1569. <textarea :disabled="isStar" rows="4" class="pj" style="
  1570. padding: 10px 5px;
  1571. width: 70%;
  1572. background: #f7f6f9;
  1573. font-size: 14px;
  1574. text-indent: 10px;
  1575. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div slot="footer">
  1580. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  1581. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  1582. </div>
  1583. </el-dialog>
  1584. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  1585. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1586. <div v-if="selectJson">
  1587. <div class="select_box2">
  1588. <div class="select_box2_title">
  1589. <div>选择匹配</div>
  1590. <div>请选择对应的答案进行答题!</div>
  1591. </div>
  1592. <div class="select_box2_box">
  1593. <div class="select_box2_img">
  1594. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1595. </div>
  1596. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1597. <div style="padding-top: 15px">
  1598. <div class="select_answer_title" v-if="isSelect">
  1599. {{ selectAnswer.stu }}
  1600. </div>
  1601. <div class="select_answer_title" v-else>
  1602. 根据题目选择对应答案
  1603. </div>
  1604. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1605. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1606. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1607. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1608. </el-option>
  1609. </el-select>
  1610. </div>
  1611. </div>
  1612. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1613. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1614. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1615. 回答正确
  1616. </div>
  1617. <div v-else>回答错误</div>
  1618. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1619. 正确答案:
  1620. </div>
  1621. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1622. ">
  1623. {{ selectJson.select[a] }}
  1624. </div>
  1625. </div>
  1626. </div>
  1627. </div>
  1628. <div class="upAnswerCss">
  1629. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. </div>
  1634. </el-dialog>
  1635. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  1636. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1637. <div v-if="selectJson">
  1638. <div class="w_name">
  1639. 学生姓名:<span>{{ sStudent.student }}</span>
  1640. </div>
  1641. <div class="select_box2">
  1642. <div class="select_box2_title">
  1643. <div>选择匹配</div>
  1644. <div>请选择对应的答案进行答题!</div>
  1645. </div>
  1646. <div class="select_box2_box">
  1647. <div class="select_box2_img">
  1648. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1649. </div>
  1650. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1651. <div style="padding-top: 15px">
  1652. <div class="select_answer_title" v-if="isSelect">
  1653. {{ selectAnswer.stu }}
  1654. </div>
  1655. <div class="select_answer_title" v-else>
  1656. 根据题目选择对应答案
  1657. </div>
  1658. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1659. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1660. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1661. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1662. </el-option>
  1663. </el-select>
  1664. </div>
  1665. </div>
  1666. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1667. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1668. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1669. 回答正确
  1670. </div>
  1671. <div v-else>回答错误</div>
  1672. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1673. 正确答案:
  1674. </div>
  1675. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1676. ">
  1677. {{ selectJson.select[a] }}
  1678. </div>
  1679. </div>
  1680. </div>
  1681. </div>
  1682. <div class="upAnswerCss">
  1683. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. </div>
  1688. </el-dialog>
  1689. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  1690. :before-close="handleClose" class="dialog_diy">
  1691. <div>
  1692. <div class="studentDetail">
  1693. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1694. <div class="nameAndTime">
  1695. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1696. <div>{{ commentDetail.time }}</div>
  1697. </div>
  1698. </div>
  1699. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1700. {{ JSON.parse(commentDetail.works)[0].answer }}
  1701. </div>
  1702. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1703. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1704. :class="{ fullStyle: full }"></pdf>
  1705. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1706. </div>
  1707. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1708. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1709. </div>
  1710. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1711. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1712. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1713. </div>
  1714. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1715. @click="downloadFile(commentDetail.works)">
  1716. <img src="../../assets/icon/codeFile.png" />
  1717. <div>点击下载文件</div>
  1718. </div>
  1719. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1720. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1721. </div>
  1722. <div class="scoreBox">
  1723. <span class="t">请输入分数</span>
  1724. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  1725. :max="100"></el-input-number>
  1726. </div>
  1727. <div class="scoreDetailBox">
  1728. <span class="t">评分评论</span>
  1729. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  1730. v-model="scoreDetail" placeholder="请输入对学生的评价">
  1731. </el-input>
  1732. </div>
  1733. </div>
  1734. <span slot="footer" class="dialog-footer">
  1735. <el-button @click="(dialogVisibleScore = false),
  1736. (commentIndexJson = {}),
  1737. videoDetail.sources && videoDetail.sources[0]
  1738. ? (videoDetail.sources[0].src = '')
  1739. : ''
  1740. ">取 消</el-button>
  1741. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  1742. </el-button>
  1743. </span>
  1744. </el-dialog>
  1745. <el-dialog title="排序" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1746. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1747. <div>
  1748. <div class="sentenBox">
  1749. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1750. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1751. <div class="cardList" v-if="st.chooseSenList">
  1752. <div class="cardBox">
  1753. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1754. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1755. <div :class="{
  1756. isCard: r,
  1757. isChooseCard: r == '' || r == undefined,
  1758. }">
  1759. <div>{{ r }}</div>
  1760. </div>
  1761. </el-tooltip>
  1762. <div :class="{
  1763. isCard: r,
  1764. isChooseCard: r == '' || r == undefined,
  1765. }" v-else>
  1766. <div>{{ r }}</div>
  1767. </div>
  1768. </div>
  1769. </div>
  1770. </div>
  1771. <div class="cardList" v-if="st.addChangeSen">
  1772. <div class="cardBox">
  1773. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1774. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1775. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1776. <div>{{ s }}</div>
  1777. </div>
  1778. </el-tooltip>
  1779. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1780. <div>{{ s }}</div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. </div>
  1786. </div>
  1787. </div>
  1788. <span slot="footer" class="dialog-footer">
  1789. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1790. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  1791. </span>
  1792. </el-dialog>
  1793. <el-dialog title="排序" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  1794. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1795. <div>
  1796. <div class="w_name">
  1797. 学生姓名:<span>{{ sStudent.student }}</span>
  1798. </div>
  1799. <div class="sentenBox">
  1800. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1801. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1802. <div class="cardList" v-if="st.chooseSenList">
  1803. <div class="cardBox">
  1804. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1805. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1806. <div :class="{
  1807. isCard: r,
  1808. isChooseCard: r == '' || r == undefined,
  1809. }">
  1810. <div>{{ r }}</div>
  1811. </div>
  1812. </el-tooltip>
  1813. <div :class="{
  1814. isCard: r,
  1815. isChooseCard: r == '' || r == undefined,
  1816. }" v-else>
  1817. <div>{{ r }}</div>
  1818. </div>
  1819. </div>
  1820. </div>
  1821. </div>
  1822. <div class="cardList" v-if="st.addChangeSen">
  1823. <div class="cardBox">
  1824. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1825. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1826. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1827. <div>{{ s }}</div>
  1828. </div>
  1829. </el-tooltip>
  1830. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1831. <div>{{ s }}</div>
  1832. </div>
  1833. </div>
  1834. </div>
  1835. </div>
  1836. </div>
  1837. </div>
  1838. </div>
  1839. <span slot="footer" class="dialog-footer">
  1840. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  1841. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  1842. </span>
  1843. </el-dialog>
  1844. <el-dialog title="排序" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  1845. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1846. <div>
  1847. <div class="sentenBox">
  1848. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1849. {{ sentenceList1.stuName }}的作业
  1850. </div>
  1851. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  1852. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1853. 第{{ stIndex + 1 }}题
  1854. </div>
  1855. <div class="isWrong">
  1856. <div class="cardList1" v-if="st.chooseSenList">
  1857. <div class="cardBox">
  1858. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  1859. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1860. <div class="isCard">
  1861. <div>{{ s }}</div>
  1862. </div>
  1863. </el-tooltip>
  1864. </div>
  1865. </div>
  1866. <div class="cardAnswerBox">
  1867. 组成句子:{{ st.chooseSenList.join(" ") }}
  1868. </div>
  1869. </div>
  1870. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  1871. (tType == 1 || tType == 4)
  1872. ">
  1873. <div class="isTjImg">
  1874. <img src="../../assets/icon/conSentences/right.png" alt="" />
  1875. </div>
  1876. <div>回答正确</div>
  1877. </div>
  1878. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1879. (tType == 1 || tType == 4)
  1880. ">
  1881. <div class="isTjImg">
  1882. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  1883. </div>
  1884. <div>回答错误</div>
  1885. </div>
  1886. </div>
  1887. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1888. (tType == 1 || tType == 4)
  1889. ">
  1890. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  1891. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  1892. <div class="cardBox">
  1893. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  1894. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1895. <div class="isCard1">
  1896. <div>{{ r }}</div>
  1897. </div>
  1898. </el-tooltip>
  1899. </div>
  1900. </div>
  1901. <div class="cardAnswerBox">
  1902. 组成句子:{{ st.rightAnswer.join(" ") }}
  1903. </div>
  1904. </div>
  1905. </div>
  1906. </div>
  1907. </div>
  1908. </div>
  1909. <span slot="footer" class="dialog-footer">
  1910. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  1911. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  1912. </span>
  1913. </el-dialog>
  1914. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  1915. :before-close="handleClose" class="dialog_change">
  1916. <div class="marginT">
  1917. <div class="w_name">
  1918. 学生姓名:<span>{{ sStudent.student }}</span>
  1919. </div>
  1920. <div>上传文件</div>
  1921. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  1922. <div class="up_photo">
  1923. <img src="../../assets/uploadImg2.png" alt />
  1924. </div>
  1925. <!-- <input
  1926. type="file"
  1927. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  1928. style="display: none"
  1929. @change="beforeUpload1($event, 1)"
  1930. /> -->
  1931. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  1932. </div>
  1933. <!-- capture="camera" -->
  1934. <div class="chapter_add" style="
  1935. display: flex;
  1936. width: 100%;
  1937. flex-direction: row;
  1938. flex-wrap: wrap;
  1939. justify-content: flex-start;
  1940. padding: 15px 0;
  1941. " v-if="studyJuri[0].cover.length > 0">
  1942. <div class="upCover">
  1943. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  1944. <img :src="word" alt v-else-if="fileType == 1" />
  1945. <img :src="video" alt v-else-if="fileType == 2" />
  1946. <img :src="word2" alt v-else-if="fileType == 3" />
  1947. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1948. <div class="deleteWord" @click="clean(1)">
  1949. <img src="../../assets/icon/deleteWorks.png" alt />
  1950. </div>
  1951. </div>
  1952. </div>
  1953. </div>
  1954. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  1955. 提交
  1956. </div>
  1957. </el-dialog>
  1958. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  1959. :before-close="handleClose" class="dialog_diy">
  1960. <div>
  1961. <div class="w_name">
  1962. 学生姓名:<span>{{ sStudent.student }}</span>
  1963. </div>
  1964. <div style="
  1965. display: flex;
  1966. flex-wrap: nowrap;
  1967. flex-direction: column;
  1968. position: relative;
  1969. ">
  1970. <div class="queTop" style="padding: 20px 0 20px 0">
  1971. <div class="question">
  1972. <img src="../../assets/icon/question.png" alt />
  1973. </div>
  1974. <div class="queTitle">
  1975. <div style="width: 90px; min-width: 90px">提问:</div>
  1976. <div>{{ answerQ }}</div>
  1977. </div>
  1978. </div>
  1979. <div class="ediBottom">
  1980. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1981. v-model="questionAnswer"></textarea>
  1982. </div>
  1983. </div>
  1984. </div>
  1985. <div slot="footer">
  1986. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  1987. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  1988. </div>
  1989. </el-dialog>
  1990. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  1991. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1992. :before-close="handleClose" class="dialog_diy">
  1993. <el-form>
  1994. <div>表格内容</div>
  1995. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1996. </el-form>
  1997. <span slot="footer" class="dialog-footer">
  1998. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1999. <el-button type="primary" @click="addTableWorks">确定</el-button>
  2000. </span>
  2001. </el-dialog>
  2002. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  2003. :before-close="handleClose" class="dialog_diy">
  2004. <el-form>
  2005. <div class="w_name">
  2006. 学生姓名:<span>{{ sStudent.student }}</span>
  2007. </div>
  2008. <div>表格内容</div>
  2009. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  2010. </el-form>
  2011. <span slot="footer" class="dialog-footer">
  2012. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  2013. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  2014. </span>
  2015. </el-dialog>
  2016. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  2017. class="dialog_diy">
  2018. <el-form>
  2019. <div>文档内容</div>
  2020. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  2021. </el-form>
  2022. <span slot="footer" class="dialog-footer">
  2023. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  2024. <el-button type="primary" @click="addWordWorks">确定</el-button>
  2025. </span>
  2026. </el-dialog>
  2027. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  2028. :before-close="handleClose" class="dialog_diy">
  2029. <el-form>
  2030. <div class="w_name">
  2031. 学生姓名:<span>{{ sStudent.student }}</span>
  2032. </div>
  2033. <div>文档内容</div>
  2034. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  2035. </el-form>
  2036. <span slot="footer" class="dialog-footer">
  2037. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  2038. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  2039. </span>
  2040. </el-dialog>
  2041. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  2042. :before-close="handleClose" class="dialog_diy">
  2043. <el-form>
  2044. <div class="cont" v-html="tableJson.text"></div>
  2045. </el-form>
  2046. <span slot="footer" class="dialog-footer">
  2047. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  2048. </span>
  2049. </el-dialog>
  2050. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  2051. :before-close="handleClose" class="dialog_diy">
  2052. <el-form>
  2053. <div class="cont" v-html="tableJson.text"></div>
  2054. </el-form>
  2055. <span slot="footer" class="dialog-footer">
  2056. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  2057. </span>
  2058. </el-dialog>
  2059. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  2060. :before-close="handleClose" class="dialog_diy">
  2061. <div v-if="dialogVisibleGroup">
  2062. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  2063. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  2064. 提示:需要锁定位置,才能点击头像修改座位。
  2065. </div>
  2066. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  2067. @click="lockChair">
  2068. 锁定位置
  2069. </div>
  2070. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  2071. 解锁位置
  2072. </div>
  2073. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  2074. 分组设置
  2075. </div>
  2076. </div>
  2077. <div>
  2078. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  2079. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  2080. <div class="g_d_group_chair">
  2081. <div v-if="groupJson.number > 1">
  2082. <span :class="{
  2083. isChair:
  2084. groupStudent[toolindex][gindex] &&
  2085. groupStudent[toolindex][gindex][0],
  2086. updateChair:
  2087. courseDetail.userid == userid &&
  2088. groupStudent[toolindex][gindex] &&
  2089. groupStudent[toolindex][gindex][0] &&
  2090. groupJson.islock == 2,
  2091. }"><span class="updateChairBtn" @click="updateGroupChair(
  2092. groupStudent[toolindex][gindex] &&
  2093. groupStudent[toolindex][gindex][0]
  2094. )
  2095. ">修改</span></span><span>{{
  2096. groupStudent[toolindex][gindex] &&
  2097. groupStudent[toolindex][gindex][0]
  2098. ? groupStudent[toolindex][gindex] &&
  2099. groupStudent[toolindex][gindex][0].name
  2100. : "空位置"
  2101. }}</span>
  2102. </div>
  2103. <div v-if="groupJson.number > 4">
  2104. <span :class="{
  2105. isChair:
  2106. groupStudent[toolindex][gindex] &&
  2107. groupStudent[toolindex][gindex][4],
  2108. updateChair:
  2109. courseDetail.userid == userid &&
  2110. groupStudent[toolindex][gindex] &&
  2111. groupStudent[toolindex][gindex][4] &&
  2112. groupJson.islock == 2,
  2113. }"><span class="updateChairBtn" @click="updateGroupChair(
  2114. groupStudent[toolindex][gindex] &&
  2115. groupStudent[toolindex][gindex][4]
  2116. )
  2117. ">修改</span></span><span>{{
  2118. groupStudent[toolindex][gindex] &&
  2119. groupStudent[toolindex][gindex][4]
  2120. ? groupStudent[toolindex][gindex] &&
  2121. groupStudent[toolindex][gindex][4].name
  2122. : "空位置"
  2123. }}</span>
  2124. </div>
  2125. <div v-if="groupJson.number > 8">
  2126. <span :class="{
  2127. isChair:
  2128. groupStudent[toolindex][gindex] &&
  2129. groupStudent[toolindex][gindex][8],
  2130. updateChair:
  2131. courseDetail.userid == userid &&
  2132. groupStudent[toolindex][gindex] &&
  2133. groupStudent[toolindex][gindex][8] &&
  2134. groupJson.islock == 2,
  2135. }"><span class="updateChairBtn" @click="updateGroupChair(
  2136. groupStudent[toolindex][gindex] &&
  2137. groupStudent[toolindex][gindex][8]
  2138. )
  2139. ">修改</span></span><span>{{
  2140. groupStudent[toolindex][gindex] &&
  2141. groupStudent[toolindex][gindex][8]
  2142. ? groupStudent[toolindex][gindex] &&
  2143. groupStudent[toolindex][gindex][8].name
  2144. : "空位置"
  2145. }}</span>
  2146. </div>
  2147. </div>
  2148. <div class="g_d_group_tableBox">
  2149. <div class="g_d_group_chair2">
  2150. <div v-if="groupJson.number > 2">
  2151. <span :class="{
  2152. isChair:
  2153. groupStudent[toolindex][gindex] &&
  2154. groupStudent[toolindex][gindex][2],
  2155. updateChair:
  2156. courseDetail.userid == userid &&
  2157. groupStudent[toolindex][gindex] &&
  2158. groupStudent[toolindex][gindex][2] &&
  2159. groupJson.islock == 2,
  2160. }"><span class="updateChairBtn" @click="updateGroupChair(
  2161. groupStudent[toolindex][gindex] &&
  2162. groupStudent[toolindex][gindex][2]
  2163. )
  2164. ">修改</span></span><span>{{
  2165. groupStudent[toolindex][gindex] &&
  2166. groupStudent[toolindex][gindex][2]
  2167. ? groupStudent[toolindex][gindex] &&
  2168. groupStudent[toolindex][gindex][2].name
  2169. : "空位置"
  2170. }}</span>
  2171. </div>
  2172. <div v-if="groupJson.number > 6">
  2173. <span :class="{
  2174. isChair:
  2175. groupStudent[toolindex][gindex] &&
  2176. groupStudent[toolindex][gindex][6],
  2177. updateChair:
  2178. courseDetail.userid == userid &&
  2179. groupStudent[toolindex][gindex] &&
  2180. groupStudent[toolindex][gindex][6] &&
  2181. groupJson.islock == 2,
  2182. }"><span class="updateChairBtn" @click="updateGroupChair(
  2183. groupStudent[toolindex][gindex] &&
  2184. groupStudent[toolindex][gindex][6]
  2185. )
  2186. ">修改</span></span><span>{{
  2187. groupStudent[toolindex][gindex] &&
  2188. groupStudent[toolindex][gindex][6]
  2189. ? groupStudent[toolindex][gindex] &&
  2190. groupStudent[toolindex][gindex][6].name
  2191. : "空位置"
  2192. }}</span>
  2193. </div>
  2194. </div>
  2195. <div class="g_d_group_table">
  2196. <div>
  2197. {{ g.name }}
  2198. </div>
  2199. <div>
  2200. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  2201. " @click="deleteGroupChair(gindex)">
  2202. 移除组员
  2203. </div>
  2204. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  2205. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  2206. ">
  2207. 加入分组
  2208. </div>
  2209. <div @click="exitGroup(
  2210. groupStudent[toolindex][gindex] &&
  2211. groupStudent[toolindex][gindex][
  2212. groupStudentUid[toolindex][gindex].indexOf(userid)
  2213. ].id
  2214. )
  2215. " v-else-if="groupStudentUid[toolindex] &&
  2216. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  2217. ">
  2218. 退出分组
  2219. </div>
  2220. </div>
  2221. </div>
  2222. <div class="g_d_group_chair2">
  2223. <div v-if="groupJson.number > 3">
  2224. <span :class="{
  2225. isChair:
  2226. groupStudent[toolindex][gindex] &&
  2227. groupStudent[toolindex][gindex][3],
  2228. updateChair:
  2229. courseDetail.userid == userid &&
  2230. groupStudent[toolindex][gindex] &&
  2231. groupStudent[toolindex][gindex][3] &&
  2232. groupJson.islock == 2,
  2233. }"><span class="updateChairBtn" @click="updateGroupChair(
  2234. groupStudent[toolindex][gindex] &&
  2235. groupStudent[toolindex][gindex][3]
  2236. )
  2237. ">修改</span></span><span>{{
  2238. groupStudent[toolindex][gindex] &&
  2239. groupStudent[toolindex][gindex][3]
  2240. ? groupStudent[toolindex][gindex] &&
  2241. groupStudent[toolindex][gindex][3].name
  2242. : "空位置"
  2243. }}</span>
  2244. </div>
  2245. <div v-if="groupJson.number > 7">
  2246. <span :class="{
  2247. isChair:
  2248. groupStudent[toolindex][gindex] &&
  2249. groupStudent[toolindex][gindex][7],
  2250. updateChair:
  2251. courseDetail.userid == userid &&
  2252. groupStudent[toolindex][gindex] &&
  2253. groupStudent[toolindex][gindex][7] &&
  2254. groupJson.islock == 2,
  2255. }"><span class="updateChairBtn" @click="updateGroupChair(
  2256. groupStudent[toolindex][gindex] &&
  2257. groupStudent[toolindex][gindex][7]
  2258. )
  2259. ">修改</span></span><span>{{
  2260. groupStudent[toolindex][gindex] &&
  2261. groupStudent[toolindex][gindex][7]
  2262. ? groupStudent[toolindex][gindex] &&
  2263. groupStudent[toolindex][gindex][7].name
  2264. : "空位置"
  2265. }}</span>
  2266. </div>
  2267. </div>
  2268. </div>
  2269. <div class="g_d_group_chair">
  2270. <div v-if="groupJson.number > 1">
  2271. <span :class="{
  2272. isChair:
  2273. groupStudent[toolindex][gindex] &&
  2274. groupStudent[toolindex][gindex][1],
  2275. updateChair:
  2276. courseDetail.userid == userid &&
  2277. groupStudent[toolindex][gindex] &&
  2278. groupStudent[toolindex][gindex][1] &&
  2279. groupJson.islock == 2,
  2280. }"><span class="updateChairBtn" @click="updateGroupChair(
  2281. groupStudent[toolindex][gindex] &&
  2282. groupStudent[toolindex][gindex][1]
  2283. )
  2284. ">修改</span></span><span>{{
  2285. groupStudent[toolindex][gindex] &&
  2286. groupStudent[toolindex][gindex][1]
  2287. ? groupStudent[toolindex][gindex] &&
  2288. groupStudent[toolindex][gindex][1].name
  2289. : "空位置"
  2290. }}</span>
  2291. </div>
  2292. <div v-if="groupJson.number > 5">
  2293. <span :class="{
  2294. isChair:
  2295. groupStudent[toolindex][gindex] &&
  2296. groupStudent[toolindex][gindex][5],
  2297. updateChair:
  2298. courseDetail.userid == userid &&
  2299. groupStudent[toolindex][gindex] &&
  2300. groupStudent[toolindex][gindex][5] &&
  2301. groupJson.islock == 2,
  2302. }"><span class="updateChairBtn" @click="updateGroupChair(
  2303. groupStudent[toolindex][gindex] &&
  2304. groupStudent[toolindex][gindex][5]
  2305. )
  2306. ">修改</span></span><span>{{
  2307. groupStudent[toolindex][gindex] &&
  2308. groupStudent[toolindex][gindex][5]
  2309. ? groupStudent[toolindex][gindex] &&
  2310. groupStudent[toolindex][gindex][5].name
  2311. : "空位置"
  2312. }}</span>
  2313. </div>
  2314. <div v-if="groupJson.number > 9">
  2315. <span :class="{
  2316. isChair:
  2317. groupStudent[toolindex][gindex] &&
  2318. groupStudent[toolindex][gindex][9],
  2319. updateChair:
  2320. courseDetail.userid == userid &&
  2321. groupStudent[toolindex][gindex] &&
  2322. groupStudent[toolindex][gindex][9] &&
  2323. groupJson.islock == 2,
  2324. }"><span class="updateChairBtn" @click="updateGroupChair(
  2325. groupStudent[toolindex][gindex] &&
  2326. groupStudent[toolindex][gindex][9]
  2327. )
  2328. ">修改</span></span><span>{{
  2329. groupStudent[toolindex][gindex] &&
  2330. groupStudent[toolindex][gindex][9]
  2331. ? groupStudent[toolindex][gindex] &&
  2332. groupStudent[toolindex][gindex][9].name
  2333. : "空位置"
  2334. }}</span>
  2335. </div>
  2336. </div>
  2337. </div>
  2338. </div>
  2339. </div>
  2340. </div>
  2341. <span slot="footer" class="dialog-footer">
  2342. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  2343. </span>
  2344. </el-dialog>
  2345. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  2346. :before-close="handleClose" class="dialog_diy">
  2347. <div class="groupBox">
  2348. <div v-if="groupJson2.group" class="groupContent">
  2349. <div class="groupTitle">请设置小组数量</div>
  2350. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  2351. <span class="groupn">组{{ index + 1 }}名称:</span>
  2352. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2353. <!-- <div class="groupBtn">
  2354. <el-button type="primary" size="small" @click="addGroup(index)">
  2355. 添加</el-button>
  2356. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2357. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  2358. </div> -->
  2359. </div>
  2360. </div>
  2361. <div class="groupContent">
  2362. <div class="groupTitle">请设置每组人数数量</div>
  2363. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2364. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2365. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  2366. placeholder="2-10人以内"></el-input-number>
  2367. </div>
  2368. </div>
  2369. <span slot="footer" class="dialog-footer">
  2370. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  2371. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  2372. </span>
  2373. </el-dialog>
  2374. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  2375. :before-close="handleClose" class="dialog_change">
  2376. <div class="marginT">
  2377. <div>上传文件</div>
  2378. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2379. <div class="up_photo">
  2380. <img src="../../assets/icon/uploadImg.png" alt />
  2381. </div>
  2382. <!-- <input
  2383. type="file"
  2384. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2385. style="display: none"
  2386. @change="beforeUpload1($event, 1)"
  2387. /> -->
  2388. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  2389. </div>
  2390. <!-- capture="camera" -->
  2391. <div class="chapter_add" style="
  2392. display: flex;
  2393. width: 100%;
  2394. flex-direction: row;
  2395. flex-wrap: wrap;
  2396. justify-content: flex-start;
  2397. padding: 15px 0;
  2398. " v-if="studyJuri[0].cover.length > 0">
  2399. <div class="upCover">
  2400. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2401. <img :src="word" alt v-else-if="fileType == 1" />
  2402. <img :src="video" alt v-else-if="fileType == 2" />
  2403. <img :src="word2" alt v-else-if="fileType == 3" />
  2404. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2405. <div class="deleteWord" @click="clean(1)">
  2406. <img src="../../assets/icon/deleteWorks.png" alt />
  2407. </div>
  2408. </div>
  2409. </div>
  2410. </div>
  2411. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  2412. 提交
  2413. </div>
  2414. </el-dialog>
  2415. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  2416. :before-close="handleClose" class="dialog_diy">
  2417. <div>
  2418. <h2>
  2419. {{ this.updateGroupUser.name }}
  2420. </h2>
  2421. <div style="color: rgb(171 171 171); margin-top: 10px">
  2422. 请选择要进入的分组
  2423. </div>
  2424. <el-radio-group v-model="checkChair">
  2425. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  2426. :key="index">{{ item.name }}</el-radio>
  2427. </el-radio-group>
  2428. </div>
  2429. <span slot="footer" class="dialog-footer">
  2430. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  2431. <el-button type="primary" @click="updateChair">确定</el-button>
  2432. </span>
  2433. </el-dialog>
  2434. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  2435. :before-close="handleClose" class="dialog_diy">
  2436. <div>
  2437. <h2>
  2438. {{ this.deleteGroupArray.name }}
  2439. </h2>
  2440. <div style="color: rgb(171 171 171); margin-top: 10px">
  2441. 请选择要删除的组员
  2442. </div>
  2443. <el-checkbox-group v-model="checkDeleteGroup">
  2444. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  2445. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  2446. </el-checkbox-group>
  2447. </div>
  2448. <span slot="footer" class="dialog-footer">
  2449. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  2450. <el-button type="primary" @click="deleteChair">确定</el-button>
  2451. </span>
  2452. </el-dialog>
  2453. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  2454. :before-close="handleClose" class="dialog_change">
  2455. <div class="marginT">
  2456. <div class="plworkBox">
  2457. <div class="chapter_add" style="
  2458. display: flex;
  2459. width: 150px;
  2460. flex-direction: row;
  2461. flex-wrap: wrap;
  2462. justify-content: flex-start;
  2463. margin: 0 10px 10px 0;
  2464. " v-for="(item, index) in plworkFile" :key="index">
  2465. <div class="upCover2">
  2466. <img :src="item.url" alt v-if="item.fileType == 1" />
  2467. <img :src="word" alt v-else-if="item.fileType == 4" />
  2468. <img :src="video" alt v-else />
  2469. <!-- <span class="picName">{{ item.name }}</span> -->
  2470. <!-- <el-input
  2471. v-model="item.username"
  2472. placeholder="请输入学生名字"
  2473. style="margin-top: 10px"
  2474. ></el-input> -->
  2475. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  2476. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  2477. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  2478. </el-option>
  2479. </el-select>
  2480. <div class="deleteWord" @click="clean2(index)">
  2481. <img src="../../assets/icon/deleteWorks.png" alt />
  2482. </div>
  2483. </div>
  2484. </div>
  2485. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  2486. <div class="up_photo2">
  2487. <img src="../../assets/icon/plwork.png" alt />
  2488. <span>点击上传文件</span>
  2489. </div>
  2490. <input type="file"
  2491. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2492. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  2493. </div>
  2494. </div>
  2495. </div>
  2496. <!-- capture="camera" -->
  2497. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  2498. 提交
  2499. </div>
  2500. </el-dialog>
  2501. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2502. class="dialog_diy" center>
  2503. <div style="text-align: center">
  2504. <span class="tian1">名称</span>
  2505. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  2506. placeholder="请选择学生">
  2507. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  2508. :value="item.userid">
  2509. </el-option>
  2510. </el-select>
  2511. <!-- <el-input
  2512. v-model="worksSName"
  2513. style="width: 250px; margin: 15px 0px"
  2514. ></el-input> -->
  2515. </div>
  2516. <span slot="footer" class="dialog-footer">
  2517. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2518. <el-button type="primary" @click="updateName">确 定</el-button>
  2519. </span>
  2520. </el-dialog>
  2521. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
  2522. :courseType="courseType" :taskCount="taskCount" :toolindex="toolindex" v-if="dialogVisibleVideo"></interVideo>
  2523. <el-dialog :title="sStudent.student" :visible.sync="dialogVisibleStudentTool" :append-to-body="true" width="700px"
  2524. :before-close="handleClose" class="dialog_diy">
  2525. <div>
  2526. <div class="dia_tool_box">
  2527. <div class="tool" @click="teacherWorkSubmit(1, 0, taskCount)">
  2528. <div class="whiteBIcon">
  2529. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2530. <div style="margin: 5px 0">电子白板</div>
  2531. </div>
  2532. </div>
  2533. <div class="tool">
  2534. <div class="whiteBIcon" @click="teacherWorkSubmit(3, 0, taskCount)">
  2535. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2536. <div style="margin: 5px 0">思维导图</div>
  2537. </div>
  2538. </div>
  2539. <div class="tool">
  2540. <div class="whiteBIcon">
  2541. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2542. <div style="margin: 5px 0">文档</div>
  2543. </div>
  2544. </div>
  2545. </div>
  2546. </div>
  2547. </el-dialog>
  2548. </div>
  2549. </template>
  2550. <script>
  2551. import "../../common/aws-sdk-2.235.1.min.js";
  2552. // import pdf from "../components/pdf3";
  2553. import pdf from "../components/vpdf";
  2554. import AskStatic from "../components/askStatic";
  2555. import AskStatic2 from "../components/askStatic2";
  2556. import AnswerData2 from "../components/answerData2";
  2557. import AnswerData from "../components/answerData";
  2558. import EditorBar from "../tools/wangEnduit.vue";
  2559. import Table from "../tools/table.vue";
  2560. import Time from "../tools/time.vue";
  2561. import Mind from "../tools/jsmind.vue";
  2562. import Sunburst from "../tools/sunburst";
  2563. import SeeBoard from "../tools/seeBoard";
  2564. import * as imageConversion from "image-conversion";
  2565. import Audio from "../components/audio.vue";
  2566. import ImgDraw from "../tools/imgDraw/imgDraw";
  2567. import { Empty } from "element-ui";
  2568. import RecordRTC from "recordrtc";
  2569. import interVideo from "../interVideo/index.vue"
  2570. export default {
  2571. components: {
  2572. EditorBar,
  2573. Time,
  2574. pdf,
  2575. AskStatic,
  2576. AskStatic2,
  2577. Mind,
  2578. Sunburst,
  2579. SeeBoard,
  2580. AnswerData2,
  2581. AnswerData,
  2582. Audio,
  2583. ImgDraw,
  2584. Table,
  2585. interVideo
  2586. },
  2587. data() {
  2588. return {
  2589. bg: null,
  2590. drawShow: false,
  2591. dialogVisible: false,
  2592. dialogVisiblePl: false,
  2593. commentDialogVisible: false,
  2594. videoVisible: false,
  2595. isStar: false,
  2596. studentEvalDialogVisible: false,
  2597. studentEvalDialogVisibleTeacher: false,
  2598. dialogVisibleSelect: false,
  2599. dialogVisibleSelectTeacher: false,
  2600. dialogVisibleScore: false,
  2601. dialogVisibleSentence: false,
  2602. dialogVisibleSentenceTeacher: false,
  2603. dialogVisibleSentence1: false,
  2604. dialogVisibleWorks: false,
  2605. answerDialogVisibleTeacher: false,
  2606. dialogVisibleTable: false,
  2607. dialogVisibleTableTeacher: false,
  2608. dialogVisibleWord: false,
  2609. dialogVisibleWordTeacher: false,
  2610. dialogVisibleTable2: false,
  2611. dialogVisibleTable3: false,
  2612. dialogVisibleGroupWork: false,
  2613. dialogVisibleUpdateGroup: false,
  2614. dialogVisibleDeleteGroup: false,
  2615. dialogVisibleSname: false,
  2616. dialogVisibleVideo: false,
  2617. dialogVisibleStudentTool: false,
  2618. worksSName: "",
  2619. classJuri: [],
  2620. uploadStudentJuri: [],
  2621. uploadCid: "",
  2622. snameWid: "",
  2623. sStudent: {},
  2624. sTool: "",
  2625. bzText: "",
  2626. commentDetail: [],
  2627. selectAnswer: [],
  2628. videoDetail: {},
  2629. selectJson: {},
  2630. eScore: { eBzText: "", eStar: [] },
  2631. id: this.$route.query.courseId,
  2632. userid: this.$route.query.userid,
  2633. classId: this.$route.query.cid,
  2634. // courseTypeLine: this.$route.query.type,
  2635. oid: this.$route.query.oid,
  2636. org: this.$route.query.org,
  2637. tType: this.$route.query.tType,
  2638. courseType: this.$route.query.type,
  2639. screenType: this.$route.query.screenType,
  2640. tcid2: this.$route.query.tcid,
  2641. tcid: "",
  2642. pptImgUrl: "",
  2643. pptImgUrl1: "",
  2644. commentText: "",
  2645. full: false,
  2646. sIsOpen: false,
  2647. IsLookOpen: false,
  2648. IsFollow: false,
  2649. pzDialog: false,
  2650. contentDialog: false,
  2651. mlDialog: false,
  2652. type: 1,
  2653. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2654. sentenceList1: [],
  2655. tableJson: [],
  2656. wordJson: [],
  2657. vedio: [],
  2658. text: [],
  2659. textList: [],
  2660. line: [],
  2661. lineList: [],
  2662. chapTools: [],
  2663. chapToolList: [],
  2664. file: [],
  2665. fileC: [],
  2666. vedioTime: [],
  2667. upToolImg: "",
  2668. preTime: 0,
  2669. rateList: {
  2670. ca: 0,
  2671. },
  2672. rateParams: [],
  2673. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  2674. studyJuri: [
  2675. {
  2676. content: "",
  2677. cover: [],
  2678. upVedio: [],
  2679. upFile: [],
  2680. },
  2681. ],
  2682. plworkFile: [],
  2683. mr: require("../../assets/vedioPic.png"),
  2684. word: require("../../assets/icon/isWord.png"),
  2685. word2: require("../../assets/icon/word2.png"),
  2686. video: require("../../assets/icon/isVideo.png"),
  2687. noLikes: require("../../assets/icon/comment/noLikes.png"),
  2688. likes: require("../../assets/icon/comment/likes.png"),
  2689. scoreImg: require("../../assets/score.png"),
  2690. courseDetail: {},
  2691. isSelect: false,
  2692. chapInfo: [],
  2693. chapInfoList: [],
  2694. taskCount: 0,
  2695. imgList: [],
  2696. noImgList: [],
  2697. pzList: [],
  2698. PlTextList: [
  2699. "Excellent!",
  2700. "nice!",
  2701. "很有创意!",
  2702. "还不错哦~",
  2703. "继续努力哦~",
  2704. ],
  2705. isClickNav: "",
  2706. navId: "",
  2707. playerOptions: {
  2708. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2709. autoplay: false, //如果true,浏览器准备好时开始回放。
  2710. muted: false, // 默认情况下将会消除任何音频。
  2711. loop: false, // 导致视频一结束就重新开始。
  2712. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2713. language: "zh-CN",
  2714. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2715. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2716. sources: [
  2717. {
  2718. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2719. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2720. },
  2721. ],
  2722. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2723. // poster: dataRes.imgUrl, //你的封面地址
  2724. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2725. controlBar: {
  2726. timeDivider: true, //当前时间和持续时间的分隔符
  2727. durationDisplay: true, //显示持续时间
  2728. remainingTimeDisplay: false, //是否显示剩余时间功能
  2729. fullscreenToggle: true, //全屏按钮
  2730. },
  2731. },
  2732. playerOptions1: {
  2733. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2734. autoplay: false, //如果true,浏览器准备好时开始回放。
  2735. muted: false, // 默认情况下将会消除任何音频。
  2736. loop: false, // 导致视频一结束就重新开始。
  2737. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2738. language: "zh-CN",
  2739. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2740. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2741. sources: [
  2742. {
  2743. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2744. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2745. },
  2746. ],
  2747. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2748. // poster: dataRes.imgUrl, //你的封面地址
  2749. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2750. controlBar: {
  2751. timeDivider: true, //当前时间和持续时间的分隔符
  2752. durationDisplay: true, //显示持续时间
  2753. remainingTimeDisplay: false, //是否显示剩余时间功能
  2754. fullscreenToggle: true, //全屏按钮
  2755. },
  2756. },
  2757. playerO: {},
  2758. noneBtnImg: false,
  2759. proVisible: false,
  2760. proVisible2: false,
  2761. progress: 0,
  2762. isFinishSize: 0,
  2763. isAllSize: 0,
  2764. questionAnswer: "",
  2765. answerQ: "", //问答标题
  2766. rateJson: [],
  2767. wbCount: 0,
  2768. wordCount: 0,
  2769. mindCount: 0,
  2770. askCount: 0,
  2771. noteCount: 0,
  2772. mindNetWorkCount: 0,
  2773. libraryCount: 0,
  2774. workCount: 0,
  2775. timeCount: 0,
  2776. answerCount: 0,
  2777. trainCount: 0,
  2778. evalCount: 0,
  2779. dialogImageUrl: "",
  2780. pictureDialog: false,
  2781. toolType: 0,
  2782. toolTypeList: [],
  2783. dialogVisible1: false,
  2784. dialogVisible2: false,
  2785. dialogVisible3: false,
  2786. dialogVisible6: false,
  2787. dialogVisible4: false,
  2788. isNoHomeWork: false,
  2789. dialogVisible5: false,
  2790. dialogVisible5Teacher: false,
  2791. dialogVisibleChoice: false,
  2792. dialogVisibleChoiceTeacher: false,
  2793. answerDialogVisible: false,
  2794. juriVisible: false,
  2795. timeDialogVisible: false,
  2796. radio: [],
  2797. isAsk: false,
  2798. askJson: {
  2799. askCount: 1,
  2800. askTitle: "",
  2801. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2802. },
  2803. testJson: {},
  2804. checkJson: [],
  2805. askList: [],
  2806. answerList: [],
  2807. navList: [],
  2808. addPzDialog: false,
  2809. ispzType: 1,
  2810. pzConText: "",
  2811. worksStudent: [],
  2812. worksStudent2: [],
  2813. worksTeacher: [],
  2814. isCloseList: [],
  2815. workStudent: [],
  2816. groupStudent: [],
  2817. groupStudentUid: [],
  2818. noWorksS: [],
  2819. isWorksS: [],
  2820. noWorksStudent: [],
  2821. toolindex: 0,
  2822. groupIndex: 0,
  2823. workTypeB: false,
  2824. workTypeC: false,
  2825. isAnswer: false,
  2826. timer: null,
  2827. opertimer: null,
  2828. showType: 0,
  2829. fileType: 0,
  2830. showPDF: false,
  2831. noteName: "",
  2832. evaJuri: [],
  2833. evalua: "",
  2834. eTitle: "",
  2835. eName: "",
  2836. eJson: {},
  2837. fid: "", //一级
  2838. sid: "", //二级
  2839. tid: "", //二级
  2840. typeMode: 1,
  2841. eJSONNum: 0,
  2842. Etype: 1,
  2843. data: {
  2844. meta: {
  2845. name: "example",
  2846. author: "dd@163.com",
  2847. version: "0.2",
  2848. },
  2849. format: "node_array",
  2850. data: [{ id: "root", isroot: true, topic: "" }],
  2851. },
  2852. fullDialogVisible: false,
  2853. fulltype: "",
  2854. fullUrl: "",
  2855. commentIndexJson: {},
  2856. Stbodywidth: 0,
  2857. pzType: 1,
  2858. wScore: 0,
  2859. scoreDetail: "",
  2860. videoStart: false,
  2861. recorder: null,
  2862. groupJson: {},
  2863. groupJson2: {},
  2864. dialogVisibleGroup: false,
  2865. dialogVisibleGroup2: false,
  2866. updateGroupArray: [],
  2867. updateGroupUser: {},
  2868. deleteGroupUser: [],
  2869. deleteGroupArray: {},
  2870. checkChair: "",
  2871. checkDeleteGroup: [],
  2872. inviteCode: "",
  2873. courseGroupStudent: [],
  2874. courseGroupStudentUid: [],
  2875. courseGroup: {},
  2876. isGroup: false,
  2877. toolIndex: null,
  2878. tool: {},
  2879. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  2880. videoJson: {},
  2881. };
  2882. },
  2883. methods: {
  2884. jump() {
  2885. window.topU.postMessage({ tools: "43" }, "*");
  2886. },
  2887. previewImg(url) {
  2888. this.$hevueImgPreview(url);
  2889. },
  2890. change(val) {
  2891. console.log(val);
  2892. },
  2893. goTo(path) {
  2894. this.$router.push(path);
  2895. },
  2896. handlePictureCardPreview(url) {
  2897. this.dialogImageUrl = url;
  2898. this.pictureDialog = true;
  2899. },
  2900. clean(type) {
  2901. if (type == 1) {
  2902. this.studyJuri[0].cover.splice(0, 1);
  2903. } else if (type == 2) {
  2904. this.studyJuri[0].upVedio.splice(0, 1);
  2905. } else {
  2906. this.studyJuri[0].upFile.splice(0, 1);
  2907. }
  2908. },
  2909. clean2(index) {
  2910. this.plworkFile.splice(index, 1);
  2911. },
  2912. handleClose(done) {
  2913. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  2914. this.videoDetail.sources[0].src = "";
  2915. }
  2916. this.commentIndexJson = {};
  2917. done();
  2918. },
  2919. fullTools() {
  2920. this.full = !this.full;
  2921. },
  2922. imgChange(file, fileList, type) {
  2923. if (type == 1) {
  2924. var _tmp = this.studyJuri[0].cover;
  2925. } else if (type == 2) {
  2926. var _tmp = this.studyJuri[0].upVedio;
  2927. } else {
  2928. var _tmp = this.studyJuri[0].upFile;
  2929. }
  2930. this.noneBtnImg = _tmp.length >= 1;
  2931. },
  2932. setContent(bool) {
  2933. this.contentDialog = bool
  2934. if (bool && this.mlDialog) {
  2935. document.querySelector('.workd_media').style.height = "650px"
  2936. } else {
  2937. document.querySelector('.workd_media').style.height = "auto"
  2938. }
  2939. },
  2940. setContent2(bool) {
  2941. this.mlDialog = bool
  2942. if (bool && this.contentDialog) {
  2943. document.querySelector('.workd_media').style.height = "650px"
  2944. } else {
  2945. document.querySelector('.workd_media').style.height = "auto"
  2946. }
  2947. },
  2948. addImg(e) {
  2949. var el = e.currentTarget;
  2950. // this.$message.success('触发上传')
  2951. el.getElementsByTagName("input")[0].click();
  2952. e.target.value = "";
  2953. },
  2954. addSelectAnswer() {
  2955. let params = [
  2956. {
  2957. uid: this.userid,
  2958. cid: this.id,
  2959. stage: this.courseType,
  2960. task: this.taskCount,
  2961. tool: this.toolindex,
  2962. content: this.selectAnswer.answer,
  2963. type: 7,
  2964. },
  2965. ];
  2966. this.ajax
  2967. .post(this.$store.state.api + "addCourseWorks", params)
  2968. .then((res) => {
  2969. this.$message({
  2970. message: "提交成功",
  2971. type: "success",
  2972. });
  2973. this.dialogVisibleSelect = false;
  2974. // this.selectAnswer = {};
  2975. this.selectSWorks();
  2976. this.selectStudent();
  2977. })
  2978. .catch((err) => {
  2979. this.$message.error("提交失败");
  2980. console.error(err);
  2981. });
  2982. },
  2983. addSelectAnswerTeacher() {
  2984. let params = [
  2985. {
  2986. uid: this.sStudent.userid,
  2987. cid: this.id,
  2988. stage: this.courseType,
  2989. task: this.taskCount,
  2990. tool: this.toolindex,
  2991. content: this.selectAnswer.answer,
  2992. type: 7,
  2993. },
  2994. ];
  2995. this.ajax
  2996. .post(this.$store.state.api + "addCourseWorks", params)
  2997. .then((res) => {
  2998. this.$message({
  2999. message: "提交成功",
  3000. type: "success",
  3001. });
  3002. this.dialogVisibleSelectTeacher = false;
  3003. // this.selectAnswer = {};
  3004. this.selectSWorks();
  3005. this.selectStudent();
  3006. })
  3007. .catch((err) => {
  3008. this.$message.error("提交失败");
  3009. console.error(err);
  3010. });
  3011. },
  3012. addSenWorks() {
  3013. for (var i = 0; i < this.sentenceList.length; i++) {
  3014. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3015. if (
  3016. this.sentenceList[i].chooseSenList[j] == undefined ||
  3017. this.sentenceList[i].chooseSenList[j] == ""
  3018. ) {
  3019. this.$message.error("请将答案填写完整!");
  3020. return;
  3021. }
  3022. }
  3023. }
  3024. let params = [
  3025. {
  3026. uid: this.userid,
  3027. cid: this.id,
  3028. stage: this.courseType,
  3029. task: this.taskCount,
  3030. tool: this.toolindex,
  3031. content: JSON.stringify(this.sentenceList),
  3032. type: 9,
  3033. },
  3034. ];
  3035. this.ajax
  3036. .post(this.$store.state.api + "addCourseWorks", params)
  3037. .then((res) => {
  3038. this.$message({
  3039. message: "提交成功",
  3040. type: "success",
  3041. });
  3042. this.dialogVisibleSentence = false;
  3043. // this.selectAnswer = {};
  3044. this.selectSWorks();
  3045. this.selectStudent();
  3046. })
  3047. .catch((err) => {
  3048. this.$message.error("提交失败");
  3049. console.error(err);
  3050. });
  3051. },
  3052. addSenWorksTeacher() {
  3053. for (var i = 0; i < this.sentenceList.length; i++) {
  3054. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3055. if (
  3056. this.sentenceList[i].chooseSenList[j] == undefined ||
  3057. this.sentenceList[i].chooseSenList[j] == ""
  3058. ) {
  3059. this.$message.error("请将答案填写完整!");
  3060. return;
  3061. }
  3062. }
  3063. }
  3064. let params = [
  3065. {
  3066. uid: this.sStudent.userid,
  3067. cid: this.id,
  3068. stage: this.courseType,
  3069. task: this.taskCount,
  3070. tool: this.toolindex,
  3071. content: JSON.stringify(this.sentenceList),
  3072. type: 9,
  3073. },
  3074. ];
  3075. this.ajax
  3076. .post(this.$store.state.api + "addCourseWorks", params)
  3077. .then((res) => {
  3078. this.$message({
  3079. message: "提交成功",
  3080. type: "success",
  3081. });
  3082. this.dialogVisibleSentenceTeacher = false;
  3083. // this.selectAnswer = {};
  3084. this.selectSWorks();
  3085. this.selectStudent();
  3086. })
  3087. .catch((err) => {
  3088. this.$message.error("提交失败");
  3089. console.error(err);
  3090. });
  3091. },
  3092. addTableWorks() {
  3093. let params = [
  3094. {
  3095. uid: this.userid,
  3096. cid: this.id,
  3097. stage: this.courseType,
  3098. task: this.taskCount,
  3099. tool: this.toolindex,
  3100. content: JSON.stringify(this.tableJson),
  3101. type: 10,
  3102. },
  3103. ];
  3104. this.ajax
  3105. .post(this.$store.state.api + "addCourseWorks", params)
  3106. .then((res) => {
  3107. this.$message({
  3108. message: "提交成功",
  3109. type: "success",
  3110. });
  3111. this.dialogVisibleTable = false;
  3112. // this.selectAnswer = {};
  3113. this.selectSWorks();
  3114. this.selectStudent();
  3115. })
  3116. .catch((err) => {
  3117. this.$message.error("提交失败");
  3118. console.error(err);
  3119. });
  3120. },
  3121. addTableWorksTeacher() {
  3122. let params = [
  3123. {
  3124. uid: this.sStudent.userid,
  3125. cid: this.id,
  3126. stage: this.courseType,
  3127. task: this.taskCount,
  3128. tool: this.toolindex,
  3129. content: JSON.stringify(this.tableJson),
  3130. type: 10,
  3131. },
  3132. ];
  3133. this.ajax
  3134. .post(this.$store.state.api + "addCourseWorks", params)
  3135. .then((res) => {
  3136. this.$message({
  3137. message: "提交成功",
  3138. type: "success",
  3139. });
  3140. this.dialogVisibleTableTeacher = false;
  3141. // this.selectAnswer = {};
  3142. this.selectSWorks();
  3143. this.selectStudent();
  3144. })
  3145. .catch((err) => {
  3146. this.$message.error("提交失败");
  3147. console.error(err);
  3148. });
  3149. },
  3150. addWordWorks() {
  3151. let params = [{
  3152. uid: this.userid,
  3153. cid: this.id,
  3154. stage: this.courseType,
  3155. task: this.taskCount,
  3156. tool: this.toolindex,
  3157. content: JSON.stringify(this.wordJson),
  3158. type: 13,
  3159. atool: 52,
  3160. }];
  3161. console.log(params);
  3162. this.ajax
  3163. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3164. .then((res) => {
  3165. this.$message({
  3166. message: "提交成功",
  3167. type: "success",
  3168. });
  3169. this.dialogVisibleWord = false;
  3170. // this.selectAnswer = {};
  3171. this.selectSWorks();
  3172. this.selectStudent();
  3173. })
  3174. .catch((err) => {
  3175. this.$message.error("提交失败");
  3176. console.error(err);
  3177. });
  3178. },
  3179. addWordWorksTeacher() {
  3180. let params = [{
  3181. uid: this.sStudent.userid,
  3182. cid: this.id,
  3183. stage: this.courseType,
  3184. task: this.taskCount,
  3185. tool: this.toolindex,
  3186. content: JSON.stringify(this.wordJson),
  3187. type: 13,
  3188. atool: 52,
  3189. }];
  3190. console.log(params);
  3191. this.ajax
  3192. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3193. .then((res) => {
  3194. this.$message({
  3195. message: "提交成功",
  3196. type: "success",
  3197. });
  3198. this.dialogVisibleWordTeacher = false;
  3199. // this.selectAnswer = {};
  3200. this.selectSWorks();
  3201. this.selectStudent();
  3202. })
  3203. .catch((err) => {
  3204. this.$message.error("提交失败");
  3205. console.error(err);
  3206. });
  3207. },
  3208. addCourseWorks(i) {
  3209. var typesql;
  3210. if (this.fileType === 0) {
  3211. typesql = 1;
  3212. } else if (this.fileType === 1) {
  3213. typesql = 4;
  3214. } else if (this.fileType === 2) {
  3215. typesql = 5;
  3216. } else if (this.fileType === 3) {
  3217. typesql = 12;
  3218. }
  3219. if (!this.studyJuri[0].cover[0].url) {
  3220. this.$message.error("请上传文件");
  3221. return;
  3222. }
  3223. let params = [
  3224. {
  3225. uid: this.userid,
  3226. cid: this.id,
  3227. stage: this.courseType,
  3228. task: i,
  3229. tool: this.toolindex,
  3230. content: this.studyJuri[0].cover[0].url,
  3231. type: typesql,
  3232. },
  3233. ];
  3234. this.ajax
  3235. .post(this.$store.state.api + "addCourseWorksR", params)
  3236. .then((res) => {
  3237. this.$message({
  3238. message: "提交成功",
  3239. type: "success",
  3240. });
  3241. this.studyJuri[0].cover = [];
  3242. this.dialogVisible = false;
  3243. this.getCourseDetail();
  3244. })
  3245. .catch((err) => {
  3246. this.$message.error("提交失败");
  3247. console.error(err);
  3248. });
  3249. },
  3250. addCourseWorksPl(i) {
  3251. let _files = this.plworkFile;
  3252. var c = 1;
  3253. for (var k = 0; k < _files.length; k++) {
  3254. if (!_files[k].username) {
  3255. c = 2;
  3256. }
  3257. }
  3258. if (c == 2) {
  3259. this.$message.error("请填写学生姓名");
  3260. return;
  3261. }
  3262. let params = [
  3263. {
  3264. ateacher: this.userid,
  3265. cid: this.id,
  3266. stage: this.courseType,
  3267. task: i,
  3268. tool: this.toolindex,
  3269. content: JSON.stringify(_files),
  3270. },
  3271. ];
  3272. this.ajax
  3273. .post(this.$store.state.api + "addCourseWorksPl", params)
  3274. .then((res) => {
  3275. this.$message({
  3276. message: "提交成功",
  3277. type: "success",
  3278. });
  3279. this.plworkFile = [];
  3280. this.dialogVisiblePl = false;
  3281. this.getCourseDetail();
  3282. })
  3283. .catch((err) => {
  3284. this.$message.error("提交失败");
  3285. console.error(err);
  3286. });
  3287. },
  3288. addCourseWorks2(i) {
  3289. var typesql;
  3290. if (this.fileType === 0) {
  3291. typesql = 0;
  3292. } else if (this.fileType === 1) {
  3293. typesql = 1;
  3294. } else if (this.fileType === 2) {
  3295. typesql = 3;
  3296. } else if (this.fileType === 3) {
  3297. typesql = 12;
  3298. }
  3299. if (!this.studyJuri[0].cover[0].url) {
  3300. this.$message.error("请上传文件");
  3301. return;
  3302. }
  3303. let params = [
  3304. {
  3305. uid: this.userid,
  3306. cid: this.id,
  3307. stage: this.courseType,
  3308. task: i,
  3309. tool: this.toolindex,
  3310. content: JSON.stringify({
  3311. type: typesql,
  3312. groupIndex: this.groupIndex,
  3313. url: this.studyJuri[0].cover[0].url,
  3314. }),
  3315. type: 11,
  3316. atool: 49,
  3317. text: "",
  3318. },
  3319. ];
  3320. this.ajax
  3321. .post(this.$store.state.api + "addCourseWorks5", params)
  3322. .then((res) => {
  3323. this.$message({
  3324. message: "提交成功",
  3325. type: "success",
  3326. });
  3327. this.studyJuri[0].cover = [];
  3328. this.dialogVisibleGroupWork = false;
  3329. this.getCourseDetail();
  3330. })
  3331. .catch((err) => {
  3332. this.$message.error("提交失败");
  3333. console.error(err);
  3334. });
  3335. },
  3336. addCourseWorksGong(i, data, tool) {
  3337. let params = [
  3338. {
  3339. uid: this.userid,
  3340. cid: this.id,
  3341. stage: this.courseType,
  3342. task: this.taskCount,
  3343. tool: i,
  3344. content: data,
  3345. type: 12,
  3346. atool: tool,
  3347. text: "",
  3348. },
  3349. ];
  3350. this.ajax
  3351. .post(this.$store.state.api + "addCourseWorks5", params)
  3352. .then((res) => {
  3353. this.$message({
  3354. message: "提交成功",
  3355. type: "success",
  3356. });
  3357. this.studyJuri[0].cover = [];
  3358. this.selectSWorks();
  3359. this.selectStudent();
  3360. })
  3361. .catch((err) => {
  3362. this.$message.error("提交失败");
  3363. console.error(err);
  3364. });
  3365. },
  3366. addCourseWorksGongTeacher(i, data, tool) {
  3367. let params = [
  3368. {
  3369. uid: this.sStudent.userid,
  3370. cid: this.id,
  3371. stage: this.courseType,
  3372. task: this.taskCount,
  3373. tool: i,
  3374. content: data,
  3375. type: 12,
  3376. atool: tool,
  3377. text: "",
  3378. },
  3379. ];
  3380. this.ajax
  3381. .post(this.$store.state.api + "addCourseWorks5", params)
  3382. .then((res) => {
  3383. this.$message({
  3384. message: "提交成功",
  3385. type: "success",
  3386. });
  3387. this.studyJuri[0].cover = [];
  3388. this.dialogVisibleWorks = false;
  3389. this.selectSWorks();
  3390. this.selectStudent();
  3391. })
  3392. .catch((err) => {
  3393. this.$message.error("提交失败");
  3394. console.error(err);
  3395. });
  3396. },
  3397. addCourseWorksGongPl(i, data, tool, type) {
  3398. let params = [
  3399. {
  3400. uid: this.sStudent.userid,
  3401. cid: this.id,
  3402. stage: this.courseType,
  3403. task: this.taskCount,
  3404. tool: i,
  3405. content: data,
  3406. type: type,
  3407. atool: tool,
  3408. text: "",
  3409. },
  3410. ];
  3411. this.ajax
  3412. .post(this.$store.state.api + "addCourseWorks5", params)
  3413. .then((res) => {
  3414. this.$message({
  3415. message: "提交成功",
  3416. type: "success",
  3417. });
  3418. this.studyJuri[0].cover = [];
  3419. this.dialogVisibleWorks = false;
  3420. this.selectSWorks();
  3421. this.selectStudent();
  3422. })
  3423. .catch((err) => {
  3424. this.$message.error("提交失败");
  3425. console.error(err);
  3426. });
  3427. },
  3428. addCourseWorksTeacher(i) {
  3429. var typesql;
  3430. if (this.sTool == 32 || this.sTool == 57) {
  3431. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  3432. return;
  3433. }
  3434. if (this.fileType === 0) {
  3435. typesql = 1;
  3436. } else if (this.fileType === 1) {
  3437. typesql = 4;
  3438. } else if (this.fileType === 2) {
  3439. typesql = 5;
  3440. } else if (this.fileType === 3) {
  3441. typesql = 12;
  3442. }
  3443. if (this.sTool == 50) {
  3444. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  3445. return;
  3446. }
  3447. if (!this.studyJuri[0].cover[0].url) {
  3448. this.$message.error("请上传文件");
  3449. return;
  3450. }
  3451. let params = [
  3452. {
  3453. uid: this.sStudent.userid,
  3454. cid: this.id,
  3455. stage: this.courseType,
  3456. task: i,
  3457. tool: this.toolindex,
  3458. content: this.studyJuri[0].cover[0].url,
  3459. type: typesql,
  3460. ateacher: this.userid,
  3461. },
  3462. ];
  3463. this.ajax
  3464. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  3465. .then((res) => {
  3466. this.$message({
  3467. message: "提交成功",
  3468. type: "success",
  3469. });
  3470. this.studyJuri[0].cover = [];
  3471. this.dialogVisibleWorks = false;
  3472. this.getCourseDetail();
  3473. })
  3474. .catch((err) => {
  3475. this.$message.error("提交失败");
  3476. console.error(err);
  3477. });
  3478. },
  3479. selectUploadStudent() {
  3480. let params = {
  3481. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  3482. oid: this.oid,
  3483. cn: '',
  3484. };
  3485. this.ajax
  3486. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  3487. .then((res) => {
  3488. var studentK = [];
  3489. if (this.isWorksS[this.toolindex].length > 0) {
  3490. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  3491. studentK.push(this.isWorksS[this.toolindex][z].uid);
  3492. }
  3493. studentK = studentK.join(",");
  3494. }
  3495. this.uploadStudentJuri = res.data[0].filter((el) => {
  3496. return studentK.indexOf(el.userid) == -1
  3497. });
  3498. })
  3499. .catch((err) => {
  3500. console.error(err);
  3501. });
  3502. },
  3503. arrayToArray(arrayo, arrayt) {
  3504. let array1 = arrayo;
  3505. let array2 = arrayt;
  3506. let commonElements = [];
  3507. for (let i = 0; i < array1.length; i++) {
  3508. for (let j = 0; j < array2.length; j++) {
  3509. if (array1[i] === array2[j]) {
  3510. commonElements.push(array1[i]);
  3511. }
  3512. }
  3513. }
  3514. return commonElements
  3515. },
  3516. selectWorksStudent() {
  3517. let params = {
  3518. oid: this.oid,
  3519. cid: this.courseDetail.juri,
  3520. };
  3521. this.ajax
  3522. .get(this.$store.state.api + "selectWorksStudent", params)
  3523. .then((res) => {
  3524. var a = res.data[0];
  3525. this.noWorksS = [];
  3526. var studentK = [];
  3527. if (this.isWorksS.length > 0) {
  3528. for (var z = 0; z < this.isWorksS.length; z++) {
  3529. studentK.push(this.isWorksS[z].uid);
  3530. }
  3531. studentK = studentK.join(",");
  3532. for (var j = 0; j < a.length; j++) {
  3533. // if (studentK.indexOf(a[j].userid) == -1) {
  3534. if (this.tcid) {
  3535. // a[j].classid.indexOf(this.tcid) != -1
  3536. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  3537. this.noWorksS.push({
  3538. student: a[j].name,
  3539. userid: a[j].userid,
  3540. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3541. });
  3542. }
  3543. } else {
  3544. this.noWorksS.push({
  3545. student: a[j].name,
  3546. userid: a[j].userid,
  3547. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3548. });
  3549. }
  3550. // }
  3551. }
  3552. } else {
  3553. for (var k = 0; k < a.length; k++) {
  3554. if (this.tcid) {
  3555. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  3556. this.noWorksS.push({
  3557. student: a[k].name,
  3558. userid: a[k].userid,
  3559. type: '1'
  3560. });
  3561. }
  3562. } else {
  3563. this.noWorksS.push({
  3564. student: a[k].name,
  3565. userid: a[k].userid,
  3566. type: '1'
  3567. });
  3568. }
  3569. }
  3570. }
  3571. // this.noWorksS = this.noWorksS.sort(function (a, b) {
  3572. // let jscoreA = parseInt(a.type);
  3573. // let jscoreB = parseInt(b.type);
  3574. // return jscoreB - jscoreA;
  3575. // });
  3576. this.$forceUpdate();
  3577. if (
  3578. Object.keys(this.commentDetail).length &&
  3579. Object.keys(this.commentIndexJson).length &&
  3580. !this.dialogVisibleScore
  3581. ) {
  3582. let a = 1;
  3583. let c = this.commentIndexJson;
  3584. console.log(c);
  3585. if (
  3586. this.commentIndexJson.gindex ||
  3587. this.commentIndexJson.gindex === 0
  3588. ) {
  3589. for (
  3590. var i = 0;
  3591. i < this.worksStudent.length;
  3592. i++
  3593. ) {
  3594. let _el = this.worksStudent[i];
  3595. groupA: for (var k = 0; k < _el.length; k++) {
  3596. let el = _el[k];
  3597. if (el.wid == this.commentDetail.wid) {
  3598. a = 2;
  3599. this.commentOther(
  3600. this.worksStudent[i][k],
  3601. this.commentIndexJson.toolIndex,
  3602. k,
  3603. this.commentIndexJson.gindex
  3604. );
  3605. break groupA;
  3606. }
  3607. }
  3608. }
  3609. if (a === 1) {
  3610. this.commentDetail = [];
  3611. this.commentIndexJson = {};
  3612. this.commentDialogVisible = false;
  3613. this.$message("此作业已被删除");
  3614. }
  3615. } else {
  3616. if (this.isGroup && this.commentIndexJson.gid) {
  3617. groupA: for (
  3618. var i = 0;
  3619. i < this.courseGroup.group.length;
  3620. i++
  3621. ) {
  3622. let _group = this.courseGroup.group[i]
  3623. if (_group.id == this.commentIndexJson.gid) {
  3624. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  3625. for (var k = 0; k < _el2.length; k++) {
  3626. let el2 = _el2[k];
  3627. if (el2.wid == this.commentDetail.wid) {
  3628. a = 2;
  3629. this.commentOther(
  3630. _el2[k],
  3631. this.commentIndexJson.toolIndex,
  3632. k,
  3633. null,
  3634. this.commentIndexJson.gid
  3635. );
  3636. break groupA;
  3637. }
  3638. }
  3639. }
  3640. }
  3641. }
  3642. if (a == 1) {
  3643. for (
  3644. var i = 0;
  3645. i < this.worksStudent.length;
  3646. i++
  3647. ) {
  3648. let el = this.worksStudent[i];
  3649. if (el.wid == this.commentDetail.wid) {
  3650. a = 2;
  3651. this.commentOther(
  3652. this.worksStudent[i],
  3653. this.commentIndexJson.toolIndex,
  3654. i
  3655. );
  3656. break;
  3657. }
  3658. }
  3659. }
  3660. if (a === 1) {
  3661. this.commentDetail = [];
  3662. this.commentIndexJson = {};
  3663. this.commentDialogVisible = false;
  3664. this.$message("此作业已被删除");
  3665. }
  3666. }
  3667. }
  3668. })
  3669. .catch((err) => {
  3670. console.error(err);
  3671. });
  3672. },
  3673. selectStudent() {
  3674. },
  3675. openVideo(w) {
  3676. this.videoDetail = {};
  3677. this.playerOptions1.sources[0].src = w.works;
  3678. this.videoDetail = this.playerOptions1;
  3679. this.videoVisible = true;
  3680. },
  3681. isLikes(wid, uid, t, c, isLikes) {
  3682. if (isLikes == false) {
  3683. let params = [
  3684. {
  3685. wid: wid,
  3686. lid: uid,
  3687. t: t,
  3688. c: c,
  3689. },
  3690. ];
  3691. this.ajax
  3692. .post(this.$store.state.api + "insertComment", params)
  3693. .then((res) => {
  3694. this.$message({
  3695. message: "点赞成功",
  3696. type: "success",
  3697. });
  3698. this.selectSWorks();
  3699. this.selectStudent();
  3700. })
  3701. .catch((err) => {
  3702. this.$message.error("点赞失败");
  3703. console.error(err);
  3704. });
  3705. } else {
  3706. let params = {
  3707. wid: wid,
  3708. lid: uid,
  3709. type: t,
  3710. };
  3711. this.ajax
  3712. .get(this.$store.state.api + "deleteComment", params)
  3713. .then((res) => {
  3714. this.$message({
  3715. message: "取消点赞成功",
  3716. type: "success",
  3717. });
  3718. this.selectSWorks();
  3719. this.selectStudent();
  3720. })
  3721. .catch((err) => {
  3722. console.error(err);
  3723. });
  3724. }
  3725. },
  3726. deleteComment(wid) {
  3727. this.$confirm("确定删除此评论吗?", "提示", {
  3728. confirmButtonText: "确定",
  3729. cancelButtonText: "取消",
  3730. type: "warning",
  3731. })
  3732. .then(() => {
  3733. let params = {
  3734. id: wid,
  3735. };
  3736. this.ajax
  3737. .get(this.$store.state.api + "deleteComment2", params)
  3738. .then((res) => {
  3739. this.$message({
  3740. message: "删除评论成功",
  3741. type: "success",
  3742. });
  3743. this.selectSWorks();
  3744. this.selectStudent();
  3745. })
  3746. .catch((err) => {
  3747. console.error(err);
  3748. });
  3749. })
  3750. .catch(() => { });
  3751. },
  3752. commentOther(w, toolIndex, wIndex, gindex, gid) {
  3753. this.commentIndexJson = {
  3754. toolIndex: toolIndex,
  3755. wIndex: wIndex,
  3756. gindex: gindex,
  3757. gid: gid
  3758. };
  3759. this.commentDetail = [];
  3760. this.commentDialogVisible = true;
  3761. this.commentDetail = w;
  3762. if (w.works && w.type == 1) {
  3763. this.pptImgUrl = "";
  3764. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3765. if (
  3766. a.indexOf(
  3767. w.works
  3768. .split(".")
  3769. [w.works.split(".").length - 1].toLocaleUpperCase()
  3770. ) != -1
  3771. ) {
  3772. this.pptImgUrl =
  3773. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  3774. this.showPDF = false;
  3775. } else if (
  3776. w.works
  3777. .split(".")
  3778. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3779. ) {
  3780. this.pptImgUrl = w.works;
  3781. this.showPDF = true;
  3782. }
  3783. } else if (w.works && w.type == 3) {
  3784. this.videoDetail = {};
  3785. this.playerOptions1.sources[0].src = w.works;
  3786. this.videoDetail = this.playerOptions1;
  3787. // this.videoVisible = true;
  3788. } else if (w.works && w.type == 4) {
  3789. this.eScore = JSON.parse(w.works);
  3790. this.rateJson =
  3791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3792. this.taskCount
  3793. ].toolChoose[toolIndex].rateJson;
  3794. } else if (w.works && w.type == 10) {
  3795. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  3796. } else if (w.works && w.type == 13) {
  3797. this.wordJson =
  3798. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3799. this.taskCount
  3800. ].toolChoose[toolIndex].wordJson;
  3801. }
  3802. },
  3803. openScore(w) {
  3804. this.wScore = 0;
  3805. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  3806. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  3807. this.commentDetail = [];
  3808. this.dialogVisibleScore = true;
  3809. this.commentDetail = w;
  3810. if (w.works && w.type == 1) {
  3811. this.pptImgUrl = "";
  3812. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3813. if (
  3814. a.indexOf(
  3815. w.works
  3816. .split(".")
  3817. [w.works.split(".").length - 1].toLocaleUpperCase()
  3818. ) != -1
  3819. ) {
  3820. this.pptImgUrl =
  3821. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  3822. this.showPDF = false;
  3823. } else if (
  3824. w.works
  3825. .split(".")
  3826. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3827. ) {
  3828. this.pptImgUrl = w.works;
  3829. this.showPDF = true;
  3830. }
  3831. } else if (w.works && w.type == 3) {
  3832. this.videoDetail = {};
  3833. this.playerOptions1.sources[0].src = w.works;
  3834. this.videoDetail = this.playerOptions1;
  3835. }
  3836. },
  3837. addComment(wid, uid, t) {
  3838. if (this.commentText == "") {
  3839. this.$message.error("请输入评论");
  3840. return;
  3841. }
  3842. let params2 = [
  3843. {
  3844. wid: wid,
  3845. lid: uid,
  3846. t: t,
  3847. },
  3848. ];
  3849. this.ajax
  3850. .post(this.$store.state.api + "getComment", params2)
  3851. .then((res) => {
  3852. if (res.data[0].length > 0) {
  3853. this.$message.error("一个作业只能评论一条");
  3854. } else {
  3855. let params = [
  3856. {
  3857. wid: wid,
  3858. lid: uid,
  3859. t: t,
  3860. c: this.commentText,
  3861. },
  3862. ];
  3863. this.ajax
  3864. .post(this.$store.state.api + "insertComment", params)
  3865. .then((res) => {
  3866. this.$message({
  3867. message: "评论成功",
  3868. type: "success",
  3869. });
  3870. this.commentText = "";
  3871. this.selectSWorks();
  3872. this.selectStudent();
  3873. })
  3874. .catch((err) => {
  3875. this.$message.error("评论失败");
  3876. console.error(err);
  3877. });
  3878. }
  3879. })
  3880. .catch((err) => {
  3881. // this.$message.error("评论失败");
  3882. console.error(err);
  3883. });
  3884. },
  3885. scoreWork(wid) {
  3886. if (this.wScore == 0) {
  3887. this.$message.error("请评分");
  3888. return;
  3889. }
  3890. let params = [
  3891. {
  3892. wid: wid,
  3893. score: JSON.stringify({
  3894. wScore: this.wScore,
  3895. detail: this.scoreDetail,
  3896. }),
  3897. },
  3898. ];
  3899. this.ajax
  3900. .post(this.$store.state.api + "scoreWork", params)
  3901. .then((res) => {
  3902. this.$message({
  3903. message: "评分成功",
  3904. type: "success",
  3905. });
  3906. this.wScore = 0;
  3907. this.scoreDetail = "";
  3908. this.dialogVisibleScore = false;
  3909. this.selectSWorks();
  3910. this.selectStudent();
  3911. })
  3912. .catch((err) => {
  3913. this.$message.error("评分失败");
  3914. console.error(err);
  3915. });
  3916. },
  3917. openXz(w, i) {
  3918. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  3919. .taskJson[this.taskCount].toolChoose[i].selectJson
  3920. ? JSON.parse(
  3921. JSON.stringify(
  3922. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3923. this.taskCount
  3924. ].toolChoose[i].selectJson
  3925. )
  3926. )
  3927. : { url: "", select: [], answer: [] };
  3928. var a = w.works.split(",");
  3929. for (var k = 0; k < a.length; k++) {
  3930. a[k] = parseInt(a[k]);
  3931. }
  3932. this.selectAnswer = { answer: a, stu: w.sName };
  3933. this.isSelect = true;
  3934. this.dialogVisibleSelect = true;
  3935. },
  3936. openSen(w, i) {
  3937. this.sentenceList1 = JSON.parse(w.works);
  3938. this.sentenceList1.stuName = w.sName;
  3939. this.dialogVisibleSentence1 = true;
  3940. },
  3941. openPj(w, toolindex) {
  3942. this.isStar = true;
  3943. this.eScore = JSON.parse(w);
  3944. this.rateJson =
  3945. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3946. this.taskCount
  3947. ].toolChoose[toolindex].rateJson;
  3948. this.studentEvalDialogVisible = true;
  3949. },
  3950. deleteWorks(id) {
  3951. this.$confirm("确定删除此作业吗?", "提示", {
  3952. confirmButtonText: "确定",
  3953. cancelButtonText: "取消",
  3954. type: "warning",
  3955. })
  3956. .then(() => {
  3957. let params = [
  3958. {
  3959. id: id,
  3960. },
  3961. ];
  3962. this.ajax
  3963. .post(this.$store.state.api + "deleteCourseWork", params)
  3964. .then((res) => {
  3965. this.$message({
  3966. message: "删除成功",
  3967. type: "success",
  3968. });
  3969. this.selectStudent();
  3970. this.selectSWorks();
  3971. this.selectSLook();
  3972. })
  3973. .catch((err) => {
  3974. this.$message.error("网络异常");
  3975. console.error(err);
  3976. });
  3977. })
  3978. .catch(() => { });
  3979. },
  3980. selectSWorks(gindex) {
  3981. //教师查看全部作业
  3982. let params = {
  3983. cid: this.id,
  3984. s: this.courseType,
  3985. t: this.taskCount,
  3986. };
  3987. this.ajax
  3988. .get(this.$store.state.api + "selectSWorks", params)
  3989. .then((res) => {
  3990. var a = 1;
  3991. var b = res.data[0];
  3992. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3993. var y = [
  3994. "AVI",
  3995. "NAVI",
  3996. "MPEG",
  3997. "ASF",
  3998. "MOV",
  3999. "WMV",
  4000. "3GP",
  4001. "RM",
  4002. "RMVB",
  4003. "FLV",
  4004. "F4V",
  4005. "H.264",
  4006. "H.265",
  4007. "REAL VIDEO",
  4008. "MKV",
  4009. "WebM",
  4010. "HDDVD",
  4011. "MP4",
  4012. "MPG",
  4013. "M4V",
  4014. "MGV",
  4015. "OGV",
  4016. "QTM",
  4017. "STR",
  4018. "AMC",
  4019. "DVX",
  4020. "EVO",
  4021. "DAT",
  4022. "OGG",
  4023. "OGM",
  4024. ];
  4025. var d = res.data[1];
  4026. var e = res.data[2];
  4027. var f = res.data[3];
  4028. let worksStudent = [];
  4029. let worksTeacher = [];
  4030. let worksStudent2 = [];
  4031. if (
  4032. !this.isCloseList ||
  4033. this.isCloseList.isClose == undefined
  4034. ) {
  4035. this.isCloseList = { isClose: 0 };
  4036. }
  4037. this.groupStudent = [];
  4038. this.groupStudentUid = [];
  4039. this.isWorksS = [];
  4040. this.checkJson = [];
  4041. for (var j = 0; j < b.length; j++) {
  4042. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  4043. continue;
  4044. }
  4045. var likesCount = 0;
  4046. var commentCount = 0;
  4047. var isLikes = false;
  4048. var commentJson = [];
  4049. var data = b[j];
  4050. for (var k = 0; k < d.length; k++) {
  4051. //点赞
  4052. if (d[k].workId == b[j].id) {
  4053. likesCount++;
  4054. if (d[k].likesId == this.userid) {
  4055. isLikes = true;
  4056. }
  4057. }
  4058. }
  4059. for (var l = 0; l < e.length; l++) {
  4060. //评论
  4061. if (e[l].workId == b[j].id) {
  4062. if (e[l].comment != "") {
  4063. commentCount++;
  4064. commentJson.push({
  4065. commentText: e[l].comment,
  4066. commentTime: e[l].commentTime,
  4067. commentPeople: e[l].commentPeople,
  4068. userid: e[l].userid,
  4069. wid: e[l].id,
  4070. });
  4071. }
  4072. }
  4073. }
  4074. if (b[j].type == 1 && (b[j].atool == 1 || b[j].atool == 3)) {
  4075. let _works = {
  4076. userid: b[j].userid,
  4077. ateacher: b[j].ateacher,
  4078. wid: b[j].id,
  4079. works: b[j].content,
  4080. sName: b[j].name,
  4081. type: 0,
  4082. time: b[j].time,
  4083. score: b[j].score,
  4084. img: b[j].img,
  4085. likesCount: likesCount,
  4086. commentCount: commentCount,
  4087. isLikes: isLikes,
  4088. commentJson: commentJson,
  4089. }
  4090. if (b[j].ttype == 1) {
  4091. worksTeacher.push(_works);
  4092. } else {
  4093. worksStudent2.push(_works);
  4094. }
  4095. worksStudent.push(_works);
  4096. this.isWorksS.push({ uid: b[j].userid, sName: b[j].name });
  4097. }
  4098. }
  4099. if (worksStudent && worksStudent.length) {
  4100. worksStudent = worksStudent.sort(function (a, b) {
  4101. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4102. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4103. var scoreA = parseFloat(jscoreA);
  4104. var scoreB = parseFloat(jscoreB);
  4105. if (scoreA == scoreB) {
  4106. return b.likesCount - a.likesCount;
  4107. }
  4108. return scoreB - scoreA;
  4109. });
  4110. }
  4111. if (worksStudent2 && worksStudent2.length) {
  4112. worksStudent2 = worksStudent2.sort(function (a, b) {
  4113. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4114. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4115. var scoreA = parseFloat(jscoreA);
  4116. var scoreB = parseFloat(jscoreB);
  4117. if (scoreA == scoreB) {
  4118. return b.likesCount - a.likesCount;
  4119. }
  4120. return scoreB - scoreA;
  4121. });
  4122. }
  4123. if (worksTeacher && worksTeacher.length) {
  4124. worksTeacher = worksTeacher.sort(function (a, b) {
  4125. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4126. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4127. var scoreA = parseFloat(jscoreA);
  4128. var scoreB = parseFloat(jscoreB);
  4129. if (scoreA == scoreB) {
  4130. return b.likesCount - a.likesCount;
  4131. }
  4132. return scoreB - scoreA;
  4133. });
  4134. }
  4135. this.worksStudent = worksStudent
  4136. this.worksTeacher = worksTeacher
  4137. this.worksStudent2 = worksStudent2
  4138. this.$forceUpdate()
  4139. this.selectWorksStudent();
  4140. })
  4141. .catch((err) => {
  4142. console.error(err);
  4143. });
  4144. },
  4145. pngToWhiteBg(file) {
  4146. const _file = file;
  4147. let read = new FileReader();
  4148. read.readAsDataURL(file); // 文件转base64
  4149. return new Promise((resolve, reject) => {
  4150. read.onload = (e) => {
  4151. let img = new Image();
  4152. img.src = e.target.result;
  4153. img.onload = async () => {
  4154. // 生成canvas
  4155. let canvas = document.createElement("canvas");
  4156. let context = canvas.getContext("2d");
  4157. // 绘制图片到canvas上
  4158. canvas.width = img.width;
  4159. canvas.height = img.height;
  4160. // 在canvas绘制前填充白色背景
  4161. context.fillStyle = "#fff";
  4162. context.fillRect(0, 0, canvas.width, canvas.height);
  4163. context.drawImage(img, 0, 0);
  4164. let base64 = canvas.toDataURL(file["type"], 1);
  4165. let newFile = this.dataUrlToFile(base64, _file);
  4166. resolve(newFile);
  4167. };
  4168. };
  4169. });
  4170. },
  4171. dataUrlToFile(dataurl, file) {
  4172. let arr = dataurl.split(","),
  4173. mime = arr[0].match(/:(.*?);/)[1],
  4174. bstr = atob(arr[1]),
  4175. n = bstr.length,
  4176. u8arr = new Uint8Array(n);
  4177. while (n--) {
  4178. u8arr[n] = bstr.charCodeAt(n);
  4179. }
  4180. // return new Blob([u8arr], { type: mime });
  4181. return new File([new Blob([u8arr], { type: mime })], file.name, {
  4182. type: mime,
  4183. });
  4184. },
  4185. async beforeUpload1(event, type, i) {
  4186. // this.$message.success('进入上传')
  4187. var file = "";
  4188. if (type == 5) {
  4189. file = event;
  4190. } else {
  4191. file = event.target.files[0];
  4192. }
  4193. var credentials = {
  4194. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4195. secretAccessKey: "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",
  4196. }; //秘钥形式的登录上传
  4197. window.AWS.config.update(credentials);
  4198. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4199. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4200. var _this = this;
  4201. _this.progress = 0;
  4202. _this.proVisible = true;
  4203. _this.isFinishSize = 0;
  4204. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4205. var b = [
  4206. "DOC",
  4207. "DOCX",
  4208. "DOCM",
  4209. "DOTM",
  4210. "DOTX",
  4211. "PPTX",
  4212. "PPSX",
  4213. "PPT",
  4214. "PPS",
  4215. "PPTM",
  4216. "POTM",
  4217. "PPAM",
  4218. "POTX",
  4219. "PPSM",
  4220. ];
  4221. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4222. var photoA = [
  4223. "BMP",
  4224. "GIF",
  4225. "PNG",
  4226. "JPEG",
  4227. "JPG",
  4228. "TIF",
  4229. "PCX",
  4230. "TGA",
  4231. "EXIF",
  4232. "FPX",
  4233. "SVG",
  4234. "APNG",
  4235. ];
  4236. // if (
  4237. // b.indexOf(
  4238. // file.name
  4239. // .split(".")
  4240. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4241. // ) != -1
  4242. // ) {
  4243. // if (file.size / 1024 / 1024 > 10) {
  4244. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  4245. // return;
  4246. // }
  4247. // } else if (
  4248. // excelA.indexOf(
  4249. // file.name
  4250. // .split(".")
  4251. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4252. // ) != "-1"
  4253. // ) {
  4254. // if (file.size / 1024 / 1024 > 5) {
  4255. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  4256. // return;
  4257. // }
  4258. // }
  4259. if (
  4260. photoA.indexOf(
  4261. file.name
  4262. .split(".")
  4263. [file.name.split(".").length - 1].toLocaleUpperCase()
  4264. ) != -1 &&
  4265. type != 4
  4266. ) {
  4267. // const blob = await imageConversion.compress(file, 0.8)
  4268. file = await this.pngToWhiteBg(file);
  4269. const blob = await imageConversion.compressAccurately(file, 256);
  4270. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4271. file = new File([blob], file.name, { type: file.type });
  4272. }
  4273. if (file) {
  4274. var params = {
  4275. Key:
  4276. file.name.split(".")[0] +
  4277. new Date().getTime() +
  4278. "." +
  4279. file.name.split(".")[file.name.split(".").length - 1],
  4280. ContentType: file.type,
  4281. Body: file,
  4282. "Access-Control-Allow-Credentials": "*",
  4283. ACL: "public-read",
  4284. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4285. var options = {
  4286. // partSize: 2048 * 1024 * 1024,
  4287. partSize: 1024 * 1024 * 1024,
  4288. queueSize: 2,
  4289. leavePartsOnError: true,
  4290. };
  4291. bucket
  4292. .upload(params, options)
  4293. .on("httpUploadProgress", function (evt) {
  4294. //这里可以写进度条
  4295. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4296. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4297. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4298. })
  4299. .send(function (err, data) {
  4300. _this.progress = 100;
  4301. _this.isFinishSize = _this.isAllSize;
  4302. setTimeout(() => {
  4303. _this.proVisible = false;
  4304. }, 1000);
  4305. if (err) {
  4306. var a = _this.$refs.upload1.uploadFiles;
  4307. a.splice(a.length - 1, a.length);
  4308. _this.$message.error("上传失败");
  4309. } else {
  4310. // _this.$message.success('上传成功')
  4311. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4312. var c = [
  4313. "AVI",
  4314. "NAVI",
  4315. "MPEG",
  4316. "ASF",
  4317. "MOV",
  4318. "WMV",
  4319. "3GP",
  4320. "RM",
  4321. "RMVB",
  4322. "FLV",
  4323. "F4V",
  4324. "H.264",
  4325. "H.265",
  4326. "REAL VIDEO",
  4327. "MKV",
  4328. "WebM",
  4329. "HDDVD",
  4330. "MP4",
  4331. "MPG",
  4332. "M4V",
  4333. "MGV",
  4334. "OGV",
  4335. "QTM",
  4336. "STR",
  4337. "AMC",
  4338. "DVX",
  4339. "EVO",
  4340. "DAT",
  4341. "OGG",
  4342. "OGM",
  4343. ];
  4344. if (type == 1) {
  4345. _this.studyJuri[0].cover.push({
  4346. name: file.name,
  4347. url: data.Location,
  4348. uid: file.uid,
  4349. });
  4350. if (
  4351. c.indexOf(
  4352. _this.studyJuri[0].cover[0].url
  4353. .split(".")
  4354. [
  4355. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4356. ].toLocaleUpperCase()
  4357. ) != -1
  4358. ) {
  4359. _this.fileType = 2;
  4360. } else if (
  4361. b.indexOf(
  4362. _this.studyJuri[0].cover[0].url
  4363. .split(".")
  4364. [
  4365. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4366. ].toLocaleUpperCase()
  4367. ) != -1
  4368. ) {
  4369. _this.fileType = 1;
  4370. } else if (photoA.indexOf(
  4371. _this.studyJuri[0].cover[0].url
  4372. .split(".")
  4373. [
  4374. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4375. ].toLocaleUpperCase()
  4376. ) != -1) {
  4377. _this.fileType = 0;
  4378. } else {
  4379. _this.fileType = 3;
  4380. }
  4381. _this.imgChange(null, null, type);
  4382. } else if (type == 2) {
  4383. _this.upToolImg = data.Location;
  4384. _this.imgChange(null, null, type);
  4385. _this.addCourseWorks(i);
  4386. } else if (type == 4) {
  4387. _this.addPz("3", data.Location);
  4388. } else if (type == 5) {
  4389. _this.addImgDrawImG(data.Location);
  4390. } else if (type == 6) {
  4391. var _ftype = 1;
  4392. if (
  4393. c.indexOf(
  4394. data.Location.split(".")[
  4395. data.Location.split(".").length - 1
  4396. ].toLocaleUpperCase()
  4397. ) != -1
  4398. ) {
  4399. _ftype = 5;
  4400. } else if (
  4401. b.indexOf(
  4402. data.Location.split(".")[
  4403. data.Location.split(".").length - 1
  4404. ].toLocaleUpperCase()
  4405. ) != -1
  4406. ) {
  4407. _ftype = 4;
  4408. } else {
  4409. _ftype = 1;
  4410. }
  4411. _this.plworkFile.push({
  4412. name: file.name,
  4413. url: data.Location,
  4414. uid: file.uid,
  4415. fileType: _ftype,
  4416. username:
  4417. _this.plworkFile.length + 1 > 10
  4418. ? _this.plworkFile.length + 1
  4419. : "0" + (_this.plworkFile.length + 1),
  4420. });
  4421. } else if (type == 7) {
  4422. _this.addCourseWorksGong(i, data.Location, 32);
  4423. } else if (type == 8) {
  4424. _this.addCourseWorksGong(i, data.Location, 57);
  4425. }
  4426. _this.imgChange(null, null, type);
  4427. console.log(data.Location);
  4428. // _this.$message.success('上传成功'+data.Location)
  4429. }
  4430. });
  4431. }
  4432. },
  4433. async beforeUpload3(event, type, i) {
  4434. // this.$message.success('进入上传')
  4435. let file = "";
  4436. let cfindex2 = 0;
  4437. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  4438. file = event.target.files[cfindex];
  4439. var credentials = {
  4440. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4441. secretAccessKey: "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",
  4442. }; //秘钥形式的登录上传
  4443. window.AWS.config.update(credentials);
  4444. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4445. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4446. var _this = this;
  4447. // _this.progress = 0;
  4448. _this.proVisible2 = true;
  4449. var b = [
  4450. "DOC",
  4451. "DOCX",
  4452. "DOCM",
  4453. "DOTM",
  4454. "DOTX",
  4455. "PPTX",
  4456. "PPSX",
  4457. "PPT",
  4458. "PPS",
  4459. "PPTM",
  4460. "POTM",
  4461. "PPAM",
  4462. "POTX",
  4463. "PPSM",
  4464. ];
  4465. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4466. var photoA = [
  4467. "BMP",
  4468. "GIF",
  4469. "PNG",
  4470. "JPEG",
  4471. "JPG",
  4472. "TIF",
  4473. "PCX",
  4474. "TGA",
  4475. "EXIF",
  4476. "FPX",
  4477. "SVG",
  4478. "APNG",
  4479. ];
  4480. if (
  4481. photoA.indexOf(
  4482. file.name
  4483. .split(".")
  4484. [file.name.split(".").length - 1].toLocaleUpperCase()
  4485. ) != -1 &&
  4486. type != 4
  4487. ) {
  4488. // const blob = await imageConversion.compress(file, 0.8)
  4489. file = await this.pngToWhiteBg(file);
  4490. const blob = await imageConversion.compressAccurately(file, 256);
  4491. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4492. file = new File([blob], file.name, { type: file.type });
  4493. }
  4494. if (file) {
  4495. var params = {
  4496. Key:
  4497. file.name.split(".")[0] +
  4498. new Date().getTime() +
  4499. "." +
  4500. file.name.split(".")[file.name.split(".").length - 1],
  4501. ContentType: file.type,
  4502. Body: file,
  4503. "Access-Control-Allow-Credentials": "*",
  4504. ACL: "public-read",
  4505. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4506. var options = {
  4507. // partSize: 2048 * 1024 * 1024,
  4508. partSize: 1024 * 1024 * 1024,
  4509. queueSize: 2,
  4510. leavePartsOnError: true,
  4511. };
  4512. bucket
  4513. .upload(params, options)
  4514. .on("httpUploadProgress", function (evt) {
  4515. //这里可以写进度条
  4516. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4517. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4518. })
  4519. .send(function (err, data) {
  4520. // _this.progress = 100;
  4521. cfindex2++;
  4522. setTimeout(() => {
  4523. if (
  4524. cfindex2 == event.target.files.length - 1 ||
  4525. cfindex2 > event.target.files.length - 1
  4526. ) {
  4527. _this.proVisible2 = false;
  4528. }
  4529. }, 1000);
  4530. if (err) {
  4531. var a = _this.$refs.upload1.uploadFiles;
  4532. a.splice(a.length - 1, a.length);
  4533. _this.$message.error("上传失败");
  4534. } else {
  4535. // _this.$message.success('上传成功')
  4536. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4537. var c = [
  4538. "AVI",
  4539. "NAVI",
  4540. "MPEG",
  4541. "ASF",
  4542. "MOV",
  4543. "WMV",
  4544. "3GP",
  4545. "RM",
  4546. "RMVB",
  4547. "FLV",
  4548. "F4V",
  4549. "H.264",
  4550. "H.265",
  4551. "REAL VIDEO",
  4552. "MKV",
  4553. "WebM",
  4554. "HDDVD",
  4555. "MP4",
  4556. "MPG",
  4557. "M4V",
  4558. "MGV",
  4559. "OGV",
  4560. "QTM",
  4561. "STR",
  4562. "AMC",
  4563. "DVX",
  4564. "EVO",
  4565. "DAT",
  4566. "OGG",
  4567. "OGM",
  4568. ];
  4569. if (type == 1) {
  4570. _this.studyJuri[0].cover.push({
  4571. name: file.name,
  4572. url: data.Location,
  4573. uid: file.uid,
  4574. });
  4575. if (
  4576. c.indexOf(
  4577. _this.studyJuri[0].cover[0].url
  4578. .split(".")
  4579. [
  4580. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4581. ].toLocaleUpperCase()
  4582. ) != -1
  4583. ) {
  4584. _this.fileType = 2;
  4585. } else if (
  4586. b.indexOf(
  4587. _this.studyJuri[0].cover[0].url
  4588. .split(".")
  4589. [
  4590. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4591. ].toLocaleUpperCase()
  4592. ) != -1
  4593. ) {
  4594. _this.fileType = 1;
  4595. } else {
  4596. _this.fileType = 0;
  4597. }
  4598. _this.imgChange(null, null, type);
  4599. } else if (type == 2) {
  4600. _this.upToolImg = data.Location;
  4601. _this.imgChange(null, null, type);
  4602. _this.addCourseWorks(i);
  4603. } else if (type == 4) {
  4604. _this.addPz("3", data.Location);
  4605. } else if (type == 5) {
  4606. _this.addImgDrawImG(data.Location);
  4607. } else if (type == 6) {
  4608. var _ftype = 1;
  4609. if (
  4610. c.indexOf(
  4611. data.Location.split(".")[
  4612. data.Location.split(".").length - 1
  4613. ].toLocaleUpperCase()
  4614. ) != -1
  4615. ) {
  4616. _ftype = 5;
  4617. } else if (
  4618. b.indexOf(
  4619. data.Location.split(".")[
  4620. data.Location.split(".").length - 1
  4621. ].toLocaleUpperCase()
  4622. ) != -1
  4623. ) {
  4624. _ftype = 4;
  4625. } else {
  4626. _ftype = 1;
  4627. }
  4628. _this.plworkFile.push({
  4629. name: file.name,
  4630. url: data.Location,
  4631. uid: file.uid,
  4632. fileType: _ftype,
  4633. username:
  4634. _this.plworkFile.length + 1 > 9
  4635. ? _this.plworkFile.length + 1
  4636. : "0" + (_this.plworkFile.length + 1),
  4637. });
  4638. }
  4639. _this.imgChange(null, null, type);
  4640. console.log(data.Location);
  4641. // _this.$message.success('上传成功'+data.Location)
  4642. }
  4643. });
  4644. }
  4645. }
  4646. },
  4647. beforeUpload2(event, type) {
  4648. var file = event.target.files[0];
  4649. var credentials = {
  4650. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4651. secretAccessKey: "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",
  4652. }; //秘钥形式的登录上传
  4653. window.AWS.config.update(credentials);
  4654. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4655. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4656. var _this = this;
  4657. _this.progress = 0;
  4658. _this.proVisible = true;
  4659. if (file) {
  4660. var params = {
  4661. Key:
  4662. file.name.split(".")[0] +
  4663. new Date().getTime() +
  4664. "." +
  4665. file.name.split(".")[file.name.split(".").length - 1],
  4666. ContentType: file.type,
  4667. Body: file,
  4668. "Access-Control-Allow-Credentials": "*",
  4669. ACL: "public-read",
  4670. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4671. var options = {
  4672. partSize: 2048 * 1024 * 1024,
  4673. queueSize: 2,
  4674. leavePartsOnError: true,
  4675. };
  4676. bucket
  4677. .upload(params, options)
  4678. .on("httpUploadProgress", function (evt) {
  4679. //这里可以写进度条
  4680. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4681. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4682. })
  4683. .send(function (err, data) {
  4684. _this.progress = 100;
  4685. setTimeout(() => {
  4686. _this.proVisible = false;
  4687. }, 1000);
  4688. if (err) {
  4689. var a = _this.$refs.upload1.uploadFiles;
  4690. a.splice(a.length - 1, a.length);
  4691. _this.$message.error("上传失败");
  4692. } else {
  4693. if (type == 2) {
  4694. _this.studyJuri[0].upVedio.push({
  4695. name: file.name,
  4696. url: data.Location,
  4697. uid: file.uid,
  4698. });
  4699. _this.imgChange(null, null, type);
  4700. } else if (type == 3) {
  4701. _this.studyJuri[0].upFile.push({
  4702. name: file.name,
  4703. url: data.Location,
  4704. uid: file.uid,
  4705. });
  4706. _this.imgChange(null, null, type);
  4707. }
  4708. console.log(data.Location);
  4709. }
  4710. });
  4711. }
  4712. },
  4713. allScrell() {
  4714. window.topU.postMessage({ allScreen: this.screenType + "NT" }, "*");
  4715. },
  4716. nextToolindex(type) {
  4717. this.$forceUpdate();
  4718. },
  4719. checkBz(index) {
  4720. this.$forceUpdate();
  4721. },
  4722. nextOrpreSteps(t) {
  4723. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4724. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4725. return;
  4726. }
  4727. var b = this.chapInfoList.length - 1;
  4728. if (t == 0) {
  4729. if (this.courseType == 0) {
  4730. if (this.taskCount == 0) {
  4731. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  4732. if (this.IsLookOpen) {
  4733. if (
  4734. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  4735. ) {
  4736. if (
  4737. this.courseDetail.userid != this.userid &&
  4738. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4739. ) {
  4740. this.$message.error("任务未解锁");
  4741. } else {
  4742. this.$message.error("上一任务未解锁");
  4743. }
  4744. return;
  4745. }
  4746. }
  4747. this.navList[this.courseType].isOpen = false;
  4748. this.courseType = b;
  4749. this.taskCount =
  4750. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4751. .length - 1;
  4752. this.navList[this.courseType].isOpen = true;
  4753. } else {
  4754. this.taskCount--;
  4755. }
  4756. } else {
  4757. if (this.taskCount == 0) {
  4758. this.navList[this.courseType].isOpen = false;
  4759. this.courseType--;
  4760. this.taskCount =
  4761. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4762. .length - 1;
  4763. this.navList[this.courseType].isOpen = true;
  4764. } else {
  4765. this.taskCount--;
  4766. }
  4767. }
  4768. } else {
  4769. if (this.courseType == b) {
  4770. if (
  4771. this.taskCount ==
  4772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4773. 1
  4774. ) {
  4775. this.navList[this.courseType].isOpen = false;
  4776. this.courseType = 0;
  4777. this.taskCount = 0;
  4778. this.navList[this.courseType].isOpen = true;
  4779. } else {
  4780. var bbb = parseInt(this.taskCount) + 1;
  4781. if (
  4782. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4783. .isLook &&
  4784. this.courseDetail.userid != this.userid &&
  4785. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4786. this.IsLookOpen
  4787. ) {
  4788. this.$message.error("任务未解锁");
  4789. return;
  4790. }
  4791. this.taskCount++;
  4792. if (this.IsLookOpen) {
  4793. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4794. this.taskCount
  4795. ].isLook = true;
  4796. this.addCourseState(3);
  4797. }
  4798. }
  4799. } else {
  4800. if (
  4801. this.taskCount ==
  4802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4803. 1
  4804. ) {
  4805. var bbb = parseInt(this.courseType) + 1;
  4806. if (
  4807. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  4808. this.courseDetail.userid != this.userid &&
  4809. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4810. this.IsLookOpen
  4811. ) {
  4812. this.$message.error("任务未解锁");
  4813. return;
  4814. }
  4815. this.navList[this.courseType].isOpen = false;
  4816. this.courseType++;
  4817. this.taskCount = 0;
  4818. this.navList[this.courseType].isOpen = true;
  4819. } else {
  4820. var bbb = parseInt(this.taskCount) + 1;
  4821. if (
  4822. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4823. .isLook &&
  4824. this.courseDetail.userid != this.userid &&
  4825. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4826. this.IsLookOpen
  4827. ) {
  4828. this.$message.error("任务未解锁");
  4829. return;
  4830. }
  4831. this.taskCount++;
  4832. }
  4833. if (this.IsLookOpen) {
  4834. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4835. this.taskCount
  4836. ].isLook = true;
  4837. this.addCourseState(3);
  4838. }
  4839. }
  4840. }
  4841. document.scrollingElement.scrollTop = 0;
  4842. this.showType = 0;
  4843. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  4844. this.toolIndex = null
  4845. this.isNoHomeWork = false;
  4846. (this.studyJuri = [
  4847. {
  4848. content: "",
  4849. cover: [],
  4850. upVedio: [],
  4851. upFile: [],
  4852. },
  4853. ]),
  4854. (this.radio = []);
  4855. this.isClickNav = "";
  4856. this.selectPz();
  4857. this.getHomeWork();
  4858. this.getCourseDetail();
  4859. this.$forceUpdate();
  4860. },
  4861. openTask(s, n, i) {
  4862. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4863. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4864. return;
  4865. }
  4866. if (this.IsLookOpen) {
  4867. if (
  4868. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  4869. this.courseDetail.userid != this.userid &&
  4870. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4871. ) {
  4872. this.$message.error("任务未解锁");
  4873. return;
  4874. }
  4875. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  4876. if (
  4877. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  4878. .isLook
  4879. ) {
  4880. this.$message.error("上一任务未解锁");
  4881. return;
  4882. }
  4883. } else if (s > this.courseType) {
  4884. if (n > 0) {
  4885. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  4886. this.$message.error("上一任务未解锁");
  4887. return;
  4888. }
  4889. } else {
  4890. if (
  4891. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  4892. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  4893. ].isLook
  4894. ) {
  4895. this.$message.error("上一任务未解锁");
  4896. return;
  4897. }
  4898. }
  4899. }
  4900. }
  4901. this.courseType = s;
  4902. this.navId = i;
  4903. this.taskCount = n;
  4904. if (this.IsLookOpen) {
  4905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4906. this.taskCount
  4907. ].isLook = true;
  4908. this.addCourseState(3);
  4909. }
  4910. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  4911. this.isCloseList[ci].isClose = 0;
  4912. }
  4913. this.showType = 0;
  4914. this.isNoHomeWork = false;
  4915. (this.studyJuri = [
  4916. {
  4917. content: "",
  4918. cover: [],
  4919. upVedio: [],
  4920. upFile: [],
  4921. },
  4922. ]),
  4923. (this.radio = []);
  4924. document.scrollingElement.scrollTop = 0;
  4925. this.toolIndex = null
  4926. // setTimeout(() => {
  4927. // let a = document.getElementById(i);
  4928. // if (a.offsetTop - 110 == 0) {
  4929. // window.scrollTo(0, 0);
  4930. // } else {
  4931. // window.scrollTo(0, a.offsetTop);
  4932. // }
  4933. // }, 0);
  4934. this.selectPz();
  4935. this.getHomeWork();
  4936. this.getCourseDetail();
  4937. },
  4938. get(i) {
  4939. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4940. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4941. return;
  4942. }
  4943. this.navList[i].isOpen = !this.navList[i].isOpen;
  4944. },
  4945. addQuestion() {
  4946. this.answerList.push({
  4947. answerTitle: this.answerQ,
  4948. answer: this.questionAnswer,
  4949. });
  4950. let params = [
  4951. {
  4952. uid: this.userid,
  4953. cid: this.id,
  4954. stage: this.courseType,
  4955. task: this.taskCount,
  4956. tool: this.toolindex,
  4957. content: JSON.stringify(this.answerList),
  4958. type: 3,
  4959. },
  4960. ];
  4961. this.ajax
  4962. .post(this.$store.state.api + "addCourseWorks", params)
  4963. .then((res) => {
  4964. this.$message({
  4965. message: "提交成功",
  4966. type: "success",
  4967. });
  4968. this.answerList = [];
  4969. this.questionAnswer = ""
  4970. this.answerDialogVisible = false;
  4971. this.selectStudent();
  4972. this.selectSWorks();
  4973. this.selectSLook();
  4974. })
  4975. .catch((err) => {
  4976. this.$message.error("提交失败");
  4977. console.error(err);
  4978. });
  4979. },
  4980. addQuestionTeacher() {
  4981. this.answerList.push({
  4982. answerTitle: this.answerQ,
  4983. answer: this.questionAnswer,
  4984. });
  4985. let params = [
  4986. {
  4987. uid: this.sStudent.userid,
  4988. cid: this.id,
  4989. stage: this.courseType,
  4990. task: this.taskCount,
  4991. tool: this.toolindex,
  4992. content: JSON.stringify(this.answerList),
  4993. type: 3,
  4994. ateacher: this.userid,
  4995. },
  4996. ];
  4997. this.ajax
  4998. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  4999. .then((res) => {
  5000. this.$message({
  5001. message: "提交成功",
  5002. type: "success",
  5003. });
  5004. this.answerList = [];
  5005. this.questionAnswer = ""
  5006. this.answerDialogVisibleTeacher = false;
  5007. this.selectStudent();
  5008. this.selectSWorks();
  5009. this.selectSLook();
  5010. })
  5011. .catch((err) => {
  5012. this.$message.error("提交失败");
  5013. console.error(err);
  5014. });
  5015. },
  5016. refreshCourse() {
  5017. // window.location.reload();
  5018. this.navList = [];
  5019. this.getCourseDetail(1)
  5020. },
  5021. setPz() {
  5022. if (this.ispzType == 4) {
  5023. this.ispzType = 0
  5024. this.pzDialog = false
  5025. return;
  5026. }
  5027. this.ispzType = 4
  5028. this.pzDialog = true
  5029. this.selectPz();
  5030. },
  5031. getCourseDetail(type, gindex) {
  5032. let loading;
  5033. if (type != 2) {
  5034. loading = this.$loading.service({
  5035. background: "rgba(255, 255, 255, 0.7)",
  5036. target: document.querySelector(".student_table"),
  5037. });
  5038. }
  5039. let params = {
  5040. courseId: this.id,
  5041. };
  5042. this.ajax
  5043. .get(this.$store.state.api + "selectCourseDetail3", params)
  5044. .then((res) => {
  5045. if (type != 2) {
  5046. loading.close();
  5047. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  5048. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  5049. }
  5050. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5051. .chapterInfo[0].taskJson;
  5052. var b = [
  5053. "AVI",
  5054. "NAVI",
  5055. "MPEG",
  5056. "ASF",
  5057. "MOV",
  5058. "WMV",
  5059. "3GP",
  5060. "RM",
  5061. "RMVB",
  5062. "FLV",
  5063. "F4V",
  5064. "H.264",
  5065. "H.265",
  5066. "REAL VIDEO",
  5067. "MKV",
  5068. "WebM",
  5069. "HDDVD",
  5070. "MP4",
  5071. "MPG",
  5072. "M4V",
  5073. "MGV",
  5074. "OGV",
  5075. "QTM",
  5076. "STR",
  5077. "AMC",
  5078. "DVX",
  5079. "EVO",
  5080. "DAT",
  5081. "OGG",
  5082. "OGM",
  5083. "MP3",
  5084. ];
  5085. for (var i = 0; i < a.length; i++) {
  5086. var c = a[i].chapterData;
  5087. this.vedio[i] = [];
  5088. this.textList[i] = [];
  5089. this.lineList[i] = [];
  5090. this.chapToolList[i] = [];
  5091. this.file[i] = [];
  5092. this.fileC[i] = [];
  5093. for (var j = 0; j < c.length; j++) {
  5094. if (c[j].type == 7) {
  5095. this.chapToolList[i].push(c[j]);
  5096. } else if (c[j].type == 8) {
  5097. this.lineList[i].push(c[j]);
  5098. } else if (c[j].type == 6) {
  5099. this.textList[i].push(c[j]);
  5100. } else if (c[j].type == 12) {
  5101. this.fileC[i].push(c[j]);
  5102. } else {
  5103. if (
  5104. b.indexOf(
  5105. c[j].url
  5106. .split(".")
  5107. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5108. ) != -1
  5109. ) {
  5110. this.vedio[i].push(c[j]);
  5111. } else {
  5112. this.file[i].push(c[j]);
  5113. }
  5114. }
  5115. }
  5116. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5117. d.sources[0].src =
  5118. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5119. this.playerO[i] = d;
  5120. }
  5121. this.courseDetail = res.data[0][0];
  5122. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  5123. console.log(this.tcid);
  5124. this.evalua = res.data[0][0].evaId;
  5125. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5126. this.courseType
  5127. ];
  5128. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5129. if (this.tcid && res.data[1].length) {
  5130. let _inviteA = []
  5131. for (var ik = 0; ik < res.data[1].length; ik++) {
  5132. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  5133. }
  5134. for (var ik = 0; ik < _inviteA.length; ik++) {
  5135. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  5136. this.inviteCode = _inviteA[ik].ic
  5137. break;
  5138. }
  5139. }
  5140. }
  5141. for (var l = 0; l < this.chapInfoList.length; l++) {
  5142. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5143. for (var m = 0; m < w.length; m++) {
  5144. w[m].id = l + "-" + m;
  5145. }
  5146. }
  5147. if (
  5148. !this.vedio[this.taskCount][0] ||
  5149. this.vedio[this.taskCount][0].url == ""
  5150. ) {
  5151. if (
  5152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5153. this.taskCount
  5154. ].chapterData.length > 0
  5155. ) {
  5156. // if (
  5157. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5158. // this.taskCount
  5159. // ].chapterData[0].type != 8
  5160. // ) {
  5161. let _url =
  5162. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5163. this.taskCount
  5164. ].chapterData[0].url;
  5165. if (
  5166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5167. this.taskCount
  5168. ].chapterData[0].type == 8
  5169. ) {
  5170. this.showType = 2;
  5171. if (
  5172. _url.indexOf("https://") == -1 &&
  5173. _url.indexOf("http://") == -1
  5174. ) {
  5175. _url = "https://" + _url;
  5176. }
  5177. this.pptImgUrl1 = _url;
  5178. this.isClickNav = "line0";
  5179. } else if (
  5180. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5181. this.taskCount
  5182. ].chapterData[0].type == 3
  5183. ) {
  5184. if (
  5185. _url
  5186. .split(".")
  5187. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5188. ) {
  5189. this.showType = 3;
  5190. this.pptImgUrl1 = _url;
  5191. this.isClickNav = "word0";
  5192. } else if (
  5193. this.isAssetTypeAnImage(
  5194. _url
  5195. .split(".")
  5196. [_url.split(".").length - 1].toLocaleLowerCase()
  5197. )
  5198. ) {
  5199. this.showType = 4;
  5200. this.pptImgUrl1 = _url;
  5201. this.isClickNav = "word0";
  5202. } else {
  5203. this.showType = 2;
  5204. this.pptImgUrl1 =
  5205. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5206. encodeURIComponent(_url);
  5207. this.isClickNav = "word0";
  5208. }
  5209. } else if (
  5210. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5211. this.taskCount
  5212. ].chapterData[0].type == 6
  5213. ) {
  5214. this.showType = 1;
  5215. this.text = this.textList[this.taskCount][0];
  5216. this.isClickNav = "text0";
  5217. }
  5218. }
  5219. } else {
  5220. this.isClickNav = "video0";
  5221. }
  5222. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  5223. this.toolIndex = 0
  5224. // this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  5225. }
  5226. this.toolType = 0
  5227. } else {
  5228. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5229. .chapterInfo[0].taskJson;
  5230. var b = [
  5231. "AVI",
  5232. "NAVI",
  5233. "MPEG",
  5234. "ASF",
  5235. "MOV",
  5236. "WMV",
  5237. "3GP",
  5238. "RM",
  5239. "RMVB",
  5240. "FLV",
  5241. "F4V",
  5242. "H.264",
  5243. "H.265",
  5244. "REAL VIDEO",
  5245. "MKV",
  5246. "WebM",
  5247. "HDDVD",
  5248. "MP4",
  5249. "MPG",
  5250. "M4V",
  5251. "MGV",
  5252. "OGV",
  5253. "QTM",
  5254. "STR",
  5255. "AMC",
  5256. "DVX",
  5257. "EVO",
  5258. "DAT",
  5259. "OGG",
  5260. "OGM",
  5261. "MP3",
  5262. ];
  5263. for (var i = 0; i < a.length; i++) {
  5264. var c = a[i].chapterData;
  5265. this.vedio[i] = [];
  5266. this.textList[i] = [];
  5267. this.lineList[i] = [];
  5268. this.chapToolList[i] = [];
  5269. this.file[i] = [];
  5270. this.fileC[i] = [];
  5271. for (var j = 0; j < c.length; j++) {
  5272. if (c[j].type == 7) {
  5273. this.chapToolList[i].push(c[j]);
  5274. } else if (c[j].type == 8) {
  5275. this.lineList[i].push(c[j]);
  5276. } else if (c[j].type == 6) {
  5277. this.textList[i].push(c[j]);
  5278. } else if (c[j].type == 12) {
  5279. this.fileC[i].push(c[j]);
  5280. } else {
  5281. if (
  5282. b.indexOf(
  5283. c[j].url
  5284. .split(".")
  5285. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5286. ) != -1
  5287. ) {
  5288. this.vedio[i].push(c[j]);
  5289. } else {
  5290. this.file[i].push(c[j]);
  5291. }
  5292. }
  5293. }
  5294. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5295. d.sources[0].src =
  5296. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5297. this.playerO[i] = d;
  5298. }
  5299. if (
  5300. !this.vedio[this.taskCount][0] ||
  5301. this.vedio[this.taskCount][0].url == ""
  5302. ) {
  5303. if (
  5304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5305. this.taskCount
  5306. ].chapterData.length > 0
  5307. ) {
  5308. // if (
  5309. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5310. // this.taskCount
  5311. // ].chapterData[0].type != 8
  5312. // ) {
  5313. let _url =
  5314. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5315. this.taskCount
  5316. ].chapterData[0].url;
  5317. if (
  5318. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5319. this.taskCount
  5320. ].chapterData[0].type == 8
  5321. ) {
  5322. this.showType = 2;
  5323. if (
  5324. _url.indexOf("https://") == -1 &&
  5325. _url.indexOf("http://") == -1
  5326. ) {
  5327. _url = "https://" + _url;
  5328. }
  5329. this.pptImgUrl1 = _url;
  5330. this.isClickNav = "line0";
  5331. } else if (
  5332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5333. this.taskCount
  5334. ].chapterData[0].type == 3
  5335. ) {
  5336. if (
  5337. _url
  5338. .split(".")
  5339. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5340. ) {
  5341. this.showType = 3;
  5342. this.pptImgUrl1 = _url;
  5343. this.isClickNav = "word0";
  5344. } else if (
  5345. this.isAssetTypeAnImage(
  5346. _url
  5347. .split(".")
  5348. [_url.split(".").length - 1].toLocaleLowerCase()
  5349. )
  5350. ) {
  5351. this.showType = 4;
  5352. this.pptImgUrl1 = _url;
  5353. this.isClickNav = "word0";
  5354. } else {
  5355. this.showType = 2;
  5356. this.pptImgUrl1 =
  5357. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5358. encodeURIComponent(_url);
  5359. this.isClickNav = "word0";
  5360. }
  5361. } else if (
  5362. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5363. this.taskCount
  5364. ].chapterData[0].type == 6
  5365. ) {
  5366. this.showType = 1;
  5367. this.text = this.textList[this.taskCount][0];
  5368. this.isClickNav = "text0";
  5369. }
  5370. }
  5371. } else {
  5372. this.isClickNav = "video0";
  5373. }
  5374. this.toolType = 0
  5375. this.$forceUpdate();
  5376. }
  5377. this.$nextTick(() => {
  5378. setTimeout(() => {
  5379. this.checkEva();
  5380. }, 1000);
  5381. });
  5382. let _this = this;
  5383. if (_this.timer) {
  5384. clearInterval(_this.timer);
  5385. _this.timer = null;
  5386. }
  5387. _this.selectSWorks(gindex);
  5388. _this.selectStudent();
  5389. _this.selectSLook();
  5390. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  5391. _this.setCTask();
  5392. }
  5393. if (_this.dialogVisibleGroup) {
  5394. _this.groupJson =
  5395. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  5396. _this.taskCount
  5397. ].toolChoose[_this.toolindex].groupJson;
  5398. }
  5399. _this.timer = setInterval(function () {
  5400. _this.selectSWorks(gindex);
  5401. if (_this.tType == 4 || _this.ispzType == 4) {
  5402. _this.selectPz();
  5403. }
  5404. }, 5000);
  5405. })
  5406. .catch((err) => {
  5407. loading.close();
  5408. console.error(err);
  5409. });
  5410. },
  5411. getCourseGroup(gindex) {
  5412. let params = {
  5413. cid: this.id,
  5414. classid: this.tcid ? this.tcid : '1',
  5415. };
  5416. this.ajax
  5417. .get(this.$store.state.api + "getCourseGroup", params)
  5418. .then((res) => {
  5419. if (res.data && res.data[0].length) {
  5420. if (!this.isGroup) {
  5421. let courseGroup = JSON.parse(res.data[0][0].group)
  5422. courseGroup.group = courseGroup.group.filter(el => {
  5423. el.works = []
  5424. return el
  5425. });
  5426. this.courseGroup = courseGroup
  5427. let groupPerson = res.data[1]
  5428. let group = JSON.parse(res.data[0][0].group).group
  5429. let courseGroupStudent = {}
  5430. let courseGroupStudentUid = {}
  5431. for (var i = 0; i < group.length; i++) {
  5432. courseGroupStudent[group[i].id] = []
  5433. courseGroupStudentUid[group[i].id] = []
  5434. for (var j = 0; j < groupPerson.length; j++) {
  5435. if (groupPerson[j].groupCid == group[i].id) {
  5436. courseGroupStudent[group[i].id].push(groupPerson[j])
  5437. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  5438. }
  5439. }
  5440. }
  5441. this.courseGroupStudent = courseGroupStudent
  5442. this.courseGroupStudentUid = courseGroupStudentUid
  5443. }
  5444. this.isGroup = true
  5445. this.selectSWorks(gindex);
  5446. } else {
  5447. this.selectSWorks(gindex);
  5448. this.isGroup = false
  5449. }
  5450. })
  5451. .catch((err) => {
  5452. // this.$message.error("网络不佳");
  5453. console.error(err);
  5454. });
  5455. },
  5456. setOperationTime() {
  5457. let _this = this
  5458. if (_this.opertimer) {
  5459. clearInterval(_this.opertimer);
  5460. _this.opertimer = null;
  5461. }
  5462. _this.opertimer = setInterval(() => {
  5463. _this.setoTime('600')
  5464. }, 600000);
  5465. },
  5466. setoTime(time) {
  5467. let params = [
  5468. {
  5469. uid: this.userid,
  5470. cid: this.id,
  5471. type: '2',
  5472. time: time,
  5473. },
  5474. ];
  5475. this.ajax
  5476. .post(this.$store.state.api + "addOperationTimeT2", params)
  5477. .then((res) => {
  5478. })
  5479. .catch((err) => {
  5480. console.error(err);
  5481. });
  5482. },
  5483. addPz(type, content) {
  5484. if (type == "1" && this.pzConText == "") {
  5485. this.$message.error("批注不能为空!");
  5486. return;
  5487. }
  5488. let params = [
  5489. {
  5490. cid: this.id,
  5491. uid: this.userid,
  5492. s: this.courseType,
  5493. t: this.taskCount,
  5494. c: type == "1" ? this.pzConText : content,
  5495. type: type,
  5496. },
  5497. ];
  5498. this.ajax
  5499. .post(this.$store.state.api + "addPz2", params)
  5500. .then((res) => {
  5501. this.$message({
  5502. message: "添加成功",
  5503. type: "success",
  5504. });
  5505. this.pzConText = "";
  5506. this.addPzDialog = false;
  5507. this.selectPz();
  5508. })
  5509. .catch((err) => {
  5510. this.$message.error("添加失败");
  5511. console.error(err);
  5512. });
  5513. },
  5514. deletePz(id) {
  5515. this.$confirm("确定删除此批注吗?", "提示", {
  5516. confirmButtonText: "确定",
  5517. cancelButtonText: "取消",
  5518. type: "warning",
  5519. })
  5520. .then(() => {
  5521. let params = [
  5522. {
  5523. id: id,
  5524. },
  5525. ];
  5526. this.ajax
  5527. .post(this.$store.state.api + "deletePz", params)
  5528. .then((res) => {
  5529. this.$message({
  5530. message: "删除成功",
  5531. type: "success",
  5532. });
  5533. this.selectPz();
  5534. })
  5535. .catch((err) => {
  5536. this.$message.error("网络异常");
  5537. console.error(err);
  5538. });
  5539. })
  5540. .catch(() => { });
  5541. },
  5542. selectPz() {
  5543. let params = {
  5544. cid: this.id,
  5545. s: this.courseType,
  5546. t: this.taskCount,
  5547. };
  5548. this.ajax
  5549. .get(this.$store.state.api + "selectPzList", params)
  5550. .then((res) => {
  5551. this.pzList = res.data[0];
  5552. })
  5553. .catch((err) => {
  5554. console.error(err);
  5555. });
  5556. },
  5557. updateSLook() {
  5558. let params = {
  5559. sopen: this.sIsOpen == false ? 1 : 2,
  5560. cid: this.id,
  5561. };
  5562. this.ajax
  5563. .get(this.$store.state.api + "updateCourseSLook", params)
  5564. .then((res) => {
  5565. if (this.sIsOpen == true) {
  5566. this.$message({
  5567. message: "权限设置成功",
  5568. type: "success",
  5569. });
  5570. } else {
  5571. this.$message({
  5572. message: "权限关闭成功",
  5573. type: "success",
  5574. });
  5575. }
  5576. })
  5577. .catch((err) => {
  5578. console.error(err);
  5579. });
  5580. },
  5581. updateFollow() {
  5582. let params = [
  5583. {
  5584. sopen: this.IsFollow == false ? 1 : 2,
  5585. cid: this.id,
  5586. },
  5587. ];
  5588. this.ajax
  5589. .post(this.$store.state.api + "updateCourseFollow", params)
  5590. .then((res) => {
  5591. if (this.IsFollow == true) {
  5592. this.$message({
  5593. message: "开启成功",
  5594. type: "success",
  5595. });
  5596. } else {
  5597. this.$message({
  5598. message: "关闭成功",
  5599. type: "success",
  5600. });
  5601. }
  5602. this.setCTask();
  5603. })
  5604. .catch((err) => {
  5605. console.error(err);
  5606. });
  5607. },
  5608. setCTask() {
  5609. let params = [
  5610. {
  5611. sopen: this.courseType + '-' + this.taskCount,
  5612. cid: this.id,
  5613. },
  5614. ];
  5615. this.ajax
  5616. .post(this.$store.state.api + "updateCourseFollowC", params)
  5617. .then((res) => {
  5618. })
  5619. .catch((err) => {
  5620. console.error(err);
  5621. });
  5622. },
  5623. updateLookOpen() {
  5624. let params = [
  5625. {
  5626. sopen: this.IsLookOpen == false ? 1 : 2,
  5627. cid: this.id,
  5628. },
  5629. ];
  5630. this.ajax
  5631. .post(this.$store.state.api + "updateCourseLookOpen", params)
  5632. .then((res) => {
  5633. if (this.IsLookOpen == true) {
  5634. // if (this.courseType != 0 && this.taskCount != 0) {
  5635. // this.openTask(0, 0, "0-0");
  5636. // }
  5637. this.$message({
  5638. message: "权限设置成功",
  5639. type: "success",
  5640. });
  5641. } else {
  5642. this.$message({
  5643. message: "权限关闭成功",
  5644. type: "success",
  5645. });
  5646. }
  5647. this.getCourseState(2);
  5648. })
  5649. .catch((err) => {
  5650. console.error(err);
  5651. });
  5652. },
  5653. selectSLook() {
  5654. let params = {
  5655. cid: this.id,
  5656. };
  5657. this.ajax
  5658. .get(this.$store.state.api + "selectCourseSLook", params)
  5659. .then((res) => {
  5660. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  5661. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  5662. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  5663. if (!this.IsLookOpen) {
  5664. this.setNavList();
  5665. } else {
  5666. this.getCourseState(1);
  5667. }
  5668. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  5669. let _followC = res.data[0][0].followC.split('-')
  5670. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  5671. this.navList[this.courseType].isOpen = false;
  5672. this.courseType = _followC[0]
  5673. this.navList[this.courseType].isOpen = true;
  5674. this.taskCount = parseInt(_followC[1])
  5675. this.navId = res.data[0][0].followC;
  5676. this.getCourseDetail()
  5677. }
  5678. }
  5679. })
  5680. .catch((err) => {
  5681. console.error(err);
  5682. });
  5683. },
  5684. setNavList() {
  5685. if (this.navList.length == 0) {
  5686. this.navList = [];
  5687. for (var l = 0; l < this.chapInfoList.length; l++) {
  5688. var q = this.chapInfoList[l].dyName;
  5689. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5690. var e;
  5691. this.navList.push({
  5692. dyName: q,
  5693. isOpen: l === 0 ? true : false,
  5694. task: [],
  5695. });
  5696. for (var r = 0; r < w.length; r++) {
  5697. e = w[r].task;
  5698. if (this.chapInfoList[l].easy == 1) {
  5699. this.navList[l].task.push({
  5700. taskName: q,
  5701. id: l + "-" + r,
  5702. isLook: w[r].isLook,
  5703. });
  5704. } else {
  5705. this.navList[l].task.push({
  5706. taskName: e,
  5707. id: l + "-" + r,
  5708. isLook: w[r].isLook,
  5709. });
  5710. }
  5711. // this.navId = this.navId ? this.navId : l + "-" + r;
  5712. // this.navId = l + "-" + r;
  5713. }
  5714. }
  5715. this.navList[0].isOpen = false;
  5716. this.navList[this.courseType].isOpen = true;
  5717. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5718. } else {
  5719. this.setNavList2();
  5720. }
  5721. },
  5722. setNavList2() {
  5723. for (var l = 0; l < this.chapInfoList.length; l++) {
  5724. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5725. for (var r = 0; r < w.length; r++) {
  5726. this.navList[l].task[r].isLook = w[r].isLook;
  5727. }
  5728. }
  5729. if (
  5730. this.IsLookOpen &&
  5731. !this.navList[this.courseType].task[this.taskCount].isLook
  5732. ) {
  5733. this.openTask(0, 0, "0-0");
  5734. }
  5735. this.$forceUpdate();
  5736. },
  5737. getCourseState(type) {
  5738. let params = {
  5739. cid: this.id,
  5740. };
  5741. this.ajax
  5742. .get(this.$store.state.api + "getCourseState", params)
  5743. .then((res) => {
  5744. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  5745. this.chapInfoList = JSON.parse(res.data[0][0].state);
  5746. this.setNavList();
  5747. this.$forceUpdate();
  5748. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  5749. this.addCourseState(2);
  5750. } else {
  5751. this.addCourseState(1);
  5752. }
  5753. })
  5754. .catch((err) => {
  5755. console.error(err);
  5756. });
  5757. },
  5758. addCourseState(type) {
  5759. let _state = this.chapInfoList;
  5760. // this.courseType this.taskCount
  5761. if (type == 1 || type == 2) {
  5762. for (var i = 0; i < _state.length; i++) {
  5763. let el = _state[i].chapterInfo[0].taskJson;
  5764. for (var j = 0; j < el.length; j++) {
  5765. // if (i == 0 && j == 0) {
  5766. // el[j].isLook = true;
  5767. // } else {
  5768. // el[j].isLook = false;
  5769. // }
  5770. if (
  5771. this.courseType > i ||
  5772. (this.courseType == i && this.taskCount + 1 > j)
  5773. ) {
  5774. el[j].isLook = true;
  5775. } else {
  5776. el[j].isLook = false;
  5777. }
  5778. }
  5779. }
  5780. }
  5781. let params = [
  5782. {
  5783. cid: this.id,
  5784. state: JSON.stringify(_state),
  5785. },
  5786. ];
  5787. this.ajax
  5788. .post(
  5789. this.$store.state.api +
  5790. (type == 1 ? "addCourseState" : "updateCourseSate"),
  5791. params
  5792. )
  5793. .then((res) => {
  5794. if (this.IsLookOpen) {
  5795. this.setNavList();
  5796. }
  5797. if (type == 3 && type == 2) {
  5798. this.getCourseState(1);
  5799. }
  5800. })
  5801. .catch((err) => {
  5802. console.error(err);
  5803. });
  5804. },
  5805. getHomeWork() {
  5806. let params = {
  5807. cid: this.id,
  5808. stage: this.courseType,
  5809. task: this.taskCount,
  5810. uid: this.userid,
  5811. };
  5812. this.ajax
  5813. .get(this.$store.state.api + "selectWork", params)
  5814. .then((res) => {
  5815. if (res.data[0].length > 0) {
  5816. this.studyJuri = JSON.parse(res.data[0][0].content);
  5817. this.isNoHomeWork = true;
  5818. }
  5819. })
  5820. .catch((err) => {
  5821. console.error(err);
  5822. });
  5823. },
  5824. isAssetTypeAnImage(ext) {
  5825. return (
  5826. [
  5827. "png",
  5828. "jpg",
  5829. "jpeg",
  5830. "bmp",
  5831. "gif",
  5832. "webp",
  5833. "psd",
  5834. "svg",
  5835. "tiff",
  5836. ].indexOf(ext) !== -1
  5837. );
  5838. },
  5839. switchVideo(media) {
  5840. this.playerO = {};
  5841. this.playerOptions.poster = "";
  5842. this.playerOptions.sources[0].src = media;
  5843. this.playerO = this.playerOptions;
  5844. },
  5845. onPlayerPlay() { },
  5846. lookVedio(u, i) {
  5847. this.isClickNav = "";
  5848. // this.playerOptions.sources[0].src = u;
  5849. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5850. d.sources[0].src = u;
  5851. this.playerO[this.taskCount] = d;
  5852. this.showType = 0;
  5853. this.isClickNav = "video" + i;
  5854. this.$forceUpdate();
  5855. },
  5856. lookText(i, t) {
  5857. this.isClickNav = "";
  5858. this.text = this.textList[i][t];
  5859. // this.dialogVisible1 = true;
  5860. this.showType = 1;
  5861. this.isClickNav = "text" + t;
  5862. },
  5863. lookTools(i, t) {
  5864. this.chapTools = this.chapToolList[i][t];
  5865. this.dialogVisible2 = true;
  5866. },
  5867. openFile(f) {
  5868. this.pptImgUrl = "";
  5869. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5870. if (
  5871. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  5872. -1
  5873. ) {
  5874. this.pptImgUrl =
  5875. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  5876. this.showPDF = false;
  5877. this.dialogVisible3 = true;
  5878. } else if (
  5879. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5880. ) {
  5881. this.pptImgUrl = f;
  5882. this.showPDF = true;
  5883. this.dialogVisible3 = true;
  5884. }
  5885. },
  5886. openTable(f) {
  5887. this.tableJson = JSON.parse(f.works);
  5888. this.$forceUpdate();
  5889. this.dialogVisibleTable2 = true;
  5890. },
  5891. openWord(f) {
  5892. this.tableJson = JSON.parse(f.works);
  5893. this.$forceUpdate();
  5894. this.dialogVisibleTable3 = true;
  5895. },
  5896. doUrl(url, i) {
  5897. this.isClickNav = "";
  5898. this.pptImgUrl1 = "";
  5899. this.showType = 2;
  5900. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  5901. url = "https://" + url;
  5902. }
  5903. this.pptImgUrl1 = url;
  5904. this.isClickNav = "line" + i;
  5905. },
  5906. downFile(f, i) {
  5907. this.isClickNav = "";
  5908. this.pptImgUrl1 = "";
  5909. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  5910. if (
  5911. a.indexOf(
  5912. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  5913. ) != -1
  5914. ) {
  5915. this.pptImgUrl1 =
  5916. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  5917. // this.dialogVisible3 = true;
  5918. this.showType = 2;
  5919. } else if (
  5920. this.isAssetTypeAnImage(
  5921. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  5922. )
  5923. ) {
  5924. this.showType = 4;
  5925. this.pptImgUrl1 = f.url;
  5926. } else if (
  5927. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  5928. "PDF"
  5929. ) {
  5930. this.pptImgUrl1 = f.url;
  5931. // this.dialogVisible3 = true;
  5932. this.showType = 3;
  5933. } else {
  5934. window.open(this.file[i].url);
  5935. }
  5936. this.isClickNav = "word" + i;
  5937. },
  5938. downFileList(i) {
  5939. window.open(this.noImgList[i].url);
  5940. },
  5941. openAddWork() {
  5942. this.dialogVisible = true;
  5943. },
  5944. addBzWorks() {
  5945. let params = [
  5946. {
  5947. uid: this.userid,
  5948. cid: this.id,
  5949. stage: this.courseType,
  5950. task: this.taskCount,
  5951. tool: this.toolindex,
  5952. content: JSON.stringify(this.eScore),
  5953. type: 6,
  5954. },
  5955. ];
  5956. this.ajax
  5957. .post(this.$store.state.api + "addCourseWorks", params)
  5958. .then((res) => {
  5959. this.$message({
  5960. message: "提交成功",
  5961. type: "success",
  5962. });
  5963. this.eScore = { eBzText: "", eStar: [] };
  5964. this.studentEvalDialogVisible = false;
  5965. this.selectSWorks();
  5966. })
  5967. .catch((err) => {
  5968. this.$message.error("提交失败");
  5969. console.error(err);
  5970. });
  5971. },
  5972. addBzWorksTeacher() {
  5973. let params = [
  5974. {
  5975. uid: this.sStudent.userid,
  5976. cid: this.id,
  5977. stage: this.courseType,
  5978. task: this.taskCount,
  5979. tool: this.toolindex,
  5980. content: JSON.stringify(this.eScore),
  5981. type: 6,
  5982. },
  5983. ];
  5984. this.ajax
  5985. .post(this.$store.state.api + "addCourseWorks", params)
  5986. .then((res) => {
  5987. this.$message({
  5988. message: "提交成功",
  5989. type: "success",
  5990. });
  5991. this.eScore = { eBzText: "", eStar: [] };
  5992. this.studentEvalDialogVisibleTeacher = false;
  5993. this.selectSWorks();
  5994. })
  5995. .catch((err) => {
  5996. this.$message.error("提交失败");
  5997. console.error(err);
  5998. });
  5999. },
  6000. addStudentAsk() {
  6001. if (!this.radio.length) {
  6002. this.$message.error("请选择选项");
  6003. return;
  6004. }
  6005. for (var i = 0; i < this.askJson.askCount; i++) {
  6006. if (
  6007. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6008. (this.radio[i] !== 0 && !this.radio[i])
  6009. ) {
  6010. this.$message.error("请选择选项");
  6011. return;
  6012. }
  6013. }
  6014. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6015. let params = [
  6016. {
  6017. uid: this.userid,
  6018. cid: this.id,
  6019. stage: this.courseType,
  6020. task: this.taskCount,
  6021. tool: this.toolindex,
  6022. content: JSON.stringify(this.askList),
  6023. type: 2,
  6024. },
  6025. ];
  6026. this.ajax
  6027. .post(this.$store.state.api + "addCourseWorks", params)
  6028. .then((res) => {
  6029. this.$message({
  6030. message: "提交成功",
  6031. type: "success",
  6032. });
  6033. this.askList = [];
  6034. this.dialogVisible5 = false;
  6035. this.selectStudent();
  6036. this.selectSWorks();
  6037. this.selectSLook();
  6038. })
  6039. .catch((err) => {
  6040. this.$message.error("提交失败");
  6041. console.error(err);
  6042. });
  6043. },
  6044. addStudentAskTeacher() {
  6045. if (!this.radio.length) {
  6046. this.$message.error("请选择选项");
  6047. return;
  6048. }
  6049. for (var i = 0; i < this.askJson.askCount; i++) {
  6050. if (
  6051. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6052. (this.radio[i] !== 0 && !this.radio[i])
  6053. ) {
  6054. this.$message.error("请选择选项");
  6055. return;
  6056. }
  6057. }
  6058. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6059. let params = [
  6060. {
  6061. uid: this.sStudent.userid,
  6062. cid: this.id,
  6063. stage: this.courseType,
  6064. task: this.taskCount,
  6065. tool: this.toolindex,
  6066. content: JSON.stringify(this.askList),
  6067. type: 2,
  6068. },
  6069. ];
  6070. this.ajax
  6071. .post(this.$store.state.api + "addCourseWorks", params)
  6072. .then((res) => {
  6073. this.$message({
  6074. message: "提交成功",
  6075. type: "success",
  6076. });
  6077. this.askList = [];
  6078. this.dialogVisible5Teacher = false;
  6079. this.selectStudent();
  6080. this.selectSWorks();
  6081. this.selectSLook();
  6082. })
  6083. .catch((err) => {
  6084. this.$message.error("提交失败");
  6085. console.error(err);
  6086. });
  6087. },
  6088. addStudentTest() {
  6089. if (!this.radio.length) {
  6090. this.$message.error("请选择选项");
  6091. return;
  6092. }
  6093. for (var i = 0; i < this.testJson.testCount; i++) {
  6094. if (
  6095. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6096. (this.radio[i] !== 0 && !this.radio[i])
  6097. ) {
  6098. this.$message.error("请选择选项");
  6099. return;
  6100. }
  6101. }
  6102. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6103. let params = [
  6104. {
  6105. uid: this.userid,
  6106. cid: this.id,
  6107. stage: this.courseType,
  6108. task: this.taskCount,
  6109. tool: this.toolindex,
  6110. content: JSON.stringify(this.askList),
  6111. type: 8,
  6112. },
  6113. ];
  6114. this.ajax
  6115. .post(this.$store.state.api + "addCourseWorks", params)
  6116. .then((res) => {
  6117. this.$message({
  6118. message: "提交成功",
  6119. type: "success",
  6120. });
  6121. this.askList = [];
  6122. this.dialogVisibleChoice = false;
  6123. this.selectStudent();
  6124. this.selectSWorks();
  6125. this.selectSLook();
  6126. })
  6127. .catch((err) => {
  6128. this.$message.error("提交失败");
  6129. console.error(err);
  6130. });
  6131. },
  6132. addStudentTestTeacher() {
  6133. if (!this.radio.length) {
  6134. this.$message.error("请选择选项");
  6135. return;
  6136. }
  6137. for (var i = 0; i < this.testJson.testCount; i++) {
  6138. if (
  6139. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6140. (this.radio[i] !== 0 && !this.radio[i])
  6141. ) {
  6142. this.$message.error("请选择选项");
  6143. return;
  6144. }
  6145. }
  6146. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6147. let params = [
  6148. {
  6149. uid: this.sStudent.userid,
  6150. cid: this.id,
  6151. stage: this.courseType,
  6152. task: this.taskCount,
  6153. tool: this.toolindex,
  6154. content: JSON.stringify(this.askList),
  6155. type: 8,
  6156. },
  6157. ];
  6158. this.ajax
  6159. .post(this.$store.state.api + "addCourseWorks", params)
  6160. .then((res) => {
  6161. this.$message({
  6162. message: "提交成功",
  6163. type: "success",
  6164. });
  6165. this.askList = [];
  6166. this.dialogVisibleChoiceTeacher = false;
  6167. this.selectStudent();
  6168. this.selectSWorks();
  6169. this.selectSLook();
  6170. })
  6171. .catch((err) => {
  6172. this.$message.error("提交失败");
  6173. console.error(err);
  6174. });
  6175. },
  6176. addWork() {
  6177. if (this.studyJuri[0].content == "") {
  6178. this.$message.error("请将信息填写完整");
  6179. return;
  6180. } else if (this.studyJuri[0].cover.length == 0) {
  6181. this.$message.error("请将信息填写完整");
  6182. return;
  6183. } else if (this.studyJuri[0].upVedio.length == 0) {
  6184. this.$message.error("请将信息填写完整");
  6185. return;
  6186. }
  6187. if (this.isNoHomeWork) {
  6188. this.$confirm(
  6189. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  6190. "提示",
  6191. {
  6192. confirmButtonText: "确定",
  6193. cancelButtonText: "取消",
  6194. type: "warning",
  6195. }
  6196. )
  6197. .then(() => {
  6198. let params = [
  6199. {
  6200. uid: this.userid,
  6201. cid: this.id,
  6202. stage: this.courseType,
  6203. task: this.taskCount,
  6204. content: JSON.stringify(this.studyJuri),
  6205. },
  6206. ];
  6207. this.ajax
  6208. .post(this.$store.state.api + "addWorks", params)
  6209. .then((res) => {
  6210. this.$message({
  6211. message: "提交成功",
  6212. type: "success",
  6213. });
  6214. this.isNoHomeWork = true;
  6215. this.dialogVisible = false;
  6216. })
  6217. .catch((err) => {
  6218. this.$message.error("提交失败");
  6219. console.error(err);
  6220. });
  6221. })
  6222. .catch(() => { });
  6223. } else {
  6224. let params = [
  6225. {
  6226. uid: this.userid,
  6227. cid: this.id,
  6228. stage: this.courseType,
  6229. task: this.taskCount,
  6230. content: JSON.stringify(this.studyJuri),
  6231. },
  6232. ];
  6233. this.ajax
  6234. .post(this.$store.state.api + "addWorks", params)
  6235. .then((res) => {
  6236. this.$message({
  6237. message: "提交成功",
  6238. type: "success",
  6239. });
  6240. this.isNoHomeWork = true;
  6241. this.dialogVisible = false;
  6242. })
  6243. .catch((err) => {
  6244. this.$message.error("提交失败");
  6245. console.error(err);
  6246. });
  6247. }
  6248. },
  6249. selectCount() {
  6250. let params = {
  6251. cid: this.id,
  6252. chid: this.courseType,
  6253. uid: this.userid,
  6254. };
  6255. this.ajax
  6256. .get(this.$store.state.api + "selectToolsCount", params)
  6257. .then((res) => {
  6258. for (var i = 0; i < res.data[0].length; i++) {
  6259. if (res.data[0][i].tools == 1) {
  6260. this.wbCount = res.data[0][i].count;
  6261. } else if (res.data[0][i].tools == 2) {
  6262. this.wordCount = res.data[0][i].count;
  6263. } else if (res.data[0][i].tools == 3) {
  6264. this.mindCount = res.data[0][i].count;
  6265. } else if (res.data[0][i].tools == 4) {
  6266. this.askCount = res.data[0][i].count;
  6267. } else if (res.data[0][i].tools == 6) {
  6268. this.noteCount = res.data[0][i].count;
  6269. } else if (res.data[0][i].tools == 7) {
  6270. this.mindNetWorkCount = res.data[0][i].count;
  6271. } else if (res.data[0][i].tools == 8) {
  6272. this.libraryCount = res.data[0][i].count;
  6273. } else if (res.data[0][i].tools == 16) {
  6274. this.workCount = res.data[0][i].count;
  6275. } else if (res.data[0][i].tools == 10) {
  6276. this.timeCount = res.data[0][i].count;
  6277. } else if (res.data[0][i].tools == 15) {
  6278. this.answerCount = res.data[0][i].count;
  6279. } else if (res.data[0][i].tools == 18) {
  6280. this.trainCount = res.data[0][i].count;
  6281. }
  6282. }
  6283. })
  6284. .catch((err) => {
  6285. console.error(err);
  6286. });
  6287. },
  6288. openTools(t, i, index, c, sName) {
  6289. var z = JSON.parse(c);
  6290. this.noteName = sName;
  6291. if (t == 4) {
  6292. this.radio = [];
  6293. this.isAnswer = false;
  6294. let b = z[0].anwer;
  6295. this.radio = b;
  6296. this.askJson = z[0].askJson;
  6297. this.isAnswer = true;
  6298. this.dialogVisible5 = true;
  6299. } else if (t == 45) {
  6300. this.radio = [];
  6301. this.isAnswer = false;
  6302. let b = z[0].anwer;
  6303. this.radio = b;
  6304. this.testJson = z[0].testJson;
  6305. this.isAnswer = true;
  6306. this.dialogVisibleChoice = true;
  6307. }
  6308. // else if (t == 15) {
  6309. // this.answerQ = "";
  6310. // this.questionAnswer = "";
  6311. // this.answerQ = z[0].answerTitle;
  6312. // this.questionAnswer = z[0].answer;
  6313. // this.answerDialogVisible = true;
  6314. // }
  6315. },
  6316. fastText(p, t) {
  6317. if (t == 1) {
  6318. this.commentText += p;
  6319. } else {
  6320. this.eScore.eBzText += p;
  6321. }
  6322. },
  6323. addTools(t, i, index) {
  6324. var a = 0;
  6325. // this.taskCount = index;
  6326. this.toolindex = i;
  6327. if (t == 1) {
  6328. if (this.wbCount > 0) {
  6329. this.updateCount(this.wbCount, t);
  6330. } else {
  6331. this.wbCount++;
  6332. a = this.wbCount;
  6333. this.toolsCount(a, t);
  6334. }
  6335. window.topU.postMessage(
  6336. {
  6337. tools: "1E",
  6338. cid: this.id,
  6339. stage: this.courseType,
  6340. task: this.taskCount,
  6341. tool: i,
  6342. },
  6343. "*"
  6344. );
  6345. } else if (t == 2) {
  6346. if (this.wordCount > 0) {
  6347. this.updateCount(this.wordCount, t);
  6348. } else {
  6349. this.wordCount++;
  6350. a = this.wordCount;
  6351. this.toolsCount(a, t);
  6352. }
  6353. window.topU.postMessage({ tools: "2" }, "*");
  6354. } else if (t == 3) {
  6355. if (this.mindCount > 0) {
  6356. this.updateCount(this.mindCount, t);
  6357. } else {
  6358. this.mindCount++;
  6359. a = this.mindCount;
  6360. this.toolsCount(a, t);
  6361. }
  6362. window.topU.postMessage(
  6363. {
  6364. tools: "3E",
  6365. cid: this.id,
  6366. stage: this.courseType,
  6367. task: this.taskCount,
  6368. tool: i,
  6369. },
  6370. "*"
  6371. );
  6372. } else if (t == 4) {
  6373. this.radio = [];
  6374. this.noteName = "";
  6375. this.isAnswer = false;
  6376. if (this.askCount > 0) {
  6377. this.updateCount(this.askCount, t);
  6378. } else {
  6379. this.askCount++;
  6380. a = this.askCount;
  6381. this.toolsCount(a, t);
  6382. }
  6383. this.askJson.askJson =
  6384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6385. index
  6386. ].toolChoose[i].askJson;
  6387. this.askJson.askTitle =
  6388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6389. index
  6390. ].toolChoose[i].askTitle;
  6391. this.askJson.askCount =
  6392. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6393. index
  6394. ].toolChoose[i].askCount;
  6395. for (var k = 0; k < this.askJson.askJson.length; k++) {
  6396. if (this.askJson.askJson[k].type == "2") {
  6397. this.radio.push([]);
  6398. } else {
  6399. this.radio.push("");
  6400. }
  6401. }
  6402. this.dialogVisible5 = true;
  6403. // window.topU.postMessage({ tools: "4" }, "*");
  6404. } else if (t == 45) {
  6405. this.noteName = "";
  6406. this.radio = [];
  6407. this.isAnswer = false;
  6408. if (this.askCount > 0) {
  6409. this.updateCount(this.askCount, t);
  6410. } else {
  6411. this.askCount++;
  6412. a = this.askCount;
  6413. this.toolsCount(a, t);
  6414. }
  6415. this.testJson =
  6416. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6417. index
  6418. ].toolChoose[i].testJson;
  6419. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6420. if (this.testJson.testJson[k].type == "2") {
  6421. this.radio.push([]);
  6422. } else {
  6423. this.radio.push("");
  6424. }
  6425. }
  6426. this.dialogVisibleChoice = true;
  6427. // window.topU.postMessage({ tools: "4" }, "*");
  6428. } else if (t == 5) {
  6429. if (this.scoreCount > 0) {
  6430. this.updateCount(this.scoreCount, t);
  6431. } else {
  6432. this.scoreCount++;
  6433. a = this.scoreCount;
  6434. this.toolsCount(a, t);
  6435. }
  6436. this.dialogVisible4 = true;
  6437. // window.topU.postMessage({ tools: "5" }, "*");
  6438. } else if (t == 6) {
  6439. if (this.noteCount > 0) {
  6440. this.updateCount(this.noteCount, t);
  6441. } else {
  6442. this.noteCount++;
  6443. a = this.noteCount;
  6444. this.toolsCount(a, t);
  6445. }
  6446. window.topU.postMessage(
  6447. {
  6448. tools: "6",
  6449. cid: this.id,
  6450. stage: this.courseType,
  6451. task: this.taskCount,
  6452. tool: i,
  6453. },
  6454. "*"
  6455. );
  6456. } else if (t == 7) {
  6457. if (this.mindNetWorkCount > 0) {
  6458. this.updateCount(this.mindNetWorkCount, t);
  6459. } else {
  6460. this.mindNetWorkCount++;
  6461. a = this.mindNetWorkCount;
  6462. this.toolsCount(a, t);
  6463. }
  6464. window.topU.postMessage(
  6465. {
  6466. tools: "7",
  6467. cid: this.id,
  6468. stage: this.courseType,
  6469. task: this.taskCount,
  6470. tool: i,
  6471. },
  6472. "*"
  6473. );
  6474. } else if (t == 16) {
  6475. if (this.workCount > 0) {
  6476. this.updateCount(this.workCount, t);
  6477. } else {
  6478. this.workCount++;
  6479. a = this.workCount;
  6480. this.toolsCount(a, t);
  6481. }
  6482. this.dialogVisible = true;
  6483. } else if (t == 50) {
  6484. if (this.tType == 2) {
  6485. this.$message.error("不支持学生使用");
  6486. return;
  6487. }
  6488. this.plworkFile = [];
  6489. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  6490. this.selectUploadStudent();
  6491. this.dialogVisiblePl = true;
  6492. } else if (t == 8) {
  6493. if (this.libraryCount > 0) {
  6494. this.updateCount(this.libraryCount, t);
  6495. } else {
  6496. this.libraryCount++;
  6497. a = this.libraryCount;
  6498. this.toolsCount(a, t);
  6499. }
  6500. window.topU.postMessage({ tools: "8" }, "*");
  6501. } else if (t == 17) {
  6502. if (this.libraryCount > 0) {
  6503. this.updateCount(this.libraryCount, t);
  6504. } else {
  6505. this.libraryCount++;
  6506. a = this.libraryCount;
  6507. this.toolsCount(a, t);
  6508. }
  6509. window.topU.postMessage({ tools: "17" }, "*");
  6510. } else if (t == 18) {
  6511. if (this.trainCount > 0) {
  6512. this.updateCount(this.trainCount, t);
  6513. } else {
  6514. this.trainCount++;
  6515. a = this.trainCount;
  6516. this.toolsCount(a, t);
  6517. }
  6518. window.topU.postMessage({ tools: "18" }, "*");
  6519. } else if (t == 10) {
  6520. if (this.timeCount > 0) {
  6521. this.updateCount(this.timeCount, t);
  6522. } else {
  6523. this.timeCount++;
  6524. a = this.timeCount;
  6525. this.toolsCount(a, t);
  6526. }
  6527. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  6528. .taskJson[index].toolChoose[i].preTime
  6529. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6530. .toolChoose[i].preTime
  6531. : "";
  6532. this.timeDialogVisible = true;
  6533. } else if (t == 15) {
  6534. this.answerQ = "";
  6535. this.questionAnswer = "";
  6536. if (this.answerCount > 0) {
  6537. this.updateCount(this.answerCount, t);
  6538. } else {
  6539. this.answerCount++;
  6540. a = this.answerCount;
  6541. this.toolsCount(a, t);
  6542. }
  6543. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6544. .taskJson[index].toolChoose[i].answerQ
  6545. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6546. .toolChoose[i].answerQ
  6547. : "";
  6548. this.answerDialogVisible = true;
  6549. } else if (t == 21) {
  6550. window.topU.postMessage({ tools: "21" }, "*");
  6551. } else if (t == 22) {
  6552. window.topU.postMessage({ tools: "22" }, "*");
  6553. } else if (t == 23) {
  6554. window.topU.postMessage({ tools: "23" }, "*");
  6555. } else if (t == 24) {
  6556. window.topU.postMessage({ tools: "24" }, "*");
  6557. } else if (t == 25) {
  6558. window.topU.postMessage({ tools: "25" }, "*");
  6559. } else if (t == 31) {
  6560. window.topU.postMessage({ tools: "31" }, "*");
  6561. } else if (t == 28) {
  6562. window.topU.postMessage({ tools: "28" }, "*");
  6563. } else if (t == 37) {
  6564. window.topU.postMessage({ tools: "37" }, "*");
  6565. } else if (t == 38) {
  6566. window.topU.postMessage({ tools: "38" }, "*");
  6567. } else if (t == 39) {
  6568. window.topU.postMessage({ tools: "39" }, "*");
  6569. } else if (t == 32) {
  6570. window.topU.postMessage({ tools: "32" }, "*");
  6571. } else if (t == 57) {
  6572. window.topU.postMessage({ tools: "57" }, "*");
  6573. } else if (t == 58) {
  6574. window.topU.postMessage({ tools: "58" }, "*");
  6575. } else if (t == 59) {
  6576. window.topU.postMessage({ tools: "59" }, "*");
  6577. } else if (t == 60) {
  6578. window.topU.postMessage({ tools: "60" }, "*");
  6579. } else if (t == 61) {
  6580. window.topU.postMessage({ tools: "61" }, "*");
  6581. } else if (t == 63) {
  6582. window.topU.postMessage({ tools: "63" }, "*");
  6583. } else if (t == 26) {
  6584. window.topU.postMessage(
  6585. {
  6586. tools: "26",
  6587. cid: this.id,
  6588. stage: this.courseType,
  6589. task: this.taskCount,
  6590. tool: i,
  6591. },
  6592. "*"
  6593. );
  6594. } else if (t == 40) {
  6595. if (this.evalCount > 0) {
  6596. this.updateCount(this.evalCount, t);
  6597. } else {
  6598. this.evalCount++;
  6599. a = this.evalCount;
  6600. this.toolsCount(a, t);
  6601. }
  6602. this.eScore = { eBzText: "", eStar: [] };
  6603. if (this.worksStudent.length) {
  6604. for (var k = 0; k < this.worksStudent.length; k++) {
  6605. if (this.userid == this.worksStudent[k].userid) {
  6606. this.eScore = JSON.parse(this.worksStudent[k].works);
  6607. this.rateJson =
  6608. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6609. index
  6610. ].toolChoose[i].rateJson;
  6611. break;
  6612. } else {
  6613. this.rateJson =
  6614. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6615. index
  6616. ].toolChoose[i].rateJson;
  6617. }
  6618. }
  6619. } else {
  6620. this.rateJson =
  6621. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6622. index
  6623. ].toolChoose[i].rateJson;
  6624. }
  6625. this.isStar = false;
  6626. this.studentEvalDialogVisible = true;
  6627. } else if (t == 41) {
  6628. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6629. .taskJson[index].toolChoose[i].selectJson
  6630. ? JSON.parse(
  6631. JSON.stringify(
  6632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6633. index
  6634. ].toolChoose[i].selectJson
  6635. )
  6636. )
  6637. : { url: "", select: [], answer: [] };
  6638. if (this.worksStudent.length) {
  6639. for (var k = 0; k < this.worksStudent.length; k++) {
  6640. if (this.userid == this.worksStudent[k].userid) {
  6641. var a = this.worksStudent[k].works.split(",");
  6642. for (var ki = 0; ki < a.length; ki++) {
  6643. a[ki] = parseInt(a[ki]);
  6644. }
  6645. this.selectAnswer = {
  6646. answer: a,
  6647. stu: this.worksStudent[k].sName,
  6648. };
  6649. break;
  6650. } else {
  6651. this.selectAnswer = { answer: [], stu: "" };
  6652. }
  6653. }
  6654. } else {
  6655. this.selectAnswer = { answer: [], stu: "" };
  6656. }
  6657. this.isSelect = false;
  6658. this.dialogVisibleSelect = true;
  6659. } else if (t == 44) {
  6660. window.topU.postMessage({ tools: "44" }, "*");
  6661. } else if (t == 47) {
  6662. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6663. .taskJson[index].toolChoose[i].sentenceList
  6664. ? JSON.parse(
  6665. JSON.stringify(
  6666. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6667. index
  6668. ].toolChoose[i].sentenceList
  6669. )
  6670. )
  6671. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6672. for (var q = 0; q < this.sentenceList.length; q++) {
  6673. this.sentenceList[q].chooseSenList = [];
  6674. this.sentenceList[q].addChangeSen = [];
  6675. this.sentenceList[q].addChangeSen = JSON.parse(
  6676. JSON.stringify(this.sentenceList[q].addSentence)
  6677. );
  6678. this.sentenceList[q].chooseSenList.length =
  6679. this.sentenceList[q].rightAnswer.length;
  6680. }
  6681. this.dialogVisibleSentence = true;
  6682. } else if (t == 48) {
  6683. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6684. .taskJson[index].toolChoose[i].tableJson
  6685. ? JSON.parse(
  6686. JSON.stringify(
  6687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6688. index
  6689. ].toolChoose[i].tableJson
  6690. )
  6691. )
  6692. : { text: "" };
  6693. if (this.worksStudent.length) {
  6694. for (var k = 0; k < this.worksStudent.length; k++) {
  6695. if (this.userid == this.worksStudent[k].userid) {
  6696. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6697. break;
  6698. }
  6699. }
  6700. }
  6701. this.dialogVisibleTable = true;
  6702. } else if (t == 52) {
  6703. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6704. .taskJson[index].toolChoose[i].wordJson
  6705. ? JSON.parse(
  6706. JSON.stringify(
  6707. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6708. index
  6709. ].toolChoose[i].wordJson
  6710. )
  6711. )
  6712. : { text: "" };
  6713. this.dialogVisibleWord = true;
  6714. } else if (t == 49) {
  6715. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  6716. return
  6717. }
  6718. this.groupJson =
  6719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6720. index
  6721. ].toolChoose[i].groupJson;
  6722. this.dialogVisibleGroup = true;
  6723. } else if (t == 62) {
  6724. this.videoJson =
  6725. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6726. index
  6727. ].toolChoose[i].videoJson;
  6728. this.dialogVisibleVideo = true;
  6729. }
  6730. },
  6731. teacherWorkSubmit(t, i, index) {
  6732. this.sTool = t;
  6733. this.toolindex = i;
  6734. if (this.tType !== "1" && this.tType !== "4") {
  6735. return;
  6736. }
  6737. if (t == 16 || t == 32 || t == 57 || t == 50) {
  6738. this.dialogVisibleWorks = true; //作业提交
  6739. } else if (t == 15) {
  6740. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6741. .taskJson[index].toolChoose[i].answerQ
  6742. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6743. .toolChoose[i].answerQ
  6744. : "";
  6745. this.questionAnswer = ''
  6746. this.answerDialogVisibleTeacher = true;//问答
  6747. } else if (t == 52) {
  6748. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6749. .taskJson[index].toolChoose[i].wordJson
  6750. ? JSON.parse(
  6751. JSON.stringify(
  6752. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6753. index
  6754. ].toolChoose[i].wordJson
  6755. )
  6756. )
  6757. : { text: "" };
  6758. this.dialogVisibleWordTeacher = true;//文档
  6759. } else if (t == 4) {
  6760. this.radio = [];
  6761. this.noteName = "";
  6762. this.isAnswer = false;
  6763. if (this.askCount > 0) {
  6764. this.updateCount(this.askCount, t);
  6765. } else {
  6766. this.askCount++;
  6767. a = this.askCount;
  6768. this.toolsCount(a, t);
  6769. }
  6770. if (!this.dialogVisible2) {
  6771. this.askJson.askJson =
  6772. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6773. index
  6774. ].toolChoose[i].askJson;
  6775. this.askJson.askTitle =
  6776. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6777. index
  6778. ].toolChoose[i].askTitle;
  6779. this.askJson.askCount =
  6780. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6781. index
  6782. ].toolChoose[i].askCount;
  6783. } else {
  6784. this.askJson.askJson = this.chapTools.askJson.askJson;
  6785. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  6786. this.askJson.askCount = this.chapTools.askJson.askCount;
  6787. }
  6788. this.dialogVisible5Teacher = true;
  6789. } else if (t == 45) {
  6790. this.noteName = "";
  6791. this.radio = [];
  6792. this.isAnswer = false;
  6793. if (this.askCount > 0) {
  6794. this.updateCount(this.askCount, t);
  6795. } else {
  6796. this.askCount++;
  6797. a = this.askCount;
  6798. this.toolsCount(a, t);
  6799. }
  6800. this.testJson =
  6801. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6802. index
  6803. ].toolChoose[i].testJson;
  6804. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6805. if (this.testJson.testJson[k].type == "2") {
  6806. this.radio.push([]);
  6807. } else {
  6808. this.radio.push("");
  6809. }
  6810. }
  6811. this.dialogVisibleChoiceTeacher = true;
  6812. } else if (t == 41) {
  6813. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6814. .taskJson[index].toolChoose[i].selectJson
  6815. ? JSON.parse(
  6816. JSON.stringify(
  6817. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6818. index
  6819. ].toolChoose[i].selectJson
  6820. )
  6821. )
  6822. : { url: "", select: [], answer: [] };
  6823. if (this.worksStudent.length) {
  6824. for (var k = 0; k < this.worksStudent.length; k++) {
  6825. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6826. var a = this.worksStudent[k].works.split(",");
  6827. for (var ki = 0; ki < a.length; ki++) {
  6828. a[ki] = parseInt(a[ki]);
  6829. }
  6830. this.selectAnswer = {
  6831. answer: a,
  6832. stu: this.worksStudent[k].sName,
  6833. };
  6834. break;
  6835. } else {
  6836. this.selectAnswer = { answer: [], stu: "" };
  6837. }
  6838. }
  6839. } else {
  6840. this.selectAnswer = { answer: [], stu: "" };
  6841. }
  6842. this.isSelect = false;
  6843. this.dialogVisibleSelectTeacher = true;
  6844. } else if (t == 47) {
  6845. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6846. .taskJson[index].toolChoose[i].sentenceList
  6847. ? JSON.parse(
  6848. JSON.stringify(
  6849. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6850. index
  6851. ].toolChoose[i].sentenceList
  6852. )
  6853. )
  6854. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6855. for (var q = 0; q < this.sentenceList.length; q++) {
  6856. this.sentenceList[q].chooseSenList = [];
  6857. this.sentenceList[q].addChangeSen = [];
  6858. this.sentenceList[q].addChangeSen = JSON.parse(
  6859. JSON.stringify(this.sentenceList[q].addSentence)
  6860. );
  6861. this.sentenceList[q].chooseSenList.length =
  6862. this.sentenceList[q].rightAnswer.length;
  6863. }
  6864. this.dialogVisibleSentenceTeacher = true;
  6865. } else if (t == 48) {
  6866. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6867. .taskJson[index].toolChoose[i].tableJson
  6868. ? JSON.parse(
  6869. JSON.stringify(
  6870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6871. index
  6872. ].toolChoose[i].tableJson
  6873. )
  6874. )
  6875. : { text: "" };
  6876. if (this.worksStudent.length) {
  6877. for (var k = 0; k < this.worksStudent.length; k++) {
  6878. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6879. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6880. break;
  6881. }
  6882. }
  6883. }
  6884. this.dialogVisibleTableTeacher = true;
  6885. } else if (t == 40) {
  6886. if (this.evalCount > 0) {
  6887. this.updateCount(this.evalCount, t);
  6888. } else {
  6889. this.evalCount++;
  6890. a = this.evalCount;
  6891. this.toolsCount(a, t);
  6892. }
  6893. this.eScore = { eBzText: "", eStar: [] };
  6894. if (this.worksStudent.length) {
  6895. for (var k = 0; k < this.worksStudent.length; k++) {
  6896. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6897. this.eScore = JSON.parse(this.worksStudent[k].works);
  6898. this.rateJson =
  6899. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6900. index
  6901. ].toolChoose[i].rateJson;
  6902. break;
  6903. } else {
  6904. this.rateJson =
  6905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6906. index
  6907. ].toolChoose[i].rateJson;
  6908. }
  6909. }
  6910. } else {
  6911. this.rateJson =
  6912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6913. index
  6914. ].toolChoose[i].rateJson;
  6915. }
  6916. this.isStar = false;
  6917. this.studentEvalDialogVisibleTeacher = true;
  6918. } else if (t == 3 || t == 1 || t == 7) {
  6919. window.topU.postMessage(
  6920. {
  6921. tools: t + 'teacherE',
  6922. cid: this.id,
  6923. stage: this.courseType,
  6924. task: this.taskCount,
  6925. tool: i,
  6926. student: this.sStudent,
  6927. },
  6928. "*"
  6929. );
  6930. }
  6931. },
  6932. openStudentTool(s) {
  6933. this.sStudent = s;
  6934. this.dialogVisibleStudentTool = true;
  6935. },
  6936. setRightAnswer(s, i, j) {
  6937. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  6938. if (
  6939. this.sentenceList[i].chooseSenList[q] == undefined ||
  6940. this.sentenceList[i].chooseSenList[q] == ""
  6941. ) {
  6942. this.sentenceList[i].chooseSenList[q] = s;
  6943. this.sentenceList[i].addChangeSen[j] = "";
  6944. break;
  6945. }
  6946. }
  6947. this.$forceUpdate();
  6948. },
  6949. returnCard(r, i, j) {
  6950. var a = this.sentenceList[i].addSentence.indexOf(r);
  6951. this.sentenceList[i].chooseSenList[j] = "";
  6952. this.sentenceList[i].addChangeSen[a] = r;
  6953. this.$forceUpdate();
  6954. },
  6955. // addSentenceTool() {
  6956. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6957. // this.taskCount
  6958. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  6959. // this.sentenceList = [
  6960. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6961. // ];
  6962. // this.dialogVisibleSentence = false;
  6963. // },
  6964. toolsCount(a, t) {
  6965. let params = {
  6966. cid: this.id,
  6967. chid: this.courseType,
  6968. uid: this.userid,
  6969. tid: t,
  6970. count: a,
  6971. };
  6972. this.ajax
  6973. .get(this.$store.state.api + "insertToolsCount", params)
  6974. .then((res) => {
  6975. this.selectCount();
  6976. })
  6977. .catch((err) => {
  6978. console.error(err);
  6979. });
  6980. },
  6981. updateCount(c, t) {
  6982. c++;
  6983. let params = {
  6984. cid: this.id,
  6985. chid: this.courseType,
  6986. uid: this.userid,
  6987. tid: t,
  6988. count: c,
  6989. };
  6990. this.ajax
  6991. .get(this.$store.state.api + "updateToolsCount", params)
  6992. .then((res) => {
  6993. this.selectCount();
  6994. })
  6995. .catch((err) => {
  6996. console.error(err);
  6997. });
  6998. },
  6999. checkEva() {
  7000. if (this.evalua != "") {
  7001. for (var i = 0; i < this.evaJuri.length; i++) {
  7002. if (this.evalua == this.evaJuri[i].id) {
  7003. this.eTitle = this.evaJuri[i].title;
  7004. this.eJson = JSON.parse(this.evaJuri[i].content);
  7005. }
  7006. }
  7007. this.$forceUpdate();
  7008. setTimeout(() => {
  7009. this.setMindData();
  7010. }, 0);
  7011. }
  7012. },
  7013. selectEva() {
  7014. let params = {
  7015. oid: this.oid,
  7016. };
  7017. this.ajax
  7018. .get(this.$store.state.api + "selectAllEvaluation", params)
  7019. .then((res) => {
  7020. this.evaJuri = res.data[0];
  7021. })
  7022. .catch((err) => {
  7023. console.error(err);
  7024. });
  7025. },
  7026. setMindData() {
  7027. this.data.data = [];
  7028. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7029. let _eJson = Object.keys(this.eJson);
  7030. let _e = this.eJson;
  7031. for (let i = 0; i < _eJson.length; i++) {
  7032. let element = _e[_eJson[i]];
  7033. this.data.data.push({
  7034. id: element.id,
  7035. parentid: "root",
  7036. topic: element.name,
  7037. });
  7038. let _eJsonc = Object.keys(element.child);
  7039. let _e2 = element.child;
  7040. for (let j = 0; j < _eJsonc.length; j++) {
  7041. let _ec = _e2[_eJsonc[j]];
  7042. this.data.data.push({
  7043. id: _ec.id,
  7044. parentid: element.id,
  7045. topic: _ec.name,
  7046. });
  7047. let _eJsonz = Object.keys(_ec.child);
  7048. let _e3 = _ec.child;
  7049. for (let z = 0; z < _eJsonz.length; z++) {
  7050. let _ez = _e3[_eJsonz[z]];
  7051. this.data.data.push({
  7052. id: _ez.id,
  7053. parentid: _ec.id,
  7054. topic: _ez.name,
  7055. });
  7056. }
  7057. }
  7058. }
  7059. this.$forceUpdate();
  7060. },
  7061. checkFileFull(type, url) {
  7062. this.fullDialogVisible = true;
  7063. this.fulltype = type;
  7064. this.fullUrl = url;
  7065. },
  7066. openSname(n, id, i) {
  7067. this.snameWid = id;
  7068. this.worksSName = n;
  7069. this.toolindex = i
  7070. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  7071. this.selectUploadStudent()
  7072. this.dialogVisibleSname = true;
  7073. },
  7074. updateName() {
  7075. let params = {
  7076. n: this.worksSName,
  7077. cid: this.snameWid,
  7078. };
  7079. this.ajax
  7080. .get(this.$store.state.api + "updateCourseWorksName", params)
  7081. .then((res) => {
  7082. this.$message({
  7083. message: "修改成功",
  7084. type: "success",
  7085. });
  7086. this.dialogVisibleSname = false;
  7087. this.getCourseDetail();
  7088. this.snameWid = "";
  7089. this.worksSName = "";
  7090. })
  7091. .catch((err) => {
  7092. console.error(err);
  7093. });
  7094. },
  7095. downloadFile2(f) {
  7096. let url = f.url
  7097. let _this = this;
  7098. let _url = "";
  7099. if (
  7100. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7101. ) {
  7102. _url = url.split(
  7103. "https://view.officeapps.live.com/op/view.aspx?src="
  7104. )[1];
  7105. } else {
  7106. _url = url;
  7107. }
  7108. const x = new XMLHttpRequest();
  7109. x.open("GET", _url, true);
  7110. x.responseType = "blob";
  7111. const loading = _this.$loading.service({
  7112. background: "rgba(255, 255, 255, 0.7)",
  7113. target: document.body,
  7114. text: "文件加载中...",
  7115. });
  7116. // _this.$message.success("文件下载中...");
  7117. x.onload = function (e) {
  7118. loading.close();
  7119. let content = x.response;
  7120. let elink = document.createElement("a");
  7121. elink.download = f.name;
  7122. elink.style.display = "none";
  7123. let blob = new Blob([content]);
  7124. elink.href = URL.createObjectURL(blob);
  7125. document.body.appendChild(elink);
  7126. elink.click();
  7127. document.body.removeChild(elink);
  7128. };
  7129. x.send();
  7130. },
  7131. downloadFile(url) {
  7132. let _this = this;
  7133. let _url = "";
  7134. if (
  7135. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7136. ) {
  7137. _url = url.split(
  7138. "https://view.officeapps.live.com/op/view.aspx?src="
  7139. )[1];
  7140. } else {
  7141. _url = url;
  7142. }
  7143. const x = new XMLHttpRequest();
  7144. x.open("GET", _url, true);
  7145. x.responseType = "blob";
  7146. const loading = _this.$loading.service({
  7147. background: "rgba(255, 255, 255, 0.7)",
  7148. target: document.body,
  7149. text: "文件加载中...",
  7150. });
  7151. // _this.$message.success("文件下载中...");
  7152. x.onload = function (e) {
  7153. loading.close();
  7154. // const url = window.URL.createObjectURL(x.response);
  7155. // const a = document.createElement("a");
  7156. // a.href = url;
  7157. // a.target = "_blank";
  7158. // a.download = url;
  7159. // a.click();
  7160. // a.remove();
  7161. let content = x.response;
  7162. let elink = document.createElement("a");
  7163. elink.download = decodeURI(
  7164. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  7165. );
  7166. elink.style.display = "none";
  7167. let blob = new Blob([content]);
  7168. elink.href = URL.createObjectURL(blob);
  7169. document.body.appendChild(elink);
  7170. elink.click();
  7171. document.body.removeChild(elink);
  7172. };
  7173. x.send();
  7174. },
  7175. openLine(url) {
  7176. window.open(url);
  7177. },
  7178. resize() {
  7179. if (document.getElementsByClassName("box_course").length) {
  7180. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7181. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7182. document.getElementsByClassName("navBox")[0].style.height =
  7183. a - 40 + "px";
  7184. }
  7185. this.Stbodywidth =
  7186. document.getElementsByClassName("student_body").length &&
  7187. document.getElementsByClassName("student_body")[0].offsetWidth;
  7188. },
  7189. closeDraw() {
  7190. this.bg = null;
  7191. this.drawShow = false;
  7192. },
  7193. showPicturePaint(url) {
  7194. let params = {
  7195. img: url,
  7196. };
  7197. this.ajax
  7198. .get(this.$store.state.api + "imgToBase64", params)
  7199. .then((res) => {
  7200. console.log(res);
  7201. this.drawShow = true;
  7202. this.bg = res.data[0].img;
  7203. })
  7204. .catch((err) => {
  7205. console.error(err);
  7206. });
  7207. },
  7208. addImgDraw(base64) {
  7209. let file = { name: "批注图.png" };
  7210. let img = this.dataUrlToFile(base64, file);
  7211. this.beforeUpload1(img, 5);
  7212. },
  7213. addImgDrawImG(url) {
  7214. // console.log(url);
  7215. let params = [
  7216. {
  7217. wid: this.commentDetail.wid,
  7218. img: url,
  7219. },
  7220. ];
  7221. this.ajax
  7222. .post(this.$store.state.api + "updateCourseWorks", params)
  7223. .then((res) => {
  7224. this.$message({
  7225. message: "提交成功",
  7226. type: "success",
  7227. });
  7228. this.drawShow = false;
  7229. this.bg = "";
  7230. this.selectSWorks();
  7231. this.selectStudent();
  7232. })
  7233. .catch((err) => {
  7234. this.$message.error("提交失败");
  7235. console.error(err);
  7236. });
  7237. },
  7238. deletePicturePaint() {
  7239. this.$confirm("确定删除此批注吗?", "提示", {
  7240. confirmButtonText: "确定",
  7241. cancelButtonText: "取消",
  7242. type: "warning",
  7243. })
  7244. .then(() => {
  7245. let params = [
  7246. {
  7247. wid: this.commentDetail.wid,
  7248. img: "",
  7249. },
  7250. ];
  7251. this.ajax
  7252. .post(this.$store.state.api + "updateCourseWorks", params)
  7253. .then((res) => {
  7254. this.$message({
  7255. message: "删除成功",
  7256. type: "success",
  7257. });
  7258. this.selectSWorks();
  7259. this.selectStudent();
  7260. })
  7261. .catch((err) => {
  7262. this.$message.error("删除失败");
  7263. console.error(err);
  7264. });
  7265. })
  7266. .catch(() => { });
  7267. },
  7268. getAudioVideo(constraintsData) {
  7269. if (navigator.mediaDevices === undefined) {
  7270. navigator.mediaDevices = {};
  7271. }
  7272. if (navigator.mediaDevices.getUserMedia === undefined) {
  7273. navigator.mediaDevices.getUserMedia = function (constraints) {
  7274. // 首先,如果有getUserMedia的话,就获得它
  7275. var getUserMedia =
  7276. navigator.getUserMedia ||
  7277. navigator.webkitGetUserMedia ||
  7278. navigator.mozGetUserMedia ||
  7279. navigator.msGetUserMedia;
  7280. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  7281. if (!getUserMedia) {
  7282. return Promise.reject({ code: 404 });
  7283. }
  7284. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  7285. return new Promise(function (resolve, reject) {
  7286. getUserMedia.call(navigator, constraints, resolve, reject);
  7287. });
  7288. };
  7289. }
  7290. return navigator.mediaDevices.getUserMedia(constraintsData);
  7291. },
  7292. /**
  7293. * 开始录制
  7294. */
  7295. startRecording(callback) {
  7296. let _function = (screenStream) => {
  7297. this.addStreamStopListener(screenStream, () => {
  7298. console.log("流停止监听");
  7299. this.stopRecording();
  7300. this.$emit("streamStop", {});
  7301. // this.stopRecording();
  7302. });
  7303. var options = {
  7304. type: "video",
  7305. mimeType: "video/webm",
  7306. disableLogs: false,
  7307. getNativeBlob: false, // enable it for longer recordings
  7308. ignoreMutedMedia: false,
  7309. };
  7310. // this.video.srcObject = screenStream;
  7311. this.recorder = RecordRTC(screenStream, options);
  7312. this.recorder.startRecording();
  7313. this.recorder.screen = screenStream;
  7314. this.videoStart = true;
  7315. // callback(true);
  7316. };
  7317. this.getAudioVideo({ audio: true })
  7318. .then((res) => {
  7319. this.captureScreen(_function, true);
  7320. console.log("已点击允许,开启成功");
  7321. })
  7322. .catch((err) => {
  7323. // console.log('浏览器不支持,请更换浏览器')
  7324. // } else {
  7325. this.captureScreen(_function, false);
  7326. console.log("请检查是否存在麦克风");
  7327. });
  7328. },
  7329. /**
  7330. * 停止录制
  7331. */
  7332. stopRecording(callback) {
  7333. this.recorder.stopRecording(() => {
  7334. // this.video.src = this.video.srcObject = null;
  7335. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  7336. const url = URL.createObjectURL(this.recorder.getBlob());
  7337. const a = document.createElement("a"); //this.fileName+
  7338. let videoFile = new File(
  7339. [this.recorder.getBlob()],
  7340. this.courseDetail.title + "录屏.mp4",
  7341. {
  7342. type: "video/mp4",
  7343. }
  7344. );
  7345. let downloadUrl = URL.createObjectURL(videoFile);
  7346. document.body.appendChild(a);
  7347. a.style.display = "none";
  7348. a.href = url;
  7349. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  7350. a.click();
  7351. this.recorder.screen.stop();
  7352. this.recorder.destroy();
  7353. this.recorder = null;
  7354. this.videoStart = false;
  7355. // callback(false);
  7356. });
  7357. },
  7358. //初始化
  7359. captureScreen(callback, type) {
  7360. if (navigator.getDisplayMedia) {
  7361. //录制结束,文件下载
  7362. navigator
  7363. .getDisplayMedia({
  7364. video: true,
  7365. })
  7366. .then((screenStream) => {
  7367. if (type) {
  7368. navigator.mediaDevices
  7369. .getUserMedia({ audio: true })
  7370. .then((mic) => {
  7371. screenStream.addTrack(mic.getTracks()[0]);
  7372. callback(screenStream);
  7373. });
  7374. } else {
  7375. callback(screenStream);
  7376. }
  7377. })
  7378. .catch(function (error) {
  7379. console.log("error", error);
  7380. });
  7381. } else if (navigator.mediaDevices.getDisplayMedia) {
  7382. navigator.mediaDevices
  7383. .getDisplayMedia({
  7384. video: true,
  7385. })
  7386. .then((screenStream) => {
  7387. if (type) {
  7388. navigator.mediaDevices
  7389. .getUserMedia({ audio: true })
  7390. .then((mic) => {
  7391. screenStream.addTrack(mic.getTracks()[0]);
  7392. callback(screenStream);
  7393. });
  7394. } else {
  7395. callback(screenStream);
  7396. }
  7397. })
  7398. .catch(function (error) {
  7399. console.log("error", error);
  7400. });
  7401. } else {
  7402. var error = "getDisplayMedia API are not supported in this browser.";
  7403. console.log("error", error);
  7404. alert(error);
  7405. }
  7406. },
  7407. //流监听
  7408. addStreamStopListener(stream, callback) {
  7409. stream.addEventListener(
  7410. "ended",
  7411. function () {
  7412. callback();
  7413. callback = function () { };
  7414. },
  7415. false
  7416. );
  7417. stream.addEventListener(
  7418. "inactive",
  7419. function () {
  7420. callback();
  7421. callback = function () { };
  7422. },
  7423. false
  7424. );
  7425. stream.getTracks().forEach(function (track) {
  7426. track.addEventListener(
  7427. "ended",
  7428. function () {
  7429. callback();
  7430. callback = function () { };
  7431. },
  7432. false
  7433. );
  7434. track.addEventListener(
  7435. "inactive",
  7436. function () {
  7437. callback();
  7438. callback = function () { };
  7439. },
  7440. false
  7441. );
  7442. });
  7443. },
  7444. updateGroup() {
  7445. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7446. this.dialogVisibleGroup2 = true;
  7447. },
  7448. updateGroupJson() {
  7449. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  7450. if (
  7451. this.groupStudentUid[this.toolindex][i].length >
  7452. this.groupJson2.number
  7453. ) {
  7454. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  7455. return;
  7456. }
  7457. }
  7458. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  7459. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7460. this.taskCount
  7461. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  7462. let params = [
  7463. {
  7464. cid: this.id,
  7465. chapters: JSON.stringify(this.chapInfoList),
  7466. uid: this.userid,
  7467. unitIndex: this.courseType,
  7468. },
  7469. ];
  7470. this.ajax
  7471. .post(this.$store.state.api + "updateWorkNew4", params)
  7472. .then((res) => {
  7473. this.$message.success("设置成功");
  7474. this.getCourseDetail(2);
  7475. this.dialogVisibleGroup2 = false;
  7476. this.groupJson2 = {};
  7477. this.$forceUpdate();
  7478. })
  7479. .catch((err) => {
  7480. this.$message.error("网络不佳");
  7481. console.error(err);
  7482. });
  7483. },
  7484. lockChair() {
  7485. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7486. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  7487. this.updateGroupJson();
  7488. },
  7489. selectGroup(index) {
  7490. this.getCourseDetail(2, index);
  7491. },
  7492. joinGroup(index) {
  7493. if (this.groupJson.islock == 2) {
  7494. this.$message.error("位置已被锁定,无法加入");
  7495. return;
  7496. }
  7497. if (
  7498. this.groupStudent[this.toolindex][index].length >
  7499. this.groupJson.number ||
  7500. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  7501. ) {
  7502. this.$message.error("位置已满,无法加入");
  7503. return;
  7504. }
  7505. let params = [
  7506. {
  7507. cid: this.id,
  7508. stage: this.courseType,
  7509. task: this.taskCount,
  7510. tool: this.toolindex,
  7511. g: index,
  7512. uid: this.userid,
  7513. },
  7514. ];
  7515. this.ajax
  7516. .post(this.$store.state.api + "joinGroup", params)
  7517. .then((res) => {
  7518. this.$message.success("加入成功");
  7519. this.getCourseDetail();
  7520. })
  7521. .catch((err) => {
  7522. this.$message.error("网络不佳");
  7523. console.error(err);
  7524. });
  7525. },
  7526. exitGroup(id) {
  7527. if (this.groupJson.islock == 2) {
  7528. this.$message.error("位置已被锁定,无法退出");
  7529. return;
  7530. }
  7531. let params = [
  7532. {
  7533. gid: id,
  7534. },
  7535. ];
  7536. this.ajax
  7537. .post(this.$store.state.api + "exitGroup", params)
  7538. .then((res) => {
  7539. this.$message.success("退出成功");
  7540. this.getCourseDetail();
  7541. })
  7542. .catch((err) => {
  7543. this.$message.error("网络不佳");
  7544. console.error(err);
  7545. });
  7546. },
  7547. groupUpload(index, task, gindex) {
  7548. this.taskCount = task;
  7549. this.toolindex = index;
  7550. this.groupIndex = gindex;
  7551. this.dialogVisibleGroupWork = true;
  7552. },
  7553. updateGroupChair(user) {
  7554. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  7555. el.label = index;
  7556. return index != user.group;
  7557. });
  7558. this.updateGroupUser = user;
  7559. this.dialogVisibleUpdateGroup = true;
  7560. },
  7561. updateChair() {
  7562. if (
  7563. this.groupStudent[this.toolindex][this.checkChair].length >
  7564. this.groupJson.number ||
  7565. this.groupStudent[this.toolindex][this.checkChair].length ==
  7566. this.groupJson.number
  7567. ) {
  7568. this.$message.error("位置已满,无法加入");
  7569. return;
  7570. }
  7571. let params = [
  7572. {
  7573. cid: this.id,
  7574. stage: this.courseType,
  7575. task: this.taskCount,
  7576. tool: this.toolindex,
  7577. g: this.checkChair,
  7578. uid: this.updateGroupUser.userid,
  7579. },
  7580. ];
  7581. this.ajax
  7582. .post(this.$store.state.api + "joinGroup", params)
  7583. .then((res) => {
  7584. this.$message.success("修改成功");
  7585. this.updateGroupUser = {};
  7586. this.checkChair = "";
  7587. this.updateGroupArray = {};
  7588. this.dialogVisibleUpdateGroup = false;
  7589. this.getCourseDetail();
  7590. })
  7591. .catch((err) => {
  7592. this.$message.error("网络不佳");
  7593. console.error(err);
  7594. });
  7595. },
  7596. deleteGroupChair(gindex) {
  7597. this.checkDeleteGroup = [];
  7598. this.deleteGroupUser = JSON.parse(
  7599. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  7600. );
  7601. this.deleteGroupArray = this.groupJson.group[gindex];
  7602. this.groupIndex = gindex;
  7603. this.dialogVisibleDeleteGroup = true;
  7604. },
  7605. async deleteChair() {
  7606. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  7607. const gid =
  7608. this.groupStudent[this.toolindex][this.groupIndex][
  7609. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  7610. this.checkDeleteGroup[i]
  7611. )
  7612. ];
  7613. let params = [
  7614. {
  7615. gid: gid.id,
  7616. },
  7617. ];
  7618. var a = await this.deleteChairA(params);
  7619. if (i == this.checkDeleteGroup.length - 1) {
  7620. this.$message.success("退出成功");
  7621. this.dialogVisibleDeleteGroup = false;
  7622. this.deleteGroupUser = [];
  7623. this.deleteGroupArray = {};
  7624. this.groupIndex = "";
  7625. this.checkDeleteGroup = [];
  7626. this.getCourseDetail();
  7627. }
  7628. }
  7629. },
  7630. deleteChairA(params) {
  7631. return new Promise((resolve, reject) => {
  7632. this.ajax
  7633. .post(this.$store.state.api + "exitGroup", params)
  7634. .then((res) => {
  7635. resolve(1);
  7636. })
  7637. .catch((err) => {
  7638. this.$message.error("网络不佳");
  7639. console.error(err);
  7640. });
  7641. });
  7642. },
  7643. contract(i) {
  7644. if (this.isCloseList.isClose == 0) {
  7645. this.isCloseList.isClose = 1;
  7646. } else {
  7647. this.isCloseList.isClose = 0;
  7648. }
  7649. this.$forceUpdate();
  7650. },
  7651. },
  7652. directives: {
  7653. // 使用局部注册指令的方式
  7654. resize: {
  7655. // 指令的名称
  7656. bind(el, binding) {
  7657. // el为绑定的元素,binding为绑定给指令的对象
  7658. let width = "",
  7659. height = "";
  7660. function isReize() {
  7661. const style = document.defaultView.getComputedStyle(el);
  7662. if (width !== style.width || height !== style.height) {
  7663. binding.value(); // 关键
  7664. }
  7665. width = style.width;
  7666. height = style.height;
  7667. }
  7668. el.__vueSetInterval__ = setInterval(isReize, 300);
  7669. },
  7670. unbind(el) {
  7671. clearInterval(el.__vueSetInterval__);
  7672. },
  7673. },
  7674. },
  7675. beforeDestroy() {
  7676. window.onresize = null;
  7677. clearInterval(this.timer);
  7678. this.timer = null;
  7679. clearInterval(this.opertimer);
  7680. this.opertimer = null;
  7681. },
  7682. computed: {
  7683. contentConvent() {
  7684. return function (c) {
  7685. return c
  7686. ? c
  7687. .replaceAll(/\r\n/g, "<br/>")
  7688. .replaceAll(/\n/g, "<br/>")
  7689. .replaceAll(/\s/g, " &nbsp")
  7690. : "";
  7691. };
  7692. },
  7693. checkUpload() {
  7694. return function () {
  7695. var studentK = [];
  7696. if (this.plworkFile.length > 0) {
  7697. for (var z = 0; z < this.plworkFile.length; z++) {
  7698. studentK.push(this.plworkFile[z].username);
  7699. }
  7700. studentK = studentK.join(",");
  7701. }
  7702. var a = this.uploadStudentJuri.filter((el) => {
  7703. return studentK.indexOf(el.userid) == -1
  7704. });
  7705. return a
  7706. }
  7707. }
  7708. },
  7709. mounted() {
  7710. if (this.screenType == 2) {
  7711. window.topU.postMessage({ allScreen: 4 }, "*");
  7712. } else if (this.screenType == 3) {
  7713. window.topU.postMessage({ allScreen: 5 }, "*");
  7714. } else if (this.screenType == 1) {
  7715. window.topU.postMessage({ allScreen: 6 }, "*");
  7716. }
  7717. this.setOperationTime();
  7718. this.selectEva();
  7719. this.getCourseDetail();
  7720. this.selectCount();
  7721. this.getHomeWork();
  7722. this.toolIndex = null
  7723. this.contentDialog = true;
  7724. this.setContent2(true)
  7725. if (this.tType == 4) {
  7726. this.pzDialog = true;
  7727. this.selectPz();
  7728. }
  7729. document.scrollingElement.scrollTop = 0;
  7730. window.addEventListener("resize", () => {
  7731. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7732. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7733. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  7734. });
  7735. let _this = this;
  7736. setTimeout(() => {
  7737. // _this.vedioTime = [];
  7738. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7739. // _this.vedioTime[i] = document.getElementsByClassName(
  7740. // "vjs-duration-display"
  7741. // )[i].textContent;
  7742. // }
  7743. }, 1000);
  7744. },
  7745. };
  7746. </script>
  7747. <style scoped>
  7748. @media screen and (max-width: 1280px) {
  7749. /* .courseIndex > div:first-child(2) {
  7750. width: 15% !important;
  7751. } */
  7752. /* .navText {
  7753. width: 120px !important;
  7754. } */
  7755. .evaCss {
  7756. flex-direction: column !important;
  7757. align-items: center !important;
  7758. }
  7759. .dialog_diy1>>>.el-dialog {
  7760. width: 100% !important;
  7761. }
  7762. .rightWidthCss {
  7763. width: 100% !important;
  7764. }
  7765. .dialog_diy3>>>.el-dialog {
  7766. width: 100% !important;
  7767. }
  7768. /* .textTitle >>> .el-form-item__label {
  7769. width: 150px !important;
  7770. } */
  7771. }
  7772. .evaCssMax {
  7773. flex-direction: column !important;
  7774. align-items: center !important;
  7775. }
  7776. .dialog_diy>>>.el-dialog {
  7777. margin-top: 10vh !important;
  7778. }
  7779. .body_student {
  7780. width: 77%;
  7781. height: 100%;
  7782. position: absolute;
  7783. left: 22%;
  7784. top: 0;
  7785. }
  7786. .student_head {
  7787. width: 100%;
  7788. margin: 0 auto;
  7789. padding-bottom: 20px;
  7790. display: flex;
  7791. flex-direction: column;
  7792. flex-wrap: nowrap;
  7793. align-items: flex-start;
  7794. justify-content: flex-start;
  7795. }
  7796. .pb_left {
  7797. width: 20%;
  7798. margin-right: 10px;
  7799. background: rgb(255, 255, 255);
  7800. padding-right: 10px;
  7801. position: fixed;
  7802. height: 100%;
  7803. }
  7804. .wheel>img,
  7805. .project>img,
  7806. .star>img,
  7807. .evaluate>img,
  7808. .up_photo>img,
  7809. .chapter_add>img,
  7810. .deleteWord>img,
  7811. .question>img,
  7812. .homework>img {
  7813. width: 100%;
  7814. height: 100%;
  7815. }
  7816. .upCover>img {
  7817. width: 131px;
  7818. height: 69px;
  7819. object-fit: cover;
  7820. }
  7821. .upCover {
  7822. width: calc(100% / 3.5);
  7823. position: relative;
  7824. margin: 0 15px 10px 0;
  7825. display: flex;
  7826. flex-direction: column;
  7827. flex-wrap: nowrap;
  7828. justify-content: center;
  7829. align-content: center;
  7830. align-items: center;
  7831. height: fit-content;
  7832. }
  7833. .upCover2 {
  7834. width: 100%;
  7835. position: relative;
  7836. margin: 0 15px 10px 0;
  7837. display: flex;
  7838. flex-direction: column;
  7839. flex-wrap: nowrap;
  7840. justify-content: center;
  7841. align-content: center;
  7842. align-items: center;
  7843. }
  7844. .upCover2>img {
  7845. width: 100%;
  7846. height: 90px;
  7847. object-fit: contain;
  7848. }
  7849. .chapter_add {
  7850. width: 120px;
  7851. position: relative;
  7852. text-align: center;
  7853. }
  7854. .isAddThings {
  7855. margin-top: 20px;
  7856. position: relative;
  7857. text-align: center;
  7858. background: #f7f8fa;
  7859. height: 90px;
  7860. width: 90px;
  7861. display: flex;
  7862. flex-direction: column;
  7863. justify-content: center;
  7864. }
  7865. .deleteWord {
  7866. width: 22px;
  7867. height: 22px;
  7868. position: absolute;
  7869. right: -5px;
  7870. top: -5px;
  7871. cursor: pointer;
  7872. }
  7873. .box_course {
  7874. /* width: 60%; */
  7875. width: 81%;
  7876. }
  7877. .wheel {
  7878. width: 100%;
  7879. /* height: 100%; */
  7880. height: 650px;
  7881. }
  7882. .right_box {
  7883. display: flex;
  7884. flex-direction: column;
  7885. margin-left: 30px;
  7886. justify-content: space-around;
  7887. }
  7888. .right_box_title {
  7889. font-size: 23px;
  7890. }
  7891. .people {
  7892. display: flex;
  7893. }
  7894. .student_body {
  7895. width: 100%;
  7896. margin: 0 auto;
  7897. margin-top: 10px;
  7898. padding: 0 0 20px;
  7899. }
  7900. .study_top {
  7901. margin-top: 70px;
  7902. width: 100%;
  7903. /* overflow: auto; */
  7904. height: auto;
  7905. }
  7906. .study_top .checkbox {
  7907. display: flex;
  7908. align-items: center;
  7909. padding: 15px 0 15px 30px;
  7910. flex: 0 0 auto;
  7911. font-weight: bold;
  7912. border-bottom: 1px solid #eee;
  7913. }
  7914. .study_top .check {
  7915. padding-bottom: 5px;
  7916. text-align: center;
  7917. cursor: pointer;
  7918. height: 30px;
  7919. box-sizing: border-box;
  7920. display: flex;
  7921. }
  7922. .study_top .checked {
  7923. border-bottom: 4px solid #3fc6a0;
  7924. padding-bottom: 5px;
  7925. color: #3fc6a0;
  7926. display: flex;
  7927. height: 35px;
  7928. }
  7929. .study_top .checked>div,
  7930. .study_top .check>div {
  7931. margin-right: 5px;
  7932. }
  7933. .videoTop {
  7934. display: flex;
  7935. flex-direction: row;
  7936. justify-content: space-between;
  7937. background: #fff;
  7938. align-items: center;
  7939. width: 95%;
  7940. padding: 20px;
  7941. }
  7942. .upbtn {
  7943. margin: 25px;
  7944. background: #70afdb;
  7945. color: #fff;
  7946. width: 120px;
  7947. text-align: center;
  7948. height: 30px;
  7949. line-height: 30px;
  7950. font-size: 13px;
  7951. border-radius: 5px;
  7952. cursor: pointer;
  7953. }
  7954. .filebox {
  7955. display: flex;
  7956. flex-wrap: wrap;
  7957. flex-direction: column;
  7958. padding: 15px 0 5px;
  7959. }
  7960. .filebox .tooldetail {
  7961. width: 100%;
  7962. margin: 0px 12px;
  7963. background: rgb(247, 247, 247);
  7964. padding: 20px;
  7965. line-height: 30px;
  7966. word-break: break-word;
  7967. }
  7968. .file {
  7969. display: flex;
  7970. flex-direction: column;
  7971. align-items: center;
  7972. justify-content: center;
  7973. cursor: pointer;
  7974. width: 200px;
  7975. }
  7976. .file div {
  7977. margin-top: 10px;
  7978. width: 150px;
  7979. text-align: center;
  7980. overflow: hidden;
  7981. white-space: nowrap;
  7982. text-overflow: ellipsis;
  7983. }
  7984. .media {
  7985. display: flex;
  7986. flex-direction: column;
  7987. align-items: center;
  7988. justify-content: center;
  7989. margin: 0 20px 20px 0;
  7990. cursor: pointer;
  7991. margin: 12px 0 5px 15px;
  7992. overflow: hidden;
  7993. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  7994. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  7995. box-sizing: border-box;
  7996. }
  7997. .media img {
  7998. height: 90px;
  7999. width: 160px;
  8000. object-fit: cover;
  8001. }
  8002. .media .title {
  8003. padding: 5px;
  8004. text-align: left;
  8005. width: 100%;
  8006. box-sizing: border-box;
  8007. }
  8008. .media .btn {
  8009. width: 100%;
  8010. height: 35px;
  8011. line-height: 35px;
  8012. color: #fff;
  8013. background: #606060;
  8014. text-align: center;
  8015. overflow: hidden;
  8016. white-space: nowrap;
  8017. text-overflow: ellipsis;
  8018. }
  8019. .detail_content_top {
  8020. width: 100%;
  8021. padding: 25px 0 25px 0;
  8022. }
  8023. .detail_title {
  8024. text-align: center;
  8025. font-size: 24px;
  8026. }
  8027. .detail_time {
  8028. font-size: 13px;
  8029. padding: 15px 0 0 40px;
  8030. }
  8031. .detail_content {
  8032. line-height: 2pc;
  8033. width: 90%;
  8034. margin: 0 auto;
  8035. padding-top: 30px;
  8036. text-indent: 30px;
  8037. overflow: auto;
  8038. height: 200px;
  8039. }
  8040. .score_box>>>.el-rate {
  8041. margin-left: 10px;
  8042. }
  8043. .dialog_change>>>.el-dialog {
  8044. border-radius: 5px;
  8045. }
  8046. .dialog_change>>>.el-dialog__header {
  8047. background: #f2f2f2;
  8048. text-align: center;
  8049. }
  8050. .dialog_change>>>.el-dialog__title {
  8051. line-height: 5px;
  8052. }
  8053. .dialog_change>>>.el-dialog__body {
  8054. background: #fff;
  8055. padding: 10px 20px;
  8056. }
  8057. .score_box {
  8058. display: flex;
  8059. align-items: center;
  8060. margin-bottom: 18px;
  8061. margin-top: 20px;
  8062. }
  8063. .up_photo {
  8064. width: 120px;
  8065. cursor: pointer;
  8066. margin-top: 10px;
  8067. }
  8068. .up_photo2 {
  8069. width: 180px;
  8070. box-sizing: border-box;
  8071. min-width: 180px;
  8072. height: 180px;
  8073. max-height: 180px;
  8074. min-height: 180px;
  8075. cursor: pointer;
  8076. display: flex;
  8077. flex-direction: column;
  8078. align-items: center;
  8079. justify-content: center;
  8080. background: rgb(242, 246, 255);
  8081. /* padding: 25px; */
  8082. margin-bottom: 10px;
  8083. }
  8084. .up_photo2 img {
  8085. width: 50%;
  8086. height: auto;
  8087. }
  8088. .up_photo2 span {
  8089. color: #898989;
  8090. }
  8091. .plworkBox {
  8092. display: flex;
  8093. align-items: center;
  8094. margin-top: 10px;
  8095. flex-wrap: wrap;
  8096. }
  8097. .upload_send {
  8098. margin: 30px auto 30px;
  8099. width: 60%;
  8100. background: #169bd6;
  8101. text-align: center;
  8102. height: 35px;
  8103. line-height: 35px;
  8104. color: #fff;
  8105. border-radius: 5px;
  8106. cursor: pointer;
  8107. }
  8108. .marginT {
  8109. margin-top: 20px;
  8110. }
  8111. .cd_content_steps {
  8112. display: flex;
  8113. width: 90%;
  8114. justify-content: space-around;
  8115. border-top: 1px solid #eeeeee;
  8116. }
  8117. .cd_steps_box {
  8118. display: flex;
  8119. justify-content: center;
  8120. align-items: center;
  8121. flex-direction: column;
  8122. cursor: pointer;
  8123. }
  8124. .first {
  8125. display: flex;
  8126. align-items: center;
  8127. margin: 15px 0 20px 0;
  8128. font-size: 20px;
  8129. }
  8130. .first>div:nth-child(2) {
  8131. font-size: 16px !important;
  8132. padding-left: 10px;
  8133. line-height: 26px;
  8134. box-sizing: border-box;
  8135. }
  8136. .blue_box_one {
  8137. text-align: center;
  8138. color: #fff;
  8139. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  8140. border-radius: 7px;
  8141. margin: 10px;
  8142. cursor: pointer;
  8143. width: 95%;
  8144. height: 45px;
  8145. display: flex;
  8146. flex-direction: row;
  8147. justify-content: flex-start;
  8148. align-items: center;
  8149. }
  8150. .blue_box_one>div:nth-child(1) {
  8151. line-height: 30px;
  8152. margin: 0 5px 0 10px;
  8153. width: 30%;
  8154. min-width: 70px;
  8155. border-radius: 4px;
  8156. }
  8157. .blue_box_one>div:nth-child(2) {
  8158. white-space: nowrap;
  8159. text-overflow: ellipsis;
  8160. overflow: hidden;
  8161. word-break: break-all;
  8162. width: 70%;
  8163. text-align: left;
  8164. margin-right: 10px;
  8165. max-width: calc(100% - 85px);
  8166. }
  8167. .blue_box_one>div:nth-child(2):hover {
  8168. overflow: hidden;
  8169. text-overflow: ellipsis;
  8170. white-space: nowrap;
  8171. cursor: pointer;
  8172. }
  8173. .upFile {
  8174. margin: 0 auto;
  8175. width: 120px;
  8176. background: #70afdb;
  8177. color: #fff;
  8178. height: 30px;
  8179. text-align: center;
  8180. line-height: 30px;
  8181. border-radius: 5px;
  8182. font-size: 14px;
  8183. cursor: pointer;
  8184. }
  8185. .courseTitle {
  8186. background: #205cc6;
  8187. width: 85%;
  8188. margin: 10px auto;
  8189. color: #fff;
  8190. border-radius: 5px;
  8191. padding: 10px 10px;
  8192. display: flex;
  8193. flex-direction: row;
  8194. align-items: center;
  8195. justify-content: space-between;
  8196. text-align: center;
  8197. }
  8198. .courseTitle .ctitle {
  8199. font-weight: bold;
  8200. font-size: 20px;
  8201. white-space: nowrap;
  8202. overflow: hidden;
  8203. text-overflow: ellipsis;
  8204. }
  8205. .courseTitle .inviteBox {
  8206. font-size: 14px;
  8207. margin-top: 5px;
  8208. color: #a6cbff;
  8209. }
  8210. .courseTitle>>>.el-tooltip {
  8211. width: 100%;
  8212. white-space: nowrap;
  8213. overflow: hidden;
  8214. text-overflow: ellipsis;
  8215. word-break: break-word;
  8216. }
  8217. .ml {
  8218. margin-left: 20px;
  8219. color: #5b7dba;
  8220. border-left: 3px solid #5b7dba;
  8221. padding-left: 5px;
  8222. font-weight: bold;
  8223. }
  8224. .return {
  8225. width: 2rem;
  8226. height: 2rem;
  8227. cursor: pointer;
  8228. }
  8229. .return>img {
  8230. width: 100%;
  8231. height: 100%;
  8232. }
  8233. .returnBtn {
  8234. background: #499eef;
  8235. width: 65px;
  8236. height: 30px;
  8237. color: #fff;
  8238. text-align: center;
  8239. line-height: 32px;
  8240. margin-right: 20px;
  8241. cursor: pointer;
  8242. border-radius: 5px;
  8243. font-size: 14px;
  8244. }
  8245. .mask {
  8246. background-color: rgba(0, 0, 0, 0);
  8247. position: fixed;
  8248. top: 0;
  8249. left: 0;
  8250. width: 100%;
  8251. height: 100%;
  8252. z-index: 20000;
  8253. display: flex;
  8254. align-items: center;
  8255. justify-content: center;
  8256. }
  8257. .progressBox {
  8258. width: 500px;
  8259. height: 180px;
  8260. background: #fff;
  8261. border-radius: 10px;
  8262. box-shadow: 0 0 6px 1px #bfbfbf;
  8263. display: flex;
  8264. align-items: center;
  8265. justify-content: center;
  8266. flex-direction: column;
  8267. position: relative;
  8268. color: #6c6c6c;
  8269. }
  8270. .progressBox>>>.el-progress-bar__outer {
  8271. background-color: #d1dfff !important;
  8272. }
  8273. .progressBox .lbox {
  8274. height: 50px;
  8275. font-size: 19px;
  8276. display: flex;
  8277. align-items: center;
  8278. color: #747474;
  8279. }
  8280. .progressBox .lbox img {
  8281. width: 40px;
  8282. margin-right: 20px;
  8283. }
  8284. .closeCss {
  8285. position: absolute;
  8286. top: 8px;
  8287. right: 8px;
  8288. cursor: pointer;
  8289. width: 20px;
  8290. height: 20px;
  8291. }
  8292. .closeCss>img {
  8293. width: 100%;
  8294. height: 100%;
  8295. }
  8296. .uploadVedio {
  8297. display: flex;
  8298. flex-direction: column;
  8299. flex-wrap: nowrap;
  8300. justify-content: center;
  8301. align-items: center;
  8302. margin: 0 15px 10px 0;
  8303. }
  8304. .uploadVedio>img {
  8305. width: 30px;
  8306. height: 30px;
  8307. }
  8308. .uploadVedio>span {
  8309. white-space: nowrap;
  8310. overflow: hidden;
  8311. text-overflow: ellipsis;
  8312. width: 75px;
  8313. margin-top: 7px;
  8314. }
  8315. .picName {
  8316. white-space: nowrap;
  8317. overflow: hidden;
  8318. text-overflow: ellipsis;
  8319. width: 75px;
  8320. margin-top: 7px;
  8321. }
  8322. .new_top {
  8323. display: flex;
  8324. background: #fff;
  8325. flex-direction: row;
  8326. justify-content: flex-start;
  8327. align-items: center;
  8328. height: 60px;
  8329. position: relative;
  8330. }
  8331. .before {
  8332. position: absolute;
  8333. background: #c3dad4;
  8334. width: 6px;
  8335. height: 100%;
  8336. }
  8337. .courseIndex {
  8338. display: flex;
  8339. flex-direction: row;
  8340. align-items: center;
  8341. width: calc(100% - 520px);
  8342. }
  8343. .courseIndex>div:nth-child(1) {
  8344. margin: 0 20px;
  8345. padding-left: 5px;
  8346. font-size: 24px;
  8347. min-width: 100px;
  8348. font-weight: bold;
  8349. border-left: 4px solid #3363b9;
  8350. height: 35px;
  8351. text-align: center;
  8352. line-height: 35px;
  8353. }
  8354. .courseIndex>div:nth-child(2) {
  8355. font-size: 23px;
  8356. /* width: 300px; */
  8357. max-width: calc(100% - 180px);
  8358. white-space: nowrap;
  8359. overflow: hidden;
  8360. text-overflow: ellipsis;
  8361. }
  8362. .courseIndex>div:nth-child(3) {
  8363. border-bottom: 1px solid #d7d7d7;
  8364. padding-bottom: 5px;
  8365. background: #49a0f0;
  8366. width: 55px;
  8367. min-width: 55px;
  8368. border-radius: 5px;
  8369. color: #fff;
  8370. text-align: center;
  8371. height: 20px;
  8372. line-height: 26px;
  8373. font-size: 14px;
  8374. margin: 0 0 0 10px;
  8375. }
  8376. .course_text {
  8377. padding: 20px 0 0 15px;
  8378. text-indent: 30px;
  8379. width: 80%;
  8380. min-height: 20px;
  8381. }
  8382. .vedioList {
  8383. background: #f2f2f2;
  8384. border: 1px solid #ececec;
  8385. /* width: 38.8%; */
  8386. width: 100%;
  8387. height: 445px;
  8388. border-radius: 10px;
  8389. overflow: hidden;
  8390. }
  8391. .vedioNav {
  8392. margin: 10px 0 0 15px;
  8393. border-bottom: 1px solid #d7d7d7;
  8394. padding-bottom: 5px;
  8395. background: #96d1ff;
  8396. width: 55px;
  8397. min-width: 55px;
  8398. border-radius: 5px;
  8399. color: #fff;
  8400. text-align: center;
  8401. height: 20px;
  8402. line-height: 26px;
  8403. font-size: 14px;
  8404. }
  8405. .queTop {
  8406. display: flex;
  8407. padding: 20px 0 20px 30px;
  8408. width: 100%;
  8409. flex-direction: row;
  8410. justify-content: flex-start;
  8411. align-items: center;
  8412. border-bottom: 1px solid #eeeeee;
  8413. box-sizing: border-box;
  8414. }
  8415. .question {
  8416. width: 40px;
  8417. margin-right: 10px;
  8418. margin-top: 7px;
  8419. }
  8420. .queTitle {
  8421. margin-left: 5px;
  8422. font-size: 25px;
  8423. display: flex;
  8424. align-items: center;
  8425. }
  8426. .addEditor {
  8427. width: 100px;
  8428. height: 30px;
  8429. background: #42cda6;
  8430. color: #fff;
  8431. border-radius: 5px;
  8432. text-align: center;
  8433. line-height: 30px;
  8434. box-shadow: 1px 3px 6px 1px #bfbfbf;
  8435. cursor: pointer;
  8436. }
  8437. .vedioName {
  8438. /* text-overflow: ellipsis;
  8439. top: 8px;
  8440. font-size: 14px;
  8441. overflow: hidden;
  8442. width: 100%;
  8443. word-break: break-all;
  8444. white-space: nowrap; */
  8445. cursor: pointer;
  8446. margin: 0px 0px 10px 5px;
  8447. white-space: nowrap;
  8448. overflow: hidden;
  8449. text-overflow: ellipsis;
  8450. width: 100%;
  8451. }
  8452. .vedioTime {
  8453. width: 35px;
  8454. position: absolute;
  8455. color: #fff;
  8456. bottom: 0px;
  8457. right: 0px;
  8458. text-align: center;
  8459. background: #46411f;
  8460. height: 20px;
  8461. font-size: 14px;
  8462. line-height: 20px;
  8463. }
  8464. .homework {
  8465. width: 200px;
  8466. display: flex;
  8467. flex-direction: column;
  8468. flex-wrap: nowrap;
  8469. align-items: center;
  8470. cursor: pointer;
  8471. }
  8472. .homebox {
  8473. display: flex;
  8474. flex-wrap: wrap;
  8475. flex-direction: row;
  8476. justify-content: flex-start;
  8477. align-items: center;
  8478. padding: 15px 0;
  8479. }
  8480. .isChooseActive {
  8481. color: #3e88f4;
  8482. border-bottom: 2px solid #2f80f3;
  8483. }
  8484. .tool_box {
  8485. width: 100%;
  8486. margin-top: 20px
  8487. }
  8488. .tool_type_box {
  8489. display: flex;
  8490. flex-direction: row;
  8491. align-items: baseline;
  8492. flex-wrap: nowrap;
  8493. justify-content: flex-start;
  8494. position: relative;
  8495. }
  8496. .addPoint>div>img {
  8497. cursor: pointer;
  8498. margin: 0 10px;
  8499. width: 85px;
  8500. border-radius: 15px;
  8501. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  8502. }
  8503. .addPoint>div {
  8504. display: flex;
  8505. flex-direction: column;
  8506. flex-wrap: nowrap;
  8507. align-items: center;
  8508. }
  8509. .isBorder>div {
  8510. margin: 0 0 10px 0;
  8511. align-items: flex-start !important;
  8512. }
  8513. .noiframeBox {
  8514. display: flex;
  8515. flex-wrap: wrap;
  8516. }
  8517. .iframeBox iframe {
  8518. width: 100%;
  8519. height: 800px;
  8520. border: none;
  8521. margin-bottom: 20px;
  8522. border: 1px solid #ccc;
  8523. }
  8524. .upload_toolBtn {
  8525. background: #6b92c9;
  8526. color: #fff;
  8527. width: 110px;
  8528. text-align: center;
  8529. height: 35px;
  8530. line-height: 35px;
  8531. font-size: 14px;
  8532. border-radius: 5px;
  8533. cursor: pointer;
  8534. position: absolute;
  8535. right: 10px;
  8536. bottom: 0;
  8537. }
  8538. .binfo_input,
  8539. .pj {
  8540. font: inherit;
  8541. color: currentColor;
  8542. width: 100%;
  8543. margin: 0;
  8544. padding: 15px 14px;
  8545. display: block;
  8546. min-width: 0;
  8547. outline: none;
  8548. box-sizing: content-box;
  8549. background: none;
  8550. -webkit-tap-highlight-color: transparent;
  8551. border: 1px solid rgba(0, 0, 0, 0.23);
  8552. border-radius: 4px;
  8553. box-sizing: border-box;
  8554. resize: none;
  8555. }
  8556. .binfo_input:focus-visible {
  8557. border: 1px solid rgba(61, 103, 188);
  8558. }
  8559. .dialog_diy>>>.el-dialog__header,
  8560. .dialog_diy1>>>.el-dialog__header {
  8561. background: #454545 !important;
  8562. padding: 15px 20px;
  8563. }
  8564. .dialog_diy>>>.el-dialog__title,
  8565. .dialog_diy1>>>.el-dialog__title {
  8566. color: #fff;
  8567. }
  8568. .dialog_diy>>>.el-dialog__headerbtn,
  8569. .dialog_diy1>>>.el-dialog__headerbtn {
  8570. top: 19px;
  8571. }
  8572. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  8573. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  8574. color: #fff;
  8575. }
  8576. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  8577. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8578. color: #fff;
  8579. }
  8580. .dialog_diy1>>>.el-dialog__body {
  8581. padding: 0;
  8582. }
  8583. .dialog_diy>>>.el-dialog__body,
  8584. .dialog_diy>>>.el-dialog__footer,
  8585. .dialog_diy1>>>.el-dialog__footer {
  8586. background: #fafafa;
  8587. }
  8588. .a_addBox {
  8589. margin: 10px 0;
  8590. background: #fff;
  8591. padding: 15px;
  8592. }
  8593. .a_add_box {
  8594. border-bottom: 2px solid #eee;
  8595. padding-bottom: 10px;
  8596. }
  8597. .a_add_head {
  8598. display: flex;
  8599. align-items: flex-start;
  8600. /* justify-content: space-between; */
  8601. flex-direction: column;
  8602. /* flex-direction: row; */
  8603. margin: 10px 0 20px 0;
  8604. font-size: 18px;
  8605. width: 100%;
  8606. }
  8607. .a_add_head .a_add_head_input {
  8608. width: 300px;
  8609. }
  8610. .a_add_head .a_add_head_div {
  8611. display: flex;
  8612. align-items: center;
  8613. justify-content: space-between;
  8614. }
  8615. .a_add_body {
  8616. display: flex;
  8617. align-items: center;
  8618. }
  8619. .a_add_input {
  8620. display: flex;
  8621. align-items: center;
  8622. flex-wrap: wrap;
  8623. }
  8624. .a_add_input>>>el-radio-group {
  8625. margin: 10px 0;
  8626. }
  8627. .a_add_input>>>.el-radio,
  8628. .a_add_input>>>.el-checkbox {
  8629. margin-bottom: 10px;
  8630. display: flex;
  8631. flex-direction: row;
  8632. flex-wrap: nowrap;
  8633. align-items: center;
  8634. }
  8635. .redioStyle>>>.el-radio__label {
  8636. font-size: 18px;
  8637. }
  8638. .redioStyle>>>.el-checkbox__label {
  8639. font-size: 18px;
  8640. }
  8641. .toolHeng2 {
  8642. width: 100%;
  8643. }
  8644. .toolHeng {
  8645. display: flex;
  8646. flex-direction: row;
  8647. flex-wrap: wrap;
  8648. justify-content: flex-start;
  8649. align-items: center;
  8650. width: 100%;
  8651. }
  8652. .toolHeng>div {
  8653. padding-left: 20px;
  8654. }
  8655. .isWidth {
  8656. width: 20%;
  8657. }
  8658. .textTitle {
  8659. display: flex;
  8660. flex-direction: row;
  8661. flex-wrap: nowrap;
  8662. align-items: center;
  8663. width: 95%;
  8664. }
  8665. .textTitle>>>.el-form-item__label {
  8666. font-size: 22px;
  8667. color: #918f8f;
  8668. width: 100px;
  8669. }
  8670. .textTitle>>>.el-form-item__content {
  8671. width: calc(100% - 100px);
  8672. }
  8673. .textCss>>>.el-dialog {
  8674. width: 800px !important;
  8675. height: 400px;
  8676. background: #fafafa;
  8677. }
  8678. .textCss>>>.el-dialog__body {
  8679. margin: 55px 8% 0 8%;
  8680. padding: 0 !important;
  8681. }
  8682. .textCss>>>.el-dialog__footer {
  8683. padding-top: 38px;
  8684. }
  8685. .toolsCss>>>.el-dialog__body {
  8686. padding: 20px;
  8687. }
  8688. .lineCss>>>.el-dialog__body {
  8689. display: flex;
  8690. flex-direction: row;
  8691. align-items: center;
  8692. justify-content: center;
  8693. }
  8694. .newNav {
  8695. display: flex;
  8696. flex-direction: row;
  8697. align-items: baseline;
  8698. justify-content: flex-start;
  8699. }
  8700. .navText {
  8701. cursor: pointer;
  8702. margin: 0px 0px 10px 5px;
  8703. white-space: nowrap;
  8704. overflow: hidden;
  8705. text-overflow: ellipsis;
  8706. /* width: 300px; */
  8707. width: 100%;
  8708. }
  8709. .noVedio {
  8710. display: flex;
  8711. flex-direction: row;
  8712. justify-content: center;
  8713. align-content: center;
  8714. }
  8715. .noNavText {
  8716. cursor: pointer;
  8717. margin: 0px 0px 10px 5px;
  8718. width: 112px;
  8719. }
  8720. .listNoVedio {
  8721. margin: 0 0 0 30px;
  8722. width: 97%;
  8723. }
  8724. .video-player>>>.video-js {
  8725. height: 100%;
  8726. }
  8727. .hangVedioList {
  8728. width: 90% !important;
  8729. height: 150px !important;
  8730. margin: 20px 0 0 30px;
  8731. }
  8732. .hangVedio {
  8733. width: 100%;
  8734. height: 170px !important;
  8735. align-items: flex-start !important;
  8736. }
  8737. .hangHand {
  8738. height: 150px !important;
  8739. }
  8740. .twoChild {
  8741. width: 95%;
  8742. margin: 10px;
  8743. border-radius: 5px;
  8744. background: #f2f2f2;
  8745. display: flex;
  8746. flex-direction: column;
  8747. flex-wrap: nowrap;
  8748. justify-content: flex-start;
  8749. align-items: flex-start;
  8750. transition: all 0.5s;
  8751. overflow: hidden;
  8752. height: 0;
  8753. background: #e7f3ff;
  8754. }
  8755. .twoChild>div:nth-child(1) {
  8756. margin-top: 5px;
  8757. }
  8758. .navChild {
  8759. width: 100%;
  8760. cursor: pointer;
  8761. margin-bottom: 10px;
  8762. position: relative;
  8763. }
  8764. .navChild img {
  8765. position: absolute;
  8766. right: 11px;
  8767. width: 15px;
  8768. top: 50%;
  8769. transform: translateY(-50%);
  8770. }
  8771. .navActive {
  8772. height: auto;
  8773. }
  8774. .navTask {
  8775. display: flex;
  8776. flex-direction: row;
  8777. flex-wrap: nowrap;
  8778. align-items: center;
  8779. align-content: flex-start;
  8780. height: 40px;
  8781. justify-content: flex-start;
  8782. padding: 0 10px;
  8783. width: 100%;
  8784. box-sizing: border-box;
  8785. }
  8786. .navTaskname {
  8787. white-space: nowrap;
  8788. text-overflow: ellipsis;
  8789. overflow: hidden;
  8790. word-break: break-all;
  8791. padding-left: 5px;
  8792. }
  8793. .openTaskActive {
  8794. color: #4386e6;
  8795. }
  8796. .iframeName {
  8797. margin: 5px 0;
  8798. border-left: 4px solid #41c4a4;
  8799. padding-left: 4px;
  8800. }
  8801. .toolTitle {
  8802. margin: 0px 0px 20px;
  8803. font-size: 20px;
  8804. font-weight: 500;
  8805. border-left: 4px solid #41c4a4;
  8806. padding-left: 4px;
  8807. }
  8808. .cru_selectBox {
  8809. overflow: auto;
  8810. width: 96%;
  8811. margin: 0 auto;
  8812. height: calc(100% - 40px - 21px - 20px);
  8813. }
  8814. .cru_selectBox::-webkit-scrollbar,
  8815. .study_top::-webkit-scrollbar,
  8816. .textContent::-webkit-scrollbar {
  8817. /*滚动条整体样式*/
  8818. width: 6px;
  8819. /*高宽分别对应横竖滚动条的尺寸*/
  8820. height: 6px;
  8821. }
  8822. /*定义滚动条轨道 内阴影+圆角*/
  8823. .cru_selectBox::-webkit-scrollbar-track,
  8824. .study_top::-webkit-scrollbar-track,
  8825. .textContent::-webkit-scrollbar {
  8826. border-radius: 10px;
  8827. background-color: #b8bdc9;
  8828. }
  8829. /*定义滑块 内阴影+圆角*/
  8830. .cru_selectBox::-webkit-scrollbar-thumb,
  8831. .study_top::-webkit-scrollbar-thumb,
  8832. .textContent::-webkit-scrollbar-thumb {
  8833. border-radius: 10px;
  8834. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  8835. background-color: #2c5ab3;
  8836. }
  8837. .vedioBox {
  8838. border-radius: 20px;
  8839. background: #fff;
  8840. margin-bottom: 10px;
  8841. overflow: auto;
  8842. }
  8843. .taskBox {
  8844. margin: 15px auto 20px;
  8845. background: #f7f7f7;
  8846. width: 97%;
  8847. border-radius: 10px;
  8848. }
  8849. .vedioTaskBox {
  8850. width: 100%;
  8851. display: flex;
  8852. flex-direction: row;
  8853. flex-wrap: nowrap;
  8854. align-items: flex-start;
  8855. position: relative;
  8856. }
  8857. .toolBox {
  8858. padding: 20px 60px 15px;
  8859. display: flex;
  8860. position: relative;
  8861. }
  8862. .btnAll {
  8863. position: absolute;
  8864. right: 0;
  8865. display: flex;
  8866. flex-direction: row;
  8867. flex-wrap: nowrap;
  8868. align-items: center;
  8869. }
  8870. .btnAllNT {
  8871. position: fixed;
  8872. bottom: 50px;
  8873. right: 40px;
  8874. z-index: 999;
  8875. display: flex;
  8876. flex-direction: row;
  8877. }
  8878. .btnAllNT>img {
  8879. cursor: pointer;
  8880. width: 80px;
  8881. }
  8882. .vedioTimeBox {
  8883. display: flex;
  8884. flex-direction: row;
  8885. align-items: center;
  8886. flex-wrap: nowrap;
  8887. position: relative;
  8888. }
  8889. .navBox {
  8890. background: #fff;
  8891. height: calc(100% - 40px);
  8892. padding: 5px 1px 0;
  8893. overflow-y: auto;
  8894. overflow-x: hidden;
  8895. }
  8896. .tool_work_box {
  8897. width: 100%;
  8898. padding: 0 30px 10px;
  8899. box-sizing: border-box;
  8900. }
  8901. .worksBox {
  8902. padding: 5px 0;
  8903. border-bottom: 1px solid #eeeeee;
  8904. }
  8905. .worksBTitle {
  8906. font-size: 20px;
  8907. padding-bottom: 15px;
  8908. border-bottom: 1px solid #eeeeee;
  8909. display: flex;
  8910. align-items: center;
  8911. }
  8912. .greenBox {
  8913. width: 5px;
  8914. height: 30px;
  8915. background: #63b6fa;
  8916. margin-right: 5px;
  8917. }
  8918. .worksDetailBox {
  8919. display: flex;
  8920. width: 100%;
  8921. flex-direction: row;
  8922. flex-wrap: wrap;
  8923. align-items: flex-end;
  8924. justify-content: flex-start;
  8925. padding: 15px 0;
  8926. }
  8927. .works {
  8928. display: flex;
  8929. flex-direction: column;
  8930. flex-wrap: nowrap;
  8931. align-items: flex-start;
  8932. justify-content: flex-start;
  8933. align-content: center;
  8934. max-width: 240px;
  8935. width: calc(100% / 3 - 10px);
  8936. height: auto;
  8937. margin-right: 10px;
  8938. margin-bottom: 10px;
  8939. overflow: hidden;
  8940. height: 140px;
  8941. box-shadow: 0 0 6px 1px #dfdada;
  8942. border-radius: 15px;
  8943. }
  8944. .workImg {
  8945. width: 100%;
  8946. /* height: calc(100% - 40px); */
  8947. height: 105px;
  8948. position: relative;
  8949. }
  8950. .workImg>img {
  8951. width: 100%;
  8952. height: 100%;
  8953. object-fit: contain;
  8954. cursor: pointer;
  8955. }
  8956. .worksName {
  8957. height: 40px;
  8958. line-height: 40px;
  8959. display: flex;
  8960. width: 100%;
  8961. flex-direction: row;
  8962. flex-wrap: nowrap;
  8963. justify-content: space-between;
  8964. align-items: center;
  8965. margin: 0 0 0 10px;
  8966. }
  8967. .worksName>div:nth-child(1) {
  8968. width: 110px;
  8969. white-space: nowrap;
  8970. overflow: hidden;
  8971. text-overflow: ellipsis;
  8972. }
  8973. .worksName>div:nth-child(2) {
  8974. color: #b7b4b5;
  8975. }
  8976. .noWorksS {
  8977. padding: 15px 0 0;
  8978. display: flex;
  8979. flex-direction: row;
  8980. flex-wrap: wrap;
  8981. align-items: center;
  8982. justify-content: flex-start;
  8983. }
  8984. .noWorksS>div {
  8985. cursor: pointer;
  8986. }
  8987. .noWorksName,
  8988. .isWorksName {
  8989. background: #7cbcf1;
  8990. color: #fff;
  8991. width: 90px;
  8992. height: 25px;
  8993. text-align: center;
  8994. line-height: 25px;
  8995. border-radius: 5px;
  8996. margin: 10px 15px 10px 0;
  8997. white-space: nowrap;
  8998. overflow: hidden;
  8999. padding: 5px;
  9000. text-overflow: ellipsis;
  9001. }
  9002. .noWorksName.isWork {
  9003. background: #165d96 !important;
  9004. }
  9005. .isWorksName {
  9006. cursor: pointer;
  9007. background: #46a1eb !important;
  9008. width: 100px;
  9009. height: 40px;
  9010. line-height: 40px;
  9011. position: relative;
  9012. }
  9013. .noWorksName:hover {
  9014. background: #46a1eb !important;
  9015. }
  9016. .title {
  9017. background: #1e5cc9;
  9018. /* width: 98%; */
  9019. height: 45px;
  9020. color: #fff;
  9021. line-height: 45px;
  9022. padding-left: 20px;
  9023. box-sizing: border-box;
  9024. }
  9025. .textBox {
  9026. font-size: 20px;
  9027. width: 90%;
  9028. display: flex;
  9029. flex-direction: column;
  9030. align-items: center;
  9031. margin: 20px auto 0;
  9032. max-height: 500px;
  9033. overflow: auto;
  9034. }
  9035. .textContent {
  9036. font-size: 18px;
  9037. width: 95%;
  9038. max-width: 95%;
  9039. }
  9040. .answerBg {
  9041. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  9042. background-size: 100% 100%;
  9043. width: 100%;
  9044. height: 100%;
  9045. color: #fff;
  9046. text-align: center;
  9047. display: flex;
  9048. flex-direction: column;
  9049. flex-wrap: nowrap;
  9050. align-items: center;
  9051. position: relative;
  9052. justify-content: center;
  9053. }
  9054. .answerBg>div:nth-child(1) {
  9055. /* font-size: 22px;
  9056. padding: 25px 0 10px; */
  9057. }
  9058. .answerContent {
  9059. width: 215px;
  9060. max-height: 60px;
  9061. word-break: break-all;
  9062. text-align: center;
  9063. /* white-space: nowrap; */
  9064. overflow: hidden;
  9065. text-overflow: ellipsis;
  9066. /* padding: 23px 0 0; */
  9067. -webkit-line-clamp: 3;
  9068. -webkit-box-orient: vertical;
  9069. display: -webkit-box;
  9070. font-size: 15px;
  9071. cursor: pointer;
  9072. }
  9073. .elist_input_box {
  9074. display: flex;
  9075. align-items: flex-start;
  9076. flex-wrap: nowrap;
  9077. padding: 10px 0 15px 30px;
  9078. flex-direction: column;
  9079. }
  9080. .elist_input {
  9081. /* width: 40%; */
  9082. width: 100%;
  9083. }
  9084. .elist_input .elist_input_box input {
  9085. font: inherit;
  9086. color: currentColor;
  9087. width: 200px;
  9088. padding: 8px 14px;
  9089. display: block;
  9090. min-width: 0;
  9091. outline: none;
  9092. border: 1px solid rgba(0, 0, 0, 0.23);
  9093. border-radius: 4px;
  9094. box-sizing: border-box;
  9095. background: #fff;
  9096. margin: 0 20px 0 0;
  9097. }
  9098. .elist_input .elist_input_box span {
  9099. height: 36px;
  9100. line-height: 36px;
  9101. color: rgb(82, 82, 82);
  9102. }
  9103. .elist_input .elist_input_box .remove {
  9104. height: 20px;
  9105. width: 20px;
  9106. background-size: 100% 100%;
  9107. background-position: unset;
  9108. margin-left: 5px;
  9109. }
  9110. .elist_input_box>>>.el-rate {
  9111. display: flex;
  9112. height: 36px;
  9113. align-items: center;
  9114. }
  9115. .elist_input_box .elist_inptu_text {
  9116. min-height: 50px;
  9117. /* width: 500px;
  9118. max-height: 150px; */
  9119. width: 100%;
  9120. line-height: 50px;
  9121. color: rgb(82, 82, 82);
  9122. overflow: auto;
  9123. text-indent: 5px;
  9124. background: #f7f6f9;
  9125. border-radius: 10px;
  9126. }
  9127. .elist_input_box .elist_inptu_text input {
  9128. width: 500px;
  9129. }
  9130. .elist_input_box>>>.el-rate__icon {
  9131. font-size: 24px;
  9132. }
  9133. .isClick {
  9134. background: #4d9def;
  9135. }
  9136. /*定义滚动条轨道 内阴影+圆角*/
  9137. .bzTypeBox::-webkit-scrollbar {
  9138. /*滚动条整体样式*/
  9139. width: 6px;
  9140. /*高宽分别对应横竖滚动条的尺寸*/
  9141. height: 6px;
  9142. }
  9143. /*定义滚动条轨道 内阴影+圆角*/
  9144. .bzTypeBox::-webkit-scrollbar-track {
  9145. border-radius: 10px;
  9146. background-color: rgba(0, 0, 0, 0.1);
  9147. }
  9148. /*定义滑块 内阴影+圆角*/
  9149. .bzTypeBox::-webkit-scrollbar-thumb {
  9150. border-radius: 10px;
  9151. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  9152. background-color: rgba(0, 0, 0, 0.1);
  9153. }
  9154. .choiceBox {
  9155. display: flex;
  9156. margin: 20px 0;
  9157. width: 100%;
  9158. }
  9159. .bzTypeBox {
  9160. display: flex;
  9161. width: 100%;
  9162. overflow: auto;
  9163. white-space: nowrap;
  9164. }
  9165. .bzChild {
  9166. cursor: pointer;
  9167. box-sizing: border-box;
  9168. padding-bottom: 10px;
  9169. font-weight: bold;
  9170. min-width: fit-content;
  9171. }
  9172. .bzChild.active {
  9173. color: #3e88f4;
  9174. border-bottom: 2px solid #2f80f3;
  9175. }
  9176. .bzChild+.bzChild {
  9177. margin-left: 25px;
  9178. }
  9179. .bzBox {
  9180. display: flex;
  9181. flex-direction: row;
  9182. align-items: center;
  9183. }
  9184. .bzBox>div:nth-child(1) {
  9185. width: 4px;
  9186. height: 40px;
  9187. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  9188. }
  9189. .bzBox>div:nth-child(2) {
  9190. font-size: 23px;
  9191. font-weight: bold;
  9192. padding: 0px 0px 0 10px;
  9193. }
  9194. .navTitile {
  9195. padding: 0 0px 0 15px;
  9196. color: #fff;
  9197. height: 40px;
  9198. line-height: 40px;
  9199. }
  9200. .isTypeOne {
  9201. width: 240px;
  9202. height: 170px;
  9203. /* border: 1px solid #f8f8f8; */
  9204. border-radius: 10px;
  9205. box-shadow: 0 0 6px 1px #dfdada;
  9206. }
  9207. .e_add_top {
  9208. display: flex;
  9209. justify-content: space-between;
  9210. padding: 20px 20px 0 20px;
  9211. border-radius: 3px;
  9212. background: #fff;
  9213. }
  9214. .e_add_title2 {
  9215. display: flex;
  9216. align-items: center;
  9217. }
  9218. .e_add_title2 span {
  9219. width: 40px;
  9220. }
  9221. .e_add_title {
  9222. display: flex;
  9223. align-items: center;
  9224. color: #b8b8b8;
  9225. font-size: 18px;
  9226. position: relative;
  9227. height: 40px;
  9228. }
  9229. .e_add_title span {
  9230. margin-right: 10px;
  9231. }
  9232. .e_add_title .el_input {
  9233. width: 300px;
  9234. }
  9235. .e_add_title>>>.el-input__inner {
  9236. width: 400px;
  9237. }
  9238. .e_add_btn {}
  9239. .e_add_content {
  9240. display: flex;
  9241. width: 100%;
  9242. max-width: 650px;
  9243. height: 550px;
  9244. }
  9245. .e_add_list {
  9246. background: #fff;
  9247. height: 500px;
  9248. width: 210px;
  9249. position: relative;
  9250. margin: 15px 5px 0 0;
  9251. flex-shrink: 0;
  9252. display: flex;
  9253. flex-direction: column;
  9254. }
  9255. .e_add_list_title {
  9256. font-size: 20px;
  9257. width: 100%;
  9258. box-sizing: border-box;
  9259. padding: 15px 40px;
  9260. text-align: center;
  9261. border-bottom: 1px solid #eaeaea;
  9262. position: relative;
  9263. display: flex;
  9264. align-items: center;
  9265. justify-content: center;
  9266. height: 57px;
  9267. background: #f6f6f6;
  9268. }
  9269. .e_add_list_title span {
  9270. overflow: hidden;
  9271. white-space: nowrap;
  9272. text-overflow: ellipsis;
  9273. }
  9274. .e_add_list_title img {
  9275. position: absolute;
  9276. right: 15px;
  9277. width: 25px;
  9278. cursor: pointer;
  9279. top: 50%;
  9280. transform: translateY(-50%);
  9281. }
  9282. .e_add_list_body {
  9283. height: calc(100% - 187px);
  9284. overflow: auto;
  9285. }
  9286. .e_add_list_child {
  9287. width: 100%;
  9288. display: flex;
  9289. align-items: center;
  9290. justify-content: center;
  9291. position: relative;
  9292. box-sizing: border-box;
  9293. padding: 15px 40px;
  9294. text-align: center;
  9295. }
  9296. .e_add_list_child span {
  9297. overflow: hidden;
  9298. white-space: nowrap;
  9299. text-overflow: ellipsis;
  9300. cursor: pointer;
  9301. }
  9302. .e_add_list_child img {
  9303. position: absolute;
  9304. right: 10px;
  9305. width: 21px;
  9306. cursor: pointer;
  9307. top: 50%;
  9308. transform: translateY(-50%);
  9309. }
  9310. .e_add_list_child+.e_add_list_child {
  9311. border-top: 1px solid #eaeaea;
  9312. }
  9313. .e_add_list_child .active {
  9314. color: #409eff;
  9315. }
  9316. .e_add_list_btn {
  9317. position: absolute;
  9318. bottom: 0;
  9319. height: 50px;
  9320. background: rgb(120, 120, 254);
  9321. width: 100%;
  9322. color: #fff;
  9323. font-size: 16px;
  9324. text-align: center;
  9325. line-height: 50px;
  9326. cursor: pointer;
  9327. }
  9328. .e_add_list_detail {
  9329. position: absolute;
  9330. bottom: 0;
  9331. height: 130px;
  9332. background: rgb(120, 120, 254);
  9333. width: 100%;
  9334. color: #fff;
  9335. font-size: 16px;
  9336. display: flex;
  9337. align-items: center;
  9338. justify-content: center;
  9339. }
  9340. .e_add_list_detail textarea {
  9341. height: 90%;
  9342. width: 95%;
  9343. border: none;
  9344. resize: none;
  9345. outline: none;
  9346. padding: 5px;
  9347. box-sizing: border-box;
  9348. }
  9349. .e_add_list_pbox {
  9350. width: 100%;
  9351. max-width: 650px;
  9352. /* height: 600px; */
  9353. }
  9354. .e_add_list_pbox_title {
  9355. height: 50px;
  9356. background: #fff;
  9357. display: flex;
  9358. align-items: center;
  9359. width: 100%;
  9360. box-sizing: border-box;
  9361. padding: 0 20px;
  9362. }
  9363. .type_title {
  9364. font-size: 18px;
  9365. font-weight: 700;
  9366. }
  9367. .type_content {
  9368. font-size: 16px;
  9369. margin-left: 30px;
  9370. }
  9371. .type_content span+span {
  9372. margin-left: 20px;
  9373. }
  9374. .type_content span {
  9375. cursor: pointer;
  9376. padding-bottom: 5px;
  9377. box-sizing: border-box;
  9378. }
  9379. .type_content .active {
  9380. color: #409eff;
  9381. border-bottom: 2px solid #409eff;
  9382. }
  9383. .e_add_list_pbox_content {
  9384. height: calc(100% - 50px);
  9385. display: flex;
  9386. align-items: center;
  9387. width: 100%;
  9388. background: #fff;
  9389. }
  9390. .evaCss {
  9391. display: flex;
  9392. flex-direction: row;
  9393. flex-wrap: nowrap;
  9394. align-items: flex-start;
  9395. }
  9396. .cru_line {
  9397. position: absolute;
  9398. bottom: 0px;
  9399. transition: all 0.5s;
  9400. left: 0px;
  9401. width: 125px;
  9402. margin-left: -25px;
  9403. }
  9404. .isNoMessage {
  9405. width: 20%;
  9406. margin: 25% auto 0;
  9407. }
  9408. .isNoMessage>img {
  9409. width: 100%;
  9410. height: 100%;
  9411. }
  9412. .fullStyle>>>.el-dialog__body {
  9413. height: 100% !important;
  9414. }
  9415. .fullStyle>>>.el-dialog,
  9416. .fullStyle {
  9417. width: 100% !important;
  9418. max-width: 100% !important;
  9419. height: 100% !important;
  9420. margin: 0 !important;
  9421. }
  9422. .full_diy>>>.el-dialog {
  9423. margin: 0 !important;
  9424. height: 100%;
  9425. padding: 4px;
  9426. }
  9427. .full_diy>>>.el-dialog__body {
  9428. height: calc(100% - 100px);
  9429. }
  9430. .full_diy2>>>.el-dialog__body {
  9431. height: calc(100% - 50px);
  9432. padding: 0;
  9433. }
  9434. .switchCss {
  9435. /* width: 100%; */
  9436. display: flex;
  9437. flex-direction: row;
  9438. flex-wrap: nowrap;
  9439. align-items: center;
  9440. /* justify-content: center; */
  9441. }
  9442. .isClickNav {
  9443. color: #499eef;
  9444. }
  9445. .commentImg {
  9446. width: 25px;
  9447. height: 25px;
  9448. cursor: pointer;
  9449. }
  9450. .commentImg>img {
  9451. width: 100%;
  9452. height: 100%;
  9453. }
  9454. .comment {
  9455. background: #f9f9f9;
  9456. border-radius: 0 0 15px 15px;
  9457. display: flex;
  9458. flex-direction: row;
  9459. flex-wrap: nowrap;
  9460. align-items: center;
  9461. justify-content: flex-end;
  9462. height: 35px;
  9463. }
  9464. .commentList {
  9465. display: flex;
  9466. flex-direction: row;
  9467. flex-wrap: nowrap;
  9468. align-items: center;
  9469. justify-content: center;
  9470. align-content: center;
  9471. /* margin-left: 15px; */
  9472. /* margin-left: 8px; */
  9473. }
  9474. .scoreImg {
  9475. width: 17px;
  9476. height: 17px;
  9477. }
  9478. .studentDetail {
  9479. display: flex;
  9480. flex-direction: row;
  9481. flex-wrap: nowrap;
  9482. /* align-items: center; */
  9483. align-items: flex-start;
  9484. }
  9485. .tx {
  9486. width: 50px;
  9487. }
  9488. .tx>img {
  9489. width: 100%;
  9490. height: 100%;
  9491. }
  9492. .nameAndTime {
  9493. display: flex;
  9494. flex-direction: column;
  9495. flex-wrap: nowrap;
  9496. align-items: flex-start;
  9497. margin-left: 10px;
  9498. }
  9499. .worksAnswer {
  9500. color: #4078dd;
  9501. margin: 10px 0;
  9502. font-size: 16px;
  9503. position: relative;
  9504. }
  9505. .worksAnswer>img {
  9506. width: 500px;
  9507. height: 300px;
  9508. object-fit: contain;
  9509. margin: 0 auto;
  9510. display: block;
  9511. }
  9512. .commentTop {
  9513. border-bottom: 1px solid #eaeaea;
  9514. padding-bottom: 10px;
  9515. }
  9516. .commentBox {
  9517. padding-top: 15px;
  9518. }
  9519. .pl {
  9520. font-size: 18px;
  9521. }
  9522. .plPerson {
  9523. width: 100%;
  9524. }
  9525. .plName {
  9526. display: flex;
  9527. flex-direction: row;
  9528. flex-wrap: nowrap;
  9529. align-items: baseline;
  9530. color: #78787a;
  9531. width: 100%;
  9532. }
  9533. .deleteComment {
  9534. cursor: pointer;
  9535. margin-left: auto;
  9536. color: #237ade;
  9537. }
  9538. .plContent {
  9539. margin-top: 5px;
  9540. }
  9541. .evalCss {
  9542. background: #fff;
  9543. font-size: 18px;
  9544. }
  9545. .nav {
  9546. color: #9d9d9d;
  9547. padding: 5px 0 15px 20px;
  9548. }
  9549. .middleBox {
  9550. padding: 5px 0 15px 20px;
  9551. }
  9552. .pfBox {
  9553. padding-bottom: 30px;
  9554. }
  9555. .nameAndrate {
  9556. display: flex;
  9557. flex-direction: row;
  9558. flex-wrap: nowrap;
  9559. align-items: center;
  9560. padding-bottom: 10px;
  9561. height: 30px;
  9562. line-height: 30px;
  9563. }
  9564. .nameAndrate>div {
  9565. margin-left: 10px;
  9566. color: #000;
  9567. height: 30px;
  9568. }
  9569. .nameAndrate>>>.el-rate__icon {
  9570. font-size: 28px !important;
  9571. }
  9572. .pfBox>div:nth-child(2) {
  9573. background: #f7f6f9;
  9574. width: 400px;
  9575. min-height: 45px;
  9576. border-radius: 10px;
  9577. font-size: 16px;
  9578. display: flex;
  9579. flex-wrap: wrap;
  9580. align-items: center;
  9581. padding: 10px 20px;
  9582. box-sizing: border-box;
  9583. color: #000;
  9584. }
  9585. .bz {
  9586. display: flex;
  9587. flex-direction: row;
  9588. flex-wrap: nowrap;
  9589. align-items: flex-start;
  9590. }
  9591. .bz>div {
  9592. padding: 0 10px;
  9593. }
  9594. .select_box2_title {
  9595. background: #fff;
  9596. border-radius: 5px;
  9597. padding: 15px 10px;
  9598. box-sizing: border-box;
  9599. margin-bottom: 10px;
  9600. display: flex;
  9601. flex-direction: row;
  9602. flex-wrap: nowrap;
  9603. align-items: center;
  9604. }
  9605. .select_box2_title>div:nth-child(2) {
  9606. margin-left: 10px;
  9607. color: #c4c4c4;
  9608. }
  9609. .select_box2_box {
  9610. display: flex;
  9611. height: 500px;
  9612. }
  9613. .select_box2_img {
  9614. width: calc(100% - 310px);
  9615. height: 100%;
  9616. overflow: auto;
  9617. background: #fff;
  9618. border-radius: 5px;
  9619. }
  9620. .select_box2_img img {
  9621. width: 100%;
  9622. }
  9623. .select_box2_answer {
  9624. background: #fff;
  9625. margin-left: 10px;
  9626. border-radius: 5px;
  9627. width: 300px;
  9628. overflow: auto;
  9629. height: 90%;
  9630. display: flex;
  9631. flex-direction: column;
  9632. align-items: flex-start;
  9633. padding-top: 10px;
  9634. box-sizing: border-box;
  9635. position: relative;
  9636. }
  9637. .select_answer_title {
  9638. padding: 0 0 15px 20px;
  9639. color: #c4c4c4;
  9640. }
  9641. .select_box2_answer_box {
  9642. margin: 0 0 10px 20px;
  9643. width: 85%;
  9644. display: flex;
  9645. flex-direction: row;
  9646. flex-wrap: nowrap;
  9647. align-items: center;
  9648. }
  9649. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  9650. color: #000;
  9651. }
  9652. .upAnswerCss {
  9653. position: absolute;
  9654. bottom: 15px;
  9655. right: 15px;
  9656. }
  9657. .upAnswerCss>>>.el-button {
  9658. width: 95px;
  9659. height: 35px;
  9660. line-height: 35px;
  9661. padding: 0;
  9662. }
  9663. .rightWidthCss {
  9664. width: 60%;
  9665. display: flex;
  9666. flex-direction: row;
  9667. align-items: flex-start;
  9668. }
  9669. .rightAnswer {
  9670. display: flex;
  9671. flex-direction: row;
  9672. flex-wrap: nowrap;
  9673. align-items: center;
  9674. color: red;
  9675. margin-bottom: 31px;
  9676. }
  9677. .rightAnswerCss {
  9678. display: flex;
  9679. flex-direction: column;
  9680. flex-wrap: nowrap;
  9681. padding-top: 60px;
  9682. }
  9683. .blueCss {
  9684. color: #767de1;
  9685. margin-left: 10px;
  9686. }
  9687. .redCss {
  9688. color: red;
  9689. }
  9690. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  9691. color: rgb(0 123 255) !important;
  9692. }
  9693. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  9694. color: rgb(0 123 255) !important;
  9695. }
  9696. .zuoyeYulan {
  9697. padding-top: 15px;
  9698. font-size: 18px;
  9699. display: flex;
  9700. align-items: flex-end;
  9701. }
  9702. .buttonA {
  9703. margin-left: 10px;
  9704. padding: 0;
  9705. }
  9706. .displayBox {
  9707. margin-bottom: 10px;
  9708. display: block;
  9709. border-bottom: 3px solid #eee;
  9710. display: flex;
  9711. align-items: center;
  9712. }
  9713. .easy_comment {
  9714. width: calc(100% - 90px);
  9715. margin-left: 10px;
  9716. display: flex;
  9717. flex-wrap: wrap;
  9718. }
  9719. .easy_comment>div {
  9720. border: 1px solid #4a4a4a;
  9721. color: #666;
  9722. border-radius: 15px;
  9723. padding: 5px 10px;
  9724. font-size: 16px;
  9725. margin-bottom: 10px;
  9726. margin-right: 5px;
  9727. cursor: pointer;
  9728. }
  9729. .easy_comment div:hover {
  9730. border: 1px solid #f7ba2a;
  9731. color: #c69217;
  9732. }
  9733. .xuan_right_box {
  9734. padding: 10px;
  9735. background: rgb(247, 247, 247);
  9736. margin: 10px 12px;
  9737. border-radius: 5px;
  9738. }
  9739. .tool_right_box {
  9740. display: flex;
  9741. align-items: center;
  9742. }
  9743. .tool_right_box+.tool_right_box {
  9744. margin-top: 10px;
  9745. }
  9746. .right_box_xuan {
  9747. background: rgb(0 123 255);
  9748. color: #fff;
  9749. border-radius: 5px;
  9750. padding: 5px;
  9751. margin-left: 10px;
  9752. }
  9753. .pButton:hover {
  9754. opacity: 1 !important;
  9755. }
  9756. .pButton {
  9757. position: fixed;
  9758. /* right: 5%; */
  9759. /* bottom: 5%; */
  9760. color: #fff;
  9761. /* width: 50px;
  9762. height: 50px; */
  9763. /* border-radius: 50%; */
  9764. text-align: center;
  9765. /* line-height: 50px; */
  9766. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  9767. cursor: pointer;
  9768. z-index: 999;
  9769. right: 0;
  9770. top: 83px;
  9771. width: 50px;
  9772. height: 50px;
  9773. background: #fff;
  9774. display: flex;
  9775. align-items: center;
  9776. justify-content: center;
  9777. box-shadow: 0px 0 8px 2px #c5c5c5;
  9778. border-radius: 5px;
  9779. }
  9780. .pzClass {
  9781. width: calc(100% - 340px);
  9782. }
  9783. .newDialogCss {
  9784. /* position: fixed;
  9785. right: 5%;
  9786. top: 50%;
  9787. width: 340px;
  9788. transform: translateY(-50%);
  9789. height: 60%;
  9790. box-shadow: 0px 0 8px 0px #555555;
  9791. border-radius: 15px;
  9792. z-index: 999; */
  9793. position: fixed;
  9794. right: 0;
  9795. top: 70px;
  9796. width: 340px;
  9797. height: calc(100% - 80px);
  9798. z-index: 999;
  9799. background: #fff;
  9800. border-radius: 15px;
  9801. border-top-right-radius: 0px;
  9802. border-bottom-right-radius: 0px;
  9803. overflow: hidden;
  9804. }
  9805. .pzTop {
  9806. color: #fff;
  9807. background: #000;
  9808. display: flex;
  9809. flex-direction: row;
  9810. flex-wrap: nowrap;
  9811. align-items: center;
  9812. justify-content: space-between;
  9813. height: 40px;
  9814. border-radius: 15px 15px 0 0;
  9815. }
  9816. .pzTop2 .checkbox {
  9817. display: flex;
  9818. align-items: center;
  9819. padding: 15px 30px;
  9820. flex: 0 0 auto;
  9821. font-weight: bold;
  9822. border-bottom: 1px solid #eee;
  9823. justify-content: space-between;
  9824. }
  9825. .pzTop2 .check {
  9826. text-align: center;
  9827. cursor: pointer;
  9828. box-sizing: border-box;
  9829. display: flex;
  9830. }
  9831. .pzTop2 img {
  9832. width: 25px;
  9833. cursor: pointer;
  9834. }
  9835. .pzTop>div:nth-child(1) {
  9836. padding-left: 10px;
  9837. }
  9838. .pzTop>div:nth-child(2) {
  9839. width: 15px;
  9840. height: 15px;
  9841. padding-right: 10px;
  9842. cursor: pointer;
  9843. }
  9844. .pzTop>div:nth-child(2)>img {
  9845. width: 100%;
  9846. height: 100%;
  9847. }
  9848. .pzBox,
  9849. .noPzBox {
  9850. height: calc(100% - 60px);
  9851. /* background: #ededed; */
  9852. background: #fff;
  9853. /* border-radius: 0 0 15px 15px; */
  9854. }
  9855. .noPzBox {
  9856. display: flex;
  9857. flex-direction: column;
  9858. flex-wrap: nowrap;
  9859. justify-content: center;
  9860. align-items: center;
  9861. }
  9862. .pzList {
  9863. background: #f7f7f7;
  9864. width: 90%;
  9865. margin: 0 auto 15px;
  9866. border-radius: 5px;
  9867. }
  9868. .pzNavTop {
  9869. display: flex;
  9870. flex-direction: row;
  9871. flex-wrap: nowrap;
  9872. padding: 10px 10px 0 10px;
  9873. align-items: center;
  9874. }
  9875. .pzDelete {
  9876. cursor: pointer;
  9877. margin-left: auto;
  9878. font-size: 14px;
  9879. color: #afafaf;
  9880. }
  9881. .pzNavTop>div:nth-child(1) {
  9882. background: #3760af;
  9883. width: 35px;
  9884. height: 35px;
  9885. color: #fff;
  9886. text-align: center;
  9887. line-height: 35px;
  9888. border-radius: 50%;
  9889. font-size: 14px;
  9890. }
  9891. .pzNavTop>div:nth-child(2) {
  9892. font-size: 18px;
  9893. color: #959595;
  9894. margin-left: 5px;
  9895. }
  9896. .pzContent {
  9897. padding: 10px;
  9898. word-break: break-word;
  9899. }
  9900. .pzContent audio {
  9901. width: 100%;
  9902. }
  9903. .pzContent audio::-webkit-media-controls-panel {
  9904. background: #fff;
  9905. }
  9906. .pzListBox {
  9907. padding-top: 15px;
  9908. height: calc(100% - 60px);
  9909. overflow: auto;
  9910. }
  9911. .addPzButton {
  9912. position: relative;
  9913. margin-top: 3px;
  9914. width: 100%;
  9915. }
  9916. .addPzButton .img1 {
  9917. position: absolute;
  9918. top: 50%;
  9919. right: 25px;
  9920. transform: translateY(-50%);
  9921. height: 100%;
  9922. display: flex;
  9923. align-items: center;
  9924. }
  9925. .addPzButton .img1 div {
  9926. display: flex;
  9927. }
  9928. .addPzButton .img1 div img {
  9929. width: 28px;
  9930. margin-left: 10px;
  9931. cursor: pointer;
  9932. }
  9933. .addPzButton .img1 div span {
  9934. font-size: 14px;
  9935. margin: 4px 0 0 3px;
  9936. color: #afafaf;
  9937. }
  9938. .addPz {
  9939. background: #4b79ce;
  9940. width: 100px;
  9941. color: #fff;
  9942. font-size: 12px;
  9943. height: 30px;
  9944. margin: 0 auto;
  9945. text-align: center;
  9946. line-height: 30px;
  9947. border-radius: 10px;
  9948. cursor: pointer;
  9949. }
  9950. .addDialogCss {
  9951. position: fixed;
  9952. right: 37%;
  9953. top: 50%;
  9954. width: 600px;
  9955. transform: translateY(-50%);
  9956. height: 70%;
  9957. min-height: 450px;
  9958. box-shadow: 0px 0 8px 0px #555555;
  9959. border-radius: 15px;
  9960. z-index: 999;
  9961. }
  9962. .teacherPz {
  9963. display: flex;
  9964. flex-direction: row;
  9965. align-items: center;
  9966. flex-wrap: nowrap;
  9967. }
  9968. .teacherPzImg {
  9969. width: 30px;
  9970. height: 30px;
  9971. }
  9972. .teacherPzImg>img {
  9973. width: 100%;
  9974. height: 100%;
  9975. }
  9976. .addPzBox {
  9977. height: calc(100% - 40px);
  9978. background: #ededed;
  9979. }
  9980. .pzAudioClass {
  9981. margin: 15px 14px;
  9982. background: #fff;
  9983. height: 100%;
  9984. display: flex;
  9985. justify-content: center;
  9986. align-items: center;
  9987. }
  9988. .pzConText {
  9989. width: 95%;
  9990. height: 100%;
  9991. margin: 10px auto 0;
  9992. border: none;
  9993. background: #fff;
  9994. border-radius: 0px;
  9995. }
  9996. .pzConText>>>.text {
  9997. height: calc(100% - 82px);
  9998. }
  9999. .addTextCss {
  10000. background: #4b79ce;
  10001. width: 80px;
  10002. height: 30px;
  10003. text-align: center;
  10004. color: #fff;
  10005. line-height: 30px;
  10006. border-radius: 10px;
  10007. margin: 10px auto 0;
  10008. cursor: pointer;
  10009. }
  10010. .pzConText:focus-visible {
  10011. border: none !important;
  10012. }
  10013. .maxWidth {
  10014. width: 1000px;
  10015. }
  10016. .noPz {
  10017. width: 150px;
  10018. margin: 0 auto 20%;
  10019. }
  10020. .noPz>img {
  10021. width: 100%;
  10022. height: 100%;
  10023. }
  10024. .pzList .time {
  10025. text-align: right;
  10026. box-sizing: border-box;
  10027. padding: 0 10px 10px 0px;
  10028. color: #949494;
  10029. font-size: 14px;
  10030. }
  10031. /* table 样式 */
  10032. .cont>>>table {
  10033. border-top: 1px solid #ccc;
  10034. border-left: 1px solid #ccc;
  10035. }
  10036. .cont>>>table td,
  10037. .cont>>>table th {
  10038. border-bottom: 1px solid #ccc;
  10039. border-right: 1px solid #ccc;
  10040. padding: 15px 5px;
  10041. max-width: 0px;
  10042. }
  10043. .cont>>>table th {
  10044. border-bottom: 2px solid #ccc;
  10045. text-align: center;
  10046. }
  10047. /* blockquote 样式 */
  10048. .cont>>>blockquote {
  10049. display: block;
  10050. border-left: 8px solid #d0e5f2;
  10051. padding: 5px 10px;
  10052. margin: 10px 0;
  10053. line-height: 1.4;
  10054. font-size: 100%;
  10055. background-color: #f1f1f1;
  10056. }
  10057. .addPzCheck {
  10058. display: flex;
  10059. flex-direction: row;
  10060. flex-wrap: nowrap;
  10061. padding: 10px 15px 0;
  10062. }
  10063. .addPzCheck span {
  10064. cursor: pointer;
  10065. padding-bottom: 5px;
  10066. font-weight: bold;
  10067. }
  10068. .addPzCheck span+span {
  10069. margin-left: 10px;
  10070. }
  10071. .addPzCheck .isChooseActive {
  10072. color: #3e88f4;
  10073. border-bottom: 2px solid #2f80f3;
  10074. }
  10075. /* code 样式 */
  10076. .cont>>>code {
  10077. display: inline-block;
  10078. *display: inline;
  10079. *zoom: 1;
  10080. background-color: #f1f1f1;
  10081. border-radius: 3px;
  10082. padding: 3px 5px;
  10083. margin: 0 3px;
  10084. }
  10085. .cont>>>pre code {
  10086. display: block;
  10087. }
  10088. /* ul ol 样式 */
  10089. .cont>>>ul,
  10090. ol {
  10091. margin: 10px 0 10px 20px;
  10092. }
  10093. .scoreBox,
  10094. .scoreDetailBox {
  10095. display: flex;
  10096. align-items: center;
  10097. justify-content: flex-start;
  10098. margin-top: 20px;
  10099. font-size: 18px;
  10100. width: 100%;
  10101. }
  10102. .scoreBox .t,
  10103. .scoreDetailBox .t {
  10104. margin-right: 10px;
  10105. width: 100px;
  10106. text-align: right;
  10107. }
  10108. .scoreDetailBox {
  10109. align-items: flex-start;
  10110. }
  10111. .scoreDetailBox>>>.el-textarea {
  10112. width: calc(100% - 200px);
  10113. }
  10114. .scoreBox>>>.el-input {
  10115. width: 130px;
  10116. font-size: 38px;
  10117. }
  10118. .scoreBox>>>.el-input__inner {
  10119. height: 60px;
  10120. }
  10121. .answerScore {
  10122. position: absolute;
  10123. top: 10px;
  10124. right: 10px;
  10125. background: #0000008f;
  10126. border-radius: 5px;
  10127. padding: 3px 5px;
  10128. font-size: 14px;
  10129. color: #fff;
  10130. cursor: pointer;
  10131. }
  10132. .open_box .switch_box {
  10133. width: 100%;
  10134. margin: 0 auto;
  10135. display: flex;
  10136. justify-content: space-between;
  10137. }
  10138. .open_box .switch_box+.switch_box {
  10139. margin-top: 10px;
  10140. }
  10141. .deleteImg {
  10142. width: 25px !important;
  10143. height: 25px !important;
  10144. cursor: pointer;
  10145. position: absolute;
  10146. top: 10px;
  10147. right: 10px;
  10148. }
  10149. .deleteImg2 {
  10150. width: 15px !important;
  10151. height: 15px !important;
  10152. top: 5px;
  10153. right: 5px;
  10154. }
  10155. .rightW {
  10156. right: 40px;
  10157. }
  10158. .drawPBox {
  10159. display: flex;
  10160. flex-direction: column;
  10161. position: relative;
  10162. }
  10163. .drawPBox span {
  10164. font-size: 18px;
  10165. color: #606266;
  10166. padding-bottom: 10px;
  10167. margin: 10px 0;
  10168. border-bottom: 1px solid #eaeaea;
  10169. }
  10170. .drawPBox img {
  10171. width: 500px;
  10172. height: 300px;
  10173. object-fit: contain;
  10174. cursor: pointer;
  10175. margin: 0 auto;
  10176. }
  10177. .sentenBox {
  10178. background: #fff;
  10179. height: 450px;
  10180. overflow: auto;
  10181. background-image: url("../../assets/icon/conSentences/stuBg.png");
  10182. background-position: 102%;
  10183. background-repeat: no-repeat;
  10184. background-size: 60%;
  10185. }
  10186. .addSen {
  10187. background: #409efe;
  10188. width: 90px;
  10189. color: #fff;
  10190. height: 35px;
  10191. text-align: center;
  10192. line-height: 35px;
  10193. border-radius: 5px;
  10194. float: right;
  10195. margin: 10px 20px 0 0;
  10196. cursor: pointer;
  10197. }
  10198. .sentenTop {
  10199. display: flex;
  10200. flex-direction: row;
  10201. flex-wrap: nowrap;
  10202. align-items: center;
  10203. padding: 55px 0 0 20px;
  10204. box-sizing: border-box;
  10205. }
  10206. .sentenTop>div:nth-child(2) {
  10207. width: 300px;
  10208. margin: 0 15px;
  10209. }
  10210. .sentenTop>div:nth-child(3) {
  10211. background: #409efe;
  10212. color: #fff;
  10213. width: 65px;
  10214. height: 35px;
  10215. text-align: center;
  10216. line-height: 35px;
  10217. border-radius: 5px;
  10218. cursor: pointer;
  10219. }
  10220. .cardList,
  10221. .cardList1 {
  10222. padding: 10px 0 10px 0;
  10223. display: flex;
  10224. flex-direction: row;
  10225. flex-wrap: wrap;
  10226. align-items: center;
  10227. box-sizing: border-box;
  10228. border-bottom: 1px solid #f4f4f4;
  10229. width: 98%;
  10230. margin: 0 auto;
  10231. min-width: 60%;
  10232. max-width: 85%;
  10233. }
  10234. .cardList1 {
  10235. padding: 10px 0 10px 10px !important;
  10236. margin: 0 !important;
  10237. }
  10238. .cardBox {
  10239. display: flex;
  10240. flex-direction: row;
  10241. flex-wrap: wrap;
  10242. align-items: center;
  10243. align-content: center;
  10244. }
  10245. .cardBox>div {
  10246. margin-bottom: 10px;
  10247. }
  10248. .isCard,
  10249. .isChooseCard,
  10250. .noCard,
  10251. .isCard1 {
  10252. width: 130px;
  10253. height: 60px;
  10254. text-align: center;
  10255. line-height: 60px;
  10256. font-size: 20px;
  10257. cursor: pointer;
  10258. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  10259. background-size: cover;
  10260. transition: all 2s;
  10261. margin-right: 20px;
  10262. }
  10263. .isCard>div,
  10264. .noCard>div,
  10265. .isCard1>div {
  10266. white-space: nowrap;
  10267. overflow: hidden;
  10268. text-overflow: ellipsis;
  10269. width: 75%;
  10270. margin: 0 auto;
  10271. }
  10272. .noCard {
  10273. background-image: none;
  10274. }
  10275. .isCard1 {
  10276. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  10277. }
  10278. .isChooseCard {
  10279. background-image: none;
  10280. border: 1px dashed #b9b9b9;
  10281. border-radius: 10px;
  10282. }
  10283. .card {
  10284. width: 130px;
  10285. height: 60px;
  10286. }
  10287. .card>img {
  10288. width: 100%;
  10289. height: 100%;
  10290. }
  10291. .rightCardBox {
  10292. margin: 10px 0 0 10px;
  10293. }
  10294. .rightCardBox>div:nth-child(1) {
  10295. margin-bottom: 10px;
  10296. }
  10297. .cardCss {
  10298. display: flex;
  10299. flex-direction: column;
  10300. flex-wrap: nowrap;
  10301. align-items: center;
  10302. border-bottom: 3px solid #b4c3d3;
  10303. padding: 0 0 5px 0;
  10304. margin-right: 10px;
  10305. }
  10306. .cardCss>div:nth-child(2) {
  10307. background: #5b7b9d;
  10308. color: #fff;
  10309. width: 20px;
  10310. height: 20px;
  10311. border-radius: 50%;
  10312. text-align: center;
  10313. line-height: 20px;
  10314. }
  10315. .isWrong {
  10316. display: flex;
  10317. flex-direction: row;
  10318. flex-wrap: nowrap;
  10319. align-content: center;
  10320. align-items: center;
  10321. }
  10322. .answerRight {
  10323. width: 25%;
  10324. }
  10325. .isTj {
  10326. display: flex;
  10327. flex-direction: row;
  10328. flex-wrap: nowrap;
  10329. align-items: center;
  10330. }
  10331. .isTj>div:nth-child(2) {
  10332. color: #727070;
  10333. margin-left: 10px;
  10334. }
  10335. .isTjImg {
  10336. width: 30px;
  10337. height: 30px;
  10338. }
  10339. .isTjImg>img {
  10340. width: 100%;
  10341. height: 100%;
  10342. }
  10343. .cardAnswerBox {
  10344. font-size: 18px;
  10345. width: 97%;
  10346. border: 5px;
  10347. padding: 0;
  10348. border-radius: 5px;
  10349. margin: 10px auto;
  10350. word-break: break-word;
  10351. }
  10352. .w_name {
  10353. margin-bottom: 10px;
  10354. }
  10355. .w_name span {
  10356. font-size: 16px;
  10357. }
  10358. .w_teachert {
  10359. width: 50px !important;
  10360. position: absolute;
  10361. height: auto !important;
  10362. z-index: 10;
  10363. right: 25px;
  10364. top: -25px;
  10365. }
  10366. .group_workBox {}
  10367. .group_workBox+.group_workBox {
  10368. margin-top: 20px;
  10369. }
  10370. .group_box {
  10371. padding-bottom: 20px;
  10372. border-bottom: 2px solid #f0f0f0;
  10373. }
  10374. .group_title {
  10375. display: flex;
  10376. align-items: center;
  10377. justify-content: space-between;
  10378. }
  10379. .group_name {
  10380. background-image: url(../../assets/icon/groupN.png);
  10381. width: 220px;
  10382. background-size: 100% 100%;
  10383. height: 67px;
  10384. padding: 0 20px 0 43px;
  10385. box-sizing: border-box;
  10386. line-height: 63px;
  10387. color: #fff;
  10388. overflow: hidden;
  10389. white-space: nowrap;
  10390. text-overflow: ellipsis;
  10391. }
  10392. .group_work {
  10393. width: 100%;
  10394. padding: 0 10px;
  10395. box-sizing: border-box;
  10396. display: flex;
  10397. flex-wrap: wrap;
  10398. }
  10399. .g_d_box {
  10400. display: flex;
  10401. flex-flow: wrap;
  10402. justify-content: space-around;
  10403. }
  10404. .g_d_box .isChair {
  10405. background-image: url(../../assets/avatar.png) !important;
  10406. }
  10407. .g_d_group {
  10408. width: 500px;
  10409. margin-bottom: 80px;
  10410. }
  10411. .g_d_group_chair {
  10412. display: flex;
  10413. align-items: center;
  10414. justify-content: center;
  10415. }
  10416. .g_d_group_chair>div+div {
  10417. margin-left: 30px;
  10418. }
  10419. .g_d_group_chair>div,
  10420. .g_d_group_chair2>div {
  10421. display: flex;
  10422. flex-direction: column;
  10423. align-items: center;
  10424. }
  10425. .g_d_group_chair>div>span:nth-child(1),
  10426. .g_d_group_chair2>div>span:nth-child(1) {
  10427. background-image: url(../../assets/icon/chair.png);
  10428. width: 50px;
  10429. height: 50px;
  10430. display: block;
  10431. background-size: 100% 100%;
  10432. }
  10433. .g_d_group_tableBox {
  10434. display: flex;
  10435. align-items: center;
  10436. justify-content: center;
  10437. }
  10438. .g_d_group_chair2 {
  10439. display: flex;
  10440. flex-direction: column;
  10441. align-items: center;
  10442. justify-content: center;
  10443. }
  10444. .g_d_group_chair2>div+div {
  10445. margin-top: 10px;
  10446. }
  10447. .g_d_group_table {
  10448. background-image: url(../../assets/icon/groupBg.png);
  10449. width: 354px;
  10450. height: 196px;
  10451. background-size: 100% 100%;
  10452. display: flex;
  10453. align-items: center;
  10454. justify-content: center;
  10455. flex-direction: column;
  10456. color: #fff;
  10457. }
  10458. .g_d_group_table>div:nth-child(1) {
  10459. font-size: 24px;
  10460. margin-bottom: 5px;
  10461. }
  10462. .g_d_group_table>div:nth-child(2) div {
  10463. cursor: pointer;
  10464. background: #2e77bf;
  10465. padding: 4px 10px;
  10466. border-radius: 5px;
  10467. }
  10468. .groupBox {}
  10469. .groupContent+.groupContent {
  10470. margin-top: 30px;
  10471. }
  10472. .groupTitle {
  10473. font-size: 24px;
  10474. color: rgb(80, 80, 80);
  10475. margin-bottom: 20px;
  10476. }
  10477. .groupName {
  10478. display: flex;
  10479. align-items: center;
  10480. }
  10481. .groupn {
  10482. font-size: 15px;
  10483. margin-right: 10px;
  10484. }
  10485. .groupName+.groupName {
  10486. margin-top: 15px;
  10487. }
  10488. .groupBtn {
  10489. margin-left: 10px;
  10490. }
  10491. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10492. text-align: left;
  10493. }
  10494. .g_d_btnBox {
  10495. display: flex;
  10496. justify-content: flex-end;
  10497. align-items: flex-end;
  10498. margin-bottom: 20px;
  10499. }
  10500. .updateChair {
  10501. position: relative;
  10502. }
  10503. .updateChairBtn {
  10504. position: absolute;
  10505. width: 50px;
  10506. height: 50px;
  10507. overflow: hidden;
  10508. /* display: flex; */
  10509. align-items: center;
  10510. justify-content: center;
  10511. background: #00000087;
  10512. color: #fff;
  10513. border-radius: 50px;
  10514. display: none;
  10515. cursor: pointer;
  10516. }
  10517. .updateChair:hover .updateChairBtn {
  10518. display: flex;
  10519. }
  10520. .group_staic_box {
  10521. display: flex;
  10522. padding: 30px 40px 10px;
  10523. flex-wrap: wrap;
  10524. }
  10525. .group_staic {
  10526. /* width: 50%; */
  10527. margin-bottom: 20px;
  10528. display: flex;
  10529. align-items: center;
  10530. }
  10531. .group_staic span:nth-child(1) {
  10532. width: 150px;
  10533. text-align: right;
  10534. margin-right: 15px;
  10535. }
  10536. .group_staic span:nth-child(2) {
  10537. background: rgb(0 123 255);
  10538. color: #fff;
  10539. border-radius: 5px;
  10540. padding: 5px;
  10541. }
  10542. .codeFileBox {
  10543. height: 300px;
  10544. background: #fff;
  10545. display: flex;
  10546. align-items: center;
  10547. justify-content: center;
  10548. }
  10549. .codeFileBox img {
  10550. width: 200px;
  10551. margin: 0;
  10552. height: auto;
  10553. }
  10554. .codeFileBox div {
  10555. background: rgb(80, 142, 226);
  10556. color: #fff;
  10557. padding: 10px 20px;
  10558. border-radius: 25px;
  10559. cursor: pointer;
  10560. margin-left: 15px;
  10561. }
  10562. .radioBox {
  10563. display: flex;
  10564. flex-direction: column;
  10565. flex-wrap: nowrap;
  10566. align-items: flex-start;
  10567. }
  10568. .radioBox>div {
  10569. margin: 10px 0 0 10px;
  10570. }
  10571. /* .radioBox >>> .el-radio__input,
  10572. .radioBox >>> .el-checkbox__inner {
  10573. margin-left: 10px;
  10574. } */
  10575. .radioBox>>>.el-radio__label,
  10576. .radioBox>>>.el-checkbox__label {
  10577. display: flex;
  10578. align-items: center;
  10579. }
  10580. .radioBox >>> .el-radio__label > span {
  10581. width: 100%;
  10582. display: -webkit-box;
  10583. overflow: hidden;
  10584. white-space: normal !important;
  10585. text-overflow: ellipsis;
  10586. word-wrap: break-word;
  10587. }
  10588. .inImg {
  10589. width: 100px;
  10590. cursor: pointer;
  10591. }
  10592. .inImg>img {
  10593. width: 100%;
  10594. height: 100%;
  10595. object-fit: cover;
  10596. }
  10597. .timuImgBox {
  10598. margin: 10px 0;
  10599. display: flex;
  10600. flex-direction: column;
  10601. flex-wrap: wrap;
  10602. align-items: flex-start;
  10603. }
  10604. .timuImg {
  10605. width: 150px;
  10606. margin: 5px 0;
  10607. cursor: pointer;
  10608. }
  10609. .timuImg>img {
  10610. width: 100%;
  10611. height: 100%;
  10612. object-fit: cover;
  10613. }
  10614. .worksTop {
  10615. display: flex;
  10616. flex-direction: row;
  10617. align-items: flex-end;
  10618. }
  10619. .corOpen {
  10620. margin: 0 0 0 10px;
  10621. font-size: 14px;
  10622. cursor: pointer;
  10623. color: #505050;
  10624. }
  10625. .corOpen:hover {
  10626. color: #499eef;
  10627. }
  10628. .navCorOpenBox {
  10629. display: flex;
  10630. flex-direction: row;
  10631. align-items: center;
  10632. background: #1e5cc9;
  10633. justify-content: space-between;
  10634. }
  10635. .navCorOpen {
  10636. padding-right: 15px;
  10637. cursor: pointer;
  10638. width: 20px;
  10639. display: flex;
  10640. }
  10641. .navCorOpen>img {
  10642. width: 100%;
  10643. height: 100%;
  10644. }
  10645. .mlImg {
  10646. width: 25px !important;
  10647. cursor: pointer;
  10648. margin-top: 5px;
  10649. }
  10650. .mlImg>img {
  10651. width: 100%;
  10652. height: 100%;
  10653. }
  10654. .navLeftCss {
  10655. width: 100% !important;
  10656. left: 0 !important;
  10657. }
  10658. .isContentCss {
  10659. width: 100% !important;
  10660. }
  10661. .isAllWidth {
  10662. width: 100% !important;
  10663. }
  10664. .toolBoxSteps {
  10665. position: absolute;
  10666. top: 50%;
  10667. transform: translateY(-50%);
  10668. cursor: pointer;
  10669. width: 60px;
  10670. display: flex;
  10671. align-items: center;
  10672. justify-content: center;
  10673. }
  10674. .toolBoxSteps:nth-child(1)>img,
  10675. .toolBoxSteps:nth-child(2)>img {
  10676. width: 24px;
  10677. }
  10678. .toolBoxSteps:nth-child(1) {
  10679. left: 0;
  10680. }
  10681. .toolBoxSteps:nth-child(2) {
  10682. right: 0;
  10683. }
  10684. .chooseWho {
  10685. display: flex;
  10686. width: 380px;
  10687. flex-direction: row;
  10688. flex-wrap: nowrap;
  10689. justify-content: space-between;
  10690. padding-bottom: 10px;
  10691. }
  10692. .chooseWho>div {
  10693. cursor: pointer;
  10694. padding-bottom: 10px;
  10695. font-weight: bold;
  10696. }
  10697. .isChooseActive {
  10698. color: #3e88f4;
  10699. border-bottom: 2px solid #2f80f3;
  10700. }
  10701. .toolSort {
  10702. display: flex;
  10703. flex-direction: row;
  10704. flex-wrap: wrap;
  10705. justify-content: flex-start;
  10706. align-items: flex-start;
  10707. }
  10708. .toolSort>div {
  10709. margin-right: 45px;
  10710. }
  10711. .tools {
  10712. width: 100%;
  10713. display: flex;
  10714. flex-direction: column;
  10715. flex-wrap: nowrap;
  10716. align-items: flex-start;
  10717. }
  10718. .whiteBIcon {
  10719. width: 80px;
  10720. cursor: pointer;
  10721. display: flex;
  10722. flex-direction: column;
  10723. flex-wrap: nowrap;
  10724. align-items: center;
  10725. font-size:14px;
  10726. }
  10727. .whiteBIcon>img {
  10728. width: 100%;
  10729. height: 100%;
  10730. }
  10731. .whiteBIcon>img {
  10732. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10733. border-radius: 15px;
  10734. }
  10735. .dia_tool_box {
  10736. display: flex;
  10737. flex-wrap: wrap;
  10738. width: 100%;
  10739. }
  10740. .dia_tool_box>div {
  10741. margin-right: 40px;
  10742. }
  10743. </style>