studyStudent.vue 209 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699
  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="pb_left">
  5. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  6. <el-tooltip class="courseTitle" effect="light" :content="courseDetail.title" placement="top">
  7. <div>{{ courseDetail.title }}</div>
  8. </el-tooltip>
  9. <div class="ml">目录</div>
  10. <div class="cru_selectBox">
  11. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  12. <div class="blue_box_one" @click="get(stageIndex)">
  13. <div>第{{ stageIndex + 1 }}阶段</div>
  14. <div>{{ item.dyName }}</div>
  15. </div>
  16. <div class="twoChild" :class="{ navActive: item.isOpen }">
  17. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  18. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  19. openTaskActive:
  20. navIndex == taskCount &&
  21. nav.id == navId &&
  22. stageIndex == courseType,
  23. }">
  24. <div class="vedioNav" :class="{
  25. isClick:
  26. navIndex == taskCount &&
  27. nav.id == navId &&
  28. stageIndex == courseType,
  29. }" style="margin: 0">
  30. 任务{{ navIndex + 1 }}
  31. </div>
  32. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  33. <div>{{ nav.taskName }}</div>
  34. </el-tooltip>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="body_student">
  42. <div class="new_top" style="
  43. position: fixed;
  44. top: 0;
  45. left: 20.7%;
  46. width: 80%;
  47. z-index: 999;
  48. box-shadow: 0px 9px 0 0 #f2f2f2;
  49. ">
  50. <div class="courseIndex">
  51. <div>第{{ courseType - 0 + 1 }}阶段</div>
  52. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  53. <div>{{ chapInfoList[courseType].dyName }}</div>
  54. </el-tooltip>
  55. <div>任务{{ taskCount + 1 }}</div>
  56. </div>
  57. <div class="btnAll">
  58. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  59. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  60. <div class="returnBtn" @click="allScrell">全屏</div>
  61. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  62. 权限
  63. </div>
  64. <div class="returnBtn" style="background: #225bc7" @click.stop="
  65. goTo(
  66. '/courseDetail?userid=' +
  67. userid +
  68. '&oid=' +
  69. oid +
  70. '&org=' +
  71. org +
  72. '&cid=' +
  73. classId +
  74. '&courseId=' +
  75. id +
  76. '&tType=' +
  77. tType +
  78. '&screenType=' +
  79. screenType
  80. )
  81. ">
  82. 返回
  83. </div>
  84. </div>
  85. </div>
  86. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  87. .taskJson"
  88. :key="index"-->
  89. <div class="isNoMessage" v-if="
  90. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  91. .chapterData.length == 0 &&
  92. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  93. .toolChoose[0].tool.length == 0 &&
  94. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  95. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  96. .taskDetail == '' &&
  97. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  98. ">
  99. <img src="../assets/icon/isNoMessage.png" alt />
  100. </div>
  101. <div class="study_top">
  102. <div class="vedioBox" v-if="
  103. vedio[taskCount].length > 0 ||
  104. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  105. .taskDetail != '' ||
  106. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  107. .chapterData.length > 0
  108. ">
  109. <div class="checkbox">
  110. <div class="check" style="font-size: 25px" :id="
  111. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  112. ">
  113. <!-- {{ taskCount + 1 }}
  114. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  115. 学一学
  116. </div>
  117. </div>
  118. <div class="student_head" v-if="
  119. vedio[taskCount].length > 0 ||
  120. textList[taskCount].length > 0 ||
  121. file[taskCount].length > 0 ||
  122. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  123. .taskDetail != ''
  124. ">
  125. <div class="taskBox">
  126. <div style="
  127. display: flex;
  128. flex-wrap: nowrap;
  129. flex-direction: column;
  130. position: relative;
  131. ">
  132. <div style="padding: 15px 0 15px 20px" v-if="
  133. chapInfoList[courseType].chapterInfo[0].taskJson[
  134. taskCount
  135. ].taskDetail != ''
  136. " v-html="
  137. chapInfoList[courseType].chapterInfo[0].taskJson[
  138. taskCount
  139. ].taskDetail
  140. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  141. taskCount
  142. ].taskDetail
  143. : '暂无描述'
  144. ">
  145. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  146. <!-- {{
  147. chapInfoList[courseType].chapterInfo[0].taskJson[
  148. taskCount
  149. ].taskDetail
  150. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  151. taskCount
  152. ].taskDetail
  153. : "暂无描述"
  154. }}-->
  155. </div>
  156. </div>
  157. </div>
  158. <div class="vedioTaskBox">
  159. <div class="box_course" v-if="
  160. vedio[taskCount].length > 0 ||
  161. textList[taskCount].length > 0 ||
  162. file[taskCount].length > 0
  163. ">
  164. <div class="wheel" v-if="
  165. vedio.length &&
  166. vedio[taskCount] &&
  167. vedio[taskCount].length > 0 &&
  168. showType == 0
  169. ">
  170. <div class="workd_media" style="height: 100%">
  171. <video-player class="video-player vjs-custom-skin" :playsinline="true"
  172. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  173. style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  174. </div>
  175. </div>
  176. <div class="wheel" v-if="showType == 1" style="
  177. box-shadow: 0 0 6px 1px #f2f2f2;
  178. width: 95%;
  179. margin: 0 auto;
  180. background: #f1f1f1;
  181. ">
  182. <div class="title">查看文档</div>
  183. <el-form class="textBox">
  184. <el-form-item class="textTitle">
  185. <div style="
  186. font-size: 22px;
  187. max-height: 100px;
  188. overflow: auto;
  189. ">
  190. {{ text.name }}
  191. </div>
  192. </el-form-item>
  193. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  194. <div v-html="text.url" class="textContent"></div>
  195. </el-form>
  196. </div>
  197. <div class="wheel" v-if="showType == 2" style="height: 650px; width: 95%; margin: 0 auto">
  198. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  199. </div>
  200. <div class="wheel" v-if="showType == 3" style="height: 650px; width: 95%; margin: 0 auto">
  201. <!-- <iframe
  202. style="width: 100%; height: 100%; border: none"
  203. :src="pptImgUrl1"
  204. ></iframe>-->
  205. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  206. </div>
  207. <div class="wheel" v-if="showType == 4" style="height: 650px; width: 95%; margin: 0 auto">
  208. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  209. </div>
  210. </div>
  211. <!-- :class="
  212. vedio[taskCount].length == 0 && file[taskCount].length == 0
  213. ? 'listNoVedio'
  214. : ''
  215. "-->
  216. <div class="vedioList" :class="
  217. vedio[taskCount].length == 0 &&
  218. file[taskCount].length == 0 &&
  219. textList[taskCount].length == 0
  220. ? 'listNoVedio'
  221. : ''
  222. " v-if="
  223. (vedio.length &&
  224. vedio[taskCount] &&
  225. vedio[taskCount].length > 0) ||
  226. (textList.length &&
  227. textList[taskCount] &&
  228. textList[taskCount].length > 0) ||
  229. (lineList.length &&
  230. lineList[taskCount] &&
  231. lineList[taskCount].length > 0) ||
  232. (file.length &&
  233. file[taskCount] &&
  234. file[taskCount].length > 0)
  235. ">
  236. <div class="navTitile">内容列表:</div>
  237. <div class="navBox">
  238. <div v-show="
  239. vedio.length &&
  240. vedio[taskCount] &&
  241. vedio[taskCount].length > 0
  242. ">
  243. <!-- <div
  244. class="vedioNav"
  245. style="
  246. width: 80px;
  247. min-width: 80px;
  248. height: 30px;
  249. line-height: 36px;
  250. font-size: 16px;
  251. border-radius: 10px;
  252. "
  253. >
  254. 视频
  255. </div> -->
  256. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  257. @click="lookVedio(media.url, vedioIndex)">
  258. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  259. <img style="height: 90px; width: 160px" :src="
  260. media.cover != null && media.cover != ''
  261. ? JSON.parse(media.cover).length > 0
  262. ? JSON.parse(media.cover)[0].url
  263. : mr
  264. : mr
  265. " alt />
  266. </div> -->
  267. <!-- <div class="vedioTime">
  268. {{ vedioTime[vedioIndex] }}
  269. </div> -->
  270. <!-- <div class="vedioName">{{ media.name }}</div> -->
  271. <div class="vedioName" :class="
  272. isClickNav == 'video' + vedioIndex
  273. ? 'isClickNav'
  274. : ''
  275. ">
  276. {{ media.name }}
  277. </div>
  278. </div>
  279. </div>
  280. <div v-show="
  281. textList.length &&
  282. textList[taskCount] &&
  283. textList[taskCount].length > 0
  284. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  285. @click="lookText(taskCount, textIndex)">
  286. <!-- <div
  287. class="vedioNav"
  288. style="
  289. width: 80px;
  290. min-width: 80px;
  291. height: 30px;
  292. line-height: 36px;
  293. font-size: 16px;
  294. border-radius: 10px;
  295. "
  296. >
  297. 文档
  298. </div> -->
  299. <div style="width: calc(100% - 0px)">
  300. <div class="navText" :class="
  301. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  302. ">
  303. {{
  304. textList[taskCount].length > 0 ? text.name : ""
  305. }}.doc
  306. </div>
  307. </div>
  308. </div>
  309. <!-- <div
  310. v-show="
  311. chapInfoList.length &&
  312. chapToolList[taskCount] &&
  313. chapToolList[taskCount].length > 0
  314. "
  315. class="newNav"
  316. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  317. :key="toolsIndex + '3'"
  318. >
  319. <div class="vedioNav">工具</div>
  320. <div>
  321. <div
  322. class="navText"
  323. @click="lookTools(taskCount, toolsIndex)"
  324. >
  325. {{
  326. chapToolList[taskCount].length > 0 ? tools.name : ""
  327. }}
  328. </div>
  329. </div>
  330. </div>-->
  331. <div v-show="
  332. lineList.length &&
  333. lineList[taskCount] &&
  334. lineList[taskCount].length > 0
  335. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  336. @click="doUrl(lines.url, lineIndex)">
  337. <!-- <div
  338. class="vedioNav"
  339. style="
  340. width: 80px;
  341. min-width: 80px;
  342. height: 30px;
  343. line-height: 36px;
  344. font-size: 16px;
  345. border-radius: 10px;
  346. "
  347. >
  348. 链接
  349. </div> -->
  350. <div style="width: calc(100% - 0px)">
  351. <div class="navText" :class="isClickNav == lineIndex ? 'isClickNav' : ''">
  352. <a style="text-decoration: none; color: #000" target="_Blank">{{ lines.url }}</a>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="newNav" v-show="
  357. file.length &&
  358. file[taskCount] &&
  359. file[taskCount].length > 0
  360. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  361. <!-- <div
  362. class="vedioNav"
  363. style="
  364. width: 80px;
  365. min-width: 80px;
  366. height: 30px;
  367. line-height: 36px;
  368. font-size: 16px;
  369. border-radius: 10px;
  370. "
  371. >
  372. 文档
  373. </div> -->
  374. <div style="width: calc(100% - 0px)">
  375. <div class="navText" :class="
  376. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  377. ">
  378. {{ f.name }}
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. </div>
  384. </div>
  385. <div style="padding: 10px 30px 0" v-if="showType == 2 || showType == 3">
  386. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  387. </div>
  388. <div style="padding: 0px 30px" v-if="showType == 1">
  389. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  390. </div>
  391. </div>
  392. </div>
  393. <div class="student_body">
  394. <!-- <div
  395. class="vedioBox"
  396. v-if="
  397. file.length && file[taskCount] && file[taskCount].length > 0
  398. "
  399. >
  400. <div class="queTop">
  401. <div class="question" style="width: 30px; margin-top: 5px">
  402. <img src="../assets/icon/fileIcon.png" alt />
  403. </div>
  404. <div class="queTitle">
  405. <div>附件</div>
  406. </div>
  407. </div>
  408. <div class="filebox" style="width: 100%">
  409. <div
  410. class="file"
  411. v-for="(f, fileIndex) in file[taskCount]"
  412. :key="fileIndex"
  413. @click="downFile(f, fileIndex)"
  414. >
  415. <img :src="require('../assets/file.png')" alt />
  416. <div>{{ f.name }}</div>
  417. </div>
  418. </div>
  419. <div class="upFile" v-if="type == 3">提交</div>
  420. </div>-->
  421. <div class="vedioBox" v-if="
  422. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  423. .toolChoose[0].tool &&
  424. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  425. .toolChoose[0].tool.length &&
  426. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  427. .toolChoose[0].tool.length > 0
  428. ">
  429. <div class="queTop" style="
  430. font-size: 25px;
  431. padding: 15px 0 15px 30px;
  432. font-weight: bold;
  433. ">
  434. <!-- <div class="question" style="width: 30px">
  435. <img src="../assets/icon/toolIcon.png" alt />
  436. </div>
  437. <div class="queTitle">
  438. <div>工具</div>
  439. </div>-->
  440. 练一练
  441. </div>
  442. <div class="toolHeng2" style="position: relative">
  443. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px" v-for="(tool, toolIndex) in chapInfoList[courseType]
  444. .chapterInfo[0].taskJson[taskCount].toolChoose" :key="toolIndex">
  445. <div class="bzBox">
  446. <div></div>
  447. <div>步骤{{ toolIndex + 1 }}</div>
  448. </div>
  449. <div class="toolBox">
  450. <div>
  451. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  452. :key="indexTool"-->
  453. <!-- <div class="iframeBox">
  454. <div
  455. class="addPoint isBorder"
  456. v-for="(tooC, toolCIndex) in tool.tool"
  457. :key="toolCIndex"
  458. >
  459. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  460. <div
  461. class="iframeName"
  462. >
  463. 电子白板
  464. </div>
  465. <iframe
  466. src="https://iwb.cocorobo.cn/"
  467. ref="whiteBoard"
  468. ></iframe>
  469. </div>
  470. </div>
  471. </div>-->
  472. <div class="noiframeBox">
  473. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  474. <div v-if="tooC == 1">
  475. <img src="../assets/icon/secondToolList/whiteBoard.png" alt
  476. @click="addTools(tooC, toolIndex, taskCount)" />
  477. <div style="margin: 5px 0">电子白板</div>
  478. </div>
  479. <div v-if="tooC == 3">
  480. <img src="../assets/icon/secondToolList/mindMapping.png" alt
  481. @click="addTools(tooC, toolIndex, taskCount)" />
  482. <div style="margin: 5px 0">思维导图</div>
  483. </div>
  484. <div v-if="tooC == 6">
  485. <img src="../assets/icon/secondToolList/doc.png" alt
  486. @click="addTools(tooC, toolIndex, taskCount)" />
  487. <div style="margin: 5px 0">协同文档</div>
  488. </div>
  489. <div v-if="tooC == 7">
  490. <img src="../assets/icon/secondToolList/mindNetwork.png" alt
  491. @click="addTools(tooC, toolIndex, taskCount)" />
  492. <div style="margin: 5px 0">思维网格</div>
  493. </div>
  494. <div v-if="tooC == 8">
  495. <img src="../assets/icon/secondToolList/library.png" alt
  496. @click="addTools(tooC, toolIndex, taskCount)" />
  497. <div style="margin: 5px 0">素材库</div>
  498. </div>
  499. <div v-if="tooC == 17">
  500. <img src="../assets/icon/secondToolList/library.png" alt
  501. @click="addTools(tooC, toolIndex, taskCount)" />
  502. <div style="margin: 5px 0">学习资料</div>
  503. </div>
  504. <div v-if="tooC == 2">
  505. <img @click="addTools(tooC, toolIndex, taskCount)"
  506. src="../assets/icon/secondToolList/note.png" alt />
  507. <div style="margin: 5px 0">便签</div>
  508. </div>
  509. <div v-if="tooC == 4">
  510. <img @click="addTools(tooC, toolIndex, taskCount)"
  511. src="../assets/icon/thirdToolList/ask.png" alt />
  512. <div style="margin: 5px 0">选择题</div>
  513. </div>
  514. <!-- <div v-if="tooC == 5">
  515. <img
  516. @click="addTools(tooC, toolIndex, taskCount)"
  517. src="../assets/icon/thirdToolList/score.png"
  518. alt
  519. />
  520. <div style="margin: 5px 0">量规评分</div>
  521. </div> -->
  522. <div v-if="tooC == 10">
  523. <img @click="addTools(tooC, toolIndex, taskCount)"
  524. src="../assets/icon/thirdToolList/time.png" alt />
  525. <div style="margin: 5px 0">倒计时</div>
  526. </div>
  527. <div v-if="tooC == 15">
  528. <img @click="addTools(tooC, toolIndex, taskCount)"
  529. src="../assets/icon/thirdToolList/answer.png" alt />
  530. <div style="margin: 5px 0">问答工具</div>
  531. </div>
  532. <div v-if="tooC == 26">
  533. <img @click="addTools(tooC, toolIndex, taskCount)"
  534. src="../assets/icon/thirdToolList/courseDesign.png" alt />
  535. <div style="margin: 5px 0">课程设计</div>
  536. </div>
  537. <div v-if="tooC == 18">
  538. <img @click="addTools(tooC, toolIndex, taskCount)"
  539. src="../assets/icon/thirdToolList/trainPlatform.png" alt />
  540. <div style="margin: 5px 0">训练服务器</div>
  541. </div>
  542. <div v-if="tooC == 16">
  543. <img @click="addTools(tooC, toolIndex, taskCount)"
  544. src="../assets/icon/thirdToolList/work.png" alt />
  545. <div style="margin: 5px 0">作业提交</div>
  546. </div>
  547. <div v-if="tooC == 21">
  548. <img @click="addTools(tooC, toolIndex, taskCount)"
  549. src="../assets/icon/fourthToolList/program.png" alt />
  550. <div style="margin: 5px 0">编程平台</div>
  551. </div>
  552. <div v-if="tooC == 22">
  553. <img @click="addTools(tooC, toolIndex, taskCount)"
  554. src="../assets/icon/fourthToolList/program.png" alt />
  555. <div style="margin: 5px 0">AI体验</div>
  556. </div>
  557. <div v-if="tooC == 23">
  558. <img @click="addTools(tooC, toolIndex, taskCount)"
  559. src="../assets/icon/fourthToolList/program.png" alt />
  560. <div style="margin: 5px 0">python</div>
  561. </div>
  562. <div v-if="tooC == 24">
  563. <img @click="addTools(tooC, toolIndex, taskCount)"
  564. src="../assets/icon/fourthToolList/program.png" alt />
  565. <div style="margin: 5px 0">AI平台</div>
  566. </div>
  567. <div v-if="tooC == 25">
  568. <img @click="addTools(tooC, toolIndex, taskCount)"
  569. src="../assets/icon/thirdToolList/evalua.png" alt />
  570. <div style="margin: 5px 0">目标管理</div>
  571. </div>
  572. <div v-if="tooC == 31">
  573. <img @click="addTools(tooC, toolIndex, taskCount)"
  574. src="../assets/icon/secondToolList/networkPanel.png" alt />
  575. <div style="margin: 5px 0">数学画板</div>
  576. </div>
  577. <div v-if="tooC == 28">
  578. <img @click="addTools(tooC, toolIndex, taskCount)"
  579. src="../assets/icon/secondToolList/translation.png" alt />
  580. <div style="margin: 5px 0">翻译</div>
  581. </div>
  582. <div v-if="tooC == 37">
  583. <img @click="addTools(tooC, toolIndex, taskCount)"
  584. src="../assets/icon/secondToolList/mohe.png" alt />
  585. <div style="margin: 5px 0">魔盒识字</div>
  586. </div>
  587. <div v-if="tooC == 38">
  588. <img @click="addTools(tooC, toolIndex, taskCount)"
  589. src="../assets/icon/secondToolList/24game.png" alt />
  590. <div style="margin: 5px 0">24点</div>
  591. </div>
  592. <div v-if="tooC == 39">
  593. <img @click="addTools(tooC, toolIndex, taskCount)"
  594. src="../assets/icon/secondToolList/GeoGebra.png" alt />
  595. <div style="margin: 5px 0">GeoGebra</div>
  596. </div>
  597. <div v-if="tooC == 32">
  598. <img @click="addTools(tooC, toolIndex, taskCount)"
  599. src="../assets/icon/thirdToolList/code.png" alt />
  600. <div style="margin: 5px 0">源码编辑</div>
  601. </div>
  602. <div v-if="tooC == 40">
  603. <img @click="addTools(tooC, toolIndex, taskCount)"
  604. src="../assets/icon/secondToolList/eval.png" alt />
  605. <div style="margin: 5px 0">学生评价</div>
  606. </div>
  607. <div v-if="tooC == 41">
  608. <img @click="addTools(tooC, toolIndex, taskCount)"
  609. src="../assets/icon/thirdToolList/select.png" alt />
  610. <div style="margin: 5px 0">选择填空</div>
  611. </div>
  612. </div>
  613. </div>
  614. </div>
  615. <div class="tooldetail" v-if="tool.toolDetail != ''">
  616. <!-- <div class="toolTitle">工具描述</div> -->
  617. <div v-html="contentConvent(tool.toolDetail)">
  618. <!-- {{ contentConvent(tool.toolDetail) }} -->
  619. </div>
  620. </div>
  621. </div>
  622. <div v-if="tType && tType == 2 && tool.tool.indexOf(16) != -1" class="worksBox">
  623. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  624. <span>作业预览</span>
  625. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  626. </div>
  627. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  628. <div class="works" style="
  629. width: 200px;
  630. height: 140px;
  631. margin: 10px 10px 10px 0;
  632. box-shadow: 0 0 6px 1px #dfdada;
  633. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  634. <div class="workImg" v-if="w.type == 0">
  635. <img :src="w.works" @click="previewImg(w.works)" alt />
  636. </div>
  637. <div class="workImg" v-if="w.type == 1">
  638. <img :src="word" @click="openFile(w.works)" alt />
  639. </div>
  640. <div class="workImg" v-if="w.type == 3">
  641. <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
  642. </div>
  643. <div class="worksName">
  644. <div>{{ w.sName }}</div>
  645. </div>
  646. </div>
  647. </div>
  648. </div>
  649. <div v-if="tType && tType == 2 && tool.tool.indexOf(4) != -1" class="worksBox">
  650. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  651. <span>作业预览</span>
  652. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  653. </div>
  654. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  655. <div class="works" style="
  656. width: 200px;
  657. height: 140px;
  658. border-radius: 10px;
  659. box-shadow: 0 0 6px 1px #dfdada;
  660. overflow: hidden;
  661. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  662. <div class="workImg">
  663. <img src="../assets/icon/works/noImg.png" @click="
  664. openTools(
  665. 4,
  666. toolIndex,
  667. taskCount,
  668. w.works,
  669. w.sName
  670. )
  671. " alt />
  672. </div>
  673. <div class="worksName">
  674. <div>{{ w.sName }}</div>
  675. <div>{{ w.time }}</div>
  676. </div>
  677. </div>
  678. </div>
  679. </div>
  680. <div v-if="tType && tType == 2 && tool.tool.indexOf(15) != -1" class="worksBox">
  681. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  682. <span>作业预览</span>
  683. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  684. </div>
  685. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  686. <div class="works" v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  687. <div class="workImg">
  688. <!-- <img
  689. src="../assets/icon/works/noImg.png"
  690. @click="openTools(15, toolIndex, taskCount, w.works)"
  691. alt=""
  692. />-->
  693. <div class="answerBg">
  694. <div>{{ w.sName }}</div>
  695. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  696. placement="top">
  697. <div class="answerContent">
  698. {{ JSON.parse(w.works)[0].answer }}
  699. </div>
  700. </el-tooltip>
  701. </div>
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. <div v-if="tType && tType == 2 && tool.tool.indexOf(1) != -1" class="worksBox">
  707. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  708. <span>作业预览</span>
  709. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  710. </div>
  711. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  712. <div class="works" style="
  713. width: 200px;
  714. height: 140px;
  715. margin: 10px 10px 10px 0;
  716. box-shadow: 0 0 6px 1px #dfdada;
  717. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  718. <div class="workImg">
  719. <img :src="w.works" @click="previewImg(w.works)" alt />
  720. </div>
  721. <div class="worksName">
  722. <div>{{ w.sName }}</div>
  723. </div>
  724. </div>
  725. </div>
  726. </div>
  727. <div v-if="tType && tType == 2 && tool.tool.indexOf(3) != -1" class="worksBox">
  728. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  729. <span>作业预览</span>
  730. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  731. </div>
  732. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  733. <div class="works" style="
  734. width: 200px;
  735. height: 140px;
  736. margin: 10px 10px 10px 0;
  737. box-shadow: 0 0 6px 1px #dfdada;
  738. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  739. <div class="workImg">
  740. <img :src="w.works" @click="previewImg(w.works)" alt />
  741. </div>
  742. <div class="worksName">
  743. <div>{{ w.sName }}</div>
  744. </div>
  745. </div>
  746. </div>
  747. </div>
  748. <div v-if="tType && tType == 2 && tool.tool.indexOf(6) != -1" class="worksBox">
  749. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  750. <span>作业预览</span>
  751. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  752. </div>
  753. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  754. <div class="works" style="
  755. width: 200px;
  756. height: 140px;
  757. margin: 10px 10px 10px 0;
  758. box-shadow: 0 0 6px 1px #dfdada;
  759. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  760. <div class="workImg">
  761. <img :src="w.works" @click="previewImg(w.works)" alt />
  762. </div>
  763. <div class="worksName">
  764. <div>{{ w.sName }}</div>
  765. </div>
  766. </div>
  767. </div>
  768. </div>
  769. <div v-if="tType && tType == 2 && tool.tool.indexOf(7) != -1" class="worksBox">
  770. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  771. <span>作业预览</span>
  772. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  773. </div>
  774. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  775. <div class="works" style="
  776. width: 200px;
  777. height: 140px;
  778. margin: 10px 10px 10px 0;
  779. box-shadow: 0 0 6px 1px #dfdada;
  780. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  781. <div class="workImg">
  782. <img :src="w.works" @click="previewImg(w.works)" alt />
  783. </div>
  784. <div class="worksName">
  785. <div>{{ w.sName }}</div>
  786. </div>
  787. </div>
  788. </div>
  789. </div>
  790. <div v-if="tType && tType == 2 && tool.tool.indexOf(26) != -1" class="worksBox">
  791. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  792. <span>作业预览</span>
  793. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  794. </div>
  795. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  796. <div class="works" style="
  797. width: 200px;
  798. height: 140px;
  799. margin: 10px 10px 10px 0;
  800. box-shadow: 0 0 6px 1px #dfdada;
  801. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  802. <div class="workImg">
  803. <img :src="w.works" @click="previewImg(w.works)" alt />
  804. </div>
  805. <div class="worksName">
  806. <div>{{ w.sName }}</div>
  807. </div>
  808. </div>
  809. </div>
  810. </div>
  811. <div v-if="
  812. tType &&
  813. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  814. tool.tool.indexOf(16) != -1
  815. " class="worksBox">
  816. <div class="zuoyeYulan" v-if="
  817. worksStudent.length &&
  818. worksStudent[toolIndex].length > 0
  819. ">
  820. <span>作业预览</span>
  821. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  822. </div>
  823. <div class="worksDetailBox" v-if="
  824. worksStudent.length &&
  825. worksStudent[toolIndex].length > 0
  826. ">
  827. <div class="works" style="
  828. width: 200px;
  829. height: 140px;
  830. margin: 10px 10px 10px 0;
  831. border-radius: 15px;
  832. box-shadow: 0 0 6px 1px #dfdada;
  833. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  834. :class="w.type == 1 ? 'isTypeOne' : ''">
  835. <div class="workImg" v-if="w.type == 0">
  836. <img :src="w.works" @click="previewImg(w.works)" alt />
  837. </div>
  838. <div class="workImg" v-if="w.type == 1">
  839. <img :src="word" @click="openFile(w.works)" alt />
  840. </div>
  841. <div class="workImg" v-if="w.type == 3">
  842. <img style="cursor: pointer" :src="video" @click="openVideo(w.works)" alt />
  843. </div>
  844. <div class="comment" style="min-width: 200px">
  845. <div class="worksName">
  846. <div>{{ w.sName }}</div>
  847. </div>
  848. <div class="commentList">
  849. <div class="commentList">
  850. <div class="commentImg" @click="
  851. isLikes(w.wid, userid, 1, null, w.isLikes)
  852. ">
  853. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  854. </div>
  855. <div>{{ w.likesCount }}</div>
  856. </div>
  857. <div class="commentList" style="margin-right: 15px">
  858. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  859. <img src="../assets/icon/comment/comment.png" alt="" />
  860. </div>
  861. <div>{{ w.commentCount }}</div>
  862. </div>
  863. </div>
  864. </div>
  865. </div>
  866. </div>
  867. <div style="font-size: 18px">未提交</div>
  868. <div class="noWorksS">
  869. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  870. {{ s.student }}
  871. </div>
  872. </div>
  873. </div>
  874. <div v-if="
  875. tType &&
  876. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  877. tool.tool.indexOf(4) != -1 && (tool.askJson[0].answer || tool.askJson[0].answer === 0)
  878. " class="xuan_right_box">
  879. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  880. <div>
  881. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  882. </div>
  883. <div class="right_box_xuan" v-for="(item1, checkIndex) in item.askItem" :key="checkIndex"
  884. v-if=" item.answer == checkIndex">
  885. <span>正确率</span>
  886. <span>{{
  887. (checkJson[toolIndex][index].checkPerent[checkIndex]
  888. ? checkJson[toolIndex][index].checkPerent[checkIndex]
  889. : 0) +'%'
  890. }}</span>
  891. </div>
  892. </div>
  893. </div>
  894. <div v-if="
  895. tType &&
  896. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  897. tool.tool.indexOf(4) != -1
  898. " class="worksBox">
  899. <div class="zuoyeYulan" v-if="
  900. worksStudent.length &&
  901. worksStudent[toolIndex].length > 0
  902. ">
  903. <span>作业预览</span>
  904. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  905. </div>
  906. <div>
  907. <div class="worksDetailBox" v-if="
  908. worksStudent.length &&
  909. worksStudent[toolIndex].length > 0
  910. ">
  911. <div class="works" style="
  912. width: 200px;
  913. height: 140px;
  914. border-radius: 10px;
  915. box-shadow: 0 0 6px 1px #dfdada;
  916. overflow: hidden;
  917. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  918. <!-- @click="previewImg(w.works)" -->
  919. <div class="workImg">
  920. <img src="../assets/icon/works/noImg.png" @click="
  921. openTools(
  922. 4,
  923. toolIndex,
  924. taskCount,
  925. w.works,
  926. w.sName
  927. )
  928. " alt />
  929. </div>
  930. <div class="worksName">
  931. <div>{{ w.sName }}</div>
  932. <div>{{ w.time }}</div>
  933. </div>
  934. </div>
  935. </div>
  936. </div>
  937. <div style="font-size: 18px">未提交</div>
  938. <div class="noWorksS">
  939. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  940. {{ s.student }}
  941. </div>
  942. </div>
  943. <AskStatic v-if="
  944. worksStudent.length &&
  945. worksStudent[toolIndex].length > 0
  946. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  947. </div>
  948. <div v-if="
  949. tType &&
  950. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  951. tool.tool.indexOf(15) != -1
  952. " class="worksBox">
  953. <div class="zuoyeYulan" v-if="
  954. worksStudent.length &&
  955. worksStudent[toolIndex].length > 0
  956. ">
  957. <span>作业预览</span>
  958. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  959. </div>
  960. <div class="worksDetailBox" v-if="
  961. worksStudent.length &&
  962. worksStudent[toolIndex].length > 0
  963. ">
  964. <div class="works" v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  965. <div class="workImg" style="
  966. border-radius: 15px;
  967. box-shadow: #eee 0px 0px 5px 5px;
  968. ">
  969. <!-- <img
  970. src="../assets/icon/works/noImg.png"
  971. @click="openTools(15, toolIndex, taskCount, w.works)"
  972. alt=""
  973. />-->
  974. <div class="answerBg" style="border-radius: 15px 15px 0 0">
  975. <div>{{ w.sName }}</div>
  976. <el-tooltip class="item" effect="light" :content="JSON.parse(w.works)[0].answer"
  977. placement="top">
  978. <div class="answerContent">
  979. {{ JSON.parse(w.works)[0].answer }}
  980. </div>
  981. </el-tooltip>
  982. </div>
  983. <div class="comment">
  984. <div class="commentList">
  985. <div class="commentImg" @click="
  986. isLikes(w.wid, userid, 1, null, w.isLikes)
  987. ">
  988. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  989. </div>
  990. <div>{{ w.likesCount }}</div>
  991. </div>
  992. <div class="commentList" style="margin-right: 15px">
  993. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  994. <img src="../assets/icon/comment/comment.png" alt="" />
  995. </div>
  996. <div>{{ w.commentCount }}</div>
  997. </div>
  998. </div>
  999. </div>
  1000. </div>
  1001. </div>
  1002. <div style="font-size: 18px">未提交</div>
  1003. <div class="noWorksS">
  1004. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1005. {{ s.student }}
  1006. </div>
  1007. </div>
  1008. </div>
  1009. <div v-if="
  1010. tType &&
  1011. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1012. tool.tool.indexOf(1) != -1
  1013. " class="worksBox">
  1014. <div class="zuoyeYulan" v-if="
  1015. worksStudent.length &&
  1016. worksStudent[toolIndex].length > 0
  1017. ">
  1018. <span>作业预览</span>
  1019. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1020. </div>
  1021. <div class="worksDetailBox" v-if="
  1022. worksStudent.length &&
  1023. worksStudent[toolIndex].length > 0
  1024. ">
  1025. <div class="works" style="
  1026. width: 200px;
  1027. height: 140px;
  1028. margin: 10px 10px 10px 0;
  1029. border-radius: 15px;
  1030. box-shadow: 0 0 6px 1px #dfdada;
  1031. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1032. <!-- @click="previewImg(w.works)" -->
  1033. <div class="workImg">
  1034. <img :src="w.works" @click="previewImg(w.works)" alt />
  1035. </div>
  1036. <div class="comment" style="min-width: 200px">
  1037. <div class="worksName">
  1038. <div>{{ w.sName }}</div>
  1039. </div>
  1040. <div class="commentList">
  1041. <div class="commentList">
  1042. <div class="commentImg" @click="
  1043. isLikes(w.wid, userid, 1, null, w.isLikes)
  1044. ">
  1045. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1046. </div>
  1047. <div>{{ w.likesCount }}</div>
  1048. </div>
  1049. <div class="commentList" style="margin-right: 15px">
  1050. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1051. <img src="../assets/icon/comment/comment.png" alt="" />
  1052. </div>
  1053. <div>{{ w.commentCount }}</div>
  1054. </div>
  1055. </div>
  1056. </div>
  1057. </div>
  1058. </div>
  1059. <div style="font-size: 18px">未提交</div>
  1060. <div class="noWorksS">
  1061. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1062. {{ s.student }}
  1063. </div>
  1064. </div>
  1065. </div>
  1066. <div v-if="
  1067. tType &&
  1068. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1069. tool.tool.indexOf(3) != -1
  1070. " class="worksBox">
  1071. <div class="zuoyeYulan" v-if="
  1072. worksStudent.length &&
  1073. worksStudent[toolIndex].length > 0
  1074. ">
  1075. <span>作业预览</span>
  1076. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1077. </div>
  1078. <div class="worksDetailBox" v-if="
  1079. worksStudent.length &&
  1080. worksStudent[toolIndex].length > 0
  1081. ">
  1082. <div class="works" style="
  1083. width: 200px;
  1084. height: 140px;
  1085. margin: 10px 10px 10px 0;
  1086. border-radius: 15px;
  1087. box-shadow: 0 0 6px 1px #dfdada;
  1088. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1089. <!-- @click="previewImg(w.works)" -->
  1090. <div class="workImg">
  1091. <img :src="w.works" @click="previewImg(w.works)" alt />
  1092. </div>
  1093. <div class="comment" style="min-width: 200px">
  1094. <div class="worksName">
  1095. <div>{{ w.sName }}</div>
  1096. </div>
  1097. <div class="commentList">
  1098. <div class="commentList">
  1099. <div class="commentImg" @click="
  1100. isLikes(w.wid, userid, 1, null, w.isLikes)
  1101. ">
  1102. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1103. </div>
  1104. <div>{{ w.likesCount }}</div>
  1105. </div>
  1106. <div class="commentList" style="margin-right: 15px">
  1107. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1108. <img src="../assets/icon/comment/comment.png" alt="" />
  1109. </div>
  1110. <div>{{ w.commentCount }}</div>
  1111. </div>
  1112. </div>
  1113. </div>
  1114. </div>
  1115. </div>
  1116. <div style="font-size: 18px">未提交</div>
  1117. <div class="noWorksS">
  1118. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1119. {{ s.student }}
  1120. </div>
  1121. </div>
  1122. </div>
  1123. <div v-if="
  1124. tType &&
  1125. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1126. tool.tool.indexOf(6) != -1
  1127. " class="worksBox">
  1128. <div class="zuoyeYulan" v-if="
  1129. worksStudent.length &&
  1130. worksStudent[toolIndex].length > 0
  1131. ">
  1132. <span>作业预览</span>
  1133. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1134. </div>
  1135. <div class="worksDetailBox" v-if="
  1136. worksStudent.length &&
  1137. worksStudent[toolIndex].length > 0
  1138. ">
  1139. <div class="works" style="
  1140. width: 200px;
  1141. height: 140px;
  1142. margin: 10px 10px 10px 0;
  1143. border-radius: 15px;
  1144. box-shadow: 0 0 6px 1px #dfdada;
  1145. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1146. <!-- @click="previewImg(w.works)" -->
  1147. <div class="workImg">
  1148. <img :src="w.works" @click="previewImg(w.works)" alt />
  1149. </div>
  1150. <div class="comment" style="min-width: 200px">
  1151. <div class="worksName">
  1152. <div>{{ w.sName }}</div>
  1153. </div>
  1154. <div class="commentList">
  1155. <div class="commentList">
  1156. <div class="commentImg" @click="
  1157. isLikes(w.wid, userid, 1, null, w.isLikes)
  1158. ">
  1159. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1160. </div>
  1161. <div>{{ w.likesCount }}</div>
  1162. </div>
  1163. <div class="commentList" style="margin-right: 15px">
  1164. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1165. <img src="../assets/icon/comment/comment.png" alt="" />
  1166. </div>
  1167. <div>{{ w.commentCount }}</div>
  1168. </div>
  1169. </div>
  1170. </div>
  1171. </div>
  1172. </div>
  1173. <div style="font-size: 18px">未提交</div>
  1174. <div class="noWorksS">
  1175. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1176. {{ s.student }}
  1177. </div>
  1178. </div>
  1179. </div>
  1180. <div v-if="
  1181. tType &&
  1182. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1183. tool.tool.indexOf(7) != -1
  1184. " class="worksBox">
  1185. <div class="zuoyeYulan" v-if="
  1186. worksStudent.length &&
  1187. worksStudent[toolIndex].length > 0
  1188. ">
  1189. <span>作业预览</span>
  1190. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1191. </div>
  1192. <div class="worksDetailBox" v-if="
  1193. worksStudent.length &&
  1194. worksStudent[toolIndex].length > 0
  1195. ">
  1196. <div class="works" style="
  1197. width: 200px;
  1198. height: 140px;
  1199. margin: 10px 10px 10px 0;
  1200. border-radius: 15px;
  1201. box-shadow: 0 0 6px 1px #dfdada;
  1202. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1203. <!-- @click="previewImg(w.works)" -->
  1204. <div class="workImg">
  1205. <img :src="w.works" @click="previewImg(w.works)" alt />
  1206. </div>
  1207. <div class="comment" style="min-width: 200px">
  1208. <div class="worksName">
  1209. <div>{{ w.sName }}</div>
  1210. </div>
  1211. <div class="commentList">
  1212. <div class="commentList">
  1213. <div class="commentImg" @click="
  1214. isLikes(w.wid, userid, 1, null, w.isLikes)
  1215. ">
  1216. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1217. </div>
  1218. <div>{{ w.likesCount }}</div>
  1219. </div>
  1220. <div class="commentList" style="margin-right: 15px">
  1221. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1222. <img src="../assets/icon/comment/comment.png" alt="" />
  1223. </div>
  1224. <div>{{ w.commentCount }}</div>
  1225. </div>
  1226. </div>
  1227. </div>
  1228. </div>
  1229. </div>
  1230. <div style="font-size: 18px">未提交</div>
  1231. <div class="noWorksS">
  1232. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1233. {{ s.student }}
  1234. </div>
  1235. </div>
  1236. </div>
  1237. <div v-if="
  1238. tType &&
  1239. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1240. tool.tool.indexOf(26) != -1
  1241. " class="worksBox">
  1242. <div class="zuoyeYulan" v-if="
  1243. worksStudent.length &&
  1244. worksStudent[toolIndex].length > 0
  1245. ">
  1246. <span>作业预览</span>
  1247. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1248. </div>
  1249. <div class="worksDetailBox" v-if="
  1250. worksStudent.length &&
  1251. worksStudent[toolIndex].length > 0
  1252. ">
  1253. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1254. v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1255. :class="w.type == 1 ? 'isTypeOne' : ''">
  1256. <div class="workImg" v-if="w.type == 0">
  1257. <img :src="w.works" @click="previewImg(w.works)" alt />
  1258. </div>
  1259. <div class="workImg" v-if="w.type == 1">
  1260. <img :src="word" @click="openFile(w.works)" alt />
  1261. </div>
  1262. <div class="worksName">
  1263. <div>{{ w.sName }}</div>
  1264. </div>
  1265. </div>
  1266. </div>
  1267. <div style="font-size: 18px">未提交</div>
  1268. <div class="noWorksS">
  1269. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1270. {{ s.student }}
  1271. </div>
  1272. </div>
  1273. </div>
  1274. <div v-if="
  1275. tType &&
  1276. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1277. tool.tool.indexOf(40) != -1
  1278. " class="worksBox">
  1279. <div class="zuoyeYulan" v-if="
  1280. worksStudent.length &&
  1281. worksStudent[toolIndex].length > 0
  1282. ">
  1283. <span>作业预览</span>
  1284. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1285. </div>
  1286. <div class="worksDetailBox" v-if="
  1287. worksStudent.length &&
  1288. worksStudent[toolIndex].length > 0
  1289. ">
  1290. <div class="works" style="
  1291. width: 200px;
  1292. height: 140px;
  1293. margin: 10px 10px 10px 0;
  1294. border-radius: 15px;
  1295. box-shadow: 0 0 6px 1px #dfdada;
  1296. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1297. :class="w.type == 1 ? 'isTypeOne' : ''">
  1298. <div class="workImg">
  1299. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1300. </div>
  1301. <div class="comment" style="min-width: 200px">
  1302. <div class="worksName">
  1303. <div>{{ w.sName }}</div>
  1304. </div>
  1305. <div class="commentList">
  1306. <div class="commentList">
  1307. <div class="commentImg" @click="
  1308. isLikes(w.wid, userid, 1, null, w.isLikes)
  1309. ">
  1310. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1311. </div>
  1312. <div>{{ w.likesCount }}</div>
  1313. </div>
  1314. <div class="commentList" style="margin-right: 15px">
  1315. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1316. <img src="../assets/icon/comment/comment.png" alt="" />
  1317. </div>
  1318. <div>{{ w.commentCount }}</div>
  1319. </div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. </div>
  1324. <div style="font-size: 18px">未提交</div>
  1325. <div class="noWorksS">
  1326. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1327. {{ s.student }}
  1328. </div>
  1329. </div>
  1330. </div>
  1331. <div v-if="tType && tType == 2 && tool.tool.indexOf(40) != -1" class="worksBox">
  1332. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1333. <span>作业预览</span>
  1334. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1335. </div>
  1336. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1337. <div class="works" style="
  1338. width: 200px;
  1339. height: 140px;
  1340. margin: 10px 10px 10px 0;
  1341. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1342. <div class="workImg">
  1343. <img src="../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1344. </div>
  1345. <div class="worksName">
  1346. <div>{{ w.sName }}</div>
  1347. </div>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. <div v-if="
  1352. tType &&
  1353. ((tType == 2 && sIsOpen == true) || tType == 1) &&
  1354. tool.tool.indexOf(41) != -1
  1355. " class="worksBox">
  1356. <div class="zuoyeYulan" v-if="
  1357. worksStudent.length &&
  1358. worksStudent[toolIndex].length > 0
  1359. ">
  1360. <span>作业预览</span>
  1361. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1362. </div>
  1363. <div class="worksDetailBox" v-if="
  1364. worksStudent.length &&
  1365. worksStudent[toolIndex].length > 0
  1366. ">
  1367. <div class="works" style="
  1368. width: 200px;
  1369. height: 140px;
  1370. margin: 10px 10px 10px 0;
  1371. border-radius: 15px;
  1372. box-shadow: 0 0 6px 1px #dfdada;
  1373. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  1374. :class="w.type == 5 ? 'isTypeOne' : ''">
  1375. <div class="workImg">
  1376. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1377. </div>
  1378. <div class="worksName">
  1379. <div>{{ w.sName }}</div>
  1380. </div>
  1381. <!-- <div class="comment" style="min-width: 200px">
  1382. <div class="worksName">
  1383. <div>{{ w.sName }}</div>
  1384. </div>
  1385. <div class="commentList">
  1386. <div class="commentList">
  1387. <div
  1388. class="commentImg"
  1389. @click="
  1390. isLikes(w.wid, userid, 1, null, w.isLikes)
  1391. "
  1392. >
  1393. <img
  1394. :src="w.isLikes == true ? likes : noLikes"
  1395. alt=""
  1396. />
  1397. </div>
  1398. <div>{{ w.likesCount }}</div>
  1399. </div>
  1400. <div class="commentList" style="margin-right: 15px">
  1401. <div
  1402. class="commentImg"
  1403. @click="commentOther(w, toolIndex)"
  1404. >
  1405. <img
  1406. src="../assets/icon/comment/comment.png"
  1407. alt=""
  1408. />
  1409. </div>
  1410. <div>{{ w.commentCount }}</div>
  1411. </div>
  1412. </div>
  1413. </div> -->
  1414. </div>
  1415. </div>
  1416. <div style="font-size: 18px">未提交</div>
  1417. <div class="noWorksS">
  1418. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName">
  1419. {{ s.student }}
  1420. </div>
  1421. </div>
  1422. <AnswerData2 v-if="
  1423. worksStudent.length &&
  1424. worksStudent[toolIndex].length > 0
  1425. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1426. </div>
  1427. <div v-if="tType && tType == 2 && tool.tool.indexOf(41) != -1" class="worksBox">
  1428. <div class="zuoyeYulan" v-if="workStudent[toolIndex].length > 0">
  1429. <span>作业预览</span>
  1430. <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button>
  1431. </div>
  1432. <div class="worksDetailBox" v-if="workStudent[toolIndex].length > 0">
  1433. <div class="works" style="
  1434. width: 200px;
  1435. height: 140px;
  1436. margin: 10px 10px 10px 0;
  1437. " v-for="(w, wIndex) in workStudent[toolIndex]" :key="wIndex">
  1438. <div class="workImg">
  1439. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  1440. </div>
  1441. <div class="worksName">
  1442. <div>{{ w.sName }}</div>
  1443. </div>
  1444. </div>
  1445. </div>
  1446. </div>
  1447. </div>
  1448. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  1449. 上传文件
  1450. <input
  1451. type="file"
  1452. accept="image/png, image/gif, image/jpeg"
  1453. style="display: none"
  1454. @change="beforeUpload1($event, 2, index)"
  1455. />
  1456. </div>-->
  1457. </div>
  1458. </div>
  1459. <div class="vedioBox" v-if="
  1460. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1461. .eList &&
  1462. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1463. .eList.length &&
  1464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  1465. .eList.length > 0
  1466. ">
  1467. <div class="queTop" style="
  1468. font-size: 25px;
  1469. padding: 15px 0 15px 30px;
  1470. font-weight: bold;
  1471. ">
  1472. <!-- <div class="question" style="width: 30px">
  1473. <img src="../assets/icon/toolIcon.png" alt />
  1474. </div>
  1475. <div class="queTitle">
  1476. <div>工具</div>
  1477. </div>-->
  1478. 评一评
  1479. </div>
  1480. <div class="evaCss">
  1481. <div class="elist_input">
  1482. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  1483. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  1484. <div style="width: 95%">
  1485. <div style="
  1486. display: flex;
  1487. flex-direction: row;
  1488. flex-wrap: nowrap;
  1489. align-items: center;
  1490. ">
  1491. <div style="max-width: calc(100% - 285px)">
  1492. <span>{{ eItem.value }}</span>
  1493. </div>
  1494. <div style="
  1495. padding-left: 25px;
  1496. display: flex;
  1497. flex-direction: row;
  1498. align-items: center;
  1499. ">
  1500. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  1501. </div>
  1502. </div>
  1503. <div class="elist_inptu_text" style="padding-left: 10px">
  1504. <span v-if="eItem.detail != ''">{{
  1505. eItem.detail
  1506. }}</span>
  1507. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. </div>
  1512. <div v-if="evalua" style="
  1513. border: 1px solid #e5e5e5;
  1514. width: 650px;
  1515. margin-top: 20px;
  1516. box-shadow: 3px 1px 15px 3px #e0e0e0;
  1517. ">
  1518. <div class="e_add_top">
  1519. <div class="e_add_title">
  1520. <span>目标管理名称</span>
  1521. <span>{{ eTitle }}</span>
  1522. <img src="../assets/line.png" class="cru_line" style="
  1523. width: 125px;
  1524. height: 20px;
  1525. bottom: -10px;
  1526. left: 120px;
  1527. " />
  1528. <!-- <el-input
  1529. v-model="eTitle"
  1530. placeholder="请输入名称"
  1531. @change="setMindData"
  1532. ></el-input>-->
  1533. </div>
  1534. </div>
  1535. <div class="e_add_content">
  1536. <div class="e_add_list_pbox">
  1537. <div class="e_add_list_pbox_title">
  1538. <span class="type_title">切换模式</span>
  1539. <div class="type_content">
  1540. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  1541. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  1542. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  1543. </div>
  1544. </div>
  1545. <div class="e_add_list_pbox_content">
  1546. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  1547. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  1548. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  1549. v-if="typeMode == 3"></SeeBoard>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. </div>
  1554. </div>
  1555. </div>
  1556. <!-- <div
  1557. class="project_box"
  1558. style="margin-top: 15px; padding-bottom: 30px"
  1559. >
  1560. <div
  1561. style="
  1562. display: flex;
  1563. flex-wrap: nowrap;
  1564. flex-direction: column;
  1565. position: relative;
  1566. "
  1567. >
  1568. <div class="queTop">
  1569. <div class="question">
  1570. <img src="../assets/icon/homeWork.png" alt="" />
  1571. </div>
  1572. <div class="queTitle">
  1573. <div>作业提交<span>(提交图文视频等)</span></div>
  1574. <div>:任务:{{ task.task }}</div>
  1575. </div>
  1576. </div>
  1577. <div class="ediBottom">
  1578. <div
  1579. class="addEditor"
  1580. style="margin-top: 23px"
  1581. @click="openAddWork"
  1582. v-if="!isNoHomeWork"
  1583. >
  1584. 选择文件
  1585. </div>
  1586. <div
  1587. class="addEditor"
  1588. style="margin-top: 23px"
  1589. @click="openAddWork"
  1590. v-else
  1591. >
  1592. 已提交
  1593. </div>
  1594. </div>
  1595. </div>
  1596. </div>-->
  1597. </div>
  1598. </div>
  1599. <el-dialog title="提交实践作业" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  1600. :before-close="handleClose" class="dialog_change">
  1601. <div class="marginT">
  1602. <div>上传文件</div>
  1603. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  1604. <div class="up_photo">
  1605. <img src="../assets/icon/uploadImg.png" alt />
  1606. </div>
  1607. <input type="file"
  1608. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  1609. capture="camera" style="display: none" @change="beforeUpload1($event, 1)" />
  1610. <!-- <input
  1611. type="file"
  1612. accept="image/*"
  1613. capture="camera"
  1614. style="display: none"
  1615. @change="beforeUpload1($event, 1)"
  1616. /> -->
  1617. </div>
  1618. <div class="chapter_add" style="
  1619. display: flex;
  1620. width: 100%;
  1621. flex-direction: row;
  1622. flex-wrap: wrap;
  1623. justify-content: flex-start;
  1624. padding: 15px 0;
  1625. " v-if="studyJuri[0].cover.length > 0">
  1626. <div class="upCover">
  1627. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  1628. <img :src="word" alt v-else-if="fileType == 1" />
  1629. <img :src="video" alt v-else />
  1630. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1631. <div class="deleteWord" @click="clean(1)">
  1632. <img src="../assets/icon/deleteWorks.png" alt />
  1633. </div>
  1634. </div>
  1635. </div>
  1636. </div>
  1637. <!-- <div class="first">
  1638. <div>作业名称:</div>
  1639. <div>{{ chapInfoList[courseType].dyName }}</div>
  1640. </div>
  1641. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  1642. <el-input
  1643. type="textarea"
  1644. resize="none"
  1645. rows="7"
  1646. placeholder="输入文字描述..."
  1647. v-model="studyJuri[0].content"
  1648. ></el-input>
  1649. <div class="marginT">
  1650. <div>上传图片</div>
  1651. <div class="chapter_add" @click="addImg($event)">
  1652. <div class="up_photo">
  1653. <img src="../assets/photo.png" alt />
  1654. </div>
  1655. <input
  1656. type="file"
  1657. accept="image/png, image/gif, image/jpeg"
  1658. style="display: none"
  1659. @change="beforeUpload1($event, 1)"
  1660. />
  1661. </div>
  1662. <div
  1663. class="chapter_add"
  1664. style="
  1665. display: flex;
  1666. width: 100%;
  1667. flex-direction: row;
  1668. flex-wrap: wrap;
  1669. justify-content: flex-start;
  1670. "
  1671. v-if="studyJuri[0].cover.length > 0"
  1672. >
  1673. <div
  1674. v-for="(c, cIndex) in studyJuri[0].cover"
  1675. :key="cIndex"
  1676. class="upCover"
  1677. >
  1678. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  1679. <span class="picName">{{ c.name }}</span>
  1680. <div class="deleteWord" @click="clean(1)">
  1681. <img src="../assets/icon/delete.png" alt />
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. <div class="marginT">
  1687. <div>上传视频</div>
  1688. <div class="chapter_add" @click="addImg($event)">
  1689. <div class="up_photo">
  1690. <img src="../assets/vidio.png" alt />
  1691. </div>
  1692. <input
  1693. type="file"
  1694. accept="video/mp4, video/quicktime, video/x-msvideo"
  1695. style="display: none"
  1696. @change="beforeUpload2($event, 2)"
  1697. />
  1698. </div>
  1699. <div
  1700. class="chapter_add"
  1701. style="
  1702. display: flex;
  1703. flex-direction: row;
  1704. flex-wrap: wrap;
  1705. width: 100%;
  1706. justify-content: flex-start;
  1707. "
  1708. v-if="studyJuri[0].upVedio.length > 0"
  1709. >
  1710. <div
  1711. style="
  1712. width: 100%;
  1713. display: flex;
  1714. flex-direction: row;
  1715. flex-wrap: wrap;
  1716. align-content: flex-start;
  1717. justify-content: flex-start;
  1718. align-items: center;
  1719. "
  1720. >
  1721. <div
  1722. class="uploadVedio isAddThings"
  1723. v-for="(v, vIndex) in studyJuri[0].upVedio"
  1724. :key="vIndex"
  1725. >
  1726. <img src="../assets/uploadMp4.png" alt />
  1727. <span>{{ v.name }}</span>
  1728. <div class="deleteWord" @click="clean(2)">
  1729. <img src="../assets/icon/delete.png" alt />
  1730. </div>
  1731. </div>
  1732. </div>
  1733. </div>
  1734. </div>-->
  1735. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  1736. </el-dialog>
  1737. </div>
  1738. </div>
  1739. <div v-if="proVisible" class="mask">
  1740. <div class="progressBox">
  1741. <div class="lbox">
  1742. <img src="../assets/loading.gif" />上传中,请稍后
  1743. </div>
  1744. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  1745. </div>
  1746. </div>
  1747. <el-dialog :visible.sync="pictureDialog" size="tiny">
  1748. <img width="100%" :src="dialogImageUrl" alt />
  1749. </el-dialog>
  1750. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisible5" :append-to-body="true"
  1751. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1752. <div>
  1753. <div class="a_add_title" style="
  1754. display: flex;
  1755. flex-direction: row;
  1756. align-items: center;
  1757. justify-content: center;
  1758. ">
  1759. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1760. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1761. </div>
  1762. <div class="a_addBox">
  1763. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1764. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1765. <div class="a_add_head">
  1766. <div style="display: flex">
  1767. {{ index1 + 1 + "、" }}
  1768. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  1769. </div>
  1770. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  1771. style="width: 100%; margin-top: 10px" />
  1772. </div>
  1773. <div class="a_add_body">
  1774. <div class="a_add_input">
  1775. <el-radio-group v-model="radio[index1]">
  1776. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  1777. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  1778. v-html="item2"></span></el-radio>
  1779. </el-radio-group>
  1780. </div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. </div>
  1785. <span slot="footer" class="dialog-footer">
  1786. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  1787. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  1788. </span>
  1789. </el-dialog>
  1790. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  1791. :before-close="handleClose" class="dialog_diy textCss">
  1792. <el-form style="font-size: 20px">
  1793. <el-form-item label="文本标题" class="textTitle">
  1794. <div style="font-size: 20px">{{ text.name }}</div>
  1795. </el-form-item>
  1796. <div>富文本内容</div>
  1797. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  1798. </el-form>
  1799. <span slot="footer" class="dialog-footer">
  1800. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  1801. </span>
  1802. </el-dialog>
  1803. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  1804. :class="{ fullStyle: full }">
  1805. <div slot="title" class="header-title">
  1806. <div style="color: #fff">文件预览</div>
  1807. <div style="position: absolute; top: 19px; right: 50px">
  1808. <img src="../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  1809. </div>
  1810. </div>
  1811. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1812. :class="{ fullStyle: full }"></pdf>
  1813. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1814. </el-dialog>
  1815. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  1816. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  1817. </el-dialog>
  1818. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px"
  1819. :before-close="handleClose" class="dialog_diy notice">
  1820. <div>此功能暂未开放!</div>
  1821. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1822. </el-dialog>
  1823. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  1824. :before-close="handleClose" class="dialog_diy">
  1825. <div>
  1826. <div style="
  1827. display: flex;
  1828. flex-wrap: nowrap;
  1829. flex-direction: column;
  1830. position: relative;
  1831. ">
  1832. <div class="queTop" style="padding: 20px 0 20px 0">
  1833. <div class="question">
  1834. <img src="../assets/icon/question.png" alt />
  1835. </div>
  1836. <div class="queTitle">
  1837. <div style="width: 90px; min-width: 90px">提问:</div>
  1838. <div>{{ answerQ }}</div>
  1839. </div>
  1840. </div>
  1841. <div class="ediBottom">
  1842. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1843. v-model="questionAnswer"></textarea>
  1844. </div>
  1845. </div>
  1846. </div>
  1847. <div slot="footer">
  1848. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1849. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1850. </div>
  1851. </el-dialog>
  1852. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  1853. :before-close="handleClose" class="dialog_diy">
  1854. <div>
  1855. <Time v-if="timeDialogVisible"></Time>
  1856. </div>
  1857. <div slot="footer">
  1858. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1859. </div>
  1860. </el-dialog>
  1861. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  1862. class="dialog_diy">
  1863. <div>
  1864. <div>
  1865. <div>
  1866. <el-switch v-model="sIsOpen" active-text="学生是否能查看所有作业" class="switchCss" @change="updateSLook"></el-switch>
  1867. </div>
  1868. </div>
  1869. </div>
  1870. <div slot="footer">
  1871. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  1872. </div>
  1873. </el-dialog>
  1874. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px"
  1875. :before-close="handleClose" class="dialog_diy1">
  1876. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  1877. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1878. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  1879. </div>
  1880. <div slot="footer">
  1881. <el-button style="background: #409efe; color: #fff" @click="videoVisible = false">关 闭</el-button>
  1882. </div>
  1883. </el-dialog>
  1884. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  1885. :before-close="handleClose" class="dialog_diy">
  1886. <div class="commentTop">
  1887. <div class="studentDetail">
  1888. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  1889. <div class="nameAndTime">
  1890. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1891. <div>{{ commentDetail.time }}</div>
  1892. </div>
  1893. </div>
  1894. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1895. {{ JSON.parse(commentDetail.works)[0].answer }}
  1896. </div>
  1897. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1898. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1899. :class="{ fullStyle: full }"></pdf>
  1900. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600"
  1901. :class="{ fullStyle: full }"></iframe>
  1902. </div>
  1903. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1904. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1905. </div>
  1906. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1907. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1908. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1909. </div>
  1910. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  1911. <div class="evalCss">
  1912. <div class="nav">请选择星星进行评分</div>
  1913. <div class="middleBox" v-if="eScore.eStar">
  1914. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1915. <div class="nameAndrate">
  1916. <div>{{ e.value }}</div>
  1917. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  1918. </div>
  1919. <div v-if="e.detail">{{ e.detail }}</div>
  1920. </div>
  1921. <div class="bz">
  1922. <textarea disabled rows="4" class="pj" style="
  1923. padding: 10px 5px;
  1924. width: 70%;
  1925. background: #f7f6f9;
  1926. font-size: 14px;
  1927. text-indent: 10px;
  1928. color: #000;
  1929. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1930. </div>
  1931. </div>
  1932. </div>
  1933. </div>
  1934. <div class="comment">
  1935. <div class="commentList">
  1936. <div class="commentImg">
  1937. <img @click="
  1938. isLikes(
  1939. commentDetail.wid,
  1940. commentDetail.userid,
  1941. 1,
  1942. null,
  1943. commentDetail.isLikes
  1944. )
  1945. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  1946. </div>
  1947. <div>{{ commentDetail.likesCount }}</div>
  1948. </div>
  1949. <div class="commentList">
  1950. <div class="commentImg">
  1951. <img src="../assets/icon/comment/comment.png" alt="" />
  1952. </div>
  1953. <div>{{ commentDetail.commentCount }}</div>
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div class="commentBox">
  1958. <div class="pl">评论:</div>
  1959. <div style="max-height: 200px; overflow: auto">
  1960. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  1961. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  1962. :key="coIndex">
  1963. <div class="tx" style="min-width: 40px">
  1964. <img src="../assets/avatar.png" alt="" />
  1965. </div>
  1966. <div class="plPerson">
  1967. <div class="plName">
  1968. <div>{{ co.commentPeople }}</div>
  1969. <div style="margin-left: 5px">
  1970. {{ co.commentTime }}
  1971. </div>
  1972. </div>
  1973. <div class="plContent">{{ co.commentText }}</div>
  1974. </div>
  1975. </div>
  1976. </div>
  1977. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  1978. </div>
  1979. </div>
  1980. <div style="margin-top: 10px">
  1981. <div class="displayBox">
  1982. <div style="
  1983. color: #556db4;
  1984. font-size: 14px;
  1985. font-weight: bold;
  1986. padding-bottom: 10px;
  1987. ">
  1988. 评价
  1989. </div>
  1990. <div class="easy_comment">
  1991. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  1992. {{ p }}
  1993. </div>
  1994. </div>
  1995. </div>
  1996. <div>
  1997. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  1998. placeholder="请输入对该学生的评价"></textarea>
  1999. </div>
  2000. </div>
  2001. <div slot="footer">
  2002. <el-button @click="(commentDialogVisible = false), (this.commentIndexJson = {})">取 消</el-button>
  2003. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  2004. </div>
  2005. </el-dialog>
  2006. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  2007. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy">
  2008. <div slot="title" class="header-title">
  2009. <div style="color: #fff">查看文档</div>
  2010. <div @click="fullDialogVisible = false" style="
  2011. cursor: pointer;
  2012. position: absolute;
  2013. top: 20px;
  2014. right: 20px;
  2015. color: #fff;
  2016. ">
  2017. 退出全屏
  2018. </div>
  2019. </div>
  2020. <div style="height: 100%">
  2021. <iframe v-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  2022. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  2023. <div class="wheel" v-if="fulltype == 1" style="
  2024. box-shadow: 0 0 6px 1px #f2f2f2;
  2025. width: 100%;
  2026. background: #f1f1f1;
  2027. ">
  2028. <div class="title" style="width: 100%; box-sizing: border-box">
  2029. 查看文档
  2030. </div>
  2031. <el-form class="textBox" style="height: 90%">
  2032. <el-form-item class="textTitle">
  2033. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  2034. {{ fullUrl.name }}
  2035. </div>
  2036. </el-form-item>
  2037. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  2038. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  2039. </el-form>
  2040. </div>
  2041. </div>
  2042. <!-- <div slot="footer">
  2043. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  2044. </div> -->
  2045. </el-dialog>
  2046. <el-dialog title="学生评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  2047. :before-close="handleClose" class="dialog_diy">
  2048. <div class="evalCss">
  2049. <div class="nav">请选择星星进行评分</div>
  2050. <div class="middleBox" v-if="eScore.eStar">
  2051. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  2052. <div class="nameAndrate">
  2053. <div>{{ e.value }}</div>
  2054. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  2055. </div>
  2056. <div v-if="e.detail">{{ e.detail }}</div>
  2057. </div>
  2058. <div class="easy_comment" v-if="isStar == false">
  2059. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  2060. {{ p }}
  2061. </div>
  2062. </div>
  2063. <div class="bz">
  2064. <textarea :disabled="isStar" rows="4" class="pj" style="
  2065. padding: 10px 5px;
  2066. width: 70%;
  2067. background: #f7f6f9;
  2068. font-size: 14px;
  2069. text-indent: 10px;
  2070. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  2071. </div>
  2072. </div>
  2073. </div>
  2074. <div slot="footer">
  2075. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  2076. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  2077. </div>
  2078. </el-dialog>
  2079. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true"
  2080. :width="isSelect ? '1000px' : '800px'" :before-close="handleClose" class="dialog_diy dialog_diy3">
  2081. <div v-if="selectJson">
  2082. <div class="select_box2">
  2083. <div class="select_box2_title">
  2084. <div>选择填空</div>
  2085. <div>请选择对应的答案进行答题!</div>
  2086. </div>
  2087. <div class="select_box2_box">
  2088. <div class="select_box2_img">
  2089. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  2090. </div>
  2091. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  2092. <div style="padding-top: 15px">
  2093. <div class="select_answer_title" v-if="isSelect">
  2094. {{ selectAnswer.stu }}
  2095. </div>
  2096. <div class="select_answer_title" v-else>
  2097. 根据题目选择对应答案
  2098. </div>
  2099. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2100. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  2101. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  2102. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2103. </el-option>
  2104. </el-select>
  2105. </div>
  2106. </div>
  2107. <div class="rightAnswerCss" v-if="isSelect && tType == 1">
  2108. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  2109. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  2110. 回答正确
  2111. </div>
  2112. <div v-else>回答错误</div>
  2113. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  2114. 正确答案:
  2115. </div>
  2116. <div :class="
  2117. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  2118. ">
  2119. {{ selectJson.select[a] }}
  2120. </div>
  2121. </div>
  2122. </div>
  2123. </div>
  2124. <div class="upAnswerCss">
  2125. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  2126. </div>
  2127. </div>
  2128. </div>
  2129. </div>
  2130. </el-dialog>
  2131. </div>
  2132. </template>
  2133. <script>
  2134. import "../common/aws-sdk-2.235.1.min.js";
  2135. import pdf from "./components/pdf3";
  2136. import AskStatic from "./components/askStatic";
  2137. import AnswerData2 from "./components/answerData2";
  2138. import EditorBar from "./tools/wangEnduit.vue";
  2139. import Time from "./tools/time.vue";
  2140. import Mind from "./tools/jsmind.vue";
  2141. import Sunburst from "./tools/sunburst";
  2142. import SeeBoard from "./tools/seeBoard";
  2143. import * as imageConversion from "image-conversion";
  2144. export default {
  2145. components: {
  2146. EditorBar,
  2147. Time,
  2148. pdf,
  2149. AskStatic,
  2150. Mind,
  2151. Sunburst,
  2152. SeeBoard,
  2153. AnswerData2,
  2154. },
  2155. data() {
  2156. return {
  2157. dialogVisible: false,
  2158. commentDialogVisible: false,
  2159. videoVisible: false,
  2160. isStar: false,
  2161. studentEvalDialogVisible: false,
  2162. dialogVisibleSelect: false,
  2163. bzText: "",
  2164. commentDetail: [],
  2165. selectAnswer: [],
  2166. videoDetail: {},
  2167. selectJson: {},
  2168. eScore: { eBzText: "", eStar: [] },
  2169. id: this.$route.query.courseId,
  2170. userid: this.$route.query.userid,
  2171. classId: this.$route.query.cid,
  2172. // courseTypeLine: this.$route.query.type,
  2173. oid: this.$route.query.oid,
  2174. org: this.$route.query.org,
  2175. tType: this.$route.query.tType,
  2176. courseType: this.$route.query.type,
  2177. screenType: this.$route.query.screenType,
  2178. pptImgUrl: "",
  2179. pptImgUrl1: "",
  2180. commentText: "",
  2181. full: false,
  2182. sIsOpen: false,
  2183. type: 1,
  2184. vedio: [],
  2185. text: [],
  2186. textList: [],
  2187. line: [],
  2188. lineList: [],
  2189. chapTools: [],
  2190. chapToolList: [],
  2191. file: [],
  2192. vedioTime: [],
  2193. upToolImg: "",
  2194. rateList: {
  2195. ca: 0,
  2196. },
  2197. rateParams: [],
  2198. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  2199. studyJuri: [
  2200. {
  2201. content: "",
  2202. cover: [],
  2203. upVedio: [],
  2204. upFile: [],
  2205. },
  2206. ],
  2207. mr: require("../assets/vedioPic.png"),
  2208. word: require("../assets/icon/isWord.png"),
  2209. video: require("../assets/icon/isVideo.png"),
  2210. noLikes: require("../assets/icon/comment/noLikes.png"),
  2211. likes: require("../assets/icon/comment/likes.png"),
  2212. courseDetail: {},
  2213. isSelect: false,
  2214. chapInfo: [],
  2215. chapInfoList: [],
  2216. taskCount: 0,
  2217. imgList: [],
  2218. noImgList: [],
  2219. PlTextList: [
  2220. "Excellent!",
  2221. "nice!",
  2222. "很有创意!",
  2223. "还不错哦~",
  2224. "继续努力哦~",
  2225. ],
  2226. isClickNav: "",
  2227. navId: "",
  2228. playerOptions: {
  2229. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2230. autoplay: false, //如果true,浏览器准备好时开始回放。
  2231. muted: false, // 默认情况下将会消除任何音频。
  2232. loop: false, // 导致视频一结束就重新开始。
  2233. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2234. language: "zh-CN",
  2235. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2236. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2237. sources: [
  2238. {
  2239. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2240. src: "", //url地址require("../../assets/media/aaa.mp4")
  2241. },
  2242. ],
  2243. // poster: require("../../assets/tu31.png"), //你的封面地址
  2244. // poster: dataRes.imgUrl, //你的封面地址
  2245. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2246. controlBar: {
  2247. timeDivider: true, //当前时间和持续时间的分隔符
  2248. durationDisplay: true, //显示持续时间
  2249. remainingTimeDisplay: false, //是否显示剩余时间功能
  2250. fullscreenToggle: true, //全屏按钮
  2251. },
  2252. },
  2253. playerOptions1: {
  2254. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2255. autoplay: false, //如果true,浏览器准备好时开始回放。
  2256. muted: false, // 默认情况下将会消除任何音频。
  2257. loop: false, // 导致视频一结束就重新开始。
  2258. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2259. language: "zh-CN",
  2260. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2261. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2262. sources: [
  2263. {
  2264. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2265. src: "", //url地址require("../../assets/media/aaa.mp4")
  2266. },
  2267. ],
  2268. // poster: require("../../assets/tu31.png"), //你的封面地址
  2269. // poster: dataRes.imgUrl, //你的封面地址
  2270. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2271. controlBar: {
  2272. timeDivider: true, //当前时间和持续时间的分隔符
  2273. durationDisplay: true, //显示持续时间
  2274. remainingTimeDisplay: false, //是否显示剩余时间功能
  2275. fullscreenToggle: true, //全屏按钮
  2276. },
  2277. },
  2278. playerO: {},
  2279. noneBtnImg: false,
  2280. proVisible: false,
  2281. progress: 0,
  2282. questionAnswer: "",
  2283. answerQ: "", //问答标题
  2284. rateJson: [],
  2285. wbCount: 0,
  2286. wordCount: 0,
  2287. mindCount: 0,
  2288. askCount: 0,
  2289. noteCount: 0,
  2290. mindNetWorkCount: 0,
  2291. libraryCount: 0,
  2292. workCount: 0,
  2293. timeCount: 0,
  2294. answerCount: 0,
  2295. trainCount: 0,
  2296. evalCount: 0,
  2297. dialogImageUrl: "",
  2298. pictureDialog: false,
  2299. toolTypeList: [],
  2300. dialogVisible1: false,
  2301. dialogVisible2: false,
  2302. dialogVisible3: false,
  2303. dialogVisible6: false,
  2304. dialogVisible4: false,
  2305. isNoHomeWork: false,
  2306. dialogVisible5: false,
  2307. answerDialogVisible: false,
  2308. juriVisible: false,
  2309. timeDialogVisible: false,
  2310. radio: [],
  2311. isAsk: false,
  2312. askJson: {
  2313. askCount: 1,
  2314. askTitle: "",
  2315. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2316. },
  2317. checkJson: [],
  2318. askList: [],
  2319. answerList: [],
  2320. navList: [],
  2321. worksStudent: [],
  2322. workStudent: [],
  2323. noWorksS: [],
  2324. isWorksS: [],
  2325. noWorksStudent: [],
  2326. toolindex: 0,
  2327. workTypeA: false,
  2328. workTypeB: false,
  2329. workTypeC: false,
  2330. isAnswer: false,
  2331. timer: null,
  2332. showType: 0,
  2333. fileType: 0,
  2334. showPDF: false,
  2335. noteName: "",
  2336. evaJuri: [],
  2337. evalua: "",
  2338. eTitle: "",
  2339. eName: "",
  2340. eJson: {},
  2341. fid: "", //一级
  2342. sid: "", //二级
  2343. tid: "", //二级
  2344. typeMode: 1,
  2345. eJSONNum: 0,
  2346. Etype: 1,
  2347. data: {
  2348. meta: {
  2349. name: "example",
  2350. author: "dd@163.com",
  2351. version: "0.2",
  2352. },
  2353. format: "node_array",
  2354. data: [{ id: "root", isroot: true, topic: "" }],
  2355. },
  2356. fullDialogVisible: false,
  2357. fulltype: "",
  2358. fullUrl: "",
  2359. commentIndexJson: {},
  2360. };
  2361. },
  2362. methods: {
  2363. jump() {
  2364. window.parent.postMessage({ tools: "43" }, "*");
  2365. },
  2366. previewImg(url) {
  2367. this.$hevueImgPreview(url);
  2368. },
  2369. change(val) {
  2370. console.log(val);
  2371. },
  2372. goTo(path) {
  2373. this.$router.push(path);
  2374. },
  2375. handlePictureCardPreview(url) {
  2376. this.dialogImageUrl = url;
  2377. this.pictureDialog = true;
  2378. },
  2379. clean(type) {
  2380. if (type == 1) {
  2381. this.studyJuri[0].cover.splice(0, 1);
  2382. } else if (type == 2) {
  2383. this.studyJuri[0].upVedio.splice(0, 1);
  2384. } else {
  2385. this.studyJuri[0].upFile.splice(0, 1);
  2386. }
  2387. },
  2388. handleClose(done) {
  2389. this.commentIndexJson = {};
  2390. done();
  2391. },
  2392. fullTools() {
  2393. this.full = !this.full;
  2394. },
  2395. imgChange(file, fileList, type) {
  2396. if (type == 1) {
  2397. var _tmp = this.studyJuri[0].cover;
  2398. } else if (type == 2) {
  2399. var _tmp = this.studyJuri[0].upVedio;
  2400. } else {
  2401. var _tmp = this.studyJuri[0].upFile;
  2402. }
  2403. this.noneBtnImg = _tmp.length >= 1;
  2404. },
  2405. addImg(e) {
  2406. var el = e.currentTarget;
  2407. // this.$message.success('触发上传')
  2408. el.getElementsByTagName("input")[0].click();
  2409. },
  2410. addSelectAnswer() {
  2411. let params = [
  2412. {
  2413. uid: this.userid,
  2414. cid: this.id,
  2415. stage: this.courseType,
  2416. task: this.taskCount,
  2417. tool: this.toolindex,
  2418. content: this.selectAnswer.answer,
  2419. type: 7,
  2420. },
  2421. ];
  2422. this.ajax
  2423. .post(this.$store.state.api + "addCourseWorks", params)
  2424. .then((res) => {
  2425. this.$message({
  2426. message: "提交成功",
  2427. type: "success",
  2428. });
  2429. this.dialogVisibleSelect = false;
  2430. // this.selectAnswer = {};
  2431. this.selectSWorks();
  2432. this.selectStudent();
  2433. })
  2434. .catch((err) => {
  2435. this.$message.error("提交失败");
  2436. console.error(err);
  2437. });
  2438. },
  2439. addCourseWorks(i) {
  2440. var typesql;
  2441. if (this.fileType === 0) {
  2442. typesql = 1;
  2443. } else if (this.fileType === 1) {
  2444. typesql = 4;
  2445. } else {
  2446. typesql = 5;
  2447. }
  2448. if (this.workTypeA == true) {
  2449. this.$confirm(
  2450. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  2451. "提示",
  2452. {
  2453. confirmButtonText: "确定",
  2454. cancelButtonText: "取消",
  2455. type: "warning",
  2456. }
  2457. )
  2458. .then(() => {
  2459. let params = [
  2460. {
  2461. uid: this.userid,
  2462. cid: this.id,
  2463. stage: this.courseType,
  2464. task: i,
  2465. tool: this.toolindex,
  2466. content: this.studyJuri[0].cover[0].url,
  2467. type: typesql,
  2468. },
  2469. ];
  2470. this.ajax
  2471. .post(this.$store.state.api + "addCourseWorks", params)
  2472. .then((res) => {
  2473. this.$message({
  2474. message: "提交成功",
  2475. type: "success",
  2476. });
  2477. this.studyJuri[0].cover = [];
  2478. this.dialogVisible = false;
  2479. this.getCourseDetail();
  2480. })
  2481. .catch((err) => {
  2482. this.$message.error("提交失败");
  2483. console.error(err);
  2484. });
  2485. })
  2486. .catch(() => { });
  2487. } else {
  2488. let params = [
  2489. {
  2490. uid: this.userid,
  2491. cid: this.id,
  2492. stage: this.courseType,
  2493. task: i,
  2494. tool: this.toolindex,
  2495. content: this.studyJuri[0].cover[0].url,
  2496. type: typesql,
  2497. },
  2498. ];
  2499. this.ajax
  2500. .post(this.$store.state.api + "addCourseWorks", params)
  2501. .then((res) => {
  2502. this.$message({
  2503. message: "提交成功",
  2504. type: "success",
  2505. });
  2506. this.studyJuri[0].cover = [];
  2507. this.dialogVisible = false;
  2508. this.getCourseDetail();
  2509. })
  2510. .catch((err) => {
  2511. this.$message.error("提交失败");
  2512. console.error(err);
  2513. });
  2514. }
  2515. },
  2516. selectWorksStudent() {
  2517. let params = {
  2518. oid: this.oid,
  2519. cid: this.courseDetail.juri,
  2520. };
  2521. this.ajax
  2522. .get(this.$store.state.api + "selectWorksStudent", params)
  2523. .then((res) => {
  2524. var a = res.data[0];
  2525. for (var i = 0; i < this.isWorksS.length; i++) {
  2526. this.noWorksS[i] = [];
  2527. var studentK = [];
  2528. if (this.isWorksS[i].length > 0) {
  2529. for (var z = 0; z < this.isWorksS[i].length; z++) {
  2530. studentK.push(this.isWorksS[i][z].uid);
  2531. }
  2532. studentK = studentK.join(",");
  2533. for (var j = 0; j < a.length; j++) {
  2534. if (studentK.indexOf(a[j].userid) == -1) {
  2535. this.noWorksS[i].push({ student: a[j].name });
  2536. }
  2537. }
  2538. } else {
  2539. for (var k = 0; k < a.length; k++) {
  2540. this.noWorksS[i].push({ student: a[k].name });
  2541. }
  2542. }
  2543. }
  2544. this.$forceUpdate();
  2545. if (Object.keys(this.commentIndexJson).length) {
  2546. this.commentOther(
  2547. this.worksStudent[this.commentIndexJson.toolIndex][
  2548. this.commentIndexJson.wIndex
  2549. ],
  2550. this.commentIndexJson.toolIndex,
  2551. this.commentIndexJson.wIndex
  2552. );
  2553. }
  2554. })
  2555. .catch((err) => {
  2556. console.error(err);
  2557. });
  2558. },
  2559. selectStudent() {
  2560. //学生查看自己作业
  2561. let params = {
  2562. uid: this.userid,
  2563. cid: this.id,
  2564. s: this.courseType,
  2565. t: this.taskCount,
  2566. };
  2567. this.ajax
  2568. .get(this.$store.state.api + "selectStudentWorks", params)
  2569. .then((res) => {
  2570. var a =
  2571. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2572. this.taskCount
  2573. ].toolChoose;
  2574. var b = res.data[0];
  2575. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  2576. var y = [
  2577. "AVI",
  2578. "NAVI",
  2579. "MPEG",
  2580. "ASF",
  2581. "MOV",
  2582. "WMV",
  2583. "3GP",
  2584. "RM",
  2585. "RMVB",
  2586. "FLV",
  2587. "F4V",
  2588. "H.264",
  2589. "H.265",
  2590. "REAL VIDEO",
  2591. "MKV",
  2592. "WebM",
  2593. "HDDVD",
  2594. "MP4",
  2595. "MPG",
  2596. "M4V",
  2597. "MGV",
  2598. "OGV",
  2599. "QTM",
  2600. "STR",
  2601. "AMC",
  2602. "DVX",
  2603. "EVO",
  2604. "DAT",
  2605. "OGG",
  2606. "OGM",
  2607. ];
  2608. for (var i = 0; i < a.length; i++) {
  2609. this.workStudent[i] = [];
  2610. for (var j = 0; j < b.length; j++) {
  2611. if (i == b[j].tool) {
  2612. if (
  2613. (b[j].type == 1 ||
  2614. b[j].type == 4 ||
  2615. b[j].type == 5 ||
  2616. b[j].type == 6 ||
  2617. b[j].type == 7) &&
  2618. a[i].tool[0] != 15 &&
  2619. a[i].tool[0] != 4
  2620. ) {
  2621. if (
  2622. c.indexOf(
  2623. b[j].content
  2624. .split(".")
  2625. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  2626. ) != -1
  2627. ) {
  2628. this.workStudent[i].push({
  2629. works: b[j].content,
  2630. sName: b[j].name,
  2631. type: 1,
  2632. time: b[j].time,
  2633. });
  2634. } else if (
  2635. y.indexOf(
  2636. b[j].content
  2637. .split(".")
  2638. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  2639. ) != -1
  2640. ) {
  2641. this.workStudent[i].push({
  2642. userid: b[j].userid,
  2643. wid: b[j].id,
  2644. works: b[j].content,
  2645. sName: b[j].name,
  2646. type: 3,
  2647. time: b[j].time,
  2648. });
  2649. } else if (b[j].type == 6) {
  2650. this.workStudent[i].push({
  2651. userid: b[j].userid,
  2652. wid: b[j].id,
  2653. works: b[j].content,
  2654. sName: b[j].name,
  2655. type: 4,
  2656. time: b[j].time,
  2657. });
  2658. } else if (b[j].type == 7) {
  2659. this.workStudent[i].push({
  2660. userid: b[j].userid,
  2661. wid: b[j].id,
  2662. works: b[j].content,
  2663. sName: b[j].name,
  2664. type: 5,
  2665. time: b[j].time,
  2666. });
  2667. } else {
  2668. this.workStudent[i].push({
  2669. works: b[j].content,
  2670. sName: b[j].name,
  2671. type: 0,
  2672. time: b[j].time,
  2673. });
  2674. }
  2675. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  2676. this.workStudent[i].push({
  2677. works: b[j].content,
  2678. sName: b[j].name,
  2679. type: 2,
  2680. time: b[j].time,
  2681. });
  2682. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  2683. this.workStudent[i].push({
  2684. works: b[j].content,
  2685. sName: b[j].name,
  2686. type: 2,
  2687. time: b[j].time,
  2688. });
  2689. }
  2690. }
  2691. }
  2692. }
  2693. })
  2694. .catch((err) => {
  2695. console.error(err);
  2696. });
  2697. },
  2698. openVideo(w) {
  2699. this.videoDetail = {};
  2700. this.playerOptions1.sources[0].src = w;
  2701. this.videoDetail = this.playerOptions1;
  2702. this.videoVisible = true;
  2703. },
  2704. isLikes(wid, uid, t, c, isLikes) {
  2705. if (isLikes == false) {
  2706. let params = [
  2707. {
  2708. wid: wid,
  2709. lid: uid,
  2710. t: t,
  2711. c: c,
  2712. },
  2713. ];
  2714. this.ajax
  2715. .post(this.$store.state.api + "insertComment", params)
  2716. .then((res) => {
  2717. this.$message({
  2718. message: "点赞成功",
  2719. type: "success",
  2720. });
  2721. this.selectSWorks();
  2722. this.selectStudent();
  2723. })
  2724. .catch((err) => {
  2725. this.$message.error("点赞失败");
  2726. console.error(err);
  2727. });
  2728. } else {
  2729. let params = {
  2730. wid: wid,
  2731. lid: uid,
  2732. type: t,
  2733. };
  2734. this.ajax
  2735. .get(this.$store.state.api + "deleteComment", params)
  2736. .then((res) => {
  2737. this.$message({
  2738. message: "取消点赞成功",
  2739. type: "success",
  2740. });
  2741. this.selectSWorks();
  2742. this.selectStudent();
  2743. })
  2744. .catch((err) => {
  2745. console.error(err);
  2746. });
  2747. }
  2748. },
  2749. commentOther(w, toolIndex, wIndex) {
  2750. this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex };
  2751. this.commentDetail = [];
  2752. this.commentDialogVisible = true;
  2753. if (w.works && w.type == 1) {
  2754. this.commentDetail = w;
  2755. this.pptImgUrl = "";
  2756. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  2757. if (
  2758. a.indexOf(
  2759. w.works
  2760. .split(".")
  2761. [w.works.split(".").length - 1].toLocaleUpperCase()
  2762. ) != -1
  2763. ) {
  2764. this.pptImgUrl =
  2765. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  2766. this.showPDF = false;
  2767. } else if (
  2768. w.works
  2769. .split(".")
  2770. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  2771. ) {
  2772. this.pptImgUrl = w.works;
  2773. this.showPDF = true;
  2774. }
  2775. } else if (w.works && w.type == 3 && this.commentDialogVisible == false) {
  2776. this.videoDetail = {};
  2777. this.playerOptions1.sources[0].src = w.works;
  2778. this.videoDetail = this.playerOptions1;
  2779. this.videoVisible = true;
  2780. } else if (w.works && w.type == 4) {
  2781. this.commentDetail = w;
  2782. this.eScore = JSON.parse(w.works);
  2783. this.rateJson =
  2784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2785. this.taskCount
  2786. ].toolChoose[toolIndex].rateJson;
  2787. } else {
  2788. this.commentDetail = w;
  2789. }
  2790. },
  2791. addComment(wid, uid, t) {
  2792. let params = [
  2793. {
  2794. wid: wid,
  2795. lid: uid,
  2796. t: t,
  2797. c: this.commentText,
  2798. },
  2799. ];
  2800. this.ajax
  2801. .post(this.$store.state.api + "insertComment", params)
  2802. .then((res) => {
  2803. this.$message({
  2804. message: "评论成功",
  2805. type: "success",
  2806. });
  2807. this.commentText = "";
  2808. this.selectSWorks();
  2809. this.selectStudent();
  2810. })
  2811. .catch((err) => {
  2812. this.$message.error("评论失败");
  2813. console.error(err);
  2814. });
  2815. },
  2816. openXz(w, i) {
  2817. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  2818. .taskJson[this.taskCount].toolChoose[i].selectJson
  2819. ? JSON.parse(
  2820. JSON.stringify(
  2821. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2822. this.taskCount
  2823. ].toolChoose[i].selectJson
  2824. )
  2825. )
  2826. : { url: "", select: [], answer: [] };
  2827. var a = w.works.split(",");
  2828. for (var k = 0; k < a.length; k++) {
  2829. a[k] = parseInt(a[k]);
  2830. }
  2831. this.selectAnswer = { answer: a, stu: w.sName };
  2832. this.isSelect = true;
  2833. this.dialogVisibleSelect = true;
  2834. },
  2835. openPj(w, toolindex) {
  2836. this.isStar = true;
  2837. this.eScore = JSON.parse(w);
  2838. this.rateJson =
  2839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2840. this.taskCount
  2841. ].toolChoose[toolindex].rateJson;
  2842. this.studentEvalDialogVisible = true;
  2843. },
  2844. selectSWorks() {
  2845. //教师查看全部作业
  2846. let params = {
  2847. cid: this.id,
  2848. s: this.courseType,
  2849. t: this.taskCount,
  2850. };
  2851. this.ajax
  2852. .get(this.$store.state.api + "selectSWorks", params)
  2853. .then((res) => {
  2854. var a =
  2855. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  2856. this.taskCount
  2857. ].toolChoose;
  2858. var b = res.data[0];
  2859. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  2860. var y = [
  2861. "AVI",
  2862. "NAVI",
  2863. "MPEG",
  2864. "ASF",
  2865. "MOV",
  2866. "WMV",
  2867. "3GP",
  2868. "RM",
  2869. "RMVB",
  2870. "FLV",
  2871. "F4V",
  2872. "H.264",
  2873. "H.265",
  2874. "REAL VIDEO",
  2875. "MKV",
  2876. "WebM",
  2877. "HDDVD",
  2878. "MP4",
  2879. "MPG",
  2880. "M4V",
  2881. "MGV",
  2882. "OGV",
  2883. "QTM",
  2884. "STR",
  2885. "AMC",
  2886. "DVX",
  2887. "EVO",
  2888. "DAT",
  2889. "OGG",
  2890. "OGM",
  2891. ];
  2892. var d = res.data[1];
  2893. var e = res.data[2];
  2894. for (var i = 0; i < a.length; i++) {
  2895. this.worksStudent[i] = [];
  2896. this.isWorksS[i] = [];
  2897. this.checkJson[i] = [];
  2898. for (var j = 0; j < b.length; j++) {
  2899. var likesCount = 0;
  2900. var commentCount = 0;
  2901. var isLikes = false;
  2902. var commentJson = [];
  2903. var data = b[j];
  2904. if (i == b[j].tool) {
  2905. if (data.type == 2 && a[i].tool[0] == 4) {
  2906. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  2907. for (var z = 0; z < checkL.length; z++) {
  2908. if (!this.checkJson[i][z]) {
  2909. this.checkJson[i].push({
  2910. checkCount: [],
  2911. checkPerson: [],
  2912. });
  2913. }
  2914. if (!this.checkJson[i][z].checkCount.length) {
  2915. this.checkJson[i][z].checkCount = [];
  2916. let _askItemCount = JSON.parse(data.content)[0].askJson
  2917. .askJson[z].askItem;
  2918. for (var aic = 0; aic < _askItemCount; aic++) {
  2919. this.checkJson[i][z].checkCount.push(0);
  2920. }
  2921. }
  2922. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  2923. ? this.checkJson[i][z].checkPerson[
  2924. parseInt(checkL[z])
  2925. ].push(data.name)
  2926. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  2927. [data.name]);
  2928. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  2929. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  2930. : (this.checkJson[i][z].checkCount[
  2931. parseInt(checkL[z])
  2932. ] = 1);
  2933. }
  2934. }
  2935. for (var k = 0; k < d.length; k++) {
  2936. //点赞
  2937. if (d[k].workId == b[j].id) {
  2938. likesCount++;
  2939. if (d[k].likesId == this.userid) {
  2940. isLikes = true;
  2941. }
  2942. }
  2943. }
  2944. for (var l = 0; l < e.length; l++) {
  2945. //评论
  2946. if (e[l].workId == b[j].id) {
  2947. commentCount++;
  2948. if (e[l].comment != "") {
  2949. commentJson.push({
  2950. commentText: e[l].comment,
  2951. commentTime: e[l].commentTime,
  2952. commentPeople: e[l].commentPeople,
  2953. });
  2954. }
  2955. }
  2956. }
  2957. if (
  2958. (b[j].type == 1 ||
  2959. b[j].type == 4 ||
  2960. b[j].type == 5 ||
  2961. b[j].type == 6 ||
  2962. b[j].type == 7) &&
  2963. a[i].tool[0] != 15 &&
  2964. a[i].tool[0] != 4
  2965. ) {
  2966. if (
  2967. c.indexOf(
  2968. b[j].content
  2969. .split(".")
  2970. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  2971. ) != -1
  2972. ) {
  2973. this.worksStudent[i].push({
  2974. userid: b[j].userid,
  2975. wid: b[j].id,
  2976. works: b[j].content,
  2977. sName: b[j].name,
  2978. type: 1,
  2979. time: b[j].time,
  2980. likesCount: likesCount,
  2981. commentCount: commentCount,
  2982. isLikes: isLikes,
  2983. commentJson: commentJson,
  2984. });
  2985. } else if (
  2986. y.indexOf(
  2987. b[j].content
  2988. .split(".")
  2989. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  2990. ) != -1
  2991. ) {
  2992. this.worksStudent[i].push({
  2993. userid: b[j].userid,
  2994. wid: b[j].id,
  2995. works: b[j].content,
  2996. sName: b[j].name,
  2997. type: 3,
  2998. time: b[j].time,
  2999. likesCount: likesCount,
  3000. commentCount: commentCount,
  3001. isLikes: isLikes,
  3002. commentJson: commentJson,
  3003. });
  3004. } else if (b[j].type == 6) {
  3005. this.worksStudent[i].push({
  3006. userid: b[j].userid,
  3007. wid: b[j].id,
  3008. works: b[j].content,
  3009. sName: b[j].name,
  3010. type: 4,
  3011. time: b[j].time,
  3012. likesCount: likesCount,
  3013. commentCount: commentCount,
  3014. isLikes: isLikes,
  3015. commentJson: commentJson,
  3016. });
  3017. } else if (b[j].type == 7) {
  3018. this.worksStudent[i].push({
  3019. userid: b[j].userid,
  3020. wid: b[j].id,
  3021. works: b[j].content,
  3022. sName: b[j].name,
  3023. type: 5,
  3024. time: b[j].time,
  3025. likesCount: likesCount,
  3026. commentCount: commentCount,
  3027. isLikes: isLikes,
  3028. commentJson: commentJson,
  3029. });
  3030. } else {
  3031. this.worksStudent[i].push({
  3032. userid: b[j].userid,
  3033. wid: b[j].id,
  3034. works: b[j].content,
  3035. sName: b[j].name,
  3036. type: 0,
  3037. time: b[j].time,
  3038. likesCount: likesCount,
  3039. commentCount: commentCount,
  3040. isLikes: isLikes,
  3041. commentJson: commentJson,
  3042. });
  3043. }
  3044. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  3045. this.worksStudent[i].push({
  3046. userid: b[j].userid,
  3047. wid: b[j].id,
  3048. works: b[j].content,
  3049. sName: b[j].name,
  3050. type: 2,
  3051. time: b[j].time,
  3052. likesCount: likesCount,
  3053. commentCount: commentCount,
  3054. isLikes: isLikes,
  3055. commentJson: commentJson,
  3056. });
  3057. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  3058. this.worksStudent[i].push({
  3059. userid: b[j].userid,
  3060. wid: b[j].id,
  3061. works: b[j].content,
  3062. sName: b[j].name,
  3063. type: 2,
  3064. time: b[j].time,
  3065. likesCount: likesCount,
  3066. commentCount: commentCount,
  3067. isLikes: isLikes,
  3068. commentJson: commentJson,
  3069. });
  3070. }
  3071. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  3072. }
  3073. }
  3074. }
  3075. for (var i = 0; i < a.length; i++) {
  3076. for (var j = 0; j < b.length; j++) {
  3077. var data = b[j];
  3078. if (i == b[j].tool) {
  3079. if (data.type == 2) {
  3080. for (var z = 0; z < this.checkJson[i].length; z++) {
  3081. this.checkJson[i][z].checkPerent = [];
  3082. for (
  3083. var k = 0;
  3084. k < this.checkJson[i][z].checkCount.length;
  3085. k++
  3086. ) {
  3087. this.checkJson[i][z].checkPerent.push(
  3088. Math.round(
  3089. (this.checkJson[i][z].checkCount[k] /
  3090. parseInt(this.worksStudent[i].length)) *
  3091. 100
  3092. )
  3093. );
  3094. }
  3095. }
  3096. }
  3097. }
  3098. }
  3099. }
  3100. this.selectWorksStudent();
  3101. })
  3102. .catch((err) => {
  3103. console.error(err);
  3104. });
  3105. },
  3106. async beforeUpload1(event, type, i) {
  3107. // this.$message.success('进入上传')
  3108. var file = event.target.files[0];
  3109. var credentials = {
  3110. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3111. secretAccessKey: "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",
  3112. }; //秘钥形式的登录上传
  3113. window.AWS.config.update(credentials);
  3114. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3115. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3116. var _this = this;
  3117. var b = [
  3118. "DOC",
  3119. "DOCX",
  3120. "DOCM",
  3121. "DOTM",
  3122. "DOTX",
  3123. "PPTX",
  3124. "PPSX",
  3125. "PPT",
  3126. "PPS",
  3127. "PPTM",
  3128. "POTM",
  3129. "PPAM",
  3130. "POTX",
  3131. "PPSM",
  3132. ];
  3133. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  3134. var photoA = [
  3135. "BMP",
  3136. "GIF",
  3137. "PNG",
  3138. "JPGE",
  3139. "JPG",
  3140. "TIF",
  3141. "PCX",
  3142. "TGA",
  3143. "EXIF",
  3144. "FPX",
  3145. "SVG",
  3146. "APNG",
  3147. ];
  3148. if (
  3149. b.indexOf(
  3150. file.name
  3151. .split(".")
  3152. [file.name.split(".").length - 1].toLocaleUpperCase()
  3153. ) != -1
  3154. ) {
  3155. if (file.size / 1024 / 1024 > 10) {
  3156. this.$message.error("上传文件大于10兆,请重新选择文件!");
  3157. return;
  3158. }
  3159. } else if (
  3160. excelA.indexOf(
  3161. file.name
  3162. .split(".")
  3163. [file.name.split(".").length - 1].toLocaleUpperCase()
  3164. ) != "-1"
  3165. ) {
  3166. if (file.size / 1024 / 1024 > 5) {
  3167. this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  3168. return;
  3169. }
  3170. }
  3171. if (
  3172. photoA.indexOf(
  3173. file.name
  3174. .split(".")
  3175. [file.name.split(".").length - 1].toLocaleUpperCase()
  3176. ) != -1
  3177. ) {
  3178. // const blob = await imageConversion.compress(file, 0.8)
  3179. const blob = await imageConversion.compressAccurately(file, 32);
  3180. file = new File([blob], file.name, { type: file.type });
  3181. }
  3182. _this.progress = 0;
  3183. _this.proVisible = true;
  3184. if (file) {
  3185. var params = {
  3186. Key:
  3187. file.name.split(".")[0] +
  3188. new Date().getTime() +
  3189. "." +
  3190. file.name.split(".")[file.name.split(".").length - 1],
  3191. ContentType: file.type,
  3192. Body: file,
  3193. "Access-Control-Allow-Credentials": "*",
  3194. ACL: "public-read",
  3195. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3196. var options = {
  3197. // partSize: 2048 * 1024 * 1024,
  3198. partSize: 1024 * 1024 * 1024,
  3199. queueSize: 2,
  3200. leavePartsOnError: true,
  3201. };
  3202. bucket
  3203. .upload(params, options)
  3204. .on("httpUploadProgress", function (evt) {
  3205. //这里可以写进度条
  3206. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3207. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  3208. })
  3209. .send(function (err, data) {
  3210. _this.progress = 100;
  3211. setTimeout(() => {
  3212. _this.proVisible = false;
  3213. }, 1000);
  3214. if (err) {
  3215. var a = _this.$refs.upload1.uploadFiles;
  3216. a.splice(a.length - 1, a.length);
  3217. _this.$message.error("上传失败");
  3218. } else {
  3219. // _this.$message.success('上传成功')
  3220. if (type == 1) {
  3221. _this.studyJuri[0].cover.push({
  3222. name: file.name,
  3223. url: data.Location,
  3224. uid: file.uid,
  3225. });
  3226. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3227. var c = [
  3228. "AVI",
  3229. "NAVI",
  3230. "MPEG",
  3231. "ASF",
  3232. "MOV",
  3233. "WMV",
  3234. "3GP",
  3235. "RM",
  3236. "RMVB",
  3237. "FLV",
  3238. "F4V",
  3239. "H.264",
  3240. "H.265",
  3241. "REAL VIDEO",
  3242. "MKV",
  3243. "WebM",
  3244. "HDDVD",
  3245. "MP4",
  3246. "MPG",
  3247. "M4V",
  3248. "MGV",
  3249. "OGV",
  3250. "QTM",
  3251. "STR",
  3252. "AMC",
  3253. "DVX",
  3254. "EVO",
  3255. "DAT",
  3256. "OGG",
  3257. "OGM",
  3258. ];
  3259. if (
  3260. c.indexOf(
  3261. _this.studyJuri[0].cover[0].url
  3262. .split(".")
  3263. [
  3264. _this.studyJuri[0].cover[0].url.split(".").length - 1
  3265. ].toLocaleUpperCase()
  3266. ) != -1
  3267. ) {
  3268. _this.fileType = 2;
  3269. } else if (
  3270. b.indexOf(
  3271. _this.studyJuri[0].cover[0].url
  3272. .split(".")
  3273. [
  3274. _this.studyJuri[0].cover[0].url.split(".").length - 1
  3275. ].toLocaleUpperCase()
  3276. ) != -1
  3277. ) {
  3278. _this.fileType = 1;
  3279. } else {
  3280. _this.fileType = 0;
  3281. }
  3282. _this.imgChange(null, null, type);
  3283. } else if (type == 2) {
  3284. _this.upToolImg = data.Location;
  3285. _this.imgChange(null, null, type);
  3286. _this.addCourseWorks(i);
  3287. }
  3288. _this.imgChange(null, null, type);
  3289. console.log(data.Location);
  3290. // _this.$message.success('上传成功'+data.Location)
  3291. }
  3292. });
  3293. }
  3294. },
  3295. beforeUpload2(event, type) {
  3296. var file = event.target.files[0];
  3297. var credentials = {
  3298. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3299. secretAccessKey: "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",
  3300. }; //秘钥形式的登录上传
  3301. window.AWS.config.update(credentials);
  3302. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3303. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3304. var _this = this;
  3305. _this.progress = 0;
  3306. _this.proVisible = true;
  3307. if (file) {
  3308. var params = {
  3309. Key:
  3310. file.name.split(".")[0] +
  3311. new Date().getTime() +
  3312. "." +
  3313. file.name.split(".")[file.name.split(".").length - 1],
  3314. ContentType: file.type,
  3315. Body: file,
  3316. "Access-Control-Allow-Credentials": "*",
  3317. ACL: "public-read",
  3318. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3319. var options = {
  3320. partSize: 2048 * 1024 * 1024,
  3321. queueSize: 2,
  3322. leavePartsOnError: true,
  3323. };
  3324. bucket
  3325. .upload(params, options)
  3326. .on("httpUploadProgress", function (evt) {
  3327. //这里可以写进度条
  3328. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3329. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  3330. })
  3331. .send(function (err, data) {
  3332. _this.progress = 100;
  3333. setTimeout(() => {
  3334. _this.proVisible = false;
  3335. }, 1000);
  3336. if (err) {
  3337. var a = _this.$refs.upload1.uploadFiles;
  3338. a.splice(a.length - 1, a.length);
  3339. _this.$message.error("上传失败");
  3340. } else {
  3341. if (type == 2) {
  3342. _this.studyJuri[0].upVedio.push({
  3343. name: file.name,
  3344. url: data.Location,
  3345. uid: file.uid,
  3346. });
  3347. _this.imgChange(null, null, type);
  3348. } else if (type == 3) {
  3349. _this.studyJuri[0].upFile.push({
  3350. name: file.name,
  3351. url: data.Location,
  3352. uid: file.uid,
  3353. });
  3354. _this.imgChange(null, null, type);
  3355. }
  3356. console.log(data.Location);
  3357. }
  3358. });
  3359. }
  3360. },
  3361. allScrell() {
  3362. window.parent.postMessage({ allScreen: this.screenType }, "*");
  3363. },
  3364. nextOrpreSteps(t) {
  3365. document.scrollingElement.scrollTop = 0;
  3366. this.showType = 0;
  3367. var b = this.chapInfoList.length - 1;
  3368. if (t == 0) {
  3369. if (this.courseType == 0) {
  3370. if (this.taskCount == 0) {
  3371. this.navList[this.courseType].isOpen = false;
  3372. this.courseType = b;
  3373. this.taskCount =
  3374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  3375. .length - 1;
  3376. this.navList[this.courseType].isOpen = true;
  3377. } else {
  3378. this.taskCount--;
  3379. }
  3380. } else {
  3381. if (this.taskCount == 0) {
  3382. this.navList[this.courseType].isOpen = false;
  3383. this.courseType--;
  3384. this.taskCount =
  3385. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  3386. .length - 1;
  3387. this.navList[this.courseType].isOpen = true;
  3388. } else {
  3389. this.taskCount--;
  3390. }
  3391. }
  3392. } else {
  3393. var b = this.chapInfoList.length - 1;
  3394. if (this.courseType == b) {
  3395. if (
  3396. this.taskCount ==
  3397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  3398. 1
  3399. ) {
  3400. this.navList[this.courseType].isOpen = false;
  3401. this.courseType = 0;
  3402. this.taskCount = 0;
  3403. this.navList[this.courseType].isOpen = true;
  3404. } else {
  3405. this.taskCount++;
  3406. }
  3407. } else {
  3408. if (
  3409. this.taskCount ==
  3410. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  3411. 1
  3412. ) {
  3413. this.navList[this.courseType].isOpen = false;
  3414. this.courseType++;
  3415. this.taskCount = 0;
  3416. this.navList[this.courseType].isOpen = true;
  3417. } else {
  3418. this.taskCount++;
  3419. }
  3420. }
  3421. // if (
  3422. // this.taskCount ==
  3423. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  3424. // ) {
  3425. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  3426. // } else {
  3427. // this.taskCount++;
  3428. // }
  3429. }
  3430. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  3431. // if (this.vedio[this.taskCount].length > 0) {
  3432. // var a =
  3433. // document.getElementsByClassName("box_course")[this.taskCount]
  3434. // .offsetHeight;
  3435. // document.getElementsByClassName("vedioList")[
  3436. // this.taskCount
  3437. // ].style.height = a + "px";
  3438. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  3439. // a - 40 + "px";
  3440. // }
  3441. this.isNoHomeWork = false;
  3442. (this.studyJuri = [
  3443. {
  3444. content: "",
  3445. cover: [],
  3446. upVedio: [],
  3447. upFile: [],
  3448. },
  3449. ]),
  3450. (this.radio = []);
  3451. this.isClickNav = "";
  3452. this.getHomeWork();
  3453. this.getCourseDetail();
  3454. this.$forceUpdate();
  3455. },
  3456. openTask(s, n, i) {
  3457. document.scrollingElement.scrollTop = 0;
  3458. this.courseType = s;
  3459. this.navId = i;
  3460. this.taskCount = n;
  3461. this.showType = 0;
  3462. this.isNoHomeWork = false;
  3463. (this.studyJuri = [
  3464. {
  3465. content: "",
  3466. cover: [],
  3467. upVedio: [],
  3468. upFile: [],
  3469. },
  3470. ]),
  3471. (this.radio = []);
  3472. // setTimeout(() => {
  3473. // let a = document.getElementById(i);
  3474. // if (a.offsetTop - 110 == 0) {
  3475. // window.scrollTo(0, 0);
  3476. // } else {
  3477. // window.scrollTo(0, a.offsetTop);
  3478. // }
  3479. // }, 0);
  3480. this.getHomeWork();
  3481. this.getCourseDetail();
  3482. },
  3483. get(i) {
  3484. this.navList[i].isOpen = !this.navList[i].isOpen;
  3485. },
  3486. addQuestion() {
  3487. this.answerList.push({
  3488. answerTitle: this.answerQ,
  3489. answer: this.questionAnswer,
  3490. });
  3491. let params = [
  3492. {
  3493. uid: this.userid,
  3494. cid: this.id,
  3495. stage: this.courseType,
  3496. task: this.taskCount,
  3497. tool: this.toolindex,
  3498. content: JSON.stringify(this.answerList),
  3499. type: 3,
  3500. },
  3501. ];
  3502. this.ajax
  3503. .post(this.$store.state.api + "addCourseWorks", params)
  3504. .then((res) => {
  3505. this.$message({
  3506. message: "提交成功",
  3507. type: "success",
  3508. });
  3509. this.answerList = [];
  3510. this.answerDialogVisible = false;
  3511. })
  3512. .catch((err) => {
  3513. this.$message.error("提交失败");
  3514. console.error(err);
  3515. });
  3516. },
  3517. getCourseDetail() {
  3518. const loading = this.$loading.service({
  3519. background: "rgba(255, 255, 255, 0.7)",
  3520. target: document.querySelector(".student_table"),
  3521. });
  3522. // this.navList[0].isOpen = false;
  3523. // this.navList[this.courseType].isOpen = true;
  3524. // this.courseType = this.courseTypeLine;
  3525. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  3526. let params = {
  3527. courseId: this.id,
  3528. };
  3529. this.ajax
  3530. .get(this.$store.state.api + "selectCourseDetail", params)
  3531. .then((res) => {
  3532. loading.close();
  3533. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  3534. .chapterInfo[0].taskJson;
  3535. var b = [
  3536. "AVI",
  3537. "NAVI",
  3538. "MPEG",
  3539. "ASF",
  3540. "MOV",
  3541. "WMV",
  3542. "3GP",
  3543. "RM",
  3544. "RMVB",
  3545. "FLV",
  3546. "F4V",
  3547. "H.264",
  3548. "H.265",
  3549. "REAL VIDEO",
  3550. "MKV",
  3551. "WebM",
  3552. "HDDVD",
  3553. "MP4",
  3554. "MPG",
  3555. "M4V",
  3556. "MGV",
  3557. "OGV",
  3558. "QTM",
  3559. "STR",
  3560. "AMC",
  3561. "DVX",
  3562. "EVO",
  3563. "DAT",
  3564. "OGG",
  3565. "OGM",
  3566. ];
  3567. for (var i = 0; i < a.length; i++) {
  3568. var c = a[i].chapterData;
  3569. this.vedio[i] = [];
  3570. this.textList[i] = [];
  3571. this.lineList[i] = [];
  3572. this.chapToolList[i] = [];
  3573. this.file[i] = [];
  3574. for (var j = 0; j < c.length; j++) {
  3575. if (c[j].type == 7) {
  3576. this.chapToolList[i].push(c[j]);
  3577. } else if (c[j].type == 8) {
  3578. this.lineList[i].push(c[j]);
  3579. } else if (c[j].type == 6) {
  3580. this.textList[i].push(c[j]);
  3581. } else {
  3582. if (
  3583. b.indexOf(
  3584. c[j].url
  3585. .split(".")
  3586. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  3587. ) != -1
  3588. ) {
  3589. this.vedio[i].push(c[j]);
  3590. } else {
  3591. this.file[i].push(c[j]);
  3592. }
  3593. }
  3594. }
  3595. var d = JSON.parse(JSON.stringify(this.playerOptions));
  3596. d.sources[0].src =
  3597. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  3598. this.playerO[i] = d;
  3599. }
  3600. this.courseDetail = res.data[0][0];
  3601. this.evalua = res.data[0][0].evaId;
  3602. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  3603. this.courseType
  3604. ];
  3605. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  3606. if (this.navList.length == 0) {
  3607. this.navList = [];
  3608. for (var l = 0; l < this.chapInfoList.length; l++) {
  3609. var q = this.chapInfoList[l].dyName;
  3610. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  3611. var e;
  3612. this.navList.push({
  3613. dyName: q,
  3614. isOpen: l === 0 ? true : false,
  3615. task: [],
  3616. });
  3617. for (var r = 0; r < w.length; r++) {
  3618. e = w[r].task;
  3619. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  3620. this.navId = this.navId ? this.navId : l + "-" + r;
  3621. }
  3622. }
  3623. }
  3624. this.navList[0].isOpen = false;
  3625. this.navList[this.courseType].isOpen = true;
  3626. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  3627. for (var l = 0; l < this.chapInfoList.length; l++) {
  3628. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  3629. for (var m = 0; m < w.length; m++) {
  3630. w[m].id = l + "-" + m;
  3631. }
  3632. }
  3633. if (
  3634. !this.vedio[this.taskCount][0] ||
  3635. this.vedio[this.taskCount][0].url == ""
  3636. ) {
  3637. if (
  3638. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3639. this.taskCount
  3640. ].chapterData.length > 0
  3641. ) {
  3642. if (
  3643. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3644. this.taskCount
  3645. ].chapterData[0].type != 8
  3646. ) {
  3647. if (
  3648. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3649. this.taskCount
  3650. ].chapterData[0].type == 3
  3651. ) {
  3652. let _url =
  3653. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3654. this.taskCount
  3655. ].chapterData[0].url;
  3656. if (
  3657. _url
  3658. .split(".")
  3659. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3660. ) {
  3661. this.showType = 3;
  3662. this.pptImgUrl1 = _url;
  3663. this.isClickNav = "word0";
  3664. } else if (
  3665. this.isAssetTypeAnImage(
  3666. _url
  3667. .split(".")
  3668. [_url.split(".").length - 1].toLocaleLowerCase()
  3669. )
  3670. ) {
  3671. this.showType = 4;
  3672. this.pptImgUrl1 = _url;
  3673. this.isClickNav = "word0";
  3674. } else {
  3675. this.showType = 2;
  3676. this.pptImgUrl1 =
  3677. "https://view.officeapps.live.com/op/view.aspx?src=" +
  3678. _url;
  3679. this.isClickNav = "word0";
  3680. }
  3681. } else if (
  3682. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3683. this.taskCount
  3684. ].chapterData[0].type == 6
  3685. ) {
  3686. this.showType = 1;
  3687. this.text = this.textList[this.taskCount][0];
  3688. this.isClickNav = "text0";
  3689. }
  3690. } else {
  3691. for (
  3692. var y = 0;
  3693. y <
  3694. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3695. this.taskCount
  3696. ].chapterData.length;
  3697. y++
  3698. ) {
  3699. if (
  3700. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3701. this.taskCount
  3702. ].chapterData[y].type != 8
  3703. ) {
  3704. if (
  3705. this.chapInfoList[this.courseType].chapterInfo[0]
  3706. .taskJson[this.taskCount].chapterData[y].type == 3
  3707. ) {
  3708. let _url =
  3709. this.chapInfoList[this.courseType].chapterInfo[0]
  3710. .taskJson[this.taskCount].chapterData[y].url;
  3711. if (
  3712. _url
  3713. .split(".")
  3714. [_url.split(".").length - 1].toLocaleUpperCase() ==
  3715. "PDF"
  3716. ) {
  3717. this.showType = 3;
  3718. this.pptImgUrl1 = _url;
  3719. } else if (
  3720. this.isAssetTypeAnImage(
  3721. _url
  3722. .split(".")
  3723. [_url.split(".").length - 1].toLocaleLowerCase()
  3724. )
  3725. ) {
  3726. this.showType = 4;
  3727. this.pptImgUrl1 = _url;
  3728. } else {
  3729. this.showType = 2;
  3730. this.pptImgUrl1 =
  3731. "https://view.officeapps.live.com/op/view.aspx?src=" +
  3732. _url;
  3733. }
  3734. } else if (
  3735. this.chapInfoList[this.courseType].chapterInfo[0]
  3736. .taskJson[this.taskCount].chapterData[y].type == 6
  3737. ) {
  3738. this.showType = 1;
  3739. this.text = this.textList[this.taskCount][0];
  3740. }
  3741. }
  3742. }
  3743. }
  3744. }
  3745. } else {
  3746. this.isClickNav = "video0";
  3747. }
  3748. setTimeout(() => {
  3749. this.checkEva();
  3750. }, 500);
  3751. this.selectStudent();
  3752. this.selectSWorks();
  3753. let _this = this;
  3754. _this.timer = setInterval(function () {
  3755. _this.selectSWorks();
  3756. _this.selectStudent();
  3757. _this.selectSLook();
  3758. }, 5000);
  3759. _this.$nextTick(function () {
  3760. setTimeout(() => {
  3761. var a =
  3762. document.getElementsByClassName("box_course")[0].offsetHeight;
  3763. document.getElementsByClassName("vedioList")[0].style.height =
  3764. a + "px";
  3765. document.getElementsByClassName("navBox")[0].style.height =
  3766. a - 40 + "px";
  3767. if (_this.vedio[_this.taskCount].length > 0) {
  3768. _this.vedioTime = [];
  3769. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  3770. _this.vedioTime[i] = document.getElementsByClassName(
  3771. "vjs-duration-display"
  3772. )[i].textContent;
  3773. }
  3774. }
  3775. }, 500);
  3776. });
  3777. })
  3778. .catch((err) => {
  3779. loading.close();
  3780. console.error(err);
  3781. });
  3782. },
  3783. updateSLook() {
  3784. let params = {
  3785. sopen: this.sIsOpen == false ? 1 : 2,
  3786. cid: this.id,
  3787. };
  3788. this.ajax
  3789. .get(this.$store.state.api + "updateCourseSLook", params)
  3790. .then((res) => {
  3791. if (this.sIsOpen == true) {
  3792. this.$message({
  3793. message: "权限开放成功",
  3794. type: "success",
  3795. });
  3796. } else {
  3797. this.$message({
  3798. message: "权限关闭成功",
  3799. type: "success",
  3800. });
  3801. }
  3802. })
  3803. .catch((err) => {
  3804. console.error(err);
  3805. });
  3806. },
  3807. selectSLook() {
  3808. let params = {
  3809. cid: this.id,
  3810. };
  3811. this.ajax
  3812. .get(this.$store.state.api + "selectCourseSLook", params)
  3813. .then((res) => {
  3814. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  3815. })
  3816. .catch((err) => {
  3817. console.error(err);
  3818. });
  3819. },
  3820. getHomeWork() {
  3821. let params = {
  3822. cid: this.id,
  3823. stage: this.courseType,
  3824. task: this.taskCount,
  3825. uid: this.userid,
  3826. };
  3827. this.ajax
  3828. .get(this.$store.state.api + "selectWork", params)
  3829. .then((res) => {
  3830. if (res.data[0].length > 0) {
  3831. this.studyJuri = JSON.parse(res.data[0][0].content);
  3832. this.isNoHomeWork = true;
  3833. }
  3834. })
  3835. .catch((err) => {
  3836. console.error(err);
  3837. });
  3838. },
  3839. isAssetTypeAnImage(ext) {
  3840. return (
  3841. [
  3842. "png",
  3843. "jpg",
  3844. "jpeg",
  3845. "bmp",
  3846. "gif",
  3847. "webp",
  3848. "psd",
  3849. "svg",
  3850. "tiff",
  3851. ].indexOf(ext) !== -1
  3852. );
  3853. },
  3854. switchVideo(media) {
  3855. this.playerO = {};
  3856. this.playerOptions.poster = "";
  3857. this.playerOptions.sources[0].src = media;
  3858. this.playerO = this.playerOptions;
  3859. },
  3860. onPlayerPlay() { },
  3861. lookVedio(u, i) {
  3862. this.isClickNav = "";
  3863. // this.playerOptions.sources[0].src = u;
  3864. var d = JSON.parse(JSON.stringify(this.playerOptions));
  3865. d.sources[0].src = u;
  3866. this.playerO[this.taskCount] = d;
  3867. this.showType = 0;
  3868. this.isClickNav = "video" + i;
  3869. this.$forceUpdate();
  3870. },
  3871. lookText(i, t) {
  3872. this.isClickNav = "";
  3873. this.text = this.textList[i][t];
  3874. // this.dialogVisible1 = true;
  3875. this.showType = 1;
  3876. this.isClickNav = "text" + t;
  3877. },
  3878. lookTools(i, t) {
  3879. this.chapTools = this.chapToolList[i][t];
  3880. this.dialogVisible2 = true;
  3881. },
  3882. openFile(f) {
  3883. this.pptImgUrl = "";
  3884. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3885. if (
  3886. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  3887. -1
  3888. ) {
  3889. this.pptImgUrl =
  3890. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  3891. this.showPDF = false;
  3892. this.dialogVisible3 = true;
  3893. } else if (
  3894. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3895. ) {
  3896. this.pptImgUrl = f;
  3897. this.showPDF = true;
  3898. this.dialogVisible3 = true;
  3899. }
  3900. },
  3901. downFile(f, i) {
  3902. this.isClickNav = "";
  3903. this.pptImgUrl1 = "";
  3904. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  3905. if (
  3906. a.indexOf(
  3907. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  3908. ) != -1
  3909. ) {
  3910. this.pptImgUrl1 =
  3911. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  3912. // this.dialogVisible3 = true;
  3913. this.showType = 2;
  3914. } else if (
  3915. this.isAssetTypeAnImage(
  3916. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  3917. )
  3918. ) {
  3919. this.showType = 4;
  3920. this.pptImgUrl1 = f.url;
  3921. } else if (
  3922. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  3923. "PDF"
  3924. ) {
  3925. this.pptImgUrl1 = f.url;
  3926. // this.dialogVisible3 = true;
  3927. this.showType = 3;
  3928. } else {
  3929. window.open(this.file[i].url);
  3930. }
  3931. this.isClickNav = "word" + i;
  3932. },
  3933. downFileList(i) {
  3934. window.open(this.noImgList[i].url);
  3935. },
  3936. openAddWork() {
  3937. this.dialogVisible = true;
  3938. },
  3939. addBzWorks() {
  3940. let params = [
  3941. {
  3942. uid: this.userid,
  3943. cid: this.id,
  3944. stage: this.courseType,
  3945. task: this.taskCount,
  3946. tool: this.toolindex,
  3947. content: JSON.stringify(this.eScore),
  3948. type: 6,
  3949. },
  3950. ];
  3951. this.ajax
  3952. .post(this.$store.state.api + "addCourseWorks", params)
  3953. .then((res) => {
  3954. this.$message({
  3955. message: "提交成功",
  3956. type: "success",
  3957. });
  3958. this.eScore = { eBzText: "", eStar: [] };
  3959. this.studentEvalDialogVisible = false;
  3960. this.selectSWorks();
  3961. })
  3962. .catch((err) => {
  3963. this.$message.error("提交失败");
  3964. console.error(err);
  3965. });
  3966. },
  3967. addStudentAsk() {
  3968. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  3969. let params = [
  3970. {
  3971. uid: this.userid,
  3972. cid: this.id,
  3973. stage: this.courseType,
  3974. task: this.taskCount,
  3975. tool: this.toolindex,
  3976. content: JSON.stringify(this.askList).replace(/%/g, "%25"),
  3977. type: 2,
  3978. },
  3979. ];
  3980. this.ajax
  3981. .post(this.$store.state.api + "addCourseWorks", params)
  3982. .then((res) => {
  3983. this.$message({
  3984. message: "提交成功",
  3985. type: "success",
  3986. });
  3987. this.askList = [];
  3988. this.dialogVisible5 = false;
  3989. })
  3990. .catch((err) => {
  3991. this.$message.error("提交失败");
  3992. console.error(err);
  3993. });
  3994. },
  3995. addWork() {
  3996. if (this.studyJuri[0].content == "") {
  3997. this.$message.error("请将信息填写完整");
  3998. return;
  3999. } else if (this.studyJuri[0].cover.length == 0) {
  4000. this.$message.error("请将信息填写完整");
  4001. return;
  4002. } else if (this.studyJuri[0].upVedio.length == 0) {
  4003. this.$message.error("请将信息填写完整");
  4004. return;
  4005. }
  4006. if (this.isNoHomeWork) {
  4007. this.$confirm(
  4008. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  4009. "提示",
  4010. {
  4011. confirmButtonText: "确定",
  4012. cancelButtonText: "取消",
  4013. type: "warning",
  4014. }
  4015. )
  4016. .then(() => {
  4017. let params = [
  4018. {
  4019. uid: this.userid,
  4020. cid: this.id,
  4021. stage: this.courseType,
  4022. task: this.taskCount,
  4023. content: JSON.stringify(this.studyJuri),
  4024. },
  4025. ];
  4026. this.ajax
  4027. .post(this.$store.state.api + "addWorks", params)
  4028. .then((res) => {
  4029. this.$message({
  4030. message: "提交成功",
  4031. type: "success",
  4032. });
  4033. this.isNoHomeWork = true;
  4034. this.dialogVisible = false;
  4035. })
  4036. .catch((err) => {
  4037. this.$message.error("提交失败");
  4038. console.error(err);
  4039. });
  4040. })
  4041. .catch(() => { });
  4042. } else {
  4043. let params = [
  4044. {
  4045. uid: this.userid,
  4046. cid: this.id,
  4047. stage: this.courseType,
  4048. task: this.taskCount,
  4049. content: JSON.stringify(this.studyJuri),
  4050. },
  4051. ];
  4052. this.ajax
  4053. .post(this.$store.state.api + "addWorks", params)
  4054. .then((res) => {
  4055. this.$message({
  4056. message: "提交成功",
  4057. type: "success",
  4058. });
  4059. this.isNoHomeWork = true;
  4060. this.dialogVisible = false;
  4061. })
  4062. .catch((err) => {
  4063. this.$message.error("提交失败");
  4064. console.error(err);
  4065. });
  4066. }
  4067. },
  4068. selectCount() {
  4069. let params = {
  4070. cid: this.id,
  4071. chid: this.courseType,
  4072. uid: this.userid,
  4073. };
  4074. this.ajax
  4075. .get(this.$store.state.api + "selectToolsCount", params)
  4076. .then((res) => {
  4077. for (var i = 0; i < res.data[0].length; i++) {
  4078. if (res.data[0][i].tools == 1) {
  4079. this.wbCount = res.data[0][i].count;
  4080. } else if (res.data[0][i].tools == 2) {
  4081. this.wordCount = res.data[0][i].count;
  4082. } else if (res.data[0][i].tools == 3) {
  4083. this.mindCount = res.data[0][i].count;
  4084. } else if (res.data[0][i].tools == 4) {
  4085. this.askCount = res.data[0][i].count;
  4086. } else if (res.data[0][i].tools == 6) {
  4087. this.noteCount = res.data[0][i].count;
  4088. } else if (res.data[0][i].tools == 7) {
  4089. this.mindNetWorkCount = res.data[0][i].count;
  4090. } else if (res.data[0][i].tools == 8) {
  4091. this.libraryCount = res.data[0][i].count;
  4092. } else if (res.data[0][i].tools == 16) {
  4093. this.workCount = res.data[0][i].count;
  4094. } else if (res.data[0][i].tools == 10) {
  4095. this.timeCount = res.data[0][i].count;
  4096. } else if (res.data[0][i].tools == 15) {
  4097. this.answerCount = res.data[0][i].count;
  4098. } else if (res.data[0][i].tools == 18) {
  4099. this.trainCount = res.data[0][i].count;
  4100. }
  4101. }
  4102. })
  4103. .catch((err) => {
  4104. console.error(err);
  4105. });
  4106. },
  4107. openTools(t, i, index, c, sName) {
  4108. var z = JSON.parse(c);
  4109. this.noteName = sName;
  4110. if (t == 4) {
  4111. this.radio = [];
  4112. this.isAnswer = false;
  4113. for (var i = 0; i < z.length; i++) {
  4114. let a = z[i];
  4115. let b = a.anwer.split(",");
  4116. let d = [];
  4117. for (var j = 0; j < b.length; j++) {
  4118. d.push(parseInt(b[j]));
  4119. }
  4120. this.radio = d;
  4121. this.askJson = a.askJson;
  4122. }
  4123. this.isAnswer = true;
  4124. this.dialogVisible5 = true;
  4125. }
  4126. // else if (t == 15) {
  4127. // this.answerQ = "";
  4128. // this.questionAnswer = "";
  4129. // this.answerQ = z[0].answerTitle;
  4130. // this.questionAnswer = z[0].answer;
  4131. // this.answerDialogVisible = true;
  4132. // }
  4133. },
  4134. doUrl(url, i) {
  4135. this.isClickNav = "";
  4136. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  4137. url = "https://" + url;
  4138. }
  4139. window.open(url);
  4140. this.isClickNav = i;
  4141. },
  4142. fastText(p, t) {
  4143. if (t == 1) {
  4144. this.commentText += p;
  4145. } else {
  4146. this.eScore.eBzText += p;
  4147. }
  4148. },
  4149. addTools(t, i, index) {
  4150. var a = 0;
  4151. // this.taskCount = index;
  4152. this.toolindex = i;
  4153. if (t == 1) {
  4154. if (this.wbCount > 0) {
  4155. this.updateCount(this.wbCount, t);
  4156. } else {
  4157. this.wbCount++;
  4158. a = this.wbCount;
  4159. this.toolsCount(a, t);
  4160. }
  4161. window.parent.postMessage(
  4162. {
  4163. tools: "1",
  4164. cid: this.id,
  4165. stage: this.courseType,
  4166. task: this.taskCount,
  4167. tool: i,
  4168. },
  4169. "*"
  4170. );
  4171. } else if (t == 2) {
  4172. if (this.wordCount > 0) {
  4173. this.updateCount(this.wordCount, t);
  4174. } else {
  4175. this.wordCount++;
  4176. a = this.wordCount;
  4177. this.toolsCount(a, t);
  4178. }
  4179. window.parent.postMessage({ tools: "2" }, "*");
  4180. } else if (t == 3) {
  4181. if (this.mindCount > 0) {
  4182. this.updateCount(this.mindCount, t);
  4183. } else {
  4184. this.mindCount++;
  4185. a = this.mindCount;
  4186. this.toolsCount(a, t);
  4187. }
  4188. window.parent.postMessage(
  4189. {
  4190. tools: "3",
  4191. cid: this.id,
  4192. stage: this.courseType,
  4193. task: this.taskCount,
  4194. tool: i,
  4195. },
  4196. "*"
  4197. );
  4198. } else if (t == 4) {
  4199. this.radio = [];
  4200. this.noteName = "";
  4201. this.isAnswer = false;
  4202. if (this.askCount > 0) {
  4203. this.updateCount(this.askCount, t);
  4204. } else {
  4205. this.askCount++;
  4206. a = this.askCount;
  4207. this.toolsCount(a, t);
  4208. }
  4209. if (!this.dialogVisible2) {
  4210. this.askJson.askJson =
  4211. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4212. index
  4213. ].toolChoose[i].askJson;
  4214. this.askJson.askTitle =
  4215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4216. index
  4217. ].toolChoose[i].askTitle;
  4218. this.askJson.askCount =
  4219. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4220. index
  4221. ].toolChoose[i].askCount;
  4222. } else {
  4223. this.askJson.askJson = this.chapTools.askJson.askJson;
  4224. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  4225. this.askJson.askCount = this.chapTools.askJson.askCount;
  4226. }
  4227. this.dialogVisible5 = true;
  4228. // window.parent.postMessage({ tools: "4" }, "*");
  4229. } else if (t == 5) {
  4230. if (this.scoreCount > 0) {
  4231. this.updateCount(this.scoreCount, t);
  4232. } else {
  4233. this.scoreCount++;
  4234. a = this.scoreCount;
  4235. this.toolsCount(a, t);
  4236. }
  4237. this.dialogVisible4 = true;
  4238. // window.parent.postMessage({ tools: "5" }, "*");
  4239. } else if (t == 6) {
  4240. if (this.noteCount > 0) {
  4241. this.updateCount(this.noteCount, t);
  4242. } else {
  4243. this.noteCount++;
  4244. a = this.noteCount;
  4245. this.toolsCount(a, t);
  4246. }
  4247. window.parent.postMessage(
  4248. {
  4249. tools: "6",
  4250. cid: this.id,
  4251. stage: this.courseType,
  4252. task: this.taskCount,
  4253. tool: i,
  4254. },
  4255. "*"
  4256. );
  4257. } else if (t == 7) {
  4258. if (this.mindNetWorkCount > 0) {
  4259. this.updateCount(this.mindNetWorkCount, t);
  4260. } else {
  4261. this.mindNetWorkCount++;
  4262. a = this.mindNetWorkCount;
  4263. this.toolsCount(a, t);
  4264. }
  4265. window.parent.postMessage(
  4266. {
  4267. tools: "7",
  4268. cid: this.id,
  4269. stage: this.courseType,
  4270. task: this.taskCount,
  4271. tool: i,
  4272. },
  4273. "*"
  4274. );
  4275. } else if (t == 16) {
  4276. if (this.workCount > 0) {
  4277. this.updateCount(this.workCount, t);
  4278. } else {
  4279. this.workCount++;
  4280. a = this.workCount;
  4281. this.toolsCount(a, t);
  4282. }
  4283. this.dialogVisible = true;
  4284. } else if (t == 8) {
  4285. if (this.libraryCount > 0) {
  4286. this.updateCount(this.libraryCount, t);
  4287. } else {
  4288. this.libraryCount++;
  4289. a = this.libraryCount;
  4290. this.toolsCount(a, t);
  4291. }
  4292. window.parent.postMessage({ tools: "8" }, "*");
  4293. } else if (t == 17) {
  4294. if (this.libraryCount > 0) {
  4295. this.updateCount(this.libraryCount, t);
  4296. } else {
  4297. this.libraryCount++;
  4298. a = this.libraryCount;
  4299. this.toolsCount(a, t);
  4300. }
  4301. window.parent.postMessage({ tools: "17" }, "*");
  4302. } else if (t == 18) {
  4303. if (this.trainCount > 0) {
  4304. this.updateCount(this.trainCount, t);
  4305. } else {
  4306. this.trainCount++;
  4307. a = this.trainCount;
  4308. this.toolsCount(a, t);
  4309. }
  4310. window.parent.postMessage({ tools: "18" }, "*");
  4311. } else if (t == 10) {
  4312. if (this.timeCount > 0) {
  4313. this.updateCount(this.timeCount, t);
  4314. } else {
  4315. this.timeCount++;
  4316. a = this.timeCount;
  4317. this.toolsCount(a, t);
  4318. }
  4319. this.timeDialogVisible = true;
  4320. } else if (t == 15) {
  4321. this.answerQ = "";
  4322. this.questionAnswer = "";
  4323. if (this.answerCount > 0) {
  4324. this.updateCount(this.answerCount, t);
  4325. } else {
  4326. this.answerCount++;
  4327. a = this.answerCount;
  4328. this.toolsCount(a, t);
  4329. }
  4330. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  4331. .taskJson[index].toolChoose[i].answerQ
  4332. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  4333. .toolChoose[i].answerQ
  4334. : "";
  4335. this.answerDialogVisible = true;
  4336. } else if (t == 21) {
  4337. window.parent.postMessage({ tools: "21" }, "*");
  4338. } else if (t == 22) {
  4339. window.parent.postMessage({ tools: "22" }, "*");
  4340. } else if (t == 23) {
  4341. window.parent.postMessage({ tools: "23" }, "*");
  4342. } else if (t == 24) {
  4343. window.parent.postMessage({ tools: "24" }, "*");
  4344. } else if (t == 25) {
  4345. window.parent.postMessage({ tools: "25" }, "*");
  4346. } else if (t == 31) {
  4347. window.parent.postMessage({ tools: "31" }, "*");
  4348. } else if (t == 28) {
  4349. window.parent.postMessage({ tools: "28" }, "*");
  4350. } else if (t == 37) {
  4351. window.parent.postMessage({ tools: "37" }, "*");
  4352. } else if (t == 38) {
  4353. window.parent.postMessage({ tools: "38" }, "*");
  4354. } else if (t == 39) {
  4355. window.parent.postMessage({ tools: "39" }, "*");
  4356. } else if (t == 32) {
  4357. window.parent.postMessage({ tools: "32" }, "*");
  4358. } else if (t == 26) {
  4359. window.parent.postMessage(
  4360. {
  4361. tools: "26",
  4362. cid: this.id,
  4363. stage: this.courseType,
  4364. task: this.taskCount,
  4365. tool: i,
  4366. },
  4367. "*"
  4368. );
  4369. } else if (t == 40) {
  4370. if (this.evalCount > 0) {
  4371. this.updateCount(this.evalCount, t);
  4372. } else {
  4373. this.evalCount++;
  4374. a = this.evalCount;
  4375. this.toolsCount(a, t);
  4376. }
  4377. if (this.worksStudent[i].length) {
  4378. for (var k = 0; k < this.worksStudent[i].length; k++) {
  4379. if (this.userid == this.worksStudent[i][k].userid) {
  4380. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  4381. this.rateJson =
  4382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4383. index
  4384. ].toolChoose[i].rateJson;
  4385. break;
  4386. } else {
  4387. this.rateJson =
  4388. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4389. index
  4390. ].toolChoose[i].rateJson;
  4391. }
  4392. }
  4393. } else {
  4394. this.rateJson =
  4395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4396. index
  4397. ].toolChoose[i].rateJson;
  4398. }
  4399. this.isStar = false;
  4400. this.studentEvalDialogVisible = true;
  4401. } else if (t == 41) {
  4402. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  4403. .taskJson[index].toolChoose[i].selectJson
  4404. ? JSON.parse(
  4405. JSON.stringify(
  4406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4407. index
  4408. ].toolChoose[i].selectJson
  4409. )
  4410. )
  4411. : { url: "", select: [], answer: [] };
  4412. if (this.worksStudent[i].length) {
  4413. for (var k = 0; k < this.worksStudent[i].length; k++) {
  4414. if (this.userid == this.worksStudent[i][k].userid) {
  4415. var a = this.worksStudent[i][k].works.split(",");
  4416. for (var ki = 0; ki < a.length; ki++) {
  4417. a[ki] = parseInt(a[ki]);
  4418. }
  4419. this.selectAnswer = {
  4420. answer: a,
  4421. stu: this.worksStudent[i][k].sName,
  4422. };
  4423. break;
  4424. } else {
  4425. this.selectAnswer = { answer: [], stu: "" };
  4426. }
  4427. }
  4428. } else {
  4429. this.selectAnswer = { answer: [], stu: "" };
  4430. }
  4431. this.isSelect = false;
  4432. this.dialogVisibleSelect = true;
  4433. }
  4434. },
  4435. toolsCount(a, t) {
  4436. let params = {
  4437. cid: this.id,
  4438. chid: this.courseType,
  4439. uid: this.userid,
  4440. tid: t,
  4441. count: a,
  4442. };
  4443. this.ajax
  4444. .get(this.$store.state.api + "insertToolsCount", params)
  4445. .then((res) => {
  4446. this.selectCount();
  4447. })
  4448. .catch((err) => {
  4449. console.error(err);
  4450. });
  4451. },
  4452. updateCount(c, t) {
  4453. c++;
  4454. let params = {
  4455. cid: this.id,
  4456. chid: this.courseType,
  4457. uid: this.userid,
  4458. tid: t,
  4459. count: c,
  4460. };
  4461. this.ajax
  4462. .get(this.$store.state.api + "updateToolsCount", params)
  4463. .then((res) => {
  4464. this.selectCount();
  4465. })
  4466. .catch((err) => {
  4467. console.error(err);
  4468. });
  4469. },
  4470. checkEva() {
  4471. if (this.evalua != "") {
  4472. for (var i = 0; i < this.evaJuri.length; i++) {
  4473. if (this.evalua == this.evaJuri[i].id) {
  4474. this.eTitle = this.evaJuri[i].title;
  4475. this.eJson = JSON.parse(this.evaJuri[i].content);
  4476. }
  4477. }
  4478. this.$forceUpdate();
  4479. setTimeout(() => {
  4480. this.setMindData();
  4481. }, 0);
  4482. }
  4483. },
  4484. selectEva() {
  4485. let params = {
  4486. oid: this.oid,
  4487. };
  4488. this.ajax
  4489. .get(this.$store.state.api + "selectAllEvaluation", params)
  4490. .then((res) => {
  4491. this.evaJuri = res.data[0];
  4492. })
  4493. .catch((err) => {
  4494. console.error(err);
  4495. });
  4496. },
  4497. setMindData() {
  4498. this.data.data = [];
  4499. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  4500. let _eJson = Object.keys(this.eJson);
  4501. let _e = this.eJson;
  4502. for (let i = 0; i < _eJson.length; i++) {
  4503. let element = _e[_eJson[i]];
  4504. this.data.data.push({
  4505. id: element.id,
  4506. parentid: "root",
  4507. topic: element.name,
  4508. });
  4509. let _eJsonc = Object.keys(element.child);
  4510. let _e2 = element.child;
  4511. for (let j = 0; j < _eJsonc.length; j++) {
  4512. let _ec = _e2[_eJsonc[j]];
  4513. this.data.data.push({
  4514. id: _ec.id,
  4515. parentid: element.id,
  4516. topic: _ec.name,
  4517. });
  4518. let _eJsonz = Object.keys(_ec.child);
  4519. let _e3 = _ec.child;
  4520. for (let z = 0; z < _eJsonz.length; z++) {
  4521. let _ez = _e3[_eJsonz[z]];
  4522. this.data.data.push({
  4523. id: _ez.id,
  4524. parentid: _ec.id,
  4525. topic: _ez.name,
  4526. });
  4527. }
  4528. }
  4529. }
  4530. this.$forceUpdate();
  4531. },
  4532. checkFileFull(type, url) {
  4533. this.fullDialogVisible = true;
  4534. this.fulltype = type;
  4535. this.fullUrl = url;
  4536. },
  4537. },
  4538. destroyed() {
  4539. window.onresize = null;
  4540. },
  4541. computed: {
  4542. contentConvent() {
  4543. return function (c) {
  4544. return c
  4545. ? c
  4546. .replaceAll(/\r\n/g, "<br/>")
  4547. .replaceAll(/\n/g, "<br/>")
  4548. .replaceAll(/\s/g, " &nbsp")
  4549. : "";
  4550. };
  4551. },
  4552. },
  4553. created() {
  4554. if (this.screenType == 2) {
  4555. window.parent.postMessage({ allScreen: 4 }, "*");
  4556. } else if (this.screenType == 3) {
  4557. window.parent.postMessage({ allScreen: 5 }, "*");
  4558. } else if (this.screenType == 1) {
  4559. window.parent.postMessage({ allScreen: 6 }, "*");
  4560. }
  4561. this.selectEva();
  4562. this.getCourseDetail();
  4563. this.selectCount();
  4564. this.getHomeWork();
  4565. this.selectSLook();
  4566. document.scrollingElement.scrollTop = 0;
  4567. window.addEventListener("resize", () => {
  4568. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  4569. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  4570. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  4571. });
  4572. let _this = this;
  4573. setTimeout(() => {
  4574. _this.vedioTime = [];
  4575. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  4576. _this.vedioTime[i] = document.getElementsByClassName(
  4577. "vjs-duration-display"
  4578. )[i].textContent;
  4579. }
  4580. }, 1000);
  4581. },
  4582. };
  4583. </script>
  4584. <style scoped>
  4585. @media screen and (max-width: 1024px) {
  4586. /* .courseIndex > div:first-child(2) {
  4587. width: 15% !important;
  4588. } */
  4589. /* .navText {
  4590. width: 120px !important;
  4591. } */
  4592. .evaCss {
  4593. flex-direction: column !important;
  4594. align-items: center !important;
  4595. }
  4596. .dialog_diy1>>>.el-dialog {
  4597. width: 100% !important;
  4598. }
  4599. .rightWidthCss {
  4600. width: 100% !important;
  4601. }
  4602. .dialog_diy3>>>.el-dialog {
  4603. width: 95% !important;
  4604. }
  4605. /* .textTitle >>> .el-form-item__label {
  4606. width: 150px !important;
  4607. } */
  4608. }
  4609. .dialog_diy>>>.el-dialog {
  4610. margin-top: 10vh !important;
  4611. }
  4612. .body_student {
  4613. width: 77%;
  4614. height: 100%;
  4615. position: absolute;
  4616. left: 22%;
  4617. top: 0;
  4618. }
  4619. .student_head {
  4620. width: 100%;
  4621. margin: 0 auto;
  4622. padding-bottom: 50px;
  4623. display: flex;
  4624. flex-direction: column;
  4625. flex-wrap: nowrap;
  4626. align-items: flex-start;
  4627. justify-content: flex-start;
  4628. }
  4629. .pb_left {
  4630. width: 20%;
  4631. margin-right: 10px;
  4632. background: rgb(255, 255, 255);
  4633. padding-right: 10px;
  4634. position: fixed;
  4635. height: 100%;
  4636. }
  4637. .wheel>img,
  4638. .project>img,
  4639. .star>img,
  4640. .evaluate>img,
  4641. .up_photo>img,
  4642. .chapter_add>img,
  4643. .upCover>img,
  4644. .deleteWord>img,
  4645. .question>img,
  4646. .homework>img {
  4647. width: 100%;
  4648. height: 100%;
  4649. }
  4650. .upCover {
  4651. width: calc(100% / 3.5);
  4652. position: relative;
  4653. margin: 0 15px 10px 0;
  4654. display: flex;
  4655. flex-direction: column;
  4656. flex-wrap: nowrap;
  4657. justify-content: center;
  4658. align-content: center;
  4659. align-items: center;
  4660. }
  4661. .chapter_add {
  4662. width: 120px;
  4663. position: relative;
  4664. text-align: center;
  4665. }
  4666. .isAddThings {
  4667. margin-top: 20px;
  4668. position: relative;
  4669. text-align: center;
  4670. background: #f7f8fa;
  4671. height: 90px;
  4672. width: 90px;
  4673. display: flex;
  4674. flex-direction: column;
  4675. justify-content: center;
  4676. }
  4677. .deleteWord {
  4678. width: 22px;
  4679. height: 22px;
  4680. position: absolute;
  4681. right: -5px;
  4682. top: -5px;
  4683. cursor: pointer;
  4684. }
  4685. .box_course {
  4686. /* width: 60%; */
  4687. width: 81%;
  4688. }
  4689. .wheel {
  4690. width: 100%;
  4691. height: 100%;
  4692. }
  4693. .right_box {
  4694. display: flex;
  4695. flex-direction: column;
  4696. margin-left: 30px;
  4697. justify-content: space-around;
  4698. }
  4699. .right_box_title {
  4700. font-size: 23px;
  4701. }
  4702. .people {
  4703. display: flex;
  4704. }
  4705. .student_body {
  4706. width: 100%;
  4707. margin: 0 auto;
  4708. margin-top: 10px;
  4709. padding: 0 0 20px;
  4710. }
  4711. .study_top {
  4712. margin-top: 70px;
  4713. width: 100%;
  4714. /* overflow: auto; */
  4715. height: auto;
  4716. }
  4717. .study_top .checkbox {
  4718. display: flex;
  4719. align-items: center;
  4720. padding: 15px 0 15px 30px;
  4721. flex: 0 0 auto;
  4722. font-weight: bold;
  4723. border-bottom: 1px solid #eee;
  4724. }
  4725. .study_top .check {
  4726. padding-bottom: 5px;
  4727. text-align: center;
  4728. cursor: pointer;
  4729. height: 30px;
  4730. box-sizing: border-box;
  4731. display: flex;
  4732. }
  4733. .study_top .checked {
  4734. border-bottom: 4px solid #3fc6a0;
  4735. padding-bottom: 5px;
  4736. color: #3fc6a0;
  4737. display: flex;
  4738. height: 35px;
  4739. }
  4740. .study_top .checked>div,
  4741. .study_top .check>div {
  4742. margin-right: 5px;
  4743. }
  4744. .videoTop {
  4745. display: flex;
  4746. flex-direction: row;
  4747. justify-content: space-between;
  4748. background: #fff;
  4749. align-items: center;
  4750. width: 95%;
  4751. padding: 20px;
  4752. }
  4753. .upbtn {
  4754. margin: 25px;
  4755. background: #70afdb;
  4756. color: #fff;
  4757. width: 120px;
  4758. text-align: center;
  4759. height: 30px;
  4760. line-height: 30px;
  4761. font-size: 13px;
  4762. border-radius: 5px;
  4763. cursor: pointer;
  4764. }
  4765. .filebox {
  4766. display: flex;
  4767. flex-wrap: wrap;
  4768. flex-direction: column;
  4769. padding: 15px 0 5px;
  4770. }
  4771. .filebox .tooldetail {
  4772. width: 100%;
  4773. margin: 0px 12px;
  4774. background: rgb(247, 247, 247);
  4775. padding: 20px;
  4776. line-height: 30px;
  4777. word-break: break-word;
  4778. }
  4779. .file {
  4780. display: flex;
  4781. flex-direction: column;
  4782. align-items: center;
  4783. justify-content: center;
  4784. cursor: pointer;
  4785. width: 200px;
  4786. }
  4787. .file div {
  4788. margin-top: 10px;
  4789. width: 150px;
  4790. text-align: center;
  4791. overflow: hidden;
  4792. white-space: nowrap;
  4793. text-overflow: ellipsis;
  4794. }
  4795. .media {
  4796. display: flex;
  4797. flex-direction: column;
  4798. align-items: center;
  4799. justify-content: center;
  4800. margin: 0 20px 20px 0;
  4801. cursor: pointer;
  4802. margin: 12px 0 5px 15px;
  4803. overflow: hidden;
  4804. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  4805. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  4806. box-sizing: border-box;
  4807. }
  4808. .media img {
  4809. height: 90px;
  4810. width: 160px;
  4811. object-fit: cover;
  4812. }
  4813. .media .title {
  4814. padding: 5px;
  4815. text-align: left;
  4816. width: 100%;
  4817. box-sizing: border-box;
  4818. }
  4819. .media .btn {
  4820. width: 100%;
  4821. height: 35px;
  4822. line-height: 35px;
  4823. color: #fff;
  4824. background: #606060;
  4825. text-align: center;
  4826. overflow: hidden;
  4827. white-space: nowrap;
  4828. text-overflow: ellipsis;
  4829. }
  4830. .detail_content_top {
  4831. width: 100%;
  4832. padding: 25px 0 25px 0;
  4833. }
  4834. .detail_title {
  4835. text-align: center;
  4836. font-size: 24px;
  4837. }
  4838. .detail_time {
  4839. font-size: 13px;
  4840. padding: 15px 0 0 40px;
  4841. }
  4842. .detail_content {
  4843. line-height: 2pc;
  4844. width: 90%;
  4845. margin: 0 auto;
  4846. padding-top: 30px;
  4847. text-indent: 30px;
  4848. overflow: auto;
  4849. height: 200px;
  4850. }
  4851. .score_box>>>.el-rate {
  4852. margin-left: 10px;
  4853. }
  4854. .dialog_change>>>.el-dialog {
  4855. border-radius: 5px;
  4856. }
  4857. .dialog_change>>>.el-dialog__header {
  4858. background: #f2f2f2;
  4859. text-align: center;
  4860. }
  4861. .dialog_change>>>.el-dialog__title {
  4862. line-height: 5px;
  4863. }
  4864. .dialog_change>>>.el-dialog__body {
  4865. background: #fff;
  4866. padding: 10px 20px;
  4867. }
  4868. .score_box {
  4869. display: flex;
  4870. align-items: center;
  4871. margin-bottom: 18px;
  4872. margin-top: 20px;
  4873. }
  4874. .up_photo {
  4875. width: 120px;
  4876. cursor: pointer;
  4877. margin-top: 10px;
  4878. }
  4879. .upload_send {
  4880. margin: 30px auto 30px;
  4881. width: 60%;
  4882. background: #169bd6;
  4883. text-align: center;
  4884. height: 35px;
  4885. line-height: 35px;
  4886. color: #fff;
  4887. border-radius: 5px;
  4888. cursor: pointer;
  4889. }
  4890. .marginT {
  4891. margin-top: 20px;
  4892. }
  4893. .cd_content_steps {
  4894. display: flex;
  4895. width: 90%;
  4896. justify-content: space-around;
  4897. border-top: 1px solid #eeeeee;
  4898. }
  4899. .cd_steps_box {
  4900. display: flex;
  4901. justify-content: center;
  4902. align-items: center;
  4903. flex-direction: column;
  4904. cursor: pointer;
  4905. }
  4906. .first {
  4907. display: flex;
  4908. align-items: center;
  4909. margin: 15px 0 20px 0;
  4910. font-size: 20px;
  4911. }
  4912. .first>div:nth-child(2) {
  4913. font-size: 16px !important;
  4914. padding-left: 10px;
  4915. line-height: 26px;
  4916. box-sizing: border-box;
  4917. }
  4918. .blue_box_one {
  4919. text-align: center;
  4920. color: #fff;
  4921. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  4922. border-radius: 7px;
  4923. margin: 10px;
  4924. cursor: pointer;
  4925. width: 95%;
  4926. height: 45px;
  4927. display: flex;
  4928. flex-direction: row;
  4929. justify-content: flex-start;
  4930. align-items: center;
  4931. }
  4932. .blue_box_one>div:nth-child(1) {
  4933. line-height: 30px;
  4934. margin: 0 5px 0 10px;
  4935. width: 30%;
  4936. min-width: 70px;
  4937. border-radius: 4px;
  4938. }
  4939. .blue_box_one>div:nth-child(2) {
  4940. white-space: nowrap;
  4941. text-overflow: ellipsis;
  4942. overflow: hidden;
  4943. word-break: break-all;
  4944. width: 70%;
  4945. text-align: left;
  4946. margin-right: 10px;
  4947. max-width: calc(100% - 85px);
  4948. }
  4949. .blue_box_one>div:nth-child(2):hover {
  4950. overflow: hidden;
  4951. text-overflow: ellipsis;
  4952. white-space: nowrap;
  4953. cursor: pointer;
  4954. }
  4955. .upFile {
  4956. margin: 0 auto;
  4957. width: 120px;
  4958. background: #70afdb;
  4959. color: #fff;
  4960. height: 30px;
  4961. text-align: center;
  4962. line-height: 30px;
  4963. border-radius: 5px;
  4964. font-size: 14px;
  4965. cursor: pointer;
  4966. }
  4967. .courseTitle {
  4968. background: #205cc6;
  4969. width: 85%;
  4970. margin: 10px auto;
  4971. height: 50px;
  4972. color: #fff;
  4973. line-height: 50px;
  4974. text-align: center;
  4975. font-size: 20px;
  4976. font-weight: bold;
  4977. border-radius: 5px;
  4978. cursor: pointer;
  4979. white-space: nowrap;
  4980. overflow: hidden;
  4981. text-overflow: ellipsis;
  4982. padding: 0 10px;
  4983. }
  4984. .ml {
  4985. margin-left: 20px;
  4986. color: #5b7dba;
  4987. border-left: 3px solid #5b7dba;
  4988. padding-left: 5px;
  4989. font-weight: bold;
  4990. }
  4991. .return {
  4992. width: 2rem;
  4993. height: 2rem;
  4994. cursor: pointer;
  4995. }
  4996. .return>img {
  4997. width: 100%;
  4998. height: 100%;
  4999. }
  5000. .returnBtn {
  5001. background: #499eef;
  5002. width: 65px;
  5003. height: 30px;
  5004. color: #fff;
  5005. text-align: center;
  5006. line-height: 32px;
  5007. margin-right: 20px;
  5008. cursor: pointer;
  5009. border-radius: 5px;
  5010. font-size: 14px;
  5011. }
  5012. .tool {
  5013. display: flex;
  5014. flex-direction: column;
  5015. flex-wrap: nowrap;
  5016. width: 13%;
  5017. margin: 0 30px;
  5018. align-items: center;
  5019. }
  5020. .whiteBIcon {
  5021. width: 150px;
  5022. cursor: pointer;
  5023. }
  5024. .whiteBIcon>img {
  5025. width: 100%;
  5026. height: 100%;
  5027. }
  5028. .mask {
  5029. background-color: rgba(0, 0, 0, 0);
  5030. position: fixed;
  5031. top: 0;
  5032. left: 0;
  5033. width: 100%;
  5034. height: 100%;
  5035. z-index: 20000;
  5036. display: flex;
  5037. align-items: center;
  5038. justify-content: center;
  5039. }
  5040. .progressBox {
  5041. width: 500px;
  5042. height: 180px;
  5043. background: #fff;
  5044. border-radius: 10px;
  5045. box-shadow: 0 0 6px 1px #bfbfbf;
  5046. display: flex;
  5047. align-items: center;
  5048. justify-content: center;
  5049. flex-direction: column;
  5050. }
  5051. .progressBox .lbox {
  5052. height: 100px;
  5053. font-size: 19px;
  5054. display: flex;
  5055. align-items: center;
  5056. }
  5057. .progressBox .lbox img {
  5058. width: 40px;
  5059. margin-right: 20px;
  5060. }
  5061. .progressBox>>>.el-progress-bar__outer {
  5062. background-color: #d1dfff !important;
  5063. }
  5064. .progressBox .lbox {
  5065. height: 100px;
  5066. font-size: 19px;
  5067. display: flex;
  5068. align-items: center;
  5069. }
  5070. .progressBox .lbox img {
  5071. width: 40px;
  5072. margin-right: 20px;
  5073. }
  5074. .uploadVedio {
  5075. display: flex;
  5076. flex-direction: column;
  5077. flex-wrap: nowrap;
  5078. justify-content: center;
  5079. align-items: center;
  5080. margin: 0 15px 10px 0;
  5081. }
  5082. .uploadVedio>img {
  5083. width: 30px;
  5084. height: 30px;
  5085. }
  5086. .uploadVedio>span {
  5087. white-space: nowrap;
  5088. overflow: hidden;
  5089. text-overflow: ellipsis;
  5090. width: 75px;
  5091. margin-top: 7px;
  5092. }
  5093. .picName {
  5094. white-space: nowrap;
  5095. overflow: hidden;
  5096. text-overflow: ellipsis;
  5097. width: 75px;
  5098. margin-top: 7px;
  5099. }
  5100. .new_top {
  5101. display: flex;
  5102. background: #fff;
  5103. flex-direction: row;
  5104. justify-content: flex-start;
  5105. align-items: center;
  5106. height: 60px;
  5107. position: relative;
  5108. }
  5109. .before {
  5110. position: absolute;
  5111. background: #c3dad4;
  5112. width: 6px;
  5113. height: 100%;
  5114. }
  5115. .courseIndex {
  5116. display: flex;
  5117. flex-direction: row;
  5118. align-items: center;
  5119. width: calc(100% - 350px);
  5120. }
  5121. .courseIndex>div:nth-child(1) {
  5122. margin: 0 20px;
  5123. padding-left: 5px;
  5124. font-size: 24px;
  5125. min-width: 100px;
  5126. font-weight: bold;
  5127. border-left: 4px solid #3363b9;
  5128. height: 35px;
  5129. text-align: center;
  5130. line-height: 35px;
  5131. }
  5132. .courseIndex>div:nth-child(2) {
  5133. font-size: 23px;
  5134. width: 300px;
  5135. white-space: nowrap;
  5136. overflow: hidden;
  5137. text-overflow: ellipsis;
  5138. }
  5139. .courseIndex>div:nth-child(3) {
  5140. border-bottom: 1px solid #d7d7d7;
  5141. padding-bottom: 5px;
  5142. background: #49a0f0;
  5143. width: 55px;
  5144. min-width: 55px;
  5145. border-radius: 5px;
  5146. color: #fff;
  5147. text-align: center;
  5148. height: 20px;
  5149. line-height: 26px;
  5150. font-size: 14px;
  5151. margin: 0 0 0 10px;
  5152. }
  5153. .course_text {
  5154. padding: 20px 0 0 15px;
  5155. text-indent: 30px;
  5156. width: 80%;
  5157. min-height: 20px;
  5158. }
  5159. .vedioList {
  5160. background: #f2f2f2;
  5161. border: 1px solid #ececec;
  5162. /* width: 38.8%; */
  5163. width: calc(100% - 83%);
  5164. height: 445px;
  5165. border-radius: 10px;
  5166. overflow: hidden;
  5167. }
  5168. .vedioNav {
  5169. margin: 10px 0 0 15px;
  5170. border-bottom: 1px solid #d7d7d7;
  5171. padding-bottom: 5px;
  5172. background: #96d1ff;
  5173. width: 55px;
  5174. min-width: 55px;
  5175. border-radius: 5px;
  5176. color: #fff;
  5177. text-align: center;
  5178. height: 20px;
  5179. line-height: 26px;
  5180. font-size: 14px;
  5181. }
  5182. .queTop {
  5183. display: flex;
  5184. padding: 20px 0 20px 30px;
  5185. width: 100%;
  5186. flex-direction: row;
  5187. justify-content: flex-start;
  5188. align-items: center;
  5189. border-bottom: 1px solid #eeeeee;
  5190. box-sizing: border-box;
  5191. }
  5192. .question {
  5193. width: 40px;
  5194. margin-right: 10px;
  5195. margin-top: 7px;
  5196. }
  5197. .queTitle {
  5198. margin-left: 5px;
  5199. font-size: 25px;
  5200. display: flex;
  5201. align-items: center;
  5202. }
  5203. .addEditor {
  5204. width: 100px;
  5205. height: 30px;
  5206. background: #42cda6;
  5207. color: #fff;
  5208. border-radius: 5px;
  5209. text-align: center;
  5210. line-height: 30px;
  5211. box-shadow: 1px 3px 6px 1px #bfbfbf;
  5212. cursor: pointer;
  5213. }
  5214. .vedioName {
  5215. text-overflow: ellipsis;
  5216. /* position: absolute; */
  5217. top: 8px;
  5218. font-size: 14px;
  5219. /* left: 110px; */
  5220. /* height: 60px; */
  5221. overflow: hidden;
  5222. width: 100%;
  5223. word-break: break-all;
  5224. white-space: nowrap;
  5225. }
  5226. .vedioTime {
  5227. width: 35px;
  5228. position: absolute;
  5229. color: #fff;
  5230. bottom: 0px;
  5231. right: 0px;
  5232. text-align: center;
  5233. background: #46411f;
  5234. height: 20px;
  5235. font-size: 14px;
  5236. line-height: 20px;
  5237. }
  5238. .homework {
  5239. width: 200px;
  5240. display: flex;
  5241. flex-direction: column;
  5242. flex-wrap: nowrap;
  5243. align-items: center;
  5244. cursor: pointer;
  5245. }
  5246. .homebox {
  5247. display: flex;
  5248. flex-wrap: wrap;
  5249. flex-direction: row;
  5250. justify-content: flex-start;
  5251. align-items: center;
  5252. padding: 15px 0;
  5253. }
  5254. .isChooseActive {
  5255. color: #3e88f4;
  5256. border-bottom: 2px solid #2f80f3;
  5257. }
  5258. .chooseWho {
  5259. display: flex;
  5260. width: 100%;
  5261. flex-direction: row;
  5262. flex-wrap: nowrap;
  5263. justify-content: flex-start;
  5264. padding-bottom: 10px;
  5265. }
  5266. .chooseWho>div {
  5267. cursor: pointer;
  5268. padding-bottom: 10px;
  5269. margin: 0 30px;
  5270. }
  5271. .addPoint>div>img {
  5272. cursor: pointer;
  5273. margin: 0 10px;
  5274. width: 85px;
  5275. border-radius: 15px;
  5276. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  5277. }
  5278. .addPoint>div {
  5279. display: flex;
  5280. flex-direction: column;
  5281. flex-wrap: nowrap;
  5282. align-items: center;
  5283. }
  5284. .isBorder>div {
  5285. margin: 0 0 10px 0;
  5286. align-items: flex-start !important;
  5287. }
  5288. .noiframeBox {
  5289. display: flex;
  5290. flex-wrap: wrap;
  5291. }
  5292. .iframeBox iframe {
  5293. width: 100%;
  5294. height: 800px;
  5295. border: none;
  5296. margin-bottom: 20px;
  5297. border: 1px solid #ccc;
  5298. }
  5299. .upload_toolBtn {
  5300. background: #6b92c9;
  5301. color: #fff;
  5302. width: 110px;
  5303. text-align: center;
  5304. height: 35px;
  5305. line-height: 35px;
  5306. font-size: 14px;
  5307. border-radius: 5px;
  5308. cursor: pointer;
  5309. position: absolute;
  5310. right: 10px;
  5311. bottom: 0;
  5312. }
  5313. .binfo_input,
  5314. .pj {
  5315. font: inherit;
  5316. color: currentColor;
  5317. width: 100%;
  5318. margin: 0;
  5319. padding: 15px 14px;
  5320. display: block;
  5321. min-width: 0;
  5322. outline: none;
  5323. box-sizing: content-box;
  5324. background: none;
  5325. -webkit-tap-highlight-color: transparent;
  5326. border: 1px solid rgba(0, 0, 0, 0.23);
  5327. border-radius: 4px;
  5328. box-sizing: border-box;
  5329. resize: none;
  5330. }
  5331. .binfo_input:focus-visible {
  5332. border: 1px solid rgba(61, 103, 188);
  5333. }
  5334. .dialog_diy>>>.el-dialog__header,
  5335. .dialog_diy1>>>.el-dialog__header {
  5336. background: #002e81 !important;
  5337. padding: 15px 20px;
  5338. }
  5339. .dialog_diy>>>.el-dialog__title,
  5340. .dialog_diy1>>>.el-dialog__title {
  5341. color: #fff;
  5342. }
  5343. .dialog_diy>>>.el-dialog__headerbtn,
  5344. .dialog_diy1>>>.el-dialog__headerbtn {
  5345. top: 19px;
  5346. }
  5347. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  5348. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  5349. color: #fff;
  5350. }
  5351. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  5352. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  5353. color: #fff;
  5354. }
  5355. .dialog_diy1>>>.el-dialog__body {
  5356. padding: 0;
  5357. }
  5358. .dialog_diy>>>.el-dialog__body,
  5359. .dialog_diy>>>.el-dialog__footer,
  5360. .dialog_diy1>>>.el-dialog__footer {
  5361. background: #fafafa;
  5362. }
  5363. .a_addBox {
  5364. margin: 10px 0;
  5365. background: #fff;
  5366. padding: 15px;
  5367. max-height: 400px;
  5368. overflow: auto;
  5369. }
  5370. .a_add_box {
  5371. border-bottom: 2px solid #eee;
  5372. padding-bottom: 10px;
  5373. }
  5374. .a_add_head {
  5375. display: flex;
  5376. align-items: flex-start;
  5377. /* justify-content: space-between; */
  5378. flex-direction: column;
  5379. margin: 10px 0;
  5380. font-size: 18px;
  5381. width: 100%;
  5382. }
  5383. .a_add_head .a_add_head_input {
  5384. width: 300px;
  5385. }
  5386. .a_add_head .a_add_head_div {
  5387. display: flex;
  5388. align-items: center;
  5389. justify-content: space-between;
  5390. }
  5391. .a_add_body {
  5392. display: flex;
  5393. align-items: center;
  5394. }
  5395. .a_add_input {
  5396. display: flex;
  5397. align-items: center;
  5398. flex-wrap: wrap;
  5399. }
  5400. .a_add_input>>>el-radio-group {
  5401. margin: 10px 0;
  5402. }
  5403. .a_add_input>>>.el-radio {
  5404. margin-bottom: 10px;
  5405. }
  5406. .redioStyle>>>.el-radio__label {
  5407. font-size: 18px;
  5408. }
  5409. .toolHeng2 {
  5410. width: 100%;
  5411. }
  5412. .toolHeng {
  5413. display: flex;
  5414. flex-direction: row;
  5415. flex-wrap: wrap;
  5416. justify-content: flex-start;
  5417. align-items: center;
  5418. width: 100%;
  5419. }
  5420. .toolHeng>div {
  5421. padding-left: 20px;
  5422. }
  5423. .isWidth {
  5424. width: 20%;
  5425. }
  5426. .textTitle {
  5427. display: flex;
  5428. flex-direction: row;
  5429. flex-wrap: nowrap;
  5430. align-items: center;
  5431. width: 95%;
  5432. }
  5433. .textTitle>>>.el-form-item__label {
  5434. font-size: 22px;
  5435. color: #918f8f;
  5436. width: 100px;
  5437. }
  5438. .textTitle>>>.el-form-item__content {
  5439. width: calc(100% - 100px);
  5440. }
  5441. .textCss>>>.el-dialog {
  5442. width: 800px !important;
  5443. height: 400px;
  5444. background: #fafafa;
  5445. }
  5446. .textCss>>>.el-dialog__body {
  5447. margin: 55px 8% 0 8%;
  5448. padding: 0 !important;
  5449. }
  5450. .textCss>>>.el-dialog__footer {
  5451. padding-top: 38px;
  5452. }
  5453. .toolsCss>>>.el-dialog__body {
  5454. padding: 20px;
  5455. }
  5456. .lineCss>>>.el-dialog__body {
  5457. display: flex;
  5458. flex-direction: row;
  5459. align-items: center;
  5460. justify-content: center;
  5461. }
  5462. .newNav {
  5463. display: flex;
  5464. flex-direction: row;
  5465. align-items: baseline;
  5466. justify-content: flex-start;
  5467. }
  5468. .navText {
  5469. cursor: pointer;
  5470. margin: 0px 0px 10px 5px;
  5471. white-space: nowrap;
  5472. overflow: hidden;
  5473. text-overflow: ellipsis;
  5474. /* width: 300px; */
  5475. width: 100%;
  5476. }
  5477. .noVedio {
  5478. display: flex;
  5479. flex-direction: row;
  5480. justify-content: center;
  5481. align-content: center;
  5482. }
  5483. .noNavText {
  5484. cursor: pointer;
  5485. margin: 0px 0px 10px 5px;
  5486. width: 112px;
  5487. }
  5488. .listNoVedio {
  5489. margin: 0 0 0 30px;
  5490. width: 97%;
  5491. }
  5492. .video-player>>>.video-js {
  5493. height: 100%;
  5494. }
  5495. .hangVedioList {
  5496. width: 90% !important;
  5497. height: 150px !important;
  5498. margin: 20px 0 0 30px;
  5499. }
  5500. .hangVedio {
  5501. width: 100%;
  5502. height: 170px !important;
  5503. align-items: flex-start !important;
  5504. }
  5505. .hangHand {
  5506. height: 150px !important;
  5507. }
  5508. .twoChild {
  5509. width: 95%;
  5510. margin: 10px;
  5511. border-radius: 5px;
  5512. background: #f2f2f2;
  5513. display: flex;
  5514. flex-direction: column;
  5515. flex-wrap: nowrap;
  5516. justify-content: flex-start;
  5517. align-items: flex-start;
  5518. transition: all 0.5s;
  5519. overflow: hidden;
  5520. height: 0;
  5521. background: #e7f3ff;
  5522. }
  5523. .twoChild>div:nth-child(1) {
  5524. margin-top: 5px;
  5525. }
  5526. .navChild {
  5527. width: 100%;
  5528. cursor: pointer;
  5529. margin-bottom: 10px;
  5530. }
  5531. .navActive {
  5532. height: auto;
  5533. }
  5534. .navTask {
  5535. display: flex;
  5536. flex-direction: row;
  5537. flex-wrap: nowrap;
  5538. align-items: center;
  5539. align-content: flex-start;
  5540. height: 40px;
  5541. justify-content: flex-start;
  5542. padding: 0 10px;
  5543. width: 100%;
  5544. box-sizing: border-box;
  5545. }
  5546. .navTaskname {
  5547. white-space: nowrap;
  5548. text-overflow: ellipsis;
  5549. overflow: hidden;
  5550. word-break: break-all;
  5551. padding-left: 5px;
  5552. }
  5553. .openTaskActive {
  5554. color: #4386e6;
  5555. }
  5556. .iframeName {
  5557. margin: 5px 0;
  5558. border-left: 4px solid #41c4a4;
  5559. padding-left: 4px;
  5560. }
  5561. .toolTitle {
  5562. margin: 0px 0px 20px;
  5563. font-size: 20px;
  5564. font-weight: 500;
  5565. border-left: 4px solid #41c4a4;
  5566. padding-left: 4px;
  5567. }
  5568. .cru_selectBox {
  5569. overflow: auto;
  5570. width: 96%;
  5571. margin: 0 auto;
  5572. height: calc(100% - 40px - 21px - 20px);
  5573. }
  5574. .cru_selectBox::-webkit-scrollbar,
  5575. .study_top::-webkit-scrollbar,
  5576. .textContent::-webkit-scrollbar {
  5577. /*滚动条整体样式*/
  5578. width: 6px;
  5579. /*高宽分别对应横竖滚动条的尺寸*/
  5580. height: 6px;
  5581. }
  5582. /*定义滚动条轨道 内阴影+圆角*/
  5583. .cru_selectBox::-webkit-scrollbar-track,
  5584. .study_top::-webkit-scrollbar-track,
  5585. .textContent::-webkit-scrollbar {
  5586. border-radius: 10px;
  5587. background-color: #b8bdc9;
  5588. }
  5589. /*定义滑块 内阴影+圆角*/
  5590. .cru_selectBox::-webkit-scrollbar-thumb,
  5591. .study_top::-webkit-scrollbar-thumb,
  5592. .textContent::-webkit-scrollbar-thumb {
  5593. border-radius: 10px;
  5594. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  5595. background-color: #2c5ab3;
  5596. }
  5597. .vedioBox {
  5598. border-radius: 20px;
  5599. background: #fff;
  5600. margin-bottom: 10px;
  5601. }
  5602. .taskBox {
  5603. margin: 15px auto 20px;
  5604. background: #f7f7f7;
  5605. width: 97%;
  5606. border-radius: 10px;
  5607. }
  5608. .vedioTaskBox {
  5609. width: 100%;
  5610. display: flex;
  5611. flex-direction: row;
  5612. flex-wrap: nowrap;
  5613. align-items: center;
  5614. }
  5615. .toolBox {
  5616. padding: 20px 0 0 0;
  5617. display: flex;
  5618. }
  5619. .btnAll {
  5620. position: absolute;
  5621. right: 0;
  5622. display: flex;
  5623. flex-direction: row;
  5624. flex-wrap: nowrap;
  5625. align-items: center;
  5626. }
  5627. .vedioTimeBox {
  5628. display: flex;
  5629. flex-direction: row;
  5630. align-items: center;
  5631. flex-wrap: nowrap;
  5632. position: relative;
  5633. }
  5634. .navBox {
  5635. background: rgb(255, 255, 255);
  5636. height: 400px;
  5637. padding: 5px 1px 0 1px;
  5638. overflow: auto;
  5639. }
  5640. .worksBox {
  5641. padding: 5px 0 0 10px;
  5642. border-bottom: 1px solid #eeeeee;
  5643. }
  5644. .worksBTitle {
  5645. font-size: 20px;
  5646. padding-bottom: 15px;
  5647. border-bottom: 1px solid #eeeeee;
  5648. display: flex;
  5649. align-items: center;
  5650. }
  5651. .greenBox {
  5652. width: 5px;
  5653. height: 30px;
  5654. background: #63b6fa;
  5655. margin-right: 5px;
  5656. }
  5657. .worksDetailBox {
  5658. display: flex;
  5659. width: 100%;
  5660. flex-direction: row;
  5661. flex-wrap: wrap;
  5662. align-items: center;
  5663. justify-content: flex-start;
  5664. padding: 15px 0;
  5665. }
  5666. .works {
  5667. display: flex;
  5668. flex-direction: column;
  5669. flex-wrap: nowrap;
  5670. align-items: flex-start;
  5671. justify-content: flex-start;
  5672. align-content: center;
  5673. max-width: 240px;
  5674. width: calc(100% / 3 - 10px);
  5675. height: auto;
  5676. margin-right: 10px;
  5677. margin-bottom: 10px;
  5678. overflow: hidden;
  5679. height: 140px;
  5680. box-shadow: 0 0 6px 1px #dfdada;
  5681. border-radius: 15px;
  5682. }
  5683. .workImg {
  5684. width: 100%;
  5685. /* height: calc(100% - 40px); */
  5686. height: 105px;
  5687. }
  5688. .workImg>img {
  5689. width: 100%;
  5690. height: 100%;
  5691. }
  5692. .worksName {
  5693. height: 40px;
  5694. line-height: 40px;
  5695. display: flex;
  5696. width: 92%;
  5697. flex-direction: row;
  5698. flex-wrap: nowrap;
  5699. justify-content: space-between;
  5700. align-items: center;
  5701. margin: 0 10px;
  5702. }
  5703. .worksName>div:nth-child(1) {
  5704. width: 48px;
  5705. white-space: nowrap;
  5706. overflow: hidden;
  5707. text-overflow: ellipsis;
  5708. }
  5709. .worksName>div:nth-child(2) {
  5710. color: #b7b4b5;
  5711. }
  5712. .noWorksS {
  5713. padding: 15px 0;
  5714. display: flex;
  5715. flex-direction: row;
  5716. flex-wrap: wrap;
  5717. align-items: center;
  5718. justify-content: flex-start;
  5719. }
  5720. .noWorksName {
  5721. background: #46a1eb;
  5722. color: #fff;
  5723. width: 90px;
  5724. height: 25px;
  5725. text-align: center;
  5726. line-height: 25px;
  5727. border-radius: 5px;
  5728. margin: 10px 15px 10px 0;
  5729. white-space: nowrap;
  5730. overflow: hidden;
  5731. padding: 5px;
  5732. text-overflow: ellipsis;
  5733. }
  5734. .noWorksName:hover {
  5735. background: #e7e7e7 !important;
  5736. }
  5737. .title {
  5738. background: #1e5cc9;
  5739. /* width: 98%; */
  5740. height: 45px;
  5741. color: #fff;
  5742. line-height: 45px;
  5743. padding-left: 20px;
  5744. box-sizing: border-box;
  5745. }
  5746. .textBox {
  5747. font-size: 20px;
  5748. width: 90%;
  5749. display: flex;
  5750. flex-direction: column;
  5751. align-items: center;
  5752. margin: 20px auto 0;
  5753. }
  5754. .textContent {
  5755. font-size: 18px;
  5756. height: 450px;
  5757. width: 95%;
  5758. overflow: auto;
  5759. line-height: 30px;
  5760. }
  5761. .answerBg {
  5762. background: url("../assets/icon/answerBgNew.png") no-repeat;
  5763. background-size: 100% 100%;
  5764. width: 100%;
  5765. height: 100%;
  5766. color: #fff;
  5767. text-align: center;
  5768. display: flex;
  5769. flex-direction: column;
  5770. flex-wrap: nowrap;
  5771. align-items: center;
  5772. }
  5773. .answerBg>div:nth-child(1) {
  5774. font-size: 22px;
  5775. padding: 25px 0 10px;
  5776. }
  5777. .answerContent {
  5778. width: 215px;
  5779. height: 60px;
  5780. word-break: break-all;
  5781. text-align: center;
  5782. white-space: nowrap;
  5783. overflow: hidden;
  5784. text-overflow: ellipsis;
  5785. }
  5786. .elist_input_box {
  5787. display: flex;
  5788. align-items: flex-start;
  5789. flex-wrap: nowrap;
  5790. padding: 10px 0 15px 30px;
  5791. flex-direction: column;
  5792. }
  5793. .elist_input {
  5794. /* width: 40%; */
  5795. width: 100%;
  5796. }
  5797. .elist_input .elist_input_box input {
  5798. font: inherit;
  5799. color: currentColor;
  5800. width: 200px;
  5801. padding: 8px 14px;
  5802. display: block;
  5803. min-width: 0;
  5804. outline: none;
  5805. border: 1px solid rgba(0, 0, 0, 0.23);
  5806. border-radius: 4px;
  5807. box-sizing: border-box;
  5808. background: #fff;
  5809. margin: 0 20px 0 0;
  5810. }
  5811. .elist_input .elist_input_box span {
  5812. height: 36px;
  5813. line-height: 36px;
  5814. color: rgb(82, 82, 82);
  5815. }
  5816. .elist_input .elist_input_box .remove {
  5817. height: 20px;
  5818. width: 20px;
  5819. background-size: 100% 100%;
  5820. background-position: unset;
  5821. margin-left: 5px;
  5822. }
  5823. .elist_input_box>>>.el-rate {
  5824. display: flex;
  5825. height: 36px;
  5826. align-items: center;
  5827. }
  5828. .elist_input_box .elist_inptu_text {
  5829. min-height: 50px;
  5830. /* width: 500px;
  5831. max-height: 150px; */
  5832. width: 100%;
  5833. line-height: 50px;
  5834. color: rgb(82, 82, 82);
  5835. overflow: auto;
  5836. text-indent: 5px;
  5837. background: #f7f6f9;
  5838. border-radius: 10px;
  5839. }
  5840. .elist_input_box .elist_inptu_text input {
  5841. width: 500px;
  5842. }
  5843. .elist_input_box>>>.el-rate__icon {
  5844. font-size: 24px;
  5845. }
  5846. .isClick {
  5847. background: #4d9def;
  5848. }
  5849. .bzBox {
  5850. display: flex;
  5851. flex-direction: row;
  5852. align-items: center;
  5853. }
  5854. .bzBox>div:nth-child(1) {
  5855. width: 4px;
  5856. height: 40px;
  5857. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  5858. }
  5859. .bzBox>div:nth-child(2) {
  5860. font-size: 23px;
  5861. font-weight: bold;
  5862. padding: 0px 0px 0 10px;
  5863. }
  5864. .navTitile {
  5865. padding: 0 0px 0 15px;
  5866. background: #1e5cc9;
  5867. color: #fff;
  5868. height: 40px;
  5869. line-height: 40px;
  5870. border-top-left-radius: 10px;
  5871. border-top-right-radius: 10px;
  5872. }
  5873. .isTypeOne {
  5874. width: 240px;
  5875. height: 170px;
  5876. /* border: 1px solid #f8f8f8; */
  5877. border-radius: 10px;
  5878. box-shadow: 0 0 6px 1px #dfdada;
  5879. }
  5880. .e_add_top {
  5881. display: flex;
  5882. justify-content: space-between;
  5883. padding: 20px 20px 0 20px;
  5884. border-radius: 3px;
  5885. background: #fff;
  5886. }
  5887. .e_add_title2 {
  5888. display: flex;
  5889. align-items: center;
  5890. }
  5891. .e_add_title2 span {
  5892. width: 40px;
  5893. }
  5894. .e_add_title {
  5895. display: flex;
  5896. align-items: center;
  5897. color: #b8b8b8;
  5898. font-size: 18px;
  5899. position: relative;
  5900. height: 40px;
  5901. }
  5902. .e_add_title span {
  5903. margin-right: 10px;
  5904. }
  5905. .e_add_title .el_input {
  5906. width: 300px;
  5907. }
  5908. .e_add_title>>>.el-input__inner {
  5909. width: 400px;
  5910. }
  5911. .e_add_btn {}
  5912. .e_add_content {
  5913. display: flex;
  5914. width: 650px;
  5915. height: 550px;
  5916. }
  5917. .e_add_list {
  5918. background: #fff;
  5919. height: 500px;
  5920. width: 210px;
  5921. position: relative;
  5922. margin: 15px 5px 0 0;
  5923. flex-shrink: 0;
  5924. display: flex;
  5925. flex-direction: column;
  5926. }
  5927. .e_add_list_title {
  5928. font-size: 20px;
  5929. width: 100%;
  5930. box-sizing: border-box;
  5931. padding: 15px 40px;
  5932. text-align: center;
  5933. border-bottom: 1px solid #eaeaea;
  5934. position: relative;
  5935. display: flex;
  5936. align-items: center;
  5937. justify-content: center;
  5938. height: 57px;
  5939. background: #f6f6f6;
  5940. }
  5941. .e_add_list_title span {
  5942. overflow: hidden;
  5943. white-space: nowrap;
  5944. text-overflow: ellipsis;
  5945. }
  5946. .e_add_list_title img {
  5947. position: absolute;
  5948. right: 15px;
  5949. width: 25px;
  5950. cursor: pointer;
  5951. top: 50%;
  5952. transform: translateY(-50%);
  5953. }
  5954. .e_add_list_body {
  5955. height: calc(100% - 187px);
  5956. overflow: auto;
  5957. }
  5958. .e_add_list_child {
  5959. width: 100%;
  5960. display: flex;
  5961. align-items: center;
  5962. justify-content: center;
  5963. position: relative;
  5964. box-sizing: border-box;
  5965. padding: 15px 40px;
  5966. text-align: center;
  5967. }
  5968. .e_add_list_child span {
  5969. overflow: hidden;
  5970. white-space: nowrap;
  5971. text-overflow: ellipsis;
  5972. cursor: pointer;
  5973. }
  5974. .e_add_list_child img {
  5975. position: absolute;
  5976. right: 10px;
  5977. width: 21px;
  5978. cursor: pointer;
  5979. top: 50%;
  5980. transform: translateY(-50%);
  5981. }
  5982. .e_add_list_child+.e_add_list_child {
  5983. border-top: 1px solid #eaeaea;
  5984. }
  5985. .e_add_list_child .active {
  5986. color: #409eff;
  5987. }
  5988. .e_add_list_btn {
  5989. position: absolute;
  5990. bottom: 0;
  5991. height: 50px;
  5992. background: rgb(120, 120, 254);
  5993. width: 100%;
  5994. color: #fff;
  5995. font-size: 16px;
  5996. text-align: center;
  5997. line-height: 50px;
  5998. cursor: pointer;
  5999. }
  6000. .e_add_list_detail {
  6001. position: absolute;
  6002. bottom: 0;
  6003. height: 130px;
  6004. background: rgb(120, 120, 254);
  6005. width: 100%;
  6006. color: #fff;
  6007. font-size: 16px;
  6008. display: flex;
  6009. align-items: center;
  6010. justify-content: center;
  6011. }
  6012. .e_add_list_detail textarea {
  6013. height: 90%;
  6014. width: 95%;
  6015. border: none;
  6016. resize: none;
  6017. outline: none;
  6018. padding: 5px;
  6019. box-sizing: border-box;
  6020. }
  6021. .e_add_list_pbox {
  6022. width: 650px;
  6023. /* height: 600px; */
  6024. }
  6025. .e_add_list_pbox_title {
  6026. height: 50px;
  6027. background: #fff;
  6028. display: flex;
  6029. align-items: center;
  6030. width: 100%;
  6031. box-sizing: border-box;
  6032. padding: 0 20px;
  6033. }
  6034. .type_title {
  6035. font-size: 18px;
  6036. font-weight: 700;
  6037. }
  6038. .type_content {
  6039. font-size: 16px;
  6040. margin-left: 30px;
  6041. }
  6042. .type_content span+span {
  6043. margin-left: 20px;
  6044. }
  6045. .type_content span {
  6046. cursor: pointer;
  6047. padding-bottom: 5px;
  6048. box-sizing: border-box;
  6049. }
  6050. .type_content .active {
  6051. color: #409eff;
  6052. border-bottom: 2px solid #409eff;
  6053. }
  6054. .e_add_list_pbox_content {
  6055. height: calc(100% - 50px);
  6056. display: flex;
  6057. align-items: center;
  6058. width: 100%;
  6059. background: #fff;
  6060. }
  6061. .evaCss {
  6062. display: flex;
  6063. flex-direction: row;
  6064. flex-wrap: nowrap;
  6065. align-items: flex-start;
  6066. }
  6067. .cru_line {
  6068. position: absolute;
  6069. bottom: 0px;
  6070. transition: all 0.5s;
  6071. left: 0px;
  6072. width: 125px;
  6073. margin-left: -25px;
  6074. }
  6075. .isNoMessage {
  6076. width: 20%;
  6077. margin: 25% auto 0;
  6078. }
  6079. .isNoMessage>img {
  6080. width: 100%;
  6081. height: 100%;
  6082. }
  6083. .fullStyle>>>.el-dialog__body {
  6084. height: 100% !important;
  6085. }
  6086. .fullStyle>>>.el-dialog,
  6087. .fullStyle {
  6088. width: 100% !important;
  6089. max-width: 100% !important;
  6090. height: 100% !important;
  6091. margin: 0 !important;
  6092. }
  6093. .full_diy>>>.el-dialog {
  6094. margin: 0 !important;
  6095. height: 100%;
  6096. padding: 4px;
  6097. }
  6098. .full_diy>>>.el-dialog__body {
  6099. height: calc(100% - 100px);
  6100. }
  6101. .switchCss {
  6102. width: 100%;
  6103. display: flex;
  6104. flex-direction: row;
  6105. flex-wrap: nowrap;
  6106. align-items: center;
  6107. justify-content: center;
  6108. }
  6109. .isClickNav {
  6110. color: #499eef;
  6111. }
  6112. .commentImg {
  6113. width: 25px;
  6114. height: 25px;
  6115. cursor: pointer;
  6116. }
  6117. .commentImg>img {
  6118. width: 100%;
  6119. height: 100%;
  6120. }
  6121. .comment {
  6122. background: #f9f9f9;
  6123. border-radius: 0 0 15px 15px;
  6124. display: flex;
  6125. flex-direction: row;
  6126. flex-wrap: nowrap;
  6127. align-items: center;
  6128. justify-content: flex-end;
  6129. height: 35px;
  6130. }
  6131. .commentList {
  6132. display: flex;
  6133. flex-direction: row;
  6134. flex-wrap: nowrap;
  6135. align-items: center;
  6136. justify-content: center;
  6137. align-content: center;
  6138. margin-left: 15px;
  6139. }
  6140. .studentDetail {
  6141. display: flex;
  6142. flex-direction: row;
  6143. flex-wrap: nowrap;
  6144. /* align-items: center; */
  6145. align-items: flex-start;
  6146. }
  6147. .tx {
  6148. width: 50px;
  6149. }
  6150. .tx>img {
  6151. width: 100%;
  6152. height: 100%;
  6153. }
  6154. .nameAndTime {
  6155. display: flex;
  6156. flex-direction: column;
  6157. flex-wrap: nowrap;
  6158. align-items: flex-start;
  6159. margin-left: 10px;
  6160. }
  6161. .worksAnswer {
  6162. color: #4078dd;
  6163. margin: 10px 0;
  6164. font-size: 16px;
  6165. }
  6166. .worksAnswer>img {
  6167. width: 100%;
  6168. height: 100%;
  6169. }
  6170. .commentTop {
  6171. border-bottom: 1px solid #eaeaea;
  6172. padding-bottom: 10px;
  6173. }
  6174. .commentBox {
  6175. padding-top: 15px;
  6176. }
  6177. .pl {
  6178. font-size: 18px;
  6179. }
  6180. .plName {
  6181. display: flex;
  6182. flex-direction: row;
  6183. flex-wrap: nowrap;
  6184. align-items: baseline;
  6185. color: #78787a;
  6186. }
  6187. .evalCss {
  6188. background: #fff;
  6189. font-size: 18px;
  6190. }
  6191. .nav {
  6192. color: #9d9d9d;
  6193. padding: 5px 0 15px 20px;
  6194. }
  6195. .middleBox {
  6196. padding: 5px 0 15px 20px;
  6197. }
  6198. .pfBox {
  6199. padding-bottom: 30px;
  6200. }
  6201. .nameAndrate {
  6202. display: flex;
  6203. flex-direction: row;
  6204. flex-wrap: nowrap;
  6205. align-items: center;
  6206. padding-bottom: 10px;
  6207. }
  6208. .nameAndrate>div {
  6209. margin-left: 10px;
  6210. color: #000;
  6211. }
  6212. .pfBox>div:nth-child(2) {
  6213. background: #f7f6f9;
  6214. width: 400px;
  6215. min-height: 45px;
  6216. border-radius: 10px;
  6217. font-size: 16px;
  6218. display: flex;
  6219. flex-wrap: wrap;
  6220. align-items: center;
  6221. padding: 10px 20px;
  6222. box-sizing: border-box;
  6223. color: #000;
  6224. }
  6225. .bz {
  6226. display: flex;
  6227. flex-direction: row;
  6228. flex-wrap: nowrap;
  6229. align-items: flex-start;
  6230. }
  6231. .bz>div {
  6232. padding: 0 10px;
  6233. }
  6234. .select_box2_title {
  6235. background: #fff;
  6236. border-radius: 5px;
  6237. padding: 15px 10px;
  6238. box-sizing: border-box;
  6239. margin-bottom: 10px;
  6240. display: flex;
  6241. flex-direction: row;
  6242. flex-wrap: nowrap;
  6243. align-items: center;
  6244. }
  6245. .select_box2_title>div:nth-child(2) {
  6246. margin-left: 10px;
  6247. color: #c4c4c4;
  6248. }
  6249. .select_box2_box {
  6250. display: flex;
  6251. height: 500px;
  6252. }
  6253. .select_box2_img {
  6254. width: calc(100% - 310px);
  6255. height: 100%;
  6256. overflow: auto;
  6257. background: #fff;
  6258. border-radius: 5px;
  6259. }
  6260. .select_box2_img img {
  6261. width: 100%;
  6262. }
  6263. .select_box2_answer {
  6264. background: #fff;
  6265. margin-left: 10px;
  6266. border-radius: 5px;
  6267. width: 300px;
  6268. overflow: auto;
  6269. height: 90%;
  6270. display: flex;
  6271. flex-direction: column;
  6272. align-items: flex-start;
  6273. padding-top: 10px;
  6274. box-sizing: border-box;
  6275. position: relative;
  6276. }
  6277. .select_answer_title {
  6278. padding: 0 0 15px 20px;
  6279. color: #c4c4c4;
  6280. }
  6281. .select_box2_answer_box {
  6282. margin: 0 0 10px 20px;
  6283. width: 85%;
  6284. display: flex;
  6285. flex-direction: row;
  6286. flex-wrap: nowrap;
  6287. align-items: center;
  6288. }
  6289. .upAnswerCss {
  6290. position: absolute;
  6291. bottom: 15px;
  6292. right: 15px;
  6293. }
  6294. .upAnswerCss>>>.el-button {
  6295. width: 95px;
  6296. height: 35px;
  6297. line-height: 35px;
  6298. padding: 0;
  6299. }
  6300. .rightWidthCss {
  6301. width: 60%;
  6302. display: flex;
  6303. flex-direction: row;
  6304. align-items: flex-start;
  6305. }
  6306. .rightAnswer {
  6307. display: flex;
  6308. flex-direction: row;
  6309. flex-wrap: nowrap;
  6310. align-items: center;
  6311. color: red;
  6312. margin-bottom: 31px;
  6313. }
  6314. .rightAnswerCss {
  6315. display: flex;
  6316. flex-direction: column;
  6317. flex-wrap: nowrap;
  6318. padding-top: 60px;
  6319. }
  6320. .blueCss {
  6321. color: #767de1;
  6322. margin-left: 10px;
  6323. }
  6324. .redCss {
  6325. color: red;
  6326. }
  6327. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  6328. color: rgb(0 123 255) !important;
  6329. }
  6330. .zuoyeYulan {
  6331. padding-top: 15px;
  6332. font-size: 18px;
  6333. display: flex;
  6334. align-items: flex-end;
  6335. }
  6336. .buttonA {
  6337. margin-left: 10px;
  6338. padding: 0;
  6339. }
  6340. .displayBox {
  6341. margin-bottom: 10px;
  6342. display: block;
  6343. border-bottom: 3px solid #eee;
  6344. display: flex;
  6345. align-items: center;
  6346. }
  6347. .easy_comment {
  6348. width: calc(100% - 90px);
  6349. margin-left: 10px;
  6350. display: flex;
  6351. flex-wrap: wrap;
  6352. }
  6353. .easy_comment>div {
  6354. border: 1px solid #4a4a4a;
  6355. color: #666;
  6356. border-radius: 15px;
  6357. padding: 5px 10px;
  6358. font-size: 16px;
  6359. margin-bottom: 10px;
  6360. margin-right: 5px;
  6361. cursor: pointer;
  6362. }
  6363. .easy_comment div:hover {
  6364. border: 1px solid #f7ba2a;
  6365. color: #c69217;
  6366. }
  6367. .xuan_right_box {
  6368. padding: 10px;
  6369. background: rgb(247, 247, 247);
  6370. margin: 10px 12px;
  6371. border-radius: 5px;
  6372. }
  6373. .tool_right_box {
  6374. display: flex;
  6375. align-items: center;
  6376. }
  6377. .tool_right_box+.tool_right_box {
  6378. margin-top: 10px;
  6379. }
  6380. .right_box_xuan {
  6381. background: rgb(0 123 255);
  6382. color: #fff;
  6383. border-radius: 5px;
  6384. padding: 5px;
  6385. margin-left: 10px;
  6386. }
  6387. </style>