studyStudent.vue 287 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  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. class="new_top"
  69. style="
  70. position: fixed;
  71. top: 0;
  72. left: 20.7%;
  73. width: 80%;
  74. z-index: 999;
  75. box-shadow: 0px 9px 0 0 #f2f2f2;
  76. "
  77. >
  78. <div class="courseIndex">
  79. <div>第{{ courseType - 0 + 1 }}阶段</div>
  80. <el-tooltip
  81. effect="light"
  82. :content="chapInfoList[courseType].dyName"
  83. placement="top"
  84. >
  85. <div>{{ chapInfoList[courseType].dyName }}</div>
  86. </el-tooltip>
  87. <div>任务{{ taskCount + 1 }}</div>
  88. </div>
  89. <div class="btnAll">
  90. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  91. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  92. <div class="returnBtn" @click="allScrell">全屏</div>
  93. <div
  94. class="returnBtn"
  95. @click="juriVisible = true"
  96. v-if="tType == 1"
  97. >
  98. 权限
  99. </div>
  100. <div
  101. class="returnBtn"
  102. style="background: #225bc7"
  103. @click.stop="
  104. goTo(
  105. '/courseDetail?userid=' +
  106. userid +
  107. '&oid=' +
  108. oid +
  109. '&org=' +
  110. org +
  111. '&cid=' +
  112. classId +
  113. '&courseId=' +
  114. id +
  115. '&tType=' +
  116. tType +
  117. '&screenType=' +
  118. screenType
  119. )
  120. "
  121. >
  122. 返回
  123. </div>
  124. </div>
  125. </div>
  126. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  127. .taskJson"
  128. :key="index"-->
  129. <div
  130. class="isNoMessage"
  131. v-if="
  132. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  133. .chapterData.length == 0 &&
  134. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  135. .toolChoose[0].tool.length == 0 &&
  136. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  137. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  138. .taskDetail == '' &&
  139. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  140. "
  141. >
  142. <img src="../assets/icon/isNoMessage.png" alt />
  143. </div>
  144. <div class="study_top" :class="{ pzClass: pzDialog }">
  145. <div
  146. class="vedioBox"
  147. v-if="
  148. vedio[taskCount].length > 0 ||
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .taskDetail != '' ||
  151. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  152. .chapterData.length > 0
  153. "
  154. >
  155. <div class="checkbox">
  156. <div
  157. class="check"
  158. style="font-size: 25px"
  159. :id="
  160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  161. "
  162. >
  163. <!-- {{ taskCount + 1 }}
  164. {{ chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task }}-->
  165. 学一学
  166. </div>
  167. </div>
  168. <div
  169. class="student_head"
  170. v-if="
  171. vedio[taskCount].length > 0 ||
  172. textList[taskCount].length > 0 ||
  173. file[taskCount].length > 0 ||
  174. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  175. .taskDetail != ''
  176. "
  177. >
  178. <div class="taskBox">
  179. <div
  180. style="
  181. display: flex;
  182. flex-wrap: nowrap;
  183. flex-direction: column;
  184. position: relative;
  185. "
  186. >
  187. <div
  188. style="padding: 15px 0 15px 20px"
  189. v-if="
  190. chapInfoList[courseType].chapterInfo[0].taskJson[
  191. taskCount
  192. ].taskDetail != ''
  193. "
  194. v-html="
  195. chapInfoList[courseType].chapterInfo[0].taskJson[
  196. taskCount
  197. ].taskDetail
  198. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  199. taskCount
  200. ].taskDetail
  201. : '暂无描述'
  202. "
  203. >
  204. <!-- <span style="color: #cbcbcb">任务描述</span> -->
  205. <!-- {{
  206. chapInfoList[courseType].chapterInfo[0].taskJson[
  207. taskCount
  208. ].taskDetail
  209. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  210. taskCount
  211. ].taskDetail
  212. : "暂无描述"
  213. }}-->
  214. </div>
  215. </div>
  216. </div>
  217. <div class="vedioTaskBox">
  218. <div
  219. class="box_course"
  220. v-if="
  221. vedio[taskCount].length > 0 ||
  222. textList[taskCount].length > 0 ||
  223. lineList[taskCount].length > 0 ||
  224. file[taskCount].length > 0
  225. "
  226. >
  227. <div
  228. class="wheel"
  229. v-if="
  230. vedio.length &&
  231. vedio[taskCount] &&
  232. vedio[taskCount].length > 0 &&
  233. showType == 0
  234. "
  235. >
  236. <div class="workd_media" style="height: 100%">
  237. <video-player
  238. class="video-player vjs-custom-skin"
  239. :playsinline="true"
  240. :options="playerO[taskCount]"
  241. @play="onPlayerPlay($event)"
  242. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  243. ></video-player>
  244. </div>
  245. </div>
  246. <div
  247. class="wheel"
  248. v-if="showType == 1"
  249. style="
  250. box-shadow: 0 0 6px 1px #f2f2f2;
  251. width: 95%;
  252. margin: 0 auto;
  253. background: #f1f1f1;
  254. "
  255. >
  256. <div class="title">查看文档</div>
  257. <el-form class="textBox">
  258. <el-form-item class="textTitle">
  259. <div
  260. style="
  261. font-size: 22px;
  262. max-height: 100px;
  263. overflow: auto;
  264. "
  265. >
  266. {{ text.name }}
  267. </div>
  268. </el-form-item>
  269. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  270. <div v-html="text.url" class="textContent"></div>
  271. </el-form>
  272. </div>
  273. <div
  274. class="wheel"
  275. v-if="showType == 2"
  276. style="height: 650px; width: 95%; margin: 0 auto"
  277. >
  278. <iframe
  279. style="width: 100%; height: 100%; border: none"
  280. :src="pptImgUrl1"
  281. ></iframe>
  282. </div>
  283. <div
  284. class="wheel"
  285. v-if="showType == 3"
  286. style="height: 650px; width: 95%; margin: 0 auto"
  287. >
  288. <!-- <iframe
  289. style="width: 100%; height: 100%; border: none"
  290. :src="pptImgUrl1"
  291. ></iframe>-->
  292. <pdf
  293. :pdfUrl="pptImgUrl1"
  294. style="width: 100%; height: 100%; overflow: auto"
  295. ></pdf>
  296. </div>
  297. <div
  298. class="wheel"
  299. v-if="showType == 4"
  300. style="height: 650px; width: 95%; margin: 0 auto"
  301. >
  302. <el-image
  303. :src="pptImgUrl1"
  304. fit="cover"
  305. style="width: 100%"
  306. ></el-image>
  307. </div>
  308. </div>
  309. <!-- :class="
  310. vedio[taskCount].length == 0 && file[taskCount].length == 0
  311. ? 'listNoVedio'
  312. : ''
  313. "-->
  314. <!-- :class="
  315. vedio[taskCount].length == 0 &&
  316. file[taskCount].length == 0 &&
  317. textList[taskCount].length == 0
  318. ? 'listNoVedio'
  319. : ''
  320. " -->
  321. <div
  322. class="vedioList"
  323. v-if="
  324. (vedio.length &&
  325. vedio[taskCount] &&
  326. vedio[taskCount].length > 0) ||
  327. (textList.length &&
  328. textList[taskCount] &&
  329. textList[taskCount].length > 0) ||
  330. (lineList.length &&
  331. lineList[taskCount] &&
  332. lineList[taskCount].length > 0) ||
  333. (file.length &&
  334. file[taskCount] &&
  335. file[taskCount].length > 0)
  336. "
  337. >
  338. <div class="navTitile">内容列表:</div>
  339. <div class="navBox">
  340. <div
  341. v-show="
  342. vedio.length &&
  343. vedio[taskCount] &&
  344. vedio[taskCount].length > 0
  345. "
  346. >
  347. <!-- <div
  348. class="vedioNav"
  349. style="
  350. width: 80px;
  351. min-width: 80px;
  352. height: 30px;
  353. line-height: 36px;
  354. font-size: 16px;
  355. border-radius: 10px;
  356. "
  357. >
  358. 视频
  359. </div> -->
  360. <div
  361. class="vedioTimeBox"
  362. v-for="(media, vedioIndex) in vedio[taskCount]"
  363. :key="vedioIndex + '1'"
  364. @click="lookVedio(media.url, vedioIndex)"
  365. >
  366. <!-- <div class="media" style="width: 90px; height: 60px; position: relative">
  367. <img style="height: 90px; width: 160px" :src="
  368. media.cover != null && media.cover != ''
  369. ? JSON.parse(media.cover).length > 0
  370. ? JSON.parse(media.cover)[0].url
  371. : mr
  372. : mr
  373. " alt />
  374. </div> -->
  375. <!-- <div class="vedioTime">
  376. {{ vedioTime[vedioIndex] }}
  377. </div> -->
  378. <!-- <div class="vedioName">{{ media.name }}</div> -->
  379. <div
  380. class="vedioName"
  381. :class="
  382. isClickNav == 'video' + vedioIndex
  383. ? 'isClickNav'
  384. : ''
  385. "
  386. >
  387. {{ media.name }}
  388. </div>
  389. </div>
  390. </div>
  391. <div
  392. v-show="
  393. textList.length &&
  394. textList[taskCount] &&
  395. textList[taskCount].length > 0
  396. "
  397. class="newNav"
  398. v-for="(text, textIndex) in textList[taskCount]"
  399. :key="textIndex + '2'"
  400. @click="lookText(taskCount, textIndex)"
  401. >
  402. <!-- <div
  403. class="vedioNav"
  404. style="
  405. width: 80px;
  406. min-width: 80px;
  407. height: 30px;
  408. line-height: 36px;
  409. font-size: 16px;
  410. border-radius: 10px;
  411. "
  412. >
  413. 文档
  414. </div> -->
  415. <div style="width: calc(100% - 0px)">
  416. <div
  417. class="navText"
  418. :class="
  419. isClickNav == 'text' + textIndex ? 'isClickNav' : ''
  420. "
  421. >
  422. {{
  423. textList[taskCount].length > 0 ? text.name : ""
  424. }}.doc
  425. </div>
  426. </div>
  427. </div>
  428. <!-- <div
  429. v-show="
  430. chapInfoList.length &&
  431. chapToolList[taskCount] &&
  432. chapToolList[taskCount].length > 0
  433. "
  434. class="newNav"
  435. v-for="(tools, toolsIndex) in chapToolList[taskCount]"
  436. :key="toolsIndex + '3'"
  437. >
  438. <div class="vedioNav">工具</div>
  439. <div>
  440. <div
  441. class="navText"
  442. @click="lookTools(taskCount, toolsIndex)"
  443. >
  444. {{
  445. chapToolList[taskCount].length > 0 ? tools.name : ""
  446. }}
  447. </div>
  448. </div>
  449. </div>-->
  450. <div
  451. v-show="
  452. lineList.length &&
  453. lineList[taskCount] &&
  454. lineList[taskCount].length > 0
  455. "
  456. class="newNav"
  457. v-for="(lines, lineIndex) in lineList[taskCount]"
  458. :key="lineIndex + '4'"
  459. @click="doUrl(lines.url, lineIndex)"
  460. >
  461. <!-- <div
  462. class="vedioNav"
  463. style="
  464. width: 80px;
  465. min-width: 80px;
  466. height: 30px;
  467. line-height: 36px;
  468. font-size: 16px;
  469. border-radius: 10px;
  470. "
  471. >
  472. 链接
  473. </div> -->
  474. <!-- <div style="width: calc(100% - 0px)">
  475. <div
  476. class="navText"
  477. :class="isClickNav == lineIndex ? 'isClickNav' : ''"
  478. >
  479. <a
  480. style="text-decoration: none; color: #000"
  481. target="_Blank"
  482. >{{ lines.url }}</a
  483. >
  484. </div>
  485. </div> -->
  486. <div style="width: calc(100% - 0px)">
  487. <div
  488. class="navText"
  489. :class="
  490. isClickNav == 'line' + lineIndex ? 'isClickNav' : ''
  491. "
  492. >
  493. {{ lines.url }}
  494. </div>
  495. </div>
  496. </div>
  497. <div
  498. class="newNav"
  499. v-show="
  500. file.length &&
  501. file[taskCount] &&
  502. file[taskCount].length > 0
  503. "
  504. v-for="(f, fileIndex) in file[taskCount]"
  505. :key="fileIndex"
  506. @click="downFile(f, fileIndex)"
  507. >
  508. <!-- <div
  509. class="vedioNav"
  510. style="
  511. width: 80px;
  512. min-width: 80px;
  513. height: 30px;
  514. line-height: 36px;
  515. font-size: 16px;
  516. border-radius: 10px;
  517. "
  518. >
  519. 文档
  520. </div> -->
  521. <div style="width: calc(100% - 0px)">
  522. <div
  523. class="navText"
  524. :class="
  525. isClickNav == 'word' + fileIndex ? 'isClickNav' : ''
  526. "
  527. >
  528. {{ f.name }}
  529. </div>
  530. </div>
  531. </div>
  532. </div>
  533. </div>
  534. </div>
  535. <div
  536. style="padding: 10px 30px 0"
  537. v-if="showType == 2 || showType == 3"
  538. >
  539. <el-button
  540. type="primary"
  541. @click="checkFileFull(showType, pptImgUrl1)"
  542. >全屏查看</el-button
  543. >
  544. <el-button
  545. v-if="isClickNav.indexOf('line') != -1"
  546. type="primary"
  547. @click="openLine(pptImgUrl1)"
  548. >打开链接
  549. </el-button>
  550. </div>
  551. <div style="padding: 0px 30px" v-if="showType == 1">
  552. <el-button type="primary" @click="checkFileFull(showType, text)"
  553. >全屏查看</el-button
  554. >
  555. </div>
  556. </div>
  557. </div>
  558. <div class="student_body" v-resize="resize">
  559. <!-- <div
  560. class="vedioBox"
  561. v-if="
  562. file.length && file[taskCount] && file[taskCount].length > 0
  563. "
  564. >
  565. <div class="queTop">
  566. <div class="question" style="width: 30px; margin-top: 5px">
  567. <img src="../assets/icon/fileIcon.png" alt />
  568. </div>
  569. <div class="queTitle">
  570. <div>附件</div>
  571. </div>
  572. </div>
  573. <div class="filebox" style="width: 100%">
  574. <div
  575. class="file"
  576. v-for="(f, fileIndex) in file[taskCount]"
  577. :key="fileIndex"
  578. @click="downFile(f, fileIndex)"
  579. >
  580. <img :src="require('../assets/file.png')" alt />
  581. <div>{{ f.name }}</div>
  582. </div>
  583. </div>
  584. <div class="upFile" v-if="type == 3">提交</div>
  585. </div>-->
  586. <div
  587. class="vedioBox"
  588. v-if="
  589. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  590. .toolChoose[0].tool &&
  591. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  592. .toolChoose[0].tool.length &&
  593. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  594. .toolChoose[0].tool.length > 0
  595. "
  596. >
  597. <div
  598. class="queTop"
  599. style="
  600. font-size: 25px;
  601. padding: 15px 0 15px 30px;
  602. font-weight: bold;
  603. "
  604. >
  605. <!-- <div class="question" style="width: 30px">
  606. <img src="../assets/icon/toolIcon.png" alt />
  607. </div>
  608. <div class="queTitle">
  609. <div>工具</div>
  610. </div>-->
  611. 练一练
  612. </div>
  613. <div class="toolHeng2" style="position: relative">
  614. <div
  615. class="filebox"
  616. style="flex-wrap: nowrap; margin: 0 20px"
  617. v-for="(tool, toolIndex) in chapInfoList[courseType]
  618. .chapterInfo[0].taskJson[taskCount].toolChoose"
  619. :key="toolIndex"
  620. >
  621. <div class="bzBox">
  622. <div></div>
  623. <div>步骤{{ toolIndex + 1 }}</div>
  624. </div>
  625. <div class="toolBox">
  626. <div>
  627. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  628. :key="indexTool"-->
  629. <!-- <div class="iframeBox">
  630. <div
  631. class="addPoint isBorder"
  632. v-for="(tooC, toolCIndex) in tool.tool"
  633. :key="toolCIndex"
  634. >
  635. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  636. <div
  637. class="iframeName"
  638. >
  639. 电子白板
  640. </div>
  641. <iframe
  642. src="https://iwb.cocorobo.cn/"
  643. ref="whiteBoard"
  644. ></iframe>
  645. </div>
  646. </div>
  647. </div>-->
  648. <div class="noiframeBox">
  649. <div
  650. class="addPoint"
  651. v-for="(tooC, toolCIndex) in tool.tool"
  652. :key="toolCIndex"
  653. >
  654. <div v-if="tooC == 1">
  655. <img
  656. src="../assets/icon/secondToolList/whiteBoard.png"
  657. alt
  658. @click="addTools(tooC, toolIndex, taskCount)"
  659. />
  660. <div style="margin: 5px 0">电子白板</div>
  661. </div>
  662. <div v-if="tooC == 3">
  663. <img
  664. src="../assets/icon/secondToolList/mindMapping.png"
  665. alt
  666. @click="addTools(tooC, toolIndex, taskCount)"
  667. />
  668. <div style="margin: 5px 0">思维导图</div>
  669. </div>
  670. <div v-if="tooC == 6">
  671. <img
  672. src="../assets/icon/secondToolList/doc.png"
  673. alt
  674. @click="addTools(tooC, toolIndex, taskCount)"
  675. />
  676. <div style="margin: 5px 0">协同文档</div>
  677. </div>
  678. <div v-if="tooC == 7">
  679. <img
  680. src="../assets/icon/secondToolList/mindNetwork.png"
  681. alt
  682. @click="addTools(tooC, toolIndex, taskCount)"
  683. />
  684. <div style="margin: 5px 0">思维网格</div>
  685. </div>
  686. <div v-if="tooC == 8">
  687. <img
  688. src="../assets/icon/secondToolList/library.png"
  689. alt
  690. @click="addTools(tooC, toolIndex, taskCount)"
  691. />
  692. <div style="margin: 5px 0">素材库</div>
  693. </div>
  694. <div v-if="tooC == 17">
  695. <img
  696. src="../assets/icon/secondToolList/library.png"
  697. alt
  698. @click="addTools(tooC, toolIndex, taskCount)"
  699. />
  700. <div style="margin: 5px 0">学习资料</div>
  701. </div>
  702. <div v-if="tooC == 2">
  703. <img
  704. @click="addTools(tooC, toolIndex, taskCount)"
  705. src="../assets/icon/secondToolList/note.png"
  706. alt
  707. />
  708. <div style="margin: 5px 0">便签</div>
  709. </div>
  710. <div v-if="tooC == 4">
  711. <img
  712. @click="addTools(tooC, toolIndex, taskCount)"
  713. src="../assets/icon/thirdToolList/ask.png"
  714. alt
  715. />
  716. <div style="margin: 5px 0">选择题</div>
  717. </div>
  718. <div v-if="tooC == 45">
  719. <img
  720. @click="addTools(tooC, toolIndex, taskCount)"
  721. src="../assets/icon/thirdToolList/choose.png"
  722. alt
  723. />
  724. <div style="margin: 5px 0">选择题</div>
  725. </div>
  726. <!-- <div v-if="tooC == 5">
  727. <img
  728. @click="addTools(tooC, toolIndex, taskCount)"
  729. src="../assets/icon/thirdToolList/score.png"
  730. alt
  731. />
  732. <div style="margin: 5px 0">量规评分</div>
  733. </div> -->
  734. <div v-if="tooC == 10">
  735. <img
  736. @click="addTools(tooC, toolIndex, taskCount)"
  737. src="../assets/icon/thirdToolList/time.png"
  738. alt
  739. />
  740. <div style="margin: 5px 0">倒计时</div>
  741. </div>
  742. <div v-if="tooC == 15">
  743. <img
  744. @click="addTools(tooC, toolIndex, taskCount)"
  745. src="../assets/icon/thirdToolList/answer.png"
  746. alt
  747. />
  748. <div style="margin: 5px 0">问答工具</div>
  749. </div>
  750. <div v-if="tooC == 26">
  751. <img
  752. @click="addTools(tooC, toolIndex, taskCount)"
  753. src="../assets/icon/thirdToolList/courseDesign.png"
  754. alt
  755. />
  756. <div style="margin: 5px 0">课程设计</div>
  757. </div>
  758. <div v-if="tooC == 18">
  759. <img
  760. @click="addTools(tooC, toolIndex, taskCount)"
  761. src="../assets/icon/thirdToolList/trainPlatform.png"
  762. alt
  763. />
  764. <div style="margin: 5px 0">训练服务器</div>
  765. </div>
  766. <div v-if="tooC == 16">
  767. <img
  768. @click="addTools(tooC, toolIndex, taskCount)"
  769. src="../assets/icon/thirdToolList/work.png"
  770. alt
  771. />
  772. <div style="margin: 5px 0">作业提交</div>
  773. </div>
  774. <div v-if="tooC == 21">
  775. <img
  776. @click="addTools(tooC, toolIndex, taskCount)"
  777. src="../assets/icon/fourthToolList/program.png"
  778. alt
  779. />
  780. <div style="margin: 5px 0">编程平台</div>
  781. </div>
  782. <div v-if="tooC == 22">
  783. <img
  784. @click="addTools(tooC, toolIndex, taskCount)"
  785. src="../assets/icon/fourthToolList/program.png"
  786. alt
  787. />
  788. <div style="margin: 5px 0">AI体验</div>
  789. </div>
  790. <div v-if="tooC == 23">
  791. <img
  792. @click="addTools(tooC, toolIndex, taskCount)"
  793. src="../assets/icon/fourthToolList/program.png"
  794. alt
  795. />
  796. <div style="margin: 5px 0">Python</div>
  797. </div>
  798. <div v-if="tooC == 24">
  799. <img
  800. @click="addTools(tooC, toolIndex, taskCount)"
  801. src="../assets/icon/fourthToolList/AIprogram.png"
  802. alt
  803. />
  804. <div style="margin: 5px 0">AI平台</div>
  805. </div>
  806. <div v-if="tooC == 25">
  807. <img
  808. @click="addTools(tooC, toolIndex, taskCount)"
  809. src="../assets/icon/thirdToolList/evalua.png"
  810. alt
  811. />
  812. <div style="margin: 5px 0">目标管理</div>
  813. </div>
  814. <div v-if="tooC == 31">
  815. <img
  816. @click="addTools(tooC, toolIndex, taskCount)"
  817. src="../assets/icon/secondToolList/networkPanel.png"
  818. alt
  819. />
  820. <div style="margin: 5px 0">数学画板</div>
  821. </div>
  822. <div v-if="tooC == 28">
  823. <img
  824. @click="addTools(tooC, toolIndex, taskCount)"
  825. src="../assets/icon/secondToolList/translation.png"
  826. alt
  827. />
  828. <div style="margin: 5px 0">翻译</div>
  829. </div>
  830. <div v-if="tooC == 37">
  831. <img
  832. @click="addTools(tooC, toolIndex, taskCount)"
  833. src="../assets/icon/secondToolList/mohe.png"
  834. alt
  835. />
  836. <div style="margin: 5px 0">魔盒识字</div>
  837. </div>
  838. <div v-if="tooC == 38">
  839. <img
  840. @click="addTools(tooC, toolIndex, taskCount)"
  841. src="../assets/icon/secondToolList/24game.png"
  842. alt
  843. />
  844. <div style="margin: 5px 0">24点</div>
  845. </div>
  846. <div v-if="tooC == 39">
  847. <img
  848. @click="addTools(tooC, toolIndex, taskCount)"
  849. src="../assets/icon/secondToolList/GeoGebra.png"
  850. alt
  851. />
  852. <div style="margin: 5px 0">GeoGebra</div>
  853. </div>
  854. <div v-if="tooC == 32">
  855. <img
  856. @click="addTools(tooC, toolIndex, taskCount)"
  857. src="../assets/icon/thirdToolList/code.png"
  858. alt
  859. />
  860. <div style="margin: 5px 0">源码编辑</div>
  861. </div>
  862. <div v-if="tooC == 40">
  863. <img
  864. @click="addTools(tooC, toolIndex, taskCount)"
  865. src="../assets/icon/secondToolList/eval.png"
  866. alt
  867. />
  868. <div style="margin: 5px 0">学生评价</div>
  869. </div>
  870. <div v-if="tooC == 41">
  871. <img
  872. @click="addTools(tooC, toolIndex, taskCount)"
  873. src="../assets/icon/thirdToolList/select.png"
  874. alt
  875. />
  876. <div style="margin: 5px 0">选择填空</div>
  877. </div>
  878. <div v-if="tooC == 44">
  879. <img
  880. @click="addTools(tooC, toolIndex, taskCount)"
  881. src="../assets/icon/thirdToolList/hanClass.png"
  882. alt
  883. />
  884. <div style="margin: 5px 0">汉字宫</div>
  885. </div>
  886. </div>
  887. </div>
  888. </div>
  889. <div class="tooldetail" v-if="tool.toolDetail != ''">
  890. <!-- <div class="toolTitle">工具描述</div> -->
  891. <div v-html="contentConvent(tool.toolDetail)">
  892. <!-- {{ contentConvent(tool.toolDetail) }} -->
  893. </div>
  894. </div>
  895. </div>
  896. <div
  897. v-if="tType && tType == 2 && tool.tool.indexOf(16) != -1"
  898. class="worksBox"
  899. >
  900. <div
  901. class="zuoyeYulan"
  902. v-if="workStudent[toolIndex].length > 0"
  903. >
  904. <span>作业预览</span>
  905. <el-button
  906. type="text"
  907. @click="jump()"
  908. v-if="tType == 2"
  909. class="buttonA"
  910. >我的评价</el-button
  911. >
  912. </div>
  913. <div
  914. class="worksDetailBox"
  915. v-if="workStudent[toolIndex].length > 0"
  916. >
  917. <div
  918. class="works"
  919. style="
  920. width: 200px;
  921. height: 140px;
  922. margin: 10px 10px 10px 0;
  923. box-shadow: 0 0 6px 1px #dfdada;
  924. "
  925. v-for="(w, wIndex) in workStudent[toolIndex]"
  926. :key="wIndex"
  927. >
  928. <div class="workImg" v-if="w.type == 0">
  929. <img
  930. :src="w.works"
  931. @click="previewImg(w.works)"
  932. alt
  933. />
  934. <div
  935. class="answerScore"
  936. v-if="w.score"
  937. @click.stop="openScore(w)"
  938. >
  939. {{ JSON.parse(w.score).wScore }}分
  940. </div>
  941. <div
  942. class="answerScore"
  943. @click.stop="openScore(w)"
  944. v-else-if="courseDetail.userid == userid"
  945. >
  946. 评分
  947. </div>
  948. </div>
  949. <div class="workImg" v-if="w.type == 1">
  950. <img :src="word" @click="openFile(w.works)" alt />
  951. <div
  952. class="answerScore"
  953. v-if="w.score"
  954. @click.stop="openScore(w)"
  955. >
  956. {{ JSON.parse(w.score).wScore }}分
  957. </div>
  958. <div
  959. class="answerScore"
  960. @click.stop="openScore(w)"
  961. v-else-if="courseDetail.userid == userid"
  962. >
  963. 评分
  964. </div>
  965. </div>
  966. <div class="workImg" v-if="w.type == 3">
  967. <img
  968. style="cursor: pointer"
  969. :src="video"
  970. @click="openVideo(w.works)"
  971. alt
  972. />
  973. <div
  974. class="answerScore"
  975. v-if="w.score"
  976. @click.stop="openScore(w)"
  977. >
  978. {{ JSON.parse(w.score).wScore }}分
  979. </div>
  980. <div
  981. class="answerScore"
  982. @click.stop="openScore(w)"
  983. v-else-if="courseDetail.userid == userid"
  984. >
  985. 评分
  986. </div>
  987. </div>
  988. <div class="worksName">
  989. <div>{{ w.sName }}</div>
  990. </div>
  991. </div>
  992. </div>
  993. </div>
  994. <div
  995. v-if="tType && tType == 2 && tool.tool.indexOf(4) != -1"
  996. class="worksBox"
  997. >
  998. <div
  999. class="zuoyeYulan"
  1000. v-if="workStudent[toolIndex].length > 0"
  1001. >
  1002. <span>作业预览</span>
  1003. <el-button
  1004. type="text"
  1005. @click="jump()"
  1006. v-if="tType == 2"
  1007. class="buttonA"
  1008. >我的评价</el-button
  1009. >
  1010. </div>
  1011. <div
  1012. class="worksDetailBox"
  1013. v-if="workStudent[toolIndex].length > 0"
  1014. >
  1015. <div
  1016. class="isWorksName"
  1017. v-for="(w, wIndex) in workStudent[toolIndex]"
  1018. :key="wIndex"
  1019. @click="
  1020. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1021. "
  1022. >
  1023. {{ w.sName }}
  1024. </div>
  1025. <!-- <div
  1026. class="works"
  1027. style="
  1028. width: 200px;
  1029. height: 140px;
  1030. border-radius: 10px;
  1031. box-shadow: 0 0 6px 1px #dfdada;
  1032. overflow: hidden;
  1033. "
  1034. v-for="(w, wIndex) in workStudent[toolIndex]"
  1035. :key="wIndex"
  1036. >
  1037. <div class="workImg">
  1038. <img
  1039. src="../assets/icon/works/noImg.png"
  1040. @click="
  1041. openTools(
  1042. 4,
  1043. toolIndex,
  1044. taskCount,
  1045. w.works,
  1046. w.sName
  1047. )
  1048. "
  1049. alt
  1050. />
  1051. </div>
  1052. <div class="worksName">
  1053. <div>{{ w.sName }}</div>
  1054. <div>{{ w.time }}</div>
  1055. </div>
  1056. </div> -->
  1057. </div>
  1058. </div>
  1059. <div
  1060. v-if="tType && tType == 2 && tool.tool.indexOf(45) != -1"
  1061. class="worksBox"
  1062. >
  1063. <div
  1064. class="zuoyeYulan"
  1065. v-if="workStudent[toolIndex].length > 0"
  1066. >
  1067. <span>作业预览</span>
  1068. <el-button
  1069. type="text"
  1070. @click="jump()"
  1071. v-if="tType == 2"
  1072. class="buttonA"
  1073. >我的评价</el-button
  1074. >
  1075. </div>
  1076. <div
  1077. class="worksDetailBox"
  1078. v-if="workStudent[toolIndex].length > 0"
  1079. >
  1080. <div
  1081. class="isWorksName"
  1082. v-for="(w, wIndex) in workStudent[toolIndex]"
  1083. :key="wIndex"
  1084. @click="
  1085. openTools(45, toolIndex, taskCount, w.works, w.sName)
  1086. "
  1087. >
  1088. {{ w.sName }}
  1089. </div>
  1090. </div>
  1091. </div>
  1092. <div
  1093. v-if="tType && tType == 2 && tool.tool.indexOf(15) != -1"
  1094. class="worksBox"
  1095. >
  1096. <div
  1097. class="zuoyeYulan"
  1098. v-if="workStudent[toolIndex].length > 0"
  1099. >
  1100. <span>作业预览</span>
  1101. <el-button
  1102. type="text"
  1103. @click="jump()"
  1104. v-if="tType == 2"
  1105. class="buttonA"
  1106. >我的评价</el-button
  1107. >
  1108. </div>
  1109. <div
  1110. class="worksDetailBox"
  1111. v-if="workStudent[toolIndex].length > 0"
  1112. >
  1113. <div
  1114. class="works"
  1115. v-for="(w, wIndex) in workStudent[toolIndex]"
  1116. :key="wIndex"
  1117. >
  1118. <div class="workImg">
  1119. <!-- <img
  1120. src="../assets/icon/works/noImg.png"
  1121. @click="openTools(15, toolIndex, taskCount, w.works)"
  1122. alt=""
  1123. />-->
  1124. <div class="answerBg">
  1125. <div>{{ w.sName }}</div>
  1126. <el-tooltip
  1127. class="item"
  1128. effect="light"
  1129. :content="JSON.parse(w.works)[0].answer"
  1130. placement="top"
  1131. >
  1132. <div class="answerContent">
  1133. {{ JSON.parse(w.works)[0].answer }}
  1134. </div>
  1135. </el-tooltip>
  1136. <div
  1137. class="answerScore"
  1138. v-if="w.score"
  1139. @click.stop="openScore(w)"
  1140. >
  1141. {{ JSON.parse(w.score).wScore }}分
  1142. </div>
  1143. <div
  1144. class="answerScore"
  1145. @click.stop="openScore(w)"
  1146. v-else-if="courseDetail.userid == userid"
  1147. >
  1148. 评分
  1149. </div>
  1150. </div>
  1151. </div>
  1152. </div>
  1153. </div>
  1154. </div>
  1155. <div
  1156. v-if="tType && tType == 2 && tool.tool.indexOf(1) != -1"
  1157. class="worksBox"
  1158. >
  1159. <div
  1160. class="zuoyeYulan"
  1161. v-if="workStudent[toolIndex].length > 0"
  1162. >
  1163. <span>作业预览</span>
  1164. <el-button
  1165. type="text"
  1166. @click="jump()"
  1167. v-if="tType == 2"
  1168. class="buttonA"
  1169. >我的评价</el-button
  1170. >
  1171. </div>
  1172. <div
  1173. class="worksDetailBox"
  1174. v-if="workStudent[toolIndex].length > 0"
  1175. >
  1176. <div
  1177. class="works"
  1178. style="
  1179. width: 200px;
  1180. height: 140px;
  1181. margin: 10px 10px 10px 0;
  1182. box-shadow: 0 0 6px 1px #dfdada;
  1183. "
  1184. v-for="(w, wIndex) in workStudent[toolIndex]"
  1185. :key="wIndex"
  1186. >
  1187. <div class="workImg">
  1188. <img
  1189. :src="w.works"
  1190. @click="previewImg(w.works)"
  1191. alt
  1192. />
  1193. <div
  1194. class="answerScore"
  1195. v-if="w.score"
  1196. @click.stop="openScore(w)"
  1197. >
  1198. {{ JSON.parse(w.score).wScore }}分
  1199. </div>
  1200. <div
  1201. class="answerScore"
  1202. @click.stop="openScore(w)"
  1203. v-else-if="courseDetail.userid == userid"
  1204. >
  1205. 评分
  1206. </div>
  1207. </div>
  1208. <div class="worksName">
  1209. <div>{{ w.sName }}</div>
  1210. </div>
  1211. </div>
  1212. </div>
  1213. </div>
  1214. <div
  1215. v-if="tType && tType == 2 && tool.tool.indexOf(3) != -1"
  1216. class="worksBox"
  1217. >
  1218. <div
  1219. class="zuoyeYulan"
  1220. v-if="workStudent[toolIndex].length > 0"
  1221. >
  1222. <span>作业预览</span>
  1223. <el-button
  1224. type="text"
  1225. @click="jump()"
  1226. v-if="tType == 2"
  1227. class="buttonA"
  1228. >我的评价</el-button
  1229. >
  1230. </div>
  1231. <div
  1232. class="worksDetailBox"
  1233. v-if="workStudent[toolIndex].length > 0"
  1234. >
  1235. <div
  1236. class="works"
  1237. style="
  1238. width: 200px;
  1239. height: 140px;
  1240. margin: 10px 10px 10px 0;
  1241. box-shadow: 0 0 6px 1px #dfdada;
  1242. "
  1243. v-for="(w, wIndex) in workStudent[toolIndex]"
  1244. :key="wIndex"
  1245. >
  1246. <div class="workImg">
  1247. <img
  1248. :src="w.works"
  1249. @click="previewImg(w.works)"
  1250. alt
  1251. />
  1252. <div
  1253. class="answerScore"
  1254. v-if="w.score"
  1255. @click.stop="openScore(w)"
  1256. >
  1257. {{ JSON.parse(w.score).wScore }}分
  1258. </div>
  1259. <div
  1260. class="answerScore"
  1261. @click.stop="openScore(w)"
  1262. v-else-if="courseDetail.userid == userid"
  1263. >
  1264. 评分
  1265. </div>
  1266. </div>
  1267. <div class="worksName">
  1268. <div>{{ w.sName }}</div>
  1269. </div>
  1270. </div>
  1271. </div>
  1272. </div>
  1273. <div
  1274. v-if="tType && tType == 2 && tool.tool.indexOf(6) != -1"
  1275. class="worksBox"
  1276. >
  1277. <div
  1278. class="zuoyeYulan"
  1279. v-if="workStudent[toolIndex].length > 0"
  1280. >
  1281. <span>作业预览</span>
  1282. <el-button
  1283. type="text"
  1284. @click="jump()"
  1285. v-if="tType == 2"
  1286. class="buttonA"
  1287. >我的评价</el-button
  1288. >
  1289. </div>
  1290. <div
  1291. class="worksDetailBox"
  1292. v-if="workStudent[toolIndex].length > 0"
  1293. >
  1294. <div
  1295. class="works"
  1296. style="
  1297. width: 200px;
  1298. height: 140px;
  1299. margin: 10px 10px 10px 0;
  1300. box-shadow: 0 0 6px 1px #dfdada;
  1301. "
  1302. v-for="(w, wIndex) in workStudent[toolIndex]"
  1303. :key="wIndex"
  1304. >
  1305. <div class="workImg">
  1306. <img
  1307. :src="w.works"
  1308. @click="previewImg(w.works)"
  1309. alt
  1310. />
  1311. <div
  1312. class="answerScore"
  1313. v-if="w.score"
  1314. @click.stop="openScore(w)"
  1315. >
  1316. {{ JSON.parse(w.score).wScore }}分
  1317. </div>
  1318. <div
  1319. class="answerScore"
  1320. @click.stop="openScore(w)"
  1321. v-else-if="courseDetail.userid == userid"
  1322. >
  1323. 评分
  1324. </div>
  1325. </div>
  1326. <div class="worksName">
  1327. <div>{{ w.sName }}</div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. <div
  1333. v-if="tType && tType == 2 && tool.tool.indexOf(7) != -1"
  1334. class="worksBox"
  1335. >
  1336. <div
  1337. class="zuoyeYulan"
  1338. v-if="workStudent[toolIndex].length > 0"
  1339. >
  1340. <span>作业预览</span>
  1341. <el-button
  1342. type="text"
  1343. @click="jump()"
  1344. v-if="tType == 2"
  1345. class="buttonA"
  1346. >我的评价</el-button
  1347. >
  1348. </div>
  1349. <div
  1350. class="worksDetailBox"
  1351. v-if="workStudent[toolIndex].length > 0"
  1352. >
  1353. <div
  1354. class="works"
  1355. style="
  1356. width: 200px;
  1357. height: 140px;
  1358. margin: 10px 10px 10px 0;
  1359. box-shadow: 0 0 6px 1px #dfdada;
  1360. "
  1361. v-for="(w, wIndex) in workStudent[toolIndex]"
  1362. :key="wIndex"
  1363. >
  1364. <div class="workImg">
  1365. <img
  1366. :src="w.works"
  1367. @click="previewImg(w.works)"
  1368. alt
  1369. />
  1370. <div
  1371. class="answerScore"
  1372. v-if="w.score"
  1373. @click.stop="openScore(w)"
  1374. >
  1375. {{ JSON.parse(w.score).wScore }}分
  1376. </div>
  1377. <div
  1378. class="answerScore"
  1379. @click.stop="openScore(w)"
  1380. v-else-if="courseDetail.userid == userid"
  1381. >
  1382. 评分
  1383. </div>
  1384. </div>
  1385. <div class="worksName">
  1386. <div>{{ w.sName }}</div>
  1387. </div>
  1388. </div>
  1389. </div>
  1390. </div>
  1391. <div
  1392. v-if="tType && tType == 2 && tool.tool.indexOf(26) != -1"
  1393. class="worksBox"
  1394. >
  1395. <div
  1396. class="zuoyeYulan"
  1397. v-if="workStudent[toolIndex].length > 0"
  1398. >
  1399. <span>作业预览</span>
  1400. <el-button
  1401. type="text"
  1402. @click="jump()"
  1403. v-if="tType == 2"
  1404. class="buttonA"
  1405. >我的评价</el-button
  1406. >
  1407. </div>
  1408. <div
  1409. class="worksDetailBox"
  1410. v-if="workStudent[toolIndex].length > 0"
  1411. >
  1412. <div
  1413. class="works"
  1414. style="
  1415. width: 200px;
  1416. height: 140px;
  1417. margin: 10px 10px 10px 0;
  1418. box-shadow: 0 0 6px 1px #dfdada;
  1419. "
  1420. v-for="(w, wIndex) in workStudent[toolIndex]"
  1421. :key="wIndex"
  1422. >
  1423. <div class="workImg">
  1424. <img
  1425. :src="w.works"
  1426. @click="previewImg(w.works)"
  1427. alt
  1428. />
  1429. </div>
  1430. <div class="worksName">
  1431. <div>{{ w.sName }}</div>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. <div
  1437. v-if="
  1438. tType &&
  1439. ((tType == 2 && sIsOpen == true) ||
  1440. tType == 1 ||
  1441. tType == 4) &&
  1442. tool.tool.indexOf(16) != -1
  1443. "
  1444. class="worksBox"
  1445. >
  1446. <div
  1447. class="zuoyeYulan"
  1448. v-if="
  1449. worksStudent.length &&
  1450. worksStudent[toolIndex].length > 0
  1451. "
  1452. >
  1453. <span>作业预览</span>
  1454. <el-button
  1455. type="text"
  1456. @click="jump()"
  1457. v-if="tType == 2"
  1458. class="buttonA"
  1459. >我的评价</el-button
  1460. >
  1461. </div>
  1462. <div
  1463. class="worksDetailBox"
  1464. v-if="
  1465. worksStudent.length &&
  1466. worksStudent[toolIndex].length > 0
  1467. "
  1468. >
  1469. <div
  1470. class="works"
  1471. style="
  1472. width: 200px;
  1473. height: 140px;
  1474. margin: 10px 10px 10px 0;
  1475. border-radius: 15px;
  1476. box-shadow: 0 0 6px 1px #dfdada;
  1477. "
  1478. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1479. :key="wIndex"
  1480. :class="w.type == 1 ? 'isTypeOne' : ''"
  1481. >
  1482. <div class="workImg" v-if="w.type == 0">
  1483. <img
  1484. :src="w.works"
  1485. @click="previewImg(w.works)"
  1486. alt
  1487. />
  1488. <div
  1489. class="answerScore"
  1490. v-if="w.score"
  1491. @click.stop="openScore(w)"
  1492. >
  1493. {{ JSON.parse(w.score).wScore }}分
  1494. </div>
  1495. <div
  1496. class="answerScore"
  1497. @click.stop="openScore(w)"
  1498. v-else-if="courseDetail.userid == userid"
  1499. >
  1500. 评分
  1501. </div>
  1502. </div>
  1503. <div class="workImg" v-if="w.type == 1">
  1504. <img :src="word" @click="openFile(w.works)" alt />
  1505. <div
  1506. class="answerScore"
  1507. v-if="w.score"
  1508. @click.stop="openScore(w)"
  1509. >
  1510. {{ JSON.parse(w.score).wScore }}分
  1511. </div>
  1512. <div
  1513. class="answerScore"
  1514. @click.stop="openScore(w)"
  1515. v-else-if="courseDetail.userid == userid"
  1516. >
  1517. 评分
  1518. </div>
  1519. </div>
  1520. <div class="workImg" v-if="w.type == 3">
  1521. <img
  1522. style="cursor: pointer"
  1523. :src="video"
  1524. @click="openVideo(w.works)"
  1525. alt
  1526. />
  1527. <div
  1528. class="answerScore"
  1529. v-if="w.score"
  1530. @click.stop="openScore(w)"
  1531. >
  1532. {{ JSON.parse(w.score).wScore }}分
  1533. </div>
  1534. <div
  1535. class="answerScore"
  1536. @click.stop="openScore(w)"
  1537. v-else-if="courseDetail.userid == userid"
  1538. >
  1539. 评分
  1540. </div>
  1541. </div>
  1542. <div class="comment" style="min-width: 200px">
  1543. <div class="worksName">
  1544. <div>{{ w.sName }}</div>
  1545. </div>
  1546. <div class="commentList">
  1547. <div class="commentList">
  1548. <div
  1549. class="commentImg"
  1550. @click="
  1551. isLikes(w.wid, userid, 1, null, w.isLikes)
  1552. "
  1553. >
  1554. <img
  1555. :src="w.isLikes == true ? likes : noLikes"
  1556. alt=""
  1557. />
  1558. </div>
  1559. <div>{{ w.likesCount }}</div>
  1560. </div>
  1561. <div class="commentList" style="margin-right: 15px">
  1562. <div
  1563. class="commentImg"
  1564. @click="commentOther(w, toolIndex, wIndex)"
  1565. >
  1566. <img
  1567. src="../assets/icon/comment/comment.png"
  1568. alt=""
  1569. />
  1570. </div>
  1571. <div>{{ w.commentCount }}</div>
  1572. </div>
  1573. </div>
  1574. </div>
  1575. </div>
  1576. </div>
  1577. <div style="font-size: 18px">未提交</div>
  1578. <div class="noWorksS">
  1579. <div
  1580. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1581. :key="sIndex"
  1582. class="noWorksName"
  1583. >
  1584. {{ s.student }}
  1585. </div>
  1586. </div>
  1587. </div>
  1588. <div
  1589. v-if="
  1590. tType &&
  1591. ((tType == 2 && sIsOpen == true) ||
  1592. tType == 1 ||
  1593. tType == 4) &&
  1594. tool.tool.indexOf(4) != -1 &&
  1595. (tool.askJson[0].answer ||
  1596. tool.askJson[0].answer === 0) &&
  1597. checkJson[toolIndex].length
  1598. "
  1599. class="xuan_right_box"
  1600. >
  1601. <div
  1602. class="tool_right_box"
  1603. v-for="(item, index) in tool.askJson"
  1604. :key="index"
  1605. >
  1606. <div>
  1607. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1608. </div>
  1609. <div
  1610. class="right_box_xuan"
  1611. >
  1612. <span>正确率</span>
  1613. <span>{{
  1614. (checkJson[toolIndex][index].right
  1615. ? checkJson[toolIndex][index].right
  1616. : 0) + "%"
  1617. }}</span>
  1618. </div>
  1619. </div>
  1620. </div>
  1621. <div
  1622. class="xuan_right_box"
  1623. style="background: unset"
  1624. v-if="
  1625. tType &&
  1626. ((tType == 2 && sIsOpen == true) ||
  1627. tType == 1 ||
  1628. tType == 4) &&
  1629. tool.tool.indexOf(4) != -1
  1630. "
  1631. >
  1632. <AskStatic
  1633. v-if="
  1634. worksStudent.length &&
  1635. worksStudent[toolIndex].length > 0
  1636. "
  1637. :askJSON="tool"
  1638. :checkJson="checkJson[toolIndex]"
  1639. ></AskStatic>
  1640. </div>
  1641. <div
  1642. v-if="
  1643. tType &&
  1644. ((tType == 2 && sIsOpen == true) ||
  1645. tType == 1 ||
  1646. tType == 4) &&
  1647. tool.tool.indexOf(4) != -1
  1648. "
  1649. class="worksBox"
  1650. >
  1651. <div
  1652. class="zuoyeYulan"
  1653. v-if="
  1654. worksStudent.length &&
  1655. worksStudent[toolIndex].length > 0
  1656. "
  1657. >
  1658. <span>作业预览</span>
  1659. <el-button
  1660. type="text"
  1661. @click="jump()"
  1662. v-if="tType == 2"
  1663. class="buttonA"
  1664. >我的评价</el-button
  1665. >
  1666. </div>
  1667. <div>
  1668. <div
  1669. class="worksDetailBox"
  1670. v-if="
  1671. worksStudent.length &&
  1672. worksStudent[toolIndex].length > 0
  1673. "
  1674. >
  1675. <div
  1676. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1677. :key="wIndex"
  1678. class="isWorksName"
  1679. @click="
  1680. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1681. "
  1682. >
  1683. {{ w.sName }}
  1684. </div>
  1685. <!-- <div class="works" style="
  1686. width: 200px;
  1687. height: 140px;
  1688. border-radius: 10px;
  1689. box-shadow: 0 0 6px 1px #dfdada;
  1690. overflow: hidden;
  1691. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  1692. <div class="workImg">
  1693. <img src="../assets/icon/works/noImg.png" @click="
  1694. openTools(
  1695. 4,
  1696. toolIndex,
  1697. taskCount,
  1698. w.works,
  1699. w.sName
  1700. )
  1701. " alt />
  1702. </div>
  1703. <div class="worksName">
  1704. <div>{{ w.sName }}</div>
  1705. <div>{{ w.time }}</div>
  1706. </div>
  1707. </div> -->
  1708. </div>
  1709. </div>
  1710. <div style="font-size: 18px">未提交</div>
  1711. <div class="noWorksS">
  1712. <div
  1713. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1714. :key="sIndex"
  1715. class="noWorksName"
  1716. >
  1717. {{ s.student }}
  1718. </div>
  1719. </div>
  1720. </div>
  1721. <div
  1722. v-if="
  1723. tType &&
  1724. ((tType == 2 && sIsOpen == true) ||
  1725. tType == 1 ||
  1726. tType == 4) &&
  1727. tool.tool.indexOf(45) != -1 &&
  1728. (tool.testJson.testJson[0].answer ||
  1729. tool.testJson.testJson[0].answer === 0) &&
  1730. checkJson[toolIndex].length
  1731. "
  1732. class="xuan_right_box"
  1733. >
  1734. <div
  1735. class="tool_right_box"
  1736. v-for="(item, index) in tool.testJson.testJson"
  1737. :key="index"
  1738. >
  1739. <div>
  1740. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1741. </div>
  1742. <div class="right_box_xuan">
  1743. <span>正确率</span>
  1744. <span>{{
  1745. (checkJson[toolIndex][index].right
  1746. ? checkJson[toolIndex][index].right
  1747. : 0) + "%"
  1748. }}</span>
  1749. </div>
  1750. </div>
  1751. </div>
  1752. <div
  1753. class="xuan_right_box"
  1754. style="background: unset"
  1755. v-if="
  1756. tType &&
  1757. ((tType == 2 && sIsOpen == true) ||
  1758. tType == 1 ||
  1759. tType == 4) &&
  1760. tool.tool.indexOf(45) != -1
  1761. "
  1762. >
  1763. <AskStatic2
  1764. v-if="
  1765. worksStudent.length &&
  1766. worksStudent[toolIndex].length > 0
  1767. "
  1768. :askJSON="tool"
  1769. :checkJson="checkJson[toolIndex]"
  1770. ></AskStatic2>
  1771. </div>
  1772. <div
  1773. v-if="
  1774. tType &&
  1775. ((tType == 2 && sIsOpen == true) ||
  1776. tType == 1 ||
  1777. tType == 4) &&
  1778. tool.tool.indexOf(45) != -1
  1779. "
  1780. class="worksBox"
  1781. >
  1782. <div
  1783. class="zuoyeYulan"
  1784. v-if="
  1785. worksStudent.length &&
  1786. worksStudent[toolIndex].length > 0
  1787. "
  1788. >
  1789. <span>作业预览</span>
  1790. <el-button
  1791. type="text"
  1792. @click="jump()"
  1793. v-if="tType == 2"
  1794. class="buttonA"
  1795. >我的评价</el-button
  1796. >
  1797. </div>
  1798. <div>
  1799. <div
  1800. class="worksDetailBox"
  1801. v-if="
  1802. worksStudent.length &&
  1803. worksStudent[toolIndex].length > 0
  1804. "
  1805. >
  1806. <div
  1807. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1808. :key="wIndex"
  1809. class="isWorksName"
  1810. @click="
  1811. openTools(
  1812. 45,
  1813. toolIndex,
  1814. taskCount,
  1815. w.works,
  1816. w.sName
  1817. )
  1818. "
  1819. >
  1820. {{ w.sName }}
  1821. </div>
  1822. </div>
  1823. </div>
  1824. <div style="font-size: 18px">未提交</div>
  1825. <div class="noWorksS">
  1826. <div
  1827. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1828. :key="sIndex"
  1829. class="noWorksName"
  1830. >
  1831. {{ s.student }}
  1832. </div>
  1833. </div>
  1834. </div>
  1835. <div
  1836. v-if="
  1837. tType &&
  1838. ((tType == 2 && sIsOpen == true) ||
  1839. tType == 1 ||
  1840. tType == 4) &&
  1841. tool.tool.indexOf(15) != -1
  1842. "
  1843. class="worksBox"
  1844. >
  1845. <div
  1846. class="zuoyeYulan"
  1847. v-if="
  1848. worksStudent.length &&
  1849. worksStudent[toolIndex].length > 0
  1850. "
  1851. >
  1852. <span>作业预览</span>
  1853. <el-button
  1854. type="text"
  1855. @click="jump()"
  1856. v-if="tType == 2"
  1857. class="buttonA"
  1858. >我的评价</el-button
  1859. >
  1860. </div>
  1861. <div
  1862. class="worksDetailBox"
  1863. v-if="
  1864. worksStudent.length &&
  1865. worksStudent[toolIndex].length > 0
  1866. "
  1867. >
  1868. <div
  1869. class="works"
  1870. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1871. :key="wIndex"
  1872. >
  1873. <div
  1874. class="workImg"
  1875. style="
  1876. border-radius: 15px;
  1877. box-shadow: #eee 0px 0px 5px 5px;
  1878. "
  1879. >
  1880. <!-- <img
  1881. src="../assets/icon/works/noImg.png"
  1882. @click="openTools(15, toolIndex, taskCount, w.works)"
  1883. alt=""
  1884. />-->
  1885. <div
  1886. class="answerBg"
  1887. style="border-radius: 15px 15px 0 0"
  1888. @click="commentOther(w, toolIndex, wIndex)"
  1889. >
  1890. <div>{{ w.sName }}</div>
  1891. <el-tooltip
  1892. class="item"
  1893. effect="light"
  1894. :content="JSON.parse(w.works)[0].answer"
  1895. placement="top"
  1896. >
  1897. <div class="answerContent">
  1898. {{ JSON.parse(w.works)[0].answer }}
  1899. </div>
  1900. </el-tooltip>
  1901. <div
  1902. class="answerScore"
  1903. v-if="w.score"
  1904. @click.stop="openScore(w)"
  1905. >
  1906. {{ JSON.parse(w.score).wScore }}分
  1907. </div>
  1908. <div
  1909. class="answerScore"
  1910. @click.stop="openScore(w)"
  1911. v-else-if="courseDetail.userid == userid"
  1912. >
  1913. 评分
  1914. </div>
  1915. </div>
  1916. <div class="comment">
  1917. <div class="commentList">
  1918. <div
  1919. class="commentImg"
  1920. @click="
  1921. isLikes(w.wid, userid, 1, null, w.isLikes)
  1922. "
  1923. >
  1924. <img
  1925. :src="w.isLikes == true ? likes : noLikes"
  1926. alt=""
  1927. />
  1928. </div>
  1929. <div>{{ w.likesCount }}</div>
  1930. </div>
  1931. <div class="commentList" style="margin-right: 15px">
  1932. <div
  1933. class="commentImg"
  1934. @click="commentOther(w, toolIndex, wIndex)"
  1935. >
  1936. <img
  1937. src="../assets/icon/comment/comment.png"
  1938. alt=""
  1939. />
  1940. </div>
  1941. <div>{{ w.commentCount }}</div>
  1942. </div>
  1943. </div>
  1944. </div>
  1945. </div>
  1946. </div>
  1947. <div style="font-size: 18px">未提交</div>
  1948. <div class="noWorksS">
  1949. <div
  1950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  1951. :key="sIndex"
  1952. class="noWorksName"
  1953. >
  1954. {{ s.student }}
  1955. </div>
  1956. </div>
  1957. </div>
  1958. <div
  1959. v-if="
  1960. tType &&
  1961. ((tType == 2 && sIsOpen == true) ||
  1962. tType == 1 ||
  1963. tType == 4) &&
  1964. tool.tool.indexOf(1) != -1
  1965. "
  1966. class="worksBox"
  1967. >
  1968. <div
  1969. class="zuoyeYulan"
  1970. v-if="
  1971. worksStudent.length &&
  1972. worksStudent[toolIndex].length > 0
  1973. "
  1974. >
  1975. <span>作业预览</span>
  1976. <el-button
  1977. type="text"
  1978. @click="jump()"
  1979. v-if="tType == 2"
  1980. class="buttonA"
  1981. >我的评价</el-button
  1982. >
  1983. </div>
  1984. <div
  1985. class="worksDetailBox"
  1986. v-if="
  1987. worksStudent.length &&
  1988. worksStudent[toolIndex].length > 0
  1989. "
  1990. >
  1991. <div
  1992. class="works"
  1993. style="
  1994. width: 200px;
  1995. height: 140px;
  1996. margin: 10px 10px 10px 0;
  1997. border-radius: 15px;
  1998. box-shadow: 0 0 6px 1px #dfdada;
  1999. "
  2000. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2001. :key="wIndex"
  2002. >
  2003. <!-- @click="previewImg(w.works)" -->
  2004. <div class="workImg">
  2005. <img
  2006. :src="w.works"
  2007. @click="previewImg(w.works)"
  2008. alt
  2009. />
  2010. <div
  2011. class="answerScore"
  2012. v-if="w.score"
  2013. @click.stop="openScore(w)"
  2014. >
  2015. {{ JSON.parse(w.score).wScore }}分
  2016. </div>
  2017. <div
  2018. class="answerScore"
  2019. @click.stop="openScore(w)"
  2020. v-else-if="courseDetail.userid == userid"
  2021. >
  2022. 评分
  2023. </div>
  2024. </div>
  2025. <div class="comment" style="min-width: 200px">
  2026. <div class="worksName">
  2027. <div>{{ w.sName }}</div>
  2028. </div>
  2029. <div class="commentList">
  2030. <div class="commentList">
  2031. <div
  2032. class="commentImg"
  2033. @click="
  2034. isLikes(w.wid, userid, 1, null, w.isLikes)
  2035. "
  2036. >
  2037. <img
  2038. :src="w.isLikes == true ? likes : noLikes"
  2039. alt=""
  2040. />
  2041. </div>
  2042. <div>{{ w.likesCount }}</div>
  2043. </div>
  2044. <div class="commentList" style="margin-right: 15px">
  2045. <div
  2046. class="commentImg"
  2047. @click="commentOther(w, toolIndex, wIndex)"
  2048. >
  2049. <img
  2050. src="../assets/icon/comment/comment.png"
  2051. alt=""
  2052. />
  2053. </div>
  2054. <div>{{ w.commentCount }}</div>
  2055. </div>
  2056. </div>
  2057. </div>
  2058. </div>
  2059. </div>
  2060. <div style="font-size: 18px">未提交</div>
  2061. <div class="noWorksS">
  2062. <div
  2063. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2064. :key="sIndex"
  2065. class="noWorksName"
  2066. >
  2067. {{ s.student }}
  2068. </div>
  2069. </div>
  2070. </div>
  2071. <div
  2072. v-if="
  2073. tType &&
  2074. ((tType == 2 && sIsOpen == true) ||
  2075. tType == 1 ||
  2076. tType == 4) &&
  2077. tool.tool.indexOf(3) != -1
  2078. "
  2079. class="worksBox"
  2080. >
  2081. <div
  2082. class="zuoyeYulan"
  2083. v-if="
  2084. worksStudent.length &&
  2085. worksStudent[toolIndex].length > 0
  2086. "
  2087. >
  2088. <span>作业预览</span>
  2089. <el-button
  2090. type="text"
  2091. @click="jump()"
  2092. v-if="tType == 2"
  2093. class="buttonA"
  2094. >我的评价</el-button
  2095. >
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="
  2100. worksStudent.length &&
  2101. worksStudent[toolIndex].length > 0
  2102. "
  2103. >
  2104. <div
  2105. class="works"
  2106. style="
  2107. width: 200px;
  2108. height: 140px;
  2109. margin: 10px 10px 10px 0;
  2110. border-radius: 15px;
  2111. box-shadow: 0 0 6px 1px #dfdada;
  2112. "
  2113. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2114. :key="wIndex"
  2115. >
  2116. <!-- @click="previewImg(w.works)" -->
  2117. <div class="workImg">
  2118. <img
  2119. :src="w.works"
  2120. @click="previewImg(w.works)"
  2121. alt
  2122. />
  2123. <div
  2124. class="answerScore"
  2125. v-if="w.score"
  2126. @click.stop="openScore(w)"
  2127. >
  2128. {{ JSON.parse(w.score).wScore }}分
  2129. </div>
  2130. <div
  2131. class="answerScore"
  2132. @click.stop="openScore(w)"
  2133. v-else-if="courseDetail.userid == userid"
  2134. >
  2135. 评分
  2136. </div>
  2137. </div>
  2138. <div class="comment" style="min-width: 200px">
  2139. <div class="worksName">
  2140. <div>{{ w.sName }}</div>
  2141. </div>
  2142. <div class="commentList">
  2143. <div class="commentList">
  2144. <div
  2145. class="commentImg"
  2146. @click="
  2147. isLikes(w.wid, userid, 1, null, w.isLikes)
  2148. "
  2149. >
  2150. <img
  2151. :src="w.isLikes == true ? likes : noLikes"
  2152. alt=""
  2153. />
  2154. </div>
  2155. <div>{{ w.likesCount }}</div>
  2156. </div>
  2157. <div class="commentList" style="margin-right: 15px">
  2158. <div
  2159. class="commentImg"
  2160. @click="commentOther(w, toolIndex, wIndex)"
  2161. >
  2162. <img
  2163. src="../assets/icon/comment/comment.png"
  2164. alt=""
  2165. />
  2166. </div>
  2167. <div>{{ w.commentCount }}</div>
  2168. </div>
  2169. </div>
  2170. </div>
  2171. </div>
  2172. </div>
  2173. <div style="font-size: 18px">未提交</div>
  2174. <div class="noWorksS">
  2175. <div
  2176. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2177. :key="sIndex"
  2178. class="noWorksName"
  2179. >
  2180. {{ s.student }}
  2181. </div>
  2182. </div>
  2183. </div>
  2184. <div
  2185. v-if="
  2186. tType &&
  2187. ((tType == 2 && sIsOpen == true) ||
  2188. tType == 1 ||
  2189. tType == 4) &&
  2190. tool.tool.indexOf(6) != -1
  2191. "
  2192. class="worksBox"
  2193. >
  2194. <div
  2195. class="zuoyeYulan"
  2196. v-if="
  2197. worksStudent.length &&
  2198. worksStudent[toolIndex].length > 0
  2199. "
  2200. >
  2201. <span>作业预览</span>
  2202. <el-button
  2203. type="text"
  2204. @click="jump()"
  2205. v-if="tType == 2"
  2206. class="buttonA"
  2207. >我的评价</el-button
  2208. >
  2209. </div>
  2210. <div
  2211. class="worksDetailBox"
  2212. v-if="
  2213. worksStudent.length &&
  2214. worksStudent[toolIndex].length > 0
  2215. "
  2216. >
  2217. <div
  2218. class="works"
  2219. style="
  2220. width: 200px;
  2221. height: 140px;
  2222. margin: 10px 10px 10px 0;
  2223. border-radius: 15px;
  2224. box-shadow: 0 0 6px 1px #dfdada;
  2225. "
  2226. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2227. :key="wIndex"
  2228. >
  2229. <!-- @click="previewImg(w.works)" -->
  2230. <div class="workImg">
  2231. <img
  2232. :src="w.works"
  2233. @click="previewImg(w.works)"
  2234. alt
  2235. />
  2236. <div
  2237. class="answerScore"
  2238. v-if="w.score"
  2239. @click.stop="openScore(w)"
  2240. >
  2241. {{ JSON.parse(w.score).wScore }}分
  2242. </div>
  2243. <div
  2244. class="answerScore"
  2245. @click.stop="openScore(w)"
  2246. v-else-if="courseDetail.userid == userid"
  2247. >
  2248. 评分
  2249. </div>
  2250. </div>
  2251. <div class="comment" style="min-width: 200px">
  2252. <div class="worksName">
  2253. <div>{{ w.sName }}</div>
  2254. </div>
  2255. <div class="commentList">
  2256. <div class="commentList">
  2257. <div
  2258. class="commentImg"
  2259. @click="
  2260. isLikes(w.wid, userid, 1, null, w.isLikes)
  2261. "
  2262. >
  2263. <img
  2264. :src="w.isLikes == true ? likes : noLikes"
  2265. alt=""
  2266. />
  2267. </div>
  2268. <div>{{ w.likesCount }}</div>
  2269. </div>
  2270. <div class="commentList" style="margin-right: 15px">
  2271. <div
  2272. class="commentImg"
  2273. @click="commentOther(w, toolIndex, wIndex)"
  2274. >
  2275. <img
  2276. src="../assets/icon/comment/comment.png"
  2277. alt=""
  2278. />
  2279. </div>
  2280. <div>{{ w.commentCount }}</div>
  2281. </div>
  2282. </div>
  2283. </div>
  2284. </div>
  2285. </div>
  2286. <div style="font-size: 18px">未提交</div>
  2287. <div class="noWorksS">
  2288. <div
  2289. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2290. :key="sIndex"
  2291. class="noWorksName"
  2292. >
  2293. {{ s.student }}
  2294. </div>
  2295. </div>
  2296. </div>
  2297. <div
  2298. v-if="
  2299. tType &&
  2300. ((tType == 2 && sIsOpen == true) ||
  2301. tType == 1 ||
  2302. tType == 4) &&
  2303. tool.tool.indexOf(7) != -1
  2304. "
  2305. class="worksBox"
  2306. >
  2307. <div
  2308. class="zuoyeYulan"
  2309. v-if="
  2310. worksStudent.length &&
  2311. worksStudent[toolIndex].length > 0
  2312. "
  2313. >
  2314. <span>作业预览</span>
  2315. <el-button
  2316. type="text"
  2317. @click="jump()"
  2318. v-if="tType == 2"
  2319. class="buttonA"
  2320. >我的评价</el-button
  2321. >
  2322. </div>
  2323. <div
  2324. class="worksDetailBox"
  2325. v-if="
  2326. worksStudent.length &&
  2327. worksStudent[toolIndex].length > 0
  2328. "
  2329. >
  2330. <div
  2331. class="works"
  2332. style="
  2333. width: 200px;
  2334. height: 140px;
  2335. margin: 10px 10px 10px 0;
  2336. border-radius: 15px;
  2337. box-shadow: 0 0 6px 1px #dfdada;
  2338. "
  2339. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2340. :key="wIndex"
  2341. >
  2342. <!-- @click="previewImg(w.works)" -->
  2343. <div class="workImg">
  2344. <img
  2345. :src="w.works"
  2346. @click="previewImg(w.works)"
  2347. alt
  2348. />
  2349. <div
  2350. class="answerScore"
  2351. v-if="w.score"
  2352. @click.stop="openScore(w)"
  2353. >
  2354. {{ JSON.parse(w.score).wScore }}分
  2355. </div>
  2356. <div
  2357. class="answerScore"
  2358. @click.stop="openScore(w)"
  2359. v-else-if="courseDetail.userid == userid"
  2360. >
  2361. 评分
  2362. </div>
  2363. </div>
  2364. <div class="comment" style="min-width: 200px">
  2365. <div class="worksName">
  2366. <div>{{ w.sName }}</div>
  2367. </div>
  2368. <div class="commentList">
  2369. <div class="commentList">
  2370. <div
  2371. class="commentImg"
  2372. @click="
  2373. isLikes(w.wid, userid, 1, null, w.isLikes)
  2374. "
  2375. >
  2376. <img
  2377. :src="w.isLikes == true ? likes : noLikes"
  2378. alt=""
  2379. />
  2380. </div>
  2381. <div>{{ w.likesCount }}</div>
  2382. </div>
  2383. <div class="commentList" style="margin-right: 15px">
  2384. <div
  2385. class="commentImg"
  2386. @click="commentOther(w, toolIndex, wIndex)"
  2387. >
  2388. <img
  2389. src="../assets/icon/comment/comment.png"
  2390. alt=""
  2391. />
  2392. </div>
  2393. <div>{{ w.commentCount }}</div>
  2394. </div>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. </div>
  2399. <div style="font-size: 18px">未提交</div>
  2400. <div class="noWorksS">
  2401. <div
  2402. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2403. :key="sIndex"
  2404. class="noWorksName"
  2405. >
  2406. {{ s.student }}
  2407. </div>
  2408. </div>
  2409. </div>
  2410. <div
  2411. v-if="
  2412. tType &&
  2413. ((tType == 2 && sIsOpen == true) ||
  2414. tType == 1 ||
  2415. tType == 4) &&
  2416. tool.tool.indexOf(26) != -1
  2417. "
  2418. class="worksBox"
  2419. >
  2420. <div
  2421. class="zuoyeYulan"
  2422. v-if="
  2423. worksStudent.length &&
  2424. worksStudent[toolIndex].length > 0
  2425. "
  2426. >
  2427. <span>作业预览</span>
  2428. <el-button
  2429. type="text"
  2430. @click="jump()"
  2431. v-if="tType == 2"
  2432. class="buttonA"
  2433. >我的评价</el-button
  2434. >
  2435. </div>
  2436. <div
  2437. class="worksDetailBox"
  2438. v-if="
  2439. worksStudent.length &&
  2440. worksStudent[toolIndex].length > 0
  2441. "
  2442. >
  2443. <div
  2444. class="works"
  2445. style="width: 240px; height: 140px; overflow: hidden"
  2446. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2447. :key="wIndex"
  2448. :class="w.type == 1 ? 'isTypeOne' : ''"
  2449. >
  2450. <div class="workImg" v-if="w.type == 0">
  2451. <img
  2452. :src="w.works"
  2453. @click="previewImg(w.works)"
  2454. alt
  2455. />
  2456. </div>
  2457. <div class="workImg" v-if="w.type == 1">
  2458. <img :src="word" @click="openFile(w.works)" alt />
  2459. </div>
  2460. <div class="worksName">
  2461. <div>{{ w.sName }}</div>
  2462. </div>
  2463. </div>
  2464. </div>
  2465. <div style="font-size: 18px">未提交</div>
  2466. <div class="noWorksS">
  2467. <div
  2468. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2469. :key="sIndex"
  2470. class="noWorksName"
  2471. >
  2472. {{ s.student }}
  2473. </div>
  2474. </div>
  2475. </div>
  2476. <div
  2477. v-if="
  2478. tType &&
  2479. ((tType == 2 && sIsOpen == true) ||
  2480. tType == 1 ||
  2481. tType == 4) &&
  2482. tool.tool.indexOf(40) != -1
  2483. "
  2484. class="worksBox"
  2485. >
  2486. <div
  2487. class="zuoyeYulan"
  2488. v-if="
  2489. worksStudent.length &&
  2490. worksStudent[toolIndex].length > 0
  2491. "
  2492. >
  2493. <span>作业预览</span>
  2494. <el-button
  2495. type="text"
  2496. @click="jump()"
  2497. v-if="tType == 2"
  2498. class="buttonA"
  2499. >我的评价</el-button
  2500. >
  2501. </div>
  2502. <div
  2503. class="worksDetailBox"
  2504. v-if="
  2505. worksStudent.length &&
  2506. worksStudent[toolIndex].length > 0
  2507. "
  2508. >
  2509. <div
  2510. class="works"
  2511. style="
  2512. width: 200px;
  2513. height: 140px;
  2514. margin: 10px 10px 10px 0;
  2515. border-radius: 15px;
  2516. box-shadow: 0 0 6px 1px #dfdada;
  2517. "
  2518. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2519. :key="wIndex"
  2520. :class="w.type == 1 ? 'isTypeOne' : ''"
  2521. >
  2522. <div class="workImg">
  2523. <img
  2524. src="../assets/icon/works/noImg.png"
  2525. @click="openPj(w.works, toolIndex)"
  2526. alt
  2527. />
  2528. </div>
  2529. <div class="comment" style="min-width: 200px">
  2530. <div class="worksName">
  2531. <div>{{ w.sName }}</div>
  2532. </div>
  2533. <div class="commentList">
  2534. <div class="commentList">
  2535. <div
  2536. class="commentImg"
  2537. @click="
  2538. isLikes(w.wid, userid, 1, null, w.isLikes)
  2539. "
  2540. >
  2541. <img
  2542. :src="w.isLikes == true ? likes : noLikes"
  2543. alt=""
  2544. />
  2545. </div>
  2546. <div>{{ w.likesCount }}</div>
  2547. </div>
  2548. <div class="commentList" style="margin-right: 15px">
  2549. <div
  2550. class="commentImg"
  2551. @click="commentOther(w, toolIndex, wIndex)"
  2552. >
  2553. <img
  2554. src="../assets/icon/comment/comment.png"
  2555. alt=""
  2556. />
  2557. </div>
  2558. <div>{{ w.commentCount }}</div>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. </div>
  2563. </div>
  2564. <div style="font-size: 18px">未提交</div>
  2565. <div class="noWorksS">
  2566. <div
  2567. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2568. :key="sIndex"
  2569. class="noWorksName"
  2570. >
  2571. {{ s.student }}
  2572. </div>
  2573. </div>
  2574. </div>
  2575. <div
  2576. v-if="tType && tType == 2 && tool.tool.indexOf(40) != -1"
  2577. class="worksBox"
  2578. >
  2579. <div
  2580. class="zuoyeYulan"
  2581. v-if="workStudent[toolIndex].length > 0"
  2582. >
  2583. <span>作业预览</span>
  2584. <el-button
  2585. type="text"
  2586. @click="jump()"
  2587. v-if="tType == 2"
  2588. class="buttonA"
  2589. >我的评价</el-button
  2590. >
  2591. </div>
  2592. <div
  2593. class="worksDetailBox"
  2594. v-if="workStudent[toolIndex].length > 0"
  2595. >
  2596. <div
  2597. class="works"
  2598. style="
  2599. width: 200px;
  2600. height: 140px;
  2601. margin: 10px 10px 10px 0;
  2602. "
  2603. v-for="(w, wIndex) in workStudent[toolIndex]"
  2604. :key="wIndex"
  2605. >
  2606. <div class="workImg">
  2607. <img
  2608. src="../assets/icon/works/noImg.png"
  2609. @click="openPj(w.works, toolIndex)"
  2610. alt
  2611. />
  2612. </div>
  2613. <div class="worksName">
  2614. <div>{{ w.sName }}</div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. </div>
  2619. <div
  2620. v-if="
  2621. tType &&
  2622. ((tType == 2 && sIsOpen == true) ||
  2623. tType == 1 ||
  2624. tType == 4) &&
  2625. tool.tool.indexOf(41) != -1
  2626. "
  2627. >
  2628. <AnswerData2
  2629. v-if="
  2630. worksStudent.length &&
  2631. worksStudent[toolIndex].length > 0
  2632. "
  2633. :problemJson="tool.selectJson.answer"
  2634. :people="worksStudent[toolIndex]"
  2635. ></AnswerData2>
  2636. </div>
  2637. <div
  2638. v-if="
  2639. tType &&
  2640. ((tType == 2 && sIsOpen == true) ||
  2641. tType == 1 ||
  2642. tType == 4) &&
  2643. tool.tool.indexOf(41) != -1
  2644. "
  2645. class="worksBox"
  2646. >
  2647. <div
  2648. class="zuoyeYulan"
  2649. v-if="
  2650. worksStudent.length &&
  2651. worksStudent[toolIndex].length > 0
  2652. "
  2653. >
  2654. <span>作业预览</span>
  2655. <el-button
  2656. type="text"
  2657. @click="jump()"
  2658. v-if="tType == 2"
  2659. class="buttonA"
  2660. >我的评价</el-button
  2661. >
  2662. </div>
  2663. <div
  2664. class="worksDetailBox"
  2665. v-if="
  2666. worksStudent.length &&
  2667. worksStudent[toolIndex].length > 0
  2668. "
  2669. >
  2670. <div
  2671. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2672. :key="wIndex"
  2673. class="isWorksName"
  2674. @click="openXz(w, toolIndex)"
  2675. >
  2676. {{ w.sName }}
  2677. </div>
  2678. <!-- <div
  2679. class="works"
  2680. style="
  2681. width: 200px;
  2682. height: 140px;
  2683. margin: 10px 10px 10px 0;
  2684. border-radius: 15px;
  2685. box-shadow: 0 0 6px 1px #dfdada;
  2686. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  2687. :class="w.type == 5 ? 'isTypeOne' : ''">
  2688. <div class="workImg">
  2689. <img src="../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  2690. </div>
  2691. <div class="worksName">
  2692. <div>{{ w.sName }}</div>
  2693. </div>
  2694. </div> -->
  2695. </div>
  2696. <div style="font-size: 18px">未提交</div>
  2697. <div class="noWorksS">
  2698. <div
  2699. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2700. :key="sIndex"
  2701. class="noWorksName"
  2702. >
  2703. {{ s.student }}
  2704. </div>
  2705. </div>
  2706. </div>
  2707. <div
  2708. v-if="tType && tType == 2 && tool.tool.indexOf(41) != -1"
  2709. class="worksBox"
  2710. >
  2711. <div
  2712. class="zuoyeYulan"
  2713. v-if="workStudent[toolIndex].length > 0"
  2714. >
  2715. <span>作业预览</span>
  2716. <el-button
  2717. type="text"
  2718. @click="jump()"
  2719. v-if="tType == 2"
  2720. class="buttonA"
  2721. >我的评价</el-button
  2722. >
  2723. </div>
  2724. <div
  2725. class="worksDetailBox"
  2726. v-if="workStudent[toolIndex].length > 0"
  2727. >
  2728. <div
  2729. class="works"
  2730. style="
  2731. width: 200px;
  2732. height: 140px;
  2733. margin: 10px 10px 10px 0;
  2734. "
  2735. v-for="(w, wIndex) in workStudent[toolIndex]"
  2736. :key="wIndex"
  2737. >
  2738. <div class="workImg">
  2739. <img
  2740. src="../assets/icon/works/noImg.png"
  2741. @click="openXz(w, toolIndex)"
  2742. alt
  2743. />
  2744. </div>
  2745. <div class="worksName">
  2746. <div>{{ w.sName }}</div>
  2747. </div>
  2748. </div>
  2749. </div>
  2750. </div>
  2751. </div>
  2752. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  2753. 上传文件
  2754. <input
  2755. type="file"
  2756. accept="image/png, image/gif, image/jpeg"
  2757. style="display: none"
  2758. @change="beforeUpload1($event, 2, index)"
  2759. />
  2760. </div>-->
  2761. </div>
  2762. </div>
  2763. <div
  2764. class="vedioBox"
  2765. v-if="
  2766. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2767. .eList &&
  2768. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2769. .eList.length &&
  2770. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2771. .eList.length > 0 &&
  2772. tType != 2
  2773. "
  2774. >
  2775. <div
  2776. class="queTop"
  2777. style="
  2778. font-size: 25px;
  2779. padding: 15px 0 15px 30px;
  2780. font-weight: bold;
  2781. "
  2782. >
  2783. <!-- <div class="question" style="width: 30px">
  2784. <img src="../assets/icon/toolIcon.png" alt />
  2785. </div>
  2786. <div class="queTitle">
  2787. <div>工具</div>
  2788. </div>-->
  2789. 评一评
  2790. </div>
  2791. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  2792. <div class="elist_input">
  2793. <div
  2794. v-for="(eItem, eIndex) in chapInfoList[courseType]
  2795. .chapterInfo[0].taskJson[taskCount].eList"
  2796. :key="eIndex"
  2797. class="elist_input_box"
  2798. >
  2799. <div style="width: 95%">
  2800. <div
  2801. style="
  2802. display: flex;
  2803. flex-direction: row;
  2804. flex-wrap: nowrap;
  2805. align-items: center;
  2806. "
  2807. >
  2808. <div style="max-width: calc(100% - 285px)">
  2809. <span>{{ eItem.value }}</span>
  2810. </div>
  2811. <div
  2812. style="
  2813. padding-left: 25px;
  2814. display: flex;
  2815. flex-direction: row;
  2816. align-items: center;
  2817. "
  2818. >
  2819. <el-rate
  2820. v-model="eItem.score"
  2821. :colors="colors"
  2822. disabled
  2823. ></el-rate>
  2824. </div>
  2825. </div>
  2826. <div class="elist_inptu_text" style="padding-left: 10px">
  2827. <span v-if="eItem.detail != ''">{{
  2828. eItem.detail
  2829. }}</span>
  2830. <span v-else style="color: #b2b1b3; font-size: 14px"
  2831. >暂无描述...</span
  2832. >
  2833. </div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. <div
  2838. v-if="evalua"
  2839. style="
  2840. border: 1px solid #e5e5e5;
  2841. max-width: 650px;
  2842. width: 100%;
  2843. margin-top: 20px;
  2844. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2845. "
  2846. >
  2847. <div class="e_add_top">
  2848. <div class="e_add_title">
  2849. <span>目标管理名称</span>
  2850. <span>{{ eTitle }}</span>
  2851. <img
  2852. src="../assets/line.png"
  2853. class="cru_line"
  2854. style="
  2855. width: 125px;
  2856. height: 20px;
  2857. bottom: -10px;
  2858. left: 120px;
  2859. "
  2860. />
  2861. <!-- <el-input
  2862. v-model="eTitle"
  2863. placeholder="请输入名称"
  2864. @change="setMindData"
  2865. ></el-input>-->
  2866. </div>
  2867. </div>
  2868. <div class="e_add_content">
  2869. <div class="e_add_list_pbox">
  2870. <div class="e_add_list_pbox_title">
  2871. <span class="type_title">切换模式</span>
  2872. <div class="type_content">
  2873. <span
  2874. :class="{ active: typeMode == 1 }"
  2875. @click="typeMode = 1"
  2876. >目标树</span
  2877. >
  2878. <span
  2879. :class="{ active: typeMode == 2 }"
  2880. @click="typeMode = 2"
  2881. >目标罗盘</span
  2882. >
  2883. <span
  2884. :class="{ active: typeMode == 3 }"
  2885. @click="typeMode = 3"
  2886. >目标看板</span
  2887. >
  2888. </div>
  2889. </div>
  2890. <div class="e_add_list_pbox_content">
  2891. <Mind
  2892. :showBar="false"
  2893. :mindData="data"
  2894. style="width: 100%"
  2895. v-show="typeMode == 1"
  2896. ></Mind>
  2897. <Sunburst
  2898. :Josn="eJson"
  2899. :num="eJSONNum"
  2900. style="width: 100%"
  2901. v-if="typeMode == 2"
  2902. ></Sunburst>
  2903. <SeeBoard
  2904. :Josn="eJson"
  2905. :num="eJSONNum"
  2906. :ename="eTitle"
  2907. style="width: 100%"
  2908. v-if="typeMode == 3"
  2909. ></SeeBoard>
  2910. </div>
  2911. </div>
  2912. </div>
  2913. </div>
  2914. </div>
  2915. </div>
  2916. <!-- <div
  2917. class="project_box"
  2918. style="margin-top: 15px; padding-bottom: 30px"
  2919. >
  2920. <div
  2921. style="
  2922. display: flex;
  2923. flex-wrap: nowrap;
  2924. flex-direction: column;
  2925. position: relative;
  2926. "
  2927. >
  2928. <div class="queTop">
  2929. <div class="question">
  2930. <img src="../assets/icon/homeWork.png" alt="" />
  2931. </div>
  2932. <div class="queTitle">
  2933. <div>作业提交<span>(提交图文视频等)</span></div>
  2934. <div>:任务:{{ task.task }}</div>
  2935. </div>
  2936. </div>
  2937. <div class="ediBottom">
  2938. <div
  2939. class="addEditor"
  2940. style="margin-top: 23px"
  2941. @click="openAddWork"
  2942. v-if="!isNoHomeWork"
  2943. >
  2944. 选择文件
  2945. </div>
  2946. <div
  2947. class="addEditor"
  2948. style="margin-top: 23px"
  2949. @click="openAddWork"
  2950. v-else
  2951. >
  2952. 已提交
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>-->
  2957. </div>
  2958. </div>
  2959. <el-dialog
  2960. title="提交实践作业"
  2961. :visible.sync="dialogVisible"
  2962. :append-to-body="true"
  2963. width="500px"
  2964. :before-close="handleClose"
  2965. class="dialog_change"
  2966. >
  2967. <div class="marginT">
  2968. <div>上传文件</div>
  2969. <div
  2970. class="chapter_add"
  2971. @click="addImg($event)"
  2972. v-if="studyJuri[0].cover.length == 0"
  2973. >
  2974. <div class="up_photo">
  2975. <img src="../assets/icon/uploadImg.png" alt />
  2976. </div>
  2977. <input
  2978. type="file"
  2979. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2980. capture="camera"
  2981. style="display: none"
  2982. @change="beforeUpload1($event, 1)"
  2983. />
  2984. <!-- <input
  2985. type="file"
  2986. accept="image/*"
  2987. capture="camera"
  2988. style="display: none"
  2989. @change="beforeUpload1($event, 1)"
  2990. /> -->
  2991. </div>
  2992. <div
  2993. class="chapter_add"
  2994. style="
  2995. display: flex;
  2996. width: 100%;
  2997. flex-direction: row;
  2998. flex-wrap: wrap;
  2999. justify-content: flex-start;
  3000. padding: 15px 0;
  3001. "
  3002. v-if="studyJuri[0].cover.length > 0"
  3003. >
  3004. <div class="upCover">
  3005. <img
  3006. :src="studyJuri[0].cover[0].url"
  3007. alt
  3008. v-if="fileType == 0"
  3009. />
  3010. <img :src="word" alt v-else-if="fileType == 1" />
  3011. <img :src="video" alt v-else />
  3012. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3013. <div class="deleteWord" @click="clean(1)">
  3014. <img src="../assets/icon/deleteWorks.png" alt />
  3015. </div>
  3016. </div>
  3017. </div>
  3018. </div>
  3019. <!-- <div class="first">
  3020. <div>作业名称:</div>
  3021. <div>{{ chapInfoList[courseType].dyName }}</div>
  3022. </div>
  3023. <div style="font-size: 20px; margin-bottom: 10px">上传作业</div>
  3024. <el-input
  3025. type="textarea"
  3026. resize="none"
  3027. rows="7"
  3028. placeholder="输入文字描述..."
  3029. v-model="studyJuri[0].content"
  3030. ></el-input>
  3031. <div class="marginT">
  3032. <div>上传图片</div>
  3033. <div class="chapter_add" @click="addImg($event)">
  3034. <div class="up_photo">
  3035. <img src="../assets/photo.png" alt />
  3036. </div>
  3037. <input
  3038. type="file"
  3039. accept="image/png, image/gif, image/jpeg"
  3040. style="display: none"
  3041. @change="beforeUpload1($event, 1)"
  3042. />
  3043. </div>
  3044. <div
  3045. class="chapter_add"
  3046. style="
  3047. display: flex;
  3048. width: 100%;
  3049. flex-direction: row;
  3050. flex-wrap: wrap;
  3051. justify-content: flex-start;
  3052. "
  3053. v-if="studyJuri[0].cover.length > 0"
  3054. >
  3055. <div
  3056. v-for="(c, cIndex) in studyJuri[0].cover"
  3057. :key="cIndex"
  3058. class="upCover"
  3059. >
  3060. <img :src="c.url != null && c.url != '' ? c.url : mr" alt />
  3061. <span class="picName">{{ c.name }}</span>
  3062. <div class="deleteWord" @click="clean(1)">
  3063. <img src="../assets/icon/delete.png" alt />
  3064. </div>
  3065. </div>
  3066. </div>
  3067. </div>
  3068. <div class="marginT">
  3069. <div>上传视频</div>
  3070. <div class="chapter_add" @click="addImg($event)">
  3071. <div class="up_photo">
  3072. <img src="../assets/vidio.png" alt />
  3073. </div>
  3074. <input
  3075. type="file"
  3076. accept="video/mp4, video/quicktime, video/x-msvideo"
  3077. style="display: none"
  3078. @change="beforeUpload2($event, 2)"
  3079. />
  3080. </div>
  3081. <div
  3082. class="chapter_add"
  3083. style="
  3084. display: flex;
  3085. flex-direction: row;
  3086. flex-wrap: wrap;
  3087. width: 100%;
  3088. justify-content: flex-start;
  3089. "
  3090. v-if="studyJuri[0].upVedio.length > 0"
  3091. >
  3092. <div
  3093. style="
  3094. width: 100%;
  3095. display: flex;
  3096. flex-direction: row;
  3097. flex-wrap: wrap;
  3098. align-content: flex-start;
  3099. justify-content: flex-start;
  3100. align-items: center;
  3101. "
  3102. >
  3103. <div
  3104. class="uploadVedio isAddThings"
  3105. v-for="(v, vIndex) in studyJuri[0].upVedio"
  3106. :key="vIndex"
  3107. >
  3108. <img src="../assets/uploadMp4.png" alt />
  3109. <span>{{ v.name }}</span>
  3110. <div class="deleteWord" @click="clean(2)">
  3111. <img src="../assets/icon/delete.png" alt />
  3112. </div>
  3113. </div>
  3114. </div>
  3115. </div>
  3116. </div>-->
  3117. <div class="upload_send" @click="addCourseWorks(taskCount)">提交</div>
  3118. </el-dialog>
  3119. </div>
  3120. </div>
  3121. <div
  3122. class="pButton"
  3123. @click="(pzDialog = true), selectPz()"
  3124. v-if="tType == 4"
  3125. >
  3126. <!-- 批 -->
  3127. <img src="../assets/pzBtn2.png" style="width: 25px" alt="" />
  3128. </div>
  3129. <div v-if="pzDialog == true" class="newDialogCss">
  3130. <div class="pzTop2">
  3131. <!-- <div>批注</div>
  3132. <div @click="pzDialog = false">
  3133. <img src="../assets/close1.png" alt="" />
  3134. </div> -->
  3135. <div class="checkbox">
  3136. <div class="check" style="font-size: 25px">听课笔记</div>
  3137. <img src="../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3138. </div>
  3139. </div>
  3140. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3141. <div class="pzListBox" v-if="pzList && pzList.length">
  3142. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3143. <div class="pzNavTop">
  3144. <div>批</div>
  3145. <div>
  3146. {{
  3147. pz.username.length > 5
  3148. ? pz.username.substring(0, 5) + "..."
  3149. : pz.username
  3150. }}的批注
  3151. </div>
  3152. <div
  3153. class="pzDelete"
  3154. v-if="pz.userid == userid"
  3155. @click="deletePz(pz.id)"
  3156. >
  3157. 删除
  3158. </div>
  3159. </div>
  3160. <div
  3161. class="pzContent cont"
  3162. v-html="pz.content"
  3163. v-if="pz.type == '1'"
  3164. >
  3165. <!-- {{ }} -->
  3166. </div>
  3167. <div class="pzContent" v-if="pz.type == '2'">
  3168. <audio :src="pz.content" controls="controls" ref="audio">
  3169. Your browser does not support the audio element.
  3170. </audio>
  3171. </div>
  3172. <div class="pzContent" v-if="pz.type == '3'">
  3173. <img
  3174. :src="pz.content"
  3175. style="width: 90%; margin: 0 auto; display: block"
  3176. @click="previewImg(pz.content)"
  3177. />
  3178. </div>
  3179. <div class="time">
  3180. {{ pz.time }}
  3181. </div>
  3182. </div>
  3183. </div>
  3184. <div class="noPz" v-else>
  3185. <img src="../assets/icon/noPz.png" alt="" />
  3186. </div>
  3187. <div class="addPzButton">
  3188. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3189. 添加批注
  3190. </div>
  3191. <div class="img1">
  3192. <div @click="(addPzDialog = true), (pzType = 2)">
  3193. <img src="../assets/audio.png" /><span>音频</span>
  3194. </div>
  3195. <!-- <img src="../assets/picture.png" @click="addPzDialog = true,pzType = 3" /> -->
  3196. </div>
  3197. </div>
  3198. </div>
  3199. </div>
  3200. <div v-if="addPzDialog == true" class="addDialogCss">
  3201. <div class="pzTop">
  3202. <div class="teacherPz">
  3203. <div class="teacherPzImg">
  3204. <img src="../assets/icon/teacherPz.png" alt="" />
  3205. </div>
  3206. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3207. </div>
  3208. <div @click="addPzDialog = false">
  3209. <img src="../assets/close1.png" alt="" />
  3210. </div>
  3211. </div>
  3212. <div class="addPzBox">
  3213. <div class="addPzCheck">
  3214. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  3215. >文本</span
  3216. >
  3217. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3218. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  3219. >音频</span
  3220. >
  3221. </div>
  3222. <div style="height: calc(100% - 95px)">
  3223. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3224. v-if="pzType == 1"></textarea> -->
  3225. <editor-bar
  3226. class="binfo_input pzConText"
  3227. style="width: 100% !important"
  3228. placeholder="请输入任务描述"
  3229. v-model="pzConText"
  3230. @change="change"
  3231. v-if="pzType == 1"
  3232. ></editor-bar>
  3233. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3234. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3235. <div @click="addImg($event)">
  3236. <el-button type="primary">上传图片</el-button>
  3237. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3238. @change="beforeUpload1($event, 4)" />
  3239. </div>
  3240. </div> -->
  3241. </div>
  3242. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3243. 确定
  3244. </div>
  3245. </div>
  3246. </div>
  3247. <div v-if="proVisible" class="mask">
  3248. <div class="progressBox">
  3249. <div class="lbox">
  3250. <img src="../assets/loading.gif" />上传中,请稍后
  3251. </div>
  3252. <el-progress
  3253. :text-inside="true"
  3254. :stroke-width="20"
  3255. :percentage="progress"
  3256. style="width: 80%"
  3257. ></el-progress>
  3258. </div>
  3259. </div>
  3260. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3261. <img width="100%" :src="dialogImageUrl" alt />
  3262. </el-dialog>
  3263. <el-dialog
  3264. :title="noteName != '' ? noteName : '查看问卷'"
  3265. :visible.sync="dialogVisible5"
  3266. :append-to-body="true"
  3267. width="1000px"
  3268. :before-close="handleClose"
  3269. class="dialog_diy dialog_diy3"
  3270. >
  3271. <div>
  3272. <div
  3273. class="a_add_title"
  3274. style="
  3275. display: flex;
  3276. flex-direction: row;
  3277. align-items: center;
  3278. justify-content: center;
  3279. "
  3280. >
  3281. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3282. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3283. </div>
  3284. <div class="a_addBox">
  3285. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3286. <div
  3287. class="a_add_box"
  3288. v-for="(item1, index1) in askJson.askCount"
  3289. :key="index1"
  3290. >
  3291. <div class="a_add_head">
  3292. <div style="display: flex">
  3293. {{ index1 + 1 + "、" }}
  3294. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3295. </div>
  3296. <img
  3297. v-if="askJson.askJson[index1].img"
  3298. :src="askJson.askJson[index1].img"
  3299. style="width: 100%; margin-top: 10px"
  3300. />
  3301. </div>
  3302. <div class="a_add_body">
  3303. <div class="a_add_input">
  3304. <el-radio-group v-model="radio[index1]">
  3305. <el-radio
  3306. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3307. .checkList"
  3308. :key="checkIndex"
  3309. :label="checkIndex"
  3310. :disabled="isAnswer"
  3311. class="redioStyle"
  3312. ><span v-html="item2"></span
  3313. ></el-radio>
  3314. </el-radio-group>
  3315. </div>
  3316. </div>
  3317. </div>
  3318. </div>
  3319. </div>
  3320. <span slot="footer" class="dialog-footer">
  3321. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  3322. >取 消</el-button
  3323. >
  3324. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  3325. >确 定</el-button
  3326. >
  3327. </span>
  3328. </el-dialog>
  3329. <el-dialog
  3330. :title="noteName != '' ? noteName : '查看问卷'"
  3331. :visible.sync="dialogVisibleChoice"
  3332. :append-to-body="true"
  3333. width="1000px"
  3334. :before-close="handleClose"
  3335. class="dialog_diy dialog_diy3"
  3336. >
  3337. <div>
  3338. <div
  3339. class="a_add_title"
  3340. style="
  3341. display: flex;
  3342. flex-direction: row;
  3343. align-items: center;
  3344. justify-content: center;
  3345. "
  3346. >
  3347. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3348. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  3349. </div>
  3350. <div class="a_addBox">
  3351. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3352. <div
  3353. class="a_add_box"
  3354. v-for="(item1, index1) in testJson.testCount"
  3355. :key="index1"
  3356. >
  3357. <div class="a_add_head">
  3358. <div style="display: flex">
  3359. {{ index1 + 1 + "、" }}
  3360. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3361. </div>
  3362. <img
  3363. v-if="testJson.testJson[index1].img"
  3364. :src="testJson.testJson[index1].img"
  3365. style="width: 100%; margin-top: 10px"
  3366. />
  3367. </div>
  3368. <div class="a_add_body">
  3369. <div class="a_add_input">
  3370. <el-radio-group
  3371. v-model="radio[index1]"
  3372. v-if="testJson.testJson[index1].type == '1'"
  3373. >
  3374. <el-radio
  3375. v-for="(item2, checkIndex) in testJson.testJson[index1]
  3376. .checkList"
  3377. :key="checkIndex"
  3378. :label="checkIndex"
  3379. :disabled="isAnswer"
  3380. class="redioStyle"
  3381. ><span v-html="item2"></span
  3382. ></el-radio>
  3383. </el-radio-group>
  3384. <el-checkbox-group
  3385. v-model="radio[index1]"
  3386. v-if="testJson.testJson[index1].type == '2'"
  3387. >
  3388. <el-checkbox
  3389. v-for="(item2, checkIndex) in testJson.testJson[index1]
  3390. .checkList"
  3391. :key="checkIndex"
  3392. :label="checkIndex"
  3393. :disabled="isAnswer"
  3394. class="redioStyle"
  3395. >
  3396. <span v-html="item2"></span>
  3397. </el-checkbox>
  3398. </el-checkbox-group>
  3399. </div>
  3400. </div>
  3401. </div>
  3402. </div>
  3403. </div>
  3404. <span slot="footer" class="dialog-footer">
  3405. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  3406. >取 消</el-button
  3407. >
  3408. <el-button
  3409. type="primary"
  3410. @click="addStudentTest"
  3411. v-show="noteName == ''"
  3412. >确 定</el-button
  3413. >
  3414. </span>
  3415. </el-dialog>
  3416. <el-dialog
  3417. title="查看富文本"
  3418. :visible.sync="dialogVisible1"
  3419. :append-to-body="true"
  3420. width="500px"
  3421. :before-close="handleClose"
  3422. class="dialog_diy textCss"
  3423. >
  3424. <el-form style="font-size: 20px">
  3425. <el-form-item label="文本标题" class="textTitle">
  3426. <div style="font-size: 20px">{{ text.name }}</div>
  3427. </el-form-item>
  3428. <div>富文本内容</div>
  3429. <div
  3430. v-html="text.url"
  3431. style="font-size: 18px; padding: 40px 0 0 0"
  3432. ></div>
  3433. </el-form>
  3434. <span slot="footer" class="dialog-footer">
  3435. <el-button type="primary" @click="dialogVisible1 = false"
  3436. >确定</el-button
  3437. >
  3438. </span>
  3439. </el-dialog>
  3440. <el-dialog
  3441. title="文件预览"
  3442. :visible.sync="dialogVisible3"
  3443. width="50%"
  3444. :before-close="handleClose"
  3445. class="dialog_diy"
  3446. :class="{ fullStyle: full }"
  3447. >
  3448. <div slot="title" class="header-title">
  3449. <div style="color: #fff">文件预览</div>
  3450. <div style="position: absolute; top: 19px; right: 50px">
  3451. <img
  3452. src="../assets/full.png"
  3453. style="height: 16px; cursor: pointer"
  3454. alt=""
  3455. @click="fullTools"
  3456. />
  3457. </div>
  3458. </div>
  3459. <pdf
  3460. v-if="showPDF"
  3461. :pdfUrl="pptImgUrl"
  3462. style="width: 100%; height: 520px; overflow: auto"
  3463. :class="{ fullStyle: full }"
  3464. ></pdf>
  3465. <iframe
  3466. v-else
  3467. :src="pptImgUrl"
  3468. frameborder="0"
  3469. width="100%"
  3470. height="600"
  3471. :class="{ fullStyle: full }"
  3472. ></iframe>
  3473. </el-dialog>
  3474. <el-dialog
  3475. title="文件预览"
  3476. :visible.sync="dialogVisible6"
  3477. width="50%"
  3478. :before-close="handleClose"
  3479. class="dialog_diy"
  3480. >
  3481. <iframe
  3482. :src="pptImgUrl1"
  3483. frameborder="0"
  3484. width="100%"
  3485. height="600"
  3486. ></iframe>
  3487. </el-dialog>
  3488. <el-dialog
  3489. title="提示"
  3490. :visible.sync="dialogVisible4"
  3491. :append-to-body="true"
  3492. width="800px"
  3493. :before-close="handleClose"
  3494. class="dialog_diy notice"
  3495. >
  3496. <div>此功能暂未开放!</div>
  3497. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3498. </el-dialog>
  3499. <el-dialog
  3500. title="问答"
  3501. :visible.sync="answerDialogVisible"
  3502. :append-to-body="true"
  3503. width="800px"
  3504. :before-close="handleClose"
  3505. class="dialog_diy"
  3506. >
  3507. <div>
  3508. <div
  3509. style="
  3510. display: flex;
  3511. flex-wrap: nowrap;
  3512. flex-direction: column;
  3513. position: relative;
  3514. "
  3515. >
  3516. <div class="queTop" style="padding: 20px 0 20px 0">
  3517. <div class="question">
  3518. <img src="../assets/icon/question.png" alt />
  3519. </div>
  3520. <div class="queTitle">
  3521. <div style="width: 90px; min-width: 90px">提问:</div>
  3522. <div>{{ answerQ }}</div>
  3523. </div>
  3524. </div>
  3525. <div class="ediBottom">
  3526. <textarea
  3527. rows="6"
  3528. class="binfo_input"
  3529. cols
  3530. style="width: 95%; height: 120px"
  3531. v-model="questionAnswer"
  3532. ></textarea>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. <div slot="footer">
  3537. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3538. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3539. </div>
  3540. </el-dialog>
  3541. <el-dialog
  3542. title="倒计时"
  3543. :visible.sync="timeDialogVisible"
  3544. :append-to-body="true"
  3545. width="800px"
  3546. :before-close="handleClose"
  3547. class="dialog_diy"
  3548. >
  3549. <div>
  3550. <Time v-if="timeDialogVisible"></Time>
  3551. </div>
  3552. <div slot="footer">
  3553. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3554. </div>
  3555. </el-dialog>
  3556. <el-dialog
  3557. title="权限设置"
  3558. :visible.sync="juriVisible"
  3559. :append-to-body="true"
  3560. width="400px"
  3561. :before-close="handleClose"
  3562. class="dialog_diy"
  3563. >
  3564. <div>
  3565. <div>
  3566. <div>
  3567. <el-switch
  3568. v-model="sIsOpen"
  3569. active-text="学生是否能查看所有作业"
  3570. class="switchCss"
  3571. @change="updateSLook"
  3572. ></el-switch>
  3573. </div>
  3574. </div>
  3575. </div>
  3576. <div slot="footer">
  3577. <el-button
  3578. style="background: #409efe; color: #fff"
  3579. @click="juriVisible = false"
  3580. >关 闭</el-button
  3581. >
  3582. </div>
  3583. </el-dialog>
  3584. <el-dialog
  3585. title="查看视频"
  3586. :visible.sync="videoVisible"
  3587. :append-to-body="true"
  3588. width="1000px"
  3589. :before-close="handleClose"
  3590. class="dialog_diy1"
  3591. >
  3592. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3593. <video-player
  3594. class="video-player vjs-custom-skin"
  3595. :playsinline="true"
  3596. :options="videoDetail"
  3597. @play="onPlayerPlay($event)"
  3598. style="width: 100%; height: 100%"
  3599. ></video-player>
  3600. </div>
  3601. <div slot="footer">
  3602. <el-button
  3603. style="background: #409efe; color: #fff"
  3604. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  3605. >
  3606. 关 闭</el-button
  3607. >
  3608. </div>
  3609. </el-dialog>
  3610. <el-dialog
  3611. title="查看详情"
  3612. :visible.sync="commentDialogVisible"
  3613. :append-to-body="true"
  3614. width="800px"
  3615. :before-close="handleClose"
  3616. class="dialog_diy"
  3617. >
  3618. <div class="commentTop">
  3619. <div class="studentDetail">
  3620. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  3621. <div class="nameAndTime">
  3622. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3623. <div>{{ commentDetail.time }}</div>
  3624. </div>
  3625. </div>
  3626. <div
  3627. class="worksAnswer"
  3628. v-if="commentDetail.works && commentDetail.type == 2"
  3629. >
  3630. {{ JSON.parse(commentDetail.works)[0].answer }}
  3631. </div>
  3632. <div
  3633. class="worksAnswer"
  3634. v-if="commentDetail.works && commentDetail.type == 1"
  3635. >
  3636. <pdf
  3637. v-if="showPDF"
  3638. :pdfUrl="pptImgUrl"
  3639. style="width: 100%; height: 520px; overflow: auto"
  3640. :class="{ fullStyle: full }"
  3641. ></pdf>
  3642. <iframe
  3643. v-else
  3644. :src="pptImgUrl"
  3645. frameborder="0"
  3646. width="100%"
  3647. height="600"
  3648. :class="{ fullStyle: full }"
  3649. ></iframe>
  3650. </div>
  3651. <div
  3652. class="worksAnswer"
  3653. v-if="commentDetail.works && commentDetail.type == 0"
  3654. >
  3655. <img
  3656. :src="commentDetail.works"
  3657. alt=""
  3658. @click="previewImg(commentDetail.works)"
  3659. />
  3660. </div>
  3661. <div
  3662. class="worksAnswer"
  3663. v-if="commentDetail.works && commentDetail.type == 3"
  3664. >
  3665. <video-player
  3666. class="video-player vjs-custom-skin"
  3667. :playsinline="true"
  3668. :options="videoDetail"
  3669. @play="onPlayerPlay($event)"
  3670. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  3671. ></video-player>
  3672. </div>
  3673. <div
  3674. class="worksAnswer"
  3675. v-if="commentDetail.works && commentDetail.type == 4"
  3676. >
  3677. <div class="evalCss">
  3678. <div class="nav">请选择星星进行评分</div>
  3679. <div class="middleBox" v-if="eScore.eStar">
  3680. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3681. <div class="nameAndrate">
  3682. <div>{{ e.value }}</div>
  3683. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  3684. </div>
  3685. <div v-if="e.detail">{{ e.detail }}</div>
  3686. </div>
  3687. <div class="bz">
  3688. <textarea
  3689. disabled
  3690. rows="4"
  3691. class="pj"
  3692. style="
  3693. padding: 10px 5px;
  3694. width: 70%;
  3695. background: #f7f6f9;
  3696. font-size: 14px;
  3697. text-indent: 10px;
  3698. color: #000;
  3699. "
  3700. cols
  3701. v-model="eScore.eBzText"
  3702. placeholder="请输入评价内容..."
  3703. ></textarea>
  3704. </div>
  3705. </div>
  3706. </div>
  3707. </div>
  3708. <div class="comment">
  3709. <div class="commentList">
  3710. <div class="commentImg">
  3711. <img
  3712. @click="
  3713. isLikes(
  3714. commentDetail.wid,
  3715. commentDetail.userid,
  3716. 1,
  3717. null,
  3718. commentDetail.isLikes
  3719. )
  3720. "
  3721. :src="commentDetail.isLikes == true ? likes : noLikes"
  3722. alt=""
  3723. />
  3724. </div>
  3725. <div>{{ commentDetail.likesCount }}</div>
  3726. </div>
  3727. <div class="commentList">
  3728. <div class="commentImg">
  3729. <img src="../assets/icon/comment/comment.png" alt="" />
  3730. </div>
  3731. <div>{{ commentDetail.commentCount }}</div>
  3732. </div>
  3733. </div>
  3734. </div>
  3735. <div class="commentBox">
  3736. <div class="pl">评论:</div>
  3737. <div style="max-height: 200px; overflow: auto">
  3738. <div v-if="commentDetail.commentJson" style="padding: 10px 0 0 0">
  3739. <div
  3740. class="studentDetail"
  3741. style="padding-top: 10px"
  3742. v-for="(co, coIndex) in commentDetail.commentJson"
  3743. :key="coIndex"
  3744. >
  3745. <div class="tx" style="min-width: 50px">
  3746. <img src="../assets/avatar.png" alt="" />
  3747. </div>
  3748. <div class="plPerson">
  3749. <div class="plName">
  3750. <div>{{ co.commentPeople }}</div>
  3751. <div style="margin-left: 5px">
  3752. {{ co.commentTime }}
  3753. </div>
  3754. </div>
  3755. <div class="plContent">{{ co.commentText }}</div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  3760. </div>
  3761. </div>
  3762. <div style="margin-top: 10px">
  3763. <div class="displayBox">
  3764. <div
  3765. style="
  3766. color: #556db4;
  3767. font-size: 14px;
  3768. font-weight: bold;
  3769. padding-bottom: 10px;
  3770. "
  3771. >
  3772. 评价
  3773. </div>
  3774. <div class="easy_comment">
  3775. <div
  3776. v-for="(p, pIndex) in PlTextList"
  3777. :key="pIndex"
  3778. @click="fastText(p, 1)"
  3779. >
  3780. {{ p }}
  3781. </div>
  3782. </div>
  3783. </div>
  3784. <div>
  3785. <textarea
  3786. rows="3"
  3787. class="pj"
  3788. style="padding: 10px 5px"
  3789. cols
  3790. v-model="commentText"
  3791. placeholder="请输入对该学生的评价"
  3792. ></textarea>
  3793. </div>
  3794. </div>
  3795. <div slot="footer">
  3796. <el-button
  3797. @click="
  3798. (commentDialogVisible = false),
  3799. (commentIndexJson = {}),
  3800. videoDetail.sources && videoDetail.sources[0]
  3801. ? (videoDetail.sources[0].src = '')
  3802. : ''
  3803. "
  3804. >取 消</el-button
  3805. >
  3806. <el-button
  3807. type="primary"
  3808. @click="addComment(commentDetail.wid, userid, 2)"
  3809. >确 定</el-button
  3810. >
  3811. </div>
  3812. </el-dialog>
  3813. <el-dialog
  3814. title="查看文档"
  3815. :visible.sync="fullDialogVisible"
  3816. :append-to-body="true"
  3817. width="100%"
  3818. :before-close="handleClose"
  3819. :show-close="false"
  3820. class="dialog_diy full_diy"
  3821. >
  3822. <div slot="title" class="header-title">
  3823. <div style="color: #fff">查看文档</div>
  3824. <div
  3825. @click="fullDialogVisible = false"
  3826. style="
  3827. cursor: pointer;
  3828. position: absolute;
  3829. top: 20px;
  3830. right: 20px;
  3831. color: #fff;
  3832. "
  3833. >
  3834. 退出全屏
  3835. </div>
  3836. </div>
  3837. <div style="height: 100%">
  3838. <iframe
  3839. v-if="fulltype == 2"
  3840. style="width: 100%; height: 100%; border: none"
  3841. :src="fullUrl"
  3842. ></iframe>
  3843. <pdf
  3844. v-else-if="fulltype == 3"
  3845. :pdfUrl="fullUrl"
  3846. style="width: 100%; height: 100%; overflow: auto"
  3847. ></pdf>
  3848. <div
  3849. class="wheel"
  3850. v-if="fulltype == 1"
  3851. style="
  3852. box-shadow: 0 0 6px 1px #f2f2f2;
  3853. width: 100%;
  3854. background: #f1f1f1;
  3855. "
  3856. >
  3857. <div class="title" style="width: 100%; box-sizing: border-box">
  3858. 查看文档
  3859. </div>
  3860. <el-form class="textBox" style="height: 90%">
  3861. <el-form-item class="textTitle">
  3862. <div style="font-size: 22px; max-height: 100px; overflow: auto">
  3863. {{ fullUrl.name }}
  3864. </div>
  3865. </el-form-item>
  3866. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  3867. <div
  3868. v-html="fullUrl.url"
  3869. class="textContent"
  3870. style="height: auto"
  3871. ></div>
  3872. </el-form>
  3873. </div>
  3874. </div>
  3875. <!-- <div slot="footer">
  3876. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  3877. </div> -->
  3878. </el-dialog>
  3879. <el-dialog
  3880. title="学生评价"
  3881. :visible.sync="studentEvalDialogVisible"
  3882. :append-to-body="true"
  3883. width="800px"
  3884. :before-close="handleClose"
  3885. class="dialog_diy"
  3886. >
  3887. <div class="evalCss">
  3888. <div class="nav">请选择星星进行评分</div>
  3889. <div class="middleBox" v-if="eScore.eStar">
  3890. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3891. <div class="nameAndrate">
  3892. <div>{{ e.value }}</div>
  3893. <el-rate
  3894. v-model="eScore.eStar[eIndex]"
  3895. :disabled="isStar"
  3896. ></el-rate>
  3897. </div>
  3898. <div v-if="e.detail">{{ e.detail }}</div>
  3899. </div>
  3900. <div class="easy_comment" v-if="isStar == false">
  3901. <div
  3902. v-for="(p, pIndex) in PlTextList"
  3903. :key="pIndex"
  3904. @click="fastText(p, 2)"
  3905. >
  3906. {{ p }}
  3907. </div>
  3908. </div>
  3909. <div class="bz">
  3910. <textarea
  3911. :disabled="isStar"
  3912. rows="4"
  3913. class="pj"
  3914. style="
  3915. padding: 10px 5px;
  3916. width: 70%;
  3917. background: #f7f6f9;
  3918. font-size: 14px;
  3919. text-indent: 10px;
  3920. "
  3921. cols
  3922. v-model="eScore.eBzText"
  3923. placeholder="请输入评价内容..."
  3924. ></textarea>
  3925. </div>
  3926. </div>
  3927. </div>
  3928. <div slot="footer">
  3929. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  3930. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  3931. >确 定</el-button
  3932. >
  3933. </div>
  3934. </el-dialog>
  3935. <el-dialog
  3936. title="选择填空"
  3937. :visible.sync="dialogVisibleSelect"
  3938. :append-to-body="true"
  3939. width="90%"
  3940. :before-close="handleClose"
  3941. class="dialog_diy dialog_diy3"
  3942. >
  3943. <div v-if="selectJson">
  3944. <div class="select_box2">
  3945. <div class="select_box2_title">
  3946. <div>选择填空</div>
  3947. <div>请选择对应的答案进行答题!</div>
  3948. </div>
  3949. <div class="select_box2_box">
  3950. <div class="select_box2_img">
  3951. <img
  3952. :src="selectJson.url"
  3953. @click="previewImg(selectJson.url)"
  3954. alt=""
  3955. />
  3956. </div>
  3957. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  3958. <div style="padding-top: 15px">
  3959. <div class="select_answer_title" v-if="isSelect">
  3960. {{ selectAnswer.stu }}
  3961. </div>
  3962. <div class="select_answer_title" v-else>
  3963. 根据题目选择对应答案
  3964. </div>
  3965. <div
  3966. class="select_box2_answer_box"
  3967. v-for="(item2, checkIndex) in selectJson.select"
  3968. :key="checkIndex"
  3969. >
  3970. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  3971. <el-select
  3972. :disabled="isSelect"
  3973. v-model="selectAnswer.answer[checkIndex]"
  3974. placeholder="请选择正确答案"
  3975. >
  3976. <el-option
  3977. v-for="(e, eIndex) in selectJson.select"
  3978. :key="eIndex"
  3979. :label="e"
  3980. :value="eIndex"
  3981. >
  3982. </el-option>
  3983. </el-select>
  3984. </div>
  3985. </div>
  3986. <div
  3987. class="rightAnswerCss"
  3988. v-if="isSelect && (tType == 1 || tType == 4)"
  3989. >
  3990. <div
  3991. v-for="(a, aIndex) in selectJson.answer"
  3992. :key="aIndex"
  3993. class="rightAnswer"
  3994. >
  3995. <div
  3996. v-if="selectAnswer.answer[aIndex] === a"
  3997. style="color: #767de1"
  3998. >
  3999. 回答正确
  4000. </div>
  4001. <div v-else>回答错误</div>
  4002. <div
  4003. style="margin-left: 10px"
  4004. v-if="selectAnswer.answer[aIndex] !== a"
  4005. >
  4006. 正确答案:
  4007. </div>
  4008. <div
  4009. :class="
  4010. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4011. "
  4012. >
  4013. {{ selectJson.select[a] }}
  4014. </div>
  4015. </div>
  4016. </div>
  4017. </div>
  4018. <div class="upAnswerCss">
  4019. <el-button
  4020. type="primary"
  4021. @click="addSelectAnswer"
  4022. v-if="!isSelect"
  4023. >提交答案</el-button
  4024. >
  4025. </div>
  4026. </div>
  4027. </div>
  4028. </div>
  4029. </el-dialog>
  4030. <el-dialog
  4031. title="教师评分"
  4032. :visible.sync="dialogVisibleScore"
  4033. :append-to-body="true"
  4034. width="800px"
  4035. :before-close="handleClose"
  4036. class="dialog_diy"
  4037. >
  4038. <div>
  4039. <div class="studentDetail">
  4040. <div class="tx"><img src="../assets/avatar.png" alt="" /></div>
  4041. <div class="nameAndTime">
  4042. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4043. <div>{{ commentDetail.time }}</div>
  4044. </div>
  4045. </div>
  4046. <div
  4047. class="worksAnswer"
  4048. v-if="commentDetail.works && commentDetail.type == 2"
  4049. >
  4050. {{ JSON.parse(commentDetail.works)[0].answer }}
  4051. </div>
  4052. <div
  4053. class="worksAnswer"
  4054. v-if="commentDetail.works && commentDetail.type == 1"
  4055. >
  4056. <pdf
  4057. v-if="showPDF"
  4058. :pdfUrl="pptImgUrl"
  4059. style="width: 100%; height: 520px; overflow: auto"
  4060. :class="{ fullStyle: full }"
  4061. ></pdf>
  4062. <iframe
  4063. v-else
  4064. :src="pptImgUrl"
  4065. frameborder="0"
  4066. width="100%"
  4067. height="600"
  4068. :class="{ fullStyle: full }"
  4069. ></iframe>
  4070. </div>
  4071. <div
  4072. class="worksAnswer"
  4073. v-if="commentDetail.works && commentDetail.type == 0"
  4074. >
  4075. <img
  4076. :src="commentDetail.works"
  4077. alt=""
  4078. @click="previewImg(commentDetail.works)"
  4079. />
  4080. </div>
  4081. <div
  4082. class="worksAnswer"
  4083. v-if="commentDetail.works && commentDetail.type == 3"
  4084. >
  4085. <video-player
  4086. class="video-player vjs-custom-skin"
  4087. :playsinline="true"
  4088. :options="videoDetail"
  4089. @play="onPlayerPlay($event)"
  4090. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  4091. ></video-player>
  4092. </div>
  4093. <div class="scoreBox">
  4094. <span class="t">请输入分数</span
  4095. ><el-input-number
  4096. :disabled="courseDetail.userid != userid"
  4097. v-model="wScore"
  4098. :controls="false"
  4099. :min="0"
  4100. :max="100"
  4101. ></el-input-number>
  4102. </div>
  4103. <div class="scoreDetailBox">
  4104. <span class="t">评分评论</span>
  4105. <el-input
  4106. type="textarea"
  4107. :rows="5"
  4108. :disabled="courseDetail.userid != userid"
  4109. resize="none"
  4110. v-model="scoreDetail"
  4111. placeholder="请输入对学生的评价"
  4112. >
  4113. </el-input>
  4114. </div>
  4115. </div>
  4116. <span slot="footer" class="dialog-footer">
  4117. <el-button
  4118. @click="
  4119. (dialogVisibleScore = false),
  4120. (commentIndexJson = {}),
  4121. videoDetail.sources && videoDetail.sources[0]
  4122. ? (videoDetail.sources[0].src = '')
  4123. : ''
  4124. "
  4125. >取 消</el-button
  4126. >
  4127. <el-button
  4128. type="primary"
  4129. v-if="courseDetail.userid == userid"
  4130. @click="scoreWork(commentDetail.wid)"
  4131. >确 定</el-button
  4132. >
  4133. </span>
  4134. </el-dialog>
  4135. </div>
  4136. </template>
  4137. <script>
  4138. import "../common/aws-sdk-2.235.1.min.js";
  4139. import pdf from "./components/pdf3";
  4140. import AskStatic from "./components/askStatic";
  4141. import AskStatic2 from "./components/askStatic2";
  4142. import AnswerData2 from "./components/answerData2";
  4143. import EditorBar from "./tools/wangEnduit.vue";
  4144. import Time from "./tools/time.vue";
  4145. import Mind from "./tools/jsmind.vue";
  4146. import Sunburst from "./tools/sunburst";
  4147. import SeeBoard from "./tools/seeBoard";
  4148. import * as imageConversion from "image-conversion";
  4149. import Audio from "./components/audio.vue";
  4150. export default {
  4151. components: {
  4152. EditorBar,
  4153. Time,
  4154. pdf,
  4155. AskStatic,
  4156. AskStatic2,
  4157. Mind,
  4158. Sunburst,
  4159. SeeBoard,
  4160. AnswerData2,
  4161. Audio,
  4162. },
  4163. data() {
  4164. return {
  4165. dialogVisible: false,
  4166. commentDialogVisible: false,
  4167. videoVisible: false,
  4168. isStar: false,
  4169. studentEvalDialogVisible: false,
  4170. dialogVisibleSelect: false,
  4171. dialogVisibleScore: false,
  4172. bzText: "",
  4173. commentDetail: [],
  4174. selectAnswer: [],
  4175. videoDetail: {},
  4176. selectJson: {},
  4177. eScore: { eBzText: "", eStar: [] },
  4178. id: this.$route.query.courseId,
  4179. userid: this.$route.query.userid,
  4180. classId: this.$route.query.cid,
  4181. // courseTypeLine: this.$route.query.type,
  4182. oid: this.$route.query.oid,
  4183. org: this.$route.query.org,
  4184. tType: this.$route.query.tType,
  4185. courseType: this.$route.query.type,
  4186. screenType: this.$route.query.screenType,
  4187. pptImgUrl: "",
  4188. pptImgUrl1: "",
  4189. commentText: "",
  4190. full: false,
  4191. sIsOpen: false,
  4192. pzDialog: false,
  4193. type: 1,
  4194. vedio: [],
  4195. text: [],
  4196. textList: [],
  4197. line: [],
  4198. lineList: [],
  4199. chapTools: [],
  4200. chapToolList: [],
  4201. file: [],
  4202. vedioTime: [],
  4203. upToolImg: "",
  4204. rateList: {
  4205. ca: 0,
  4206. },
  4207. rateParams: [],
  4208. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  4209. studyJuri: [
  4210. {
  4211. content: "",
  4212. cover: [],
  4213. upVedio: [],
  4214. upFile: [],
  4215. },
  4216. ],
  4217. mr: require("../assets/vedioPic.png"),
  4218. word: require("../assets/icon/isWord.png"),
  4219. video: require("../assets/icon/isVideo.png"),
  4220. noLikes: require("../assets/icon/comment/noLikes.png"),
  4221. likes: require("../assets/icon/comment/likes.png"),
  4222. scoreImg: require("../assets/score.png"),
  4223. courseDetail: {},
  4224. isSelect: false,
  4225. chapInfo: [],
  4226. chapInfoList: [],
  4227. taskCount: 0,
  4228. imgList: [],
  4229. noImgList: [],
  4230. pzList: [],
  4231. PlTextList: [
  4232. "Excellent!",
  4233. "nice!",
  4234. "很有创意!",
  4235. "还不错哦~",
  4236. "继续努力哦~",
  4237. ],
  4238. isClickNav: "",
  4239. navId: "",
  4240. playerOptions: {
  4241. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4242. autoplay: false, //如果true,浏览器准备好时开始回放。
  4243. muted: false, // 默认情况下将会消除任何音频。
  4244. loop: false, // 导致视频一结束就重新开始。
  4245. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4246. language: "zh-CN",
  4247. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4248. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4249. sources: [
  4250. {
  4251. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4252. src: "", //url地址require("../../assets/media/aaa.mp4")
  4253. },
  4254. ],
  4255. // poster: require("../../assets/tu31.png"), //你的封面地址
  4256. // poster: dataRes.imgUrl, //你的封面地址
  4257. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4258. controlBar: {
  4259. timeDivider: true, //当前时间和持续时间的分隔符
  4260. durationDisplay: true, //显示持续时间
  4261. remainingTimeDisplay: false, //是否显示剩余时间功能
  4262. fullscreenToggle: true, //全屏按钮
  4263. },
  4264. },
  4265. playerOptions1: {
  4266. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  4267. autoplay: false, //如果true,浏览器准备好时开始回放。
  4268. muted: false, // 默认情况下将会消除任何音频。
  4269. loop: false, // 导致视频一结束就重新开始。
  4270. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  4271. language: "zh-CN",
  4272. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  4273. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  4274. sources: [
  4275. {
  4276. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  4277. src: "", //url地址require("../../assets/media/aaa.mp4")
  4278. },
  4279. ],
  4280. // poster: require("../../assets/tu31.png"), //你的封面地址
  4281. // poster: dataRes.imgUrl, //你的封面地址
  4282. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  4283. controlBar: {
  4284. timeDivider: true, //当前时间和持续时间的分隔符
  4285. durationDisplay: true, //显示持续时间
  4286. remainingTimeDisplay: false, //是否显示剩余时间功能
  4287. fullscreenToggle: true, //全屏按钮
  4288. },
  4289. },
  4290. playerO: {},
  4291. noneBtnImg: false,
  4292. proVisible: false,
  4293. progress: 0,
  4294. questionAnswer: "",
  4295. answerQ: "", //问答标题
  4296. rateJson: [],
  4297. wbCount: 0,
  4298. wordCount: 0,
  4299. mindCount: 0,
  4300. askCount: 0,
  4301. noteCount: 0,
  4302. mindNetWorkCount: 0,
  4303. libraryCount: 0,
  4304. workCount: 0,
  4305. timeCount: 0,
  4306. answerCount: 0,
  4307. trainCount: 0,
  4308. evalCount: 0,
  4309. dialogImageUrl: "",
  4310. pictureDialog: false,
  4311. toolTypeList: [],
  4312. dialogVisible1: false,
  4313. dialogVisible2: false,
  4314. dialogVisible3: false,
  4315. dialogVisible6: false,
  4316. dialogVisible4: false,
  4317. isNoHomeWork: false,
  4318. dialogVisible5: false,
  4319. dialogVisibleChoice: false,
  4320. answerDialogVisible: false,
  4321. juriVisible: false,
  4322. timeDialogVisible: false,
  4323. radio: [],
  4324. isAsk: false,
  4325. askJson: {
  4326. askCount: 1,
  4327. askTitle: "",
  4328. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4329. },
  4330. testJson: {},
  4331. checkJson: [],
  4332. askList: [],
  4333. answerList: [],
  4334. navList: [],
  4335. addPzDialog: false,
  4336. pzConText: "",
  4337. worksStudent: [],
  4338. workStudent: [],
  4339. noWorksS: [],
  4340. isWorksS: [],
  4341. noWorksStudent: [],
  4342. toolindex: 0,
  4343. workTypeA: false,
  4344. workTypeB: false,
  4345. workTypeC: false,
  4346. isAnswer: false,
  4347. timer: null,
  4348. showType: 0,
  4349. fileType: 0,
  4350. showPDF: false,
  4351. noteName: "",
  4352. evaJuri: [],
  4353. evalua: "",
  4354. eTitle: "",
  4355. eName: "",
  4356. eJson: {},
  4357. fid: "", //一级
  4358. sid: "", //二级
  4359. tid: "", //二级
  4360. typeMode: 1,
  4361. eJSONNum: 0,
  4362. Etype: 1,
  4363. data: {
  4364. meta: {
  4365. name: "example",
  4366. author: "dd@163.com",
  4367. version: "0.2",
  4368. },
  4369. format: "node_array",
  4370. data: [{ id: "root", isroot: true, topic: "" }],
  4371. },
  4372. fullDialogVisible: false,
  4373. fulltype: "",
  4374. fullUrl: "",
  4375. commentIndexJson: {},
  4376. Stbodywidth: 0,
  4377. pzType: 1,
  4378. wScore: 0,
  4379. scoreDetail: "",
  4380. };
  4381. },
  4382. methods: {
  4383. jump() {
  4384. window.parent.postMessage({ tools: "43" }, "*");
  4385. },
  4386. previewImg(url) {
  4387. this.$hevueImgPreview(url);
  4388. },
  4389. change(val) {
  4390. console.log(val);
  4391. },
  4392. goTo(path) {
  4393. this.$router.push(path);
  4394. },
  4395. handlePictureCardPreview(url) {
  4396. this.dialogImageUrl = url;
  4397. this.pictureDialog = true;
  4398. },
  4399. clean(type) {
  4400. if (type == 1) {
  4401. this.studyJuri[0].cover.splice(0, 1);
  4402. } else if (type == 2) {
  4403. this.studyJuri[0].upVedio.splice(0, 1);
  4404. } else {
  4405. this.studyJuri[0].upFile.splice(0, 1);
  4406. }
  4407. },
  4408. handleClose(done) {
  4409. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  4410. this.videoDetail.sources[0].src = "";
  4411. }
  4412. this.commentIndexJson = {};
  4413. done();
  4414. },
  4415. fullTools() {
  4416. this.full = !this.full;
  4417. },
  4418. imgChange(file, fileList, type) {
  4419. if (type == 1) {
  4420. var _tmp = this.studyJuri[0].cover;
  4421. } else if (type == 2) {
  4422. var _tmp = this.studyJuri[0].upVedio;
  4423. } else {
  4424. var _tmp = this.studyJuri[0].upFile;
  4425. }
  4426. this.noneBtnImg = _tmp.length >= 1;
  4427. },
  4428. addImg(e) {
  4429. var el = e.currentTarget;
  4430. // this.$message.success('触发上传')
  4431. el.getElementsByTagName("input")[0].click();
  4432. },
  4433. addSelectAnswer() {
  4434. let params = [
  4435. {
  4436. uid: this.userid,
  4437. cid: this.id,
  4438. stage: this.courseType,
  4439. task: this.taskCount,
  4440. tool: this.toolindex,
  4441. content: this.selectAnswer.answer,
  4442. type: 7,
  4443. },
  4444. ];
  4445. this.ajax
  4446. .post(this.$store.state.api + "addCourseWorks", params)
  4447. .then((res) => {
  4448. this.$message({
  4449. message: "提交成功",
  4450. type: "success",
  4451. });
  4452. this.dialogVisibleSelect = false;
  4453. // this.selectAnswer = {};
  4454. this.selectSWorks();
  4455. this.selectStudent();
  4456. })
  4457. .catch((err) => {
  4458. this.$message.error("提交失败");
  4459. console.error(err);
  4460. });
  4461. },
  4462. addCourseWorks(i) {
  4463. var typesql;
  4464. if (this.fileType === 0) {
  4465. typesql = 1;
  4466. } else if (this.fileType === 1) {
  4467. typesql = 4;
  4468. } else {
  4469. typesql = 5;
  4470. }
  4471. if (this.workTypeA == true) {
  4472. this.$confirm(
  4473. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  4474. "提示",
  4475. {
  4476. confirmButtonText: "确定",
  4477. cancelButtonText: "取消",
  4478. type: "warning",
  4479. }
  4480. )
  4481. .then(() => {
  4482. let params = [
  4483. {
  4484. uid: this.userid,
  4485. cid: this.id,
  4486. stage: this.courseType,
  4487. task: i,
  4488. tool: this.toolindex,
  4489. content: this.studyJuri[0].cover[0].url,
  4490. type: typesql,
  4491. },
  4492. ];
  4493. this.ajax
  4494. .post(this.$store.state.api + "addCourseWorks", params)
  4495. .then((res) => {
  4496. this.$message({
  4497. message: "提交成功",
  4498. type: "success",
  4499. });
  4500. this.studyJuri[0].cover = [];
  4501. this.dialogVisible = false;
  4502. this.getCourseDetail();
  4503. })
  4504. .catch((err) => {
  4505. this.$message.error("提交失败");
  4506. console.error(err);
  4507. });
  4508. })
  4509. .catch(() => {});
  4510. } else {
  4511. let params = [
  4512. {
  4513. uid: this.userid,
  4514. cid: this.id,
  4515. stage: this.courseType,
  4516. task: i,
  4517. tool: this.toolindex,
  4518. content: this.studyJuri[0].cover[0].url,
  4519. type: typesql,
  4520. },
  4521. ];
  4522. this.ajax
  4523. .post(this.$store.state.api + "addCourseWorks", params)
  4524. .then((res) => {
  4525. this.$message({
  4526. message: "提交成功",
  4527. type: "success",
  4528. });
  4529. this.studyJuri[0].cover = [];
  4530. this.dialogVisible = false;
  4531. this.getCourseDetail();
  4532. })
  4533. .catch((err) => {
  4534. this.$message.error("提交失败");
  4535. console.error(err);
  4536. });
  4537. }
  4538. },
  4539. selectWorksStudent() {
  4540. let params = {
  4541. oid: this.oid,
  4542. cid: this.courseDetail.juri,
  4543. };
  4544. this.ajax
  4545. .get(this.$store.state.api + "selectWorksStudent", params)
  4546. .then((res) => {
  4547. var a = res.data[0];
  4548. for (var i = 0; i < this.isWorksS.length; i++) {
  4549. this.noWorksS[i] = [];
  4550. var studentK = [];
  4551. if (this.isWorksS[i].length > 0) {
  4552. for (var z = 0; z < this.isWorksS[i].length; z++) {
  4553. studentK.push(this.isWorksS[i][z].uid);
  4554. }
  4555. studentK = studentK.join(",");
  4556. for (var j = 0; j < a.length; j++) {
  4557. if (studentK.indexOf(a[j].userid) == -1) {
  4558. this.noWorksS[i].push({ student: a[j].name });
  4559. }
  4560. }
  4561. } else {
  4562. for (var k = 0; k < a.length; k++) {
  4563. this.noWorksS[i].push({ student: a[k].name });
  4564. }
  4565. }
  4566. }
  4567. this.$forceUpdate();
  4568. if (
  4569. Object.keys(this.commentIndexJson).length &&
  4570. !this.dialogVisibleScore
  4571. ) {
  4572. this.commentOther(
  4573. this.worksStudent[this.commentIndexJson.toolIndex][
  4574. this.commentIndexJson.wIndex
  4575. ],
  4576. this.commentIndexJson.toolIndex,
  4577. this.commentIndexJson.wIndex
  4578. );
  4579. }
  4580. })
  4581. .catch((err) => {
  4582. console.error(err);
  4583. });
  4584. },
  4585. selectStudent() {
  4586. //学生查看自己作业
  4587. let params = {
  4588. uid: this.userid,
  4589. cid: this.id,
  4590. s: this.courseType,
  4591. t: this.taskCount,
  4592. };
  4593. this.ajax
  4594. .get(this.$store.state.api + "selectStudentWorks", params)
  4595. .then((res) => {
  4596. var a =
  4597. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4598. this.taskCount
  4599. ].toolChoose;
  4600. var b = res.data[0];
  4601. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4602. var y = [
  4603. "AVI",
  4604. "NAVI",
  4605. "MPEG",
  4606. "ASF",
  4607. "MOV",
  4608. "WMV",
  4609. "3GP",
  4610. "RM",
  4611. "RMVB",
  4612. "FLV",
  4613. "F4V",
  4614. "H.264",
  4615. "H.265",
  4616. "REAL VIDEO",
  4617. "MKV",
  4618. "WebM",
  4619. "HDDVD",
  4620. "MP4",
  4621. "MPG",
  4622. "M4V",
  4623. "MGV",
  4624. "OGV",
  4625. "QTM",
  4626. "STR",
  4627. "AMC",
  4628. "DVX",
  4629. "EVO",
  4630. "DAT",
  4631. "OGG",
  4632. "OGM",
  4633. ];
  4634. for (var i = 0; i < a.length; i++) {
  4635. this.workStudent[i] = [];
  4636. for (var j = 0; j < b.length; j++) {
  4637. if (i == b[j].tool) {
  4638. if (
  4639. (b[j].type == 1 ||
  4640. b[j].type == 4 ||
  4641. b[j].type == 5 ||
  4642. b[j].type == 6 ||
  4643. b[j].type == 7) &&
  4644. a[i].tool[0] != 15 &&
  4645. a[i].tool[0] != 4 &&
  4646. a[i].tool[0] != 45
  4647. ) {
  4648. if (
  4649. c.indexOf(
  4650. b[j].content
  4651. .split(".")
  4652. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4653. ) != -1
  4654. ) {
  4655. this.workStudent[i].push({
  4656. works: b[j].content,
  4657. sName: b[j].name,
  4658. score: b[j].score,
  4659. type: 1,
  4660. time: b[j].time,
  4661. });
  4662. } else if (
  4663. y.indexOf(
  4664. b[j].content
  4665. .split(".")
  4666. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  4667. ) != -1
  4668. ) {
  4669. this.workStudent[i].push({
  4670. userid: b[j].userid,
  4671. wid: b[j].id,
  4672. works: b[j].content,
  4673. sName: b[j].name,
  4674. score: b[j].score,
  4675. type: 3,
  4676. time: b[j].time,
  4677. });
  4678. } else if (b[j].type == 6) {
  4679. this.workStudent[i].push({
  4680. userid: b[j].userid,
  4681. wid: b[j].id,
  4682. works: b[j].content,
  4683. sName: b[j].name,
  4684. score: b[j].score,
  4685. type: 4,
  4686. time: b[j].time,
  4687. });
  4688. } else if (b[j].type == 7) {
  4689. this.workStudent[i].push({
  4690. userid: b[j].userid,
  4691. wid: b[j].id,
  4692. works: b[j].content,
  4693. sName: b[j].name,
  4694. score: b[j].score,
  4695. type: 5,
  4696. time: b[j].time,
  4697. });
  4698. } else {
  4699. this.workStudent[i].push({
  4700. works: b[j].content,
  4701. sName: b[j].name,
  4702. score: b[j].score,
  4703. type: 0,
  4704. time: b[j].time,
  4705. });
  4706. }
  4707. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  4708. this.workStudent[i].push({
  4709. works: b[j].content,
  4710. sName: b[j].name,
  4711. score: b[j].score,
  4712. type: 2,
  4713. time: b[j].time,
  4714. });
  4715. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  4716. //问卷
  4717. this.workStudent[i].push({
  4718. works: b[j].content,
  4719. sName: b[j].name,
  4720. score: b[j].score,
  4721. type: 2,
  4722. time: b[j].time,
  4723. });
  4724. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  4725. //选择题
  4726. this.workStudent[i].push({
  4727. works: b[j].content,
  4728. sName: b[j].name,
  4729. score: b[j].score,
  4730. type: 8,
  4731. time: b[j].time,
  4732. });
  4733. }
  4734. }
  4735. }
  4736. }
  4737. })
  4738. .catch((err) => {
  4739. console.error(err);
  4740. });
  4741. },
  4742. openVideo(w) {
  4743. this.videoDetail = {};
  4744. this.playerOptions1.sources[0].src = w;
  4745. this.videoDetail = this.playerOptions1;
  4746. this.videoVisible = true;
  4747. },
  4748. isLikes(wid, uid, t, c, isLikes) {
  4749. if (isLikes == false) {
  4750. let params = [
  4751. {
  4752. wid: wid,
  4753. lid: uid,
  4754. t: t,
  4755. c: c,
  4756. },
  4757. ];
  4758. this.ajax
  4759. .post(this.$store.state.api + "insertComment", params)
  4760. .then((res) => {
  4761. this.$message({
  4762. message: "点赞成功",
  4763. type: "success",
  4764. });
  4765. this.selectSWorks();
  4766. this.selectStudent();
  4767. })
  4768. .catch((err) => {
  4769. this.$message.error("点赞失败");
  4770. console.error(err);
  4771. });
  4772. } else {
  4773. let params = {
  4774. wid: wid,
  4775. lid: uid,
  4776. type: t,
  4777. };
  4778. this.ajax
  4779. .get(this.$store.state.api + "deleteComment", params)
  4780. .then((res) => {
  4781. this.$message({
  4782. message: "取消点赞成功",
  4783. type: "success",
  4784. });
  4785. this.selectSWorks();
  4786. this.selectStudent();
  4787. })
  4788. .catch((err) => {
  4789. console.error(err);
  4790. });
  4791. }
  4792. },
  4793. commentOther(w, toolIndex, wIndex) {
  4794. this.commentIndexJson = { toolIndex: toolIndex, wIndex: wIndex };
  4795. this.commentDetail = [];
  4796. this.commentDialogVisible = true;
  4797. this.commentDetail = w;
  4798. if (w.works && w.type == 1) {
  4799. this.pptImgUrl = "";
  4800. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  4801. if (
  4802. a.indexOf(
  4803. w.works
  4804. .split(".")
  4805. [w.works.split(".").length - 1].toLocaleUpperCase()
  4806. ) != -1
  4807. ) {
  4808. this.pptImgUrl =
  4809. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  4810. this.showPDF = false;
  4811. } else if (
  4812. w.works
  4813. .split(".")
  4814. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  4815. ) {
  4816. this.pptImgUrl = w.works;
  4817. this.showPDF = true;
  4818. }
  4819. } else if (w.works && w.type == 3) {
  4820. this.videoDetail = {};
  4821. this.playerOptions1.sources[0].src = w.works;
  4822. this.videoDetail = this.playerOptions1;
  4823. // this.videoVisible = true;
  4824. } else if (w.works && w.type == 4) {
  4825. this.eScore = JSON.parse(w.works);
  4826. this.rateJson =
  4827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4828. this.taskCount
  4829. ].toolChoose[toolIndex].rateJson;
  4830. }
  4831. },
  4832. openScore(w) {
  4833. this.wScore = 0;
  4834. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  4835. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  4836. this.commentDetail = [];
  4837. this.dialogVisibleScore = true;
  4838. this.commentDetail = w;
  4839. if (w.works && w.type == 1) {
  4840. this.pptImgUrl = "";
  4841. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  4842. if (
  4843. a.indexOf(
  4844. w.works
  4845. .split(".")
  4846. [w.works.split(".").length - 1].toLocaleUpperCase()
  4847. ) != -1
  4848. ) {
  4849. this.pptImgUrl =
  4850. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  4851. this.showPDF = false;
  4852. } else if (
  4853. w.works
  4854. .split(".")
  4855. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  4856. ) {
  4857. this.pptImgUrl = w.works;
  4858. this.showPDF = true;
  4859. }
  4860. } else if (w.works && w.type == 3) {
  4861. this.videoDetail = {};
  4862. this.playerOptions1.sources[0].src = w.works;
  4863. this.videoDetail = this.playerOptions1;
  4864. }
  4865. },
  4866. addComment(wid, uid, t) {
  4867. if (this.commentText == "") {
  4868. this.$message.error("请输入对该学生的评价");
  4869. return;
  4870. }
  4871. let params = [
  4872. {
  4873. wid: wid,
  4874. lid: uid,
  4875. t: t,
  4876. c: this.commentText,
  4877. },
  4878. ];
  4879. this.ajax
  4880. .post(this.$store.state.api + "insertComment", params)
  4881. .then((res) => {
  4882. this.$message({
  4883. message: "评论成功",
  4884. type: "success",
  4885. });
  4886. this.commentText = "";
  4887. this.selectSWorks();
  4888. this.selectStudent();
  4889. })
  4890. .catch((err) => {
  4891. this.$message.error("评论失败");
  4892. console.error(err);
  4893. });
  4894. },
  4895. scoreWork(wid) {
  4896. if (this.wScore == 0) {
  4897. this.$message.error("请评分");
  4898. return;
  4899. }
  4900. let params = [
  4901. {
  4902. wid: wid,
  4903. score: JSON.stringify({
  4904. wScore: this.wScore,
  4905. detail: this.scoreDetail,
  4906. }),
  4907. },
  4908. ];
  4909. this.ajax
  4910. .post(this.$store.state.api + "scoreWork", params)
  4911. .then((res) => {
  4912. this.$message({
  4913. message: "评分成功",
  4914. type: "success",
  4915. });
  4916. this.wScore = 0;
  4917. this.scoreDetail = "";
  4918. this.dialogVisibleScore = false;
  4919. this.selectSWorks();
  4920. this.selectStudent();
  4921. })
  4922. .catch((err) => {
  4923. this.$message.error("评分失败");
  4924. console.error(err);
  4925. });
  4926. },
  4927. openXz(w, i) {
  4928. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  4929. .taskJson[this.taskCount].toolChoose[i].selectJson
  4930. ? JSON.parse(
  4931. JSON.stringify(
  4932. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4933. this.taskCount
  4934. ].toolChoose[i].selectJson
  4935. )
  4936. )
  4937. : { url: "", select: [], answer: [] };
  4938. var a = w.works.split(",");
  4939. for (var k = 0; k < a.length; k++) {
  4940. a[k] = parseInt(a[k]);
  4941. }
  4942. this.selectAnswer = { answer: a, stu: w.sName };
  4943. this.isSelect = true;
  4944. this.dialogVisibleSelect = true;
  4945. },
  4946. openPj(w, toolindex) {
  4947. this.isStar = true;
  4948. this.eScore = JSON.parse(w);
  4949. this.rateJson =
  4950. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4951. this.taskCount
  4952. ].toolChoose[toolindex].rateJson;
  4953. this.studentEvalDialogVisible = true;
  4954. },
  4955. selectSWorks() {
  4956. //教师查看全部作业
  4957. let params = {
  4958. cid: this.id,
  4959. s: this.courseType,
  4960. t: this.taskCount,
  4961. };
  4962. this.ajax
  4963. .get(this.$store.state.api + "selectSWorks", params)
  4964. .then((res) => {
  4965. var a =
  4966. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4967. this.taskCount
  4968. ].toolChoose;
  4969. var b = res.data[0];
  4970. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4971. var y = [
  4972. "AVI",
  4973. "NAVI",
  4974. "MPEG",
  4975. "ASF",
  4976. "MOV",
  4977. "WMV",
  4978. "3GP",
  4979. "RM",
  4980. "RMVB",
  4981. "FLV",
  4982. "F4V",
  4983. "H.264",
  4984. "H.265",
  4985. "REAL VIDEO",
  4986. "MKV",
  4987. "WebM",
  4988. "HDDVD",
  4989. "MP4",
  4990. "MPG",
  4991. "M4V",
  4992. "MGV",
  4993. "OGV",
  4994. "QTM",
  4995. "STR",
  4996. "AMC",
  4997. "DVX",
  4998. "EVO",
  4999. "DAT",
  5000. "OGG",
  5001. "OGM",
  5002. ];
  5003. var d = res.data[1];
  5004. var e = res.data[2];
  5005. for (var i = 0; i < a.length; i++) {
  5006. this.worksStudent[i] = [];
  5007. this.isWorksS[i] = [];
  5008. this.checkJson[i] = [];
  5009. for (var j = 0; j < b.length; j++) {
  5010. var likesCount = 0;
  5011. var commentCount = 0;
  5012. var isLikes = false;
  5013. var commentJson = [];
  5014. var data = b[j];
  5015. if (i == b[j].tool) {
  5016. if (data.type == 2 && a[i].tool[0] == 4) {
  5017. var checkL = JSON.parse(data.content)[0].anwer.split(",");
  5018. for (var z = 0; z < checkL.length; z++) {
  5019. if (!this.checkJson[i][z]) {
  5020. this.checkJson[i].push({
  5021. checkCount: [],
  5022. checkPerson: [],
  5023. rightPerson: [],
  5024. });
  5025. }
  5026. if (!this.checkJson[i][z].checkCount.length) {
  5027. this.checkJson[i][z].checkCount = [];
  5028. let _askItemCount = JSON.parse(data.content)[0].askJson
  5029. .askJson[z].askItem;
  5030. for (var aic = 0; aic < _askItemCount; aic++) {
  5031. this.checkJson[i][z].checkCount.push(0);
  5032. }
  5033. }
  5034. if (
  5035. (JSON.parse(data.content)[0].askJson.askJson[z].answer || JSON.parse(data.content)[0].askJson.askJson[z].answer == 0) &&
  5036. JSON.parse(data.content)[0].askJson.askJson[z].answer ==
  5037. checkL[z]
  5038. ) {
  5039. this.checkJson[i][z].rightPerson.push(data.name);
  5040. }
  5041. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  5042. ? this.checkJson[i][z].checkPerson[
  5043. parseInt(checkL[z])
  5044. ].push(data.name)
  5045. : (this.checkJson[i][z].checkPerson[parseInt(checkL[z])] =
  5046. [data.name]);
  5047. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  5048. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  5049. : (this.checkJson[i][z].checkCount[
  5050. parseInt(checkL[z])
  5051. ] = 1);
  5052. }
  5053. } else if (data.type == 8 && a[i].tool[0] == 45) {
  5054. var checkL = JSON.parse(data.content)[0].anwer;
  5055. for (var z = 0; z < checkL.length; z++) {
  5056. if (!this.checkJson[i][z]) {
  5057. this.checkJson[i].push({
  5058. checkCount: [],
  5059. checkPerson: [],
  5060. rightPerson: [],
  5061. });
  5062. }
  5063. if (!this.checkJson[i][z].checkCount.length) {
  5064. this.checkJson[i][z].checkCount = [];
  5065. let _askItemCount = JSON.parse(data.content)[0].testJson
  5066. .testJson[z].testItem;
  5067. for (var aic = 0; aic < _askItemCount; aic++) {
  5068. this.checkJson[i][z].checkCount.push(0);
  5069. }
  5070. }
  5071. if (checkL[z] instanceof Array) {
  5072. if (
  5073. JSON.parse(data.content)[0].testJson.testJson[
  5074. z
  5075. ].answer.join(",") == checkL[z].join(",")
  5076. ) {
  5077. this.checkJson[i][z].rightPerson.push(data.name);
  5078. }
  5079. for (var q = 0; q < checkL[z].length; q++) {
  5080. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  5081. ? this.checkJson[i][z].checkPerson[
  5082. parseInt(checkL[z][q])
  5083. ].push(data.name)
  5084. : (this.checkJson[i][z].checkPerson[
  5085. parseInt(checkL[z][q])
  5086. ] = [data.name]);
  5087. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  5088. ? this.checkJson[i][z].checkCount[
  5089. parseInt(checkL[z][q])
  5090. ]++
  5091. : (this.checkJson[i][z].checkCount[
  5092. parseInt(checkL[z][q])
  5093. ] = 1);
  5094. }
  5095. } else {
  5096. if (
  5097. JSON.parse(data.content)[0].testJson.testJson[z]
  5098. .answer == checkL[z]
  5099. ) {
  5100. this.checkJson[i][z].rightPerson.push(data.name);
  5101. }
  5102. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  5103. ? this.checkJson[i][z].checkPerson[
  5104. parseInt(checkL[z])
  5105. ].push(data.name)
  5106. : (this.checkJson[i][z].checkPerson[
  5107. parseInt(checkL[z])
  5108. ] = [data.name]);
  5109. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  5110. ? this.checkJson[i][z].checkCount[parseInt(checkL[z])]++
  5111. : (this.checkJson[i][z].checkCount[
  5112. parseInt(checkL[z])
  5113. ] = 1);
  5114. }
  5115. }
  5116. }
  5117. for (var k = 0; k < d.length; k++) {
  5118. //点赞
  5119. if (d[k].workId == b[j].id) {
  5120. likesCount++;
  5121. if (d[k].likesId == this.userid) {
  5122. isLikes = true;
  5123. }
  5124. }
  5125. }
  5126. for (var l = 0; l < e.length; l++) {
  5127. //评论
  5128. if (e[l].workId == b[j].id) {
  5129. if (e[l].comment != "") {
  5130. commentCount++;
  5131. commentJson.push({
  5132. commentText: e[l].comment,
  5133. commentTime: e[l].commentTime,
  5134. commentPeople: e[l].commentPeople,
  5135. });
  5136. }
  5137. }
  5138. }
  5139. if (
  5140. (b[j].type == 1 ||
  5141. b[j].type == 4 ||
  5142. b[j].type == 5 ||
  5143. b[j].type == 6 ||
  5144. b[j].type == 7) &&
  5145. a[i].tool[0] != 15 &&
  5146. a[i].tool[0] != 4 &&
  5147. a[i].tool[0] != 45
  5148. ) {
  5149. if (
  5150. c.indexOf(
  5151. b[j].content
  5152. .split(".")
  5153. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  5154. ) != -1
  5155. ) {
  5156. this.worksStudent[i].push({
  5157. userid: b[j].userid,
  5158. wid: b[j].id,
  5159. works: b[j].content,
  5160. sName: b[j].name,
  5161. type: 1,
  5162. time: b[j].time,
  5163. score: b[j].score,
  5164. likesCount: likesCount,
  5165. commentCount: commentCount,
  5166. isLikes: isLikes,
  5167. commentJson: commentJson,
  5168. });
  5169. } else if (
  5170. y.indexOf(
  5171. b[j].content
  5172. .split(".")
  5173. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  5174. ) != -1
  5175. ) {
  5176. this.worksStudent[i].push({
  5177. userid: b[j].userid,
  5178. wid: b[j].id,
  5179. works: b[j].content,
  5180. sName: b[j].name,
  5181. type: 3,
  5182. time: b[j].time,
  5183. score: b[j].score,
  5184. likesCount: likesCount,
  5185. commentCount: commentCount,
  5186. isLikes: isLikes,
  5187. commentJson: commentJson,
  5188. });
  5189. } else if (b[j].type == 6) {
  5190. this.worksStudent[i].push({
  5191. userid: b[j].userid,
  5192. wid: b[j].id,
  5193. works: b[j].content,
  5194. sName: b[j].name,
  5195. type: 4,
  5196. time: b[j].time,
  5197. score: b[j].score,
  5198. likesCount: likesCount,
  5199. commentCount: commentCount,
  5200. isLikes: isLikes,
  5201. commentJson: commentJson,
  5202. });
  5203. } else if (b[j].type == 7) {
  5204. this.worksStudent[i].push({
  5205. userid: b[j].userid,
  5206. wid: b[j].id,
  5207. works: b[j].content,
  5208. sName: b[j].name,
  5209. type: 5,
  5210. time: b[j].time,
  5211. score: b[j].score,
  5212. likesCount: likesCount,
  5213. commentCount: commentCount,
  5214. isLikes: isLikes,
  5215. commentJson: commentJson,
  5216. });
  5217. } else {
  5218. this.worksStudent[i].push({
  5219. userid: b[j].userid,
  5220. wid: b[j].id,
  5221. works: b[j].content,
  5222. sName: b[j].name,
  5223. type: 0,
  5224. time: b[j].time,
  5225. score: b[j].score,
  5226. likesCount: likesCount,
  5227. commentCount: commentCount,
  5228. isLikes: isLikes,
  5229. commentJson: commentJson,
  5230. });
  5231. }
  5232. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  5233. this.worksStudent[i].push({
  5234. userid: b[j].userid,
  5235. wid: b[j].id,
  5236. works: b[j].content,
  5237. sName: b[j].name,
  5238. type: 2,
  5239. time: b[j].time,
  5240. score: b[j].score,
  5241. likesCount: likesCount,
  5242. commentCount: commentCount,
  5243. isLikes: isLikes,
  5244. commentJson: commentJson,
  5245. });
  5246. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  5247. //问卷
  5248. this.worksStudent[i].push({
  5249. userid: b[j].userid,
  5250. wid: b[j].id,
  5251. works: b[j].content,
  5252. sName: b[j].name,
  5253. type: 2,
  5254. time: b[j].time,
  5255. score: b[j].score,
  5256. likesCount: likesCount,
  5257. commentCount: commentCount,
  5258. isLikes: isLikes,
  5259. commentJson: commentJson,
  5260. });
  5261. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  5262. //选择题
  5263. this.worksStudent[i].push({
  5264. userid: b[j].userid,
  5265. wid: b[j].id,
  5266. works: b[j].content,
  5267. sName: b[j].name,
  5268. type: 8,
  5269. time: b[j].time,
  5270. score: b[j].score,
  5271. likesCount: likesCount,
  5272. commentCount: commentCount,
  5273. isLikes: isLikes,
  5274. commentJson: commentJson,
  5275. });
  5276. }
  5277. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  5278. }
  5279. }
  5280. if (this.worksStudent[i] && this.worksStudent[i].length) {
  5281. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  5282. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  5283. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  5284. var scoreA = parseFloat(jscoreA);
  5285. var scoreB = parseFloat(jscoreB);
  5286. if (scoreA == scoreB) {
  5287. return b.likesCount - a.likesCount;
  5288. }
  5289. return scoreB - scoreA;
  5290. });
  5291. }
  5292. }
  5293. for (var i = 0; i < a.length; i++) {
  5294. for (var j = 0; j < b.length; j++) {
  5295. var data = b[j];
  5296. if (i == b[j].tool) {
  5297. if (data.type == 2 || data.type == 8) {
  5298. for (var z = 0; z < this.checkJson[i].length; z++) {
  5299. this.checkJson[i][z].checkPerent = [];
  5300. this.checkJson[i][z].right = Math.round(
  5301. (this.checkJson[i][z].rightPerson.length /
  5302. parseInt(this.worksStudent[i].length)) *
  5303. 100
  5304. );
  5305. for (
  5306. var k = 0;
  5307. k < this.checkJson[i][z].checkCount.length;
  5308. k++
  5309. ) {
  5310. this.checkJson[i][z].checkPerent.push(
  5311. Math.round(
  5312. (this.checkJson[i][z].checkCount[k] /
  5313. parseInt(this.worksStudent[i].length)) *
  5314. 100
  5315. )
  5316. );
  5317. }
  5318. }
  5319. }
  5320. }
  5321. }
  5322. }
  5323. this.selectWorksStudent();
  5324. })
  5325. .catch((err) => {
  5326. console.error(err);
  5327. });
  5328. },
  5329. pngToWhiteBg(file) {
  5330. const _file = file;
  5331. let read = new FileReader();
  5332. read.readAsDataURL(file); // 文件转base64
  5333. return new Promise((resolve, reject) => {
  5334. read.onload = (e) => {
  5335. let img = new Image();
  5336. img.src = e.target.result;
  5337. img.onload = async () => {
  5338. // 生成canvas
  5339. let canvas = document.createElement("canvas");
  5340. let context = canvas.getContext("2d");
  5341. // 绘制图片到canvas上
  5342. canvas.width = img.width;
  5343. canvas.height = img.height;
  5344. // 在canvas绘制前填充白色背景
  5345. context.fillStyle = "#fff";
  5346. context.fillRect(0, 0, canvas.width, canvas.height);
  5347. context.drawImage(img, 0, 0);
  5348. let base64 = canvas.toDataURL(file["type"], 1);
  5349. let newFile = this.dataUrlToFile(base64, _file);
  5350. resolve(newFile);
  5351. };
  5352. };
  5353. });
  5354. },
  5355. dataUrlToFile(dataurl, file) {
  5356. let arr = dataurl.split(","),
  5357. mime = arr[0].match(/:(.*?);/)[1],
  5358. bstr = atob(arr[1]),
  5359. n = bstr.length,
  5360. u8arr = new Uint8Array(n);
  5361. while (n--) {
  5362. u8arr[n] = bstr.charCodeAt(n);
  5363. }
  5364. // return new Blob([u8arr], { type: mime });
  5365. return new File([new Blob([u8arr], { type: mime })], file.name, {
  5366. type: mime,
  5367. });
  5368. },
  5369. async beforeUpload1(event, type, i) {
  5370. // this.$message.success('进入上传')
  5371. var file = event.target.files[0];
  5372. var credentials = {
  5373. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5374. secretAccessKey: "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",
  5375. }; //秘钥形式的登录上传
  5376. window.AWS.config.update(credentials);
  5377. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5378. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5379. var _this = this;
  5380. var b = [
  5381. "DOC",
  5382. "DOCX",
  5383. "DOCM",
  5384. "DOTM",
  5385. "DOTX",
  5386. "PPTX",
  5387. "PPSX",
  5388. "PPT",
  5389. "PPS",
  5390. "PPTM",
  5391. "POTM",
  5392. "PPAM",
  5393. "POTX",
  5394. "PPSM",
  5395. ];
  5396. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  5397. var photoA = [
  5398. "BMP",
  5399. "GIF",
  5400. "PNG",
  5401. "JPGE",
  5402. "JPG",
  5403. "TIF",
  5404. "PCX",
  5405. "TGA",
  5406. "EXIF",
  5407. "FPX",
  5408. "SVG",
  5409. "APNG",
  5410. ];
  5411. if (
  5412. b.indexOf(
  5413. file.name
  5414. .split(".")
  5415. [file.name.split(".").length - 1].toLocaleUpperCase()
  5416. ) != -1
  5417. ) {
  5418. if (file.size / 1024 / 1024 > 10) {
  5419. this.$message.error("上传文件大于10兆,请重新选择文件!");
  5420. return;
  5421. }
  5422. } else if (
  5423. excelA.indexOf(
  5424. file.name
  5425. .split(".")
  5426. [file.name.split(".").length - 1].toLocaleUpperCase()
  5427. ) != "-1"
  5428. ) {
  5429. if (file.size / 1024 / 1024 > 5) {
  5430. this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  5431. return;
  5432. }
  5433. }
  5434. if (
  5435. photoA.indexOf(
  5436. file.name
  5437. .split(".")
  5438. [file.name.split(".").length - 1].toLocaleUpperCase()
  5439. ) != -1 &&
  5440. type != 4
  5441. ) {
  5442. // const blob = await imageConversion.compress(file, 0.8)
  5443. file = await this.pngToWhiteBg(file);
  5444. const blob = await imageConversion.compressAccurately(file, 64);
  5445. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  5446. file = new File([blob], file.name, { type: file.type });
  5447. }
  5448. _this.progress = 0;
  5449. _this.proVisible = true;
  5450. if (file) {
  5451. var params = {
  5452. Key:
  5453. file.name.split(".")[0] +
  5454. new Date().getTime() +
  5455. "." +
  5456. file.name.split(".")[file.name.split(".").length - 1],
  5457. ContentType: file.type,
  5458. Body: file,
  5459. "Access-Control-Allow-Credentials": "*",
  5460. ACL: "public-read",
  5461. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5462. var options = {
  5463. // partSize: 2048 * 1024 * 1024,
  5464. partSize: 1024 * 1024 * 1024,
  5465. queueSize: 2,
  5466. leavePartsOnError: true,
  5467. };
  5468. bucket
  5469. .upload(params, options)
  5470. .on("httpUploadProgress", function (evt) {
  5471. //这里可以写进度条
  5472. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5473. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  5474. })
  5475. .send(function (err, data) {
  5476. _this.progress = 100;
  5477. setTimeout(() => {
  5478. _this.proVisible = false;
  5479. }, 1000);
  5480. if (err) {
  5481. var a = _this.$refs.upload1.uploadFiles;
  5482. a.splice(a.length - 1, a.length);
  5483. _this.$message.error("上传失败");
  5484. } else {
  5485. // _this.$message.success('上传成功')
  5486. if (type == 1) {
  5487. _this.studyJuri[0].cover.push({
  5488. name: file.name,
  5489. url: data.Location,
  5490. uid: file.uid,
  5491. });
  5492. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  5493. var c = [
  5494. "AVI",
  5495. "NAVI",
  5496. "MPEG",
  5497. "ASF",
  5498. "MOV",
  5499. "WMV",
  5500. "3GP",
  5501. "RM",
  5502. "RMVB",
  5503. "FLV",
  5504. "F4V",
  5505. "H.264",
  5506. "H.265",
  5507. "REAL VIDEO",
  5508. "MKV",
  5509. "WebM",
  5510. "HDDVD",
  5511. "MP4",
  5512. "MPG",
  5513. "M4V",
  5514. "MGV",
  5515. "OGV",
  5516. "QTM",
  5517. "STR",
  5518. "AMC",
  5519. "DVX",
  5520. "EVO",
  5521. "DAT",
  5522. "OGG",
  5523. "OGM",
  5524. ];
  5525. if (
  5526. c.indexOf(
  5527. _this.studyJuri[0].cover[0].url
  5528. .split(".")
  5529. [
  5530. _this.studyJuri[0].cover[0].url.split(".").length - 1
  5531. ].toLocaleUpperCase()
  5532. ) != -1
  5533. ) {
  5534. _this.fileType = 2;
  5535. } else if (
  5536. b.indexOf(
  5537. _this.studyJuri[0].cover[0].url
  5538. .split(".")
  5539. [
  5540. _this.studyJuri[0].cover[0].url.split(".").length - 1
  5541. ].toLocaleUpperCase()
  5542. ) != -1
  5543. ) {
  5544. _this.fileType = 1;
  5545. } else {
  5546. _this.fileType = 0;
  5547. }
  5548. _this.imgChange(null, null, type);
  5549. } else if (type == 2) {
  5550. _this.upToolImg = data.Location;
  5551. _this.imgChange(null, null, type);
  5552. _this.addCourseWorks(i);
  5553. } else if (type == 4) {
  5554. _this.addPz("3", data.Location);
  5555. }
  5556. _this.imgChange(null, null, type);
  5557. console.log(data.Location);
  5558. // _this.$message.success('上传成功'+data.Location)
  5559. }
  5560. });
  5561. }
  5562. },
  5563. beforeUpload2(event, type) {
  5564. var file = event.target.files[0];
  5565. var credentials = {
  5566. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5567. secretAccessKey: "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",
  5568. }; //秘钥形式的登录上传
  5569. window.AWS.config.update(credentials);
  5570. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5571. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5572. var _this = this;
  5573. _this.progress = 0;
  5574. _this.proVisible = true;
  5575. if (file) {
  5576. var params = {
  5577. Key:
  5578. file.name.split(".")[0] +
  5579. new Date().getTime() +
  5580. "." +
  5581. file.name.split(".")[file.name.split(".").length - 1],
  5582. ContentType: file.type,
  5583. Body: file,
  5584. "Access-Control-Allow-Credentials": "*",
  5585. ACL: "public-read",
  5586. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5587. var options = {
  5588. partSize: 2048 * 1024 * 1024,
  5589. queueSize: 2,
  5590. leavePartsOnError: true,
  5591. };
  5592. bucket
  5593. .upload(params, options)
  5594. .on("httpUploadProgress", function (evt) {
  5595. //这里可以写进度条
  5596. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5597. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  5598. })
  5599. .send(function (err, data) {
  5600. _this.progress = 100;
  5601. setTimeout(() => {
  5602. _this.proVisible = false;
  5603. }, 1000);
  5604. if (err) {
  5605. var a = _this.$refs.upload1.uploadFiles;
  5606. a.splice(a.length - 1, a.length);
  5607. _this.$message.error("上传失败");
  5608. } else {
  5609. if (type == 2) {
  5610. _this.studyJuri[0].upVedio.push({
  5611. name: file.name,
  5612. url: data.Location,
  5613. uid: file.uid,
  5614. });
  5615. _this.imgChange(null, null, type);
  5616. } else if (type == 3) {
  5617. _this.studyJuri[0].upFile.push({
  5618. name: file.name,
  5619. url: data.Location,
  5620. uid: file.uid,
  5621. });
  5622. _this.imgChange(null, null, type);
  5623. }
  5624. console.log(data.Location);
  5625. }
  5626. });
  5627. }
  5628. },
  5629. allScrell() {
  5630. window.parent.postMessage({ allScreen: this.screenType }, "*");
  5631. },
  5632. nextOrpreSteps(t) {
  5633. document.scrollingElement.scrollTop = 0;
  5634. this.showType = 0;
  5635. var b = this.chapInfoList.length - 1;
  5636. if (t == 0) {
  5637. if (this.courseType == 0) {
  5638. if (this.taskCount == 0) {
  5639. this.navList[this.courseType].isOpen = false;
  5640. this.courseType = b;
  5641. this.taskCount =
  5642. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  5643. .length - 1;
  5644. this.navList[this.courseType].isOpen = true;
  5645. } else {
  5646. this.taskCount--;
  5647. }
  5648. } else {
  5649. if (this.taskCount == 0) {
  5650. this.navList[this.courseType].isOpen = false;
  5651. this.courseType--;
  5652. this.taskCount =
  5653. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  5654. .length - 1;
  5655. this.navList[this.courseType].isOpen = true;
  5656. } else {
  5657. this.taskCount--;
  5658. }
  5659. }
  5660. } else {
  5661. var b = this.chapInfoList.length - 1;
  5662. if (this.courseType == b) {
  5663. if (
  5664. this.taskCount ==
  5665. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  5666. 1
  5667. ) {
  5668. this.navList[this.courseType].isOpen = false;
  5669. this.courseType = 0;
  5670. this.taskCount = 0;
  5671. this.navList[this.courseType].isOpen = true;
  5672. } else {
  5673. this.taskCount++;
  5674. }
  5675. } else {
  5676. if (
  5677. this.taskCount ==
  5678. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  5679. 1
  5680. ) {
  5681. this.navList[this.courseType].isOpen = false;
  5682. this.courseType++;
  5683. this.taskCount = 0;
  5684. this.navList[this.courseType].isOpen = true;
  5685. } else {
  5686. this.taskCount++;
  5687. }
  5688. }
  5689. // if (
  5690. // this.taskCount ==
  5691. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  5692. // ) {
  5693. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  5694. // } else {
  5695. // this.taskCount++;
  5696. // }
  5697. }
  5698. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5699. // if (this.vedio[this.taskCount].length > 0) {
  5700. // var a =
  5701. // document.getElementsByClassName("box_course")[this.taskCount]
  5702. // .offsetHeight;
  5703. // document.getElementsByClassName("vedioList")[
  5704. // this.taskCount
  5705. // ].style.height = a + "px";
  5706. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  5707. // a - 40 + "px";
  5708. // }
  5709. this.isNoHomeWork = false;
  5710. (this.studyJuri = [
  5711. {
  5712. content: "",
  5713. cover: [],
  5714. upVedio: [],
  5715. upFile: [],
  5716. },
  5717. ]),
  5718. (this.radio = []);
  5719. this.isClickNav = "";
  5720. this.getHomeWork();
  5721. this.getCourseDetail();
  5722. this.$forceUpdate();
  5723. },
  5724. openTask(s, n, i) {
  5725. document.scrollingElement.scrollTop = 0;
  5726. this.courseType = s;
  5727. this.navId = i;
  5728. this.taskCount = n;
  5729. this.showType = 0;
  5730. this.isNoHomeWork = false;
  5731. (this.studyJuri = [
  5732. {
  5733. content: "",
  5734. cover: [],
  5735. upVedio: [],
  5736. upFile: [],
  5737. },
  5738. ]),
  5739. (this.radio = []);
  5740. // setTimeout(() => {
  5741. // let a = document.getElementById(i);
  5742. // if (a.offsetTop - 110 == 0) {
  5743. // window.scrollTo(0, 0);
  5744. // } else {
  5745. // window.scrollTo(0, a.offsetTop);
  5746. // }
  5747. // }, 0);
  5748. this.selectPz();
  5749. this.getHomeWork();
  5750. this.getCourseDetail();
  5751. },
  5752. get(i) {
  5753. this.navList[i].isOpen = !this.navList[i].isOpen;
  5754. },
  5755. addQuestion() {
  5756. this.answerList.push({
  5757. answerTitle: this.answerQ,
  5758. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  5759. });
  5760. let params = [
  5761. {
  5762. uid: this.userid,
  5763. cid: this.id,
  5764. stage: this.courseType,
  5765. task: this.taskCount,
  5766. tool: this.toolindex,
  5767. content: JSON.stringify(this.answerList),
  5768. type: 3,
  5769. },
  5770. ];
  5771. this.ajax
  5772. .post(this.$store.state.api + "addCourseWorks", params)
  5773. .then((res) => {
  5774. this.$message({
  5775. message: "提交成功",
  5776. type: "success",
  5777. });
  5778. this.answerList = [];
  5779. this.answerDialogVisible = false;
  5780. })
  5781. .catch((err) => {
  5782. this.$message.error("提交失败");
  5783. console.error(err);
  5784. });
  5785. },
  5786. getCourseDetail() {
  5787. const loading = this.$loading.service({
  5788. background: "rgba(255, 255, 255, 0.7)",
  5789. target: document.querySelector(".student_table"),
  5790. });
  5791. // this.navList[0].isOpen = false;
  5792. // this.navList[this.courseType].isOpen = true;
  5793. // this.courseType = this.courseTypeLine;
  5794. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5795. let params = {
  5796. courseId: this.id,
  5797. };
  5798. this.ajax
  5799. .get(this.$store.state.api + "selectCourseDetail", params)
  5800. .then((res) => {
  5801. loading.close();
  5802. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5803. .chapterInfo[0].taskJson;
  5804. var b = [
  5805. "AVI",
  5806. "NAVI",
  5807. "MPEG",
  5808. "ASF",
  5809. "MOV",
  5810. "WMV",
  5811. "3GP",
  5812. "RM",
  5813. "RMVB",
  5814. "FLV",
  5815. "F4V",
  5816. "H.264",
  5817. "H.265",
  5818. "REAL VIDEO",
  5819. "MKV",
  5820. "WebM",
  5821. "HDDVD",
  5822. "MP4",
  5823. "MPG",
  5824. "M4V",
  5825. "MGV",
  5826. "OGV",
  5827. "QTM",
  5828. "STR",
  5829. "AMC",
  5830. "DVX",
  5831. "EVO",
  5832. "DAT",
  5833. "OGG",
  5834. "OGM",
  5835. ];
  5836. for (var i = 0; i < a.length; i++) {
  5837. var c = a[i].chapterData;
  5838. this.vedio[i] = [];
  5839. this.textList[i] = [];
  5840. this.lineList[i] = [];
  5841. this.chapToolList[i] = [];
  5842. this.file[i] = [];
  5843. for (var j = 0; j < c.length; j++) {
  5844. if (c[j].type == 7) {
  5845. this.chapToolList[i].push(c[j]);
  5846. } else if (c[j].type == 8) {
  5847. this.lineList[i].push(c[j]);
  5848. } else if (c[j].type == 6) {
  5849. this.textList[i].push(c[j]);
  5850. } else {
  5851. if (
  5852. b.indexOf(
  5853. c[j].url
  5854. .split(".")
  5855. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5856. ) != -1
  5857. ) {
  5858. this.vedio[i].push(c[j]);
  5859. } else {
  5860. this.file[i].push(c[j]);
  5861. }
  5862. }
  5863. }
  5864. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5865. d.sources[0].src =
  5866. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5867. this.playerO[i] = d;
  5868. }
  5869. this.courseDetail = res.data[0][0];
  5870. this.evalua = res.data[0][0].evaId;
  5871. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5872. this.courseType
  5873. ];
  5874. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5875. if (this.navList.length == 0) {
  5876. this.navList = [];
  5877. for (var l = 0; l < this.chapInfoList.length; l++) {
  5878. var q = this.chapInfoList[l].dyName;
  5879. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5880. var e;
  5881. this.navList.push({
  5882. dyName: q,
  5883. isOpen: l === 0 ? true : false,
  5884. task: [],
  5885. });
  5886. for (var r = 0; r < w.length; r++) {
  5887. e = w[r].task;
  5888. this.navList[l].task.push({ taskName: e, id: l + "-" + r });
  5889. this.navId = this.navId ? this.navId : l + "-" + r;
  5890. }
  5891. }
  5892. }
  5893. this.navList[0].isOpen = false;
  5894. this.navList[this.courseType].isOpen = true;
  5895. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5896. for (var l = 0; l < this.chapInfoList.length; l++) {
  5897. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5898. for (var m = 0; m < w.length; m++) {
  5899. w[m].id = l + "-" + m;
  5900. }
  5901. }
  5902. if (
  5903. !this.vedio[this.taskCount][0] ||
  5904. this.vedio[this.taskCount][0].url == ""
  5905. ) {
  5906. if (
  5907. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5908. this.taskCount
  5909. ].chapterData.length > 0
  5910. ) {
  5911. // if (
  5912. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5913. // this.taskCount
  5914. // ].chapterData[0].type != 8
  5915. // ) {
  5916. let _url =
  5917. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5918. this.taskCount
  5919. ].chapterData[0].url;
  5920. if (
  5921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5922. this.taskCount
  5923. ].chapterData[0].type == 8
  5924. ) {
  5925. this.showType = 2;
  5926. if (
  5927. _url.indexOf("https://") == -1 &&
  5928. _url.indexOf("http://") == -1
  5929. ) {
  5930. _url = "https://" + _url;
  5931. }
  5932. this.pptImgUrl1 = _url;
  5933. this.isClickNav = "line0";
  5934. } else if (
  5935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5936. this.taskCount
  5937. ].chapterData[0].type == 3
  5938. ) {
  5939. if (
  5940. _url
  5941. .split(".")
  5942. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5943. ) {
  5944. this.showType = 3;
  5945. this.pptImgUrl1 = _url;
  5946. this.isClickNav = "word0";
  5947. } else if (
  5948. this.isAssetTypeAnImage(
  5949. _url
  5950. .split(".")
  5951. [_url.split(".").length - 1].toLocaleLowerCase()
  5952. )
  5953. ) {
  5954. this.showType = 4;
  5955. this.pptImgUrl1 = _url;
  5956. this.isClickNav = "word0";
  5957. } else {
  5958. this.showType = 2;
  5959. this.pptImgUrl1 =
  5960. "https://view.officeapps.live.com/op/view.aspx?src=" + _url;
  5961. this.isClickNav = "word0";
  5962. }
  5963. } else if (
  5964. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5965. this.taskCount
  5966. ].chapterData[0].type == 6
  5967. ) {
  5968. this.showType = 1;
  5969. this.text = this.textList[this.taskCount][0];
  5970. this.isClickNav = "text0";
  5971. }
  5972. // }
  5973. // else {
  5974. // for (
  5975. // var y = 0;
  5976. // y <
  5977. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5978. // this.taskCount
  5979. // ].chapterData.length;
  5980. // y++
  5981. // ) {
  5982. // if (
  5983. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5984. // this.taskCount
  5985. // ].chapterData[y].type != 8
  5986. // ) {
  5987. // if (
  5988. // this.chapInfoList[this.courseType].chapterInfo[0]
  5989. // .taskJson[this.taskCount].chapterData[y].type == 3
  5990. // ) {
  5991. // let _url =
  5992. // this.chapInfoList[this.courseType].chapterInfo[0]
  5993. // .taskJson[this.taskCount].chapterData[y].url;
  5994. // if (
  5995. // _url
  5996. // .split(".")
  5997. // [_url.split(".").length - 1].toLocaleUpperCase() ==
  5998. // "PDF"
  5999. // ) {
  6000. // this.showType = 3;
  6001. // this.pptImgUrl1 = _url;
  6002. // } else if (
  6003. // this.isAssetTypeAnImage(
  6004. // _url
  6005. // .split(".")
  6006. // [_url.split(".").length - 1].toLocaleLowerCase()
  6007. // )
  6008. // ) {
  6009. // this.showType = 4;
  6010. // this.pptImgUrl1 = _url;
  6011. // } else {
  6012. // this.showType = 2;
  6013. // this.pptImgUrl1 =
  6014. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  6015. // _url;
  6016. // }
  6017. // } else if (
  6018. // this.chapInfoList[this.courseType].chapterInfo[0]
  6019. // .taskJson[this.taskCount].chapterData[y].type == 6
  6020. // ) {
  6021. // this.showType = 1;
  6022. // this.text = this.textList[this.taskCount][0];
  6023. // }
  6024. // } else {
  6025. // this.showType = 2;
  6026. // this.pptImgUrl1 =
  6027. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  6028. // _url;
  6029. // }
  6030. // }
  6031. // }
  6032. }
  6033. } else {
  6034. this.isClickNav = "video0";
  6035. }
  6036. setTimeout(() => {
  6037. this.checkEva();
  6038. }, 500);
  6039. this.selectStudent();
  6040. this.selectSWorks();
  6041. let _this = this;
  6042. if (_this.timer) {
  6043. clearInterval(_this.timer);
  6044. _this.timer = null;
  6045. }
  6046. _this.timer = setInterval(function () {
  6047. _this.selectSWorks();
  6048. _this.selectStudent();
  6049. _this.selectSLook();
  6050. if (_this.tType == 4) {
  6051. _this.selectPz();
  6052. }
  6053. }, 5000);
  6054. _this.$nextTick(function () {
  6055. setTimeout(() => {
  6056. var a =
  6057. document.getElementsByClassName("box_course")[0].offsetHeight;
  6058. document.getElementsByClassName("vedioList")[0].style.height =
  6059. a + "px";
  6060. document.getElementsByClassName("navBox")[0].style.height =
  6061. a - 40 + "px";
  6062. if (_this.vedio[_this.taskCount].length > 0) {
  6063. _this.vedioTime = [];
  6064. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  6065. _this.vedioTime[i] = document.getElementsByClassName(
  6066. "vjs-duration-display"
  6067. )[i].textContent;
  6068. }
  6069. }
  6070. }, 500);
  6071. });
  6072. })
  6073. .catch((err) => {
  6074. loading.close();
  6075. console.error(err);
  6076. });
  6077. },
  6078. addPz(type, content) {
  6079. if (type == "1" && this.pzConText == "") {
  6080. this.$message.error("批注不能为空!");
  6081. return;
  6082. }
  6083. let params = [
  6084. {
  6085. cid: this.id,
  6086. uid: this.userid,
  6087. s: this.courseType,
  6088. t: this.taskCount,
  6089. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  6090. type: type,
  6091. },
  6092. ];
  6093. this.ajax
  6094. .post(this.$store.state.api + "addPz2", params)
  6095. .then((res) => {
  6096. this.$message({
  6097. message: "添加成功",
  6098. type: "success",
  6099. });
  6100. this.pzConText = "";
  6101. this.addPzDialog = false;
  6102. this.selectPz();
  6103. })
  6104. .catch((err) => {
  6105. this.$message.error("添加失败");
  6106. console.error(err);
  6107. });
  6108. },
  6109. deletePz(id) {
  6110. this.$confirm("确定删除此批注吗?", "提示", {
  6111. confirmButtonText: "确定",
  6112. cancelButtonText: "取消",
  6113. type: "warning",
  6114. })
  6115. .then(() => {
  6116. let params = [
  6117. {
  6118. id: id,
  6119. },
  6120. ];
  6121. this.ajax
  6122. .post(this.$store.state.api + "deletePz", params)
  6123. .then((res) => {
  6124. this.$message({
  6125. message: "删除成功",
  6126. type: "success",
  6127. });
  6128. this.selectPz();
  6129. })
  6130. .catch((err) => {
  6131. this.$message.error("网络异常");
  6132. console.error(err);
  6133. });
  6134. })
  6135. .catch(() => {});
  6136. },
  6137. selectPz() {
  6138. let params = {
  6139. cid: this.id,
  6140. s: this.courseType,
  6141. t: this.taskCount,
  6142. };
  6143. this.ajax
  6144. .get(this.$store.state.api + "selectPzList", params)
  6145. .then((res) => {
  6146. this.pzList = res.data[0];
  6147. })
  6148. .catch((err) => {
  6149. console.error(err);
  6150. });
  6151. },
  6152. updateSLook() {
  6153. let params = {
  6154. sopen: this.sIsOpen == false ? 1 : 2,
  6155. cid: this.id,
  6156. };
  6157. this.ajax
  6158. .get(this.$store.state.api + "updateCourseSLook", params)
  6159. .then((res) => {
  6160. if (this.sIsOpen == true) {
  6161. this.$message({
  6162. message: "权限开放成功",
  6163. type: "success",
  6164. });
  6165. } else {
  6166. this.$message({
  6167. message: "权限关闭成功",
  6168. type: "success",
  6169. });
  6170. }
  6171. })
  6172. .catch((err) => {
  6173. console.error(err);
  6174. });
  6175. },
  6176. selectSLook() {
  6177. let params = {
  6178. cid: this.id,
  6179. };
  6180. this.ajax
  6181. .get(this.$store.state.api + "selectCourseSLook", params)
  6182. .then((res) => {
  6183. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  6184. })
  6185. .catch((err) => {
  6186. console.error(err);
  6187. });
  6188. },
  6189. getHomeWork() {
  6190. let params = {
  6191. cid: this.id,
  6192. stage: this.courseType,
  6193. task: this.taskCount,
  6194. uid: this.userid,
  6195. };
  6196. this.ajax
  6197. .get(this.$store.state.api + "selectWork", params)
  6198. .then((res) => {
  6199. if (res.data[0].length > 0) {
  6200. this.studyJuri = JSON.parse(res.data[0][0].content);
  6201. this.isNoHomeWork = true;
  6202. }
  6203. })
  6204. .catch((err) => {
  6205. console.error(err);
  6206. });
  6207. },
  6208. isAssetTypeAnImage(ext) {
  6209. return (
  6210. [
  6211. "png",
  6212. "jpg",
  6213. "jpeg",
  6214. "bmp",
  6215. "gif",
  6216. "webp",
  6217. "psd",
  6218. "svg",
  6219. "tiff",
  6220. ].indexOf(ext) !== -1
  6221. );
  6222. },
  6223. switchVideo(media) {
  6224. this.playerO = {};
  6225. this.playerOptions.poster = "";
  6226. this.playerOptions.sources[0].src = media;
  6227. this.playerO = this.playerOptions;
  6228. },
  6229. onPlayerPlay() {},
  6230. lookVedio(u, i) {
  6231. this.isClickNav = "";
  6232. // this.playerOptions.sources[0].src = u;
  6233. var d = JSON.parse(JSON.stringify(this.playerOptions));
  6234. d.sources[0].src = u;
  6235. this.playerO[this.taskCount] = d;
  6236. this.showType = 0;
  6237. this.isClickNav = "video" + i;
  6238. this.$forceUpdate();
  6239. },
  6240. lookText(i, t) {
  6241. this.isClickNav = "";
  6242. this.text = this.textList[i][t];
  6243. // this.dialogVisible1 = true;
  6244. this.showType = 1;
  6245. this.isClickNav = "text" + t;
  6246. },
  6247. lookTools(i, t) {
  6248. this.chapTools = this.chapToolList[i][t];
  6249. this.dialogVisible2 = true;
  6250. },
  6251. openFile(f) {
  6252. this.pptImgUrl = "";
  6253. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6254. if (
  6255. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  6256. -1
  6257. ) {
  6258. this.pptImgUrl =
  6259. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  6260. this.showPDF = false;
  6261. this.dialogVisible3 = true;
  6262. } else if (
  6263. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6264. ) {
  6265. this.pptImgUrl = f;
  6266. this.showPDF = true;
  6267. this.dialogVisible3 = true;
  6268. }
  6269. },
  6270. doUrl(url, i) {
  6271. this.isClickNav = "";
  6272. this.pptImgUrl1 = "";
  6273. this.showType = 2;
  6274. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  6275. url = "https://" + url;
  6276. }
  6277. this.pptImgUrl1 = url;
  6278. this.isClickNav = "line" + i;
  6279. },
  6280. downFile(f, i) {
  6281. this.isClickNav = "";
  6282. this.pptImgUrl1 = "";
  6283. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  6284. if (
  6285. a.indexOf(
  6286. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  6287. ) != -1
  6288. ) {
  6289. this.pptImgUrl1 =
  6290. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  6291. // this.dialogVisible3 = true;
  6292. this.showType = 2;
  6293. } else if (
  6294. this.isAssetTypeAnImage(
  6295. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  6296. )
  6297. ) {
  6298. this.showType = 4;
  6299. this.pptImgUrl1 = f.url;
  6300. } else if (
  6301. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  6302. "PDF"
  6303. ) {
  6304. this.pptImgUrl1 = f.url;
  6305. // this.dialogVisible3 = true;
  6306. this.showType = 3;
  6307. } else {
  6308. window.open(this.file[i].url);
  6309. }
  6310. this.isClickNav = "word" + i;
  6311. },
  6312. downFileList(i) {
  6313. window.open(this.noImgList[i].url);
  6314. },
  6315. openAddWork() {
  6316. this.dialogVisible = true;
  6317. },
  6318. addBzWorks() {
  6319. let params = [
  6320. {
  6321. uid: this.userid,
  6322. cid: this.id,
  6323. stage: this.courseType,
  6324. task: this.taskCount,
  6325. tool: this.toolindex,
  6326. content: JSON.stringify(this.eScore),
  6327. type: 6,
  6328. },
  6329. ];
  6330. this.ajax
  6331. .post(this.$store.state.api + "addCourseWorks", params)
  6332. .then((res) => {
  6333. this.$message({
  6334. message: "提交成功",
  6335. type: "success",
  6336. });
  6337. this.eScore = { eBzText: "", eStar: [] };
  6338. this.studentEvalDialogVisible = false;
  6339. this.selectSWorks();
  6340. })
  6341. .catch((err) => {
  6342. this.$message.error("提交失败");
  6343. console.error(err);
  6344. });
  6345. },
  6346. addStudentAsk() {
  6347. for (var i = 0; i < this.radio.length; i++) {
  6348. if (this.radio[i] !== 0 && !this.radio[i]) {
  6349. this.$message.error("请选择选项");
  6350. return;
  6351. }
  6352. }
  6353. this.askList.push({ askJson: this.askJson, anwer: this.radio.join(",") });
  6354. let params = [
  6355. {
  6356. uid: this.userid,
  6357. cid: this.id,
  6358. stage: this.courseType,
  6359. task: this.taskCount,
  6360. tool: this.toolindex,
  6361. content: JSON.stringify(this.askList).replace(/%/g, "%25"),
  6362. type: 2,
  6363. },
  6364. ];
  6365. this.ajax
  6366. .post(this.$store.state.api + "addCourseWorks", params)
  6367. .then((res) => {
  6368. this.$message({
  6369. message: "提交成功",
  6370. type: "success",
  6371. });
  6372. this.askList = [];
  6373. this.dialogVisible5 = false;
  6374. })
  6375. .catch((err) => {
  6376. this.$message.error("提交失败");
  6377. console.error(err);
  6378. });
  6379. },
  6380. addStudentTest() {
  6381. for (var i = 0; i < this.radio.length; i++) {
  6382. if (
  6383. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6384. (this.radio[i] !== 0 && !this.radio[i])
  6385. ) {
  6386. this.$message.error("请选择选项");
  6387. return;
  6388. }
  6389. }
  6390. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6391. let params = [
  6392. {
  6393. uid: this.userid,
  6394. cid: this.id,
  6395. stage: this.courseType,
  6396. task: this.taskCount,
  6397. tool: this.toolindex,
  6398. content: JSON.stringify(this.askList).replace(/%/g, "%25"),
  6399. type: 8,
  6400. },
  6401. ];
  6402. this.ajax
  6403. .post(this.$store.state.api + "addCourseWorks", params)
  6404. .then((res) => {
  6405. this.$message({
  6406. message: "提交成功",
  6407. type: "success",
  6408. });
  6409. this.askList = [];
  6410. this.dialogVisibleChoice = false;
  6411. })
  6412. .catch((err) => {
  6413. this.$message.error("提交失败");
  6414. console.error(err);
  6415. });
  6416. },
  6417. addWork() {
  6418. if (this.studyJuri[0].content == "") {
  6419. this.$message.error("请将信息填写完整");
  6420. return;
  6421. } else if (this.studyJuri[0].cover.length == 0) {
  6422. this.$message.error("请将信息填写完整");
  6423. return;
  6424. } else if (this.studyJuri[0].upVedio.length == 0) {
  6425. this.$message.error("请将信息填写完整");
  6426. return;
  6427. }
  6428. if (this.isNoHomeWork) {
  6429. this.$confirm(
  6430. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  6431. "提示",
  6432. {
  6433. confirmButtonText: "确定",
  6434. cancelButtonText: "取消",
  6435. type: "warning",
  6436. }
  6437. )
  6438. .then(() => {
  6439. let params = [
  6440. {
  6441. uid: this.userid,
  6442. cid: this.id,
  6443. stage: this.courseType,
  6444. task: this.taskCount,
  6445. content: JSON.stringify(this.studyJuri),
  6446. },
  6447. ];
  6448. this.ajax
  6449. .post(this.$store.state.api + "addWorks", params)
  6450. .then((res) => {
  6451. this.$message({
  6452. message: "提交成功",
  6453. type: "success",
  6454. });
  6455. this.isNoHomeWork = true;
  6456. this.dialogVisible = false;
  6457. })
  6458. .catch((err) => {
  6459. this.$message.error("提交失败");
  6460. console.error(err);
  6461. });
  6462. })
  6463. .catch(() => {});
  6464. } else {
  6465. let params = [
  6466. {
  6467. uid: this.userid,
  6468. cid: this.id,
  6469. stage: this.courseType,
  6470. task: this.taskCount,
  6471. content: JSON.stringify(this.studyJuri),
  6472. },
  6473. ];
  6474. this.ajax
  6475. .post(this.$store.state.api + "addWorks", params)
  6476. .then((res) => {
  6477. this.$message({
  6478. message: "提交成功",
  6479. type: "success",
  6480. });
  6481. this.isNoHomeWork = true;
  6482. this.dialogVisible = false;
  6483. })
  6484. .catch((err) => {
  6485. this.$message.error("提交失败");
  6486. console.error(err);
  6487. });
  6488. }
  6489. },
  6490. selectCount() {
  6491. let params = {
  6492. cid: this.id,
  6493. chid: this.courseType,
  6494. uid: this.userid,
  6495. };
  6496. this.ajax
  6497. .get(this.$store.state.api + "selectToolsCount", params)
  6498. .then((res) => {
  6499. for (var i = 0; i < res.data[0].length; i++) {
  6500. if (res.data[0][i].tools == 1) {
  6501. this.wbCount = res.data[0][i].count;
  6502. } else if (res.data[0][i].tools == 2) {
  6503. this.wordCount = res.data[0][i].count;
  6504. } else if (res.data[0][i].tools == 3) {
  6505. this.mindCount = res.data[0][i].count;
  6506. } else if (res.data[0][i].tools == 4) {
  6507. this.askCount = res.data[0][i].count;
  6508. } else if (res.data[0][i].tools == 6) {
  6509. this.noteCount = res.data[0][i].count;
  6510. } else if (res.data[0][i].tools == 7) {
  6511. this.mindNetWorkCount = res.data[0][i].count;
  6512. } else if (res.data[0][i].tools == 8) {
  6513. this.libraryCount = res.data[0][i].count;
  6514. } else if (res.data[0][i].tools == 16) {
  6515. this.workCount = res.data[0][i].count;
  6516. } else if (res.data[0][i].tools == 10) {
  6517. this.timeCount = res.data[0][i].count;
  6518. } else if (res.data[0][i].tools == 15) {
  6519. this.answerCount = res.data[0][i].count;
  6520. } else if (res.data[0][i].tools == 18) {
  6521. this.trainCount = res.data[0][i].count;
  6522. }
  6523. }
  6524. })
  6525. .catch((err) => {
  6526. console.error(err);
  6527. });
  6528. },
  6529. openTools(t, i, index, c, sName) {
  6530. var z = JSON.parse(c);
  6531. this.noteName = sName;
  6532. if (t == 4) {
  6533. this.radio = [];
  6534. this.isAnswer = false;
  6535. for (var i = 0; i < z.length; i++) {
  6536. let a = z[i];
  6537. let b = a.anwer.split(",");
  6538. let d = [];
  6539. for (var j = 0; j < b.length; j++) {
  6540. d.push(parseInt(b[j]));
  6541. }
  6542. this.radio = d;
  6543. this.askJson = a.askJson;
  6544. }
  6545. this.isAnswer = true;
  6546. this.dialogVisible5 = true;
  6547. } else if (t == 45) {
  6548. this.radio = [];
  6549. this.isAnswer = false;
  6550. let b = z[0].anwer;
  6551. this.radio = b;
  6552. this.testJson = z[0].testJson;
  6553. this.isAnswer = true;
  6554. this.dialogVisibleChoice = true;
  6555. }
  6556. // else if (t == 15) {
  6557. // this.answerQ = "";
  6558. // this.questionAnswer = "";
  6559. // this.answerQ = z[0].answerTitle;
  6560. // this.questionAnswer = z[0].answer;
  6561. // this.answerDialogVisible = true;
  6562. // }
  6563. },
  6564. fastText(p, t) {
  6565. if (t == 1) {
  6566. this.commentText += p;
  6567. } else {
  6568. this.eScore.eBzText += p;
  6569. }
  6570. },
  6571. addTools(t, i, index) {
  6572. var a = 0;
  6573. // this.taskCount = index;
  6574. this.toolindex = i;
  6575. if (t == 1) {
  6576. if (this.wbCount > 0) {
  6577. this.updateCount(this.wbCount, t);
  6578. } else {
  6579. this.wbCount++;
  6580. a = this.wbCount;
  6581. this.toolsCount(a, t);
  6582. }
  6583. window.parent.postMessage(
  6584. {
  6585. tools: "1",
  6586. cid: this.id,
  6587. stage: this.courseType,
  6588. task: this.taskCount,
  6589. tool: i,
  6590. },
  6591. "*"
  6592. );
  6593. } else if (t == 2) {
  6594. if (this.wordCount > 0) {
  6595. this.updateCount(this.wordCount, t);
  6596. } else {
  6597. this.wordCount++;
  6598. a = this.wordCount;
  6599. this.toolsCount(a, t);
  6600. }
  6601. window.parent.postMessage({ tools: "2" }, "*");
  6602. } else if (t == 3) {
  6603. if (this.mindCount > 0) {
  6604. this.updateCount(this.mindCount, t);
  6605. } else {
  6606. this.mindCount++;
  6607. a = this.mindCount;
  6608. this.toolsCount(a, t);
  6609. }
  6610. window.parent.postMessage(
  6611. {
  6612. tools: "3",
  6613. cid: this.id,
  6614. stage: this.courseType,
  6615. task: this.taskCount,
  6616. tool: i,
  6617. },
  6618. "*"
  6619. );
  6620. } else if (t == 4) {
  6621. this.radio = [];
  6622. this.noteName = "";
  6623. this.isAnswer = false;
  6624. if (this.askCount > 0) {
  6625. this.updateCount(this.askCount, t);
  6626. } else {
  6627. this.askCount++;
  6628. a = this.askCount;
  6629. this.toolsCount(a, t);
  6630. }
  6631. if (!this.dialogVisible2) {
  6632. this.askJson.askJson =
  6633. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6634. index
  6635. ].toolChoose[i].askJson;
  6636. this.askJson.askTitle =
  6637. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6638. index
  6639. ].toolChoose[i].askTitle;
  6640. this.askJson.askCount =
  6641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6642. index
  6643. ].toolChoose[i].askCount;
  6644. } else {
  6645. this.askJson.askJson = this.chapTools.askJson.askJson;
  6646. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  6647. this.askJson.askCount = this.chapTools.askJson.askCount;
  6648. }
  6649. this.dialogVisible5 = true;
  6650. // window.parent.postMessage({ tools: "4" }, "*");
  6651. } else if (t == 45) {
  6652. this.noteName = "";
  6653. this.radio = [];
  6654. this.isAnswer = false;
  6655. if (this.askCount > 0) {
  6656. this.updateCount(this.askCount, t);
  6657. } else {
  6658. this.askCount++;
  6659. a = this.askCount;
  6660. this.toolsCount(a, t);
  6661. }
  6662. this.testJson =
  6663. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6664. index
  6665. ].toolChoose[i].testJson;
  6666. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6667. if (this.testJson.testJson[k].type == "2") {
  6668. this.radio.push([]);
  6669. } else {
  6670. this.radio.push("");
  6671. }
  6672. }
  6673. this.dialogVisibleChoice = true;
  6674. // window.parent.postMessage({ tools: "4" }, "*");
  6675. } else if (t == 5) {
  6676. if (this.scoreCount > 0) {
  6677. this.updateCount(this.scoreCount, t);
  6678. } else {
  6679. this.scoreCount++;
  6680. a = this.scoreCount;
  6681. this.toolsCount(a, t);
  6682. }
  6683. this.dialogVisible4 = true;
  6684. // window.parent.postMessage({ tools: "5" }, "*");
  6685. } else if (t == 6) {
  6686. if (this.noteCount > 0) {
  6687. this.updateCount(this.noteCount, t);
  6688. } else {
  6689. this.noteCount++;
  6690. a = this.noteCount;
  6691. this.toolsCount(a, t);
  6692. }
  6693. window.parent.postMessage(
  6694. {
  6695. tools: "6",
  6696. cid: this.id,
  6697. stage: this.courseType,
  6698. task: this.taskCount,
  6699. tool: i,
  6700. },
  6701. "*"
  6702. );
  6703. } else if (t == 7) {
  6704. if (this.mindNetWorkCount > 0) {
  6705. this.updateCount(this.mindNetWorkCount, t);
  6706. } else {
  6707. this.mindNetWorkCount++;
  6708. a = this.mindNetWorkCount;
  6709. this.toolsCount(a, t);
  6710. }
  6711. window.parent.postMessage(
  6712. {
  6713. tools: "7",
  6714. cid: this.id,
  6715. stage: this.courseType,
  6716. task: this.taskCount,
  6717. tool: i,
  6718. },
  6719. "*"
  6720. );
  6721. } else if (t == 16) {
  6722. if (this.workCount > 0) {
  6723. this.updateCount(this.workCount, t);
  6724. } else {
  6725. this.workCount++;
  6726. a = this.workCount;
  6727. this.toolsCount(a, t);
  6728. }
  6729. this.dialogVisible = true;
  6730. } else if (t == 8) {
  6731. if (this.libraryCount > 0) {
  6732. this.updateCount(this.libraryCount, t);
  6733. } else {
  6734. this.libraryCount++;
  6735. a = this.libraryCount;
  6736. this.toolsCount(a, t);
  6737. }
  6738. window.parent.postMessage({ tools: "8" }, "*");
  6739. } else if (t == 17) {
  6740. if (this.libraryCount > 0) {
  6741. this.updateCount(this.libraryCount, t);
  6742. } else {
  6743. this.libraryCount++;
  6744. a = this.libraryCount;
  6745. this.toolsCount(a, t);
  6746. }
  6747. window.parent.postMessage({ tools: "17" }, "*");
  6748. } else if (t == 18) {
  6749. if (this.trainCount > 0) {
  6750. this.updateCount(this.trainCount, t);
  6751. } else {
  6752. this.trainCount++;
  6753. a = this.trainCount;
  6754. this.toolsCount(a, t);
  6755. }
  6756. window.parent.postMessage({ tools: "18" }, "*");
  6757. } else if (t == 10) {
  6758. if (this.timeCount > 0) {
  6759. this.updateCount(this.timeCount, t);
  6760. } else {
  6761. this.timeCount++;
  6762. a = this.timeCount;
  6763. this.toolsCount(a, t);
  6764. }
  6765. this.timeDialogVisible = true;
  6766. } else if (t == 15) {
  6767. this.answerQ = "";
  6768. this.questionAnswer = "";
  6769. if (this.answerCount > 0) {
  6770. this.updateCount(this.answerCount, t);
  6771. } else {
  6772. this.answerCount++;
  6773. a = this.answerCount;
  6774. this.toolsCount(a, t);
  6775. }
  6776. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6777. .taskJson[index].toolChoose[i].answerQ
  6778. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6779. .toolChoose[i].answerQ
  6780. : "";
  6781. this.answerDialogVisible = true;
  6782. } else if (t == 21) {
  6783. window.parent.postMessage({ tools: "21" }, "*");
  6784. } else if (t == 22) {
  6785. window.parent.postMessage({ tools: "22" }, "*");
  6786. } else if (t == 23) {
  6787. window.parent.postMessage({ tools: "23" }, "*");
  6788. } else if (t == 24) {
  6789. window.parent.postMessage({ tools: "24" }, "*");
  6790. } else if (t == 25) {
  6791. window.parent.postMessage({ tools: "25" }, "*");
  6792. } else if (t == 31) {
  6793. window.parent.postMessage({ tools: "31" }, "*");
  6794. } else if (t == 28) {
  6795. window.parent.postMessage({ tools: "28" }, "*");
  6796. } else if (t == 37) {
  6797. window.parent.postMessage({ tools: "37" }, "*");
  6798. } else if (t == 38) {
  6799. window.parent.postMessage({ tools: "38" }, "*");
  6800. } else if (t == 39) {
  6801. window.parent.postMessage({ tools: "39" }, "*");
  6802. } else if (t == 32) {
  6803. window.parent.postMessage({ tools: "32" }, "*");
  6804. } else if (t == 26) {
  6805. window.parent.postMessage(
  6806. {
  6807. tools: "26",
  6808. cid: this.id,
  6809. stage: this.courseType,
  6810. task: this.taskCount,
  6811. tool: i,
  6812. },
  6813. "*"
  6814. );
  6815. } else if (t == 40) {
  6816. if (this.evalCount > 0) {
  6817. this.updateCount(this.evalCount, t);
  6818. } else {
  6819. this.evalCount++;
  6820. a = this.evalCount;
  6821. this.toolsCount(a, t);
  6822. }
  6823. if (this.worksStudent[i].length) {
  6824. for (var k = 0; k < this.worksStudent[i].length; k++) {
  6825. if (this.userid == this.worksStudent[i][k].userid) {
  6826. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  6827. this.rateJson =
  6828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6829. index
  6830. ].toolChoose[i].rateJson;
  6831. break;
  6832. } else {
  6833. this.rateJson =
  6834. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6835. index
  6836. ].toolChoose[i].rateJson;
  6837. }
  6838. }
  6839. } else {
  6840. this.rateJson =
  6841. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6842. index
  6843. ].toolChoose[i].rateJson;
  6844. }
  6845. this.isStar = false;
  6846. this.studentEvalDialogVisible = true;
  6847. } else if (t == 41) {
  6848. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6849. .taskJson[index].toolChoose[i].selectJson
  6850. ? JSON.parse(
  6851. JSON.stringify(
  6852. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6853. index
  6854. ].toolChoose[i].selectJson
  6855. )
  6856. )
  6857. : { url: "", select: [], answer: [] };
  6858. if (this.worksStudent[i].length) {
  6859. for (var k = 0; k < this.worksStudent[i].length; k++) {
  6860. if (this.userid == this.worksStudent[i][k].userid) {
  6861. var a = this.worksStudent[i][k].works.split(",");
  6862. for (var ki = 0; ki < a.length; ki++) {
  6863. a[ki] = parseInt(a[ki]);
  6864. }
  6865. this.selectAnswer = {
  6866. answer: a,
  6867. stu: this.worksStudent[i][k].sName,
  6868. };
  6869. break;
  6870. } else {
  6871. this.selectAnswer = { answer: [], stu: "" };
  6872. }
  6873. }
  6874. } else {
  6875. this.selectAnswer = { answer: [], stu: "" };
  6876. }
  6877. this.isSelect = false;
  6878. this.dialogVisibleSelect = true;
  6879. } else if (t == 44) {
  6880. window.parent.postMessage({ tools: "44" }, "*");
  6881. }
  6882. },
  6883. toolsCount(a, t) {
  6884. let params = {
  6885. cid: this.id,
  6886. chid: this.courseType,
  6887. uid: this.userid,
  6888. tid: t,
  6889. count: a,
  6890. };
  6891. this.ajax
  6892. .get(this.$store.state.api + "insertToolsCount", params)
  6893. .then((res) => {
  6894. this.selectCount();
  6895. })
  6896. .catch((err) => {
  6897. console.error(err);
  6898. });
  6899. },
  6900. updateCount(c, t) {
  6901. c++;
  6902. let params = {
  6903. cid: this.id,
  6904. chid: this.courseType,
  6905. uid: this.userid,
  6906. tid: t,
  6907. count: c,
  6908. };
  6909. this.ajax
  6910. .get(this.$store.state.api + "updateToolsCount", params)
  6911. .then((res) => {
  6912. this.selectCount();
  6913. })
  6914. .catch((err) => {
  6915. console.error(err);
  6916. });
  6917. },
  6918. checkEva() {
  6919. if (this.evalua != "") {
  6920. for (var i = 0; i < this.evaJuri.length; i++) {
  6921. if (this.evalua == this.evaJuri[i].id) {
  6922. this.eTitle = this.evaJuri[i].title;
  6923. this.eJson = JSON.parse(this.evaJuri[i].content);
  6924. }
  6925. }
  6926. this.$forceUpdate();
  6927. setTimeout(() => {
  6928. this.setMindData();
  6929. }, 0);
  6930. }
  6931. },
  6932. selectEva() {
  6933. let params = {
  6934. oid: this.oid,
  6935. };
  6936. this.ajax
  6937. .get(this.$store.state.api + "selectAllEvaluation", params)
  6938. .then((res) => {
  6939. this.evaJuri = res.data[0];
  6940. })
  6941. .catch((err) => {
  6942. console.error(err);
  6943. });
  6944. },
  6945. setMindData() {
  6946. this.data.data = [];
  6947. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6948. let _eJson = Object.keys(this.eJson);
  6949. let _e = this.eJson;
  6950. for (let i = 0; i < _eJson.length; i++) {
  6951. let element = _e[_eJson[i]];
  6952. this.data.data.push({
  6953. id: element.id,
  6954. parentid: "root",
  6955. topic: element.name,
  6956. });
  6957. let _eJsonc = Object.keys(element.child);
  6958. let _e2 = element.child;
  6959. for (let j = 0; j < _eJsonc.length; j++) {
  6960. let _ec = _e2[_eJsonc[j]];
  6961. this.data.data.push({
  6962. id: _ec.id,
  6963. parentid: element.id,
  6964. topic: _ec.name,
  6965. });
  6966. let _eJsonz = Object.keys(_ec.child);
  6967. let _e3 = _ec.child;
  6968. for (let z = 0; z < _eJsonz.length; z++) {
  6969. let _ez = _e3[_eJsonz[z]];
  6970. this.data.data.push({
  6971. id: _ez.id,
  6972. parentid: _ec.id,
  6973. topic: _ez.name,
  6974. });
  6975. }
  6976. }
  6977. }
  6978. this.$forceUpdate();
  6979. },
  6980. checkFileFull(type, url) {
  6981. this.fullDialogVisible = true;
  6982. this.fulltype = type;
  6983. this.fullUrl = url;
  6984. },
  6985. openLine(url) {
  6986. window.open(url);
  6987. },
  6988. resize() {
  6989. if (document.getElementsByClassName("box_course").length) {
  6990. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  6991. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  6992. document.getElementsByClassName("navBox")[0].style.height =
  6993. a - 40 + "px";
  6994. }
  6995. this.Stbodywidth =
  6996. document.getElementsByClassName("student_body").length &&
  6997. document.getElementsByClassName("student_body")[0].offsetWidth;
  6998. },
  6999. },
  7000. directives: {
  7001. // 使用局部注册指令的方式
  7002. resize: {
  7003. // 指令的名称
  7004. bind(el, binding) {
  7005. // el为绑定的元素,binding为绑定给指令的对象
  7006. let width = "",
  7007. height = "";
  7008. function isReize() {
  7009. const style = document.defaultView.getComputedStyle(el);
  7010. if (width !== style.width || height !== style.height) {
  7011. binding.value(); // 关键
  7012. }
  7013. width = style.width;
  7014. height = style.height;
  7015. }
  7016. el.__vueSetInterval__ = setInterval(isReize, 300);
  7017. },
  7018. unbind(el) {
  7019. clearInterval(el.__vueSetInterval__);
  7020. },
  7021. },
  7022. },
  7023. beforeDestroy() {
  7024. window.onresize = null;
  7025. clearInterval(this.timer);
  7026. this.timer = null;
  7027. },
  7028. computed: {
  7029. contentConvent() {
  7030. return function (c) {
  7031. return c
  7032. ? c
  7033. .replaceAll(/\r\n/g, "<br/>")
  7034. .replaceAll(/\n/g, "<br/>")
  7035. .replaceAll(/\s/g, " &nbsp")
  7036. : "";
  7037. };
  7038. },
  7039. },
  7040. created() {
  7041. if (this.screenType == 2) {
  7042. window.parent.postMessage({ allScreen: 4 }, "*");
  7043. } else if (this.screenType == 3) {
  7044. window.parent.postMessage({ allScreen: 5 }, "*");
  7045. } else if (this.screenType == 1) {
  7046. window.parent.postMessage({ allScreen: 6 }, "*");
  7047. }
  7048. this.selectEva();
  7049. this.getCourseDetail();
  7050. this.selectCount();
  7051. this.getHomeWork();
  7052. this.selectSLook();
  7053. if (this.tType == 4) {
  7054. this.pzDialog = true;
  7055. this.selectPz();
  7056. }
  7057. document.scrollingElement.scrollTop = 0;
  7058. window.addEventListener("resize", () => {
  7059. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7060. document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7061. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  7062. });
  7063. let _this = this;
  7064. setTimeout(() => {
  7065. _this.vedioTime = [];
  7066. for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7067. _this.vedioTime[i] = document.getElementsByClassName(
  7068. "vjs-duration-display"
  7069. )[i].textContent;
  7070. }
  7071. }, 1000);
  7072. },
  7073. };
  7074. </script>
  7075. <style scoped>
  7076. @media screen and (max-width: 1280px) {
  7077. /* .courseIndex > div:first-child(2) {
  7078. width: 15% !important;
  7079. } */
  7080. /* .navText {
  7081. width: 120px !important;
  7082. } */
  7083. .evaCss {
  7084. flex-direction: column !important;
  7085. align-items: center !important;
  7086. }
  7087. .dialog_diy1 >>> .el-dialog {
  7088. width: 100% !important;
  7089. }
  7090. .rightWidthCss {
  7091. width: 100% !important;
  7092. }
  7093. .dialog_diy3 >>> .el-dialog {
  7094. width: 100% !important;
  7095. }
  7096. /* .textTitle >>> .el-form-item__label {
  7097. width: 150px !important;
  7098. } */
  7099. }
  7100. .evaCssMax {
  7101. flex-direction: column !important;
  7102. align-items: center !important;
  7103. }
  7104. .dialog_diy >>> .el-dialog {
  7105. margin-top: 10vh !important;
  7106. }
  7107. .body_student {
  7108. width: 77%;
  7109. height: 100%;
  7110. position: absolute;
  7111. left: 22%;
  7112. top: 0;
  7113. }
  7114. .student_head {
  7115. width: 100%;
  7116. margin: 0 auto;
  7117. padding-bottom: 50px;
  7118. display: flex;
  7119. flex-direction: column;
  7120. flex-wrap: nowrap;
  7121. align-items: flex-start;
  7122. justify-content: flex-start;
  7123. }
  7124. .pb_left {
  7125. width: 20%;
  7126. margin-right: 10px;
  7127. background: rgb(255, 255, 255);
  7128. padding-right: 10px;
  7129. position: fixed;
  7130. height: 100%;
  7131. }
  7132. .wheel > img,
  7133. .project > img,
  7134. .star > img,
  7135. .evaluate > img,
  7136. .up_photo > img,
  7137. .chapter_add > img,
  7138. .upCover > img,
  7139. .deleteWord > img,
  7140. .question > img,
  7141. .homework > img {
  7142. width: 100%;
  7143. height: 100%;
  7144. }
  7145. .upCover {
  7146. width: calc(100% / 3.5);
  7147. position: relative;
  7148. margin: 0 15px 10px 0;
  7149. display: flex;
  7150. flex-direction: column;
  7151. flex-wrap: nowrap;
  7152. justify-content: center;
  7153. align-content: center;
  7154. align-items: center;
  7155. }
  7156. .chapter_add {
  7157. width: 120px;
  7158. position: relative;
  7159. text-align: center;
  7160. }
  7161. .isAddThings {
  7162. margin-top: 20px;
  7163. position: relative;
  7164. text-align: center;
  7165. background: #f7f8fa;
  7166. height: 90px;
  7167. width: 90px;
  7168. display: flex;
  7169. flex-direction: column;
  7170. justify-content: center;
  7171. }
  7172. .deleteWord {
  7173. width: 22px;
  7174. height: 22px;
  7175. position: absolute;
  7176. right: -5px;
  7177. top: -5px;
  7178. cursor: pointer;
  7179. }
  7180. .box_course {
  7181. /* width: 60%; */
  7182. width: 81%;
  7183. }
  7184. .wheel {
  7185. width: 100%;
  7186. height: 100%;
  7187. }
  7188. .right_box {
  7189. display: flex;
  7190. flex-direction: column;
  7191. margin-left: 30px;
  7192. justify-content: space-around;
  7193. }
  7194. .right_box_title {
  7195. font-size: 23px;
  7196. }
  7197. .people {
  7198. display: flex;
  7199. }
  7200. .student_body {
  7201. width: 100%;
  7202. margin: 0 auto;
  7203. margin-top: 10px;
  7204. padding: 0 0 20px;
  7205. }
  7206. .study_top {
  7207. margin-top: 70px;
  7208. width: 100%;
  7209. /* overflow: auto; */
  7210. height: auto;
  7211. }
  7212. .study_top .checkbox {
  7213. display: flex;
  7214. align-items: center;
  7215. padding: 15px 0 15px 30px;
  7216. flex: 0 0 auto;
  7217. font-weight: bold;
  7218. border-bottom: 1px solid #eee;
  7219. }
  7220. .study_top .check {
  7221. padding-bottom: 5px;
  7222. text-align: center;
  7223. cursor: pointer;
  7224. height: 30px;
  7225. box-sizing: border-box;
  7226. display: flex;
  7227. }
  7228. .study_top .checked {
  7229. border-bottom: 4px solid #3fc6a0;
  7230. padding-bottom: 5px;
  7231. color: #3fc6a0;
  7232. display: flex;
  7233. height: 35px;
  7234. }
  7235. .study_top .checked > div,
  7236. .study_top .check > div {
  7237. margin-right: 5px;
  7238. }
  7239. .videoTop {
  7240. display: flex;
  7241. flex-direction: row;
  7242. justify-content: space-between;
  7243. background: #fff;
  7244. align-items: center;
  7245. width: 95%;
  7246. padding: 20px;
  7247. }
  7248. .upbtn {
  7249. margin: 25px;
  7250. background: #70afdb;
  7251. color: #fff;
  7252. width: 120px;
  7253. text-align: center;
  7254. height: 30px;
  7255. line-height: 30px;
  7256. font-size: 13px;
  7257. border-radius: 5px;
  7258. cursor: pointer;
  7259. }
  7260. .filebox {
  7261. display: flex;
  7262. flex-wrap: wrap;
  7263. flex-direction: column;
  7264. padding: 15px 0 5px;
  7265. }
  7266. .filebox .tooldetail {
  7267. width: 100%;
  7268. margin: 0px 12px;
  7269. background: rgb(247, 247, 247);
  7270. padding: 20px;
  7271. line-height: 30px;
  7272. word-break: break-word;
  7273. }
  7274. .file {
  7275. display: flex;
  7276. flex-direction: column;
  7277. align-items: center;
  7278. justify-content: center;
  7279. cursor: pointer;
  7280. width: 200px;
  7281. }
  7282. .file div {
  7283. margin-top: 10px;
  7284. width: 150px;
  7285. text-align: center;
  7286. overflow: hidden;
  7287. white-space: nowrap;
  7288. text-overflow: ellipsis;
  7289. }
  7290. .media {
  7291. display: flex;
  7292. flex-direction: column;
  7293. align-items: center;
  7294. justify-content: center;
  7295. margin: 0 20px 20px 0;
  7296. cursor: pointer;
  7297. margin: 12px 0 5px 15px;
  7298. overflow: hidden;
  7299. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  7300. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  7301. box-sizing: border-box;
  7302. }
  7303. .media img {
  7304. height: 90px;
  7305. width: 160px;
  7306. object-fit: cover;
  7307. }
  7308. .media .title {
  7309. padding: 5px;
  7310. text-align: left;
  7311. width: 100%;
  7312. box-sizing: border-box;
  7313. }
  7314. .media .btn {
  7315. width: 100%;
  7316. height: 35px;
  7317. line-height: 35px;
  7318. color: #fff;
  7319. background: #606060;
  7320. text-align: center;
  7321. overflow: hidden;
  7322. white-space: nowrap;
  7323. text-overflow: ellipsis;
  7324. }
  7325. .detail_content_top {
  7326. width: 100%;
  7327. padding: 25px 0 25px 0;
  7328. }
  7329. .detail_title {
  7330. text-align: center;
  7331. font-size: 24px;
  7332. }
  7333. .detail_time {
  7334. font-size: 13px;
  7335. padding: 15px 0 0 40px;
  7336. }
  7337. .detail_content {
  7338. line-height: 2pc;
  7339. width: 90%;
  7340. margin: 0 auto;
  7341. padding-top: 30px;
  7342. text-indent: 30px;
  7343. overflow: auto;
  7344. height: 200px;
  7345. }
  7346. .score_box >>> .el-rate {
  7347. margin-left: 10px;
  7348. }
  7349. .dialog_change >>> .el-dialog {
  7350. border-radius: 5px;
  7351. }
  7352. .dialog_change >>> .el-dialog__header {
  7353. background: #f2f2f2;
  7354. text-align: center;
  7355. }
  7356. .dialog_change >>> .el-dialog__title {
  7357. line-height: 5px;
  7358. }
  7359. .dialog_change >>> .el-dialog__body {
  7360. background: #fff;
  7361. padding: 10px 20px;
  7362. }
  7363. .score_box {
  7364. display: flex;
  7365. align-items: center;
  7366. margin-bottom: 18px;
  7367. margin-top: 20px;
  7368. }
  7369. .up_photo {
  7370. width: 120px;
  7371. cursor: pointer;
  7372. margin-top: 10px;
  7373. }
  7374. .upload_send {
  7375. margin: 30px auto 30px;
  7376. width: 60%;
  7377. background: #169bd6;
  7378. text-align: center;
  7379. height: 35px;
  7380. line-height: 35px;
  7381. color: #fff;
  7382. border-radius: 5px;
  7383. cursor: pointer;
  7384. }
  7385. .marginT {
  7386. margin-top: 20px;
  7387. }
  7388. .cd_content_steps {
  7389. display: flex;
  7390. width: 90%;
  7391. justify-content: space-around;
  7392. border-top: 1px solid #eeeeee;
  7393. }
  7394. .cd_steps_box {
  7395. display: flex;
  7396. justify-content: center;
  7397. align-items: center;
  7398. flex-direction: column;
  7399. cursor: pointer;
  7400. }
  7401. .first {
  7402. display: flex;
  7403. align-items: center;
  7404. margin: 15px 0 20px 0;
  7405. font-size: 20px;
  7406. }
  7407. .first > div:nth-child(2) {
  7408. font-size: 16px !important;
  7409. padding-left: 10px;
  7410. line-height: 26px;
  7411. box-sizing: border-box;
  7412. }
  7413. .blue_box_one {
  7414. text-align: center;
  7415. color: #fff;
  7416. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  7417. border-radius: 7px;
  7418. margin: 10px;
  7419. cursor: pointer;
  7420. width: 95%;
  7421. height: 45px;
  7422. display: flex;
  7423. flex-direction: row;
  7424. justify-content: flex-start;
  7425. align-items: center;
  7426. }
  7427. .blue_box_one > div:nth-child(1) {
  7428. line-height: 30px;
  7429. margin: 0 5px 0 10px;
  7430. width: 30%;
  7431. min-width: 70px;
  7432. border-radius: 4px;
  7433. }
  7434. .blue_box_one > div:nth-child(2) {
  7435. white-space: nowrap;
  7436. text-overflow: ellipsis;
  7437. overflow: hidden;
  7438. word-break: break-all;
  7439. width: 70%;
  7440. text-align: left;
  7441. margin-right: 10px;
  7442. max-width: calc(100% - 85px);
  7443. }
  7444. .blue_box_one > div:nth-child(2):hover {
  7445. overflow: hidden;
  7446. text-overflow: ellipsis;
  7447. white-space: nowrap;
  7448. cursor: pointer;
  7449. }
  7450. .upFile {
  7451. margin: 0 auto;
  7452. width: 120px;
  7453. background: #70afdb;
  7454. color: #fff;
  7455. height: 30px;
  7456. text-align: center;
  7457. line-height: 30px;
  7458. border-radius: 5px;
  7459. font-size: 14px;
  7460. cursor: pointer;
  7461. }
  7462. .courseTitle {
  7463. background: #205cc6;
  7464. width: 85%;
  7465. margin: 10px auto;
  7466. height: 50px;
  7467. color: #fff;
  7468. line-height: 50px;
  7469. text-align: center;
  7470. font-size: 20px;
  7471. font-weight: bold;
  7472. border-radius: 5px;
  7473. cursor: pointer;
  7474. white-space: nowrap;
  7475. overflow: hidden;
  7476. text-overflow: ellipsis;
  7477. padding: 0 10px;
  7478. }
  7479. .ml {
  7480. margin-left: 20px;
  7481. color: #5b7dba;
  7482. border-left: 3px solid #5b7dba;
  7483. padding-left: 5px;
  7484. font-weight: bold;
  7485. }
  7486. .return {
  7487. width: 2rem;
  7488. height: 2rem;
  7489. cursor: pointer;
  7490. }
  7491. .return > img {
  7492. width: 100%;
  7493. height: 100%;
  7494. }
  7495. .returnBtn {
  7496. background: #499eef;
  7497. width: 65px;
  7498. height: 30px;
  7499. color: #fff;
  7500. text-align: center;
  7501. line-height: 32px;
  7502. margin-right: 20px;
  7503. cursor: pointer;
  7504. border-radius: 5px;
  7505. font-size: 14px;
  7506. }
  7507. .tool {
  7508. display: flex;
  7509. flex-direction: column;
  7510. flex-wrap: nowrap;
  7511. width: 13%;
  7512. margin: 0 30px;
  7513. align-items: center;
  7514. }
  7515. .whiteBIcon {
  7516. width: 150px;
  7517. cursor: pointer;
  7518. }
  7519. .whiteBIcon > img {
  7520. width: 100%;
  7521. height: 100%;
  7522. }
  7523. .mask {
  7524. background-color: rgba(0, 0, 0, 0);
  7525. position: fixed;
  7526. top: 0;
  7527. left: 0;
  7528. width: 100%;
  7529. height: 100%;
  7530. z-index: 20000;
  7531. display: flex;
  7532. align-items: center;
  7533. justify-content: center;
  7534. }
  7535. .progressBox {
  7536. width: 500px;
  7537. height: 180px;
  7538. background: #fff;
  7539. border-radius: 10px;
  7540. box-shadow: 0 0 6px 1px #bfbfbf;
  7541. display: flex;
  7542. align-items: center;
  7543. justify-content: center;
  7544. flex-direction: column;
  7545. }
  7546. .progressBox .lbox {
  7547. height: 100px;
  7548. font-size: 19px;
  7549. display: flex;
  7550. align-items: center;
  7551. }
  7552. .progressBox .lbox img {
  7553. width: 40px;
  7554. margin-right: 20px;
  7555. }
  7556. .progressBox >>> .el-progress-bar__outer {
  7557. background-color: #d1dfff !important;
  7558. }
  7559. .progressBox .lbox {
  7560. height: 100px;
  7561. font-size: 19px;
  7562. display: flex;
  7563. align-items: center;
  7564. }
  7565. .progressBox .lbox img {
  7566. width: 40px;
  7567. margin-right: 20px;
  7568. }
  7569. .uploadVedio {
  7570. display: flex;
  7571. flex-direction: column;
  7572. flex-wrap: nowrap;
  7573. justify-content: center;
  7574. align-items: center;
  7575. margin: 0 15px 10px 0;
  7576. }
  7577. .uploadVedio > img {
  7578. width: 30px;
  7579. height: 30px;
  7580. }
  7581. .uploadVedio > span {
  7582. white-space: nowrap;
  7583. overflow: hidden;
  7584. text-overflow: ellipsis;
  7585. width: 75px;
  7586. margin-top: 7px;
  7587. }
  7588. .picName {
  7589. white-space: nowrap;
  7590. overflow: hidden;
  7591. text-overflow: ellipsis;
  7592. width: 75px;
  7593. margin-top: 7px;
  7594. }
  7595. .new_top {
  7596. display: flex;
  7597. background: #fff;
  7598. flex-direction: row;
  7599. justify-content: flex-start;
  7600. align-items: center;
  7601. height: 60px;
  7602. position: relative;
  7603. }
  7604. .before {
  7605. position: absolute;
  7606. background: #c3dad4;
  7607. width: 6px;
  7608. height: 100%;
  7609. }
  7610. .courseIndex {
  7611. display: flex;
  7612. flex-direction: row;
  7613. align-items: center;
  7614. width: calc(100% - 350px);
  7615. }
  7616. .courseIndex > div:nth-child(1) {
  7617. margin: 0 20px;
  7618. padding-left: 5px;
  7619. font-size: 24px;
  7620. min-width: 100px;
  7621. font-weight: bold;
  7622. border-left: 4px solid #3363b9;
  7623. height: 35px;
  7624. text-align: center;
  7625. line-height: 35px;
  7626. }
  7627. .courseIndex > div:nth-child(2) {
  7628. font-size: 23px;
  7629. width: 300px;
  7630. white-space: nowrap;
  7631. overflow: hidden;
  7632. text-overflow: ellipsis;
  7633. }
  7634. .courseIndex > div:nth-child(3) {
  7635. border-bottom: 1px solid #d7d7d7;
  7636. padding-bottom: 5px;
  7637. background: #49a0f0;
  7638. width: 55px;
  7639. min-width: 55px;
  7640. border-radius: 5px;
  7641. color: #fff;
  7642. text-align: center;
  7643. height: 20px;
  7644. line-height: 26px;
  7645. font-size: 14px;
  7646. margin: 0 0 0 10px;
  7647. }
  7648. .course_text {
  7649. padding: 20px 0 0 15px;
  7650. text-indent: 30px;
  7651. width: 80%;
  7652. min-height: 20px;
  7653. }
  7654. .vedioList {
  7655. background: #f2f2f2;
  7656. border: 1px solid #ececec;
  7657. /* width: 38.8%; */
  7658. width: calc(100% - 83%);
  7659. height: 445px;
  7660. border-radius: 10px;
  7661. overflow: hidden;
  7662. }
  7663. .vedioNav {
  7664. margin: 10px 0 0 15px;
  7665. border-bottom: 1px solid #d7d7d7;
  7666. padding-bottom: 5px;
  7667. background: #96d1ff;
  7668. width: 55px;
  7669. min-width: 55px;
  7670. border-radius: 5px;
  7671. color: #fff;
  7672. text-align: center;
  7673. height: 20px;
  7674. line-height: 26px;
  7675. font-size: 14px;
  7676. }
  7677. .queTop {
  7678. display: flex;
  7679. padding: 20px 0 20px 30px;
  7680. width: 100%;
  7681. flex-direction: row;
  7682. justify-content: flex-start;
  7683. align-items: center;
  7684. border-bottom: 1px solid #eeeeee;
  7685. box-sizing: border-box;
  7686. }
  7687. .question {
  7688. width: 40px;
  7689. margin-right: 10px;
  7690. margin-top: 7px;
  7691. }
  7692. .queTitle {
  7693. margin-left: 5px;
  7694. font-size: 25px;
  7695. display: flex;
  7696. align-items: center;
  7697. }
  7698. .addEditor {
  7699. width: 100px;
  7700. height: 30px;
  7701. background: #42cda6;
  7702. color: #fff;
  7703. border-radius: 5px;
  7704. text-align: center;
  7705. line-height: 30px;
  7706. box-shadow: 1px 3px 6px 1px #bfbfbf;
  7707. cursor: pointer;
  7708. }
  7709. .vedioName {
  7710. /* text-overflow: ellipsis;
  7711. top: 8px;
  7712. font-size: 14px;
  7713. overflow: hidden;
  7714. width: 100%;
  7715. word-break: break-all;
  7716. white-space: nowrap; */
  7717. cursor: pointer;
  7718. margin: 0px 0px 10px 5px;
  7719. white-space: nowrap;
  7720. overflow: hidden;
  7721. text-overflow: ellipsis;
  7722. width: 100%;
  7723. }
  7724. .vedioTime {
  7725. width: 35px;
  7726. position: absolute;
  7727. color: #fff;
  7728. bottom: 0px;
  7729. right: 0px;
  7730. text-align: center;
  7731. background: #46411f;
  7732. height: 20px;
  7733. font-size: 14px;
  7734. line-height: 20px;
  7735. }
  7736. .homework {
  7737. width: 200px;
  7738. display: flex;
  7739. flex-direction: column;
  7740. flex-wrap: nowrap;
  7741. align-items: center;
  7742. cursor: pointer;
  7743. }
  7744. .homebox {
  7745. display: flex;
  7746. flex-wrap: wrap;
  7747. flex-direction: row;
  7748. justify-content: flex-start;
  7749. align-items: center;
  7750. padding: 15px 0;
  7751. }
  7752. .isChooseActive {
  7753. color: #3e88f4;
  7754. border-bottom: 2px solid #2f80f3;
  7755. }
  7756. .chooseWho {
  7757. display: flex;
  7758. width: 100%;
  7759. flex-direction: row;
  7760. flex-wrap: nowrap;
  7761. justify-content: flex-start;
  7762. padding-bottom: 10px;
  7763. }
  7764. .chooseWho > div {
  7765. cursor: pointer;
  7766. padding-bottom: 10px;
  7767. margin: 0 30px;
  7768. }
  7769. .addPoint > div > img {
  7770. cursor: pointer;
  7771. margin: 0 10px;
  7772. width: 85px;
  7773. border-radius: 15px;
  7774. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  7775. }
  7776. .addPoint > div {
  7777. display: flex;
  7778. flex-direction: column;
  7779. flex-wrap: nowrap;
  7780. align-items: center;
  7781. }
  7782. .isBorder > div {
  7783. margin: 0 0 10px 0;
  7784. align-items: flex-start !important;
  7785. }
  7786. .noiframeBox {
  7787. display: flex;
  7788. flex-wrap: wrap;
  7789. }
  7790. .iframeBox iframe {
  7791. width: 100%;
  7792. height: 800px;
  7793. border: none;
  7794. margin-bottom: 20px;
  7795. border: 1px solid #ccc;
  7796. }
  7797. .upload_toolBtn {
  7798. background: #6b92c9;
  7799. color: #fff;
  7800. width: 110px;
  7801. text-align: center;
  7802. height: 35px;
  7803. line-height: 35px;
  7804. font-size: 14px;
  7805. border-radius: 5px;
  7806. cursor: pointer;
  7807. position: absolute;
  7808. right: 10px;
  7809. bottom: 0;
  7810. }
  7811. .binfo_input,
  7812. .pj {
  7813. font: inherit;
  7814. color: currentColor;
  7815. width: 100%;
  7816. margin: 0;
  7817. padding: 15px 14px;
  7818. display: block;
  7819. min-width: 0;
  7820. outline: none;
  7821. box-sizing: content-box;
  7822. background: none;
  7823. -webkit-tap-highlight-color: transparent;
  7824. border: 1px solid rgba(0, 0, 0, 0.23);
  7825. border-radius: 4px;
  7826. box-sizing: border-box;
  7827. resize: none;
  7828. }
  7829. .binfo_input:focus-visible {
  7830. border: 1px solid rgba(61, 103, 188);
  7831. }
  7832. .dialog_diy >>> .el-dialog__header,
  7833. .dialog_diy1 >>> .el-dialog__header {
  7834. background: #002e81 !important;
  7835. padding: 15px 20px;
  7836. }
  7837. .dialog_diy >>> .el-dialog__title,
  7838. .dialog_diy1 >>> .el-dialog__title {
  7839. color: #fff;
  7840. }
  7841. .dialog_diy >>> .el-dialog__headerbtn,
  7842. .dialog_diy1 >>> .el-dialog__headerbtn {
  7843. top: 19px;
  7844. }
  7845. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  7846. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  7847. color: #fff;
  7848. }
  7849. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  7850. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  7851. color: #fff;
  7852. }
  7853. .dialog_diy1 >>> .el-dialog__body {
  7854. padding: 0;
  7855. }
  7856. .dialog_diy >>> .el-dialog__body,
  7857. .dialog_diy >>> .el-dialog__footer,
  7858. .dialog_diy1 >>> .el-dialog__footer {
  7859. background: #fafafa;
  7860. }
  7861. .a_addBox {
  7862. margin: 10px 0;
  7863. background: #fff;
  7864. padding: 15px;
  7865. max-height: 400px;
  7866. overflow: auto;
  7867. }
  7868. .a_add_box {
  7869. border-bottom: 2px solid #eee;
  7870. padding-bottom: 10px;
  7871. }
  7872. .a_add_head {
  7873. display: flex;
  7874. align-items: flex-start;
  7875. /* justify-content: space-between; */
  7876. flex-direction: column;
  7877. margin: 10px 0;
  7878. font-size: 18px;
  7879. width: 100%;
  7880. }
  7881. .a_add_head .a_add_head_input {
  7882. width: 300px;
  7883. }
  7884. .a_add_head .a_add_head_div {
  7885. display: flex;
  7886. align-items: center;
  7887. justify-content: space-between;
  7888. }
  7889. .a_add_body {
  7890. display: flex;
  7891. align-items: center;
  7892. }
  7893. .a_add_input {
  7894. display: flex;
  7895. align-items: center;
  7896. flex-wrap: wrap;
  7897. }
  7898. .a_add_input >>> el-radio-group {
  7899. margin: 10px 0;
  7900. }
  7901. .a_add_input >>> .el-radio {
  7902. margin-bottom: 10px;
  7903. }
  7904. .redioStyle >>> .el-radio__label {
  7905. font-size: 18px;
  7906. }
  7907. .redioStyle >>> .el-checkbox__label {
  7908. font-size: 18px;
  7909. }
  7910. .toolHeng2 {
  7911. width: 100%;
  7912. }
  7913. .toolHeng {
  7914. display: flex;
  7915. flex-direction: row;
  7916. flex-wrap: wrap;
  7917. justify-content: flex-start;
  7918. align-items: center;
  7919. width: 100%;
  7920. }
  7921. .toolHeng > div {
  7922. padding-left: 20px;
  7923. }
  7924. .isWidth {
  7925. width: 20%;
  7926. }
  7927. .textTitle {
  7928. display: flex;
  7929. flex-direction: row;
  7930. flex-wrap: nowrap;
  7931. align-items: center;
  7932. width: 95%;
  7933. }
  7934. .textTitle >>> .el-form-item__label {
  7935. font-size: 22px;
  7936. color: #918f8f;
  7937. width: 100px;
  7938. }
  7939. .textTitle >>> .el-form-item__content {
  7940. width: calc(100% - 100px);
  7941. }
  7942. .textCss >>> .el-dialog {
  7943. width: 800px !important;
  7944. height: 400px;
  7945. background: #fafafa;
  7946. }
  7947. .textCss >>> .el-dialog__body {
  7948. margin: 55px 8% 0 8%;
  7949. padding: 0 !important;
  7950. }
  7951. .textCss >>> .el-dialog__footer {
  7952. padding-top: 38px;
  7953. }
  7954. .toolsCss >>> .el-dialog__body {
  7955. padding: 20px;
  7956. }
  7957. .lineCss >>> .el-dialog__body {
  7958. display: flex;
  7959. flex-direction: row;
  7960. align-items: center;
  7961. justify-content: center;
  7962. }
  7963. .newNav {
  7964. display: flex;
  7965. flex-direction: row;
  7966. align-items: baseline;
  7967. justify-content: flex-start;
  7968. }
  7969. .navText {
  7970. cursor: pointer;
  7971. margin: 0px 0px 10px 5px;
  7972. white-space: nowrap;
  7973. overflow: hidden;
  7974. text-overflow: ellipsis;
  7975. /* width: 300px; */
  7976. width: 100%;
  7977. }
  7978. .noVedio {
  7979. display: flex;
  7980. flex-direction: row;
  7981. justify-content: center;
  7982. align-content: center;
  7983. }
  7984. .noNavText {
  7985. cursor: pointer;
  7986. margin: 0px 0px 10px 5px;
  7987. width: 112px;
  7988. }
  7989. .listNoVedio {
  7990. margin: 0 0 0 30px;
  7991. width: 97%;
  7992. }
  7993. .video-player >>> .video-js {
  7994. height: 100%;
  7995. }
  7996. .hangVedioList {
  7997. width: 90% !important;
  7998. height: 150px !important;
  7999. margin: 20px 0 0 30px;
  8000. }
  8001. .hangVedio {
  8002. width: 100%;
  8003. height: 170px !important;
  8004. align-items: flex-start !important;
  8005. }
  8006. .hangHand {
  8007. height: 150px !important;
  8008. }
  8009. .twoChild {
  8010. width: 95%;
  8011. margin: 10px;
  8012. border-radius: 5px;
  8013. background: #f2f2f2;
  8014. display: flex;
  8015. flex-direction: column;
  8016. flex-wrap: nowrap;
  8017. justify-content: flex-start;
  8018. align-items: flex-start;
  8019. transition: all 0.5s;
  8020. overflow: hidden;
  8021. height: 0;
  8022. background: #e7f3ff;
  8023. }
  8024. .twoChild > div:nth-child(1) {
  8025. margin-top: 5px;
  8026. }
  8027. .navChild {
  8028. width: 100%;
  8029. cursor: pointer;
  8030. margin-bottom: 10px;
  8031. }
  8032. .navActive {
  8033. height: auto;
  8034. }
  8035. .navTask {
  8036. display: flex;
  8037. flex-direction: row;
  8038. flex-wrap: nowrap;
  8039. align-items: center;
  8040. align-content: flex-start;
  8041. height: 40px;
  8042. justify-content: flex-start;
  8043. padding: 0 10px;
  8044. width: 100%;
  8045. box-sizing: border-box;
  8046. }
  8047. .navTaskname {
  8048. white-space: nowrap;
  8049. text-overflow: ellipsis;
  8050. overflow: hidden;
  8051. word-break: break-all;
  8052. padding-left: 5px;
  8053. }
  8054. .openTaskActive {
  8055. color: #4386e6;
  8056. }
  8057. .iframeName {
  8058. margin: 5px 0;
  8059. border-left: 4px solid #41c4a4;
  8060. padding-left: 4px;
  8061. }
  8062. .toolTitle {
  8063. margin: 0px 0px 20px;
  8064. font-size: 20px;
  8065. font-weight: 500;
  8066. border-left: 4px solid #41c4a4;
  8067. padding-left: 4px;
  8068. }
  8069. .cru_selectBox {
  8070. overflow: auto;
  8071. width: 96%;
  8072. margin: 0 auto;
  8073. height: calc(100% - 40px - 21px - 20px);
  8074. }
  8075. .cru_selectBox::-webkit-scrollbar,
  8076. .study_top::-webkit-scrollbar,
  8077. .textContent::-webkit-scrollbar {
  8078. /*滚动条整体样式*/
  8079. width: 6px;
  8080. /*高宽分别对应横竖滚动条的尺寸*/
  8081. height: 6px;
  8082. }
  8083. /*定义滚动条轨道 内阴影+圆角*/
  8084. .cru_selectBox::-webkit-scrollbar-track,
  8085. .study_top::-webkit-scrollbar-track,
  8086. .textContent::-webkit-scrollbar {
  8087. border-radius: 10px;
  8088. background-color: #b8bdc9;
  8089. }
  8090. /*定义滑块 内阴影+圆角*/
  8091. .cru_selectBox::-webkit-scrollbar-thumb,
  8092. .study_top::-webkit-scrollbar-thumb,
  8093. .textContent::-webkit-scrollbar-thumb {
  8094. border-radius: 10px;
  8095. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  8096. background-color: #2c5ab3;
  8097. }
  8098. .vedioBox {
  8099. border-radius: 20px;
  8100. background: #fff;
  8101. margin-bottom: 10px;
  8102. }
  8103. .taskBox {
  8104. margin: 15px auto 20px;
  8105. background: #f7f7f7;
  8106. width: 97%;
  8107. border-radius: 10px;
  8108. }
  8109. .vedioTaskBox {
  8110. width: 100%;
  8111. display: flex;
  8112. flex-direction: row;
  8113. flex-wrap: nowrap;
  8114. align-items: center;
  8115. }
  8116. .toolBox {
  8117. padding: 20px 0 0 0;
  8118. display: flex;
  8119. }
  8120. .btnAll {
  8121. position: absolute;
  8122. right: 0;
  8123. display: flex;
  8124. flex-direction: row;
  8125. flex-wrap: nowrap;
  8126. align-items: center;
  8127. }
  8128. .vedioTimeBox {
  8129. display: flex;
  8130. flex-direction: row;
  8131. align-items: center;
  8132. flex-wrap: nowrap;
  8133. position: relative;
  8134. }
  8135. .navBox {
  8136. background: rgb(255, 255, 255);
  8137. height: 400px;
  8138. padding: 5px 1px 0 1px;
  8139. overflow: auto;
  8140. }
  8141. .worksBox {
  8142. padding: 5px 0 0 10px;
  8143. border-bottom: 1px solid #eeeeee;
  8144. }
  8145. .worksBTitle {
  8146. font-size: 20px;
  8147. padding-bottom: 15px;
  8148. border-bottom: 1px solid #eeeeee;
  8149. display: flex;
  8150. align-items: center;
  8151. }
  8152. .greenBox {
  8153. width: 5px;
  8154. height: 30px;
  8155. background: #63b6fa;
  8156. margin-right: 5px;
  8157. }
  8158. .worksDetailBox {
  8159. display: flex;
  8160. width: 100%;
  8161. flex-direction: row;
  8162. flex-wrap: wrap;
  8163. align-items: center;
  8164. justify-content: flex-start;
  8165. padding: 15px 0;
  8166. }
  8167. .works {
  8168. display: flex;
  8169. flex-direction: column;
  8170. flex-wrap: nowrap;
  8171. align-items: flex-start;
  8172. justify-content: flex-start;
  8173. align-content: center;
  8174. max-width: 240px;
  8175. width: calc(100% / 3 - 10px);
  8176. height: auto;
  8177. margin-right: 10px;
  8178. margin-bottom: 10px;
  8179. overflow: hidden;
  8180. height: 140px;
  8181. box-shadow: 0 0 6px 1px #dfdada;
  8182. border-radius: 15px;
  8183. }
  8184. .workImg {
  8185. width: 100%;
  8186. /* height: calc(100% - 40px); */
  8187. height: 105px;
  8188. position: relative;
  8189. }
  8190. .workImg > img {
  8191. width: 100%;
  8192. height: 100%;
  8193. object-fit: contain;
  8194. }
  8195. .worksName {
  8196. height: 40px;
  8197. line-height: 40px;
  8198. display: flex;
  8199. width: 92%;
  8200. flex-direction: row;
  8201. flex-wrap: nowrap;
  8202. justify-content: space-between;
  8203. align-items: center;
  8204. margin: 0 10px;
  8205. }
  8206. .worksName > div:nth-child(1) {
  8207. width: 48px;
  8208. white-space: nowrap;
  8209. overflow: hidden;
  8210. text-overflow: ellipsis;
  8211. }
  8212. .worksName > div:nth-child(2) {
  8213. color: #b7b4b5;
  8214. }
  8215. .noWorksS {
  8216. padding: 15px 0;
  8217. display: flex;
  8218. flex-direction: row;
  8219. flex-wrap: wrap;
  8220. align-items: center;
  8221. justify-content: flex-start;
  8222. }
  8223. .isWorksName {
  8224. cursor: pointer;
  8225. background: #46a1eb !important;
  8226. }
  8227. .noWorksName,
  8228. .isWorksName {
  8229. background: #7cbcf1;
  8230. color: #fff;
  8231. width: 90px;
  8232. height: 25px;
  8233. text-align: center;
  8234. line-height: 25px;
  8235. border-radius: 5px;
  8236. margin: 10px 15px 10px 0;
  8237. white-space: nowrap;
  8238. overflow: hidden;
  8239. padding: 5px;
  8240. text-overflow: ellipsis;
  8241. }
  8242. .noWorksName:hover {
  8243. background: #46a1eb !important;
  8244. }
  8245. .title {
  8246. background: #1e5cc9;
  8247. /* width: 98%; */
  8248. height: 45px;
  8249. color: #fff;
  8250. line-height: 45px;
  8251. padding-left: 20px;
  8252. box-sizing: border-box;
  8253. }
  8254. .textBox {
  8255. font-size: 20px;
  8256. width: 90%;
  8257. display: flex;
  8258. flex-direction: column;
  8259. align-items: center;
  8260. margin: 20px auto 0;
  8261. }
  8262. .textContent {
  8263. font-size: 18px;
  8264. height: 450px;
  8265. width: 95%;
  8266. overflow: auto;
  8267. line-height: 30px;
  8268. }
  8269. .answerBg {
  8270. background: url("../assets/icon/answerBgNew.png") no-repeat;
  8271. background-size: 100% 100%;
  8272. width: 100%;
  8273. height: 100%;
  8274. color: #fff;
  8275. text-align: center;
  8276. display: flex;
  8277. flex-direction: column;
  8278. flex-wrap: nowrap;
  8279. align-items: center;
  8280. position: relative;
  8281. }
  8282. .answerBg > div:nth-child(1) {
  8283. font-size: 22px;
  8284. padding: 25px 0 10px;
  8285. }
  8286. .answerContent {
  8287. width: 215px;
  8288. height: 60px;
  8289. word-break: break-all;
  8290. text-align: center;
  8291. white-space: nowrap;
  8292. overflow: hidden;
  8293. text-overflow: ellipsis;
  8294. }
  8295. .elist_input_box {
  8296. display: flex;
  8297. align-items: flex-start;
  8298. flex-wrap: nowrap;
  8299. padding: 10px 0 15px 30px;
  8300. flex-direction: column;
  8301. }
  8302. .elist_input {
  8303. /* width: 40%; */
  8304. width: 100%;
  8305. }
  8306. .elist_input .elist_input_box input {
  8307. font: inherit;
  8308. color: currentColor;
  8309. width: 200px;
  8310. padding: 8px 14px;
  8311. display: block;
  8312. min-width: 0;
  8313. outline: none;
  8314. border: 1px solid rgba(0, 0, 0, 0.23);
  8315. border-radius: 4px;
  8316. box-sizing: border-box;
  8317. background: #fff;
  8318. margin: 0 20px 0 0;
  8319. }
  8320. .elist_input .elist_input_box span {
  8321. height: 36px;
  8322. line-height: 36px;
  8323. color: rgb(82, 82, 82);
  8324. }
  8325. .elist_input .elist_input_box .remove {
  8326. height: 20px;
  8327. width: 20px;
  8328. background-size: 100% 100%;
  8329. background-position: unset;
  8330. margin-left: 5px;
  8331. }
  8332. .elist_input_box >>> .el-rate {
  8333. display: flex;
  8334. height: 36px;
  8335. align-items: center;
  8336. }
  8337. .elist_input_box .elist_inptu_text {
  8338. min-height: 50px;
  8339. /* width: 500px;
  8340. max-height: 150px; */
  8341. width: 100%;
  8342. line-height: 50px;
  8343. color: rgb(82, 82, 82);
  8344. overflow: auto;
  8345. text-indent: 5px;
  8346. background: #f7f6f9;
  8347. border-radius: 10px;
  8348. }
  8349. .elist_input_box .elist_inptu_text input {
  8350. width: 500px;
  8351. }
  8352. .elist_input_box >>> .el-rate__icon {
  8353. font-size: 24px;
  8354. }
  8355. .isClick {
  8356. background: #4d9def;
  8357. }
  8358. .bzBox {
  8359. display: flex;
  8360. flex-direction: row;
  8361. align-items: center;
  8362. }
  8363. .bzBox > div:nth-child(1) {
  8364. width: 4px;
  8365. height: 40px;
  8366. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  8367. }
  8368. .bzBox > div:nth-child(2) {
  8369. font-size: 23px;
  8370. font-weight: bold;
  8371. padding: 0px 0px 0 10px;
  8372. }
  8373. .navTitile {
  8374. padding: 0 0px 0 15px;
  8375. background: #1e5cc9;
  8376. color: #fff;
  8377. height: 40px;
  8378. line-height: 40px;
  8379. border-top-left-radius: 10px;
  8380. border-top-right-radius: 10px;
  8381. }
  8382. .isTypeOne {
  8383. width: 240px;
  8384. height: 170px;
  8385. /* border: 1px solid #f8f8f8; */
  8386. border-radius: 10px;
  8387. box-shadow: 0 0 6px 1px #dfdada;
  8388. }
  8389. .e_add_top {
  8390. display: flex;
  8391. justify-content: space-between;
  8392. padding: 20px 20px 0 20px;
  8393. border-radius: 3px;
  8394. background: #fff;
  8395. }
  8396. .e_add_title2 {
  8397. display: flex;
  8398. align-items: center;
  8399. }
  8400. .e_add_title2 span {
  8401. width: 40px;
  8402. }
  8403. .e_add_title {
  8404. display: flex;
  8405. align-items: center;
  8406. color: #b8b8b8;
  8407. font-size: 18px;
  8408. position: relative;
  8409. height: 40px;
  8410. }
  8411. .e_add_title span {
  8412. margin-right: 10px;
  8413. }
  8414. .e_add_title .el_input {
  8415. width: 300px;
  8416. }
  8417. .e_add_title >>> .el-input__inner {
  8418. width: 400px;
  8419. }
  8420. .e_add_btn {
  8421. }
  8422. .e_add_content {
  8423. display: flex;
  8424. width: 100%;
  8425. max-width: 650px;
  8426. height: 550px;
  8427. }
  8428. .e_add_list {
  8429. background: #fff;
  8430. height: 500px;
  8431. width: 210px;
  8432. position: relative;
  8433. margin: 15px 5px 0 0;
  8434. flex-shrink: 0;
  8435. display: flex;
  8436. flex-direction: column;
  8437. }
  8438. .e_add_list_title {
  8439. font-size: 20px;
  8440. width: 100%;
  8441. box-sizing: border-box;
  8442. padding: 15px 40px;
  8443. text-align: center;
  8444. border-bottom: 1px solid #eaeaea;
  8445. position: relative;
  8446. display: flex;
  8447. align-items: center;
  8448. justify-content: center;
  8449. height: 57px;
  8450. background: #f6f6f6;
  8451. }
  8452. .e_add_list_title span {
  8453. overflow: hidden;
  8454. white-space: nowrap;
  8455. text-overflow: ellipsis;
  8456. }
  8457. .e_add_list_title img {
  8458. position: absolute;
  8459. right: 15px;
  8460. width: 25px;
  8461. cursor: pointer;
  8462. top: 50%;
  8463. transform: translateY(-50%);
  8464. }
  8465. .e_add_list_body {
  8466. height: calc(100% - 187px);
  8467. overflow: auto;
  8468. }
  8469. .e_add_list_child {
  8470. width: 100%;
  8471. display: flex;
  8472. align-items: center;
  8473. justify-content: center;
  8474. position: relative;
  8475. box-sizing: border-box;
  8476. padding: 15px 40px;
  8477. text-align: center;
  8478. }
  8479. .e_add_list_child span {
  8480. overflow: hidden;
  8481. white-space: nowrap;
  8482. text-overflow: ellipsis;
  8483. cursor: pointer;
  8484. }
  8485. .e_add_list_child img {
  8486. position: absolute;
  8487. right: 10px;
  8488. width: 21px;
  8489. cursor: pointer;
  8490. top: 50%;
  8491. transform: translateY(-50%);
  8492. }
  8493. .e_add_list_child + .e_add_list_child {
  8494. border-top: 1px solid #eaeaea;
  8495. }
  8496. .e_add_list_child .active {
  8497. color: #409eff;
  8498. }
  8499. .e_add_list_btn {
  8500. position: absolute;
  8501. bottom: 0;
  8502. height: 50px;
  8503. background: rgb(120, 120, 254);
  8504. width: 100%;
  8505. color: #fff;
  8506. font-size: 16px;
  8507. text-align: center;
  8508. line-height: 50px;
  8509. cursor: pointer;
  8510. }
  8511. .e_add_list_detail {
  8512. position: absolute;
  8513. bottom: 0;
  8514. height: 130px;
  8515. background: rgb(120, 120, 254);
  8516. width: 100%;
  8517. color: #fff;
  8518. font-size: 16px;
  8519. display: flex;
  8520. align-items: center;
  8521. justify-content: center;
  8522. }
  8523. .e_add_list_detail textarea {
  8524. height: 90%;
  8525. width: 95%;
  8526. border: none;
  8527. resize: none;
  8528. outline: none;
  8529. padding: 5px;
  8530. box-sizing: border-box;
  8531. }
  8532. .e_add_list_pbox {
  8533. width: 100%;
  8534. max-width: 650px;
  8535. /* height: 600px; */
  8536. }
  8537. .e_add_list_pbox_title {
  8538. height: 50px;
  8539. background: #fff;
  8540. display: flex;
  8541. align-items: center;
  8542. width: 100%;
  8543. box-sizing: border-box;
  8544. padding: 0 20px;
  8545. }
  8546. .type_title {
  8547. font-size: 18px;
  8548. font-weight: 700;
  8549. }
  8550. .type_content {
  8551. font-size: 16px;
  8552. margin-left: 30px;
  8553. }
  8554. .type_content span + span {
  8555. margin-left: 20px;
  8556. }
  8557. .type_content span {
  8558. cursor: pointer;
  8559. padding-bottom: 5px;
  8560. box-sizing: border-box;
  8561. }
  8562. .type_content .active {
  8563. color: #409eff;
  8564. border-bottom: 2px solid #409eff;
  8565. }
  8566. .e_add_list_pbox_content {
  8567. height: calc(100% - 50px);
  8568. display: flex;
  8569. align-items: center;
  8570. width: 100%;
  8571. background: #fff;
  8572. }
  8573. .evaCss {
  8574. display: flex;
  8575. flex-direction: row;
  8576. flex-wrap: nowrap;
  8577. align-items: flex-start;
  8578. }
  8579. .cru_line {
  8580. position: absolute;
  8581. bottom: 0px;
  8582. transition: all 0.5s;
  8583. left: 0px;
  8584. width: 125px;
  8585. margin-left: -25px;
  8586. }
  8587. .isNoMessage {
  8588. width: 20%;
  8589. margin: 25% auto 0;
  8590. }
  8591. .isNoMessage > img {
  8592. width: 100%;
  8593. height: 100%;
  8594. }
  8595. .fullStyle >>> .el-dialog__body {
  8596. height: 100% !important;
  8597. }
  8598. .fullStyle >>> .el-dialog,
  8599. .fullStyle {
  8600. width: 100% !important;
  8601. max-width: 100% !important;
  8602. height: 100% !important;
  8603. margin: 0 !important;
  8604. }
  8605. .full_diy >>> .el-dialog {
  8606. margin: 0 !important;
  8607. height: 100%;
  8608. padding: 4px;
  8609. }
  8610. .full_diy >>> .el-dialog__body {
  8611. height: calc(100% - 100px);
  8612. }
  8613. .switchCss {
  8614. width: 100%;
  8615. display: flex;
  8616. flex-direction: row;
  8617. flex-wrap: nowrap;
  8618. align-items: center;
  8619. justify-content: center;
  8620. }
  8621. .isClickNav {
  8622. color: #499eef;
  8623. }
  8624. .commentImg {
  8625. width: 25px;
  8626. height: 25px;
  8627. cursor: pointer;
  8628. }
  8629. .commentImg > img {
  8630. width: 100%;
  8631. height: 100%;
  8632. }
  8633. .comment {
  8634. background: #f9f9f9;
  8635. border-radius: 0 0 15px 15px;
  8636. display: flex;
  8637. flex-direction: row;
  8638. flex-wrap: nowrap;
  8639. align-items: center;
  8640. justify-content: flex-end;
  8641. height: 35px;
  8642. }
  8643. .commentList {
  8644. display: flex;
  8645. flex-direction: row;
  8646. flex-wrap: nowrap;
  8647. align-items: center;
  8648. justify-content: center;
  8649. align-content: center;
  8650. /* margin-left: 15px; */
  8651. margin-left: 8px;
  8652. }
  8653. .scoreImg {
  8654. width: 17px;
  8655. height: 17px;
  8656. }
  8657. .studentDetail {
  8658. display: flex;
  8659. flex-direction: row;
  8660. flex-wrap: nowrap;
  8661. /* align-items: center; */
  8662. align-items: flex-start;
  8663. }
  8664. .tx {
  8665. width: 50px;
  8666. }
  8667. .tx > img {
  8668. width: 100%;
  8669. height: 100%;
  8670. }
  8671. .nameAndTime {
  8672. display: flex;
  8673. flex-direction: column;
  8674. flex-wrap: nowrap;
  8675. align-items: flex-start;
  8676. margin-left: 10px;
  8677. }
  8678. .worksAnswer {
  8679. color: #4078dd;
  8680. margin: 10px 0;
  8681. font-size: 16px;
  8682. }
  8683. .worksAnswer > img {
  8684. width: 100%;
  8685. height: 100%;
  8686. }
  8687. .commentTop {
  8688. border-bottom: 1px solid #eaeaea;
  8689. padding-bottom: 10px;
  8690. }
  8691. .commentBox {
  8692. padding-top: 15px;
  8693. }
  8694. .pl {
  8695. font-size: 18px;
  8696. }
  8697. .plName {
  8698. display: flex;
  8699. flex-direction: row;
  8700. flex-wrap: nowrap;
  8701. align-items: baseline;
  8702. color: #78787a;
  8703. }
  8704. .evalCss {
  8705. background: #fff;
  8706. font-size: 18px;
  8707. }
  8708. .nav {
  8709. color: #9d9d9d;
  8710. padding: 5px 0 15px 20px;
  8711. }
  8712. .middleBox {
  8713. padding: 5px 0 15px 20px;
  8714. }
  8715. .pfBox {
  8716. padding-bottom: 30px;
  8717. }
  8718. .nameAndrate {
  8719. display: flex;
  8720. flex-direction: row;
  8721. flex-wrap: nowrap;
  8722. align-items: center;
  8723. padding-bottom: 10px;
  8724. }
  8725. .nameAndrate > div {
  8726. margin-left: 10px;
  8727. color: #000;
  8728. }
  8729. .pfBox > div:nth-child(2) {
  8730. background: #f7f6f9;
  8731. width: 400px;
  8732. min-height: 45px;
  8733. border-radius: 10px;
  8734. font-size: 16px;
  8735. display: flex;
  8736. flex-wrap: wrap;
  8737. align-items: center;
  8738. padding: 10px 20px;
  8739. box-sizing: border-box;
  8740. color: #000;
  8741. }
  8742. .bz {
  8743. display: flex;
  8744. flex-direction: row;
  8745. flex-wrap: nowrap;
  8746. align-items: flex-start;
  8747. }
  8748. .bz > div {
  8749. padding: 0 10px;
  8750. }
  8751. .select_box2_title {
  8752. background: #fff;
  8753. border-radius: 5px;
  8754. padding: 15px 10px;
  8755. box-sizing: border-box;
  8756. margin-bottom: 10px;
  8757. display: flex;
  8758. flex-direction: row;
  8759. flex-wrap: nowrap;
  8760. align-items: center;
  8761. }
  8762. .select_box2_title > div:nth-child(2) {
  8763. margin-left: 10px;
  8764. color: #c4c4c4;
  8765. }
  8766. .select_box2_box {
  8767. display: flex;
  8768. height: 500px;
  8769. }
  8770. .select_box2_img {
  8771. width: calc(100% - 310px);
  8772. height: 100%;
  8773. overflow: auto;
  8774. background: #fff;
  8775. border-radius: 5px;
  8776. }
  8777. .select_box2_img img {
  8778. width: 100%;
  8779. }
  8780. .select_box2_answer {
  8781. background: #fff;
  8782. margin-left: 10px;
  8783. border-radius: 5px;
  8784. width: 300px;
  8785. overflow: auto;
  8786. height: 90%;
  8787. display: flex;
  8788. flex-direction: column;
  8789. align-items: flex-start;
  8790. padding-top: 10px;
  8791. box-sizing: border-box;
  8792. position: relative;
  8793. }
  8794. .select_answer_title {
  8795. padding: 0 0 15px 20px;
  8796. color: #c4c4c4;
  8797. }
  8798. .select_box2_answer_box {
  8799. margin: 0 0 10px 20px;
  8800. width: 85%;
  8801. display: flex;
  8802. flex-direction: row;
  8803. flex-wrap: nowrap;
  8804. align-items: center;
  8805. }
  8806. .upAnswerCss {
  8807. position: absolute;
  8808. bottom: 15px;
  8809. right: 15px;
  8810. }
  8811. .upAnswerCss >>> .el-button {
  8812. width: 95px;
  8813. height: 35px;
  8814. line-height: 35px;
  8815. padding: 0;
  8816. }
  8817. .rightWidthCss {
  8818. width: 60%;
  8819. display: flex;
  8820. flex-direction: row;
  8821. align-items: flex-start;
  8822. }
  8823. .rightAnswer {
  8824. display: flex;
  8825. flex-direction: row;
  8826. flex-wrap: nowrap;
  8827. align-items: center;
  8828. color: red;
  8829. margin-bottom: 31px;
  8830. }
  8831. .rightAnswerCss {
  8832. display: flex;
  8833. flex-direction: column;
  8834. flex-wrap: nowrap;
  8835. padding-top: 60px;
  8836. }
  8837. .blueCss {
  8838. color: #767de1;
  8839. margin-left: 10px;
  8840. }
  8841. .redCss {
  8842. color: red;
  8843. }
  8844. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  8845. color: rgb(0 123 255) !important;
  8846. }
  8847. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  8848. color: rgb(0 123 255) !important;
  8849. }
  8850. .zuoyeYulan {
  8851. padding-top: 15px;
  8852. font-size: 18px;
  8853. display: flex;
  8854. align-items: flex-end;
  8855. }
  8856. .buttonA {
  8857. margin-left: 10px;
  8858. padding: 0;
  8859. }
  8860. .displayBox {
  8861. margin-bottom: 10px;
  8862. display: block;
  8863. border-bottom: 3px solid #eee;
  8864. display: flex;
  8865. align-items: center;
  8866. }
  8867. .easy_comment {
  8868. width: calc(100% - 90px);
  8869. margin-left: 10px;
  8870. display: flex;
  8871. flex-wrap: wrap;
  8872. }
  8873. .easy_comment > div {
  8874. border: 1px solid #4a4a4a;
  8875. color: #666;
  8876. border-radius: 15px;
  8877. padding: 5px 10px;
  8878. font-size: 16px;
  8879. margin-bottom: 10px;
  8880. margin-right: 5px;
  8881. cursor: pointer;
  8882. }
  8883. .easy_comment div:hover {
  8884. border: 1px solid #f7ba2a;
  8885. color: #c69217;
  8886. }
  8887. .xuan_right_box {
  8888. padding: 10px;
  8889. background: rgb(247, 247, 247);
  8890. margin: 10px 12px;
  8891. border-radius: 5px;
  8892. }
  8893. .tool_right_box {
  8894. display: flex;
  8895. align-items: center;
  8896. }
  8897. .tool_right_box + .tool_right_box {
  8898. margin-top: 10px;
  8899. }
  8900. .right_box_xuan {
  8901. background: rgb(0 123 255);
  8902. color: #fff;
  8903. border-radius: 5px;
  8904. padding: 5px;
  8905. margin-left: 10px;
  8906. }
  8907. .pButton {
  8908. position: fixed;
  8909. /* right: 5%; */
  8910. /* bottom: 5%; */
  8911. color: #fff;
  8912. /* width: 50px;
  8913. height: 50px; */
  8914. /* border-radius: 50%; */
  8915. text-align: center;
  8916. /* line-height: 50px; */
  8917. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  8918. cursor: pointer;
  8919. z-index: 999;
  8920. right: 0;
  8921. top: 83px;
  8922. width: 50px;
  8923. height: 50px;
  8924. background: #fff;
  8925. display: flex;
  8926. align-items: center;
  8927. justify-content: center;
  8928. box-shadow: 0px 0 8px 0px #c5c5c5;
  8929. }
  8930. .pzClass {
  8931. width: calc(100% - 340px);
  8932. }
  8933. .newDialogCss {
  8934. /* position: fixed;
  8935. right: 5%;
  8936. top: 50%;
  8937. width: 340px;
  8938. transform: translateY(-50%);
  8939. height: 60%;
  8940. box-shadow: 0px 0 8px 0px #555555;
  8941. border-radius: 15px;
  8942. z-index: 999; */
  8943. position: fixed;
  8944. right: 0;
  8945. top: 70px;
  8946. width: 340px;
  8947. height: calc(100% - 80px);
  8948. z-index: 999;
  8949. background: #fff;
  8950. border-radius: 15px;
  8951. border-top-right-radius: 0px;
  8952. border-bottom-right-radius: 0px;
  8953. overflow: hidden;
  8954. }
  8955. .pzTop {
  8956. color: #fff;
  8957. background: #000;
  8958. display: flex;
  8959. flex-direction: row;
  8960. flex-wrap: nowrap;
  8961. align-items: center;
  8962. justify-content: space-between;
  8963. height: 40px;
  8964. border-radius: 15px 15px 0 0;
  8965. }
  8966. .pzTop2 .checkbox {
  8967. display: flex;
  8968. align-items: center;
  8969. padding: 15px 30px;
  8970. flex: 0 0 auto;
  8971. font-weight: bold;
  8972. border-bottom: 1px solid #eee;
  8973. justify-content: space-between;
  8974. }
  8975. .pzTop2 .check {
  8976. text-align: center;
  8977. cursor: pointer;
  8978. box-sizing: border-box;
  8979. display: flex;
  8980. }
  8981. .pzTop2 img {
  8982. width: 25px;
  8983. cursor: pointer;
  8984. }
  8985. .pzTop > div:nth-child(1) {
  8986. padding-left: 10px;
  8987. }
  8988. .pzTop > div:nth-child(2) {
  8989. width: 15px;
  8990. height: 15px;
  8991. padding-right: 10px;
  8992. cursor: pointer;
  8993. }
  8994. .pzTop > div:nth-child(2) > img {
  8995. width: 100%;
  8996. height: 100%;
  8997. }
  8998. .pzBox,
  8999. .noPzBox {
  9000. height: calc(100% - 60px);
  9001. /* background: #ededed; */
  9002. background: #fff;
  9003. /* border-radius: 0 0 15px 15px; */
  9004. }
  9005. .noPzBox {
  9006. display: flex;
  9007. flex-direction: column;
  9008. flex-wrap: nowrap;
  9009. justify-content: center;
  9010. align-items: center;
  9011. }
  9012. .pzList {
  9013. background: #f7f7f7;
  9014. width: 90%;
  9015. margin: 0 auto 15px;
  9016. border-radius: 5px;
  9017. }
  9018. .pzNavTop {
  9019. display: flex;
  9020. flex-direction: row;
  9021. flex-wrap: nowrap;
  9022. padding: 10px 10px 0 10px;
  9023. align-items: center;
  9024. }
  9025. .pzDelete {
  9026. cursor: pointer;
  9027. margin-left: auto;
  9028. font-size: 14px;
  9029. color: #afafaf;
  9030. }
  9031. .pzNavTop > div:nth-child(1) {
  9032. background: #3760af;
  9033. width: 35px;
  9034. height: 35px;
  9035. color: #fff;
  9036. text-align: center;
  9037. line-height: 35px;
  9038. border-radius: 50%;
  9039. font-size: 14px;
  9040. }
  9041. .pzNavTop > div:nth-child(2) {
  9042. font-size: 18px;
  9043. color: #959595;
  9044. margin-left: 5px;
  9045. }
  9046. .pzContent {
  9047. padding: 10px;
  9048. word-break: break-word;
  9049. }
  9050. .pzContent audio {
  9051. width: 100%;
  9052. }
  9053. .pzContent audio::-webkit-media-controls-panel {
  9054. background: #fff;
  9055. }
  9056. .pzListBox {
  9057. padding-top: 15px;
  9058. height: calc(100% - 60px);
  9059. overflow: auto;
  9060. }
  9061. .addPzButton {
  9062. position: relative;
  9063. margin-top: 3px;
  9064. width: 100%;
  9065. }
  9066. .addPzButton .img1 {
  9067. position: absolute;
  9068. top: 50%;
  9069. right: 25px;
  9070. transform: translateY(-50%);
  9071. height: 100%;
  9072. display: flex;
  9073. align-items: center;
  9074. }
  9075. .addPzButton .img1 div {
  9076. display: flex;
  9077. }
  9078. .addPzButton .img1 div img {
  9079. width: 28px;
  9080. margin-left: 10px;
  9081. cursor: pointer;
  9082. }
  9083. .addPzButton .img1 div span {
  9084. font-size: 14px;
  9085. margin: 4px 0 0 3px;
  9086. color: #afafaf;
  9087. }
  9088. .addPz {
  9089. background: #4b79ce;
  9090. width: 100px;
  9091. color: #fff;
  9092. font-size: 12px;
  9093. height: 30px;
  9094. margin: 0 auto;
  9095. text-align: center;
  9096. line-height: 30px;
  9097. border-radius: 10px;
  9098. cursor: pointer;
  9099. }
  9100. .addDialogCss {
  9101. position: fixed;
  9102. right: 37%;
  9103. top: 50%;
  9104. width: 600px;
  9105. transform: translateY(-50%);
  9106. height: 70%;
  9107. min-height: 450px;
  9108. box-shadow: 0px 0 8px 0px #555555;
  9109. border-radius: 15px;
  9110. z-index: 999;
  9111. }
  9112. .teacherPz {
  9113. display: flex;
  9114. flex-direction: row;
  9115. align-items: center;
  9116. flex-wrap: nowrap;
  9117. }
  9118. .teacherPzImg {
  9119. width: 30px;
  9120. height: 30px;
  9121. }
  9122. .teacherPzImg > img {
  9123. width: 100%;
  9124. height: 100%;
  9125. }
  9126. .addPzBox {
  9127. height: calc(100% - 40px);
  9128. background: #ededed;
  9129. }
  9130. .pzAudioClass {
  9131. margin: 15px 14px;
  9132. background: #fff;
  9133. height: 100%;
  9134. display: flex;
  9135. justify-content: center;
  9136. align-items: center;
  9137. }
  9138. .pzConText {
  9139. width: 95%;
  9140. height: 100%;
  9141. margin: 10px auto 0;
  9142. border: none;
  9143. background: #fff;
  9144. border-radius: 0px;
  9145. }
  9146. .pzConText >>> .text {
  9147. height: calc(100% - 82px);
  9148. }
  9149. .addTextCss {
  9150. background: #4b79ce;
  9151. width: 80px;
  9152. height: 30px;
  9153. text-align: center;
  9154. color: #fff;
  9155. line-height: 30px;
  9156. border-radius: 10px;
  9157. margin: 10px auto 0;
  9158. cursor: pointer;
  9159. }
  9160. .pzConText:focus-visible {
  9161. border: none !important;
  9162. }
  9163. .maxWidth {
  9164. width: 1000px;
  9165. }
  9166. .noPz {
  9167. width: 150px;
  9168. margin: 0 auto 20%;
  9169. }
  9170. .noPz > img {
  9171. width: 100%;
  9172. height: 100%;
  9173. }
  9174. .pzList .time {
  9175. text-align: right;
  9176. box-sizing: border-box;
  9177. padding: 0 10px 10px 0px;
  9178. color: #949494;
  9179. font-size: 14px;
  9180. }
  9181. /* table 样式 */
  9182. .cont >>> table {
  9183. border-top: 1px solid #ccc;
  9184. border-left: 1px solid #ccc;
  9185. }
  9186. .cont >>> table td,
  9187. .cont >>> table th {
  9188. border-bottom: 1px solid #ccc;
  9189. border-right: 1px solid #ccc;
  9190. padding: 3px 5px;
  9191. }
  9192. .cont >>> table th {
  9193. border-bottom: 2px solid #ccc;
  9194. text-align: center;
  9195. }
  9196. /* blockquote 样式 */
  9197. .cont >>> blockquote {
  9198. display: block;
  9199. border-left: 8px solid #d0e5f2;
  9200. padding: 5px 10px;
  9201. margin: 10px 0;
  9202. line-height: 1.4;
  9203. font-size: 100%;
  9204. background-color: #f1f1f1;
  9205. }
  9206. .addPzCheck {
  9207. display: flex;
  9208. flex-direction: row;
  9209. flex-wrap: nowrap;
  9210. padding: 10px 15px 0;
  9211. }
  9212. .addPzCheck span {
  9213. cursor: pointer;
  9214. padding-bottom: 5px;
  9215. font-weight: bold;
  9216. }
  9217. .addPzCheck span + span {
  9218. margin-left: 10px;
  9219. }
  9220. .addPzCheck .isChooseActive {
  9221. color: #3e88f4;
  9222. border-bottom: 2px solid #2f80f3;
  9223. }
  9224. /* code 样式 */
  9225. .cont >>> code {
  9226. display: inline-block;
  9227. *display: inline;
  9228. *zoom: 1;
  9229. background-color: #f1f1f1;
  9230. border-radius: 3px;
  9231. padding: 3px 5px;
  9232. margin: 0 3px;
  9233. }
  9234. .cont >>> pre code {
  9235. display: block;
  9236. }
  9237. /* ul ol 样式 */
  9238. .cont >>> ul,
  9239. ol {
  9240. margin: 10px 0 10px 20px;
  9241. }
  9242. .scoreBox,
  9243. .scoreDetailBox {
  9244. display: flex;
  9245. align-items: center;
  9246. justify-content: flex-start;
  9247. margin-top: 20px;
  9248. font-size: 18px;
  9249. width: 100%;
  9250. }
  9251. .scoreBox .t,
  9252. .scoreDetailBox .t {
  9253. margin-right: 10px;
  9254. width: 100px;
  9255. text-align: right;
  9256. }
  9257. .scoreDetailBox {
  9258. align-items: flex-start;
  9259. }
  9260. .scoreDetailBox >>> .el-textarea {
  9261. width: calc(100% - 200px);
  9262. }
  9263. .scoreBox >>> .el-input {
  9264. width: 130px;
  9265. font-size: 38px;
  9266. }
  9267. .scoreBox >>> .el-input__inner {
  9268. height: 60px;
  9269. }
  9270. .answerScore {
  9271. position: absolute;
  9272. top: 10px;
  9273. right: 10px;
  9274. background: #0000008f;
  9275. border-radius: 5px;
  9276. padding: 3px 5px;
  9277. font-size: 14px;
  9278. color: #fff;
  9279. cursor: pointer;
  9280. }
  9281. </style>