studyStudent.vue 335 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <!-- <img src="../../assets/icon/learn/screen.png" @click="allScrell" /> -->
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetail?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div v-if="courseDetail.state == 1">第{{ stageIndex + 1 }}阶段</div>
  55. <div v-if="courseDetail.state == 2">任务查看</div>
  56. <div>{{ item.dyName }}</div>
  57. </div>
  58. <div class="twoChild" :class="{ navActive: item.isOpen }">
  59. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  60. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  61. openTaskActive:
  62. navIndex == taskCount &&
  63. nav.id == navId &&
  64. stageIndex == courseType,
  65. }">
  66. <div class="vedioNav" :class="{
  67. isClick:
  68. navIndex == taskCount &&
  69. nav.id == navId &&
  70. stageIndex == courseType,
  71. }" style="margin: 0">
  72. 任务{{ navIndex + 1 }}
  73. </div>
  74. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  75. <div :style="{
  76. width:
  77. IsLookOpen && !nav.isLook
  78. ? 'calc(100% - 75px)'
  79. : 'auto',
  80. }">
  81. {{ nav.taskName }}
  82. </div>
  83. </el-tooltip>
  84. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  92. <div class="new_top" style="
  93. position: fixed;
  94. top: 0;
  95. left: 20.7%;
  96. width: 80%;
  97. z-index: 999;
  98. box-shadow: 0px 9px 0 0 #f2f2f2;
  99. " :class="{ navLeftCss: !mlDialog }">
  100. <div class="courseIndex">
  101. <div>第{{ courseType - 0 + 1 }}阶段</div>
  102. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  103. <div>{{ chapInfoList[courseType].dyName }}</div>
  104. </el-tooltip>
  105. <div>任务{{ taskCount + 1 }}</div>
  106. </div>
  107. <div class="btnAll">
  108. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  109. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  110. <div class="returnBtn" @click="refreshCourse">刷新</div>
  111.             <div class="returnBtn" @click="setPz" v-if="tType == 1">评论</div>
  112. <!-- <div class="returnBtn" @click="allScrell">全屏</div> -->
  113. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  114. 开始录制
  115. </div>
  116. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  117. style="background: #ee5255">
  118. 下载录制
  119. </div>
  120. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  121. 权限
  122. </div> -->
  123. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  124. '/courseDetail?userid=' +
  125. userid +
  126. '&oid=' +
  127. oid +
  128. '&org=' +
  129. org +
  130. '&cid=' +
  131. classId +
  132. '&courseId=' +
  133. id +
  134. '&tType=' +
  135. tType +
  136. '&screenType=' +
  137. screenType
  138. )
  139. ">
  140. 返回
  141. </div>
  142. </div>
  143. </div>
  144. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  145. .taskJson"
  146. :key="index"-->
  147. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  148. .chapterData.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  150. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  151. .taskDetail == '' &&
  152. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  153. ">
  154. <img src="../../assets/icon/isNoMessage.png" alt />
  155. </div>
  156. <div class="study_top" :class="{ pzClass: pzDialog }">
  157. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  158. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  159. .taskDetail != '' ||
  160. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  161. .chapterData.length > 0
  162. ">
  163. <div class="checkbox">
  164. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  165. ">
  166. 学一学
  167. </div>
  168. </div>
  169. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  170. textList[taskCount].length > 0 ||
  171. lineList[taskCount].length > 0 ||
  172. file[taskCount].length > 0 ||
  173. fileC[taskCount].length > 0 ||
  174. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  175. .taskDetail != ''
  176. ">
  177. <div class="taskBox">
  178. <div style="
  179. display: flex;
  180. flex-wrap: nowrap;
  181. flex-direction: column;
  182. position: relative;
  183. ">
  184. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  185. taskCount
  186. ].taskDetail != ''
  187. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  188. taskCount
  189. ].taskDetail
  190. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  191. taskCount
  192. ].taskDetail
  193. : '暂无描述'
  194. "></div>
  195. </div>
  196. </div>
  197. <div class="vedioTaskBox">
  198. <div :class="contentDialog == false
  199. ? 'box_course isContentCss'
  200. : 'box_course'
  201. " v-if="vedio[taskCount].length > 0 ||
  202. textList[taskCount].length > 0 ||
  203. lineList[taskCount].length > 0 ||
  204. file[taskCount].length > 0
  205. ">
  206. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  207. vedio[taskCount] &&
  208. vedio[taskCount].length > 0 &&
  209. showType == 0
  210. ">
  211. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  212. <video-player class="video-player vjs-custom-skin"
  213. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  214. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  215. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  216. </div>
  217. </div>
  218. <div class="wheel" v-if="showType == 1" style="
  219. box-shadow: 0 0 6px 1px #f2f2f2;
  220. width: 95%;
  221. margin: 0 auto;
  222. background: #f1f1f1;
  223. ">
  224. <div class="title">查看文档</div>
  225. <el-form class="textBox">
  226. <el-form-item class="textTitle">
  227. <div style="font-size: 22px">
  228. {{ text.name }}
  229. </div>
  230. </el-form-item>
  231. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  232. <div v-html="text.url" class="textContent cont"></div>
  233. </el-form>
  234. </div>
  235. <div class="wheel"
  236. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  237. style="width: 95%; margin: 0 auto">
  238. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  239. </div>
  240. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  241. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  242. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  243. :src="pptImgUrl1"></iframe>
  244. </div>
  245. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  246. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  247. </div>
  248. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  249. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  250. </div>
  251. </div>
  252. <div class="pButton" style="
  253. position: absolute;
  254. right: 20px;
  255. top: 0;
  256. background: #205cc6;
  257. z-index: 998;
  258. opacity: .8;
  259. " v-if="!contentDialog" @click="setContent(true)">
  260. <!-- 批 -->
  261. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  262. </div>
  263. <div v-if="contentDialog == true" :style="{
  264. width: (!vedio[taskCount].length > 0 &&
  265. !textList[taskCount].length > 0 &&
  266. !lineList[taskCount].length > 0 &&
  267. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  268. !textList[taskCount].length > 0 &&
  269. !lineList[taskCount].length > 0 &&
  270. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  271. }">
  272. <div class="vedioList" v-if="(vedio.length &&
  273. vedio[taskCount] &&
  274. vedio[taskCount].length > 0) ||
  275. (textList.length &&
  276. textList[taskCount] &&
  277. textList[taskCount].length > 0) ||
  278. (lineList.length &&
  279. lineList[taskCount] &&
  280. lineList[taskCount].length > 0) ||
  281. (file.length &&
  282. file[taskCount] &&
  283. file[taskCount].length > 0) ||
  284. (fileC.length &&
  285. fileC[taskCount] &&
  286. fileC[taskCount].length > 0)
  287. " style="height: 650px">
  288. <div class="navCorOpenBox">
  289. <div class="navTitile">内容列表:</div>
  290. <div class="navCorOpen" @click="setContent(false)">
  291. <img src="../../assets/navBtn2.png" alt="" />
  292. </div>
  293. </div>
  294. <div class="navBox">
  295. <div v-show="vedio.length &&
  296. vedio[taskCount] &&
  297. vedio[taskCount].length > 0
  298. ">
  299. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  300. @click="lookVedio(media.url, vedioIndex)">
  301. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  302. ? 'isClickNav'
  303. : ''
  304. ">
  305. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  306. </div>
  307. </div>
  308. </div>
  309. <div v-show="textList.length &&
  310. textList[taskCount] &&
  311. textList[taskCount].length > 0
  312. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  313. @click="lookText(taskCount, textIndex)">
  314. <div style="width: calc(100% - 0px)">
  315. <div class="navText" :class="isClickNav == 'text' + textIndex
  316. ? 'isClickNav'
  317. : ''
  318. ">
  319. {{
  320. textList[taskCount].length > 0 ? text.name : ""
  321. }}.doc
  322. </div>
  323. </div>
  324. </div>
  325. <div v-show="lineList.length &&
  326. lineList[taskCount] &&
  327. lineList[taskCount].length > 0
  328. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  329. @click="doUrl(lines.url, lineIndex)">
  330. <div style="width: calc(100% - 0px)">
  331. <div class="navText" :class="isClickNav == 'line' + lineIndex
  332. ? 'isClickNav'
  333. : ''
  334. ">
  335. {{ lines.title ? lines.title : lines.url }}
  336. </div>
  337. </div>
  338. </div>
  339. <div class="newNav" v-show="file.length &&
  340. file[taskCount] &&
  341. file[taskCount].length > 0
  342. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  343. <div style="width: calc(100% - 0px)">
  344. <div class="navText" :class="isClickNav == 'word' + fileIndex
  345. ? 'isClickNav'
  346. : ''
  347. ">
  348. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  349. </div>
  350. </div>
  351. </div>
  352. <div class="newNav" v-show="fileC.length &&
  353. fileC[taskCount] &&
  354. fileC[taskCount].length > 0
  355. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  356. <div style="width: calc(100% - 0px)">
  357. <div class="navText">
  358. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. <div style="width: 81%">
  367. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  368. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  369. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  370. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  371. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  372. </el-button>
  373. </div>
  374. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  375. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  376. </div>
  377. </div>
  378. </div>
  379. </div>
  380. <div class="student_body" v-resize="resize" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .chapterData.length">
  382. <div class="vedioBox">
  383. <div class="queTop" style="
  384. font-size: 25px;
  385. padding: 15px 0 15px 30px;
  386. font-weight: bold;
  387. ">
  388. 教师工作区
  389. </div>
  390. <div class="tool_work_box">
  391. <div class="tool_box">
  392. <div class="tool_type_box">
  393. <div class="chooseWho">
  394. <div :class="toolType == 0 ? 'isChooseActive' : ''
  395. " @click="(toolType = 0), $forceUpdate()">
  396. 互动类
  397. </div>
  398. <div :class="toolType == 1 ? 'isChooseActive' : ''
  399. " @click="(toolType = 1), $forceUpdate()">
  400. 思维类
  401. </div>
  402. <div :class="toolType == 2 ? 'isChooseActive' : ''
  403. " @click="(toolType = 2), $forceUpdate()">
  404. 评价类
  405. </div>
  406. <div :class="toolType == 3 ? 'isChooseActive' : ''
  407. " @click="(toolType = 3), $forceUpdate()">
  408. 编程类
  409. </div>
  410. <div :class="toolType == 5 ? 'isChooseActive' : ''
  411. " @click="(toolType = 5), $forceUpdate()">
  412. 学科类
  413. </div>
  414. <div :class="toolType == 4 ? 'isChooseActive' : ''
  415. " @click="(toolType = 4), $forceUpdate()">
  416. 其他
  417. </div>
  418. </div>
  419. </div>
  420. <div>
  421. <div class="toolSort" v-if="toolType == 0">
  422. <div class="tool">
  423. <div class="whiteBIcon">
  424. <img src="../../assets/icon/thirdToolList/time.png" alt />
  425. <div style="margin: 5px 0">倒计时</div>
  426. </div>
  427. </div>
  428. <div class="tool">
  429. <div class="whiteBIcon">
  430. <img src="../../assets/icon/fourthToolList/group.png" alt />
  431. <div style="margin: 5px 0">学生分组</div>
  432. </div>
  433. </div>
  434. <div class="tool">
  435. <div class="whiteBIcon">
  436. <img src="../../assets/icon/fourthToolList/interVideo.png" alt />
  437. <div style="margin: 5px 0">交互视频</div>
  438. </div>
  439. </div>
  440. </div>
  441. <div class="toolSort" v-if="toolType == 1">
  442. <div class="tool">
  443. <div class="whiteBIcon">
  444. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt />
  445. <div style="margin: 5px 0">思维网格</div>
  446. </div>
  447. </div>
  448. <div class="tool">
  449. <div class="whiteBIcon" @click="addTools(1, 0, taskCount)">
  450. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  451. <div style="margin: 5px 0">电子白板</div>
  452. </div>
  453. </div>
  454. <div class="tool">
  455. <div class="whiteBIcon">
  456. <img src="../../assets/icon/fourthToolList/text.png" alt />
  457. <div style="margin: 5px 0">文档</div>
  458. </div>
  459. </div>
  460. <div class="tool">
  461. <div class="whiteBIcon" @click="addTools(3, 0, taskCount)">
  462. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  463. <div style="margin: 5px 0">思维导图</div>
  464. </div>
  465. </div>
  466. <div class="tool">
  467. <div class="whiteBIcon">
  468. <img src="../../assets/icon/fourthToolList/table.png" alt />
  469. <div style="margin: 5px 0">表格</div>
  470. </div>
  471. </div>
  472. </div>
  473. <div class="toolSort" v-if="toolType == 2">
  474. <div class="tool">
  475. <div class="whiteBIcon">
  476. <img src="../../assets/icon/thirdToolList/ask.png" alt />
  477. <div style="margin: 5px 0">问卷调查</div>
  478. </div>
  479. </div>
  480. <div class="tool">
  481. <div class="whiteBIcon">
  482. <img src="../../assets/icon/thirdToolList/choose.png" alt />
  483. <div style="margin: 5px 0">选择题</div>
  484. </div>
  485. </div>
  486. <div class="tool">
  487. <div class="whiteBIcon">
  488. <img src="../../assets/icon/thirdToolList/answer.png" alt />
  489. <div style="margin: 5px 0">问答</div>
  490. </div>
  491. </div>
  492. <div class="tool">
  493. <div class="whiteBIcon">
  494. <img src="../../assets/icon/thirdToolList/work.png" alt />
  495. <div style="margin: 5px 0">作业提交</div>
  496. </div>
  497. </div>
  498. <div class="tool">
  499. <div class="whiteBIcon">
  500. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  501. <div style="margin: 5px 0">批量上传</div>
  502. </div>
  503. </div>
  504. <div class="tool">
  505. <div class="whiteBIcon">
  506. <img src="../../assets/icon/secondToolList/eval.png" alt />
  507. <div style="margin: 5px 0">个人评价</div>
  508. </div>
  509. </div>
  510. <div class="tool">
  511. <div class="whiteBIcon">
  512. <img src="../../assets/icon/thirdToolList/select.png" alt />
  513. <div style="margin: 5px 0">选择匹配</div>
  514. </div>
  515. </div>
  516. <div class="tool">
  517. <div class="whiteBIcon">
  518. <img src="../../assets/icon/fourthToolList/conSentences.png" alt />
  519. <div style="margin: 5px 0">排序</div>
  520. </div>
  521. </div>
  522. </div>
  523. <div class="toolSort" v-if="toolType == 3">
  524. <div class="tool">
  525. <div class="whiteBIcon">
  526. <img src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  527. <div style="margin: 5px 0">训练平台</div>
  528. </div>
  529. </div>
  530. <div class="tool">
  531. <div class="whiteBIcon">
  532. <img src="../../assets/icon/fourthToolList/program.png" alt />
  533. <div style="margin: 5px 0">AIoT Blockly</div>
  534. </div>
  535. </div>
  536. <div class="tool">
  537. <div class="whiteBIcon">
  538. <img src="../../assets/icon/fourthToolList/AIprogram2.png" alt />
  539. <div style="margin: 5px 0">AI体验</div>
  540. </div>
  541. </div>
  542. <div class="tool">
  543. <div class="whiteBIcon">
  544. <img src="../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  545. <div style="margin: 5px 0">AI Python</div>
  546. </div>
  547. </div>
  548. <div class="tool">
  549. <div class="whiteBIcon">
  550. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  551. <div style="margin: 5px 0">AI Blockly</div>
  552. </div>
  553. </div>
  554. <div class="tool">
  555. <div class="whiteBIcon">
  556. <img src="../../assets/icon/thirdToolList/code.png" alt />
  557. <div style="margin: 5px 0">源码编辑</div>
  558. </div>
  559. </div>
  560. <div class="tool">
  561. <div class="whiteBIcon">
  562. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  563. <div style="margin: 5px 0">CocoPi</div>
  564. </div>
  565. </div>
  566. <div class="tool">
  567. <div class="whiteBIcon">
  568. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  569. <div style="margin: 5px 0">海龟编程</div>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="toolSort" v-if="toolType == 5">
  574. <div class="tool">
  575. <div class="whiteBIcon">
  576. <img src="../../assets/icon/secondToolList/translation.png" alt />
  577. <div style="margin: 5px 0">翻译</div>
  578. </div>
  579. </div>
  580. <div class="tool">
  581. <div class="whiteBIcon">
  582. <img src="../../assets/icon/secondToolList/mohe.png" alt />
  583. <div style="margin: 5px 0">魔盒识字</div>
  584. </div>
  585. </div>
  586. <div class="tool">
  587. <div class="whiteBIcon">
  588. <img src="../../assets/icon/secondToolList/24game.png" alt />
  589. <div style="margin: 5px 0">24点</div>
  590. </div>
  591. </div>
  592. <div class="tool">
  593. <div class="whiteBIcon">
  594. <img src="../../assets/icon/secondToolList/networkPanel.png" alt />
  595. <div style="margin: 5px 0">数学画板</div>
  596. </div>
  597. </div>
  598. <div class="tool">
  599. <div class="whiteBIcon">
  600. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  601. <div style="margin: 5px 0">GeoGebra</div>
  602. </div>
  603. </div>
  604. <div class="tool">
  605. <div class="whiteBIcon">
  606. <img src="../../assets/icon/fourthToolList/car.png" alt />
  607. <div style="margin: 5px 0">模拟驾驶</div>
  608. </div>
  609. </div>
  610. <div class="tool">
  611. <div class="whiteBIcon">
  612. <img src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  613. <div style="margin: 5px 0">路径搜索</div>
  614. </div>
  615. </div>
  616. <div class="tool">
  617. <div class="whiteBIcon">
  618. <img src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  619. <div style="margin: 5px 0">深度学习</div>
  620. </div>
  621. </div>
  622. <div class="tool">
  623. <div class="whiteBIcon">
  624. <img src="../../assets/icon/fourthToolList/allHistory.png" alt />
  625. <div style="margin: 5px 0">全历史</div>
  626. </div>
  627. </div>
  628. </div>
  629. <div class="toolSort" v-if="toolType == 4">
  630. <div class="tool">
  631. <div class="whiteBIcon">
  632. <img src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  633. <div style="margin: 5px 0">课程设计</div>
  634. </div>
  635. </div>
  636. <div class="tool">
  637. <div class="whiteBIcon">
  638. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  639. <div style="margin: 5px 0">目标管理</div>
  640. </div>
  641. </div>
  642. </div>
  643. </div>
  644. </div>
  645. <div class="tool_works_box" v-if="worksTeacher.length">
  646. <div class="zuoyeYulan">
  647. <div class="worksTop">
  648. <div>作业预览</div>
  649. </div>
  650. </div>
  651. <div class="worksDetailBox">
  652. <div class="works" style="
  653. width: 200px;
  654. height: 140px;
  655. margin: 10px 10px 10px 0;
  656. border-radius: 15px;
  657. box-shadow: 0 0 6px 1px #dfdada;
  658. " v-for="(w, wIndex) in worksTeacher" :key="wIndex"
  659. :class="w.type == 1 ? 'isTypeOne' : ''">
  660. <div class="workImg" v-if="w.type == 0">
  661. <img :src="w.works" @click="previewImg(w.works)" alt />
  662. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  663. rightW:
  664. w.userid == userid || tType == 1 || tType == 4,
  665. }">
  666. {{ JSON.parse(w.score).wScore }}分
  667. </div>
  668. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  669. :class="{
  670. rightW:
  671. w.userid == userid || tType == 1 || tType == 4,
  672. }">
  673. 评分
  674. </div>
  675. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  676. " @click.stop="deleteWorks(w.wid)" alt />
  677. </div>
  678. <div class="comment" style="min-width: 200px">
  679. <div class="worksName">
  680. <div>{{ w.sName }}</div>
  681. </div>
  682. <div class="commentList">
  683. <div class="commentList">
  684. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  685. ">
  686. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  687. </div>
  688. <div>{{ w.likesCount }}</div>
  689. </div>
  690. <div class="commentList" style="margin-right: 15px">
  691. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  692. <img src="../../assets/icon/comment/comment.png" alt="" />
  693. </div>
  694. <div>{{ w.commentCount }}</div>
  695. </div>
  696. </div>
  697. </div>
  698. </div>
  699. </div>
  700. </div>
  701. </div>
  702. </div>
  703. <div class="vedioBox">
  704. <div class="queTop" style="
  705. font-size: 25px;
  706. padding: 15px 0 15px 30px;
  707. font-weight: bold;
  708. ">
  709. 学生工作区
  710. </div>
  711. <div class="tool_work_box">
  712. <div class="noWorksS">
  713. <div v-for="(s, sIndex) in noWorksS" :key="sIndex" class="noWorksName"
  714. :class="{ isWork: s.type == '2' }" @click="openStudentTool(s)">
  715. {{ s.student }}
  716. </div>
  717. </div>
  718. <div class="tool_works_box" v-if="worksStudent2.length">
  719. <div class="zuoyeYulan">
  720. <div class="worksTop">
  721. <div>作业预览</div>
  722. </div>
  723. </div>
  724. <div class="worksDetailBox">
  725. <div class="works" style="
  726. width: 200px;
  727. height: 140px;
  728. margin: 10px 10px 10px 0;
  729. border-radius: 15px;
  730. box-shadow: 0 0 6px 1px #dfdada;
  731. " v-for="(w, wIndex) in worksStudent2" :key="wIndex"
  732. :class="w.type == 1 ? 'isTypeOne' : ''">
  733. <div class="workImg" v-if="w.type == 0">
  734. <img :src="w.works" @click="previewImg(w.works)" alt />
  735. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  736. rightW:
  737. w.userid == userid || tType == 1 || tType == 4,
  738. }">
  739. {{ JSON.parse(w.score).wScore }}分
  740. </div>
  741. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  742. :class="{
  743. rightW:
  744. w.userid == userid || tType == 1 || tType == 4,
  745. }">
  746. 评分
  747. </div>
  748. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  749. " @click.stop="deleteWorks(w.wid)" alt />
  750. </div>
  751. <div class="comment" style="min-width: 200px">
  752. <div class="worksName">
  753. <div>{{ w.sName }}</div>
  754. </div>
  755. <div class="commentList">
  756. <div class="commentList">
  757. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  758. ">
  759. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  760. </div>
  761. <div>{{ w.likesCount }}</div>
  762. </div>
  763. <div class="commentList" style="margin-right: 15px">
  764. <div class="commentImg" @click="commentOther(w, 0, wIndex)">
  765. <img src="../../assets/icon/comment/comment.png" alt="" />
  766. </div>
  767. <div>{{ w.commentCount }}</div>
  768. </div>
  769. </div>
  770. </div>
  771. </div>
  772. </div>
  773. </div>
  774. </div>
  775. </div>
  776. </div>
  777. </div>
  778. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  779. :before-close="handleClose" class="dialog_change">
  780. <div class="marginT">
  781. <div>上传文件</div>
  782. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  783. <div class="up_photo">
  784. <img src="../../assets/icon/uploadImg.png" alt />
  785. </div>
  786. <!-- <input
  787. type="file"
  788. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  789. style="display: none"
  790. @change="beforeUpload1($event, 1)"
  791. /> -->
  792. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  793. <!-- <input
  794. type="file"
  795. accept="image/*"
  796. capture="camera"
  797. style="display: none"
  798. @change="beforeUpload1($event, 1)"
  799. /> -->
  800. </div>
  801. <div class="chapter_add" style="
  802. display: flex;
  803. width: 100%;
  804. flex-direction: row;
  805. flex-wrap: wrap;
  806. justify-content: flex-start;
  807. padding: 15px 0;
  808. " v-if="studyJuri[0].cover.length > 0">
  809. <div class="upCover">
  810. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  811. <img :src="word" alt v-else-if="fileType == 1" />
  812. <img :src="video" alt v-else-if="fileType == 2" />
  813. <img :src="word2" alt v-else-if="fileType == 3" />
  814. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  815. <div class="deleteWord" @click="clean(1)">
  816. <img src="../../assets/icon/deleteWorks.png" alt />
  817. </div>
  818. </div>
  819. </div>
  820. </div>
  821. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  822. 提交
  823. </div>
  824. </el-dialog>
  825. </div>
  826. </div>
  827. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4 || ispzType == 4">
  828. <!-- 批 -->
  829. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  830. </div>
  831. <div v-if="pzDialog == true" class="newDialogCss">
  832. <div class="pzTop2">
  833. <!-- <div>批注</div>
  834. <div @click="pzDialog = false">
  835. <img src="../../assets/close1.png" alt="" />
  836. </div> -->
  837. <div class="checkbox">
  838. <div class="check" style="font-size: 25px">评课笔记</div>
  839. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  840. </div>
  841. </div>
  842. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  843. <div class="pzListBox" v-if="pzList && pzList.length">
  844. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  845. <div class="pzNavTop">
  846. <div>批</div>
  847. <div>
  848. {{
  849. pz.username && pz.username.length > 5
  850. ? pz.username.substring(0, 5) + "..."
  851. : pz.username
  852. }}的批注
  853. </div>
  854. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  855. 删除
  856. </div>
  857. </div>
  858. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  859. <div class="pzContent" v-if="pz.type == '2'">
  860. <audio :src="pz.content" controls="controls" ref="audio">
  861. Your browser does not support the audio element.
  862. </audio>
  863. </div>
  864. <div class="pzContent" v-if="pz.type == '3'">
  865. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  866. </div>
  867. <div class="time">
  868. {{ pz.time }}
  869. </div>
  870. </div>
  871. </div>
  872. <div class="noPz" v-else>
  873. <img src="../../assets/icon/noPz.png" alt="" />
  874. </div>
  875. <div class="addPzButton">
  876. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  877. 添加批注
  878. </div>
  879. <!-- <div class="img1">
  880. <div @click="(addPzDialog = true), (pzType = 2)">
  881. <img src="../../assets/audio.png" /><span>音频</span>
  882. </div>
  883. </div> -->
  884. </div>
  885. </div>
  886. </div>
  887. <div v-if="addPzDialog == true" class="addDialogCss">
  888. <div class="pzTop">
  889. <div class="teacherPz">
  890. <div class="teacherPzImg">
  891. <img src="../../assets/icon/teacherPz.png" alt="" />
  892. </div>
  893. <div style="margin-left: 10px; height: 25px">教师批注</div>
  894. </div>
  895. <div @click="addPzDialog = false">
  896. <img src="../../assets/close1.png" alt="" />
  897. </div>
  898. </div>
  899. <div class="addPzBox">
  900. <div class="addPzCheck">
  901. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  902. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  903. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  904. </div>
  905. <div style="height: calc(100% - 95px)">
  906. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  907. v-if="pzType == 1"></textarea> -->
  908. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  909. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  910. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  911. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  912. <div @click="addImg($event)">
  913. <el-button type="primary">上传图片</el-button>
  914. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  915. @change="beforeUpload1($event, 4)" />
  916. </div>
  917. </div> -->
  918. </div>
  919. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  920. 确定
  921. </div>
  922. </div>
  923. </div>
  924. <div v-if="proVisible" class="mask">
  925. <div class="progressBox">
  926. <!-- <div id="closePro" class="closeCss">
  927. <img src="../../assets/icon/close.png" alt />
  928. </div> -->
  929. <div class="lbox">
  930. <img src="../../assets/loading.gif" />上传中,请稍后
  931. </div>
  932. <div style="margin-bottom: 10px">
  933. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  934. </div>
  935. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  936. </div>
  937. </div>
  938. <div v-if="proVisible2" class="mask">
  939. <div class="progressBox">
  940. <div class="lbox">
  941. <img src="../../assets/loading.gif" />上传中,请稍后
  942. </div>
  943. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  944. </div>
  945. </div>
  946. <el-dialog :visible.sync="pictureDialog" size="tiny">
  947. <img width="100%" :src="dialogImageUrl" alt />
  948. </el-dialog>
  949. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  950. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  951. <div>
  952. <div class="a_add_title" style="
  953. display: flex;
  954. flex-direction: row;
  955. align-items: center;
  956. justify-content: center;
  957. ">
  958. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  959. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  960. </div>
  961. <div class="a_addBox">
  962. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  963. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  964. <div class="a_add_head">
  965. <div style="display: flex">
  966. {{ index1 + 1 + "、" }}
  967. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  968. </div>
  969. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  970. style="height: 300px; margin-top: 10px; max-width: 100%" />
  971. </div>
  972. <div class="a_add_body">
  973. <div class="a_add_input">
  974. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  975. !askJson.askJson[index1].type
  976. ">
  977. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  978. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  979. v-html="item2"></span></el-radio>
  980. </el-radio-group>
  981. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  982. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  983. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  984. v-html="item2"></span>
  985. </el-checkbox>
  986. </el-checkbox-group>
  987. </div>
  988. </div>
  989. </div>
  990. </div>
  991. </div>
  992. <span slot="footer" class="dialog-footer">
  993. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  994. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  995. </span>
  996. </el-dialog>
  997. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  998. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  999. <div>
  1000. <div class="w_name">
  1001. 学生姓名:<span>{{ sStudent.student }}</span>
  1002. </div>
  1003. <div class="a_add_title" style="
  1004. display: flex;
  1005. flex-direction: row;
  1006. align-items: center;
  1007. justify-content: center;
  1008. ">
  1009. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  1010. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  1011. </div>
  1012. <div class="a_addBox">
  1013. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1014. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  1015. <div class="a_add_head">
  1016. <div style="display: flex">
  1017. {{ index1 + 1 + "、" }}
  1018. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  1019. </div>
  1020. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  1021. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1022. </div>
  1023. <div class="a_add_body">
  1024. <div class="a_add_input">
  1025. <el-radio-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '1' ||
  1026. !askJson.askJson[index1].type
  1027. ">
  1028. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  1029. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  1030. v-html="item2"></span></el-radio>
  1031. </el-radio-group>
  1032. <el-checkbox-group v-model="radio[index1]" v-if="askJson.askJson[index1].type == '2'">
  1033. <el-checkbox v-for="(item2, checkIndex1) in askJson.askJson[index1]
  1034. .checkList" :key="checkIndex1" :label="checkIndex1" :disabled="isAnswer" class="redioStyle"><span
  1035. v-html="item2"></span>
  1036. </el-checkbox>
  1037. </el-checkbox-group>
  1038. </div>
  1039. </div>
  1040. </div>
  1041. </div>
  1042. </div>
  1043. <span slot="footer" class="dialog-footer">
  1044. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  1045. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  1046. </span>
  1047. </el-dialog>
  1048. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  1049. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1050. <div>
  1051. <div class="a_addBox">
  1052. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1053. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1054. <div class="a_add_head">
  1055. <div style="display: flex">
  1056. {{ index1 + 1 + "、" }}
  1057. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px;min-width: 70px;">
  1058. (单选题)
  1059. </div>
  1060. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px;min-width: 70px;">
  1061. (多选题)
  1062. </div>
  1063. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1064. </div>
  1065. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1066. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1067. </div>
  1068. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1069. testJson.testJson[index1].timuList.length
  1070. ">
  1071. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1072. @click.stop="previewImg(timg.src)">
  1073. <img :src="timg.src" alt="" />
  1074. </div>
  1075. </div>
  1076. <div class="a_add_body">
  1077. <div class="a_add_input">
  1078. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1079. <div class="radioBox">
  1080. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1081. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1082. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1083. <div class="inImg" @click.stop="previewImg(item2.src)">
  1084. <img :src="item2.src" alt="" />
  1085. </div>
  1086. </div>
  1087. <span v-else v-html="item2"></span>
  1088. </el-radio>
  1089. </div>
  1090. </el-radio-group>
  1091. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1092. <div class="radioBox">
  1093. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1094. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1095. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1096. <div class="inImg" @click.stop="previewImg(item2.src)">
  1097. <img :src="item2.src" alt="" />
  1098. </div>
  1099. </div>
  1100. <span v-else v-html="item2"></span>
  1101. </el-checkbox>
  1102. </div>
  1103. </el-checkbox-group>
  1104. </div>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </div>
  1109. <span slot="footer" class="dialog-footer">
  1110. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  1111. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  1112. </span>
  1113. </el-dialog>
  1114. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  1115. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  1116. <div>
  1117. <div class="w_name">
  1118. 学生姓名:<span>{{ sStudent.student }}</span>
  1119. </div>
  1120. <div class="a_addBox">
  1121. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  1122. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  1123. <div class="a_add_head">
  1124. <div style="display: flex">
  1125. {{ index1 + 1 + "、" }}
  1126. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  1127. (单选题)
  1128. </div>
  1129. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  1130. (多选题)
  1131. </div>
  1132. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  1133. </div>
  1134. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  1135. style="height: 300px; margin-top: 10px; max-width: 100%" />
  1136. </div>
  1137. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  1138. testJson.testJson[index1].timuList.length
  1139. ">
  1140. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  1141. @click.stop="previewImg(timg.src)">
  1142. <img :src="timg.src" alt="" />
  1143. </div>
  1144. </div>
  1145. <div class="a_add_body">
  1146. <div class="a_add_input">
  1147. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  1148. <div class="radioBox">
  1149. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  1150. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1151. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1152. <div class="inImg" @click.stop="previewImg(item2.src)">
  1153. <img :src="item2.src" alt="" />
  1154. </div>
  1155. </div>
  1156. <span v-else v-html="item2"></span>
  1157. </el-radio>
  1158. </div>
  1159. </el-radio-group>
  1160. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  1161. <div class="radioBox">
  1162. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  1163. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  1164. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  1165. <div class="inImg" @click.stop="previewImg(item2.src)">
  1166. <img :src="item2.src" alt="" />
  1167. </div>
  1168. </div>
  1169. <span v-else v-html="item2"></span>
  1170. </el-checkbox>
  1171. </div>
  1172. </el-checkbox-group>
  1173. </div>
  1174. </div>
  1175. </div>
  1176. </div>
  1177. </div>
  1178. <span slot="footer" class="dialog-footer">
  1179. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  1180. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  1181. </span>
  1182. </el-dialog>
  1183. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  1184. :before-close="handleClose" class="dialog_diy textCss">
  1185. <el-form style="font-size: 20px">
  1186. <el-form-item label="文本标题" class="textTitle">
  1187. <div style="font-size: 20px">{{ text.name }}</div>
  1188. </el-form-item>
  1189. <div>富文本内容</div>
  1190. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  1191. </el-form>
  1192. <span slot="footer" class="dialog-footer">
  1193. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  1194. </span>
  1195. </el-dialog>
  1196. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  1197. :class="{ fullStyle: full }">
  1198. <div slot="title" class="header-title">
  1199. <div style="color: #fff">文件预览</div>
  1200. <div style="position: absolute; top: 19px; right: 50px">
  1201. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  1202. </div>
  1203. </div>
  1204. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1205. :class="{ fullStyle: full }"></pdf>
  1206. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1207. </el-dialog>
  1208. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  1209. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  1210. </el-dialog>
  1211. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  1212. class="dialog_diy notice">
  1213. <div>此功能暂未开放!</div>
  1214. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  1215. </el-dialog>
  1216. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  1217. :before-close="handleClose" class="dialog_diy">
  1218. <div>
  1219. <div style="
  1220. display: flex;
  1221. flex-wrap: nowrap;
  1222. flex-direction: column;
  1223. position: relative;
  1224. ">
  1225. <div class="queTop" style="padding: 20px 0 20px 0">
  1226. <div class="question">
  1227. <img src="../../assets/icon/question.png" alt />
  1228. </div>
  1229. <div class="queTitle">
  1230. <div style="width: 90px; min-width: 90px">提问:</div>
  1231. <div>{{ answerQ }}</div>
  1232. </div>
  1233. </div>
  1234. <div class="ediBottom">
  1235. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1236. v-model="questionAnswer"></textarea>
  1237. </div>
  1238. </div>
  1239. </div>
  1240. <div slot="footer">
  1241. <el-button @click="answerDialogVisible = false">取 消</el-button>
  1242. <el-button type="primary" @click="addQuestion">提 交</el-button>
  1243. </div>
  1244. </el-dialog>
  1245. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  1246. :before-close="handleClose" class="dialog_diy">
  1247. <div>
  1248. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  1249. </div>
  1250. <div slot="footer">
  1251. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  1252. </div>
  1253. </el-dialog>
  1254. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  1255. class="dialog_diy">
  1256. <div>
  1257. <div class="open_box">
  1258. <div class="switch_box">
  1259. <span>允许学生查看所有作业</span>
  1260. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  1261. </div>
  1262. <div class="switch_box" v-if="courseDetail.userid == userid ||
  1263. (courseDetail.course_teacher &&
  1264. courseDetail.course_teacher.indexOf(userid) != -1)
  1265. ">
  1266. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  1267. <span>禁止学生查看所有阶段</span>
  1268. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  1269. </div>
  1270. <div class="switch_box" v-if="courseDetail.userid == userid">
  1271. <span>开启跟随模式</span>
  1272. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  1273. </div>
  1274. </div>
  1275. </div>
  1276. <div slot="footer">
  1277. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  1278. </div>
  1279. </el-dialog>
  1280. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  1281. class="dialog_diy1">
  1282. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  1283. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1284. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  1285. </div>
  1286. <div slot="footer">
  1287. <el-button style="background: #409efe; color: #fff"
  1288. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  1289. 关 闭</el-button>
  1290. </div>
  1291. </el-dialog>
  1292. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  1293. :before-close="handleClose" class="dialog_diy">
  1294. <div class="commentTop">
  1295. <div class="studentDetail">
  1296. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1297. <div class="nameAndTime">
  1298. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1299. <div>{{ commentDetail.time }}</div>
  1300. </div>
  1301. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  1302. commentDetail.type == 0 &&
  1303. (tType == 1 || tType == 4)
  1304. " @click="showPicturePaint(
  1305. commentDetail.img ? commentDetail.img : commentDetail.works
  1306. )
  1307. ">
  1308. 教师批注
  1309. </div>
  1310. </div>
  1311. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1312. {{ JSON.parse(commentDetail.works)[0].answer }}
  1313. </div>
  1314. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1315. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1316. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1317. :class="{ fullStyle: full }"></pdf>
  1318. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1319. </div>
  1320. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1321. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  1322. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1323. </div>
  1324. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1325. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  1326. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1327. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1328. </div>
  1329. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  1330. <div class="cont" v-html="commentDetail.works.text"></div>
  1331. </div>
  1332. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1333. @click="downloadFile(commentDetail.works)">
  1334. <img src="../../assets/icon/codeFile.png" />
  1335. <div>点击下载文件</div>
  1336. </div>
  1337. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1338. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1339. </div>
  1340. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  1341. <div class="evalCss">
  1342. <div class="nav">请选择星星进行评分</div>
  1343. <div class="middleBox" v-if="eScore.eStar">
  1344. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1345. <div class="nameAndrate">
  1346. <div>{{ e.value }}</div>
  1347. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  1348. </div>
  1349. <div v-if="e.detail">{{ e.detail }}</div>
  1350. </div>
  1351. <div class="bz">
  1352. <textarea disabled rows="4" class="pj" style="
  1353. padding: 10px 5px;
  1354. width: 70%;
  1355. background: #f7f6f9;
  1356. font-size: 14px;
  1357. text-indent: 10px;
  1358. color: #000;
  1359. " cols v-model="eScore.eBzText"
  1360. placeholder="请输入评价内容..."></textarea>
  1361. </div>
  1362. </div>
  1363. </div>
  1364. </div>
  1365. <div class="comment">
  1366. <div class="commentList">
  1367. <div class="commentImg">
  1368. <img @click="isLikes(
  1369. commentDetail.wid,
  1370. userid,
  1371. 1,
  1372. null,
  1373. commentDetail.isLikes
  1374. )
  1375. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  1376. </div>
  1377. <div>{{ commentDetail.likesCount }}</div>
  1378. </div>
  1379. <div class="commentList">
  1380. <div class="commentImg">
  1381. <img src="../../assets/icon/comment/comment.png" alt="" />
  1382. </div>
  1383. <div>{{ commentDetail.commentCount }}</div>
  1384. </div>
  1385. </div>
  1386. <div class="drawPBox" v-if="commentDetail.img">
  1387. <span>教师批注</span>
  1388. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  1389. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  1390. style="
  1391. font-size: 14px;
  1392. width: auto !important;
  1393. color: #b4b4b4;
  1394. top: unset;
  1395. bottom: 0;
  1396. border: none;
  1397. padding: 0;
  1398. height: auto !important;
  1399. margin: 0;
  1400. ">删除</span>
  1401. </div>
  1402. </div>
  1403. <div class="commentBox">
  1404. <div class="pl">评论:</div>
  1405. <div style="max-height: 200px; overflow: auto">
  1406. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  1407. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  1408. :key="coIndex">
  1409. <div class="tx" style="min-width: 50px">
  1410. <img src="../../assets/avatar.png" alt="" />
  1411. </div>
  1412. <div class="plPerson">
  1413. <div class="plName">
  1414. <div>{{ co.commentPeople }}</div>
  1415. <div style="margin-left: 5px">
  1416. {{ co.commentTime }}
  1417. </div>
  1418. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  1419. </div>
  1420. <div class="plContent">{{ co.commentText }}</div>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  1425. </div>
  1426. </div>
  1427. <div style="margin-top: 10px">
  1428. <div class="displayBox">
  1429. <div style="
  1430. color: #556db4;
  1431. font-size: 14px;
  1432. font-weight: bold;
  1433. padding-bottom: 10px;
  1434. ">
  1435. 评价
  1436. </div>
  1437. <div class="easy_comment" v-if="false">
  1438. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  1439. {{ p }}
  1440. </div>
  1441. </div>
  1442. </div>
  1443. <div>
  1444. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  1445. placeholder="请输入评论"></textarea>
  1446. </div>
  1447. </div>
  1448. <div slot="footer">
  1449. <el-button @click="(commentDialogVisible = false),
  1450. (commentIndexJson = {}),
  1451. videoDetail.sources && videoDetail.sources[0]
  1452. ? (videoDetail.sources[0].src = '')
  1453. : ''
  1454. ">取 消</el-button>
  1455. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  1456. </div>
  1457. </el-dialog>
  1458. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  1459. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  1460. <div slot="title" class="header-title">
  1461. <div style="color: #fff">查看文档</div>
  1462. <div @click="fullDialogVisible = false" style="
  1463. cursor: pointer;
  1464. position: absolute;
  1465. top: 20px;
  1466. right: 20px;
  1467. color: #fff;
  1468. ">
  1469. 退出全屏
  1470. </div>
  1471. </div>
  1472. <div style="height: 100%">
  1473. <div class="wheel"
  1474. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  1475. style="width: 95%; margin: 0 auto">
  1476. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  1477. </div>
  1478. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  1479. security="restricted"
  1480. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  1481. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  1482. <div class="wheel" v-if="fulltype == 1" style="
  1483. box-shadow: 0 0 6px 1px #f2f2f2;
  1484. width: 100%;
  1485. background: #f1f1f1;
  1486. ">
  1487. <div class="title" style="width: 100%; box-sizing: border-box">
  1488. 查看文档
  1489. </div>
  1490. <el-form class="textBox" style="height: 90%">
  1491. <el-form-item class="textTitle">
  1492. <div style="font-size: 22px">
  1493. {{ fullUrl.name }}
  1494. </div>
  1495. </el-form-item>
  1496. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  1497. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  1498. </el-form>
  1499. </div>
  1500. </div>
  1501. <!-- <div slot="footer">
  1502. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  1503. </div> -->
  1504. </el-dialog>
  1505. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  1506. :before-close="handleClose" class="dialog_diy">
  1507. <div class="evalCss">
  1508. <div class="nav">请选择星星进行评分</div>
  1509. <div class="middleBox" v-if="eScore.eStar">
  1510. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1511. <div class="nameAndrate">
  1512. <div>{{ e.value }}</div>
  1513. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1514. </div>
  1515. <div v-if="e.detail">{{ e.detail }}</div>
  1516. </div>
  1517. <div class="easy_comment" v-if="false">
  1518. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1519. {{ p }}
  1520. </div>
  1521. </div>
  1522. <div class="bz">
  1523. <textarea :disabled="isStar" rows="4" class="pj" style="
  1524. padding: 10px 5px;
  1525. width: 70%;
  1526. background: #f7f6f9;
  1527. font-size: 14px;
  1528. text-indent: 10px;
  1529. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1530. </div>
  1531. </div>
  1532. </div>
  1533. <div slot="footer">
  1534. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  1535. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  1536. </div>
  1537. </el-dialog>
  1538. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  1539. :before-close="handleClose" class="dialog_diy">
  1540. <div class="w_name">
  1541. 学生姓名:<span>{{ sStudent.student }}</span>
  1542. </div>
  1543. <div class="evalCss">
  1544. <div class="nav">请选择星星进行评分</div>
  1545. <div class="middleBox" v-if="eScore.eStar">
  1546. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  1547. <div class="nameAndrate">
  1548. <div>{{ e.value }}</div>
  1549. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  1550. </div>
  1551. <div v-if="e.detail">{{ e.detail }}</div>
  1552. </div>
  1553. <div class="easy_comment" v-if="false">
  1554. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  1555. {{ p }}
  1556. </div>
  1557. </div>
  1558. <div class="bz">
  1559. <textarea :disabled="isStar" rows="4" class="pj" style="
  1560. padding: 10px 5px;
  1561. width: 70%;
  1562. background: #f7f6f9;
  1563. font-size: 14px;
  1564. text-indent: 10px;
  1565. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  1566. </div>
  1567. </div>
  1568. </div>
  1569. <div slot="footer">
  1570. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  1571. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  1572. </div>
  1573. </el-dialog>
  1574. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  1575. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1576. <div v-if="selectJson">
  1577. <div class="select_box2">
  1578. <div class="select_box2_title">
  1579. <div>选择匹配</div>
  1580. <div>请选择对应的答案进行答题!</div>
  1581. </div>
  1582. <div class="select_box2_box">
  1583. <div class="select_box2_img">
  1584. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1585. </div>
  1586. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1587. <div style="padding-top: 15px">
  1588. <div class="select_answer_title" v-if="isSelect">
  1589. {{ selectAnswer.stu }}
  1590. </div>
  1591. <div class="select_answer_title" v-else>
  1592. 根据题目选择对应答案
  1593. </div>
  1594. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1595. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1596. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1597. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1598. </el-option>
  1599. </el-select>
  1600. </div>
  1601. </div>
  1602. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1603. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1604. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1605. 回答正确
  1606. </div>
  1607. <div v-else>回答错误</div>
  1608. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1609. 正确答案:
  1610. </div>
  1611. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1612. ">
  1613. {{ selectJson.select[a] }}
  1614. </div>
  1615. </div>
  1616. </div>
  1617. </div>
  1618. <div class="upAnswerCss">
  1619. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  1620. </div>
  1621. </div>
  1622. </div>
  1623. </div>
  1624. </el-dialog>
  1625. <el-dialog title="选择匹配" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  1626. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1627. <div v-if="selectJson">
  1628. <div class="w_name">
  1629. 学生姓名:<span>{{ sStudent.student }}</span>
  1630. </div>
  1631. <div class="select_box2">
  1632. <div class="select_box2_title">
  1633. <div>选择匹配</div>
  1634. <div>请选择对应的答案进行答题!</div>
  1635. </div>
  1636. <div class="select_box2_box">
  1637. <div class="select_box2_img">
  1638. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  1639. </div>
  1640. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  1641. <div style="padding-top: 15px">
  1642. <div class="select_answer_title" v-if="isSelect">
  1643. {{ selectAnswer.stu }}
  1644. </div>
  1645. <div class="select_answer_title" v-else>
  1646. 根据题目选择对应答案
  1647. </div>
  1648. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  1649. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  1650. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  1651. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  1652. </el-option>
  1653. </el-select>
  1654. </div>
  1655. </div>
  1656. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  1657. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  1658. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  1659. 回答正确
  1660. </div>
  1661. <div v-else>回答错误</div>
  1662. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  1663. 正确答案:
  1664. </div>
  1665. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  1666. ">
  1667. {{ selectJson.select[a] }}
  1668. </div>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. <div class="upAnswerCss">
  1673. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  1674. </div>
  1675. </div>
  1676. </div>
  1677. </div>
  1678. </el-dialog>
  1679. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  1680. :before-close="handleClose" class="dialog_diy">
  1681. <div>
  1682. <div class="studentDetail">
  1683. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  1684. <div class="nameAndTime">
  1685. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  1686. <div>{{ commentDetail.time }}</div>
  1687. </div>
  1688. </div>
  1689. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  1690. {{ JSON.parse(commentDetail.works)[0].answer }}
  1691. </div>
  1692. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  1693. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  1694. :class="{ fullStyle: full }"></pdf>
  1695. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  1696. </div>
  1697. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  1698. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  1699. </div>
  1700. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  1701. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  1702. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  1703. </div>
  1704. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  1705. @click="downloadFile(commentDetail.works)">
  1706. <img src="../../assets/icon/codeFile.png" />
  1707. <div>点击下载文件</div>
  1708. </div>
  1709. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  1710. <div v-html="JSON.parse(commentDetail.works).text"></div>
  1711. </div>
  1712. <div class="scoreBox">
  1713. <span class="t">请输入分数</span>
  1714. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  1715. :max="100"></el-input-number>
  1716. </div>
  1717. <div class="scoreDetailBox">
  1718. <span class="t">评分评论</span>
  1719. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  1720. v-model="scoreDetail" placeholder="请输入对学生的评价">
  1721. </el-input>
  1722. </div>
  1723. </div>
  1724. <span slot="footer" class="dialog-footer">
  1725. <el-button @click="(dialogVisibleScore = false),
  1726. (commentIndexJson = {}),
  1727. videoDetail.sources && videoDetail.sources[0]
  1728. ? (videoDetail.sources[0].src = '')
  1729. : ''
  1730. ">取 消</el-button>
  1731. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  1732. </el-button>
  1733. </span>
  1734. </el-dialog>
  1735. <el-dialog title="排序" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  1736. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1737. <div>
  1738. <div class="sentenBox">
  1739. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1740. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1741. <div class="cardList" v-if="st.chooseSenList">
  1742. <div class="cardBox">
  1743. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1744. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1745. <div :class="{
  1746. isCard: r,
  1747. isChooseCard: r == '' || r == undefined,
  1748. }">
  1749. <div>{{ r }}</div>
  1750. </div>
  1751. </el-tooltip>
  1752. <div :class="{
  1753. isCard: r,
  1754. isChooseCard: r == '' || r == undefined,
  1755. }" v-else>
  1756. <div>{{ r }}</div>
  1757. </div>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div class="cardList" v-if="st.addChangeSen">
  1762. <div class="cardBox">
  1763. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1764. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1765. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1766. <div>{{ s }}</div>
  1767. </div>
  1768. </el-tooltip>
  1769. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1770. <div>{{ s }}</div>
  1771. </div>
  1772. </div>
  1773. </div>
  1774. </div>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. <span slot="footer" class="dialog-footer">
  1779. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  1780. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  1781. </span>
  1782. </el-dialog>
  1783. <el-dialog title="排序" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  1784. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1785. <div>
  1786. <div class="w_name">
  1787. 学生姓名:<span>{{ sStudent.student }}</span>
  1788. </div>
  1789. <div class="sentenBox">
  1790. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  1791. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  1792. <div class="cardList" v-if="st.chooseSenList">
  1793. <div class="cardBox">
  1794. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  1795. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  1796. <div :class="{
  1797. isCard: r,
  1798. isChooseCard: r == '' || r == undefined,
  1799. }">
  1800. <div>{{ r }}</div>
  1801. </div>
  1802. </el-tooltip>
  1803. <div :class="{
  1804. isCard: r,
  1805. isChooseCard: r == '' || r == undefined,
  1806. }" v-else>
  1807. <div>{{ r }}</div>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. </div>
  1812. <div class="cardList" v-if="st.addChangeSen">
  1813. <div class="cardBox">
  1814. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  1815. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  1816. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  1817. <div>{{ s }}</div>
  1818. </div>
  1819. </el-tooltip>
  1820. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  1821. <div>{{ s }}</div>
  1822. </div>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. <span slot="footer" class="dialog-footer">
  1830. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  1831. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  1832. </span>
  1833. </el-dialog>
  1834. <el-dialog title="排序" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  1835. :before-close="handleClose" class="dialog_diy dialog_diy3">
  1836. <div>
  1837. <div class="sentenBox">
  1838. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1839. {{ sentenceList1.stuName }}的作业
  1840. </div>
  1841. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  1842. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  1843. 第{{ stIndex + 1 }}题
  1844. </div>
  1845. <div class="isWrong">
  1846. <div class="cardList1" v-if="st.chooseSenList">
  1847. <div class="cardBox">
  1848. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  1849. <el-tooltip class="item" effect="light" :content="s" placement="top">
  1850. <div class="isCard">
  1851. <div>{{ s }}</div>
  1852. </div>
  1853. </el-tooltip>
  1854. </div>
  1855. </div>
  1856. <div class="cardAnswerBox">
  1857. 组成句子:{{ st.chooseSenList.join(" ") }}
  1858. </div>
  1859. </div>
  1860. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  1861. (tType == 1 || tType == 4)
  1862. ">
  1863. <div class="isTjImg">
  1864. <img src="../../assets/icon/conSentences/right.png" alt="" />
  1865. </div>
  1866. <div>回答正确</div>
  1867. </div>
  1868. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1869. (tType == 1 || tType == 4)
  1870. ">
  1871. <div class="isTjImg">
  1872. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  1873. </div>
  1874. <div>回答错误</div>
  1875. </div>
  1876. </div>
  1877. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  1878. (tType == 1 || tType == 4)
  1879. ">
  1880. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  1881. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  1882. <div class="cardBox">
  1883. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  1884. <el-tooltip class="item" effect="light" :content="r" placement="top">
  1885. <div class="isCard1">
  1886. <div>{{ r }}</div>
  1887. </div>
  1888. </el-tooltip>
  1889. </div>
  1890. </div>
  1891. <div class="cardAnswerBox">
  1892. 组成句子:{{ st.rightAnswer.join(" ") }}
  1893. </div>
  1894. </div>
  1895. </div>
  1896. </div>
  1897. </div>
  1898. </div>
  1899. <span slot="footer" class="dialog-footer">
  1900. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  1901. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  1902. </span>
  1903. </el-dialog>
  1904. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  1905. :before-close="handleClose" class="dialog_change">
  1906. <div class="marginT">
  1907. <div class="w_name">
  1908. 学生姓名:<span>{{ sStudent.student }}</span>
  1909. </div>
  1910. <div>上传文件</div>
  1911. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  1912. <div class="up_photo">
  1913. <img src="../../assets/uploadImg2.png" alt />
  1914. </div>
  1915. <!-- <input
  1916. type="file"
  1917. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  1918. style="display: none"
  1919. @change="beforeUpload1($event, 1)"
  1920. /> -->
  1921. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  1922. </div>
  1923. <!-- capture="camera" -->
  1924. <div class="chapter_add" style="
  1925. display: flex;
  1926. width: 100%;
  1927. flex-direction: row;
  1928. flex-wrap: wrap;
  1929. justify-content: flex-start;
  1930. padding: 15px 0;
  1931. " v-if="studyJuri[0].cover.length > 0">
  1932. <div class="upCover">
  1933. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  1934. <img :src="word" alt v-else-if="fileType == 1" />
  1935. <img :src="video" alt v-else-if="fileType == 2" />
  1936. <img :src="word2" alt v-else-if="fileType == 3" />
  1937. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  1938. <div class="deleteWord" @click="clean(1)">
  1939. <img src="../../assets/icon/deleteWorks.png" alt />
  1940. </div>
  1941. </div>
  1942. </div>
  1943. </div>
  1944. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  1945. 提交
  1946. </div>
  1947. </el-dialog>
  1948. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  1949. :before-close="handleClose" class="dialog_diy">
  1950. <div>
  1951. <div class="w_name">
  1952. 学生姓名:<span>{{ sStudent.student }}</span>
  1953. </div>
  1954. <div style="
  1955. display: flex;
  1956. flex-wrap: nowrap;
  1957. flex-direction: column;
  1958. position: relative;
  1959. ">
  1960. <div class="queTop" style="padding: 20px 0 20px 0">
  1961. <div class="question">
  1962. <img src="../../assets/icon/question.png" alt />
  1963. </div>
  1964. <div class="queTitle">
  1965. <div style="width: 90px; min-width: 90px">提问:</div>
  1966. <div>{{ answerQ }}</div>
  1967. </div>
  1968. </div>
  1969. <div class="ediBottom">
  1970. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  1971. v-model="questionAnswer"></textarea>
  1972. </div>
  1973. </div>
  1974. </div>
  1975. <div slot="footer">
  1976. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  1977. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  1978. </div>
  1979. </el-dialog>
  1980. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  1981. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  1982. :before-close="handleClose" class="dialog_diy">
  1983. <el-form>
  1984. <div>表格内容</div>
  1985. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  1986. </el-form>
  1987. <span slot="footer" class="dialog-footer">
  1988. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  1989. <el-button type="primary" @click="addTableWorks">确定</el-button>
  1990. </span>
  1991. </el-dialog>
  1992. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  1993. :before-close="handleClose" class="dialog_diy">
  1994. <el-form>
  1995. <div class="w_name">
  1996. 学生姓名:<span>{{ sStudent.student }}</span>
  1997. </div>
  1998. <div>表格内容</div>
  1999. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  2000. </el-form>
  2001. <span slot="footer" class="dialog-footer">
  2002. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  2003. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  2004. </span>
  2005. </el-dialog>
  2006. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  2007. class="dialog_diy">
  2008. <el-form>
  2009. <div>文档内容</div>
  2010. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  2011. </el-form>
  2012. <span slot="footer" class="dialog-footer">
  2013. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  2014. <el-button type="primary" @click="addWordWorks">确定</el-button>
  2015. </span>
  2016. </el-dialog>
  2017. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  2018. :before-close="handleClose" class="dialog_diy">
  2019. <el-form>
  2020. <div class="w_name">
  2021. 学生姓名:<span>{{ sStudent.student }}</span>
  2022. </div>
  2023. <div>文档内容</div>
  2024. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  2025. </el-form>
  2026. <span slot="footer" class="dialog-footer">
  2027. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  2028. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  2029. </span>
  2030. </el-dialog>
  2031. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  2032. :before-close="handleClose" class="dialog_diy">
  2033. <el-form>
  2034. <div class="cont" v-html="tableJson.text"></div>
  2035. </el-form>
  2036. <span slot="footer" class="dialog-footer">
  2037. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  2038. </span>
  2039. </el-dialog>
  2040. <el-dialog title="文档" :visible.sync="dialogVisibleTable3" :append-to-body="true" width="95%"
  2041. :before-close="handleClose" class="dialog_diy">
  2042. <el-form>
  2043. <div class="cont" v-html="tableJson.text"></div>
  2044. </el-form>
  2045. <span slot="footer" class="dialog-footer">
  2046. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  2047. </span>
  2048. </el-dialog>
  2049. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  2050. :before-close="handleClose" class="dialog_diy">
  2051. <div v-if="dialogVisibleGroup">
  2052. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  2053. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  2054. 提示:需要锁定位置,才能点击头像修改座位。
  2055. </div>
  2056. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  2057. @click="lockChair">
  2058. 锁定位置
  2059. </div>
  2060. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  2061. 解锁位置
  2062. </div>
  2063. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  2064. 分组设置
  2065. </div>
  2066. </div>
  2067. <div>
  2068. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  2069. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  2070. <div class="g_d_group_chair">
  2071. <div v-if="groupJson.number > 1">
  2072. <span :class="{
  2073. isChair:
  2074. groupStudent[toolindex][gindex] &&
  2075. groupStudent[toolindex][gindex][0],
  2076. updateChair:
  2077. courseDetail.userid == userid &&
  2078. groupStudent[toolindex][gindex] &&
  2079. groupStudent[toolindex][gindex][0] &&
  2080. groupJson.islock == 2,
  2081. }"><span class="updateChairBtn" @click="updateGroupChair(
  2082. groupStudent[toolindex][gindex] &&
  2083. groupStudent[toolindex][gindex][0]
  2084. )
  2085. ">修改</span></span><span>{{
  2086. groupStudent[toolindex][gindex] &&
  2087. groupStudent[toolindex][gindex][0]
  2088. ? groupStudent[toolindex][gindex] &&
  2089. groupStudent[toolindex][gindex][0].name
  2090. : "空位置"
  2091. }}</span>
  2092. </div>
  2093. <div v-if="groupJson.number > 4">
  2094. <span :class="{
  2095. isChair:
  2096. groupStudent[toolindex][gindex] &&
  2097. groupStudent[toolindex][gindex][4],
  2098. updateChair:
  2099. courseDetail.userid == userid &&
  2100. groupStudent[toolindex][gindex] &&
  2101. groupStudent[toolindex][gindex][4] &&
  2102. groupJson.islock == 2,
  2103. }"><span class="updateChairBtn" @click="updateGroupChair(
  2104. groupStudent[toolindex][gindex] &&
  2105. groupStudent[toolindex][gindex][4]
  2106. )
  2107. ">修改</span></span><span>{{
  2108. groupStudent[toolindex][gindex] &&
  2109. groupStudent[toolindex][gindex][4]
  2110. ? groupStudent[toolindex][gindex] &&
  2111. groupStudent[toolindex][gindex][4].name
  2112. : "空位置"
  2113. }}</span>
  2114. </div>
  2115. <div v-if="groupJson.number > 8">
  2116. <span :class="{
  2117. isChair:
  2118. groupStudent[toolindex][gindex] &&
  2119. groupStudent[toolindex][gindex][8],
  2120. updateChair:
  2121. courseDetail.userid == userid &&
  2122. groupStudent[toolindex][gindex] &&
  2123. groupStudent[toolindex][gindex][8] &&
  2124. groupJson.islock == 2,
  2125. }"><span class="updateChairBtn" @click="updateGroupChair(
  2126. groupStudent[toolindex][gindex] &&
  2127. groupStudent[toolindex][gindex][8]
  2128. )
  2129. ">修改</span></span><span>{{
  2130. groupStudent[toolindex][gindex] &&
  2131. groupStudent[toolindex][gindex][8]
  2132. ? groupStudent[toolindex][gindex] &&
  2133. groupStudent[toolindex][gindex][8].name
  2134. : "空位置"
  2135. }}</span>
  2136. </div>
  2137. </div>
  2138. <div class="g_d_group_tableBox">
  2139. <div class="g_d_group_chair2">
  2140. <div v-if="groupJson.number > 2">
  2141. <span :class="{
  2142. isChair:
  2143. groupStudent[toolindex][gindex] &&
  2144. groupStudent[toolindex][gindex][2],
  2145. updateChair:
  2146. courseDetail.userid == userid &&
  2147. groupStudent[toolindex][gindex] &&
  2148. groupStudent[toolindex][gindex][2] &&
  2149. groupJson.islock == 2,
  2150. }"><span class="updateChairBtn" @click="updateGroupChair(
  2151. groupStudent[toolindex][gindex] &&
  2152. groupStudent[toolindex][gindex][2]
  2153. )
  2154. ">修改</span></span><span>{{
  2155. groupStudent[toolindex][gindex] &&
  2156. groupStudent[toolindex][gindex][2]
  2157. ? groupStudent[toolindex][gindex] &&
  2158. groupStudent[toolindex][gindex][2].name
  2159. : "空位置"
  2160. }}</span>
  2161. </div>
  2162. <div v-if="groupJson.number > 6">
  2163. <span :class="{
  2164. isChair:
  2165. groupStudent[toolindex][gindex] &&
  2166. groupStudent[toolindex][gindex][6],
  2167. updateChair:
  2168. courseDetail.userid == userid &&
  2169. groupStudent[toolindex][gindex] &&
  2170. groupStudent[toolindex][gindex][6] &&
  2171. groupJson.islock == 2,
  2172. }"><span class="updateChairBtn" @click="updateGroupChair(
  2173. groupStudent[toolindex][gindex] &&
  2174. groupStudent[toolindex][gindex][6]
  2175. )
  2176. ">修改</span></span><span>{{
  2177. groupStudent[toolindex][gindex] &&
  2178. groupStudent[toolindex][gindex][6]
  2179. ? groupStudent[toolindex][gindex] &&
  2180. groupStudent[toolindex][gindex][6].name
  2181. : "空位置"
  2182. }}</span>
  2183. </div>
  2184. </div>
  2185. <div class="g_d_group_table">
  2186. <div>
  2187. {{ g.name }}
  2188. </div>
  2189. <div>
  2190. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  2191. " @click="deleteGroupChair(gindex)">
  2192. 移除组员
  2193. </div>
  2194. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  2195. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  2196. ">
  2197. 加入分组
  2198. </div>
  2199. <div @click="exitGroup(
  2200. groupStudent[toolindex][gindex] &&
  2201. groupStudent[toolindex][gindex][
  2202. groupStudentUid[toolindex][gindex].indexOf(userid)
  2203. ].id
  2204. )
  2205. " v-else-if="groupStudentUid[toolindex] &&
  2206. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  2207. ">
  2208. 退出分组
  2209. </div>
  2210. </div>
  2211. </div>
  2212. <div class="g_d_group_chair2">
  2213. <div v-if="groupJson.number > 3">
  2214. <span :class="{
  2215. isChair:
  2216. groupStudent[toolindex][gindex] &&
  2217. groupStudent[toolindex][gindex][3],
  2218. updateChair:
  2219. courseDetail.userid == userid &&
  2220. groupStudent[toolindex][gindex] &&
  2221. groupStudent[toolindex][gindex][3] &&
  2222. groupJson.islock == 2,
  2223. }"><span class="updateChairBtn" @click="updateGroupChair(
  2224. groupStudent[toolindex][gindex] &&
  2225. groupStudent[toolindex][gindex][3]
  2226. )
  2227. ">修改</span></span><span>{{
  2228. groupStudent[toolindex][gindex] &&
  2229. groupStudent[toolindex][gindex][3]
  2230. ? groupStudent[toolindex][gindex] &&
  2231. groupStudent[toolindex][gindex][3].name
  2232. : "空位置"
  2233. }}</span>
  2234. </div>
  2235. <div v-if="groupJson.number > 7">
  2236. <span :class="{
  2237. isChair:
  2238. groupStudent[toolindex][gindex] &&
  2239. groupStudent[toolindex][gindex][7],
  2240. updateChair:
  2241. courseDetail.userid == userid &&
  2242. groupStudent[toolindex][gindex] &&
  2243. groupStudent[toolindex][gindex][7] &&
  2244. groupJson.islock == 2,
  2245. }"><span class="updateChairBtn" @click="updateGroupChair(
  2246. groupStudent[toolindex][gindex] &&
  2247. groupStudent[toolindex][gindex][7]
  2248. )
  2249. ">修改</span></span><span>{{
  2250. groupStudent[toolindex][gindex] &&
  2251. groupStudent[toolindex][gindex][7]
  2252. ? groupStudent[toolindex][gindex] &&
  2253. groupStudent[toolindex][gindex][7].name
  2254. : "空位置"
  2255. }}</span>
  2256. </div>
  2257. </div>
  2258. </div>
  2259. <div class="g_d_group_chair">
  2260. <div v-if="groupJson.number > 1">
  2261. <span :class="{
  2262. isChair:
  2263. groupStudent[toolindex][gindex] &&
  2264. groupStudent[toolindex][gindex][1],
  2265. updateChair:
  2266. courseDetail.userid == userid &&
  2267. groupStudent[toolindex][gindex] &&
  2268. groupStudent[toolindex][gindex][1] &&
  2269. groupJson.islock == 2,
  2270. }"><span class="updateChairBtn" @click="updateGroupChair(
  2271. groupStudent[toolindex][gindex] &&
  2272. groupStudent[toolindex][gindex][1]
  2273. )
  2274. ">修改</span></span><span>{{
  2275. groupStudent[toolindex][gindex] &&
  2276. groupStudent[toolindex][gindex][1]
  2277. ? groupStudent[toolindex][gindex] &&
  2278. groupStudent[toolindex][gindex][1].name
  2279. : "空位置"
  2280. }}</span>
  2281. </div>
  2282. <div v-if="groupJson.number > 5">
  2283. <span :class="{
  2284. isChair:
  2285. groupStudent[toolindex][gindex] &&
  2286. groupStudent[toolindex][gindex][5],
  2287. updateChair:
  2288. courseDetail.userid == userid &&
  2289. groupStudent[toolindex][gindex] &&
  2290. groupStudent[toolindex][gindex][5] &&
  2291. groupJson.islock == 2,
  2292. }"><span class="updateChairBtn" @click="updateGroupChair(
  2293. groupStudent[toolindex][gindex] &&
  2294. groupStudent[toolindex][gindex][5]
  2295. )
  2296. ">修改</span></span><span>{{
  2297. groupStudent[toolindex][gindex] &&
  2298. groupStudent[toolindex][gindex][5]
  2299. ? groupStudent[toolindex][gindex] &&
  2300. groupStudent[toolindex][gindex][5].name
  2301. : "空位置"
  2302. }}</span>
  2303. </div>
  2304. <div v-if="groupJson.number > 9">
  2305. <span :class="{
  2306. isChair:
  2307. groupStudent[toolindex][gindex] &&
  2308. groupStudent[toolindex][gindex][9],
  2309. updateChair:
  2310. courseDetail.userid == userid &&
  2311. groupStudent[toolindex][gindex] &&
  2312. groupStudent[toolindex][gindex][9] &&
  2313. groupJson.islock == 2,
  2314. }"><span class="updateChairBtn" @click="updateGroupChair(
  2315. groupStudent[toolindex][gindex] &&
  2316. groupStudent[toolindex][gindex][9]
  2317. )
  2318. ">修改</span></span><span>{{
  2319. groupStudent[toolindex][gindex] &&
  2320. groupStudent[toolindex][gindex][9]
  2321. ? groupStudent[toolindex][gindex] &&
  2322. groupStudent[toolindex][gindex][9].name
  2323. : "空位置"
  2324. }}</span>
  2325. </div>
  2326. </div>
  2327. </div>
  2328. </div>
  2329. </div>
  2330. </div>
  2331. <span slot="footer" class="dialog-footer">
  2332. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  2333. </span>
  2334. </el-dialog>
  2335. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  2336. :before-close="handleClose" class="dialog_diy">
  2337. <div class="groupBox">
  2338. <div v-if="groupJson2.group" class="groupContent">
  2339. <div class="groupTitle">请设置小组数量</div>
  2340. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  2341. <span class="groupn">组{{ index + 1 }}名称:</span>
  2342. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  2343. <!-- <div class="groupBtn">
  2344. <el-button type="primary" size="small" @click="addGroup(index)">
  2345. 添加</el-button>
  2346. <el-button type="primary" size="small" @click="deleteGroup(index)"
  2347. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  2348. </div> -->
  2349. </div>
  2350. </div>
  2351. <div class="groupContent">
  2352. <div class="groupTitle">请设置每组人数数量</div>
  2353. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  2354. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  2355. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  2356. placeholder="2-10人以内"></el-input-number>
  2357. </div>
  2358. </div>
  2359. <span slot="footer" class="dialog-footer">
  2360. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  2361. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  2362. </span>
  2363. </el-dialog>
  2364. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  2365. :before-close="handleClose" class="dialog_change">
  2366. <div class="marginT">
  2367. <div>上传文件</div>
  2368. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  2369. <div class="up_photo">
  2370. <img src="../../assets/icon/uploadImg.png" alt />
  2371. </div>
  2372. <!-- <input
  2373. type="file"
  2374. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2375. style="display: none"
  2376. @change="beforeUpload1($event, 1)"
  2377. /> -->
  2378. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  2379. </div>
  2380. <!-- capture="camera" -->
  2381. <div class="chapter_add" style="
  2382. display: flex;
  2383. width: 100%;
  2384. flex-direction: row;
  2385. flex-wrap: wrap;
  2386. justify-content: flex-start;
  2387. padding: 15px 0;
  2388. " v-if="studyJuri[0].cover.length > 0">
  2389. <div class="upCover">
  2390. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  2391. <img :src="word" alt v-else-if="fileType == 1" />
  2392. <img :src="video" alt v-else-if="fileType == 2" />
  2393. <img :src="word2" alt v-else-if="fileType == 3" />
  2394. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  2395. <div class="deleteWord" @click="clean(1)">
  2396. <img src="../../assets/icon/deleteWorks.png" alt />
  2397. </div>
  2398. </div>
  2399. </div>
  2400. </div>
  2401. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  2402. 提交
  2403. </div>
  2404. </el-dialog>
  2405. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  2406. :before-close="handleClose" class="dialog_diy">
  2407. <div>
  2408. <h2>
  2409. {{ this.updateGroupUser.name }}
  2410. </h2>
  2411. <div style="color: rgb(171 171 171); margin-top: 10px">
  2412. 请选择要进入的分组
  2413. </div>
  2414. <el-radio-group v-model="checkChair">
  2415. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  2416. :key="index">{{ item.name }}</el-radio>
  2417. </el-radio-group>
  2418. </div>
  2419. <span slot="footer" class="dialog-footer">
  2420. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  2421. <el-button type="primary" @click="updateChair">确定</el-button>
  2422. </span>
  2423. </el-dialog>
  2424. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  2425. :before-close="handleClose" class="dialog_diy">
  2426. <div>
  2427. <h2>
  2428. {{ this.deleteGroupArray.name }}
  2429. </h2>
  2430. <div style="color: rgb(171 171 171); margin-top: 10px">
  2431. 请选择要删除的组员
  2432. </div>
  2433. <el-checkbox-group v-model="checkDeleteGroup">
  2434. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  2435. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  2436. </el-checkbox-group>
  2437. </div>
  2438. <span slot="footer" class="dialog-footer">
  2439. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  2440. <el-button type="primary" @click="deleteChair">确定</el-button>
  2441. </span>
  2442. </el-dialog>
  2443. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  2444. :before-close="handleClose" class="dialog_change">
  2445. <div class="marginT">
  2446. <div class="plworkBox">
  2447. <div class="chapter_add" style="
  2448. display: flex;
  2449. width: 150px;
  2450. flex-direction: row;
  2451. flex-wrap: wrap;
  2452. justify-content: flex-start;
  2453. margin: 0 10px 10px 0;
  2454. " v-for="(item, index) in plworkFile" :key="index">
  2455. <div class="upCover2">
  2456. <img :src="item.url" alt v-if="item.fileType == 1" />
  2457. <img :src="word" alt v-else-if="item.fileType == 4" />
  2458. <img :src="video" alt v-else />
  2459. <!-- <span class="picName">{{ item.name }}</span> -->
  2460. <!-- <el-input
  2461. v-model="item.username"
  2462. placeholder="请输入学生名字"
  2463. style="margin-top: 10px"
  2464. ></el-input> -->
  2465. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  2466. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  2467. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  2468. </el-option>
  2469. </el-select>
  2470. <div class="deleteWord" @click="clean2(index)">
  2471. <img src="../../assets/icon/deleteWorks.png" alt />
  2472. </div>
  2473. </div>
  2474. </div>
  2475. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  2476. <div class="up_photo2">
  2477. <img src="../../assets/icon/plwork.png" alt />
  2478. <span>点击上传文件</span>
  2479. </div>
  2480. <input type="file"
  2481. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  2482. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  2483. </div>
  2484. </div>
  2485. </div>
  2486. <!-- capture="camera" -->
  2487. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  2488. 提交
  2489. </div>
  2490. </el-dialog>
  2491. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  2492. class="dialog_diy" center>
  2493. <div style="text-align: center">
  2494. <span class="tian1">名称</span>
  2495. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  2496. placeholder="请选择学生">
  2497. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  2498. :value="item.userid">
  2499. </el-option>
  2500. </el-select>
  2501. <!-- <el-input
  2502. v-model="worksSName"
  2503. style="width: 250px; margin: 15px 0px"
  2504. ></el-input> -->
  2505. </div>
  2506. <span slot="footer" class="dialog-footer">
  2507. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  2508. <el-button type="primary" @click="updateName">确 定</el-button>
  2509. </span>
  2510. </el-dialog>
  2511. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" :userid="userid" :id="id"
  2512. :courseType="courseType" :taskCount="taskCount" :toolindex="toolindex" v-if="dialogVisibleVideo"></interVideo>
  2513. <el-dialog :title="sStudent.student" :visible.sync="dialogVisibleStudentTool" :append-to-body="true" width="700px"
  2514. :before-close="handleClose" class="dialog_diy">
  2515. <div>
  2516. <div class="dia_tool_box">
  2517. <div class="tool" @click="teacherWorkSubmit(1, 0, taskCount)">
  2518. <div class="whiteBIcon">
  2519. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt />
  2520. <div style="margin: 5px 0">电子白板</div>
  2521. </div>
  2522. </div>
  2523. <div class="tool">
  2524. <div class="whiteBIcon" @click="teacherWorkSubmit(3, 0, taskCount)">
  2525. <img src="../../assets/icon/secondToolList/mindMapping.png" alt />
  2526. <div style="margin: 5px 0">思维导图</div>
  2527. </div>
  2528. </div>
  2529. <div class="tool">
  2530. <div class="whiteBIcon">
  2531. <img src="../../assets/icon/fourthToolList/text.png" alt />
  2532. <div style="margin: 5px 0">文档</div>
  2533. </div>
  2534. </div>
  2535. </div>
  2536. </div>
  2537. </el-dialog>
  2538. </div>
  2539. </template>
  2540. <script>
  2541. import "../../common/aws-sdk-2.235.1.min.js";
  2542. // import pdf from "../components/pdf3";
  2543. import pdf from "../components/vpdf";
  2544. import AskStatic from "../components/askStatic";
  2545. import AskStatic2 from "../components/askStatic2";
  2546. import AnswerData2 from "../components/answerData2";
  2547. import AnswerData from "../components/answerData";
  2548. import EditorBar from "../tools/wangEnduit.vue";
  2549. import Table from "../tools/table.vue";
  2550. import Time from "../tools/time.vue";
  2551. import Mind from "../tools/jsmind.vue";
  2552. import Sunburst from "../tools/sunburst";
  2553. import SeeBoard from "../tools/seeBoard";
  2554. import * as imageConversion from "image-conversion";
  2555. import Audio from "../components/audio.vue";
  2556. import ImgDraw from "../tools/imgDraw/imgDraw";
  2557. import { Empty } from "element-ui";
  2558. import RecordRTC from "recordrtc";
  2559. import interVideo from "../interVideo/index.vue"
  2560. export default {
  2561. components: {
  2562. EditorBar,
  2563. Time,
  2564. pdf,
  2565. AskStatic,
  2566. AskStatic2,
  2567. Mind,
  2568. Sunburst,
  2569. SeeBoard,
  2570. AnswerData2,
  2571. AnswerData,
  2572. Audio,
  2573. ImgDraw,
  2574. Table,
  2575. interVideo
  2576. },
  2577. data() {
  2578. return {
  2579. bg: null,
  2580. drawShow: false,
  2581. dialogVisible: false,
  2582. dialogVisiblePl: false,
  2583. commentDialogVisible: false,
  2584. videoVisible: false,
  2585. isStar: false,
  2586. studentEvalDialogVisible: false,
  2587. studentEvalDialogVisibleTeacher: false,
  2588. dialogVisibleSelect: false,
  2589. dialogVisibleSelectTeacher: false,
  2590. dialogVisibleScore: false,
  2591. dialogVisibleSentence: false,
  2592. dialogVisibleSentenceTeacher: false,
  2593. dialogVisibleSentence1: false,
  2594. dialogVisibleWorks: false,
  2595. answerDialogVisibleTeacher: false,
  2596. dialogVisibleTable: false,
  2597. dialogVisibleTableTeacher: false,
  2598. dialogVisibleWord: false,
  2599. dialogVisibleWordTeacher: false,
  2600. dialogVisibleTable2: false,
  2601. dialogVisibleTable3: false,
  2602. dialogVisibleGroupWork: false,
  2603. dialogVisibleUpdateGroup: false,
  2604. dialogVisibleDeleteGroup: false,
  2605. dialogVisibleSname: false,
  2606. dialogVisibleVideo: false,
  2607. dialogVisibleStudentTool: false,
  2608. worksSName: "",
  2609. classJuri: [],
  2610. uploadStudentJuri: [],
  2611. uploadCid: "",
  2612. snameWid: "",
  2613. sStudent: {},
  2614. sTool: "",
  2615. bzText: "",
  2616. commentDetail: [],
  2617. selectAnswer: [],
  2618. videoDetail: {},
  2619. selectJson: {},
  2620. eScore: { eBzText: "", eStar: [] },
  2621. id: this.$route.query.courseId,
  2622. userid: this.$route.query.userid,
  2623. classId: this.$route.query.cid,
  2624. // courseTypeLine: this.$route.query.type,
  2625. oid: this.$route.query.oid,
  2626. org: this.$route.query.org,
  2627. tType: this.$route.query.tType,
  2628. courseType: this.$route.query.type,
  2629. screenType: this.$route.query.screenType,
  2630. tcid2: this.$route.query.tcid,
  2631. tcid: "",
  2632. pptImgUrl: "",
  2633. pptImgUrl1: "",
  2634. commentText: "",
  2635. full: false,
  2636. sIsOpen: false,
  2637. IsLookOpen: false,
  2638. IsFollow: false,
  2639. pzDialog: false,
  2640. contentDialog: false,
  2641. mlDialog: false,
  2642. type: 1,
  2643. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  2644. sentenceList1: [],
  2645. tableJson: [],
  2646. wordJson: [],
  2647. vedio: [],
  2648. text: [],
  2649. textList: [],
  2650. line: [],
  2651. lineList: [],
  2652. chapTools: [],
  2653. chapToolList: [],
  2654. file: [],
  2655. fileC: [],
  2656. vedioTime: [],
  2657. upToolImg: "",
  2658. preTime: 0,
  2659. rateList: {
  2660. ca: 0,
  2661. },
  2662. rateParams: [],
  2663. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  2664. studyJuri: [
  2665. {
  2666. content: "",
  2667. cover: [],
  2668. upVedio: [],
  2669. upFile: [],
  2670. },
  2671. ],
  2672. plworkFile: [],
  2673. mr: require("../../assets/vedioPic.png"),
  2674. word: require("../../assets/icon/isWord.png"),
  2675. word2: require("../../assets/icon/word2.png"),
  2676. video: require("../../assets/icon/isVideo.png"),
  2677. noLikes: require("../../assets/icon/comment/noLikes.png"),
  2678. likes: require("../../assets/icon/comment/likes.png"),
  2679. scoreImg: require("../../assets/score.png"),
  2680. courseDetail: {},
  2681. isSelect: false,
  2682. chapInfo: [],
  2683. chapInfoList: [],
  2684. taskCount: 0,
  2685. imgList: [],
  2686. noImgList: [],
  2687. pzList: [],
  2688. PlTextList: [
  2689. "Excellent!",
  2690. "nice!",
  2691. "很有创意!",
  2692. "还不错哦~",
  2693. "继续努力哦~",
  2694. ],
  2695. isClickNav: "",
  2696. navId: "",
  2697. playerOptions: {
  2698. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2699. autoplay: false, //如果true,浏览器准备好时开始回放。
  2700. muted: false, // 默认情况下将会消除任何音频。
  2701. loop: false, // 导致视频一结束就重新开始。
  2702. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2703. language: "zh-CN",
  2704. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2705. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2706. sources: [
  2707. {
  2708. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2709. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2710. },
  2711. ],
  2712. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2713. // poster: dataRes.imgUrl, //你的封面地址
  2714. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2715. controlBar: {
  2716. timeDivider: true, //当前时间和持续时间的分隔符
  2717. durationDisplay: true, //显示持续时间
  2718. remainingTimeDisplay: false, //是否显示剩余时间功能
  2719. fullscreenToggle: true, //全屏按钮
  2720. },
  2721. },
  2722. playerOptions1: {
  2723. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  2724. autoplay: false, //如果true,浏览器准备好时开始回放。
  2725. muted: false, // 默认情况下将会消除任何音频。
  2726. loop: false, // 导致视频一结束就重新开始。
  2727. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  2728. language: "zh-CN",
  2729. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  2730. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  2731. sources: [
  2732. {
  2733. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  2734. src: "", //url地址require("../../../assets/media/aaa.mp4")
  2735. },
  2736. ],
  2737. // poster: require("../../../assets/tu31.png"), //你的封面地址
  2738. // poster: dataRes.imgUrl, //你的封面地址
  2739. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  2740. controlBar: {
  2741. timeDivider: true, //当前时间和持续时间的分隔符
  2742. durationDisplay: true, //显示持续时间
  2743. remainingTimeDisplay: false, //是否显示剩余时间功能
  2744. fullscreenToggle: true, //全屏按钮
  2745. },
  2746. },
  2747. playerO: {},
  2748. noneBtnImg: false,
  2749. proVisible: false,
  2750. proVisible2: false,
  2751. progress: 0,
  2752. isFinishSize: 0,
  2753. isAllSize: 0,
  2754. questionAnswer: "",
  2755. answerQ: "", //问答标题
  2756. rateJson: [],
  2757. wbCount: 0,
  2758. wordCount: 0,
  2759. mindCount: 0,
  2760. askCount: 0,
  2761. noteCount: 0,
  2762. mindNetWorkCount: 0,
  2763. libraryCount: 0,
  2764. workCount: 0,
  2765. timeCount: 0,
  2766. answerCount: 0,
  2767. trainCount: 0,
  2768. evalCount: 0,
  2769. dialogImageUrl: "",
  2770. pictureDialog: false,
  2771. toolType: 0,
  2772. toolTypeList: [],
  2773. dialogVisible1: false,
  2774. dialogVisible2: false,
  2775. dialogVisible3: false,
  2776. dialogVisible6: false,
  2777. dialogVisible4: false,
  2778. isNoHomeWork: false,
  2779. dialogVisible5: false,
  2780. dialogVisible5Teacher: false,
  2781. dialogVisibleChoice: false,
  2782. dialogVisibleChoiceTeacher: false,
  2783. answerDialogVisible: false,
  2784. juriVisible: false,
  2785. timeDialogVisible: false,
  2786. radio: [],
  2787. isAsk: false,
  2788. askJson: {
  2789. askCount: 1,
  2790. askTitle: "",
  2791. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  2792. },
  2793. testJson: {},
  2794. checkJson: [],
  2795. askList: [],
  2796. answerList: [],
  2797. navList: [],
  2798. addPzDialog: false,
  2799. ispzType: 1,
  2800. pzConText: "",
  2801. worksStudent: [],
  2802. worksStudent2: [],
  2803. worksTeacher: [],
  2804. isCloseList: [],
  2805. workStudent: [],
  2806. groupStudent: [],
  2807. groupStudentUid: [],
  2808. noWorksS: [],
  2809. isWorksS: [],
  2810. noWorksStudent: [],
  2811. toolindex: 0,
  2812. groupIndex: 0,
  2813. workTypeB: false,
  2814. workTypeC: false,
  2815. isAnswer: false,
  2816. timer: null,
  2817. opertimer: null,
  2818. showType: 0,
  2819. fileType: 0,
  2820. showPDF: false,
  2821. noteName: "",
  2822. evaJuri: [],
  2823. evalua: "",
  2824. eTitle: "",
  2825. eName: "",
  2826. eJson: {},
  2827. fid: "", //一级
  2828. sid: "", //二级
  2829. tid: "", //二级
  2830. typeMode: 1,
  2831. eJSONNum: 0,
  2832. Etype: 1,
  2833. data: {
  2834. meta: {
  2835. name: "example",
  2836. author: "dd@163.com",
  2837. version: "0.2",
  2838. },
  2839. format: "node_array",
  2840. data: [{ id: "root", isroot: true, topic: "" }],
  2841. },
  2842. fullDialogVisible: false,
  2843. fulltype: "",
  2844. fullUrl: "",
  2845. commentIndexJson: {},
  2846. Stbodywidth: 0,
  2847. pzType: 1,
  2848. wScore: 0,
  2849. scoreDetail: "",
  2850. videoStart: false,
  2851. recorder: null,
  2852. groupJson: {},
  2853. groupJson2: {},
  2854. dialogVisibleGroup: false,
  2855. dialogVisibleGroup2: false,
  2856. updateGroupArray: [],
  2857. updateGroupUser: {},
  2858. deleteGroupUser: [],
  2859. deleteGroupArray: {},
  2860. checkChair: "",
  2861. checkDeleteGroup: [],
  2862. inviteCode: "",
  2863. courseGroupStudent: [],
  2864. courseGroupStudentUid: [],
  2865. courseGroup: {},
  2866. isGroup: false,
  2867. toolIndex: null,
  2868. tool: {},
  2869. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40],//, 40
  2870. videoJson: {},
  2871. };
  2872. },
  2873. methods: {
  2874. jump() {
  2875. window.parent.postMessage({ tools: "43" }, "*");
  2876. },
  2877. previewImg(url) {
  2878. this.$hevueImgPreview(url);
  2879. },
  2880. change(val) {
  2881. console.log(val);
  2882. },
  2883. goTo(path) {
  2884. this.$router.push(path);
  2885. },
  2886. handlePictureCardPreview(url) {
  2887. this.dialogImageUrl = url;
  2888. this.pictureDialog = true;
  2889. },
  2890. clean(type) {
  2891. if (type == 1) {
  2892. this.studyJuri[0].cover.splice(0, 1);
  2893. } else if (type == 2) {
  2894. this.studyJuri[0].upVedio.splice(0, 1);
  2895. } else {
  2896. this.studyJuri[0].upFile.splice(0, 1);
  2897. }
  2898. },
  2899. clean2(index) {
  2900. this.plworkFile.splice(index, 1);
  2901. },
  2902. handleClose(done) {
  2903. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  2904. this.videoDetail.sources[0].src = "";
  2905. }
  2906. this.commentIndexJson = {};
  2907. done();
  2908. },
  2909. fullTools() {
  2910. this.full = !this.full;
  2911. },
  2912. imgChange(file, fileList, type) {
  2913. if (type == 1) {
  2914. var _tmp = this.studyJuri[0].cover;
  2915. } else if (type == 2) {
  2916. var _tmp = this.studyJuri[0].upVedio;
  2917. } else {
  2918. var _tmp = this.studyJuri[0].upFile;
  2919. }
  2920. this.noneBtnImg = _tmp.length >= 1;
  2921. },
  2922. setContent(bool) {
  2923. this.contentDialog = bool
  2924. if (bool && this.mlDialog) {
  2925. document.querySelector('.workd_media').style.height = "650px"
  2926. } else {
  2927. document.querySelector('.workd_media').style.height = "auto"
  2928. }
  2929. },
  2930. setContent2(bool) {
  2931. this.mlDialog = bool
  2932. if (bool && this.contentDialog) {
  2933. document.querySelector('.workd_media').style.height = "650px"
  2934. } else {
  2935. document.querySelector('.workd_media').style.height = "auto"
  2936. }
  2937. },
  2938. addImg(e) {
  2939. var el = e.currentTarget;
  2940. // this.$message.success('触发上传')
  2941. el.getElementsByTagName("input")[0].click();
  2942. e.target.value = "";
  2943. },
  2944. addSelectAnswer() {
  2945. let params = [
  2946. {
  2947. uid: this.userid,
  2948. cid: this.id,
  2949. stage: this.courseType,
  2950. task: this.taskCount,
  2951. tool: this.toolindex,
  2952. content: this.selectAnswer.answer,
  2953. type: 7,
  2954. },
  2955. ];
  2956. this.ajax
  2957. .post(this.$store.state.api + "addCourseWorks", params)
  2958. .then((res) => {
  2959. this.$message({
  2960. message: "提交成功",
  2961. type: "success",
  2962. });
  2963. this.dialogVisibleSelect = false;
  2964. // this.selectAnswer = {};
  2965. this.selectSWorks();
  2966. this.selectStudent();
  2967. })
  2968. .catch((err) => {
  2969. this.$message.error("提交失败");
  2970. console.error(err);
  2971. });
  2972. },
  2973. addSelectAnswerTeacher() {
  2974. let params = [
  2975. {
  2976. uid: this.sStudent.userid,
  2977. cid: this.id,
  2978. stage: this.courseType,
  2979. task: this.taskCount,
  2980. tool: this.toolindex,
  2981. content: this.selectAnswer.answer,
  2982. type: 7,
  2983. },
  2984. ];
  2985. this.ajax
  2986. .post(this.$store.state.api + "addCourseWorks", params)
  2987. .then((res) => {
  2988. this.$message({
  2989. message: "提交成功",
  2990. type: "success",
  2991. });
  2992. this.dialogVisibleSelectTeacher = false;
  2993. // this.selectAnswer = {};
  2994. this.selectSWorks();
  2995. this.selectStudent();
  2996. })
  2997. .catch((err) => {
  2998. this.$message.error("提交失败");
  2999. console.error(err);
  3000. });
  3001. },
  3002. addSenWorks() {
  3003. for (var i = 0; i < this.sentenceList.length; i++) {
  3004. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3005. if (
  3006. this.sentenceList[i].chooseSenList[j] == undefined ||
  3007. this.sentenceList[i].chooseSenList[j] == ""
  3008. ) {
  3009. this.$message.error("请将答案填写完整!");
  3010. return;
  3011. }
  3012. }
  3013. }
  3014. let params = [
  3015. {
  3016. uid: this.userid,
  3017. cid: this.id,
  3018. stage: this.courseType,
  3019. task: this.taskCount,
  3020. tool: this.toolindex,
  3021. content: JSON.stringify(this.sentenceList),
  3022. type: 9,
  3023. },
  3024. ];
  3025. this.ajax
  3026. .post(this.$store.state.api + "addCourseWorks", params)
  3027. .then((res) => {
  3028. this.$message({
  3029. message: "提交成功",
  3030. type: "success",
  3031. });
  3032. this.dialogVisibleSentence = false;
  3033. // this.selectAnswer = {};
  3034. this.selectSWorks();
  3035. this.selectStudent();
  3036. })
  3037. .catch((err) => {
  3038. this.$message.error("提交失败");
  3039. console.error(err);
  3040. });
  3041. },
  3042. addSenWorksTeacher() {
  3043. for (var i = 0; i < this.sentenceList.length; i++) {
  3044. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  3045. if (
  3046. this.sentenceList[i].chooseSenList[j] == undefined ||
  3047. this.sentenceList[i].chooseSenList[j] == ""
  3048. ) {
  3049. this.$message.error("请将答案填写完整!");
  3050. return;
  3051. }
  3052. }
  3053. }
  3054. let params = [
  3055. {
  3056. uid: this.sStudent.userid,
  3057. cid: this.id,
  3058. stage: this.courseType,
  3059. task: this.taskCount,
  3060. tool: this.toolindex,
  3061. content: JSON.stringify(this.sentenceList),
  3062. type: 9,
  3063. },
  3064. ];
  3065. this.ajax
  3066. .post(this.$store.state.api + "addCourseWorks", params)
  3067. .then((res) => {
  3068. this.$message({
  3069. message: "提交成功",
  3070. type: "success",
  3071. });
  3072. this.dialogVisibleSentenceTeacher = false;
  3073. // this.selectAnswer = {};
  3074. this.selectSWorks();
  3075. this.selectStudent();
  3076. })
  3077. .catch((err) => {
  3078. this.$message.error("提交失败");
  3079. console.error(err);
  3080. });
  3081. },
  3082. addTableWorks() {
  3083. let params = [
  3084. {
  3085. uid: this.userid,
  3086. cid: this.id,
  3087. stage: this.courseType,
  3088. task: this.taskCount,
  3089. tool: this.toolindex,
  3090. content: JSON.stringify(this.tableJson),
  3091. type: 10,
  3092. },
  3093. ];
  3094. this.ajax
  3095. .post(this.$store.state.api + "addCourseWorks", params)
  3096. .then((res) => {
  3097. this.$message({
  3098. message: "提交成功",
  3099. type: "success",
  3100. });
  3101. this.dialogVisibleTable = false;
  3102. // this.selectAnswer = {};
  3103. this.selectSWorks();
  3104. this.selectStudent();
  3105. })
  3106. .catch((err) => {
  3107. this.$message.error("提交失败");
  3108. console.error(err);
  3109. });
  3110. },
  3111. addTableWorksTeacher() {
  3112. let params = [
  3113. {
  3114. uid: this.sStudent.userid,
  3115. cid: this.id,
  3116. stage: this.courseType,
  3117. task: this.taskCount,
  3118. tool: this.toolindex,
  3119. content: JSON.stringify(this.tableJson),
  3120. type: 10,
  3121. },
  3122. ];
  3123. this.ajax
  3124. .post(this.$store.state.api + "addCourseWorks", params)
  3125. .then((res) => {
  3126. this.$message({
  3127. message: "提交成功",
  3128. type: "success",
  3129. });
  3130. this.dialogVisibleTableTeacher = false;
  3131. // this.selectAnswer = {};
  3132. this.selectSWorks();
  3133. this.selectStudent();
  3134. })
  3135. .catch((err) => {
  3136. this.$message.error("提交失败");
  3137. console.error(err);
  3138. });
  3139. },
  3140. addWordWorks() {
  3141. let params = [{
  3142. uid: this.userid,
  3143. cid: this.id,
  3144. stage: this.courseType,
  3145. task: this.taskCount,
  3146. tool: this.toolindex,
  3147. content: JSON.stringify(this.wordJson),
  3148. type: 13,
  3149. atool: 52,
  3150. }];
  3151. console.log(params);
  3152. this.ajax
  3153. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3154. .then((res) => {
  3155. this.$message({
  3156. message: "提交成功",
  3157. type: "success",
  3158. });
  3159. this.dialogVisibleWord = false;
  3160. // this.selectAnswer = {};
  3161. this.selectSWorks();
  3162. this.selectStudent();
  3163. })
  3164. .catch((err) => {
  3165. this.$message.error("提交失败");
  3166. console.error(err);
  3167. });
  3168. },
  3169. addWordWorksTeacher() {
  3170. let params = [{
  3171. uid: this.sStudent.userid,
  3172. cid: this.id,
  3173. stage: this.courseType,
  3174. task: this.taskCount,
  3175. tool: this.toolindex,
  3176. content: JSON.stringify(this.wordJson),
  3177. type: 13,
  3178. atool: 52,
  3179. }];
  3180. console.log(params);
  3181. this.ajax
  3182. .post(this.$store.state.api + "addCourseWorks3-2", params)
  3183. .then((res) => {
  3184. this.$message({
  3185. message: "提交成功",
  3186. type: "success",
  3187. });
  3188. this.dialogVisibleWordTeacher = false;
  3189. // this.selectAnswer = {};
  3190. this.selectSWorks();
  3191. this.selectStudent();
  3192. })
  3193. .catch((err) => {
  3194. this.$message.error("提交失败");
  3195. console.error(err);
  3196. });
  3197. },
  3198. addCourseWorks(i) {
  3199. var typesql;
  3200. if (this.fileType === 0) {
  3201. typesql = 1;
  3202. } else if (this.fileType === 1) {
  3203. typesql = 4;
  3204. } else if (this.fileType === 2) {
  3205. typesql = 5;
  3206. } else if (this.fileType === 3) {
  3207. typesql = 12;
  3208. }
  3209. if (!this.studyJuri[0].cover[0].url) {
  3210. this.$message.error("请上传文件");
  3211. return;
  3212. }
  3213. let params = [
  3214. {
  3215. uid: this.userid,
  3216. cid: this.id,
  3217. stage: this.courseType,
  3218. task: i,
  3219. tool: this.toolindex,
  3220. content: this.studyJuri[0].cover[0].url,
  3221. type: typesql,
  3222. },
  3223. ];
  3224. this.ajax
  3225. .post(this.$store.state.api + "addCourseWorksR", params)
  3226. .then((res) => {
  3227. this.$message({
  3228. message: "提交成功",
  3229. type: "success",
  3230. });
  3231. this.studyJuri[0].cover = [];
  3232. this.dialogVisible = false;
  3233. this.getCourseDetail();
  3234. })
  3235. .catch((err) => {
  3236. this.$message.error("提交失败");
  3237. console.error(err);
  3238. });
  3239. },
  3240. addCourseWorksPl(i) {
  3241. let _files = this.plworkFile;
  3242. var c = 1;
  3243. for (var k = 0; k < _files.length; k++) {
  3244. if (!_files[k].username) {
  3245. c = 2;
  3246. }
  3247. }
  3248. if (c == 2) {
  3249. this.$message.error("请填写学生姓名");
  3250. return;
  3251. }
  3252. let params = [
  3253. {
  3254. ateacher: this.userid,
  3255. cid: this.id,
  3256. stage: this.courseType,
  3257. task: i,
  3258. tool: this.toolindex,
  3259. content: JSON.stringify(_files),
  3260. },
  3261. ];
  3262. this.ajax
  3263. .post(this.$store.state.api + "addCourseWorksPl", params)
  3264. .then((res) => {
  3265. this.$message({
  3266. message: "提交成功",
  3267. type: "success",
  3268. });
  3269. this.plworkFile = [];
  3270. this.dialogVisiblePl = false;
  3271. this.getCourseDetail();
  3272. })
  3273. .catch((err) => {
  3274. this.$message.error("提交失败");
  3275. console.error(err);
  3276. });
  3277. },
  3278. addCourseWorks2(i) {
  3279. var typesql;
  3280. if (this.fileType === 0) {
  3281. typesql = 0;
  3282. } else if (this.fileType === 1) {
  3283. typesql = 1;
  3284. } else if (this.fileType === 2) {
  3285. typesql = 3;
  3286. } else if (this.fileType === 3) {
  3287. typesql = 12;
  3288. }
  3289. if (!this.studyJuri[0].cover[0].url) {
  3290. this.$message.error("请上传文件");
  3291. return;
  3292. }
  3293. let params = [
  3294. {
  3295. uid: this.userid,
  3296. cid: this.id,
  3297. stage: this.courseType,
  3298. task: i,
  3299. tool: this.toolindex,
  3300. content: JSON.stringify({
  3301. type: typesql,
  3302. groupIndex: this.groupIndex,
  3303. url: this.studyJuri[0].cover[0].url,
  3304. }),
  3305. type: 11,
  3306. atool: 49,
  3307. text: "",
  3308. },
  3309. ];
  3310. this.ajax
  3311. .post(this.$store.state.api + "addCourseWorks5", params)
  3312. .then((res) => {
  3313. this.$message({
  3314. message: "提交成功",
  3315. type: "success",
  3316. });
  3317. this.studyJuri[0].cover = [];
  3318. this.dialogVisibleGroupWork = false;
  3319. this.getCourseDetail();
  3320. })
  3321. .catch((err) => {
  3322. this.$message.error("提交失败");
  3323. console.error(err);
  3324. });
  3325. },
  3326. addCourseWorksGong(i, data, tool) {
  3327. let params = [
  3328. {
  3329. uid: this.userid,
  3330. cid: this.id,
  3331. stage: this.courseType,
  3332. task: this.taskCount,
  3333. tool: i,
  3334. content: data,
  3335. type: 12,
  3336. atool: tool,
  3337. text: "",
  3338. },
  3339. ];
  3340. this.ajax
  3341. .post(this.$store.state.api + "addCourseWorks5", params)
  3342. .then((res) => {
  3343. this.$message({
  3344. message: "提交成功",
  3345. type: "success",
  3346. });
  3347. this.studyJuri[0].cover = [];
  3348. this.selectSWorks();
  3349. this.selectStudent();
  3350. })
  3351. .catch((err) => {
  3352. this.$message.error("提交失败");
  3353. console.error(err);
  3354. });
  3355. },
  3356. addCourseWorksGongTeacher(i, data, tool) {
  3357. let params = [
  3358. {
  3359. uid: this.sStudent.userid,
  3360. cid: this.id,
  3361. stage: this.courseType,
  3362. task: this.taskCount,
  3363. tool: i,
  3364. content: data,
  3365. type: 12,
  3366. atool: tool,
  3367. text: "",
  3368. },
  3369. ];
  3370. this.ajax
  3371. .post(this.$store.state.api + "addCourseWorks5", params)
  3372. .then((res) => {
  3373. this.$message({
  3374. message: "提交成功",
  3375. type: "success",
  3376. });
  3377. this.studyJuri[0].cover = [];
  3378. this.dialogVisibleWorks = false;
  3379. this.selectSWorks();
  3380. this.selectStudent();
  3381. })
  3382. .catch((err) => {
  3383. this.$message.error("提交失败");
  3384. console.error(err);
  3385. });
  3386. },
  3387. addCourseWorksGongPl(i, data, tool, type) {
  3388. let params = [
  3389. {
  3390. uid: this.sStudent.userid,
  3391. cid: this.id,
  3392. stage: this.courseType,
  3393. task: this.taskCount,
  3394. tool: i,
  3395. content: data,
  3396. type: type,
  3397. atool: tool,
  3398. text: "",
  3399. },
  3400. ];
  3401. this.ajax
  3402. .post(this.$store.state.api + "addCourseWorks5", params)
  3403. .then((res) => {
  3404. this.$message({
  3405. message: "提交成功",
  3406. type: "success",
  3407. });
  3408. this.studyJuri[0].cover = [];
  3409. this.dialogVisibleWorks = false;
  3410. this.selectSWorks();
  3411. this.selectStudent();
  3412. })
  3413. .catch((err) => {
  3414. this.$message.error("提交失败");
  3415. console.error(err);
  3416. });
  3417. },
  3418. addCourseWorksTeacher(i) {
  3419. var typesql;
  3420. if (this.sTool == 32 || this.sTool == 57) {
  3421. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  3422. return;
  3423. }
  3424. if (this.fileType === 0) {
  3425. typesql = 1;
  3426. } else if (this.fileType === 1) {
  3427. typesql = 4;
  3428. } else if (this.fileType === 2) {
  3429. typesql = 5;
  3430. } else if (this.fileType === 3) {
  3431. typesql = 12;
  3432. }
  3433. if (this.sTool == 50) {
  3434. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  3435. return;
  3436. }
  3437. if (!this.studyJuri[0].cover[0].url) {
  3438. this.$message.error("请上传文件");
  3439. return;
  3440. }
  3441. let params = [
  3442. {
  3443. uid: this.sStudent.userid,
  3444. cid: this.id,
  3445. stage: this.courseType,
  3446. task: i,
  3447. tool: this.toolindex,
  3448. content: this.studyJuri[0].cover[0].url,
  3449. type: typesql,
  3450. ateacher: this.userid,
  3451. },
  3452. ];
  3453. this.ajax
  3454. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  3455. .then((res) => {
  3456. this.$message({
  3457. message: "提交成功",
  3458. type: "success",
  3459. });
  3460. this.studyJuri[0].cover = [];
  3461. this.dialogVisibleWorks = false;
  3462. this.getCourseDetail();
  3463. })
  3464. .catch((err) => {
  3465. this.$message.error("提交失败");
  3466. console.error(err);
  3467. });
  3468. },
  3469. selectUploadStudent() {
  3470. let params = {
  3471. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  3472. oid: this.oid,
  3473. cn: '',
  3474. };
  3475. this.ajax
  3476. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  3477. .then((res) => {
  3478. var studentK = [];
  3479. if (this.isWorksS[this.toolindex].length > 0) {
  3480. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  3481. studentK.push(this.isWorksS[this.toolindex][z].uid);
  3482. }
  3483. studentK = studentK.join(",");
  3484. }
  3485. this.uploadStudentJuri = res.data[0].filter((el) => {
  3486. return studentK.indexOf(el.userid) == -1
  3487. });
  3488. })
  3489. .catch((err) => {
  3490. console.error(err);
  3491. });
  3492. },
  3493. arrayToArray(arrayo, arrayt) {
  3494. let array1 = arrayo;
  3495. let array2 = arrayt;
  3496. let commonElements = [];
  3497. for (let i = 0; i < array1.length; i++) {
  3498. for (let j = 0; j < array2.length; j++) {
  3499. if (array1[i] === array2[j]) {
  3500. commonElements.push(array1[i]);
  3501. }
  3502. }
  3503. }
  3504. return commonElements
  3505. },
  3506. selectWorksStudent() {
  3507. let params = {
  3508. oid: this.oid,
  3509. cid: this.courseDetail.juri,
  3510. };
  3511. this.ajax
  3512. .get(this.$store.state.api + "selectWorksStudent", params)
  3513. .then((res) => {
  3514. var a = res.data[0];
  3515. this.noWorksS = [];
  3516. var studentK = [];
  3517. if (this.isWorksS.length > 0) {
  3518. for (var z = 0; z < this.isWorksS.length; z++) {
  3519. studentK.push(this.isWorksS[z].uid);
  3520. }
  3521. studentK = studentK.join(",");
  3522. for (var j = 0; j < a.length; j++) {
  3523. // if (studentK.indexOf(a[j].userid) == -1) {
  3524. if (this.tcid) {
  3525. // a[j].classid.indexOf(this.tcid) != -1
  3526. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  3527. this.noWorksS.push({
  3528. student: a[j].name,
  3529. userid: a[j].userid,
  3530. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3531. });
  3532. }
  3533. } else {
  3534. this.noWorksS.push({
  3535. student: a[j].name,
  3536. userid: a[j].userid,
  3537. type: studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  3538. });
  3539. }
  3540. // }
  3541. }
  3542. } else {
  3543. for (var k = 0; k < a.length; k++) {
  3544. if (this.tcid) {
  3545. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  3546. this.noWorksS.push({
  3547. student: a[k].name,
  3548. userid: a[k].userid,
  3549. type: '1'
  3550. });
  3551. }
  3552. } else {
  3553. this.noWorksS.push({
  3554. student: a[k].name,
  3555. userid: a[k].userid,
  3556. type: '1'
  3557. });
  3558. }
  3559. }
  3560. }
  3561. // this.noWorksS = this.noWorksS.sort(function (a, b) {
  3562. // let jscoreA = parseInt(a.type);
  3563. // let jscoreB = parseInt(b.type);
  3564. // return jscoreB - jscoreA;
  3565. // });
  3566. this.$forceUpdate();
  3567. if (
  3568. Object.keys(this.commentDetail).length &&
  3569. Object.keys(this.commentIndexJson).length &&
  3570. !this.dialogVisibleScore
  3571. ) {
  3572. let a = 1;
  3573. let c = this.commentIndexJson;
  3574. console.log(c);
  3575. if (
  3576. this.commentIndexJson.gindex ||
  3577. this.commentIndexJson.gindex === 0
  3578. ) {
  3579. for (
  3580. var i = 0;
  3581. i < this.worksStudent.length;
  3582. i++
  3583. ) {
  3584. let _el = this.worksStudent[i];
  3585. groupA: for (var k = 0; k < _el.length; k++) {
  3586. let el = _el[k];
  3587. if (el.wid == this.commentDetail.wid) {
  3588. a = 2;
  3589. this.commentOther(
  3590. this.worksStudent[i][k],
  3591. this.commentIndexJson.toolIndex,
  3592. k,
  3593. this.commentIndexJson.gindex
  3594. );
  3595. break groupA;
  3596. }
  3597. }
  3598. }
  3599. if (a === 1) {
  3600. this.commentDetail = [];
  3601. this.commentIndexJson = {};
  3602. this.commentDialogVisible = false;
  3603. this.$message("此作业已被删除");
  3604. }
  3605. } else {
  3606. if (this.isGroup && this.commentIndexJson.gid) {
  3607. groupA: for (
  3608. var i = 0;
  3609. i < this.courseGroup.group.length;
  3610. i++
  3611. ) {
  3612. let _group = this.courseGroup.group[i]
  3613. if (_group.id == this.commentIndexJson.gid) {
  3614. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  3615. for (var k = 0; k < _el2.length; k++) {
  3616. let el2 = _el2[k];
  3617. if (el2.wid == this.commentDetail.wid) {
  3618. a = 2;
  3619. this.commentOther(
  3620. _el2[k],
  3621. this.commentIndexJson.toolIndex,
  3622. k,
  3623. null,
  3624. this.commentIndexJson.gid
  3625. );
  3626. break groupA;
  3627. }
  3628. }
  3629. }
  3630. }
  3631. }
  3632. if (a == 1) {
  3633. for (
  3634. var i = 0;
  3635. i < this.worksStudent.length;
  3636. i++
  3637. ) {
  3638. let el = this.worksStudent[i];
  3639. if (el.wid == this.commentDetail.wid) {
  3640. a = 2;
  3641. this.commentOther(
  3642. this.worksStudent[i],
  3643. this.commentIndexJson.toolIndex,
  3644. i
  3645. );
  3646. break;
  3647. }
  3648. }
  3649. }
  3650. if (a === 1) {
  3651. this.commentDetail = [];
  3652. this.commentIndexJson = {};
  3653. this.commentDialogVisible = false;
  3654. this.$message("此作业已被删除");
  3655. }
  3656. }
  3657. }
  3658. })
  3659. .catch((err) => {
  3660. console.error(err);
  3661. });
  3662. },
  3663. selectStudent() {
  3664. },
  3665. openVideo(w) {
  3666. this.videoDetail = {};
  3667. this.playerOptions1.sources[0].src = w.works;
  3668. this.videoDetail = this.playerOptions1;
  3669. this.videoVisible = true;
  3670. },
  3671. isLikes(wid, uid, t, c, isLikes) {
  3672. if (isLikes == false) {
  3673. let params = [
  3674. {
  3675. wid: wid,
  3676. lid: uid,
  3677. t: t,
  3678. c: c,
  3679. },
  3680. ];
  3681. this.ajax
  3682. .post(this.$store.state.api + "insertComment", params)
  3683. .then((res) => {
  3684. this.$message({
  3685. message: "点赞成功",
  3686. type: "success",
  3687. });
  3688. this.selectSWorks();
  3689. this.selectStudent();
  3690. })
  3691. .catch((err) => {
  3692. this.$message.error("点赞失败");
  3693. console.error(err);
  3694. });
  3695. } else {
  3696. let params = {
  3697. wid: wid,
  3698. lid: uid,
  3699. type: t,
  3700. };
  3701. this.ajax
  3702. .get(this.$store.state.api + "deleteComment", params)
  3703. .then((res) => {
  3704. this.$message({
  3705. message: "取消点赞成功",
  3706. type: "success",
  3707. });
  3708. this.selectSWorks();
  3709. this.selectStudent();
  3710. })
  3711. .catch((err) => {
  3712. console.error(err);
  3713. });
  3714. }
  3715. },
  3716. deleteComment(wid) {
  3717. this.$confirm("确定删除此评论吗?", "提示", {
  3718. confirmButtonText: "确定",
  3719. cancelButtonText: "取消",
  3720. type: "warning",
  3721. })
  3722. .then(() => {
  3723. let params = {
  3724. id: wid,
  3725. };
  3726. this.ajax
  3727. .get(this.$store.state.api + "deleteComment2", params)
  3728. .then((res) => {
  3729. this.$message({
  3730. message: "删除评论成功",
  3731. type: "success",
  3732. });
  3733. this.selectSWorks();
  3734. this.selectStudent();
  3735. })
  3736. .catch((err) => {
  3737. console.error(err);
  3738. });
  3739. })
  3740. .catch(() => { });
  3741. },
  3742. commentOther(w, toolIndex, wIndex, gindex, gid) {
  3743. this.commentIndexJson = {
  3744. toolIndex: toolIndex,
  3745. wIndex: wIndex,
  3746. gindex: gindex,
  3747. gid: gid
  3748. };
  3749. this.commentDetail = [];
  3750. this.commentDialogVisible = true;
  3751. this.commentDetail = w;
  3752. if (w.works && w.type == 1) {
  3753. this.pptImgUrl = "";
  3754. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3755. if (
  3756. a.indexOf(
  3757. w.works
  3758. .split(".")
  3759. [w.works.split(".").length - 1].toLocaleUpperCase()
  3760. ) != -1
  3761. ) {
  3762. this.pptImgUrl =
  3763. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  3764. this.showPDF = false;
  3765. } else if (
  3766. w.works
  3767. .split(".")
  3768. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3769. ) {
  3770. this.pptImgUrl = w.works;
  3771. this.showPDF = true;
  3772. }
  3773. } else if (w.works && w.type == 3) {
  3774. this.videoDetail = {};
  3775. this.playerOptions1.sources[0].src = w.works;
  3776. this.videoDetail = this.playerOptions1;
  3777. // this.videoVisible = true;
  3778. } else if (w.works && w.type == 4) {
  3779. this.eScore = JSON.parse(w.works);
  3780. this.rateJson =
  3781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3782. this.taskCount
  3783. ].toolChoose[toolIndex].rateJson;
  3784. } else if (w.works && w.type == 10) {
  3785. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  3786. } else if (w.works && w.type == 13) {
  3787. this.wordJson =
  3788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3789. this.taskCount
  3790. ].toolChoose[toolIndex].wordJson;
  3791. }
  3792. },
  3793. openScore(w) {
  3794. this.wScore = 0;
  3795. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  3796. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  3797. this.commentDetail = [];
  3798. this.dialogVisibleScore = true;
  3799. this.commentDetail = w;
  3800. if (w.works && w.type == 1) {
  3801. this.pptImgUrl = "";
  3802. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  3803. if (
  3804. a.indexOf(
  3805. w.works
  3806. .split(".")
  3807. [w.works.split(".").length - 1].toLocaleUpperCase()
  3808. ) != -1
  3809. ) {
  3810. this.pptImgUrl =
  3811. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(w.works);
  3812. this.showPDF = false;
  3813. } else if (
  3814. w.works
  3815. .split(".")
  3816. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  3817. ) {
  3818. this.pptImgUrl = w.works;
  3819. this.showPDF = true;
  3820. }
  3821. } else if (w.works && w.type == 3) {
  3822. this.videoDetail = {};
  3823. this.playerOptions1.sources[0].src = w.works;
  3824. this.videoDetail = this.playerOptions1;
  3825. }
  3826. },
  3827. addComment(wid, uid, t) {
  3828. if (this.commentText == "") {
  3829. this.$message.error("请输入评论");
  3830. return;
  3831. }
  3832. let params2 = [
  3833. {
  3834. wid: wid,
  3835. lid: uid,
  3836. t: t,
  3837. },
  3838. ];
  3839. this.ajax
  3840. .post(this.$store.state.api + "getComment", params2)
  3841. .then((res) => {
  3842. if (res.data[0].length > 0) {
  3843. this.$message.error("一个作业只能评论一条");
  3844. } else {
  3845. let params = [
  3846. {
  3847. wid: wid,
  3848. lid: uid,
  3849. t: t,
  3850. c: this.commentText,
  3851. },
  3852. ];
  3853. this.ajax
  3854. .post(this.$store.state.api + "insertComment", params)
  3855. .then((res) => {
  3856. this.$message({
  3857. message: "评论成功",
  3858. type: "success",
  3859. });
  3860. this.commentText = "";
  3861. this.selectSWorks();
  3862. this.selectStudent();
  3863. })
  3864. .catch((err) => {
  3865. this.$message.error("评论失败");
  3866. console.error(err);
  3867. });
  3868. }
  3869. })
  3870. .catch((err) => {
  3871. // this.$message.error("评论失败");
  3872. console.error(err);
  3873. });
  3874. },
  3875. scoreWork(wid) {
  3876. if (this.wScore == 0) {
  3877. this.$message.error("请评分");
  3878. return;
  3879. }
  3880. let params = [
  3881. {
  3882. wid: wid,
  3883. score: JSON.stringify({
  3884. wScore: this.wScore,
  3885. detail: this.scoreDetail,
  3886. }),
  3887. },
  3888. ];
  3889. this.ajax
  3890. .post(this.$store.state.api + "scoreWork", params)
  3891. .then((res) => {
  3892. this.$message({
  3893. message: "评分成功",
  3894. type: "success",
  3895. });
  3896. this.wScore = 0;
  3897. this.scoreDetail = "";
  3898. this.dialogVisibleScore = false;
  3899. this.selectSWorks();
  3900. this.selectStudent();
  3901. })
  3902. .catch((err) => {
  3903. this.$message.error("评分失败");
  3904. console.error(err);
  3905. });
  3906. },
  3907. openXz(w, i) {
  3908. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  3909. .taskJson[this.taskCount].toolChoose[i].selectJson
  3910. ? JSON.parse(
  3911. JSON.stringify(
  3912. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3913. this.taskCount
  3914. ].toolChoose[i].selectJson
  3915. )
  3916. )
  3917. : { url: "", select: [], answer: [] };
  3918. var a = w.works.split(",");
  3919. for (var k = 0; k < a.length; k++) {
  3920. a[k] = parseInt(a[k]);
  3921. }
  3922. this.selectAnswer = { answer: a, stu: w.sName };
  3923. this.isSelect = true;
  3924. this.dialogVisibleSelect = true;
  3925. },
  3926. openSen(w, i) {
  3927. this.sentenceList1 = JSON.parse(w.works);
  3928. this.sentenceList1.stuName = w.sName;
  3929. this.dialogVisibleSentence1 = true;
  3930. },
  3931. openPj(w, toolindex) {
  3932. this.isStar = true;
  3933. this.eScore = JSON.parse(w);
  3934. this.rateJson =
  3935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  3936. this.taskCount
  3937. ].toolChoose[toolindex].rateJson;
  3938. this.studentEvalDialogVisible = true;
  3939. },
  3940. deleteWorks(id) {
  3941. this.$confirm("确定删除此作业吗?", "提示", {
  3942. confirmButtonText: "确定",
  3943. cancelButtonText: "取消",
  3944. type: "warning",
  3945. })
  3946. .then(() => {
  3947. let params = [
  3948. {
  3949. id: id,
  3950. },
  3951. ];
  3952. this.ajax
  3953. .post(this.$store.state.api + "deleteCourseWork", params)
  3954. .then((res) => {
  3955. this.$message({
  3956. message: "删除成功",
  3957. type: "success",
  3958. });
  3959. this.selectStudent();
  3960. this.selectSWorks();
  3961. this.selectSLook();
  3962. })
  3963. .catch((err) => {
  3964. this.$message.error("网络异常");
  3965. console.error(err);
  3966. });
  3967. })
  3968. .catch(() => { });
  3969. },
  3970. selectSWorks(gindex) {
  3971. //教师查看全部作业
  3972. let params = {
  3973. cid: this.id,
  3974. s: this.courseType,
  3975. t: this.taskCount,
  3976. };
  3977. this.ajax
  3978. .get(this.$store.state.api + "selectSWorks", params)
  3979. .then((res) => {
  3980. var a = 1;
  3981. var b = res.data[0];
  3982. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  3983. var y = [
  3984. "AVI",
  3985. "NAVI",
  3986. "MPEG",
  3987. "ASF",
  3988. "MOV",
  3989. "WMV",
  3990. "3GP",
  3991. "RM",
  3992. "RMVB",
  3993. "FLV",
  3994. "F4V",
  3995. "H.264",
  3996. "H.265",
  3997. "REAL VIDEO",
  3998. "MKV",
  3999. "WebM",
  4000. "HDDVD",
  4001. "MP4",
  4002. "MPG",
  4003. "M4V",
  4004. "MGV",
  4005. "OGV",
  4006. "QTM",
  4007. "STR",
  4008. "AMC",
  4009. "DVX",
  4010. "EVO",
  4011. "DAT",
  4012. "OGG",
  4013. "OGM",
  4014. ];
  4015. var d = res.data[1];
  4016. var e = res.data[2];
  4017. var f = res.data[3];
  4018. let worksStudent = [];
  4019. let worksTeacher = [];
  4020. let worksStudent2 = [];
  4021. if (
  4022. !this.isCloseList ||
  4023. this.isCloseList.isClose == undefined
  4024. ) {
  4025. this.isCloseList = { isClose: 0 };
  4026. }
  4027. this.groupStudent = [];
  4028. this.groupStudentUid = [];
  4029. this.isWorksS = [];
  4030. this.checkJson = [];
  4031. for (var j = 0; j < b.length; j++) {
  4032. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  4033. continue;
  4034. }
  4035. var likesCount = 0;
  4036. var commentCount = 0;
  4037. var isLikes = false;
  4038. var commentJson = [];
  4039. var data = b[j];
  4040. for (var k = 0; k < d.length; k++) {
  4041. //点赞
  4042. if (d[k].workId == b[j].id) {
  4043. likesCount++;
  4044. if (d[k].likesId == this.userid) {
  4045. isLikes = true;
  4046. }
  4047. }
  4048. }
  4049. for (var l = 0; l < e.length; l++) {
  4050. //评论
  4051. if (e[l].workId == b[j].id) {
  4052. if (e[l].comment != "") {
  4053. commentCount++;
  4054. commentJson.push({
  4055. commentText: e[l].comment,
  4056. commentTime: e[l].commentTime,
  4057. commentPeople: e[l].commentPeople,
  4058. userid: e[l].userid,
  4059. wid: e[l].id,
  4060. });
  4061. }
  4062. }
  4063. }
  4064. if (b[j].type == 1 && (b[j].atool == 1 || b[j].atool == 3)) {
  4065. let _works = {
  4066. userid: b[j].userid,
  4067. ateacher: b[j].ateacher,
  4068. wid: b[j].id,
  4069. works: b[j].content,
  4070. sName: b[j].name,
  4071. type: 0,
  4072. time: b[j].time,
  4073. score: b[j].score,
  4074. img: b[j].img,
  4075. likesCount: likesCount,
  4076. commentCount: commentCount,
  4077. isLikes: isLikes,
  4078. commentJson: commentJson,
  4079. }
  4080. if (b[j].ttype == 1) {
  4081. worksTeacher.push(_works);
  4082. } else {
  4083. worksStudent2.push(_works);
  4084. }
  4085. worksStudent.push(_works);
  4086. this.isWorksS.push({ uid: b[j].userid, sName: b[j].name });
  4087. }
  4088. }
  4089. if (worksStudent && worksStudent.length) {
  4090. worksStudent = worksStudent.sort(function (a, b) {
  4091. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4092. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4093. var scoreA = parseFloat(jscoreA);
  4094. var scoreB = parseFloat(jscoreB);
  4095. if (scoreA == scoreB) {
  4096. return b.likesCount - a.likesCount;
  4097. }
  4098. return scoreB - scoreA;
  4099. });
  4100. }
  4101. if (worksStudent2 && worksStudent2.length) {
  4102. worksStudent2 = worksStudent2.sort(function (a, b) {
  4103. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4104. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4105. var scoreA = parseFloat(jscoreA);
  4106. var scoreB = parseFloat(jscoreB);
  4107. if (scoreA == scoreB) {
  4108. return b.likesCount - a.likesCount;
  4109. }
  4110. return scoreB - scoreA;
  4111. });
  4112. }
  4113. if (worksTeacher && worksTeacher.length) {
  4114. worksTeacher = worksTeacher.sort(function (a, b) {
  4115. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  4116. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  4117. var scoreA = parseFloat(jscoreA);
  4118. var scoreB = parseFloat(jscoreB);
  4119. if (scoreA == scoreB) {
  4120. return b.likesCount - a.likesCount;
  4121. }
  4122. return scoreB - scoreA;
  4123. });
  4124. }
  4125. this.worksStudent = worksStudent
  4126. this.worksTeacher = worksTeacher
  4127. this.worksStudent2 = worksStudent2
  4128. this.$forceUpdate()
  4129. this.selectWorksStudent();
  4130. })
  4131. .catch((err) => {
  4132. console.error(err);
  4133. });
  4134. },
  4135. pngToWhiteBg(file) {
  4136. const _file = file;
  4137. let read = new FileReader();
  4138. read.readAsDataURL(file); // 文件转base64
  4139. return new Promise((resolve, reject) => {
  4140. read.onload = (e) => {
  4141. let img = new Image();
  4142. img.src = e.target.result;
  4143. img.onload = async () => {
  4144. // 生成canvas
  4145. let canvas = document.createElement("canvas");
  4146. let context = canvas.getContext("2d");
  4147. // 绘制图片到canvas上
  4148. canvas.width = img.width;
  4149. canvas.height = img.height;
  4150. // 在canvas绘制前填充白色背景
  4151. context.fillStyle = "#fff";
  4152. context.fillRect(0, 0, canvas.width, canvas.height);
  4153. context.drawImage(img, 0, 0);
  4154. let base64 = canvas.toDataURL(file["type"], 1);
  4155. let newFile = this.dataUrlToFile(base64, _file);
  4156. resolve(newFile);
  4157. };
  4158. };
  4159. });
  4160. },
  4161. dataUrlToFile(dataurl, file) {
  4162. let arr = dataurl.split(","),
  4163. mime = arr[0].match(/:(.*?);/)[1],
  4164. bstr = atob(arr[1]),
  4165. n = bstr.length,
  4166. u8arr = new Uint8Array(n);
  4167. while (n--) {
  4168. u8arr[n] = bstr.charCodeAt(n);
  4169. }
  4170. // return new Blob([u8arr], { type: mime });
  4171. return new File([new Blob([u8arr], { type: mime })], file.name, {
  4172. type: mime,
  4173. });
  4174. },
  4175. async beforeUpload1(event, type, i) {
  4176. // this.$message.success('进入上传')
  4177. var file = "";
  4178. if (type == 5) {
  4179. file = event;
  4180. } else {
  4181. file = event.target.files[0];
  4182. }
  4183. var credentials = {
  4184. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4185. secretAccessKey: "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",
  4186. }; //秘钥形式的登录上传
  4187. window.AWS.config.update(credentials);
  4188. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4189. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4190. var _this = this;
  4191. _this.progress = 0;
  4192. _this.proVisible = true;
  4193. _this.isFinishSize = 0;
  4194. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4195. var b = [
  4196. "DOC",
  4197. "DOCX",
  4198. "DOCM",
  4199. "DOTM",
  4200. "DOTX",
  4201. "PPTX",
  4202. "PPSX",
  4203. "PPT",
  4204. "PPS",
  4205. "PPTM",
  4206. "POTM",
  4207. "PPAM",
  4208. "POTX",
  4209. "PPSM",
  4210. ];
  4211. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4212. var photoA = [
  4213. "BMP",
  4214. "GIF",
  4215. "PNG",
  4216. "JPEG",
  4217. "JPG",
  4218. "TIF",
  4219. "PCX",
  4220. "TGA",
  4221. "EXIF",
  4222. "FPX",
  4223. "SVG",
  4224. "APNG",
  4225. ];
  4226. // if (
  4227. // b.indexOf(
  4228. // file.name
  4229. // .split(".")
  4230. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4231. // ) != -1
  4232. // ) {
  4233. // if (file.size / 1024 / 1024 > 10) {
  4234. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  4235. // return;
  4236. // }
  4237. // } else if (
  4238. // excelA.indexOf(
  4239. // file.name
  4240. // .split(".")
  4241. // [file.name.split(".").length - 1].toLocaleUpperCase()
  4242. // ) != "-1"
  4243. // ) {
  4244. // if (file.size / 1024 / 1024 > 5) {
  4245. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  4246. // return;
  4247. // }
  4248. // }
  4249. if (
  4250. photoA.indexOf(
  4251. file.name
  4252. .split(".")
  4253. [file.name.split(".").length - 1].toLocaleUpperCase()
  4254. ) != -1 &&
  4255. type != 4
  4256. ) {
  4257. // const blob = await imageConversion.compress(file, 0.8)
  4258. file = await this.pngToWhiteBg(file);
  4259. const blob = await imageConversion.compressAccurately(file, 256);
  4260. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4261. file = new File([blob], file.name, { type: file.type });
  4262. }
  4263. if (file) {
  4264. var params = {
  4265. Key:
  4266. file.name.split(".")[0] +
  4267. new Date().getTime() +
  4268. "." +
  4269. file.name.split(".")[file.name.split(".").length - 1],
  4270. ContentType: file.type,
  4271. Body: file,
  4272. "Access-Control-Allow-Credentials": "*",
  4273. ACL: "public-read",
  4274. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4275. var options = {
  4276. // partSize: 2048 * 1024 * 1024,
  4277. partSize: 1024 * 1024 * 1024,
  4278. queueSize: 2,
  4279. leavePartsOnError: true,
  4280. };
  4281. bucket
  4282. .upload(params, options)
  4283. .on("httpUploadProgress", function (evt) {
  4284. //这里可以写进度条
  4285. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4286. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  4287. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4288. })
  4289. .send(function (err, data) {
  4290. _this.progress = 100;
  4291. _this.isFinishSize = _this.isAllSize;
  4292. setTimeout(() => {
  4293. _this.proVisible = false;
  4294. }, 1000);
  4295. if (err) {
  4296. var a = _this.$refs.upload1.uploadFiles;
  4297. a.splice(a.length - 1, a.length);
  4298. _this.$message.error("上传失败");
  4299. } else {
  4300. // _this.$message.success('上传成功')
  4301. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4302. var c = [
  4303. "AVI",
  4304. "NAVI",
  4305. "MPEG",
  4306. "ASF",
  4307. "MOV",
  4308. "WMV",
  4309. "3GP",
  4310. "RM",
  4311. "RMVB",
  4312. "FLV",
  4313. "F4V",
  4314. "H.264",
  4315. "H.265",
  4316. "REAL VIDEO",
  4317. "MKV",
  4318. "WebM",
  4319. "HDDVD",
  4320. "MP4",
  4321. "MPG",
  4322. "M4V",
  4323. "MGV",
  4324. "OGV",
  4325. "QTM",
  4326. "STR",
  4327. "AMC",
  4328. "DVX",
  4329. "EVO",
  4330. "DAT",
  4331. "OGG",
  4332. "OGM",
  4333. ];
  4334. if (type == 1) {
  4335. _this.studyJuri[0].cover.push({
  4336. name: file.name,
  4337. url: data.Location,
  4338. uid: file.uid,
  4339. });
  4340. if (
  4341. c.indexOf(
  4342. _this.studyJuri[0].cover[0].url
  4343. .split(".")
  4344. [
  4345. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4346. ].toLocaleUpperCase()
  4347. ) != -1
  4348. ) {
  4349. _this.fileType = 2;
  4350. } else if (
  4351. b.indexOf(
  4352. _this.studyJuri[0].cover[0].url
  4353. .split(".")
  4354. [
  4355. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4356. ].toLocaleUpperCase()
  4357. ) != -1
  4358. ) {
  4359. _this.fileType = 1;
  4360. } else if (photoA.indexOf(
  4361. _this.studyJuri[0].cover[0].url
  4362. .split(".")
  4363. [
  4364. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4365. ].toLocaleUpperCase()
  4366. ) != -1) {
  4367. _this.fileType = 0;
  4368. } else {
  4369. _this.fileType = 3;
  4370. }
  4371. _this.imgChange(null, null, type);
  4372. } else if (type == 2) {
  4373. _this.upToolImg = data.Location;
  4374. _this.imgChange(null, null, type);
  4375. _this.addCourseWorks(i);
  4376. } else if (type == 4) {
  4377. _this.addPz("3", data.Location);
  4378. } else if (type == 5) {
  4379. _this.addImgDrawImG(data.Location);
  4380. } else if (type == 6) {
  4381. var _ftype = 1;
  4382. if (
  4383. c.indexOf(
  4384. data.Location.split(".")[
  4385. data.Location.split(".").length - 1
  4386. ].toLocaleUpperCase()
  4387. ) != -1
  4388. ) {
  4389. _ftype = 5;
  4390. } else if (
  4391. b.indexOf(
  4392. data.Location.split(".")[
  4393. data.Location.split(".").length - 1
  4394. ].toLocaleUpperCase()
  4395. ) != -1
  4396. ) {
  4397. _ftype = 4;
  4398. } else {
  4399. _ftype = 1;
  4400. }
  4401. _this.plworkFile.push({
  4402. name: file.name,
  4403. url: data.Location,
  4404. uid: file.uid,
  4405. fileType: _ftype,
  4406. username:
  4407. _this.plworkFile.length + 1 > 10
  4408. ? _this.plworkFile.length + 1
  4409. : "0" + (_this.plworkFile.length + 1),
  4410. });
  4411. } else if (type == 7) {
  4412. _this.addCourseWorksGong(i, data.Location, 32);
  4413. } else if (type == 8) {
  4414. _this.addCourseWorksGong(i, data.Location, 57);
  4415. }
  4416. _this.imgChange(null, null, type);
  4417. console.log(data.Location);
  4418. // _this.$message.success('上传成功'+data.Location)
  4419. }
  4420. });
  4421. }
  4422. },
  4423. async beforeUpload3(event, type, i) {
  4424. // this.$message.success('进入上传')
  4425. let file = "";
  4426. let cfindex2 = 0;
  4427. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  4428. file = event.target.files[cfindex];
  4429. var credentials = {
  4430. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4431. secretAccessKey: "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",
  4432. }; //秘钥形式的登录上传
  4433. window.AWS.config.update(credentials);
  4434. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4435. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4436. var _this = this;
  4437. // _this.progress = 0;
  4438. _this.proVisible2 = true;
  4439. var b = [
  4440. "DOC",
  4441. "DOCX",
  4442. "DOCM",
  4443. "DOTM",
  4444. "DOTX",
  4445. "PPTX",
  4446. "PPSX",
  4447. "PPT",
  4448. "PPS",
  4449. "PPTM",
  4450. "POTM",
  4451. "PPAM",
  4452. "POTX",
  4453. "PPSM",
  4454. ];
  4455. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  4456. var photoA = [
  4457. "BMP",
  4458. "GIF",
  4459. "PNG",
  4460. "JPEG",
  4461. "JPG",
  4462. "TIF",
  4463. "PCX",
  4464. "TGA",
  4465. "EXIF",
  4466. "FPX",
  4467. "SVG",
  4468. "APNG",
  4469. ];
  4470. if (
  4471. photoA.indexOf(
  4472. file.name
  4473. .split(".")
  4474. [file.name.split(".").length - 1].toLocaleUpperCase()
  4475. ) != -1 &&
  4476. type != 4
  4477. ) {
  4478. // const blob = await imageConversion.compress(file, 0.8)
  4479. file = await this.pngToWhiteBg(file);
  4480. const blob = await imageConversion.compressAccurately(file, 256);
  4481. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  4482. file = new File([blob], file.name, { type: file.type });
  4483. }
  4484. if (file) {
  4485. var params = {
  4486. Key:
  4487. file.name.split(".")[0] +
  4488. new Date().getTime() +
  4489. "." +
  4490. file.name.split(".")[file.name.split(".").length - 1],
  4491. ContentType: file.type,
  4492. Body: file,
  4493. "Access-Control-Allow-Credentials": "*",
  4494. ACL: "public-read",
  4495. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4496. var options = {
  4497. // partSize: 2048 * 1024 * 1024,
  4498. partSize: 1024 * 1024 * 1024,
  4499. queueSize: 2,
  4500. leavePartsOnError: true,
  4501. };
  4502. bucket
  4503. .upload(params, options)
  4504. .on("httpUploadProgress", function (evt) {
  4505. //这里可以写进度条
  4506. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4507. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4508. })
  4509. .send(function (err, data) {
  4510. // _this.progress = 100;
  4511. cfindex2++;
  4512. setTimeout(() => {
  4513. if (
  4514. cfindex2 == event.target.files.length - 1 ||
  4515. cfindex2 > event.target.files.length - 1
  4516. ) {
  4517. _this.proVisible2 = false;
  4518. }
  4519. }, 1000);
  4520. if (err) {
  4521. var a = _this.$refs.upload1.uploadFiles;
  4522. a.splice(a.length - 1, a.length);
  4523. _this.$message.error("上传失败");
  4524. } else {
  4525. // _this.$message.success('上传成功')
  4526. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  4527. var c = [
  4528. "AVI",
  4529. "NAVI",
  4530. "MPEG",
  4531. "ASF",
  4532. "MOV",
  4533. "WMV",
  4534. "3GP",
  4535. "RM",
  4536. "RMVB",
  4537. "FLV",
  4538. "F4V",
  4539. "H.264",
  4540. "H.265",
  4541. "REAL VIDEO",
  4542. "MKV",
  4543. "WebM",
  4544. "HDDVD",
  4545. "MP4",
  4546. "MPG",
  4547. "M4V",
  4548. "MGV",
  4549. "OGV",
  4550. "QTM",
  4551. "STR",
  4552. "AMC",
  4553. "DVX",
  4554. "EVO",
  4555. "DAT",
  4556. "OGG",
  4557. "OGM",
  4558. ];
  4559. if (type == 1) {
  4560. _this.studyJuri[0].cover.push({
  4561. name: file.name,
  4562. url: data.Location,
  4563. uid: file.uid,
  4564. });
  4565. if (
  4566. c.indexOf(
  4567. _this.studyJuri[0].cover[0].url
  4568. .split(".")
  4569. [
  4570. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4571. ].toLocaleUpperCase()
  4572. ) != -1
  4573. ) {
  4574. _this.fileType = 2;
  4575. } else if (
  4576. b.indexOf(
  4577. _this.studyJuri[0].cover[0].url
  4578. .split(".")
  4579. [
  4580. _this.studyJuri[0].cover[0].url.split(".").length - 1
  4581. ].toLocaleUpperCase()
  4582. ) != -1
  4583. ) {
  4584. _this.fileType = 1;
  4585. } else {
  4586. _this.fileType = 0;
  4587. }
  4588. _this.imgChange(null, null, type);
  4589. } else if (type == 2) {
  4590. _this.upToolImg = data.Location;
  4591. _this.imgChange(null, null, type);
  4592. _this.addCourseWorks(i);
  4593. } else if (type == 4) {
  4594. _this.addPz("3", data.Location);
  4595. } else if (type == 5) {
  4596. _this.addImgDrawImG(data.Location);
  4597. } else if (type == 6) {
  4598. var _ftype = 1;
  4599. if (
  4600. c.indexOf(
  4601. data.Location.split(".")[
  4602. data.Location.split(".").length - 1
  4603. ].toLocaleUpperCase()
  4604. ) != -1
  4605. ) {
  4606. _ftype = 5;
  4607. } else if (
  4608. b.indexOf(
  4609. data.Location.split(".")[
  4610. data.Location.split(".").length - 1
  4611. ].toLocaleUpperCase()
  4612. ) != -1
  4613. ) {
  4614. _ftype = 4;
  4615. } else {
  4616. _ftype = 1;
  4617. }
  4618. _this.plworkFile.push({
  4619. name: file.name,
  4620. url: data.Location,
  4621. uid: file.uid,
  4622. fileType: _ftype,
  4623. username:
  4624. _this.plworkFile.length + 1 > 9
  4625. ? _this.plworkFile.length + 1
  4626. : "0" + (_this.plworkFile.length + 1),
  4627. });
  4628. }
  4629. _this.imgChange(null, null, type);
  4630. console.log(data.Location);
  4631. // _this.$message.success('上传成功'+data.Location)
  4632. }
  4633. });
  4634. }
  4635. }
  4636. },
  4637. beforeUpload2(event, type) {
  4638. var file = event.target.files[0];
  4639. var credentials = {
  4640. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4641. secretAccessKey: "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",
  4642. }; //秘钥形式的登录上传
  4643. window.AWS.config.update(credentials);
  4644. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4645. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4646. var _this = this;
  4647. _this.progress = 0;
  4648. _this.proVisible = true;
  4649. if (file) {
  4650. var params = {
  4651. Key:
  4652. file.name.split(".")[0] +
  4653. new Date().getTime() +
  4654. "." +
  4655. file.name.split(".")[file.name.split(".").length - 1],
  4656. ContentType: file.type,
  4657. Body: file,
  4658. "Access-Control-Allow-Credentials": "*",
  4659. ACL: "public-read",
  4660. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4661. var options = {
  4662. partSize: 2048 * 1024 * 1024,
  4663. queueSize: 2,
  4664. leavePartsOnError: true,
  4665. };
  4666. bucket
  4667. .upload(params, options)
  4668. .on("httpUploadProgress", function (evt) {
  4669. //这里可以写进度条
  4670. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4671. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  4672. })
  4673. .send(function (err, data) {
  4674. _this.progress = 100;
  4675. setTimeout(() => {
  4676. _this.proVisible = false;
  4677. }, 1000);
  4678. if (err) {
  4679. var a = _this.$refs.upload1.uploadFiles;
  4680. a.splice(a.length - 1, a.length);
  4681. _this.$message.error("上传失败");
  4682. } else {
  4683. if (type == 2) {
  4684. _this.studyJuri[0].upVedio.push({
  4685. name: file.name,
  4686. url: data.Location,
  4687. uid: file.uid,
  4688. });
  4689. _this.imgChange(null, null, type);
  4690. } else if (type == 3) {
  4691. _this.studyJuri[0].upFile.push({
  4692. name: file.name,
  4693. url: data.Location,
  4694. uid: file.uid,
  4695. });
  4696. _this.imgChange(null, null, type);
  4697. }
  4698. console.log(data.Location);
  4699. }
  4700. });
  4701. }
  4702. },
  4703. allScrell() {
  4704. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  4705. },
  4706. nextToolindex(type) {
  4707. this.$forceUpdate();
  4708. },
  4709. checkBz(index) {
  4710. this.$forceUpdate();
  4711. },
  4712. nextOrpreSteps(t) {
  4713. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4714. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4715. return;
  4716. }
  4717. var b = this.chapInfoList.length - 1;
  4718. if (t == 0) {
  4719. if (this.courseType == 0) {
  4720. if (this.taskCount == 0) {
  4721. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  4722. if (this.IsLookOpen) {
  4723. if (
  4724. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  4725. ) {
  4726. if (
  4727. this.courseDetail.userid != this.userid &&
  4728. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4729. ) {
  4730. this.$message.error("任务未解锁");
  4731. } else {
  4732. this.$message.error("上一任务未解锁");
  4733. }
  4734. return;
  4735. }
  4736. }
  4737. this.navList[this.courseType].isOpen = false;
  4738. this.courseType = b;
  4739. this.taskCount =
  4740. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4741. .length - 1;
  4742. this.navList[this.courseType].isOpen = true;
  4743. } else {
  4744. this.taskCount--;
  4745. }
  4746. } else {
  4747. if (this.taskCount == 0) {
  4748. this.navList[this.courseType].isOpen = false;
  4749. this.courseType--;
  4750. this.taskCount =
  4751. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  4752. .length - 1;
  4753. this.navList[this.courseType].isOpen = true;
  4754. } else {
  4755. this.taskCount--;
  4756. }
  4757. }
  4758. } else {
  4759. if (this.courseType == b) {
  4760. if (
  4761. this.taskCount ==
  4762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4763. 1
  4764. ) {
  4765. this.navList[this.courseType].isOpen = false;
  4766. this.courseType = 0;
  4767. this.taskCount = 0;
  4768. this.navList[this.courseType].isOpen = true;
  4769. } else {
  4770. var bbb = parseInt(this.taskCount) + 1;
  4771. if (
  4772. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4773. .isLook &&
  4774. this.courseDetail.userid != this.userid &&
  4775. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4776. this.IsLookOpen
  4777. ) {
  4778. this.$message.error("任务未解锁");
  4779. return;
  4780. }
  4781. this.taskCount++;
  4782. if (this.IsLookOpen) {
  4783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4784. this.taskCount
  4785. ].isLook = true;
  4786. this.addCourseState(3);
  4787. }
  4788. }
  4789. } else {
  4790. if (
  4791. this.taskCount ==
  4792. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  4793. 1
  4794. ) {
  4795. var bbb = parseInt(this.courseType) + 1;
  4796. if (
  4797. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  4798. this.courseDetail.userid != this.userid &&
  4799. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4800. this.IsLookOpen
  4801. ) {
  4802. this.$message.error("任务未解锁");
  4803. return;
  4804. }
  4805. this.navList[this.courseType].isOpen = false;
  4806. this.courseType++;
  4807. this.taskCount = 0;
  4808. this.navList[this.courseType].isOpen = true;
  4809. } else {
  4810. var bbb = parseInt(this.taskCount) + 1;
  4811. if (
  4812. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  4813. .isLook &&
  4814. this.courseDetail.userid != this.userid &&
  4815. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  4816. this.IsLookOpen
  4817. ) {
  4818. this.$message.error("任务未解锁");
  4819. return;
  4820. }
  4821. this.taskCount++;
  4822. }
  4823. if (this.IsLookOpen) {
  4824. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4825. this.taskCount
  4826. ].isLook = true;
  4827. this.addCourseState(3);
  4828. }
  4829. }
  4830. }
  4831. document.scrollingElement.scrollTop = 0;
  4832. this.showType = 0;
  4833. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  4834. this.toolIndex = null
  4835. this.isNoHomeWork = false;
  4836. (this.studyJuri = [
  4837. {
  4838. content: "",
  4839. cover: [],
  4840. upVedio: [],
  4841. upFile: [],
  4842. },
  4843. ]),
  4844. (this.radio = []);
  4845. this.isClickNav = "";
  4846. this.selectPz();
  4847. this.getHomeWork();
  4848. this.getCourseDetail();
  4849. this.$forceUpdate();
  4850. },
  4851. openTask(s, n, i) {
  4852. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4853. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4854. return;
  4855. }
  4856. if (this.IsLookOpen) {
  4857. if (
  4858. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  4859. this.courseDetail.userid != this.userid &&
  4860. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  4861. ) {
  4862. this.$message.error("任务未解锁");
  4863. return;
  4864. }
  4865. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  4866. if (
  4867. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  4868. .isLook
  4869. ) {
  4870. this.$message.error("上一任务未解锁");
  4871. return;
  4872. }
  4873. } else if (s > this.courseType) {
  4874. if (n > 0) {
  4875. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  4876. this.$message.error("上一任务未解锁");
  4877. return;
  4878. }
  4879. } else {
  4880. if (
  4881. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  4882. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  4883. ].isLook
  4884. ) {
  4885. this.$message.error("上一任务未解锁");
  4886. return;
  4887. }
  4888. }
  4889. }
  4890. }
  4891. this.courseType = s;
  4892. this.navId = i;
  4893. this.taskCount = n;
  4894. if (this.IsLookOpen) {
  4895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  4896. this.taskCount
  4897. ].isLook = true;
  4898. this.addCourseState(3);
  4899. }
  4900. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  4901. this.isCloseList[ci].isClose = 0;
  4902. }
  4903. this.showType = 0;
  4904. this.isNoHomeWork = false;
  4905. (this.studyJuri = [
  4906. {
  4907. content: "",
  4908. cover: [],
  4909. upVedio: [],
  4910. upFile: [],
  4911. },
  4912. ]),
  4913. (this.radio = []);
  4914. document.scrollingElement.scrollTop = 0;
  4915. this.toolIndex = null
  4916. // setTimeout(() => {
  4917. // let a = document.getElementById(i);
  4918. // if (a.offsetTop - 110 == 0) {
  4919. // window.scrollTo(0, 0);
  4920. // } else {
  4921. // window.scrollTo(0, a.offsetTop);
  4922. // }
  4923. // }, 0);
  4924. this.selectPz();
  4925. this.getHomeWork();
  4926. this.getCourseDetail();
  4927. },
  4928. get(i) {
  4929. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  4930. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  4931. return;
  4932. }
  4933. this.navList[i].isOpen = !this.navList[i].isOpen;
  4934. },
  4935. addQuestion() {
  4936. this.answerList.push({
  4937. answerTitle: this.answerQ,
  4938. answer: this.questionAnswer,
  4939. });
  4940. let params = [
  4941. {
  4942. uid: this.userid,
  4943. cid: this.id,
  4944. stage: this.courseType,
  4945. task: this.taskCount,
  4946. tool: this.toolindex,
  4947. content: JSON.stringify(this.answerList),
  4948. type: 3,
  4949. },
  4950. ];
  4951. this.ajax
  4952. .post(this.$store.state.api + "addCourseWorks", params)
  4953. .then((res) => {
  4954. this.$message({
  4955. message: "提交成功",
  4956. type: "success",
  4957. });
  4958. this.answerList = [];
  4959. this.questionAnswer = ""
  4960. this.answerDialogVisible = false;
  4961. this.selectStudent();
  4962. this.selectSWorks();
  4963. this.selectSLook();
  4964. })
  4965. .catch((err) => {
  4966. this.$message.error("提交失败");
  4967. console.error(err);
  4968. });
  4969. },
  4970. addQuestionTeacher() {
  4971. this.answerList.push({
  4972. answerTitle: this.answerQ,
  4973. answer: this.questionAnswer,
  4974. });
  4975. let params = [
  4976. {
  4977. uid: this.sStudent.userid,
  4978. cid: this.id,
  4979. stage: this.courseType,
  4980. task: this.taskCount,
  4981. tool: this.toolindex,
  4982. content: JSON.stringify(this.answerList),
  4983. type: 3,
  4984. ateacher: this.userid,
  4985. },
  4986. ];
  4987. this.ajax
  4988. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  4989. .then((res) => {
  4990. this.$message({
  4991. message: "提交成功",
  4992. type: "success",
  4993. });
  4994. this.answerList = [];
  4995. this.questionAnswer = ""
  4996. this.answerDialogVisibleTeacher = false;
  4997. this.selectStudent();
  4998. this.selectSWorks();
  4999. this.selectSLook();
  5000. })
  5001. .catch((err) => {
  5002. this.$message.error("提交失败");
  5003. console.error(err);
  5004. });
  5005. },
  5006. refreshCourse() {
  5007. // window.location.reload();
  5008. this.navList = [];
  5009. this.getCourseDetail(1)
  5010. },
  5011. setPz() {
  5012. if (this.ispzType == 4) {
  5013. this.ispzType = 0
  5014. this.pzDialog = false
  5015. return;
  5016. }
  5017. this.ispzType = 4
  5018. this.pzDialog = true
  5019. this.selectPz();
  5020. },
  5021. getCourseDetail(type, gindex) {
  5022. let loading;
  5023. if (type != 2) {
  5024. loading = this.$loading.service({
  5025. background: "rgba(255, 255, 255, 0.7)",
  5026. target: document.querySelector(".student_table"),
  5027. });
  5028. }
  5029. let params = {
  5030. courseId: this.id,
  5031. };
  5032. this.ajax
  5033. .get(this.$store.state.api + "selectCourseDetail3", params)
  5034. .then((res) => {
  5035. if (type != 2) {
  5036. loading.close();
  5037. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  5038. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  5039. }
  5040. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5041. .chapterInfo[0].taskJson;
  5042. var b = [
  5043. "AVI",
  5044. "NAVI",
  5045. "MPEG",
  5046. "ASF",
  5047. "MOV",
  5048. "WMV",
  5049. "3GP",
  5050. "RM",
  5051. "RMVB",
  5052. "FLV",
  5053. "F4V",
  5054. "H.264",
  5055. "H.265",
  5056. "REAL VIDEO",
  5057. "MKV",
  5058. "WebM",
  5059. "HDDVD",
  5060. "MP4",
  5061. "MPG",
  5062. "M4V",
  5063. "MGV",
  5064. "OGV",
  5065. "QTM",
  5066. "STR",
  5067. "AMC",
  5068. "DVX",
  5069. "EVO",
  5070. "DAT",
  5071. "OGG",
  5072. "OGM",
  5073. "MP3",
  5074. ];
  5075. for (var i = 0; i < a.length; i++) {
  5076. var c = a[i].chapterData;
  5077. this.vedio[i] = [];
  5078. this.textList[i] = [];
  5079. this.lineList[i] = [];
  5080. this.chapToolList[i] = [];
  5081. this.file[i] = [];
  5082. this.fileC[i] = [];
  5083. for (var j = 0; j < c.length; j++) {
  5084. if (c[j].type == 7) {
  5085. this.chapToolList[i].push(c[j]);
  5086. } else if (c[j].type == 8) {
  5087. this.lineList[i].push(c[j]);
  5088. } else if (c[j].type == 6) {
  5089. this.textList[i].push(c[j]);
  5090. } else if (c[j].type == 12) {
  5091. this.fileC[i].push(c[j]);
  5092. } else {
  5093. if (
  5094. b.indexOf(
  5095. c[j].url
  5096. .split(".")
  5097. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5098. ) != -1
  5099. ) {
  5100. this.vedio[i].push(c[j]);
  5101. } else {
  5102. this.file[i].push(c[j]);
  5103. }
  5104. }
  5105. }
  5106. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5107. d.sources[0].src =
  5108. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5109. this.playerO[i] = d;
  5110. }
  5111. this.courseDetail = res.data[0][0];
  5112. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  5113. console.log(this.tcid);
  5114. this.evalua = res.data[0][0].evaId;
  5115. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  5116. this.courseType
  5117. ];
  5118. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  5119. if (this.tcid && res.data[1].length) {
  5120. let _inviteA = []
  5121. for (var ik = 0; ik < res.data[1].length; ik++) {
  5122. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  5123. }
  5124. for (var ik = 0; ik < _inviteA.length; ik++) {
  5125. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  5126. this.inviteCode = _inviteA[ik].ic
  5127. break;
  5128. }
  5129. }
  5130. }
  5131. for (var l = 0; l < this.chapInfoList.length; l++) {
  5132. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5133. for (var m = 0; m < w.length; m++) {
  5134. w[m].id = l + "-" + m;
  5135. }
  5136. }
  5137. if (
  5138. !this.vedio[this.taskCount][0] ||
  5139. this.vedio[this.taskCount][0].url == ""
  5140. ) {
  5141. if (
  5142. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5143. this.taskCount
  5144. ].chapterData.length > 0
  5145. ) {
  5146. // if (
  5147. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5148. // this.taskCount
  5149. // ].chapterData[0].type != 8
  5150. // ) {
  5151. let _url =
  5152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5153. this.taskCount
  5154. ].chapterData[0].url;
  5155. if (
  5156. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5157. this.taskCount
  5158. ].chapterData[0].type == 8
  5159. ) {
  5160. this.showType = 2;
  5161. if (
  5162. _url.indexOf("https://") == -1 &&
  5163. _url.indexOf("http://") == -1
  5164. ) {
  5165. _url = "https://" + _url;
  5166. }
  5167. this.pptImgUrl1 = _url;
  5168. this.isClickNav = "line0";
  5169. } else if (
  5170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5171. this.taskCount
  5172. ].chapterData[0].type == 3
  5173. ) {
  5174. if (
  5175. _url
  5176. .split(".")
  5177. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5178. ) {
  5179. this.showType = 3;
  5180. this.pptImgUrl1 = _url;
  5181. this.isClickNav = "word0";
  5182. } else if (
  5183. this.isAssetTypeAnImage(
  5184. _url
  5185. .split(".")
  5186. [_url.split(".").length - 1].toLocaleLowerCase()
  5187. )
  5188. ) {
  5189. this.showType = 4;
  5190. this.pptImgUrl1 = _url;
  5191. this.isClickNav = "word0";
  5192. } else {
  5193. this.showType = 2;
  5194. this.pptImgUrl1 =
  5195. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5196. encodeURIComponent(_url);
  5197. this.isClickNav = "word0";
  5198. }
  5199. } else if (
  5200. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5201. this.taskCount
  5202. ].chapterData[0].type == 6
  5203. ) {
  5204. this.showType = 1;
  5205. this.text = this.textList[this.taskCount][0];
  5206. this.isClickNav = "text0";
  5207. }
  5208. }
  5209. } else {
  5210. this.isClickNav = "video0";
  5211. }
  5212. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  5213. this.toolIndex = 0
  5214. // this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  5215. }
  5216. this.toolType = 0
  5217. } else {
  5218. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  5219. .chapterInfo[0].taskJson;
  5220. var b = [
  5221. "AVI",
  5222. "NAVI",
  5223. "MPEG",
  5224. "ASF",
  5225. "MOV",
  5226. "WMV",
  5227. "3GP",
  5228. "RM",
  5229. "RMVB",
  5230. "FLV",
  5231. "F4V",
  5232. "H.264",
  5233. "H.265",
  5234. "REAL VIDEO",
  5235. "MKV",
  5236. "WebM",
  5237. "HDDVD",
  5238. "MP4",
  5239. "MPG",
  5240. "M4V",
  5241. "MGV",
  5242. "OGV",
  5243. "QTM",
  5244. "STR",
  5245. "AMC",
  5246. "DVX",
  5247. "EVO",
  5248. "DAT",
  5249. "OGG",
  5250. "OGM",
  5251. "MP3",
  5252. ];
  5253. for (var i = 0; i < a.length; i++) {
  5254. var c = a[i].chapterData;
  5255. this.vedio[i] = [];
  5256. this.textList[i] = [];
  5257. this.lineList[i] = [];
  5258. this.chapToolList[i] = [];
  5259. this.file[i] = [];
  5260. this.fileC[i] = [];
  5261. for (var j = 0; j < c.length; j++) {
  5262. if (c[j].type == 7) {
  5263. this.chapToolList[i].push(c[j]);
  5264. } else if (c[j].type == 8) {
  5265. this.lineList[i].push(c[j]);
  5266. } else if (c[j].type == 6) {
  5267. this.textList[i].push(c[j]);
  5268. } else if (c[j].type == 12) {
  5269. this.fileC[i].push(c[j]);
  5270. } else {
  5271. if (
  5272. b.indexOf(
  5273. c[j].url
  5274. .split(".")
  5275. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  5276. ) != -1
  5277. ) {
  5278. this.vedio[i].push(c[j]);
  5279. } else {
  5280. this.file[i].push(c[j]);
  5281. }
  5282. }
  5283. }
  5284. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5285. d.sources[0].src =
  5286. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  5287. this.playerO[i] = d;
  5288. }
  5289. if (
  5290. !this.vedio[this.taskCount][0] ||
  5291. this.vedio[this.taskCount][0].url == ""
  5292. ) {
  5293. if (
  5294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5295. this.taskCount
  5296. ].chapterData.length > 0
  5297. ) {
  5298. // if (
  5299. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5300. // this.taskCount
  5301. // ].chapterData[0].type != 8
  5302. // ) {
  5303. let _url =
  5304. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5305. this.taskCount
  5306. ].chapterData[0].url;
  5307. if (
  5308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5309. this.taskCount
  5310. ].chapterData[0].type == 8
  5311. ) {
  5312. this.showType = 2;
  5313. if (
  5314. _url.indexOf("https://") == -1 &&
  5315. _url.indexOf("http://") == -1
  5316. ) {
  5317. _url = "https://" + _url;
  5318. }
  5319. this.pptImgUrl1 = _url;
  5320. this.isClickNav = "line0";
  5321. } else if (
  5322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5323. this.taskCount
  5324. ].chapterData[0].type == 3
  5325. ) {
  5326. if (
  5327. _url
  5328. .split(".")
  5329. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5330. ) {
  5331. this.showType = 3;
  5332. this.pptImgUrl1 = _url;
  5333. this.isClickNav = "word0";
  5334. } else if (
  5335. this.isAssetTypeAnImage(
  5336. _url
  5337. .split(".")
  5338. [_url.split(".").length - 1].toLocaleLowerCase()
  5339. )
  5340. ) {
  5341. this.showType = 4;
  5342. this.pptImgUrl1 = _url;
  5343. this.isClickNav = "word0";
  5344. } else {
  5345. this.showType = 2;
  5346. this.pptImgUrl1 =
  5347. "https://view.officeapps.live.com/op/view.aspx?src=" +
  5348. encodeURIComponent(_url);
  5349. this.isClickNav = "word0";
  5350. }
  5351. } else if (
  5352. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  5353. this.taskCount
  5354. ].chapterData[0].type == 6
  5355. ) {
  5356. this.showType = 1;
  5357. this.text = this.textList[this.taskCount][0];
  5358. this.isClickNav = "text0";
  5359. }
  5360. }
  5361. } else {
  5362. this.isClickNav = "video0";
  5363. }
  5364. this.toolType = 0
  5365. this.$forceUpdate();
  5366. }
  5367. this.$nextTick(() => {
  5368. setTimeout(() => {
  5369. this.checkEva();
  5370. }, 1000);
  5371. });
  5372. let _this = this;
  5373. if (_this.timer) {
  5374. clearInterval(_this.timer);
  5375. _this.timer = null;
  5376. }
  5377. _this.selectSWorks(gindex);
  5378. _this.selectStudent();
  5379. _this.selectSLook();
  5380. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  5381. _this.setCTask();
  5382. }
  5383. if (_this.dialogVisibleGroup) {
  5384. _this.groupJson =
  5385. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  5386. _this.taskCount
  5387. ].toolChoose[_this.toolindex].groupJson;
  5388. }
  5389. _this.timer = setInterval(function () {
  5390. _this.selectSWorks(gindex);
  5391. if (_this.tType == 4 || _this.ispzType == 4) {
  5392. _this.selectPz();
  5393. }
  5394. }, 5000);
  5395. })
  5396. .catch((err) => {
  5397. loading.close();
  5398. console.error(err);
  5399. });
  5400. },
  5401. getCourseGroup(gindex) {
  5402. let params = {
  5403. cid: this.id,
  5404. classid: this.tcid ? this.tcid : '1',
  5405. };
  5406. this.ajax
  5407. .get(this.$store.state.api + "getCourseGroup", params)
  5408. .then((res) => {
  5409. if (res.data && res.data[0].length) {
  5410. if (!this.isGroup) {
  5411. let courseGroup = JSON.parse(res.data[0][0].group)
  5412. courseGroup.group = courseGroup.group.filter(el => {
  5413. el.works = []
  5414. return el
  5415. });
  5416. this.courseGroup = courseGroup
  5417. let groupPerson = res.data[1]
  5418. let group = JSON.parse(res.data[0][0].group).group
  5419. let courseGroupStudent = {}
  5420. let courseGroupStudentUid = {}
  5421. for (var i = 0; i < group.length; i++) {
  5422. courseGroupStudent[group[i].id] = []
  5423. courseGroupStudentUid[group[i].id] = []
  5424. for (var j = 0; j < groupPerson.length; j++) {
  5425. if (groupPerson[j].groupCid == group[i].id) {
  5426. courseGroupStudent[group[i].id].push(groupPerson[j])
  5427. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  5428. }
  5429. }
  5430. }
  5431. this.courseGroupStudent = courseGroupStudent
  5432. this.courseGroupStudentUid = courseGroupStudentUid
  5433. }
  5434. this.isGroup = true
  5435. this.selectSWorks(gindex);
  5436. } else {
  5437. this.selectSWorks(gindex);
  5438. this.isGroup = false
  5439. }
  5440. })
  5441. .catch((err) => {
  5442. // this.$message.error("网络不佳");
  5443. console.error(err);
  5444. });
  5445. },
  5446. setOperationTime() {
  5447. let _this = this
  5448. if (_this.opertimer) {
  5449. clearInterval(_this.opertimer);
  5450. _this.opertimer = null;
  5451. }
  5452. _this.opertimer = setInterval(() => {
  5453. _this.setoTime('600')
  5454. }, 600000);
  5455. },
  5456. setoTime(time) {
  5457. let params = [
  5458. {
  5459. uid: this.userid,
  5460. cid: this.id,
  5461. type: '2',
  5462. time: time,
  5463. },
  5464. ];
  5465. this.ajax
  5466. .post(this.$store.state.api + "addOperationTimeT2", params)
  5467. .then((res) => {
  5468. })
  5469. .catch((err) => {
  5470. console.error(err);
  5471. });
  5472. },
  5473. addPz(type, content) {
  5474. if (type == "1" && this.pzConText == "") {
  5475. this.$message.error("批注不能为空!");
  5476. return;
  5477. }
  5478. let params = [
  5479. {
  5480. cid: this.id,
  5481. uid: this.userid,
  5482. s: this.courseType,
  5483. t: this.taskCount,
  5484. c: type == "1" ? this.pzConText : content,
  5485. type: type,
  5486. },
  5487. ];
  5488. this.ajax
  5489. .post(this.$store.state.api + "addPz2", params)
  5490. .then((res) => {
  5491. this.$message({
  5492. message: "添加成功",
  5493. type: "success",
  5494. });
  5495. this.pzConText = "";
  5496. this.addPzDialog = false;
  5497. this.selectPz();
  5498. })
  5499. .catch((err) => {
  5500. this.$message.error("添加失败");
  5501. console.error(err);
  5502. });
  5503. },
  5504. deletePz(id) {
  5505. this.$confirm("确定删除此批注吗?", "提示", {
  5506. confirmButtonText: "确定",
  5507. cancelButtonText: "取消",
  5508. type: "warning",
  5509. })
  5510. .then(() => {
  5511. let params = [
  5512. {
  5513. id: id,
  5514. },
  5515. ];
  5516. this.ajax
  5517. .post(this.$store.state.api + "deletePz", params)
  5518. .then((res) => {
  5519. this.$message({
  5520. message: "删除成功",
  5521. type: "success",
  5522. });
  5523. this.selectPz();
  5524. })
  5525. .catch((err) => {
  5526. this.$message.error("网络异常");
  5527. console.error(err);
  5528. });
  5529. })
  5530. .catch(() => { });
  5531. },
  5532. selectPz() {
  5533. let params = {
  5534. cid: this.id,
  5535. s: this.courseType,
  5536. t: this.taskCount,
  5537. };
  5538. this.ajax
  5539. .get(this.$store.state.api + "selectPzList", params)
  5540. .then((res) => {
  5541. this.pzList = res.data[0];
  5542. })
  5543. .catch((err) => {
  5544. console.error(err);
  5545. });
  5546. },
  5547. updateSLook() {
  5548. let params = {
  5549. sopen: this.sIsOpen == false ? 1 : 2,
  5550. cid: this.id,
  5551. };
  5552. this.ajax
  5553. .get(this.$store.state.api + "updateCourseSLook", params)
  5554. .then((res) => {
  5555. if (this.sIsOpen == true) {
  5556. this.$message({
  5557. message: "权限设置成功",
  5558. type: "success",
  5559. });
  5560. } else {
  5561. this.$message({
  5562. message: "权限关闭成功",
  5563. type: "success",
  5564. });
  5565. }
  5566. })
  5567. .catch((err) => {
  5568. console.error(err);
  5569. });
  5570. },
  5571. updateFollow() {
  5572. let params = [
  5573. {
  5574. sopen: this.IsFollow == false ? 1 : 2,
  5575. cid: this.id,
  5576. },
  5577. ];
  5578. this.ajax
  5579. .post(this.$store.state.api + "updateCourseFollow", params)
  5580. .then((res) => {
  5581. if (this.IsFollow == true) {
  5582. this.$message({
  5583. message: "开启成功",
  5584. type: "success",
  5585. });
  5586. } else {
  5587. this.$message({
  5588. message: "关闭成功",
  5589. type: "success",
  5590. });
  5591. }
  5592. this.setCTask();
  5593. })
  5594. .catch((err) => {
  5595. console.error(err);
  5596. });
  5597. },
  5598. setCTask() {
  5599. let params = [
  5600. {
  5601. sopen: this.courseType + '-' + this.taskCount,
  5602. cid: this.id,
  5603. },
  5604. ];
  5605. this.ajax
  5606. .post(this.$store.state.api + "updateCourseFollowC", params)
  5607. .then((res) => {
  5608. })
  5609. .catch((err) => {
  5610. console.error(err);
  5611. });
  5612. },
  5613. updateLookOpen() {
  5614. let params = [
  5615. {
  5616. sopen: this.IsLookOpen == false ? 1 : 2,
  5617. cid: this.id,
  5618. },
  5619. ];
  5620. this.ajax
  5621. .post(this.$store.state.api + "updateCourseLookOpen", params)
  5622. .then((res) => {
  5623. if (this.IsLookOpen == true) {
  5624. // if (this.courseType != 0 && this.taskCount != 0) {
  5625. // this.openTask(0, 0, "0-0");
  5626. // }
  5627. this.$message({
  5628. message: "权限设置成功",
  5629. type: "success",
  5630. });
  5631. } else {
  5632. this.$message({
  5633. message: "权限关闭成功",
  5634. type: "success",
  5635. });
  5636. }
  5637. this.getCourseState(2);
  5638. })
  5639. .catch((err) => {
  5640. console.error(err);
  5641. });
  5642. },
  5643. selectSLook() {
  5644. let params = {
  5645. cid: this.id,
  5646. };
  5647. this.ajax
  5648. .get(this.$store.state.api + "selectCourseSLook", params)
  5649. .then((res) => {
  5650. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  5651. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  5652. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  5653. if (!this.IsLookOpen) {
  5654. this.setNavList();
  5655. } else {
  5656. this.getCourseState(1);
  5657. }
  5658. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  5659. let _followC = res.data[0][0].followC.split('-')
  5660. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  5661. this.navList[this.courseType].isOpen = false;
  5662. this.courseType = _followC[0]
  5663. this.navList[this.courseType].isOpen = true;
  5664. this.taskCount = parseInt(_followC[1])
  5665. this.navId = res.data[0][0].followC;
  5666. this.getCourseDetail()
  5667. }
  5668. }
  5669. })
  5670. .catch((err) => {
  5671. console.error(err);
  5672. });
  5673. },
  5674. setNavList() {
  5675. if (this.navList.length == 0) {
  5676. this.navList = [];
  5677. for (var l = 0; l < this.chapInfoList.length; l++) {
  5678. var q = this.chapInfoList[l].dyName;
  5679. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5680. var e;
  5681. this.navList.push({
  5682. dyName: q,
  5683. isOpen: l === 0 ? true : false,
  5684. task: [],
  5685. });
  5686. for (var r = 0; r < w.length; r++) {
  5687. e = w[r].task;
  5688. if (this.chapInfoList[l].easy == 1) {
  5689. this.navList[l].task.push({
  5690. taskName: q,
  5691. id: l + "-" + r,
  5692. isLook: w[r].isLook,
  5693. });
  5694. } else {
  5695. this.navList[l].task.push({
  5696. taskName: e,
  5697. id: l + "-" + r,
  5698. isLook: w[r].isLook,
  5699. });
  5700. }
  5701. // this.navId = this.navId ? this.navId : l + "-" + r;
  5702. // this.navId = l + "-" + r;
  5703. }
  5704. }
  5705. this.navList[0].isOpen = false;
  5706. this.navList[this.courseType].isOpen = true;
  5707. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  5708. } else {
  5709. this.setNavList2();
  5710. }
  5711. },
  5712. setNavList2() {
  5713. for (var l = 0; l < this.chapInfoList.length; l++) {
  5714. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  5715. for (var r = 0; r < w.length; r++) {
  5716. this.navList[l].task[r].isLook = w[r].isLook;
  5717. }
  5718. }
  5719. if (
  5720. this.IsLookOpen &&
  5721. !this.navList[this.courseType].task[this.taskCount].isLook
  5722. ) {
  5723. this.openTask(0, 0, "0-0");
  5724. }
  5725. this.$forceUpdate();
  5726. },
  5727. getCourseState(type) {
  5728. let params = {
  5729. cid: this.id,
  5730. };
  5731. this.ajax
  5732. .get(this.$store.state.api + "getCourseState", params)
  5733. .then((res) => {
  5734. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  5735. this.chapInfoList = JSON.parse(res.data[0][0].state);
  5736. this.setNavList();
  5737. this.$forceUpdate();
  5738. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  5739. this.addCourseState(2);
  5740. } else {
  5741. this.addCourseState(1);
  5742. }
  5743. })
  5744. .catch((err) => {
  5745. console.error(err);
  5746. });
  5747. },
  5748. addCourseState(type) {
  5749. let _state = this.chapInfoList;
  5750. // this.courseType this.taskCount
  5751. if (type == 1 || type == 2) {
  5752. for (var i = 0; i < _state.length; i++) {
  5753. let el = _state[i].chapterInfo[0].taskJson;
  5754. for (var j = 0; j < el.length; j++) {
  5755. // if (i == 0 && j == 0) {
  5756. // el[j].isLook = true;
  5757. // } else {
  5758. // el[j].isLook = false;
  5759. // }
  5760. if (
  5761. this.courseType > i ||
  5762. (this.courseType == i && this.taskCount + 1 > j)
  5763. ) {
  5764. el[j].isLook = true;
  5765. } else {
  5766. el[j].isLook = false;
  5767. }
  5768. }
  5769. }
  5770. }
  5771. let params = [
  5772. {
  5773. cid: this.id,
  5774. state: JSON.stringify(_state),
  5775. },
  5776. ];
  5777. this.ajax
  5778. .post(
  5779. this.$store.state.api +
  5780. (type == 1 ? "addCourseState" : "updateCourseSate"),
  5781. params
  5782. )
  5783. .then((res) => {
  5784. if (this.IsLookOpen) {
  5785. this.setNavList();
  5786. }
  5787. if (type == 3 && type == 2) {
  5788. this.getCourseState(1);
  5789. }
  5790. })
  5791. .catch((err) => {
  5792. console.error(err);
  5793. });
  5794. },
  5795. getHomeWork() {
  5796. let params = {
  5797. cid: this.id,
  5798. stage: this.courseType,
  5799. task: this.taskCount,
  5800. uid: this.userid,
  5801. };
  5802. this.ajax
  5803. .get(this.$store.state.api + "selectWork", params)
  5804. .then((res) => {
  5805. if (res.data[0].length > 0) {
  5806. this.studyJuri = JSON.parse(res.data[0][0].content);
  5807. this.isNoHomeWork = true;
  5808. }
  5809. })
  5810. .catch((err) => {
  5811. console.error(err);
  5812. });
  5813. },
  5814. isAssetTypeAnImage(ext) {
  5815. return (
  5816. [
  5817. "png",
  5818. "jpg",
  5819. "jpeg",
  5820. "bmp",
  5821. "gif",
  5822. "webp",
  5823. "psd",
  5824. "svg",
  5825. "tiff",
  5826. ].indexOf(ext) !== -1
  5827. );
  5828. },
  5829. switchVideo(media) {
  5830. this.playerO = {};
  5831. this.playerOptions.poster = "";
  5832. this.playerOptions.sources[0].src = media;
  5833. this.playerO = this.playerOptions;
  5834. },
  5835. onPlayerPlay() { },
  5836. lookVedio(u, i) {
  5837. this.isClickNav = "";
  5838. // this.playerOptions.sources[0].src = u;
  5839. var d = JSON.parse(JSON.stringify(this.playerOptions));
  5840. d.sources[0].src = u;
  5841. this.playerO[this.taskCount] = d;
  5842. this.showType = 0;
  5843. this.isClickNav = "video" + i;
  5844. this.$forceUpdate();
  5845. },
  5846. lookText(i, t) {
  5847. this.isClickNav = "";
  5848. this.text = this.textList[i][t];
  5849. // this.dialogVisible1 = true;
  5850. this.showType = 1;
  5851. this.isClickNav = "text" + t;
  5852. },
  5853. lookTools(i, t) {
  5854. this.chapTools = this.chapToolList[i][t];
  5855. this.dialogVisible2 = true;
  5856. },
  5857. openFile(f) {
  5858. this.pptImgUrl = "";
  5859. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  5860. if (
  5861. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  5862. -1
  5863. ) {
  5864. this.pptImgUrl =
  5865. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f);
  5866. this.showPDF = false;
  5867. this.dialogVisible3 = true;
  5868. } else if (
  5869. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  5870. ) {
  5871. this.pptImgUrl = f;
  5872. this.showPDF = true;
  5873. this.dialogVisible3 = true;
  5874. }
  5875. },
  5876. openTable(f) {
  5877. this.tableJson = JSON.parse(f.works);
  5878. this.$forceUpdate();
  5879. this.dialogVisibleTable2 = true;
  5880. },
  5881. openWord(f) {
  5882. this.tableJson = JSON.parse(f.works);
  5883. this.$forceUpdate();
  5884. this.dialogVisibleTable3 = true;
  5885. },
  5886. doUrl(url, i) {
  5887. this.isClickNav = "";
  5888. this.pptImgUrl1 = "";
  5889. this.showType = 2;
  5890. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  5891. url = "https://" + url;
  5892. }
  5893. this.pptImgUrl1 = url;
  5894. this.isClickNav = "line" + i;
  5895. },
  5896. downFile(f, i) {
  5897. this.isClickNav = "";
  5898. this.pptImgUrl1 = "";
  5899. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  5900. if (
  5901. a.indexOf(
  5902. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  5903. ) != -1
  5904. ) {
  5905. this.pptImgUrl1 =
  5906. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(f.url);
  5907. // this.dialogVisible3 = true;
  5908. this.showType = 2;
  5909. } else if (
  5910. this.isAssetTypeAnImage(
  5911. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  5912. )
  5913. ) {
  5914. this.showType = 4;
  5915. this.pptImgUrl1 = f.url;
  5916. } else if (
  5917. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  5918. "PDF"
  5919. ) {
  5920. this.pptImgUrl1 = f.url;
  5921. // this.dialogVisible3 = true;
  5922. this.showType = 3;
  5923. } else {
  5924. window.open(this.file[i].url);
  5925. }
  5926. this.isClickNav = "word" + i;
  5927. },
  5928. downFileList(i) {
  5929. window.open(this.noImgList[i].url);
  5930. },
  5931. openAddWork() {
  5932. this.dialogVisible = true;
  5933. },
  5934. addBzWorks() {
  5935. let params = [
  5936. {
  5937. uid: this.userid,
  5938. cid: this.id,
  5939. stage: this.courseType,
  5940. task: this.taskCount,
  5941. tool: this.toolindex,
  5942. content: JSON.stringify(this.eScore),
  5943. type: 6,
  5944. },
  5945. ];
  5946. this.ajax
  5947. .post(this.$store.state.api + "addCourseWorks", params)
  5948. .then((res) => {
  5949. this.$message({
  5950. message: "提交成功",
  5951. type: "success",
  5952. });
  5953. this.eScore = { eBzText: "", eStar: [] };
  5954. this.studentEvalDialogVisible = false;
  5955. this.selectSWorks();
  5956. })
  5957. .catch((err) => {
  5958. this.$message.error("提交失败");
  5959. console.error(err);
  5960. });
  5961. },
  5962. addBzWorksTeacher() {
  5963. let params = [
  5964. {
  5965. uid: this.sStudent.userid,
  5966. cid: this.id,
  5967. stage: this.courseType,
  5968. task: this.taskCount,
  5969. tool: this.toolindex,
  5970. content: JSON.stringify(this.eScore),
  5971. type: 6,
  5972. },
  5973. ];
  5974. this.ajax
  5975. .post(this.$store.state.api + "addCourseWorks", params)
  5976. .then((res) => {
  5977. this.$message({
  5978. message: "提交成功",
  5979. type: "success",
  5980. });
  5981. this.eScore = { eBzText: "", eStar: [] };
  5982. this.studentEvalDialogVisibleTeacher = false;
  5983. this.selectSWorks();
  5984. })
  5985. .catch((err) => {
  5986. this.$message.error("提交失败");
  5987. console.error(err);
  5988. });
  5989. },
  5990. addStudentAsk() {
  5991. if (!this.radio.length) {
  5992. this.$message.error("请选择选项");
  5993. return;
  5994. }
  5995. for (var i = 0; i < this.askJson.askCount; i++) {
  5996. if (
  5997. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  5998. (this.radio[i] !== 0 && !this.radio[i])
  5999. ) {
  6000. this.$message.error("请选择选项");
  6001. return;
  6002. }
  6003. }
  6004. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6005. let params = [
  6006. {
  6007. uid: this.userid,
  6008. cid: this.id,
  6009. stage: this.courseType,
  6010. task: this.taskCount,
  6011. tool: this.toolindex,
  6012. content: JSON.stringify(this.askList),
  6013. type: 2,
  6014. },
  6015. ];
  6016. this.ajax
  6017. .post(this.$store.state.api + "addCourseWorks", params)
  6018. .then((res) => {
  6019. this.$message({
  6020. message: "提交成功",
  6021. type: "success",
  6022. });
  6023. this.askList = [];
  6024. this.dialogVisible5 = false;
  6025. this.selectStudent();
  6026. this.selectSWorks();
  6027. this.selectSLook();
  6028. })
  6029. .catch((err) => {
  6030. this.$message.error("提交失败");
  6031. console.error(err);
  6032. });
  6033. },
  6034. addStudentAskTeacher() {
  6035. if (!this.radio.length) {
  6036. this.$message.error("请选择选项");
  6037. return;
  6038. }
  6039. for (var i = 0; i < this.askJson.askCount; i++) {
  6040. if (
  6041. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6042. (this.radio[i] !== 0 && !this.radio[i])
  6043. ) {
  6044. this.$message.error("请选择选项");
  6045. return;
  6046. }
  6047. }
  6048. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  6049. let params = [
  6050. {
  6051. uid: this.sStudent.userid,
  6052. cid: this.id,
  6053. stage: this.courseType,
  6054. task: this.taskCount,
  6055. tool: this.toolindex,
  6056. content: JSON.stringify(this.askList),
  6057. type: 2,
  6058. },
  6059. ];
  6060. this.ajax
  6061. .post(this.$store.state.api + "addCourseWorks", params)
  6062. .then((res) => {
  6063. this.$message({
  6064. message: "提交成功",
  6065. type: "success",
  6066. });
  6067. this.askList = [];
  6068. this.dialogVisible5Teacher = false;
  6069. this.selectStudent();
  6070. this.selectSWorks();
  6071. this.selectSLook();
  6072. })
  6073. .catch((err) => {
  6074. this.$message.error("提交失败");
  6075. console.error(err);
  6076. });
  6077. },
  6078. addStudentTest() {
  6079. if (!this.radio.length) {
  6080. this.$message.error("请选择选项");
  6081. return;
  6082. }
  6083. for (var i = 0; i < this.testJson.testCount; i++) {
  6084. if (
  6085. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6086. (this.radio[i] !== 0 && !this.radio[i])
  6087. ) {
  6088. this.$message.error("请选择选项");
  6089. return;
  6090. }
  6091. }
  6092. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6093. let params = [
  6094. {
  6095. uid: this.userid,
  6096. cid: this.id,
  6097. stage: this.courseType,
  6098. task: this.taskCount,
  6099. tool: this.toolindex,
  6100. content: JSON.stringify(this.askList),
  6101. type: 8,
  6102. },
  6103. ];
  6104. this.ajax
  6105. .post(this.$store.state.api + "addCourseWorks", params)
  6106. .then((res) => {
  6107. this.$message({
  6108. message: "提交成功",
  6109. type: "success",
  6110. });
  6111. this.askList = [];
  6112. this.dialogVisibleChoice = false;
  6113. this.selectStudent();
  6114. this.selectSWorks();
  6115. this.selectSLook();
  6116. })
  6117. .catch((err) => {
  6118. this.$message.error("提交失败");
  6119. console.error(err);
  6120. });
  6121. },
  6122. addStudentTestTeacher() {
  6123. if (!this.radio.length) {
  6124. this.$message.error("请选择选项");
  6125. return;
  6126. }
  6127. for (var i = 0; i < this.testJson.testCount; i++) {
  6128. if (
  6129. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  6130. (this.radio[i] !== 0 && !this.radio[i])
  6131. ) {
  6132. this.$message.error("请选择选项");
  6133. return;
  6134. }
  6135. }
  6136. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  6137. let params = [
  6138. {
  6139. uid: this.sStudent.userid,
  6140. cid: this.id,
  6141. stage: this.courseType,
  6142. task: this.taskCount,
  6143. tool: this.toolindex,
  6144. content: JSON.stringify(this.askList),
  6145. type: 8,
  6146. },
  6147. ];
  6148. this.ajax
  6149. .post(this.$store.state.api + "addCourseWorks", params)
  6150. .then((res) => {
  6151. this.$message({
  6152. message: "提交成功",
  6153. type: "success",
  6154. });
  6155. this.askList = [];
  6156. this.dialogVisibleChoiceTeacher = false;
  6157. this.selectStudent();
  6158. this.selectSWorks();
  6159. this.selectSLook();
  6160. })
  6161. .catch((err) => {
  6162. this.$message.error("提交失败");
  6163. console.error(err);
  6164. });
  6165. },
  6166. addWork() {
  6167. if (this.studyJuri[0].content == "") {
  6168. this.$message.error("请将信息填写完整");
  6169. return;
  6170. } else if (this.studyJuri[0].cover.length == 0) {
  6171. this.$message.error("请将信息填写完整");
  6172. return;
  6173. } else if (this.studyJuri[0].upVedio.length == 0) {
  6174. this.$message.error("请将信息填写完整");
  6175. return;
  6176. }
  6177. if (this.isNoHomeWork) {
  6178. this.$confirm(
  6179. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  6180. "提示",
  6181. {
  6182. confirmButtonText: "确定",
  6183. cancelButtonText: "取消",
  6184. type: "warning",
  6185. }
  6186. )
  6187. .then(() => {
  6188. let params = [
  6189. {
  6190. uid: this.userid,
  6191. cid: this.id,
  6192. stage: this.courseType,
  6193. task: this.taskCount,
  6194. content: JSON.stringify(this.studyJuri),
  6195. },
  6196. ];
  6197. this.ajax
  6198. .post(this.$store.state.api + "addWorks", params)
  6199. .then((res) => {
  6200. this.$message({
  6201. message: "提交成功",
  6202. type: "success",
  6203. });
  6204. this.isNoHomeWork = true;
  6205. this.dialogVisible = false;
  6206. })
  6207. .catch((err) => {
  6208. this.$message.error("提交失败");
  6209. console.error(err);
  6210. });
  6211. })
  6212. .catch(() => { });
  6213. } else {
  6214. let params = [
  6215. {
  6216. uid: this.userid,
  6217. cid: this.id,
  6218. stage: this.courseType,
  6219. task: this.taskCount,
  6220. content: JSON.stringify(this.studyJuri),
  6221. },
  6222. ];
  6223. this.ajax
  6224. .post(this.$store.state.api + "addWorks", params)
  6225. .then((res) => {
  6226. this.$message({
  6227. message: "提交成功",
  6228. type: "success",
  6229. });
  6230. this.isNoHomeWork = true;
  6231. this.dialogVisible = false;
  6232. })
  6233. .catch((err) => {
  6234. this.$message.error("提交失败");
  6235. console.error(err);
  6236. });
  6237. }
  6238. },
  6239. selectCount() {
  6240. let params = {
  6241. cid: this.id,
  6242. chid: this.courseType,
  6243. uid: this.userid,
  6244. };
  6245. this.ajax
  6246. .get(this.$store.state.api + "selectToolsCount", params)
  6247. .then((res) => {
  6248. for (var i = 0; i < res.data[0].length; i++) {
  6249. if (res.data[0][i].tools == 1) {
  6250. this.wbCount = res.data[0][i].count;
  6251. } else if (res.data[0][i].tools == 2) {
  6252. this.wordCount = res.data[0][i].count;
  6253. } else if (res.data[0][i].tools == 3) {
  6254. this.mindCount = res.data[0][i].count;
  6255. } else if (res.data[0][i].tools == 4) {
  6256. this.askCount = res.data[0][i].count;
  6257. } else if (res.data[0][i].tools == 6) {
  6258. this.noteCount = res.data[0][i].count;
  6259. } else if (res.data[0][i].tools == 7) {
  6260. this.mindNetWorkCount = res.data[0][i].count;
  6261. } else if (res.data[0][i].tools == 8) {
  6262. this.libraryCount = res.data[0][i].count;
  6263. } else if (res.data[0][i].tools == 16) {
  6264. this.workCount = res.data[0][i].count;
  6265. } else if (res.data[0][i].tools == 10) {
  6266. this.timeCount = res.data[0][i].count;
  6267. } else if (res.data[0][i].tools == 15) {
  6268. this.answerCount = res.data[0][i].count;
  6269. } else if (res.data[0][i].tools == 18) {
  6270. this.trainCount = res.data[0][i].count;
  6271. }
  6272. }
  6273. })
  6274. .catch((err) => {
  6275. console.error(err);
  6276. });
  6277. },
  6278. openTools(t, i, index, c, sName) {
  6279. var z = JSON.parse(c);
  6280. this.noteName = sName;
  6281. if (t == 4) {
  6282. this.radio = [];
  6283. this.isAnswer = false;
  6284. let b = z[0].anwer;
  6285. this.radio = b;
  6286. this.askJson = z[0].askJson;
  6287. this.isAnswer = true;
  6288. this.dialogVisible5 = true;
  6289. } else if (t == 45) {
  6290. this.radio = [];
  6291. this.isAnswer = false;
  6292. let b = z[0].anwer;
  6293. this.radio = b;
  6294. this.testJson = z[0].testJson;
  6295. this.isAnswer = true;
  6296. this.dialogVisibleChoice = true;
  6297. }
  6298. // else if (t == 15) {
  6299. // this.answerQ = "";
  6300. // this.questionAnswer = "";
  6301. // this.answerQ = z[0].answerTitle;
  6302. // this.questionAnswer = z[0].answer;
  6303. // this.answerDialogVisible = true;
  6304. // }
  6305. },
  6306. fastText(p, t) {
  6307. if (t == 1) {
  6308. this.commentText += p;
  6309. } else {
  6310. this.eScore.eBzText += p;
  6311. }
  6312. },
  6313. addTools(t, i, index) {
  6314. var a = 0;
  6315. // this.taskCount = index;
  6316. this.toolindex = i;
  6317. if (t == 1) {
  6318. if (this.wbCount > 0) {
  6319. this.updateCount(this.wbCount, t);
  6320. } else {
  6321. this.wbCount++;
  6322. a = this.wbCount;
  6323. this.toolsCount(a, t);
  6324. }
  6325. window.parent.postMessage(
  6326. {
  6327. tools: "1E",
  6328. cid: this.id,
  6329. stage: this.courseType,
  6330. task: this.taskCount,
  6331. tool: i,
  6332. },
  6333. "*"
  6334. );
  6335. } else if (t == 2) {
  6336. if (this.wordCount > 0) {
  6337. this.updateCount(this.wordCount, t);
  6338. } else {
  6339. this.wordCount++;
  6340. a = this.wordCount;
  6341. this.toolsCount(a, t);
  6342. }
  6343. window.parent.postMessage({ tools: "2" }, "*");
  6344. } else if (t == 3) {
  6345. if (this.mindCount > 0) {
  6346. this.updateCount(this.mindCount, t);
  6347. } else {
  6348. this.mindCount++;
  6349. a = this.mindCount;
  6350. this.toolsCount(a, t);
  6351. }
  6352. window.parent.postMessage(
  6353. {
  6354. tools: "3E",
  6355. cid: this.id,
  6356. stage: this.courseType,
  6357. task: this.taskCount,
  6358. tool: i,
  6359. },
  6360. "*"
  6361. );
  6362. } else if (t == 4) {
  6363. this.radio = [];
  6364. this.noteName = "";
  6365. this.isAnswer = false;
  6366. if (this.askCount > 0) {
  6367. this.updateCount(this.askCount, t);
  6368. } else {
  6369. this.askCount++;
  6370. a = this.askCount;
  6371. this.toolsCount(a, t);
  6372. }
  6373. this.askJson.askJson =
  6374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6375. index
  6376. ].toolChoose[i].askJson;
  6377. this.askJson.askTitle =
  6378. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6379. index
  6380. ].toolChoose[i].askTitle;
  6381. this.askJson.askCount =
  6382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6383. index
  6384. ].toolChoose[i].askCount;
  6385. for (var k = 0; k < this.askJson.askJson.length; k++) {
  6386. if (this.askJson.askJson[k].type == "2") {
  6387. this.radio.push([]);
  6388. } else {
  6389. this.radio.push("");
  6390. }
  6391. }
  6392. this.dialogVisible5 = true;
  6393. // window.parent.postMessage({ tools: "4" }, "*");
  6394. } else if (t == 45) {
  6395. this.noteName = "";
  6396. this.radio = [];
  6397. this.isAnswer = false;
  6398. if (this.askCount > 0) {
  6399. this.updateCount(this.askCount, t);
  6400. } else {
  6401. this.askCount++;
  6402. a = this.askCount;
  6403. this.toolsCount(a, t);
  6404. }
  6405. this.testJson =
  6406. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6407. index
  6408. ].toolChoose[i].testJson;
  6409. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6410. if (this.testJson.testJson[k].type == "2") {
  6411. this.radio.push([]);
  6412. } else {
  6413. this.radio.push("");
  6414. }
  6415. }
  6416. this.dialogVisibleChoice = true;
  6417. // window.parent.postMessage({ tools: "4" }, "*");
  6418. } else if (t == 5) {
  6419. if (this.scoreCount > 0) {
  6420. this.updateCount(this.scoreCount, t);
  6421. } else {
  6422. this.scoreCount++;
  6423. a = this.scoreCount;
  6424. this.toolsCount(a, t);
  6425. }
  6426. this.dialogVisible4 = true;
  6427. // window.parent.postMessage({ tools: "5" }, "*");
  6428. } else if (t == 6) {
  6429. if (this.noteCount > 0) {
  6430. this.updateCount(this.noteCount, t);
  6431. } else {
  6432. this.noteCount++;
  6433. a = this.noteCount;
  6434. this.toolsCount(a, t);
  6435. }
  6436. window.parent.postMessage(
  6437. {
  6438. tools: "6",
  6439. cid: this.id,
  6440. stage: this.courseType,
  6441. task: this.taskCount,
  6442. tool: i,
  6443. },
  6444. "*"
  6445. );
  6446. } else if (t == 7) {
  6447. if (this.mindNetWorkCount > 0) {
  6448. this.updateCount(this.mindNetWorkCount, t);
  6449. } else {
  6450. this.mindNetWorkCount++;
  6451. a = this.mindNetWorkCount;
  6452. this.toolsCount(a, t);
  6453. }
  6454. window.parent.postMessage(
  6455. {
  6456. tools: "7",
  6457. cid: this.id,
  6458. stage: this.courseType,
  6459. task: this.taskCount,
  6460. tool: i,
  6461. },
  6462. "*"
  6463. );
  6464. } else if (t == 16) {
  6465. if (this.workCount > 0) {
  6466. this.updateCount(this.workCount, t);
  6467. } else {
  6468. this.workCount++;
  6469. a = this.workCount;
  6470. this.toolsCount(a, t);
  6471. }
  6472. this.dialogVisible = true;
  6473. } else if (t == 50) {
  6474. if (this.tType == 2) {
  6475. this.$message.error("不支持学生使用");
  6476. return;
  6477. }
  6478. this.plworkFile = [];
  6479. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  6480. this.selectUploadStudent();
  6481. this.dialogVisiblePl = true;
  6482. } else if (t == 8) {
  6483. if (this.libraryCount > 0) {
  6484. this.updateCount(this.libraryCount, t);
  6485. } else {
  6486. this.libraryCount++;
  6487. a = this.libraryCount;
  6488. this.toolsCount(a, t);
  6489. }
  6490. window.parent.postMessage({ tools: "8" }, "*");
  6491. } else if (t == 17) {
  6492. if (this.libraryCount > 0) {
  6493. this.updateCount(this.libraryCount, t);
  6494. } else {
  6495. this.libraryCount++;
  6496. a = this.libraryCount;
  6497. this.toolsCount(a, t);
  6498. }
  6499. window.parent.postMessage({ tools: "17" }, "*");
  6500. } else if (t == 18) {
  6501. if (this.trainCount > 0) {
  6502. this.updateCount(this.trainCount, t);
  6503. } else {
  6504. this.trainCount++;
  6505. a = this.trainCount;
  6506. this.toolsCount(a, t);
  6507. }
  6508. window.parent.postMessage({ tools: "18" }, "*");
  6509. } else if (t == 10) {
  6510. if (this.timeCount > 0) {
  6511. this.updateCount(this.timeCount, t);
  6512. } else {
  6513. this.timeCount++;
  6514. a = this.timeCount;
  6515. this.toolsCount(a, t);
  6516. }
  6517. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  6518. .taskJson[index].toolChoose[i].preTime
  6519. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6520. .toolChoose[i].preTime
  6521. : "";
  6522. this.timeDialogVisible = true;
  6523. } else if (t == 15) {
  6524. this.answerQ = "";
  6525. this.questionAnswer = "";
  6526. if (this.answerCount > 0) {
  6527. this.updateCount(this.answerCount, t);
  6528. } else {
  6529. this.answerCount++;
  6530. a = this.answerCount;
  6531. this.toolsCount(a, t);
  6532. }
  6533. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6534. .taskJson[index].toolChoose[i].answerQ
  6535. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6536. .toolChoose[i].answerQ
  6537. : "";
  6538. this.answerDialogVisible = true;
  6539. } else if (t == 21) {
  6540. window.parent.postMessage({ tools: "21" }, "*");
  6541. } else if (t == 22) {
  6542. window.parent.postMessage({ tools: "22" }, "*");
  6543. } else if (t == 23) {
  6544. window.parent.postMessage({ tools: "23" }, "*");
  6545. } else if (t == 24) {
  6546. window.parent.postMessage({ tools: "24" }, "*");
  6547. } else if (t == 25) {
  6548. window.parent.postMessage({ tools: "25" }, "*");
  6549. } else if (t == 31) {
  6550. window.parent.postMessage({ tools: "31" }, "*");
  6551. } else if (t == 28) {
  6552. window.parent.postMessage({ tools: "28" }, "*");
  6553. } else if (t == 37) {
  6554. window.parent.postMessage({ tools: "37" }, "*");
  6555. } else if (t == 38) {
  6556. window.parent.postMessage({ tools: "38" }, "*");
  6557. } else if (t == 39) {
  6558. window.parent.postMessage({ tools: "39" }, "*");
  6559. } else if (t == 32) {
  6560. window.parent.postMessage({ tools: "32" }, "*");
  6561. } else if (t == 57) {
  6562. window.parent.postMessage({ tools: "57" }, "*");
  6563. } else if (t == 58) {
  6564. window.parent.postMessage({ tools: "58" }, "*");
  6565. } else if (t == 59) {
  6566. window.parent.postMessage({ tools: "59" }, "*");
  6567. } else if (t == 60) {
  6568. window.parent.postMessage({ tools: "60" }, "*");
  6569. } else if (t == 61) {
  6570. window.parent.postMessage({ tools: "61" }, "*");
  6571. } else if (t == 63) {
  6572. window.parent.postMessage({ tools: "63" }, "*");
  6573. } else if (t == 26) {
  6574. window.parent.postMessage(
  6575. {
  6576. tools: "26",
  6577. cid: this.id,
  6578. stage: this.courseType,
  6579. task: this.taskCount,
  6580. tool: i,
  6581. },
  6582. "*"
  6583. );
  6584. } else if (t == 40) {
  6585. if (this.evalCount > 0) {
  6586. this.updateCount(this.evalCount, t);
  6587. } else {
  6588. this.evalCount++;
  6589. a = this.evalCount;
  6590. this.toolsCount(a, t);
  6591. }
  6592. this.eScore = { eBzText: "", eStar: [] };
  6593. if (this.worksStudent.length) {
  6594. for (var k = 0; k < this.worksStudent.length; k++) {
  6595. if (this.userid == this.worksStudent[k].userid) {
  6596. this.eScore = JSON.parse(this.worksStudent[k].works);
  6597. this.rateJson =
  6598. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6599. index
  6600. ].toolChoose[i].rateJson;
  6601. break;
  6602. } else {
  6603. this.rateJson =
  6604. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6605. index
  6606. ].toolChoose[i].rateJson;
  6607. }
  6608. }
  6609. } else {
  6610. this.rateJson =
  6611. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6612. index
  6613. ].toolChoose[i].rateJson;
  6614. }
  6615. this.isStar = false;
  6616. this.studentEvalDialogVisible = true;
  6617. } else if (t == 41) {
  6618. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6619. .taskJson[index].toolChoose[i].selectJson
  6620. ? JSON.parse(
  6621. JSON.stringify(
  6622. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6623. index
  6624. ].toolChoose[i].selectJson
  6625. )
  6626. )
  6627. : { url: "", select: [], answer: [] };
  6628. if (this.worksStudent.length) {
  6629. for (var k = 0; k < this.worksStudent.length; k++) {
  6630. if (this.userid == this.worksStudent[k].userid) {
  6631. var a = this.worksStudent[k].works.split(",");
  6632. for (var ki = 0; ki < a.length; ki++) {
  6633. a[ki] = parseInt(a[ki]);
  6634. }
  6635. this.selectAnswer = {
  6636. answer: a,
  6637. stu: this.worksStudent[k].sName,
  6638. };
  6639. break;
  6640. } else {
  6641. this.selectAnswer = { answer: [], stu: "" };
  6642. }
  6643. }
  6644. } else {
  6645. this.selectAnswer = { answer: [], stu: "" };
  6646. }
  6647. this.isSelect = false;
  6648. this.dialogVisibleSelect = true;
  6649. } else if (t == 44) {
  6650. window.parent.postMessage({ tools: "44" }, "*");
  6651. } else if (t == 47) {
  6652. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6653. .taskJson[index].toolChoose[i].sentenceList
  6654. ? JSON.parse(
  6655. JSON.stringify(
  6656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6657. index
  6658. ].toolChoose[i].sentenceList
  6659. )
  6660. )
  6661. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6662. for (var q = 0; q < this.sentenceList.length; q++) {
  6663. this.sentenceList[q].chooseSenList = [];
  6664. this.sentenceList[q].addChangeSen = [];
  6665. this.sentenceList[q].addChangeSen = JSON.parse(
  6666. JSON.stringify(this.sentenceList[q].addSentence)
  6667. );
  6668. this.sentenceList[q].chooseSenList.length =
  6669. this.sentenceList[q].rightAnswer.length;
  6670. }
  6671. this.dialogVisibleSentence = true;
  6672. } else if (t == 48) {
  6673. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6674. .taskJson[index].toolChoose[i].tableJson
  6675. ? JSON.parse(
  6676. JSON.stringify(
  6677. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6678. index
  6679. ].toolChoose[i].tableJson
  6680. )
  6681. )
  6682. : { text: "" };
  6683. if (this.worksStudent.length) {
  6684. for (var k = 0; k < this.worksStudent.length; k++) {
  6685. if (this.userid == this.worksStudent[k].userid) {
  6686. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6687. break;
  6688. }
  6689. }
  6690. }
  6691. this.dialogVisibleTable = true;
  6692. } else if (t == 52) {
  6693. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6694. .taskJson[index].toolChoose[i].wordJson
  6695. ? JSON.parse(
  6696. JSON.stringify(
  6697. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6698. index
  6699. ].toolChoose[i].wordJson
  6700. )
  6701. )
  6702. : { text: "" };
  6703. this.dialogVisibleWord = true;
  6704. } else if (t == 49) {
  6705. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  6706. return
  6707. }
  6708. this.groupJson =
  6709. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6710. index
  6711. ].toolChoose[i].groupJson;
  6712. this.dialogVisibleGroup = true;
  6713. } else if (t == 62) {
  6714. this.videoJson =
  6715. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6716. index
  6717. ].toolChoose[i].videoJson;
  6718. this.dialogVisibleVideo = true;
  6719. }
  6720. },
  6721. teacherWorkSubmit(t, i, index) {
  6722. this.sTool = t;
  6723. this.toolindex = i;
  6724. if (this.tType !== "1" && this.tType !== "4") {
  6725. return;
  6726. }
  6727. if (t == 16 || t == 32 || t == 57 || t == 50) {
  6728. this.dialogVisibleWorks = true; //作业提交
  6729. } else if (t == 15) {
  6730. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  6731. .taskJson[index].toolChoose[i].answerQ
  6732. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  6733. .toolChoose[i].answerQ
  6734. : "";
  6735. this.questionAnswer = ''
  6736. this.answerDialogVisibleTeacher = true;//问答
  6737. } else if (t == 52) {
  6738. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6739. .taskJson[index].toolChoose[i].wordJson
  6740. ? JSON.parse(
  6741. JSON.stringify(
  6742. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6743. index
  6744. ].toolChoose[i].wordJson
  6745. )
  6746. )
  6747. : { text: "" };
  6748. this.dialogVisibleWordTeacher = true;//文档
  6749. } else if (t == 4) {
  6750. this.radio = [];
  6751. this.noteName = "";
  6752. this.isAnswer = false;
  6753. if (this.askCount > 0) {
  6754. this.updateCount(this.askCount, t);
  6755. } else {
  6756. this.askCount++;
  6757. a = this.askCount;
  6758. this.toolsCount(a, t);
  6759. }
  6760. if (!this.dialogVisible2) {
  6761. this.askJson.askJson =
  6762. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6763. index
  6764. ].toolChoose[i].askJson;
  6765. this.askJson.askTitle =
  6766. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6767. index
  6768. ].toolChoose[i].askTitle;
  6769. this.askJson.askCount =
  6770. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6771. index
  6772. ].toolChoose[i].askCount;
  6773. } else {
  6774. this.askJson.askJson = this.chapTools.askJson.askJson;
  6775. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  6776. this.askJson.askCount = this.chapTools.askJson.askCount;
  6777. }
  6778. this.dialogVisible5Teacher = true;
  6779. } else if (t == 45) {
  6780. this.noteName = "";
  6781. this.radio = [];
  6782. this.isAnswer = false;
  6783. if (this.askCount > 0) {
  6784. this.updateCount(this.askCount, t);
  6785. } else {
  6786. this.askCount++;
  6787. a = this.askCount;
  6788. this.toolsCount(a, t);
  6789. }
  6790. this.testJson =
  6791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6792. index
  6793. ].toolChoose[i].testJson;
  6794. for (var k = 0; k < this.testJson.testJson.length; k++) {
  6795. if (this.testJson.testJson[k].type == "2") {
  6796. this.radio.push([]);
  6797. } else {
  6798. this.radio.push("");
  6799. }
  6800. }
  6801. this.dialogVisibleChoiceTeacher = true;
  6802. } else if (t == 41) {
  6803. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6804. .taskJson[index].toolChoose[i].selectJson
  6805. ? JSON.parse(
  6806. JSON.stringify(
  6807. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6808. index
  6809. ].toolChoose[i].selectJson
  6810. )
  6811. )
  6812. : { url: "", select: [], answer: [] };
  6813. if (this.worksStudent.length) {
  6814. for (var k = 0; k < this.worksStudent.length; k++) {
  6815. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6816. var a = this.worksStudent[k].works.split(",");
  6817. for (var ki = 0; ki < a.length; ki++) {
  6818. a[ki] = parseInt(a[ki]);
  6819. }
  6820. this.selectAnswer = {
  6821. answer: a,
  6822. stu: this.worksStudent[k].sName,
  6823. };
  6824. break;
  6825. } else {
  6826. this.selectAnswer = { answer: [], stu: "" };
  6827. }
  6828. }
  6829. } else {
  6830. this.selectAnswer = { answer: [], stu: "" };
  6831. }
  6832. this.isSelect = false;
  6833. this.dialogVisibleSelectTeacher = true;
  6834. } else if (t == 47) {
  6835. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  6836. .taskJson[index].toolChoose[i].sentenceList
  6837. ? JSON.parse(
  6838. JSON.stringify(
  6839. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6840. index
  6841. ].toolChoose[i].sentenceList
  6842. )
  6843. )
  6844. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  6845. for (var q = 0; q < this.sentenceList.length; q++) {
  6846. this.sentenceList[q].chooseSenList = [];
  6847. this.sentenceList[q].addChangeSen = [];
  6848. this.sentenceList[q].addChangeSen = JSON.parse(
  6849. JSON.stringify(this.sentenceList[q].addSentence)
  6850. );
  6851. this.sentenceList[q].chooseSenList.length =
  6852. this.sentenceList[q].rightAnswer.length;
  6853. }
  6854. this.dialogVisibleSentenceTeacher = true;
  6855. } else if (t == 48) {
  6856. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6857. .taskJson[index].toolChoose[i].tableJson
  6858. ? JSON.parse(
  6859. JSON.stringify(
  6860. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6861. index
  6862. ].toolChoose[i].tableJson
  6863. )
  6864. )
  6865. : { text: "" };
  6866. if (this.worksStudent.length) {
  6867. for (var k = 0; k < this.worksStudent.length; k++) {
  6868. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6869. this.tableJson = JSON.parse(this.worksStudent[k].works);
  6870. break;
  6871. }
  6872. }
  6873. }
  6874. this.dialogVisibleTableTeacher = true;
  6875. } else if (t == 40) {
  6876. if (this.evalCount > 0) {
  6877. this.updateCount(this.evalCount, t);
  6878. } else {
  6879. this.evalCount++;
  6880. a = this.evalCount;
  6881. this.toolsCount(a, t);
  6882. }
  6883. this.eScore = { eBzText: "", eStar: [] };
  6884. if (this.worksStudent.length) {
  6885. for (var k = 0; k < this.worksStudent.length; k++) {
  6886. if (this.sStudent.userid == this.worksStudent[k].userid) {
  6887. this.eScore = JSON.parse(this.worksStudent[k].works);
  6888. this.rateJson =
  6889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6890. index
  6891. ].toolChoose[i].rateJson;
  6892. break;
  6893. } else {
  6894. this.rateJson =
  6895. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6896. index
  6897. ].toolChoose[i].rateJson;
  6898. }
  6899. }
  6900. } else {
  6901. this.rateJson =
  6902. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6903. index
  6904. ].toolChoose[i].rateJson;
  6905. }
  6906. this.isStar = false;
  6907. this.studentEvalDialogVisibleTeacher = true;
  6908. } else if (t == 3 || t == 1 || t == 7) {
  6909. window.parent.postMessage(
  6910. {
  6911. tools: t + 'teacherE',
  6912. cid: this.id,
  6913. stage: this.courseType,
  6914. task: this.taskCount,
  6915. tool: i,
  6916. student: this.sStudent,
  6917. },
  6918. "*"
  6919. );
  6920. }
  6921. },
  6922. openStudentTool(s) {
  6923. this.sStudent = s;
  6924. this.dialogVisibleStudentTool = true;
  6925. },
  6926. setRightAnswer(s, i, j) {
  6927. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  6928. if (
  6929. this.sentenceList[i].chooseSenList[q] == undefined ||
  6930. this.sentenceList[i].chooseSenList[q] == ""
  6931. ) {
  6932. this.sentenceList[i].chooseSenList[q] = s;
  6933. this.sentenceList[i].addChangeSen[j] = "";
  6934. break;
  6935. }
  6936. }
  6937. this.$forceUpdate();
  6938. },
  6939. returnCard(r, i, j) {
  6940. var a = this.sentenceList[i].addSentence.indexOf(r);
  6941. this.sentenceList[i].chooseSenList[j] = "";
  6942. this.sentenceList[i].addChangeSen[a] = r;
  6943. this.$forceUpdate();
  6944. },
  6945. // addSentenceTool() {
  6946. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6947. // this.taskCount
  6948. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  6949. // this.sentenceList = [
  6950. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6951. // ];
  6952. // this.dialogVisibleSentence = false;
  6953. // },
  6954. toolsCount(a, t) {
  6955. let params = {
  6956. cid: this.id,
  6957. chid: this.courseType,
  6958. uid: this.userid,
  6959. tid: t,
  6960. count: a,
  6961. };
  6962. this.ajax
  6963. .get(this.$store.state.api + "insertToolsCount", params)
  6964. .then((res) => {
  6965. this.selectCount();
  6966. })
  6967. .catch((err) => {
  6968. console.error(err);
  6969. });
  6970. },
  6971. updateCount(c, t) {
  6972. c++;
  6973. let params = {
  6974. cid: this.id,
  6975. chid: this.courseType,
  6976. uid: this.userid,
  6977. tid: t,
  6978. count: c,
  6979. };
  6980. this.ajax
  6981. .get(this.$store.state.api + "updateToolsCount", params)
  6982. .then((res) => {
  6983. this.selectCount();
  6984. })
  6985. .catch((err) => {
  6986. console.error(err);
  6987. });
  6988. },
  6989. checkEva() {
  6990. if (this.evalua != "") {
  6991. for (var i = 0; i < this.evaJuri.length; i++) {
  6992. if (this.evalua == this.evaJuri[i].id) {
  6993. this.eTitle = this.evaJuri[i].title;
  6994. this.eJson = JSON.parse(this.evaJuri[i].content);
  6995. }
  6996. }
  6997. this.$forceUpdate();
  6998. setTimeout(() => {
  6999. this.setMindData();
  7000. }, 0);
  7001. }
  7002. },
  7003. selectEva() {
  7004. let params = {
  7005. oid: this.oid,
  7006. };
  7007. this.ajax
  7008. .get(this.$store.state.api + "selectAllEvaluation", params)
  7009. .then((res) => {
  7010. this.evaJuri = res.data[0];
  7011. })
  7012. .catch((err) => {
  7013. console.error(err);
  7014. });
  7015. },
  7016. setMindData() {
  7017. this.data.data = [];
  7018. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  7019. let _eJson = Object.keys(this.eJson);
  7020. let _e = this.eJson;
  7021. for (let i = 0; i < _eJson.length; i++) {
  7022. let element = _e[_eJson[i]];
  7023. this.data.data.push({
  7024. id: element.id,
  7025. parentid: "root",
  7026. topic: element.name,
  7027. });
  7028. let _eJsonc = Object.keys(element.child);
  7029. let _e2 = element.child;
  7030. for (let j = 0; j < _eJsonc.length; j++) {
  7031. let _ec = _e2[_eJsonc[j]];
  7032. this.data.data.push({
  7033. id: _ec.id,
  7034. parentid: element.id,
  7035. topic: _ec.name,
  7036. });
  7037. let _eJsonz = Object.keys(_ec.child);
  7038. let _e3 = _ec.child;
  7039. for (let z = 0; z < _eJsonz.length; z++) {
  7040. let _ez = _e3[_eJsonz[z]];
  7041. this.data.data.push({
  7042. id: _ez.id,
  7043. parentid: _ec.id,
  7044. topic: _ez.name,
  7045. });
  7046. }
  7047. }
  7048. }
  7049. this.$forceUpdate();
  7050. },
  7051. checkFileFull(type, url) {
  7052. this.fullDialogVisible = true;
  7053. this.fulltype = type;
  7054. this.fullUrl = url;
  7055. },
  7056. openSname(n, id, i) {
  7057. this.snameWid = id;
  7058. this.worksSName = n;
  7059. this.toolindex = i
  7060. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  7061. this.selectUploadStudent()
  7062. this.dialogVisibleSname = true;
  7063. },
  7064. updateName() {
  7065. let params = {
  7066. n: this.worksSName,
  7067. cid: this.snameWid,
  7068. };
  7069. this.ajax
  7070. .get(this.$store.state.api + "updateCourseWorksName", params)
  7071. .then((res) => {
  7072. this.$message({
  7073. message: "修改成功",
  7074. type: "success",
  7075. });
  7076. this.dialogVisibleSname = false;
  7077. this.getCourseDetail();
  7078. this.snameWid = "";
  7079. this.worksSName = "";
  7080. })
  7081. .catch((err) => {
  7082. console.error(err);
  7083. });
  7084. },
  7085. downloadFile2(f) {
  7086. let url = f.url
  7087. let _this = this;
  7088. let _url = "";
  7089. if (
  7090. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7091. ) {
  7092. _url = url.split(
  7093. "https://view.officeapps.live.com/op/view.aspx?src="
  7094. )[1];
  7095. } else {
  7096. _url = url;
  7097. }
  7098. const x = new XMLHttpRequest();
  7099. x.open("GET", _url, true);
  7100. x.responseType = "blob";
  7101. const loading = _this.$loading.service({
  7102. background: "rgba(255, 255, 255, 0.7)",
  7103. target: document.body,
  7104. text: "文件加载中...",
  7105. });
  7106. // _this.$message.success("文件下载中...");
  7107. x.onload = function (e) {
  7108. loading.close();
  7109. let content = x.response;
  7110. let elink = document.createElement("a");
  7111. elink.download = f.name;
  7112. elink.style.display = "none";
  7113. let blob = new Blob([content]);
  7114. elink.href = URL.createObjectURL(blob);
  7115. document.body.appendChild(elink);
  7116. elink.click();
  7117. document.body.removeChild(elink);
  7118. };
  7119. x.send();
  7120. },
  7121. downloadFile(url) {
  7122. let _this = this;
  7123. let _url = "";
  7124. if (
  7125. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  7126. ) {
  7127. _url = url.split(
  7128. "https://view.officeapps.live.com/op/view.aspx?src="
  7129. )[1];
  7130. } else {
  7131. _url = url;
  7132. }
  7133. const x = new XMLHttpRequest();
  7134. x.open("GET", _url, true);
  7135. x.responseType = "blob";
  7136. const loading = _this.$loading.service({
  7137. background: "rgba(255, 255, 255, 0.7)",
  7138. target: document.body,
  7139. text: "文件加载中...",
  7140. });
  7141. // _this.$message.success("文件下载中...");
  7142. x.onload = function (e) {
  7143. loading.close();
  7144. // const url = window.URL.createObjectURL(x.response);
  7145. // const a = document.createElement("a");
  7146. // a.href = url;
  7147. // a.target = "_blank";
  7148. // a.download = url;
  7149. // a.click();
  7150. // a.remove();
  7151. let content = x.response;
  7152. let elink = document.createElement("a");
  7153. elink.download = decodeURI(
  7154. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  7155. );
  7156. elink.style.display = "none";
  7157. let blob = new Blob([content]);
  7158. elink.href = URL.createObjectURL(blob);
  7159. document.body.appendChild(elink);
  7160. elink.click();
  7161. document.body.removeChild(elink);
  7162. };
  7163. x.send();
  7164. },
  7165. openLine(url) {
  7166. window.open(url);
  7167. },
  7168. resize() {
  7169. if (document.getElementsByClassName("box_course").length) {
  7170. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7171. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7172. document.getElementsByClassName("navBox")[0].style.height =
  7173. a - 40 + "px";
  7174. }
  7175. this.Stbodywidth =
  7176. document.getElementsByClassName("student_body").length &&
  7177. document.getElementsByClassName("student_body")[0].offsetWidth;
  7178. },
  7179. closeDraw() {
  7180. this.bg = null;
  7181. this.drawShow = false;
  7182. },
  7183. showPicturePaint(url) {
  7184. let params = {
  7185. img: url,
  7186. };
  7187. this.ajax
  7188. .get(this.$store.state.api + "imgToBase64", params)
  7189. .then((res) => {
  7190. console.log(res);
  7191. this.drawShow = true;
  7192. this.bg = res.data[0].img;
  7193. })
  7194. .catch((err) => {
  7195. console.error(err);
  7196. });
  7197. },
  7198. addImgDraw(base64) {
  7199. let file = { name: "批注图.png" };
  7200. let img = this.dataUrlToFile(base64, file);
  7201. this.beforeUpload1(img, 5);
  7202. },
  7203. addImgDrawImG(url) {
  7204. // console.log(url);
  7205. let params = [
  7206. {
  7207. wid: this.commentDetail.wid,
  7208. img: url,
  7209. },
  7210. ];
  7211. this.ajax
  7212. .post(this.$store.state.api + "updateCourseWorks", params)
  7213. .then((res) => {
  7214. this.$message({
  7215. message: "提交成功",
  7216. type: "success",
  7217. });
  7218. this.drawShow = false;
  7219. this.bg = "";
  7220. this.selectSWorks();
  7221. this.selectStudent();
  7222. })
  7223. .catch((err) => {
  7224. this.$message.error("提交失败");
  7225. console.error(err);
  7226. });
  7227. },
  7228. deletePicturePaint() {
  7229. this.$confirm("确定删除此批注吗?", "提示", {
  7230. confirmButtonText: "确定",
  7231. cancelButtonText: "取消",
  7232. type: "warning",
  7233. })
  7234. .then(() => {
  7235. let params = [
  7236. {
  7237. wid: this.commentDetail.wid,
  7238. img: "",
  7239. },
  7240. ];
  7241. this.ajax
  7242. .post(this.$store.state.api + "updateCourseWorks", params)
  7243. .then((res) => {
  7244. this.$message({
  7245. message: "删除成功",
  7246. type: "success",
  7247. });
  7248. this.selectSWorks();
  7249. this.selectStudent();
  7250. })
  7251. .catch((err) => {
  7252. this.$message.error("删除失败");
  7253. console.error(err);
  7254. });
  7255. })
  7256. .catch(() => { });
  7257. },
  7258. getAudioVideo(constraintsData) {
  7259. if (navigator.mediaDevices === undefined) {
  7260. navigator.mediaDevices = {};
  7261. }
  7262. if (navigator.mediaDevices.getUserMedia === undefined) {
  7263. navigator.mediaDevices.getUserMedia = function (constraints) {
  7264. // 首先,如果有getUserMedia的话,就获得它
  7265. var getUserMedia =
  7266. navigator.getUserMedia ||
  7267. navigator.webkitGetUserMedia ||
  7268. navigator.mozGetUserMedia ||
  7269. navigator.msGetUserMedia;
  7270. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  7271. if (!getUserMedia) {
  7272. return Promise.reject({ code: 404 });
  7273. }
  7274. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  7275. return new Promise(function (resolve, reject) {
  7276. getUserMedia.call(navigator, constraints, resolve, reject);
  7277. });
  7278. };
  7279. }
  7280. return navigator.mediaDevices.getUserMedia(constraintsData);
  7281. },
  7282. /**
  7283. * 开始录制
  7284. */
  7285. startRecording(callback) {
  7286. let _function = (screenStream) => {
  7287. this.addStreamStopListener(screenStream, () => {
  7288. console.log("流停止监听");
  7289. this.stopRecording();
  7290. this.$emit("streamStop", {});
  7291. // this.stopRecording();
  7292. });
  7293. var options = {
  7294. type: "video",
  7295. mimeType: "video/webm",
  7296. disableLogs: false,
  7297. getNativeBlob: false, // enable it for longer recordings
  7298. ignoreMutedMedia: false,
  7299. };
  7300. // this.video.srcObject = screenStream;
  7301. this.recorder = RecordRTC(screenStream, options);
  7302. this.recorder.startRecording();
  7303. this.recorder.screen = screenStream;
  7304. this.videoStart = true;
  7305. // callback(true);
  7306. };
  7307. this.getAudioVideo({ audio: true })
  7308. .then((res) => {
  7309. this.captureScreen(_function, true);
  7310. console.log("已点击允许,开启成功");
  7311. })
  7312. .catch((err) => {
  7313. // console.log('浏览器不支持,请更换浏览器')
  7314. // } else {
  7315. this.captureScreen(_function, false);
  7316. console.log("请检查是否存在麦克风");
  7317. });
  7318. },
  7319. /**
  7320. * 停止录制
  7321. */
  7322. stopRecording(callback) {
  7323. this.recorder.stopRecording(() => {
  7324. // this.video.src = this.video.srcObject = null;
  7325. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  7326. const url = URL.createObjectURL(this.recorder.getBlob());
  7327. const a = document.createElement("a"); //this.fileName+
  7328. let videoFile = new File(
  7329. [this.recorder.getBlob()],
  7330. this.courseDetail.title + "录屏.mp4",
  7331. {
  7332. type: "video/mp4",
  7333. }
  7334. );
  7335. let downloadUrl = URL.createObjectURL(videoFile);
  7336. document.body.appendChild(a);
  7337. a.style.display = "none";
  7338. a.href = url;
  7339. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  7340. a.click();
  7341. this.recorder.screen.stop();
  7342. this.recorder.destroy();
  7343. this.recorder = null;
  7344. this.videoStart = false;
  7345. // callback(false);
  7346. });
  7347. },
  7348. //初始化
  7349. captureScreen(callback, type) {
  7350. if (navigator.getDisplayMedia) {
  7351. //录制结束,文件下载
  7352. navigator
  7353. .getDisplayMedia({
  7354. video: true,
  7355. })
  7356. .then((screenStream) => {
  7357. if (type) {
  7358. navigator.mediaDevices
  7359. .getUserMedia({ audio: true })
  7360. .then((mic) => {
  7361. screenStream.addTrack(mic.getTracks()[0]);
  7362. callback(screenStream);
  7363. });
  7364. } else {
  7365. callback(screenStream);
  7366. }
  7367. })
  7368. .catch(function (error) {
  7369. console.log("error", error);
  7370. });
  7371. } else if (navigator.mediaDevices.getDisplayMedia) {
  7372. navigator.mediaDevices
  7373. .getDisplayMedia({
  7374. video: true,
  7375. })
  7376. .then((screenStream) => {
  7377. if (type) {
  7378. navigator.mediaDevices
  7379. .getUserMedia({ audio: true })
  7380. .then((mic) => {
  7381. screenStream.addTrack(mic.getTracks()[0]);
  7382. callback(screenStream);
  7383. });
  7384. } else {
  7385. callback(screenStream);
  7386. }
  7387. })
  7388. .catch(function (error) {
  7389. console.log("error", error);
  7390. });
  7391. } else {
  7392. var error = "getDisplayMedia API are not supported in this browser.";
  7393. console.log("error", error);
  7394. alert(error);
  7395. }
  7396. },
  7397. //流监听
  7398. addStreamStopListener(stream, callback) {
  7399. stream.addEventListener(
  7400. "ended",
  7401. function () {
  7402. callback();
  7403. callback = function () { };
  7404. },
  7405. false
  7406. );
  7407. stream.addEventListener(
  7408. "inactive",
  7409. function () {
  7410. callback();
  7411. callback = function () { };
  7412. },
  7413. false
  7414. );
  7415. stream.getTracks().forEach(function (track) {
  7416. track.addEventListener(
  7417. "ended",
  7418. function () {
  7419. callback();
  7420. callback = function () { };
  7421. },
  7422. false
  7423. );
  7424. track.addEventListener(
  7425. "inactive",
  7426. function () {
  7427. callback();
  7428. callback = function () { };
  7429. },
  7430. false
  7431. );
  7432. });
  7433. },
  7434. updateGroup() {
  7435. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7436. this.dialogVisibleGroup2 = true;
  7437. },
  7438. updateGroupJson() {
  7439. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  7440. if (
  7441. this.groupStudentUid[this.toolindex][i].length >
  7442. this.groupJson2.number
  7443. ) {
  7444. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  7445. return;
  7446. }
  7447. }
  7448. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  7449. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7450. this.taskCount
  7451. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  7452. let params = [
  7453. {
  7454. cid: this.id,
  7455. chapters: JSON.stringify(this.chapInfoList),
  7456. uid: this.userid,
  7457. unitIndex: this.courseType,
  7458. },
  7459. ];
  7460. this.ajax
  7461. .post(this.$store.state.api + "updateWorkNew4", params)
  7462. .then((res) => {
  7463. this.$message.success("设置成功");
  7464. this.getCourseDetail(2);
  7465. this.dialogVisibleGroup2 = false;
  7466. this.groupJson2 = {};
  7467. this.$forceUpdate();
  7468. })
  7469. .catch((err) => {
  7470. this.$message.error("网络不佳");
  7471. console.error(err);
  7472. });
  7473. },
  7474. lockChair() {
  7475. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  7476. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  7477. this.updateGroupJson();
  7478. },
  7479. selectGroup(index) {
  7480. this.getCourseDetail(2, index);
  7481. },
  7482. joinGroup(index) {
  7483. if (this.groupJson.islock == 2) {
  7484. this.$message.error("位置已被锁定,无法加入");
  7485. return;
  7486. }
  7487. if (
  7488. this.groupStudent[this.toolindex][index].length >
  7489. this.groupJson.number ||
  7490. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  7491. ) {
  7492. this.$message.error("位置已满,无法加入");
  7493. return;
  7494. }
  7495. let params = [
  7496. {
  7497. cid: this.id,
  7498. stage: this.courseType,
  7499. task: this.taskCount,
  7500. tool: this.toolindex,
  7501. g: index,
  7502. uid: this.userid,
  7503. },
  7504. ];
  7505. this.ajax
  7506. .post(this.$store.state.api + "joinGroup", params)
  7507. .then((res) => {
  7508. this.$message.success("加入成功");
  7509. this.getCourseDetail();
  7510. })
  7511. .catch((err) => {
  7512. this.$message.error("网络不佳");
  7513. console.error(err);
  7514. });
  7515. },
  7516. exitGroup(id) {
  7517. if (this.groupJson.islock == 2) {
  7518. this.$message.error("位置已被锁定,无法退出");
  7519. return;
  7520. }
  7521. let params = [
  7522. {
  7523. gid: id,
  7524. },
  7525. ];
  7526. this.ajax
  7527. .post(this.$store.state.api + "exitGroup", params)
  7528. .then((res) => {
  7529. this.$message.success("退出成功");
  7530. this.getCourseDetail();
  7531. })
  7532. .catch((err) => {
  7533. this.$message.error("网络不佳");
  7534. console.error(err);
  7535. });
  7536. },
  7537. groupUpload(index, task, gindex) {
  7538. this.taskCount = task;
  7539. this.toolindex = index;
  7540. this.groupIndex = gindex;
  7541. this.dialogVisibleGroupWork = true;
  7542. },
  7543. updateGroupChair(user) {
  7544. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  7545. el.label = index;
  7546. return index != user.group;
  7547. });
  7548. this.updateGroupUser = user;
  7549. this.dialogVisibleUpdateGroup = true;
  7550. },
  7551. updateChair() {
  7552. if (
  7553. this.groupStudent[this.toolindex][this.checkChair].length >
  7554. this.groupJson.number ||
  7555. this.groupStudent[this.toolindex][this.checkChair].length ==
  7556. this.groupJson.number
  7557. ) {
  7558. this.$message.error("位置已满,无法加入");
  7559. return;
  7560. }
  7561. let params = [
  7562. {
  7563. cid: this.id,
  7564. stage: this.courseType,
  7565. task: this.taskCount,
  7566. tool: this.toolindex,
  7567. g: this.checkChair,
  7568. uid: this.updateGroupUser.userid,
  7569. },
  7570. ];
  7571. this.ajax
  7572. .post(this.$store.state.api + "joinGroup", params)
  7573. .then((res) => {
  7574. this.$message.success("修改成功");
  7575. this.updateGroupUser = {};
  7576. this.checkChair = "";
  7577. this.updateGroupArray = {};
  7578. this.dialogVisibleUpdateGroup = false;
  7579. this.getCourseDetail();
  7580. })
  7581. .catch((err) => {
  7582. this.$message.error("网络不佳");
  7583. console.error(err);
  7584. });
  7585. },
  7586. deleteGroupChair(gindex) {
  7587. this.checkDeleteGroup = [];
  7588. this.deleteGroupUser = JSON.parse(
  7589. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  7590. );
  7591. this.deleteGroupArray = this.groupJson.group[gindex];
  7592. this.groupIndex = gindex;
  7593. this.dialogVisibleDeleteGroup = true;
  7594. },
  7595. async deleteChair() {
  7596. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  7597. const gid =
  7598. this.groupStudent[this.toolindex][this.groupIndex][
  7599. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  7600. this.checkDeleteGroup[i]
  7601. )
  7602. ];
  7603. let params = [
  7604. {
  7605. gid: gid.id,
  7606. },
  7607. ];
  7608. var a = await this.deleteChairA(params);
  7609. if (i == this.checkDeleteGroup.length - 1) {
  7610. this.$message.success("退出成功");
  7611. this.dialogVisibleDeleteGroup = false;
  7612. this.deleteGroupUser = [];
  7613. this.deleteGroupArray = {};
  7614. this.groupIndex = "";
  7615. this.checkDeleteGroup = [];
  7616. this.getCourseDetail();
  7617. }
  7618. }
  7619. },
  7620. deleteChairA(params) {
  7621. return new Promise((resolve, reject) => {
  7622. this.ajax
  7623. .post(this.$store.state.api + "exitGroup", params)
  7624. .then((res) => {
  7625. resolve(1);
  7626. })
  7627. .catch((err) => {
  7628. this.$message.error("网络不佳");
  7629. console.error(err);
  7630. });
  7631. });
  7632. },
  7633. contract(i) {
  7634. if (this.isCloseList.isClose == 0) {
  7635. this.isCloseList.isClose = 1;
  7636. } else {
  7637. this.isCloseList.isClose = 0;
  7638. }
  7639. this.$forceUpdate();
  7640. },
  7641. },
  7642. directives: {
  7643. // 使用局部注册指令的方式
  7644. resize: {
  7645. // 指令的名称
  7646. bind(el, binding) {
  7647. // el为绑定的元素,binding为绑定给指令的对象
  7648. let width = "",
  7649. height = "";
  7650. function isReize() {
  7651. const style = document.defaultView.getComputedStyle(el);
  7652. if (width !== style.width || height !== style.height) {
  7653. binding.value(); // 关键
  7654. }
  7655. width = style.width;
  7656. height = style.height;
  7657. }
  7658. el.__vueSetInterval__ = setInterval(isReize, 300);
  7659. },
  7660. unbind(el) {
  7661. clearInterval(el.__vueSetInterval__);
  7662. },
  7663. },
  7664. },
  7665. beforeDestroy() {
  7666. window.onresize = null;
  7667. clearInterval(this.timer);
  7668. this.timer = null;
  7669. clearInterval(this.opertimer);
  7670. this.opertimer = null;
  7671. },
  7672. computed: {
  7673. contentConvent() {
  7674. return function (c) {
  7675. return c
  7676. ? c
  7677. .replaceAll(/\r\n/g, "<br/>")
  7678. .replaceAll(/\n/g, "<br/>")
  7679. .replaceAll(/\s/g, " &nbsp")
  7680. : "";
  7681. };
  7682. },
  7683. checkUpload() {
  7684. return function () {
  7685. var studentK = [];
  7686. if (this.plworkFile.length > 0) {
  7687. for (var z = 0; z < this.plworkFile.length; z++) {
  7688. studentK.push(this.plworkFile[z].username);
  7689. }
  7690. studentK = studentK.join(",");
  7691. }
  7692. var a = this.uploadStudentJuri.filter((el) => {
  7693. return studentK.indexOf(el.userid) == -1
  7694. });
  7695. return a
  7696. }
  7697. }
  7698. },
  7699. mounted() {
  7700. if (this.screenType == 2) {
  7701. window.parent.postMessage({ allScreen: 4 }, "*");
  7702. } else if (this.screenType == 3) {
  7703. window.parent.postMessage({ allScreen: 5 }, "*");
  7704. } else if (this.screenType == 1) {
  7705. window.parent.postMessage({ allScreen: 6 }, "*");
  7706. }
  7707. this.setOperationTime();
  7708. this.selectEva();
  7709. this.getCourseDetail();
  7710. this.selectCount();
  7711. this.getHomeWork();
  7712. this.toolIndex = null
  7713. this.contentDialog = true;
  7714. this.setContent2(true)
  7715. if (this.tType == 4) {
  7716. this.pzDialog = true;
  7717. this.selectPz();
  7718. }
  7719. document.scrollingElement.scrollTop = 0;
  7720. window.addEventListener("resize", () => {
  7721. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  7722. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  7723. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  7724. });
  7725. let _this = this;
  7726. setTimeout(() => {
  7727. // _this.vedioTime = [];
  7728. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  7729. // _this.vedioTime[i] = document.getElementsByClassName(
  7730. // "vjs-duration-display"
  7731. // )[i].textContent;
  7732. // }
  7733. }, 1000);
  7734. },
  7735. };
  7736. </script>
  7737. <style scoped>
  7738. @media screen and (max-width: 1280px) {
  7739. /* .courseIndex > div:first-child(2) {
  7740. width: 15% !important;
  7741. } */
  7742. /* .navText {
  7743. width: 120px !important;
  7744. } */
  7745. .evaCss {
  7746. flex-direction: column !important;
  7747. align-items: center !important;
  7748. }
  7749. .dialog_diy1>>>.el-dialog {
  7750. width: 100% !important;
  7751. }
  7752. .rightWidthCss {
  7753. width: 100% !important;
  7754. }
  7755. .dialog_diy3>>>.el-dialog {
  7756. width: 100% !important;
  7757. }
  7758. /* .textTitle >>> .el-form-item__label {
  7759. width: 150px !important;
  7760. } */
  7761. }
  7762. .evaCssMax {
  7763. flex-direction: column !important;
  7764. align-items: center !important;
  7765. }
  7766. .dialog_diy>>>.el-dialog {
  7767. margin-top: 10vh !important;
  7768. }
  7769. .body_student {
  7770. width: 77%;
  7771. height: 100%;
  7772. position: absolute;
  7773. left: 22%;
  7774. top: 0;
  7775. }
  7776. .student_head {
  7777. width: 100%;
  7778. margin: 0 auto;
  7779. padding-bottom: 20px;
  7780. display: flex;
  7781. flex-direction: column;
  7782. flex-wrap: nowrap;
  7783. align-items: flex-start;
  7784. justify-content: flex-start;
  7785. }
  7786. .pb_left {
  7787. width: 20%;
  7788. margin-right: 10px;
  7789. background: rgb(255, 255, 255);
  7790. padding-right: 10px;
  7791. position: fixed;
  7792. height: 100%;
  7793. }
  7794. .wheel>img,
  7795. .project>img,
  7796. .star>img,
  7797. .evaluate>img,
  7798. .up_photo>img,
  7799. .chapter_add>img,
  7800. .deleteWord>img,
  7801. .question>img,
  7802. .homework>img {
  7803. width: 100%;
  7804. height: 100%;
  7805. }
  7806. .upCover>img {
  7807. width: 131px;
  7808. height: 69px;
  7809. object-fit: cover;
  7810. }
  7811. .upCover {
  7812. width: calc(100% / 3.5);
  7813. position: relative;
  7814. margin: 0 15px 10px 0;
  7815. display: flex;
  7816. flex-direction: column;
  7817. flex-wrap: nowrap;
  7818. justify-content: center;
  7819. align-content: center;
  7820. align-items: center;
  7821. height: fit-content;
  7822. }
  7823. .upCover2 {
  7824. width: 100%;
  7825. position: relative;
  7826. margin: 0 15px 10px 0;
  7827. display: flex;
  7828. flex-direction: column;
  7829. flex-wrap: nowrap;
  7830. justify-content: center;
  7831. align-content: center;
  7832. align-items: center;
  7833. }
  7834. .upCover2>img {
  7835. width: 100%;
  7836. height: 90px;
  7837. object-fit: contain;
  7838. }
  7839. .chapter_add {
  7840. width: 120px;
  7841. position: relative;
  7842. text-align: center;
  7843. }
  7844. .isAddThings {
  7845. margin-top: 20px;
  7846. position: relative;
  7847. text-align: center;
  7848. background: #f7f8fa;
  7849. height: 90px;
  7850. width: 90px;
  7851. display: flex;
  7852. flex-direction: column;
  7853. justify-content: center;
  7854. }
  7855. .deleteWord {
  7856. width: 22px;
  7857. height: 22px;
  7858. position: absolute;
  7859. right: -5px;
  7860. top: -5px;
  7861. cursor: pointer;
  7862. }
  7863. .box_course {
  7864. /* width: 60%; */
  7865. width: 81%;
  7866. }
  7867. .wheel {
  7868. width: 100%;
  7869. /* height: 100%; */
  7870. height: 650px;
  7871. }
  7872. .right_box {
  7873. display: flex;
  7874. flex-direction: column;
  7875. margin-left: 30px;
  7876. justify-content: space-around;
  7877. }
  7878. .right_box_title {
  7879. font-size: 23px;
  7880. }
  7881. .people {
  7882. display: flex;
  7883. }
  7884. .student_body {
  7885. width: 100%;
  7886. margin: 0 auto;
  7887. margin-top: 10px;
  7888. padding: 0 0 20px;
  7889. }
  7890. .study_top {
  7891. margin-top: 70px;
  7892. width: 100%;
  7893. /* overflow: auto; */
  7894. height: auto;
  7895. }
  7896. .study_top .checkbox {
  7897. display: flex;
  7898. align-items: center;
  7899. padding: 15px 0 15px 30px;
  7900. flex: 0 0 auto;
  7901. font-weight: bold;
  7902. border-bottom: 1px solid #eee;
  7903. }
  7904. .study_top .check {
  7905. padding-bottom: 5px;
  7906. text-align: center;
  7907. cursor: pointer;
  7908. height: 30px;
  7909. box-sizing: border-box;
  7910. display: flex;
  7911. }
  7912. .study_top .checked {
  7913. border-bottom: 4px solid #3fc6a0;
  7914. padding-bottom: 5px;
  7915. color: #3fc6a0;
  7916. display: flex;
  7917. height: 35px;
  7918. }
  7919. .study_top .checked>div,
  7920. .study_top .check>div {
  7921. margin-right: 5px;
  7922. }
  7923. .videoTop {
  7924. display: flex;
  7925. flex-direction: row;
  7926. justify-content: space-between;
  7927. background: #fff;
  7928. align-items: center;
  7929. width: 95%;
  7930. padding: 20px;
  7931. }
  7932. .upbtn {
  7933. margin: 25px;
  7934. background: #70afdb;
  7935. color: #fff;
  7936. width: 120px;
  7937. text-align: center;
  7938. height: 30px;
  7939. line-height: 30px;
  7940. font-size: 13px;
  7941. border-radius: 5px;
  7942. cursor: pointer;
  7943. }
  7944. .filebox {
  7945. display: flex;
  7946. flex-wrap: wrap;
  7947. flex-direction: column;
  7948. padding: 15px 0 5px;
  7949. }
  7950. .filebox .tooldetail {
  7951. width: 100%;
  7952. margin: 0px 12px;
  7953. background: rgb(247, 247, 247);
  7954. padding: 20px;
  7955. line-height: 30px;
  7956. word-break: break-word;
  7957. }
  7958. .file {
  7959. display: flex;
  7960. flex-direction: column;
  7961. align-items: center;
  7962. justify-content: center;
  7963. cursor: pointer;
  7964. width: 200px;
  7965. }
  7966. .file div {
  7967. margin-top: 10px;
  7968. width: 150px;
  7969. text-align: center;
  7970. overflow: hidden;
  7971. white-space: nowrap;
  7972. text-overflow: ellipsis;
  7973. }
  7974. .media {
  7975. display: flex;
  7976. flex-direction: column;
  7977. align-items: center;
  7978. justify-content: center;
  7979. margin: 0 20px 20px 0;
  7980. cursor: pointer;
  7981. margin: 12px 0 5px 15px;
  7982. overflow: hidden;
  7983. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  7984. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  7985. box-sizing: border-box;
  7986. }
  7987. .media img {
  7988. height: 90px;
  7989. width: 160px;
  7990. object-fit: cover;
  7991. }
  7992. .media .title {
  7993. padding: 5px;
  7994. text-align: left;
  7995. width: 100%;
  7996. box-sizing: border-box;
  7997. }
  7998. .media .btn {
  7999. width: 100%;
  8000. height: 35px;
  8001. line-height: 35px;
  8002. color: #fff;
  8003. background: #606060;
  8004. text-align: center;
  8005. overflow: hidden;
  8006. white-space: nowrap;
  8007. text-overflow: ellipsis;
  8008. }
  8009. .detail_content_top {
  8010. width: 100%;
  8011. padding: 25px 0 25px 0;
  8012. }
  8013. .detail_title {
  8014. text-align: center;
  8015. font-size: 24px;
  8016. }
  8017. .detail_time {
  8018. font-size: 13px;
  8019. padding: 15px 0 0 40px;
  8020. }
  8021. .detail_content {
  8022. line-height: 2pc;
  8023. width: 90%;
  8024. margin: 0 auto;
  8025. padding-top: 30px;
  8026. text-indent: 30px;
  8027. overflow: auto;
  8028. height: 200px;
  8029. }
  8030. .score_box>>>.el-rate {
  8031. margin-left: 10px;
  8032. }
  8033. .dialog_change>>>.el-dialog {
  8034. border-radius: 5px;
  8035. }
  8036. .dialog_change>>>.el-dialog__header {
  8037. background: #f2f2f2;
  8038. text-align: center;
  8039. }
  8040. .dialog_change>>>.el-dialog__title {
  8041. line-height: 5px;
  8042. }
  8043. .dialog_change>>>.el-dialog__body {
  8044. background: #fff;
  8045. padding: 10px 20px;
  8046. }
  8047. .score_box {
  8048. display: flex;
  8049. align-items: center;
  8050. margin-bottom: 18px;
  8051. margin-top: 20px;
  8052. }
  8053. .up_photo {
  8054. width: 120px;
  8055. cursor: pointer;
  8056. margin-top: 10px;
  8057. }
  8058. .up_photo2 {
  8059. width: 180px;
  8060. box-sizing: border-box;
  8061. min-width: 180px;
  8062. height: 180px;
  8063. max-height: 180px;
  8064. min-height: 180px;
  8065. cursor: pointer;
  8066. display: flex;
  8067. flex-direction: column;
  8068. align-items: center;
  8069. justify-content: center;
  8070. background: rgb(242, 246, 255);
  8071. /* padding: 25px; */
  8072. margin-bottom: 10px;
  8073. }
  8074. .up_photo2 img {
  8075. width: 50%;
  8076. height: auto;
  8077. }
  8078. .up_photo2 span {
  8079. color: #898989;
  8080. }
  8081. .plworkBox {
  8082. display: flex;
  8083. align-items: center;
  8084. margin-top: 10px;
  8085. flex-wrap: wrap;
  8086. }
  8087. .upload_send {
  8088. margin: 30px auto 30px;
  8089. width: 60%;
  8090. background: #169bd6;
  8091. text-align: center;
  8092. height: 35px;
  8093. line-height: 35px;
  8094. color: #fff;
  8095. border-radius: 5px;
  8096. cursor: pointer;
  8097. }
  8098. .marginT {
  8099. margin-top: 20px;
  8100. }
  8101. .cd_content_steps {
  8102. display: flex;
  8103. width: 90%;
  8104. justify-content: space-around;
  8105. border-top: 1px solid #eeeeee;
  8106. }
  8107. .cd_steps_box {
  8108. display: flex;
  8109. justify-content: center;
  8110. align-items: center;
  8111. flex-direction: column;
  8112. cursor: pointer;
  8113. }
  8114. .first {
  8115. display: flex;
  8116. align-items: center;
  8117. margin: 15px 0 20px 0;
  8118. font-size: 20px;
  8119. }
  8120. .first>div:nth-child(2) {
  8121. font-size: 16px !important;
  8122. padding-left: 10px;
  8123. line-height: 26px;
  8124. box-sizing: border-box;
  8125. }
  8126. .blue_box_one {
  8127. text-align: center;
  8128. color: #fff;
  8129. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  8130. border-radius: 7px;
  8131. margin: 10px;
  8132. cursor: pointer;
  8133. width: 95%;
  8134. height: 45px;
  8135. display: flex;
  8136. flex-direction: row;
  8137. justify-content: flex-start;
  8138. align-items: center;
  8139. }
  8140. .blue_box_one>div:nth-child(1) {
  8141. line-height: 30px;
  8142. margin: 0 5px 0 10px;
  8143. width: 30%;
  8144. min-width: 70px;
  8145. border-radius: 4px;
  8146. }
  8147. .blue_box_one>div:nth-child(2) {
  8148. white-space: nowrap;
  8149. text-overflow: ellipsis;
  8150. overflow: hidden;
  8151. word-break: break-all;
  8152. width: 70%;
  8153. text-align: left;
  8154. margin-right: 10px;
  8155. max-width: calc(100% - 85px);
  8156. }
  8157. .blue_box_one>div:nth-child(2):hover {
  8158. overflow: hidden;
  8159. text-overflow: ellipsis;
  8160. white-space: nowrap;
  8161. cursor: pointer;
  8162. }
  8163. .upFile {
  8164. margin: 0 auto;
  8165. width: 120px;
  8166. background: #70afdb;
  8167. color: #fff;
  8168. height: 30px;
  8169. text-align: center;
  8170. line-height: 30px;
  8171. border-radius: 5px;
  8172. font-size: 14px;
  8173. cursor: pointer;
  8174. }
  8175. .courseTitle {
  8176. background: #205cc6;
  8177. width: 85%;
  8178. margin: 10px auto;
  8179. color: #fff;
  8180. border-radius: 5px;
  8181. padding: 10px 10px;
  8182. display: flex;
  8183. flex-direction: row;
  8184. align-items: center;
  8185. justify-content: space-between;
  8186. text-align: center;
  8187. }
  8188. .courseTitle .ctitle {
  8189. font-weight: bold;
  8190. font-size: 20px;
  8191. white-space: nowrap;
  8192. overflow: hidden;
  8193. text-overflow: ellipsis;
  8194. }
  8195. .courseTitle .inviteBox {
  8196. font-size: 14px;
  8197. margin-top: 5px;
  8198. color: #a6cbff;
  8199. }
  8200. .courseTitle>>>.el-tooltip {
  8201. width: 100%;
  8202. white-space: nowrap;
  8203. overflow: hidden;
  8204. text-overflow: ellipsis;
  8205. word-break: break-word;
  8206. }
  8207. .ml {
  8208. margin-left: 20px;
  8209. color: #5b7dba;
  8210. border-left: 3px solid #5b7dba;
  8211. padding-left: 5px;
  8212. font-weight: bold;
  8213. }
  8214. .return {
  8215. width: 2rem;
  8216. height: 2rem;
  8217. cursor: pointer;
  8218. }
  8219. .return>img {
  8220. width: 100%;
  8221. height: 100%;
  8222. }
  8223. .returnBtn {
  8224. background: #499eef;
  8225. width: 65px;
  8226. height: 30px;
  8227. color: #fff;
  8228. text-align: center;
  8229. line-height: 32px;
  8230. margin-right: 20px;
  8231. cursor: pointer;
  8232. border-radius: 5px;
  8233. font-size: 14px;
  8234. }
  8235. .mask {
  8236. background-color: rgba(0, 0, 0, 0);
  8237. position: fixed;
  8238. top: 0;
  8239. left: 0;
  8240. width: 100%;
  8241. height: 100%;
  8242. z-index: 20000;
  8243. display: flex;
  8244. align-items: center;
  8245. justify-content: center;
  8246. }
  8247. .progressBox {
  8248. width: 500px;
  8249. height: 180px;
  8250. background: #fff;
  8251. border-radius: 10px;
  8252. box-shadow: 0 0 6px 1px #bfbfbf;
  8253. display: flex;
  8254. align-items: center;
  8255. justify-content: center;
  8256. flex-direction: column;
  8257. position: relative;
  8258. color: #6c6c6c;
  8259. }
  8260. .progressBox>>>.el-progress-bar__outer {
  8261. background-color: #d1dfff !important;
  8262. }
  8263. .progressBox .lbox {
  8264. height: 50px;
  8265. font-size: 19px;
  8266. display: flex;
  8267. align-items: center;
  8268. color: #747474;
  8269. }
  8270. .progressBox .lbox img {
  8271. width: 40px;
  8272. margin-right: 20px;
  8273. }
  8274. .closeCss {
  8275. position: absolute;
  8276. top: 8px;
  8277. right: 8px;
  8278. cursor: pointer;
  8279. width: 20px;
  8280. height: 20px;
  8281. }
  8282. .closeCss>img {
  8283. width: 100%;
  8284. height: 100%;
  8285. }
  8286. .uploadVedio {
  8287. display: flex;
  8288. flex-direction: column;
  8289. flex-wrap: nowrap;
  8290. justify-content: center;
  8291. align-items: center;
  8292. margin: 0 15px 10px 0;
  8293. }
  8294. .uploadVedio>img {
  8295. width: 30px;
  8296. height: 30px;
  8297. }
  8298. .uploadVedio>span {
  8299. white-space: nowrap;
  8300. overflow: hidden;
  8301. text-overflow: ellipsis;
  8302. width: 75px;
  8303. margin-top: 7px;
  8304. }
  8305. .picName {
  8306. white-space: nowrap;
  8307. overflow: hidden;
  8308. text-overflow: ellipsis;
  8309. width: 75px;
  8310. margin-top: 7px;
  8311. }
  8312. .new_top {
  8313. display: flex;
  8314. background: #fff;
  8315. flex-direction: row;
  8316. justify-content: flex-start;
  8317. align-items: center;
  8318. height: 60px;
  8319. position: relative;
  8320. }
  8321. .before {
  8322. position: absolute;
  8323. background: #c3dad4;
  8324. width: 6px;
  8325. height: 100%;
  8326. }
  8327. .courseIndex {
  8328. display: flex;
  8329. flex-direction: row;
  8330. align-items: center;
  8331. width: calc(100% - 520px);
  8332. }
  8333. .courseIndex>div:nth-child(1) {
  8334. margin: 0 20px;
  8335. padding-left: 5px;
  8336. font-size: 24px;
  8337. min-width: 100px;
  8338. font-weight: bold;
  8339. border-left: 4px solid #3363b9;
  8340. height: 35px;
  8341. text-align: center;
  8342. line-height: 35px;
  8343. }
  8344. .courseIndex>div:nth-child(2) {
  8345. font-size: 23px;
  8346. /* width: 300px; */
  8347. max-width: calc(100% - 180px);
  8348. white-space: nowrap;
  8349. overflow: hidden;
  8350. text-overflow: ellipsis;
  8351. }
  8352. .courseIndex>div:nth-child(3) {
  8353. border-bottom: 1px solid #d7d7d7;
  8354. padding-bottom: 5px;
  8355. background: #49a0f0;
  8356. width: 55px;
  8357. min-width: 55px;
  8358. border-radius: 5px;
  8359. color: #fff;
  8360. text-align: center;
  8361. height: 20px;
  8362. line-height: 26px;
  8363. font-size: 14px;
  8364. margin: 0 0 0 10px;
  8365. }
  8366. .course_text {
  8367. padding: 20px 0 0 15px;
  8368. text-indent: 30px;
  8369. width: 80%;
  8370. min-height: 20px;
  8371. }
  8372. .vedioList {
  8373. background: #f2f2f2;
  8374. border: 1px solid #ececec;
  8375. /* width: 38.8%; */
  8376. width: 100%;
  8377. height: 445px;
  8378. border-radius: 10px;
  8379. overflow: hidden;
  8380. }
  8381. .vedioNav {
  8382. margin: 10px 0 0 15px;
  8383. border-bottom: 1px solid #d7d7d7;
  8384. padding-bottom: 5px;
  8385. background: #96d1ff;
  8386. width: 55px;
  8387. min-width: 55px;
  8388. border-radius: 5px;
  8389. color: #fff;
  8390. text-align: center;
  8391. height: 20px;
  8392. line-height: 26px;
  8393. font-size: 14px;
  8394. }
  8395. .queTop {
  8396. display: flex;
  8397. padding: 20px 0 20px 30px;
  8398. width: 100%;
  8399. flex-direction: row;
  8400. justify-content: flex-start;
  8401. align-items: center;
  8402. border-bottom: 1px solid #eeeeee;
  8403. box-sizing: border-box;
  8404. }
  8405. .question {
  8406. width: 40px;
  8407. margin-right: 10px;
  8408. margin-top: 7px;
  8409. }
  8410. .queTitle {
  8411. margin-left: 5px;
  8412. font-size: 25px;
  8413. display: flex;
  8414. align-items: center;
  8415. }
  8416. .addEditor {
  8417. width: 100px;
  8418. height: 30px;
  8419. background: #42cda6;
  8420. color: #fff;
  8421. border-radius: 5px;
  8422. text-align: center;
  8423. line-height: 30px;
  8424. box-shadow: 1px 3px 6px 1px #bfbfbf;
  8425. cursor: pointer;
  8426. }
  8427. .vedioName {
  8428. /* text-overflow: ellipsis;
  8429. top: 8px;
  8430. font-size: 14px;
  8431. overflow: hidden;
  8432. width: 100%;
  8433. word-break: break-all;
  8434. white-space: nowrap; */
  8435. cursor: pointer;
  8436. margin: 0px 0px 10px 5px;
  8437. white-space: nowrap;
  8438. overflow: hidden;
  8439. text-overflow: ellipsis;
  8440. width: 100%;
  8441. }
  8442. .vedioTime {
  8443. width: 35px;
  8444. position: absolute;
  8445. color: #fff;
  8446. bottom: 0px;
  8447. right: 0px;
  8448. text-align: center;
  8449. background: #46411f;
  8450. height: 20px;
  8451. font-size: 14px;
  8452. line-height: 20px;
  8453. }
  8454. .homework {
  8455. width: 200px;
  8456. display: flex;
  8457. flex-direction: column;
  8458. flex-wrap: nowrap;
  8459. align-items: center;
  8460. cursor: pointer;
  8461. }
  8462. .homebox {
  8463. display: flex;
  8464. flex-wrap: wrap;
  8465. flex-direction: row;
  8466. justify-content: flex-start;
  8467. align-items: center;
  8468. padding: 15px 0;
  8469. }
  8470. .isChooseActive {
  8471. color: #3e88f4;
  8472. border-bottom: 2px solid #2f80f3;
  8473. }
  8474. .tool_box {
  8475. width: 100%;
  8476. margin-top: 20px
  8477. }
  8478. .tool_type_box {
  8479. display: flex;
  8480. flex-direction: row;
  8481. align-items: baseline;
  8482. flex-wrap: nowrap;
  8483. justify-content: flex-start;
  8484. position: relative;
  8485. }
  8486. .addPoint>div>img {
  8487. cursor: pointer;
  8488. margin: 0 10px;
  8489. width: 85px;
  8490. border-radius: 15px;
  8491. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  8492. }
  8493. .addPoint>div {
  8494. display: flex;
  8495. flex-direction: column;
  8496. flex-wrap: nowrap;
  8497. align-items: center;
  8498. }
  8499. .isBorder>div {
  8500. margin: 0 0 10px 0;
  8501. align-items: flex-start !important;
  8502. }
  8503. .noiframeBox {
  8504. display: flex;
  8505. flex-wrap: wrap;
  8506. }
  8507. .iframeBox iframe {
  8508. width: 100%;
  8509. height: 800px;
  8510. border: none;
  8511. margin-bottom: 20px;
  8512. border: 1px solid #ccc;
  8513. }
  8514. .upload_toolBtn {
  8515. background: #6b92c9;
  8516. color: #fff;
  8517. width: 110px;
  8518. text-align: center;
  8519. height: 35px;
  8520. line-height: 35px;
  8521. font-size: 14px;
  8522. border-radius: 5px;
  8523. cursor: pointer;
  8524. position: absolute;
  8525. right: 10px;
  8526. bottom: 0;
  8527. }
  8528. .binfo_input,
  8529. .pj {
  8530. font: inherit;
  8531. color: currentColor;
  8532. width: 100%;
  8533. margin: 0;
  8534. padding: 15px 14px;
  8535. display: block;
  8536. min-width: 0;
  8537. outline: none;
  8538. box-sizing: content-box;
  8539. background: none;
  8540. -webkit-tap-highlight-color: transparent;
  8541. border: 1px solid rgba(0, 0, 0, 0.23);
  8542. border-radius: 4px;
  8543. box-sizing: border-box;
  8544. resize: none;
  8545. }
  8546. .binfo_input:focus-visible {
  8547. border: 1px solid rgba(61, 103, 188);
  8548. }
  8549. .dialog_diy>>>.el-dialog__header,
  8550. .dialog_diy1>>>.el-dialog__header {
  8551. background: #454545 !important;
  8552. padding: 15px 20px;
  8553. }
  8554. .dialog_diy>>>.el-dialog__title,
  8555. .dialog_diy1>>>.el-dialog__title {
  8556. color: #fff;
  8557. }
  8558. .dialog_diy>>>.el-dialog__headerbtn,
  8559. .dialog_diy1>>>.el-dialog__headerbtn {
  8560. top: 19px;
  8561. }
  8562. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  8563. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  8564. color: #fff;
  8565. }
  8566. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  8567. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8568. color: #fff;
  8569. }
  8570. .dialog_diy1>>>.el-dialog__body {
  8571. padding: 0;
  8572. }
  8573. .dialog_diy>>>.el-dialog__body,
  8574. .dialog_diy>>>.el-dialog__footer,
  8575. .dialog_diy1>>>.el-dialog__footer {
  8576. background: #fafafa;
  8577. }
  8578. .a_addBox {
  8579. margin: 10px 0;
  8580. background: #fff;
  8581. padding: 15px;
  8582. }
  8583. .a_add_box {
  8584. border-bottom: 2px solid #eee;
  8585. padding-bottom: 10px;
  8586. }
  8587. .a_add_head {
  8588. display: flex;
  8589. align-items: flex-start;
  8590. /* justify-content: space-between; */
  8591. flex-direction: column;
  8592. /* flex-direction: row; */
  8593. margin: 10px 0 20px 0;
  8594. font-size: 18px;
  8595. width: 100%;
  8596. }
  8597. .a_add_head .a_add_head_input {
  8598. width: 300px;
  8599. }
  8600. .a_add_head .a_add_head_div {
  8601. display: flex;
  8602. align-items: center;
  8603. justify-content: space-between;
  8604. }
  8605. .a_add_body {
  8606. display: flex;
  8607. align-items: center;
  8608. }
  8609. .a_add_input {
  8610. display: flex;
  8611. align-items: center;
  8612. flex-wrap: wrap;
  8613. }
  8614. .a_add_input>>>el-radio-group {
  8615. margin: 10px 0;
  8616. }
  8617. .a_add_input>>>.el-radio,
  8618. .a_add_input>>>.el-checkbox {
  8619. margin-bottom: 10px;
  8620. display: flex;
  8621. flex-direction: row;
  8622. flex-wrap: nowrap;
  8623. align-items: center;
  8624. }
  8625. .redioStyle>>>.el-radio__label {
  8626. font-size: 18px;
  8627. }
  8628. .redioStyle>>>.el-checkbox__label {
  8629. font-size: 18px;
  8630. }
  8631. .toolHeng2 {
  8632. width: 100%;
  8633. }
  8634. .toolHeng {
  8635. display: flex;
  8636. flex-direction: row;
  8637. flex-wrap: wrap;
  8638. justify-content: flex-start;
  8639. align-items: center;
  8640. width: 100%;
  8641. }
  8642. .toolHeng>div {
  8643. padding-left: 20px;
  8644. }
  8645. .isWidth {
  8646. width: 20%;
  8647. }
  8648. .textTitle {
  8649. display: flex;
  8650. flex-direction: row;
  8651. flex-wrap: nowrap;
  8652. align-items: center;
  8653. width: 95%;
  8654. }
  8655. .textTitle>>>.el-form-item__label {
  8656. font-size: 22px;
  8657. color: #918f8f;
  8658. width: 100px;
  8659. }
  8660. .textTitle>>>.el-form-item__content {
  8661. width: calc(100% - 100px);
  8662. }
  8663. .textCss>>>.el-dialog {
  8664. width: 800px !important;
  8665. height: 400px;
  8666. background: #fafafa;
  8667. }
  8668. .textCss>>>.el-dialog__body {
  8669. margin: 55px 8% 0 8%;
  8670. padding: 0 !important;
  8671. }
  8672. .textCss>>>.el-dialog__footer {
  8673. padding-top: 38px;
  8674. }
  8675. .toolsCss>>>.el-dialog__body {
  8676. padding: 20px;
  8677. }
  8678. .lineCss>>>.el-dialog__body {
  8679. display: flex;
  8680. flex-direction: row;
  8681. align-items: center;
  8682. justify-content: center;
  8683. }
  8684. .newNav {
  8685. display: flex;
  8686. flex-direction: row;
  8687. align-items: baseline;
  8688. justify-content: flex-start;
  8689. }
  8690. .navText {
  8691. cursor: pointer;
  8692. margin: 0px 0px 10px 5px;
  8693. white-space: nowrap;
  8694. overflow: hidden;
  8695. text-overflow: ellipsis;
  8696. /* width: 300px; */
  8697. width: 100%;
  8698. }
  8699. .noVedio {
  8700. display: flex;
  8701. flex-direction: row;
  8702. justify-content: center;
  8703. align-content: center;
  8704. }
  8705. .noNavText {
  8706. cursor: pointer;
  8707. margin: 0px 0px 10px 5px;
  8708. width: 112px;
  8709. }
  8710. .listNoVedio {
  8711. margin: 0 0 0 30px;
  8712. width: 97%;
  8713. }
  8714. .video-player>>>.video-js {
  8715. height: 100%;
  8716. }
  8717. .hangVedioList {
  8718. width: 90% !important;
  8719. height: 150px !important;
  8720. margin: 20px 0 0 30px;
  8721. }
  8722. .hangVedio {
  8723. width: 100%;
  8724. height: 170px !important;
  8725. align-items: flex-start !important;
  8726. }
  8727. .hangHand {
  8728. height: 150px !important;
  8729. }
  8730. .twoChild {
  8731. width: 95%;
  8732. margin: 10px;
  8733. border-radius: 5px;
  8734. background: #f2f2f2;
  8735. display: flex;
  8736. flex-direction: column;
  8737. flex-wrap: nowrap;
  8738. justify-content: flex-start;
  8739. align-items: flex-start;
  8740. transition: all 0.5s;
  8741. overflow: hidden;
  8742. height: 0;
  8743. background: #e7f3ff;
  8744. }
  8745. .twoChild>div:nth-child(1) {
  8746. margin-top: 5px;
  8747. }
  8748. .navChild {
  8749. width: 100%;
  8750. cursor: pointer;
  8751. margin-bottom: 10px;
  8752. position: relative;
  8753. }
  8754. .navChild img {
  8755. position: absolute;
  8756. right: 11px;
  8757. width: 15px;
  8758. top: 50%;
  8759. transform: translateY(-50%);
  8760. }
  8761. .navActive {
  8762. height: auto;
  8763. }
  8764. .navTask {
  8765. display: flex;
  8766. flex-direction: row;
  8767. flex-wrap: nowrap;
  8768. align-items: center;
  8769. align-content: flex-start;
  8770. height: 40px;
  8771. justify-content: flex-start;
  8772. padding: 0 10px;
  8773. width: 100%;
  8774. box-sizing: border-box;
  8775. }
  8776. .navTaskname {
  8777. white-space: nowrap;
  8778. text-overflow: ellipsis;
  8779. overflow: hidden;
  8780. word-break: break-all;
  8781. padding-left: 5px;
  8782. }
  8783. .openTaskActive {
  8784. color: #4386e6;
  8785. }
  8786. .iframeName {
  8787. margin: 5px 0;
  8788. border-left: 4px solid #41c4a4;
  8789. padding-left: 4px;
  8790. }
  8791. .toolTitle {
  8792. margin: 0px 0px 20px;
  8793. font-size: 20px;
  8794. font-weight: 500;
  8795. border-left: 4px solid #41c4a4;
  8796. padding-left: 4px;
  8797. }
  8798. .cru_selectBox {
  8799. overflow: auto;
  8800. width: 96%;
  8801. margin: 0 auto;
  8802. height: calc(100% - 40px - 21px - 20px);
  8803. }
  8804. .cru_selectBox::-webkit-scrollbar,
  8805. .study_top::-webkit-scrollbar,
  8806. .textContent::-webkit-scrollbar {
  8807. /*滚动条整体样式*/
  8808. width: 6px;
  8809. /*高宽分别对应横竖滚动条的尺寸*/
  8810. height: 6px;
  8811. }
  8812. /*定义滚动条轨道 内阴影+圆角*/
  8813. .cru_selectBox::-webkit-scrollbar-track,
  8814. .study_top::-webkit-scrollbar-track,
  8815. .textContent::-webkit-scrollbar {
  8816. border-radius: 10px;
  8817. background-color: #b8bdc9;
  8818. }
  8819. /*定义滑块 内阴影+圆角*/
  8820. .cru_selectBox::-webkit-scrollbar-thumb,
  8821. .study_top::-webkit-scrollbar-thumb,
  8822. .textContent::-webkit-scrollbar-thumb {
  8823. border-radius: 10px;
  8824. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  8825. background-color: #2c5ab3;
  8826. }
  8827. .vedioBox {
  8828. border-radius: 20px;
  8829. background: #fff;
  8830. margin-bottom: 10px;
  8831. overflow: auto;
  8832. }
  8833. .taskBox {
  8834. margin: 15px auto 20px;
  8835. background: #f7f7f7;
  8836. width: 97%;
  8837. border-radius: 10px;
  8838. }
  8839. .vedioTaskBox {
  8840. width: 100%;
  8841. display: flex;
  8842. flex-direction: row;
  8843. flex-wrap: nowrap;
  8844. align-items: flex-start;
  8845. position: relative;
  8846. }
  8847. .toolBox {
  8848. padding: 20px 60px 15px;
  8849. display: flex;
  8850. position: relative;
  8851. }
  8852. .btnAll {
  8853. position: absolute;
  8854. right: 0;
  8855. display: flex;
  8856. flex-direction: row;
  8857. flex-wrap: nowrap;
  8858. align-items: center;
  8859. }
  8860. .btnAllNT {
  8861. position: fixed;
  8862. bottom: 50px;
  8863. right: 40px;
  8864. z-index: 999;
  8865. display: flex;
  8866. flex-direction: row;
  8867. }
  8868. .btnAllNT>img {
  8869. cursor: pointer;
  8870. width: 80px;
  8871. }
  8872. .vedioTimeBox {
  8873. display: flex;
  8874. flex-direction: row;
  8875. align-items: center;
  8876. flex-wrap: nowrap;
  8877. position: relative;
  8878. }
  8879. .navBox {
  8880. background: #fff;
  8881. height: calc(100% - 40px);
  8882. padding: 5px 1px 0;
  8883. overflow-y: auto;
  8884. overflow-x: hidden;
  8885. }
  8886. .tool_work_box {
  8887. width: 100%;
  8888. padding: 0 30px 10px;
  8889. box-sizing: border-box;
  8890. }
  8891. .worksBox {
  8892. padding: 5px 0;
  8893. border-bottom: 1px solid #eeeeee;
  8894. }
  8895. .worksBTitle {
  8896. font-size: 20px;
  8897. padding-bottom: 15px;
  8898. border-bottom: 1px solid #eeeeee;
  8899. display: flex;
  8900. align-items: center;
  8901. }
  8902. .greenBox {
  8903. width: 5px;
  8904. height: 30px;
  8905. background: #63b6fa;
  8906. margin-right: 5px;
  8907. }
  8908. .worksDetailBox {
  8909. display: flex;
  8910. width: 100%;
  8911. flex-direction: row;
  8912. flex-wrap: wrap;
  8913. align-items: flex-end;
  8914. justify-content: flex-start;
  8915. padding: 15px 0;
  8916. }
  8917. .works {
  8918. display: flex;
  8919. flex-direction: column;
  8920. flex-wrap: nowrap;
  8921. align-items: flex-start;
  8922. justify-content: flex-start;
  8923. align-content: center;
  8924. max-width: 240px;
  8925. width: calc(100% / 3 - 10px);
  8926. height: auto;
  8927. margin-right: 10px;
  8928. margin-bottom: 10px;
  8929. overflow: hidden;
  8930. height: 140px;
  8931. box-shadow: 0 0 6px 1px #dfdada;
  8932. border-radius: 15px;
  8933. }
  8934. .workImg {
  8935. width: 100%;
  8936. /* height: calc(100% - 40px); */
  8937. height: 105px;
  8938. position: relative;
  8939. }
  8940. .workImg>img {
  8941. width: 100%;
  8942. height: 100%;
  8943. object-fit: contain;
  8944. cursor: pointer;
  8945. }
  8946. .worksName {
  8947. height: 40px;
  8948. line-height: 40px;
  8949. display: flex;
  8950. width: 100%;
  8951. flex-direction: row;
  8952. flex-wrap: nowrap;
  8953. justify-content: space-between;
  8954. align-items: center;
  8955. margin: 0 0 0 10px;
  8956. }
  8957. .worksName>div:nth-child(1) {
  8958. width: 110px;
  8959. white-space: nowrap;
  8960. overflow: hidden;
  8961. text-overflow: ellipsis;
  8962. }
  8963. .worksName>div:nth-child(2) {
  8964. color: #b7b4b5;
  8965. }
  8966. .noWorksS {
  8967. padding: 15px 0 0;
  8968. display: flex;
  8969. flex-direction: row;
  8970. flex-wrap: wrap;
  8971. align-items: center;
  8972. justify-content: flex-start;
  8973. }
  8974. .noWorksS>div {
  8975. cursor: pointer;
  8976. }
  8977. .noWorksName,
  8978. .isWorksName {
  8979. background: #7cbcf1;
  8980. color: #fff;
  8981. width: 90px;
  8982. height: 25px;
  8983. text-align: center;
  8984. line-height: 25px;
  8985. border-radius: 5px;
  8986. margin: 10px 15px 10px 0;
  8987. white-space: nowrap;
  8988. overflow: hidden;
  8989. padding: 5px;
  8990. text-overflow: ellipsis;
  8991. }
  8992. .noWorksName.isWork {
  8993. background: #165d96 !important;
  8994. }
  8995. .isWorksName {
  8996. cursor: pointer;
  8997. background: #46a1eb !important;
  8998. width: 100px;
  8999. height: 40px;
  9000. line-height: 40px;
  9001. position: relative;
  9002. }
  9003. .noWorksName:hover {
  9004. background: #46a1eb !important;
  9005. }
  9006. .title {
  9007. background: #1e5cc9;
  9008. /* width: 98%; */
  9009. height: 45px;
  9010. color: #fff;
  9011. line-height: 45px;
  9012. padding-left: 20px;
  9013. box-sizing: border-box;
  9014. }
  9015. .textBox {
  9016. font-size: 20px;
  9017. width: 90%;
  9018. display: flex;
  9019. flex-direction: column;
  9020. align-items: center;
  9021. margin: 20px auto 0;
  9022. max-height: 500px;
  9023. overflow: auto;
  9024. }
  9025. .textContent {
  9026. font-size: 18px;
  9027. width: 95%;
  9028. max-width: 95%;
  9029. }
  9030. .answerBg {
  9031. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  9032. background-size: 100% 100%;
  9033. width: 100%;
  9034. height: 100%;
  9035. color: #fff;
  9036. text-align: center;
  9037. display: flex;
  9038. flex-direction: column;
  9039. flex-wrap: nowrap;
  9040. align-items: center;
  9041. position: relative;
  9042. justify-content: center;
  9043. }
  9044. .answerBg>div:nth-child(1) {
  9045. /* font-size: 22px;
  9046. padding: 25px 0 10px; */
  9047. }
  9048. .answerContent {
  9049. width: 215px;
  9050. max-height: 60px;
  9051. word-break: break-all;
  9052. text-align: center;
  9053. /* white-space: nowrap; */
  9054. overflow: hidden;
  9055. text-overflow: ellipsis;
  9056. /* padding: 23px 0 0; */
  9057. -webkit-line-clamp: 3;
  9058. -webkit-box-orient: vertical;
  9059. display: -webkit-box;
  9060. font-size: 15px;
  9061. cursor: pointer;
  9062. }
  9063. .elist_input_box {
  9064. display: flex;
  9065. align-items: flex-start;
  9066. flex-wrap: nowrap;
  9067. padding: 10px 0 15px 30px;
  9068. flex-direction: column;
  9069. }
  9070. .elist_input {
  9071. /* width: 40%; */
  9072. width: 100%;
  9073. }
  9074. .elist_input .elist_input_box input {
  9075. font: inherit;
  9076. color: currentColor;
  9077. width: 200px;
  9078. padding: 8px 14px;
  9079. display: block;
  9080. min-width: 0;
  9081. outline: none;
  9082. border: 1px solid rgba(0, 0, 0, 0.23);
  9083. border-radius: 4px;
  9084. box-sizing: border-box;
  9085. background: #fff;
  9086. margin: 0 20px 0 0;
  9087. }
  9088. .elist_input .elist_input_box span {
  9089. height: 36px;
  9090. line-height: 36px;
  9091. color: rgb(82, 82, 82);
  9092. }
  9093. .elist_input .elist_input_box .remove {
  9094. height: 20px;
  9095. width: 20px;
  9096. background-size: 100% 100%;
  9097. background-position: unset;
  9098. margin-left: 5px;
  9099. }
  9100. .elist_input_box>>>.el-rate {
  9101. display: flex;
  9102. height: 36px;
  9103. align-items: center;
  9104. }
  9105. .elist_input_box .elist_inptu_text {
  9106. min-height: 50px;
  9107. /* width: 500px;
  9108. max-height: 150px; */
  9109. width: 100%;
  9110. line-height: 50px;
  9111. color: rgb(82, 82, 82);
  9112. overflow: auto;
  9113. text-indent: 5px;
  9114. background: #f7f6f9;
  9115. border-radius: 10px;
  9116. }
  9117. .elist_input_box .elist_inptu_text input {
  9118. width: 500px;
  9119. }
  9120. .elist_input_box>>>.el-rate__icon {
  9121. font-size: 24px;
  9122. }
  9123. .isClick {
  9124. background: #4d9def;
  9125. }
  9126. /*定义滚动条轨道 内阴影+圆角*/
  9127. .bzTypeBox::-webkit-scrollbar {
  9128. /*滚动条整体样式*/
  9129. width: 6px;
  9130. /*高宽分别对应横竖滚动条的尺寸*/
  9131. height: 6px;
  9132. }
  9133. /*定义滚动条轨道 内阴影+圆角*/
  9134. .bzTypeBox::-webkit-scrollbar-track {
  9135. border-radius: 10px;
  9136. background-color: rgba(0, 0, 0, 0.1);
  9137. }
  9138. /*定义滑块 内阴影+圆角*/
  9139. .bzTypeBox::-webkit-scrollbar-thumb {
  9140. border-radius: 10px;
  9141. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  9142. background-color: rgba(0, 0, 0, 0.1);
  9143. }
  9144. .choiceBox {
  9145. display: flex;
  9146. margin: 20px 0;
  9147. width: 100%;
  9148. }
  9149. .bzTypeBox {
  9150. display: flex;
  9151. width: 100%;
  9152. overflow: auto;
  9153. white-space: nowrap;
  9154. }
  9155. .bzChild {
  9156. cursor: pointer;
  9157. box-sizing: border-box;
  9158. padding-bottom: 10px;
  9159. font-weight: bold;
  9160. min-width: fit-content;
  9161. }
  9162. .bzChild.active {
  9163. color: #3e88f4;
  9164. border-bottom: 2px solid #2f80f3;
  9165. }
  9166. .bzChild+.bzChild {
  9167. margin-left: 25px;
  9168. }
  9169. .bzBox {
  9170. display: flex;
  9171. flex-direction: row;
  9172. align-items: center;
  9173. }
  9174. .bzBox>div:nth-child(1) {
  9175. width: 4px;
  9176. height: 40px;
  9177. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  9178. }
  9179. .bzBox>div:nth-child(2) {
  9180. font-size: 23px;
  9181. font-weight: bold;
  9182. padding: 0px 0px 0 10px;
  9183. }
  9184. .navTitile {
  9185. padding: 0 0px 0 15px;
  9186. color: #fff;
  9187. height: 40px;
  9188. line-height: 40px;
  9189. }
  9190. .isTypeOne {
  9191. width: 240px;
  9192. height: 170px;
  9193. /* border: 1px solid #f8f8f8; */
  9194. border-radius: 10px;
  9195. box-shadow: 0 0 6px 1px #dfdada;
  9196. }
  9197. .e_add_top {
  9198. display: flex;
  9199. justify-content: space-between;
  9200. padding: 20px 20px 0 20px;
  9201. border-radius: 3px;
  9202. background: #fff;
  9203. }
  9204. .e_add_title2 {
  9205. display: flex;
  9206. align-items: center;
  9207. }
  9208. .e_add_title2 span {
  9209. width: 40px;
  9210. }
  9211. .e_add_title {
  9212. display: flex;
  9213. align-items: center;
  9214. color: #b8b8b8;
  9215. font-size: 18px;
  9216. position: relative;
  9217. height: 40px;
  9218. }
  9219. .e_add_title span {
  9220. margin-right: 10px;
  9221. }
  9222. .e_add_title .el_input {
  9223. width: 300px;
  9224. }
  9225. .e_add_title>>>.el-input__inner {
  9226. width: 400px;
  9227. }
  9228. .e_add_btn {}
  9229. .e_add_content {
  9230. display: flex;
  9231. width: 100%;
  9232. max-width: 650px;
  9233. height: 550px;
  9234. }
  9235. .e_add_list {
  9236. background: #fff;
  9237. height: 500px;
  9238. width: 210px;
  9239. position: relative;
  9240. margin: 15px 5px 0 0;
  9241. flex-shrink: 0;
  9242. display: flex;
  9243. flex-direction: column;
  9244. }
  9245. .e_add_list_title {
  9246. font-size: 20px;
  9247. width: 100%;
  9248. box-sizing: border-box;
  9249. padding: 15px 40px;
  9250. text-align: center;
  9251. border-bottom: 1px solid #eaeaea;
  9252. position: relative;
  9253. display: flex;
  9254. align-items: center;
  9255. justify-content: center;
  9256. height: 57px;
  9257. background: #f6f6f6;
  9258. }
  9259. .e_add_list_title span {
  9260. overflow: hidden;
  9261. white-space: nowrap;
  9262. text-overflow: ellipsis;
  9263. }
  9264. .e_add_list_title img {
  9265. position: absolute;
  9266. right: 15px;
  9267. width: 25px;
  9268. cursor: pointer;
  9269. top: 50%;
  9270. transform: translateY(-50%);
  9271. }
  9272. .e_add_list_body {
  9273. height: calc(100% - 187px);
  9274. overflow: auto;
  9275. }
  9276. .e_add_list_child {
  9277. width: 100%;
  9278. display: flex;
  9279. align-items: center;
  9280. justify-content: center;
  9281. position: relative;
  9282. box-sizing: border-box;
  9283. padding: 15px 40px;
  9284. text-align: center;
  9285. }
  9286. .e_add_list_child span {
  9287. overflow: hidden;
  9288. white-space: nowrap;
  9289. text-overflow: ellipsis;
  9290. cursor: pointer;
  9291. }
  9292. .e_add_list_child img {
  9293. position: absolute;
  9294. right: 10px;
  9295. width: 21px;
  9296. cursor: pointer;
  9297. top: 50%;
  9298. transform: translateY(-50%);
  9299. }
  9300. .e_add_list_child+.e_add_list_child {
  9301. border-top: 1px solid #eaeaea;
  9302. }
  9303. .e_add_list_child .active {
  9304. color: #409eff;
  9305. }
  9306. .e_add_list_btn {
  9307. position: absolute;
  9308. bottom: 0;
  9309. height: 50px;
  9310. background: rgb(120, 120, 254);
  9311. width: 100%;
  9312. color: #fff;
  9313. font-size: 16px;
  9314. text-align: center;
  9315. line-height: 50px;
  9316. cursor: pointer;
  9317. }
  9318. .e_add_list_detail {
  9319. position: absolute;
  9320. bottom: 0;
  9321. height: 130px;
  9322. background: rgb(120, 120, 254);
  9323. width: 100%;
  9324. color: #fff;
  9325. font-size: 16px;
  9326. display: flex;
  9327. align-items: center;
  9328. justify-content: center;
  9329. }
  9330. .e_add_list_detail textarea {
  9331. height: 90%;
  9332. width: 95%;
  9333. border: none;
  9334. resize: none;
  9335. outline: none;
  9336. padding: 5px;
  9337. box-sizing: border-box;
  9338. }
  9339. .e_add_list_pbox {
  9340. width: 100%;
  9341. max-width: 650px;
  9342. /* height: 600px; */
  9343. }
  9344. .e_add_list_pbox_title {
  9345. height: 50px;
  9346. background: #fff;
  9347. display: flex;
  9348. align-items: center;
  9349. width: 100%;
  9350. box-sizing: border-box;
  9351. padding: 0 20px;
  9352. }
  9353. .type_title {
  9354. font-size: 18px;
  9355. font-weight: 700;
  9356. }
  9357. .type_content {
  9358. font-size: 16px;
  9359. margin-left: 30px;
  9360. }
  9361. .type_content span+span {
  9362. margin-left: 20px;
  9363. }
  9364. .type_content span {
  9365. cursor: pointer;
  9366. padding-bottom: 5px;
  9367. box-sizing: border-box;
  9368. }
  9369. .type_content .active {
  9370. color: #409eff;
  9371. border-bottom: 2px solid #409eff;
  9372. }
  9373. .e_add_list_pbox_content {
  9374. height: calc(100% - 50px);
  9375. display: flex;
  9376. align-items: center;
  9377. width: 100%;
  9378. background: #fff;
  9379. }
  9380. .evaCss {
  9381. display: flex;
  9382. flex-direction: row;
  9383. flex-wrap: nowrap;
  9384. align-items: flex-start;
  9385. }
  9386. .cru_line {
  9387. position: absolute;
  9388. bottom: 0px;
  9389. transition: all 0.5s;
  9390. left: 0px;
  9391. width: 125px;
  9392. margin-left: -25px;
  9393. }
  9394. .isNoMessage {
  9395. width: 20%;
  9396. margin: 25% auto 0;
  9397. }
  9398. .isNoMessage>img {
  9399. width: 100%;
  9400. height: 100%;
  9401. }
  9402. .fullStyle>>>.el-dialog__body {
  9403. height: 100% !important;
  9404. }
  9405. .fullStyle>>>.el-dialog,
  9406. .fullStyle {
  9407. width: 100% !important;
  9408. max-width: 100% !important;
  9409. height: 100% !important;
  9410. margin: 0 !important;
  9411. }
  9412. .full_diy>>>.el-dialog {
  9413. margin: 0 !important;
  9414. height: 100%;
  9415. padding: 4px;
  9416. }
  9417. .full_diy>>>.el-dialog__body {
  9418. height: calc(100% - 100px);
  9419. }
  9420. .full_diy2>>>.el-dialog__body {
  9421. height: calc(100% - 50px);
  9422. padding: 0;
  9423. }
  9424. .switchCss {
  9425. /* width: 100%; */
  9426. display: flex;
  9427. flex-direction: row;
  9428. flex-wrap: nowrap;
  9429. align-items: center;
  9430. /* justify-content: center; */
  9431. }
  9432. .isClickNav {
  9433. color: #499eef;
  9434. }
  9435. .commentImg {
  9436. width: 25px;
  9437. height: 25px;
  9438. cursor: pointer;
  9439. }
  9440. .commentImg>img {
  9441. width: 100%;
  9442. height: 100%;
  9443. }
  9444. .comment {
  9445. background: #f9f9f9;
  9446. border-radius: 0 0 15px 15px;
  9447. display: flex;
  9448. flex-direction: row;
  9449. flex-wrap: nowrap;
  9450. align-items: center;
  9451. justify-content: flex-end;
  9452. height: 35px;
  9453. }
  9454. .commentList {
  9455. display: flex;
  9456. flex-direction: row;
  9457. flex-wrap: nowrap;
  9458. align-items: center;
  9459. justify-content: center;
  9460. align-content: center;
  9461. /* margin-left: 15px; */
  9462. /* margin-left: 8px; */
  9463. }
  9464. .scoreImg {
  9465. width: 17px;
  9466. height: 17px;
  9467. }
  9468. .studentDetail {
  9469. display: flex;
  9470. flex-direction: row;
  9471. flex-wrap: nowrap;
  9472. /* align-items: center; */
  9473. align-items: flex-start;
  9474. }
  9475. .tx {
  9476. width: 50px;
  9477. }
  9478. .tx>img {
  9479. width: 100%;
  9480. height: 100%;
  9481. }
  9482. .nameAndTime {
  9483. display: flex;
  9484. flex-direction: column;
  9485. flex-wrap: nowrap;
  9486. align-items: flex-start;
  9487. margin-left: 10px;
  9488. }
  9489. .worksAnswer {
  9490. color: #4078dd;
  9491. margin: 10px 0;
  9492. font-size: 16px;
  9493. position: relative;
  9494. }
  9495. .worksAnswer>img {
  9496. width: 500px;
  9497. height: 300px;
  9498. object-fit: contain;
  9499. margin: 0 auto;
  9500. display: block;
  9501. }
  9502. .commentTop {
  9503. border-bottom: 1px solid #eaeaea;
  9504. padding-bottom: 10px;
  9505. }
  9506. .commentBox {
  9507. padding-top: 15px;
  9508. }
  9509. .pl {
  9510. font-size: 18px;
  9511. }
  9512. .plPerson {
  9513. width: 100%;
  9514. }
  9515. .plName {
  9516. display: flex;
  9517. flex-direction: row;
  9518. flex-wrap: nowrap;
  9519. align-items: baseline;
  9520. color: #78787a;
  9521. width: 100%;
  9522. }
  9523. .deleteComment {
  9524. cursor: pointer;
  9525. margin-left: auto;
  9526. color: #237ade;
  9527. }
  9528. .plContent {
  9529. margin-top: 5px;
  9530. }
  9531. .evalCss {
  9532. background: #fff;
  9533. font-size: 18px;
  9534. }
  9535. .nav {
  9536. color: #9d9d9d;
  9537. padding: 5px 0 15px 20px;
  9538. }
  9539. .middleBox {
  9540. padding: 5px 0 15px 20px;
  9541. }
  9542. .pfBox {
  9543. padding-bottom: 30px;
  9544. }
  9545. .nameAndrate {
  9546. display: flex;
  9547. flex-direction: row;
  9548. flex-wrap: nowrap;
  9549. align-items: center;
  9550. padding-bottom: 10px;
  9551. height: 30px;
  9552. line-height: 30px;
  9553. }
  9554. .nameAndrate>div {
  9555. margin-left: 10px;
  9556. color: #000;
  9557. height: 30px;
  9558. }
  9559. .nameAndrate>>>.el-rate__icon {
  9560. font-size: 28px !important;
  9561. }
  9562. .pfBox>div:nth-child(2) {
  9563. background: #f7f6f9;
  9564. width: 400px;
  9565. min-height: 45px;
  9566. border-radius: 10px;
  9567. font-size: 16px;
  9568. display: flex;
  9569. flex-wrap: wrap;
  9570. align-items: center;
  9571. padding: 10px 20px;
  9572. box-sizing: border-box;
  9573. color: #000;
  9574. }
  9575. .bz {
  9576. display: flex;
  9577. flex-direction: row;
  9578. flex-wrap: nowrap;
  9579. align-items: flex-start;
  9580. }
  9581. .bz>div {
  9582. padding: 0 10px;
  9583. }
  9584. .select_box2_title {
  9585. background: #fff;
  9586. border-radius: 5px;
  9587. padding: 15px 10px;
  9588. box-sizing: border-box;
  9589. margin-bottom: 10px;
  9590. display: flex;
  9591. flex-direction: row;
  9592. flex-wrap: nowrap;
  9593. align-items: center;
  9594. }
  9595. .select_box2_title>div:nth-child(2) {
  9596. margin-left: 10px;
  9597. color: #c4c4c4;
  9598. }
  9599. .select_box2_box {
  9600. display: flex;
  9601. height: 500px;
  9602. }
  9603. .select_box2_img {
  9604. width: calc(100% - 310px);
  9605. height: 100%;
  9606. overflow: auto;
  9607. background: #fff;
  9608. border-radius: 5px;
  9609. }
  9610. .select_box2_img img {
  9611. width: 100%;
  9612. }
  9613. .select_box2_answer {
  9614. background: #fff;
  9615. margin-left: 10px;
  9616. border-radius: 5px;
  9617. width: 300px;
  9618. overflow: auto;
  9619. height: 90%;
  9620. display: flex;
  9621. flex-direction: column;
  9622. align-items: flex-start;
  9623. padding-top: 10px;
  9624. box-sizing: border-box;
  9625. position: relative;
  9626. }
  9627. .select_answer_title {
  9628. padding: 0 0 15px 20px;
  9629. color: #c4c4c4;
  9630. }
  9631. .select_box2_answer_box {
  9632. margin: 0 0 10px 20px;
  9633. width: 85%;
  9634. display: flex;
  9635. flex-direction: row;
  9636. flex-wrap: nowrap;
  9637. align-items: center;
  9638. }
  9639. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  9640. color: #000;
  9641. }
  9642. .upAnswerCss {
  9643. position: absolute;
  9644. bottom: 15px;
  9645. right: 15px;
  9646. }
  9647. .upAnswerCss>>>.el-button {
  9648. width: 95px;
  9649. height: 35px;
  9650. line-height: 35px;
  9651. padding: 0;
  9652. }
  9653. .rightWidthCss {
  9654. width: 60%;
  9655. display: flex;
  9656. flex-direction: row;
  9657. align-items: flex-start;
  9658. }
  9659. .rightAnswer {
  9660. display: flex;
  9661. flex-direction: row;
  9662. flex-wrap: nowrap;
  9663. align-items: center;
  9664. color: red;
  9665. margin-bottom: 31px;
  9666. }
  9667. .rightAnswerCss {
  9668. display: flex;
  9669. flex-direction: column;
  9670. flex-wrap: nowrap;
  9671. padding-top: 60px;
  9672. }
  9673. .blueCss {
  9674. color: #767de1;
  9675. margin-left: 10px;
  9676. }
  9677. .redCss {
  9678. color: red;
  9679. }
  9680. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  9681. color: rgb(0 123 255) !important;
  9682. }
  9683. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  9684. color: rgb(0 123 255) !important;
  9685. }
  9686. .zuoyeYulan {
  9687. padding-top: 15px;
  9688. font-size: 18px;
  9689. display: flex;
  9690. align-items: flex-end;
  9691. }
  9692. .buttonA {
  9693. margin-left: 10px;
  9694. padding: 0;
  9695. }
  9696. .displayBox {
  9697. margin-bottom: 10px;
  9698. display: block;
  9699. border-bottom: 3px solid #eee;
  9700. display: flex;
  9701. align-items: center;
  9702. }
  9703. .easy_comment {
  9704. width: calc(100% - 90px);
  9705. margin-left: 10px;
  9706. display: flex;
  9707. flex-wrap: wrap;
  9708. }
  9709. .easy_comment>div {
  9710. border: 1px solid #4a4a4a;
  9711. color: #666;
  9712. border-radius: 15px;
  9713. padding: 5px 10px;
  9714. font-size: 16px;
  9715. margin-bottom: 10px;
  9716. margin-right: 5px;
  9717. cursor: pointer;
  9718. }
  9719. .easy_comment div:hover {
  9720. border: 1px solid #f7ba2a;
  9721. color: #c69217;
  9722. }
  9723. .xuan_right_box {
  9724. padding: 10px;
  9725. background: rgb(247, 247, 247);
  9726. margin: 10px 12px;
  9727. border-radius: 5px;
  9728. }
  9729. .tool_right_box {
  9730. display: flex;
  9731. align-items: center;
  9732. }
  9733. .tool_right_box+.tool_right_box {
  9734. margin-top: 10px;
  9735. }
  9736. .right_box_xuan {
  9737. background: rgb(0 123 255);
  9738. color: #fff;
  9739. border-radius: 5px;
  9740. padding: 5px;
  9741. margin-left: 10px;
  9742. }
  9743. .pButton:hover {
  9744. opacity: 1 !important;
  9745. }
  9746. .pButton {
  9747. position: fixed;
  9748. /* right: 5%; */
  9749. /* bottom: 5%; */
  9750. color: #fff;
  9751. /* width: 50px;
  9752. height: 50px; */
  9753. /* border-radius: 50%; */
  9754. text-align: center;
  9755. /* line-height: 50px; */
  9756. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  9757. cursor: pointer;
  9758. z-index: 999;
  9759. right: 0;
  9760. top: 83px;
  9761. width: 50px;
  9762. height: 50px;
  9763. background: #fff;
  9764. display: flex;
  9765. align-items: center;
  9766. justify-content: center;
  9767. box-shadow: 0px 0 8px 2px #c5c5c5;
  9768. border-radius: 5px;
  9769. }
  9770. .pzClass {
  9771. width: calc(100% - 340px);
  9772. }
  9773. .newDialogCss {
  9774. /* position: fixed;
  9775. right: 5%;
  9776. top: 50%;
  9777. width: 340px;
  9778. transform: translateY(-50%);
  9779. height: 60%;
  9780. box-shadow: 0px 0 8px 0px #555555;
  9781. border-radius: 15px;
  9782. z-index: 999; */
  9783. position: fixed;
  9784. right: 0;
  9785. top: 70px;
  9786. width: 340px;
  9787. height: calc(100% - 80px);
  9788. z-index: 999;
  9789. background: #fff;
  9790. border-radius: 15px;
  9791. border-top-right-radius: 0px;
  9792. border-bottom-right-radius: 0px;
  9793. overflow: hidden;
  9794. }
  9795. .pzTop {
  9796. color: #fff;
  9797. background: #000;
  9798. display: flex;
  9799. flex-direction: row;
  9800. flex-wrap: nowrap;
  9801. align-items: center;
  9802. justify-content: space-between;
  9803. height: 40px;
  9804. border-radius: 15px 15px 0 0;
  9805. }
  9806. .pzTop2 .checkbox {
  9807. display: flex;
  9808. align-items: center;
  9809. padding: 15px 30px;
  9810. flex: 0 0 auto;
  9811. font-weight: bold;
  9812. border-bottom: 1px solid #eee;
  9813. justify-content: space-between;
  9814. }
  9815. .pzTop2 .check {
  9816. text-align: center;
  9817. cursor: pointer;
  9818. box-sizing: border-box;
  9819. display: flex;
  9820. }
  9821. .pzTop2 img {
  9822. width: 25px;
  9823. cursor: pointer;
  9824. }
  9825. .pzTop>div:nth-child(1) {
  9826. padding-left: 10px;
  9827. }
  9828. .pzTop>div:nth-child(2) {
  9829. width: 15px;
  9830. height: 15px;
  9831. padding-right: 10px;
  9832. cursor: pointer;
  9833. }
  9834. .pzTop>div:nth-child(2)>img {
  9835. width: 100%;
  9836. height: 100%;
  9837. }
  9838. .pzBox,
  9839. .noPzBox {
  9840. height: calc(100% - 60px);
  9841. /* background: #ededed; */
  9842. background: #fff;
  9843. /* border-radius: 0 0 15px 15px; */
  9844. }
  9845. .noPzBox {
  9846. display: flex;
  9847. flex-direction: column;
  9848. flex-wrap: nowrap;
  9849. justify-content: center;
  9850. align-items: center;
  9851. }
  9852. .pzList {
  9853. background: #f7f7f7;
  9854. width: 90%;
  9855. margin: 0 auto 15px;
  9856. border-radius: 5px;
  9857. }
  9858. .pzNavTop {
  9859. display: flex;
  9860. flex-direction: row;
  9861. flex-wrap: nowrap;
  9862. padding: 10px 10px 0 10px;
  9863. align-items: center;
  9864. }
  9865. .pzDelete {
  9866. cursor: pointer;
  9867. margin-left: auto;
  9868. font-size: 14px;
  9869. color: #afafaf;
  9870. }
  9871. .pzNavTop>div:nth-child(1) {
  9872. background: #3760af;
  9873. width: 35px;
  9874. height: 35px;
  9875. color: #fff;
  9876. text-align: center;
  9877. line-height: 35px;
  9878. border-radius: 50%;
  9879. font-size: 14px;
  9880. }
  9881. .pzNavTop>div:nth-child(2) {
  9882. font-size: 18px;
  9883. color: #959595;
  9884. margin-left: 5px;
  9885. }
  9886. .pzContent {
  9887. padding: 10px;
  9888. word-break: break-word;
  9889. }
  9890. .pzContent audio {
  9891. width: 100%;
  9892. }
  9893. .pzContent audio::-webkit-media-controls-panel {
  9894. background: #fff;
  9895. }
  9896. .pzListBox {
  9897. padding-top: 15px;
  9898. height: calc(100% - 60px);
  9899. overflow: auto;
  9900. }
  9901. .addPzButton {
  9902. position: relative;
  9903. margin-top: 3px;
  9904. width: 100%;
  9905. }
  9906. .addPzButton .img1 {
  9907. position: absolute;
  9908. top: 50%;
  9909. right: 25px;
  9910. transform: translateY(-50%);
  9911. height: 100%;
  9912. display: flex;
  9913. align-items: center;
  9914. }
  9915. .addPzButton .img1 div {
  9916. display: flex;
  9917. }
  9918. .addPzButton .img1 div img {
  9919. width: 28px;
  9920. margin-left: 10px;
  9921. cursor: pointer;
  9922. }
  9923. .addPzButton .img1 div span {
  9924. font-size: 14px;
  9925. margin: 4px 0 0 3px;
  9926. color: #afafaf;
  9927. }
  9928. .addPz {
  9929. background: #4b79ce;
  9930. width: 100px;
  9931. color: #fff;
  9932. font-size: 12px;
  9933. height: 30px;
  9934. margin: 0 auto;
  9935. text-align: center;
  9936. line-height: 30px;
  9937. border-radius: 10px;
  9938. cursor: pointer;
  9939. }
  9940. .addDialogCss {
  9941. position: fixed;
  9942. right: 37%;
  9943. top: 50%;
  9944. width: 600px;
  9945. transform: translateY(-50%);
  9946. height: 70%;
  9947. min-height: 450px;
  9948. box-shadow: 0px 0 8px 0px #555555;
  9949. border-radius: 15px;
  9950. z-index: 999;
  9951. }
  9952. .teacherPz {
  9953. display: flex;
  9954. flex-direction: row;
  9955. align-items: center;
  9956. flex-wrap: nowrap;
  9957. }
  9958. .teacherPzImg {
  9959. width: 30px;
  9960. height: 30px;
  9961. }
  9962. .teacherPzImg>img {
  9963. width: 100%;
  9964. height: 100%;
  9965. }
  9966. .addPzBox {
  9967. height: calc(100% - 40px);
  9968. background: #ededed;
  9969. }
  9970. .pzAudioClass {
  9971. margin: 15px 14px;
  9972. background: #fff;
  9973. height: 100%;
  9974. display: flex;
  9975. justify-content: center;
  9976. align-items: center;
  9977. }
  9978. .pzConText {
  9979. width: 95%;
  9980. height: 100%;
  9981. margin: 10px auto 0;
  9982. border: none;
  9983. background: #fff;
  9984. border-radius: 0px;
  9985. }
  9986. .pzConText>>>.text {
  9987. height: calc(100% - 82px);
  9988. }
  9989. .addTextCss {
  9990. background: #4b79ce;
  9991. width: 80px;
  9992. height: 30px;
  9993. text-align: center;
  9994. color: #fff;
  9995. line-height: 30px;
  9996. border-radius: 10px;
  9997. margin: 10px auto 0;
  9998. cursor: pointer;
  9999. }
  10000. .pzConText:focus-visible {
  10001. border: none !important;
  10002. }
  10003. .maxWidth {
  10004. width: 1000px;
  10005. }
  10006. .noPz {
  10007. width: 150px;
  10008. margin: 0 auto 20%;
  10009. }
  10010. .noPz>img {
  10011. width: 100%;
  10012. height: 100%;
  10013. }
  10014. .pzList .time {
  10015. text-align: right;
  10016. box-sizing: border-box;
  10017. padding: 0 10px 10px 0px;
  10018. color: #949494;
  10019. font-size: 14px;
  10020. }
  10021. /* table 样式 */
  10022. .cont>>>table {
  10023. border-top: 1px solid #ccc;
  10024. border-left: 1px solid #ccc;
  10025. }
  10026. .cont>>>table td,
  10027. .cont>>>table th {
  10028. border-bottom: 1px solid #ccc;
  10029. border-right: 1px solid #ccc;
  10030. padding: 15px 5px;
  10031. max-width: 0px;
  10032. }
  10033. .cont>>>table th {
  10034. border-bottom: 2px solid #ccc;
  10035. text-align: center;
  10036. }
  10037. /* blockquote 样式 */
  10038. .cont>>>blockquote {
  10039. display: block;
  10040. border-left: 8px solid #d0e5f2;
  10041. padding: 5px 10px;
  10042. margin: 10px 0;
  10043. line-height: 1.4;
  10044. font-size: 100%;
  10045. background-color: #f1f1f1;
  10046. }
  10047. .addPzCheck {
  10048. display: flex;
  10049. flex-direction: row;
  10050. flex-wrap: nowrap;
  10051. padding: 10px 15px 0;
  10052. }
  10053. .addPzCheck span {
  10054. cursor: pointer;
  10055. padding-bottom: 5px;
  10056. font-weight: bold;
  10057. }
  10058. .addPzCheck span+span {
  10059. margin-left: 10px;
  10060. }
  10061. .addPzCheck .isChooseActive {
  10062. color: #3e88f4;
  10063. border-bottom: 2px solid #2f80f3;
  10064. }
  10065. /* code 样式 */
  10066. .cont>>>code {
  10067. display: inline-block;
  10068. *display: inline;
  10069. *zoom: 1;
  10070. background-color: #f1f1f1;
  10071. border-radius: 3px;
  10072. padding: 3px 5px;
  10073. margin: 0 3px;
  10074. }
  10075. .cont>>>pre code {
  10076. display: block;
  10077. }
  10078. /* ul ol 样式 */
  10079. .cont>>>ul,
  10080. ol {
  10081. margin: 10px 0 10px 20px;
  10082. }
  10083. .scoreBox,
  10084. .scoreDetailBox {
  10085. display: flex;
  10086. align-items: center;
  10087. justify-content: flex-start;
  10088. margin-top: 20px;
  10089. font-size: 18px;
  10090. width: 100%;
  10091. }
  10092. .scoreBox .t,
  10093. .scoreDetailBox .t {
  10094. margin-right: 10px;
  10095. width: 100px;
  10096. text-align: right;
  10097. }
  10098. .scoreDetailBox {
  10099. align-items: flex-start;
  10100. }
  10101. .scoreDetailBox>>>.el-textarea {
  10102. width: calc(100% - 200px);
  10103. }
  10104. .scoreBox>>>.el-input {
  10105. width: 130px;
  10106. font-size: 38px;
  10107. }
  10108. .scoreBox>>>.el-input__inner {
  10109. height: 60px;
  10110. }
  10111. .answerScore {
  10112. position: absolute;
  10113. top: 10px;
  10114. right: 10px;
  10115. background: #0000008f;
  10116. border-radius: 5px;
  10117. padding: 3px 5px;
  10118. font-size: 14px;
  10119. color: #fff;
  10120. cursor: pointer;
  10121. }
  10122. .open_box .switch_box {
  10123. width: 100%;
  10124. margin: 0 auto;
  10125. display: flex;
  10126. justify-content: space-between;
  10127. }
  10128. .open_box .switch_box+.switch_box {
  10129. margin-top: 10px;
  10130. }
  10131. .deleteImg {
  10132. width: 25px !important;
  10133. height: 25px !important;
  10134. cursor: pointer;
  10135. position: absolute;
  10136. top: 10px;
  10137. right: 10px;
  10138. }
  10139. .deleteImg2 {
  10140. width: 15px !important;
  10141. height: 15px !important;
  10142. top: 5px;
  10143. right: 5px;
  10144. }
  10145. .rightW {
  10146. right: 40px;
  10147. }
  10148. .drawPBox {
  10149. display: flex;
  10150. flex-direction: column;
  10151. position: relative;
  10152. }
  10153. .drawPBox span {
  10154. font-size: 18px;
  10155. color: #606266;
  10156. padding-bottom: 10px;
  10157. margin: 10px 0;
  10158. border-bottom: 1px solid #eaeaea;
  10159. }
  10160. .drawPBox img {
  10161. width: 500px;
  10162. height: 300px;
  10163. object-fit: contain;
  10164. cursor: pointer;
  10165. margin: 0 auto;
  10166. }
  10167. .sentenBox {
  10168. background: #fff;
  10169. height: 450px;
  10170. overflow: auto;
  10171. background-image: url("../../assets/icon/conSentences/stuBg.png");
  10172. background-position: 102%;
  10173. background-repeat: no-repeat;
  10174. background-size: 60%;
  10175. }
  10176. .addSen {
  10177. background: #409efe;
  10178. width: 90px;
  10179. color: #fff;
  10180. height: 35px;
  10181. text-align: center;
  10182. line-height: 35px;
  10183. border-radius: 5px;
  10184. float: right;
  10185. margin: 10px 20px 0 0;
  10186. cursor: pointer;
  10187. }
  10188. .sentenTop {
  10189. display: flex;
  10190. flex-direction: row;
  10191. flex-wrap: nowrap;
  10192. align-items: center;
  10193. padding: 55px 0 0 20px;
  10194. box-sizing: border-box;
  10195. }
  10196. .sentenTop>div:nth-child(2) {
  10197. width: 300px;
  10198. margin: 0 15px;
  10199. }
  10200. .sentenTop>div:nth-child(3) {
  10201. background: #409efe;
  10202. color: #fff;
  10203. width: 65px;
  10204. height: 35px;
  10205. text-align: center;
  10206. line-height: 35px;
  10207. border-radius: 5px;
  10208. cursor: pointer;
  10209. }
  10210. .cardList,
  10211. .cardList1 {
  10212. padding: 10px 0 10px 0;
  10213. display: flex;
  10214. flex-direction: row;
  10215. flex-wrap: wrap;
  10216. align-items: center;
  10217. box-sizing: border-box;
  10218. border-bottom: 1px solid #f4f4f4;
  10219. width: 98%;
  10220. margin: 0 auto;
  10221. min-width: 60%;
  10222. max-width: 85%;
  10223. }
  10224. .cardList1 {
  10225. padding: 10px 0 10px 10px !important;
  10226. margin: 0 !important;
  10227. }
  10228. .cardBox {
  10229. display: flex;
  10230. flex-direction: row;
  10231. flex-wrap: wrap;
  10232. align-items: center;
  10233. align-content: center;
  10234. }
  10235. .cardBox>div {
  10236. margin-bottom: 10px;
  10237. }
  10238. .isCard,
  10239. .isChooseCard,
  10240. .noCard,
  10241. .isCard1 {
  10242. width: 130px;
  10243. height: 60px;
  10244. text-align: center;
  10245. line-height: 60px;
  10246. font-size: 20px;
  10247. cursor: pointer;
  10248. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  10249. background-size: cover;
  10250. transition: all 2s;
  10251. margin-right: 20px;
  10252. }
  10253. .isCard>div,
  10254. .noCard>div,
  10255. .isCard1>div {
  10256. white-space: nowrap;
  10257. overflow: hidden;
  10258. text-overflow: ellipsis;
  10259. width: 75%;
  10260. margin: 0 auto;
  10261. }
  10262. .noCard {
  10263. background-image: none;
  10264. }
  10265. .isCard1 {
  10266. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  10267. }
  10268. .isChooseCard {
  10269. background-image: none;
  10270. border: 1px dashed #b9b9b9;
  10271. border-radius: 10px;
  10272. }
  10273. .card {
  10274. width: 130px;
  10275. height: 60px;
  10276. }
  10277. .card>img {
  10278. width: 100%;
  10279. height: 100%;
  10280. }
  10281. .rightCardBox {
  10282. margin: 10px 0 0 10px;
  10283. }
  10284. .rightCardBox>div:nth-child(1) {
  10285. margin-bottom: 10px;
  10286. }
  10287. .cardCss {
  10288. display: flex;
  10289. flex-direction: column;
  10290. flex-wrap: nowrap;
  10291. align-items: center;
  10292. border-bottom: 3px solid #b4c3d3;
  10293. padding: 0 0 5px 0;
  10294. margin-right: 10px;
  10295. }
  10296. .cardCss>div:nth-child(2) {
  10297. background: #5b7b9d;
  10298. color: #fff;
  10299. width: 20px;
  10300. height: 20px;
  10301. border-radius: 50%;
  10302. text-align: center;
  10303. line-height: 20px;
  10304. }
  10305. .isWrong {
  10306. display: flex;
  10307. flex-direction: row;
  10308. flex-wrap: nowrap;
  10309. align-content: center;
  10310. align-items: center;
  10311. }
  10312. .answerRight {
  10313. width: 25%;
  10314. }
  10315. .isTj {
  10316. display: flex;
  10317. flex-direction: row;
  10318. flex-wrap: nowrap;
  10319. align-items: center;
  10320. }
  10321. .isTj>div:nth-child(2) {
  10322. color: #727070;
  10323. margin-left: 10px;
  10324. }
  10325. .isTjImg {
  10326. width: 30px;
  10327. height: 30px;
  10328. }
  10329. .isTjImg>img {
  10330. width: 100%;
  10331. height: 100%;
  10332. }
  10333. .cardAnswerBox {
  10334. font-size: 18px;
  10335. width: 97%;
  10336. border: 5px;
  10337. padding: 0;
  10338. border-radius: 5px;
  10339. margin: 10px auto;
  10340. word-break: break-word;
  10341. }
  10342. .w_name {
  10343. margin-bottom: 10px;
  10344. }
  10345. .w_name span {
  10346. font-size: 16px;
  10347. }
  10348. .w_teachert {
  10349. width: 50px !important;
  10350. position: absolute;
  10351. height: auto !important;
  10352. z-index: 10;
  10353. right: 25px;
  10354. top: -25px;
  10355. }
  10356. .group_workBox {}
  10357. .group_workBox+.group_workBox {
  10358. margin-top: 20px;
  10359. }
  10360. .group_box {
  10361. padding-bottom: 20px;
  10362. border-bottom: 2px solid #f0f0f0;
  10363. }
  10364. .group_title {
  10365. display: flex;
  10366. align-items: center;
  10367. justify-content: space-between;
  10368. }
  10369. .group_name {
  10370. background-image: url(../../assets/icon/groupN.png);
  10371. width: 220px;
  10372. background-size: 100% 100%;
  10373. height: 67px;
  10374. padding: 0 20px 0 43px;
  10375. box-sizing: border-box;
  10376. line-height: 63px;
  10377. color: #fff;
  10378. overflow: hidden;
  10379. white-space: nowrap;
  10380. text-overflow: ellipsis;
  10381. }
  10382. .group_work {
  10383. width: 100%;
  10384. padding: 0 10px;
  10385. box-sizing: border-box;
  10386. display: flex;
  10387. flex-wrap: wrap;
  10388. }
  10389. .g_d_box {
  10390. display: flex;
  10391. flex-flow: wrap;
  10392. justify-content: space-around;
  10393. }
  10394. .g_d_box .isChair {
  10395. background-image: url(../../assets/avatar.png) !important;
  10396. }
  10397. .g_d_group {
  10398. width: 500px;
  10399. margin-bottom: 80px;
  10400. }
  10401. .g_d_group_chair {
  10402. display: flex;
  10403. align-items: center;
  10404. justify-content: center;
  10405. }
  10406. .g_d_group_chair>div+div {
  10407. margin-left: 30px;
  10408. }
  10409. .g_d_group_chair>div,
  10410. .g_d_group_chair2>div {
  10411. display: flex;
  10412. flex-direction: column;
  10413. align-items: center;
  10414. }
  10415. .g_d_group_chair>div>span:nth-child(1),
  10416. .g_d_group_chair2>div>span:nth-child(1) {
  10417. background-image: url(../../assets/icon/chair.png);
  10418. width: 50px;
  10419. height: 50px;
  10420. display: block;
  10421. background-size: 100% 100%;
  10422. }
  10423. .g_d_group_tableBox {
  10424. display: flex;
  10425. align-items: center;
  10426. justify-content: center;
  10427. }
  10428. .g_d_group_chair2 {
  10429. display: flex;
  10430. flex-direction: column;
  10431. align-items: center;
  10432. justify-content: center;
  10433. }
  10434. .g_d_group_chair2>div+div {
  10435. margin-top: 10px;
  10436. }
  10437. .g_d_group_table {
  10438. background-image: url(../../assets/icon/groupBg.png);
  10439. width: 354px;
  10440. height: 196px;
  10441. background-size: 100% 100%;
  10442. display: flex;
  10443. align-items: center;
  10444. justify-content: center;
  10445. flex-direction: column;
  10446. color: #fff;
  10447. }
  10448. .g_d_group_table>div:nth-child(1) {
  10449. font-size: 24px;
  10450. margin-bottom: 5px;
  10451. }
  10452. .g_d_group_table>div:nth-child(2) div {
  10453. cursor: pointer;
  10454. background: #2e77bf;
  10455. padding: 4px 10px;
  10456. border-radius: 5px;
  10457. }
  10458. .groupBox {}
  10459. .groupContent+.groupContent {
  10460. margin-top: 30px;
  10461. }
  10462. .groupTitle {
  10463. font-size: 24px;
  10464. color: rgb(80, 80, 80);
  10465. margin-bottom: 20px;
  10466. }
  10467. .groupName {
  10468. display: flex;
  10469. align-items: center;
  10470. }
  10471. .groupn {
  10472. font-size: 15px;
  10473. margin-right: 10px;
  10474. }
  10475. .groupName+.groupName {
  10476. margin-top: 15px;
  10477. }
  10478. .groupBtn {
  10479. margin-left: 10px;
  10480. }
  10481. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  10482. text-align: left;
  10483. }
  10484. .g_d_btnBox {
  10485. display: flex;
  10486. justify-content: flex-end;
  10487. align-items: flex-end;
  10488. margin-bottom: 20px;
  10489. }
  10490. .updateChair {
  10491. position: relative;
  10492. }
  10493. .updateChairBtn {
  10494. position: absolute;
  10495. width: 50px;
  10496. height: 50px;
  10497. overflow: hidden;
  10498. /* display: flex; */
  10499. align-items: center;
  10500. justify-content: center;
  10501. background: #00000087;
  10502. color: #fff;
  10503. border-radius: 50px;
  10504. display: none;
  10505. cursor: pointer;
  10506. }
  10507. .updateChair:hover .updateChairBtn {
  10508. display: flex;
  10509. }
  10510. .group_staic_box {
  10511. display: flex;
  10512. padding: 30px 40px 10px;
  10513. flex-wrap: wrap;
  10514. }
  10515. .group_staic {
  10516. /* width: 50%; */
  10517. margin-bottom: 20px;
  10518. display: flex;
  10519. align-items: center;
  10520. }
  10521. .group_staic span:nth-child(1) {
  10522. width: 150px;
  10523. text-align: right;
  10524. margin-right: 15px;
  10525. }
  10526. .group_staic span:nth-child(2) {
  10527. background: rgb(0 123 255);
  10528. color: #fff;
  10529. border-radius: 5px;
  10530. padding: 5px;
  10531. }
  10532. .codeFileBox {
  10533. height: 300px;
  10534. background: #fff;
  10535. display: flex;
  10536. align-items: center;
  10537. justify-content: center;
  10538. }
  10539. .codeFileBox img {
  10540. width: 200px;
  10541. margin: 0;
  10542. height: auto;
  10543. }
  10544. .codeFileBox div {
  10545. background: rgb(80, 142, 226);
  10546. color: #fff;
  10547. padding: 10px 20px;
  10548. border-radius: 25px;
  10549. cursor: pointer;
  10550. margin-left: 15px;
  10551. }
  10552. .radioBox {
  10553. display: flex;
  10554. flex-direction: column;
  10555. flex-wrap: nowrap;
  10556. align-items: flex-start;
  10557. }
  10558. .radioBox>div {
  10559. margin: 10px 0 0 10px;
  10560. }
  10561. /* .radioBox >>> .el-radio__input,
  10562. .radioBox >>> .el-checkbox__inner {
  10563. margin-left: 10px;
  10564. } */
  10565. .radioBox>>>.el-radio__label,
  10566. .radioBox>>>.el-checkbox__label {
  10567. display: flex;
  10568. align-items: center;
  10569. }
  10570. .radioBox >>> .el-radio__label > span {
  10571. width: 100%;
  10572. display: -webkit-box;
  10573. overflow: hidden;
  10574. white-space: normal !important;
  10575. text-overflow: ellipsis;
  10576. word-wrap: break-word;
  10577. }
  10578. .inImg {
  10579. width: 100px;
  10580. cursor: pointer;
  10581. }
  10582. .inImg>img {
  10583. width: 100%;
  10584. height: 100%;
  10585. object-fit: cover;
  10586. }
  10587. .timuImgBox {
  10588. margin: 10px 0;
  10589. display: flex;
  10590. flex-direction: column;
  10591. flex-wrap: wrap;
  10592. align-items: flex-start;
  10593. }
  10594. .timuImg {
  10595. width: 150px;
  10596. margin: 5px 0;
  10597. cursor: pointer;
  10598. }
  10599. .timuImg>img {
  10600. width: 100%;
  10601. height: 100%;
  10602. object-fit: cover;
  10603. }
  10604. .worksTop {
  10605. display: flex;
  10606. flex-direction: row;
  10607. align-items: flex-end;
  10608. }
  10609. .corOpen {
  10610. margin: 0 0 0 10px;
  10611. font-size: 14px;
  10612. cursor: pointer;
  10613. color: #505050;
  10614. }
  10615. .corOpen:hover {
  10616. color: #499eef;
  10617. }
  10618. .navCorOpenBox {
  10619. display: flex;
  10620. flex-direction: row;
  10621. align-items: center;
  10622. background: #1e5cc9;
  10623. justify-content: space-between;
  10624. }
  10625. .navCorOpen {
  10626. padding-right: 15px;
  10627. cursor: pointer;
  10628. width: 20px;
  10629. display: flex;
  10630. }
  10631. .navCorOpen>img {
  10632. width: 100%;
  10633. height: 100%;
  10634. }
  10635. .mlImg {
  10636. width: 25px !important;
  10637. cursor: pointer;
  10638. margin-top: 5px;
  10639. }
  10640. .mlImg>img {
  10641. width: 100%;
  10642. height: 100%;
  10643. }
  10644. .navLeftCss {
  10645. width: 100% !important;
  10646. left: 0 !important;
  10647. }
  10648. .isContentCss {
  10649. width: 100% !important;
  10650. }
  10651. .isAllWidth {
  10652. width: 100% !important;
  10653. }
  10654. .toolBoxSteps {
  10655. position: absolute;
  10656. top: 50%;
  10657. transform: translateY(-50%);
  10658. cursor: pointer;
  10659. width: 60px;
  10660. display: flex;
  10661. align-items: center;
  10662. justify-content: center;
  10663. }
  10664. .toolBoxSteps:nth-child(1)>img,
  10665. .toolBoxSteps:nth-child(2)>img {
  10666. width: 24px;
  10667. }
  10668. .toolBoxSteps:nth-child(1) {
  10669. left: 0;
  10670. }
  10671. .toolBoxSteps:nth-child(2) {
  10672. right: 0;
  10673. }
  10674. .chooseWho {
  10675. display: flex;
  10676. width: 380px;
  10677. flex-direction: row;
  10678. flex-wrap: nowrap;
  10679. justify-content: space-between;
  10680. padding-bottom: 10px;
  10681. }
  10682. .chooseWho>div {
  10683. cursor: pointer;
  10684. padding-bottom: 10px;
  10685. font-weight: bold;
  10686. }
  10687. .isChooseActive {
  10688. color: #3e88f4;
  10689. border-bottom: 2px solid #2f80f3;
  10690. }
  10691. .toolSort {
  10692. display: flex;
  10693. flex-direction: row;
  10694. flex-wrap: wrap;
  10695. justify-content: flex-start;
  10696. align-items: flex-start;
  10697. }
  10698. .toolSort>div {
  10699. margin-right: 45px;
  10700. }
  10701. .tools {
  10702. width: 100%;
  10703. display: flex;
  10704. flex-direction: column;
  10705. flex-wrap: nowrap;
  10706. align-items: flex-start;
  10707. }
  10708. .whiteBIcon {
  10709. width: 80px;
  10710. cursor: pointer;
  10711. display: flex;
  10712. flex-direction: column;
  10713. flex-wrap: nowrap;
  10714. align-items: center;
  10715. font-size:14px;
  10716. }
  10717. .whiteBIcon>img {
  10718. width: 100%;
  10719. height: 100%;
  10720. }
  10721. .whiteBIcon>img {
  10722. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  10723. border-radius: 15px;
  10724. }
  10725. .dia_tool_box {
  10726. display: flex;
  10727. flex-wrap: wrap;
  10728. width: 100%;
  10729. }
  10730. .dia_tool_box>div {
  10731. margin-right: 40px;
  10732. }
  10733. </style>