studyStudent.vue 201 KB

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