studyStudentGM.vue 289 KB

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