studyStudent.vue 224 KB

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