study.vue 206 KB

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