studyStudent.vue 499 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div class="pb_content_body" style="display: flex; height: 900px; position: relative">
  4. <div class="btnAllNT">
  5. <img src="../../assets/icon/learn/screen.png" @click="allScrell" />
  6. <img src="../../assets/icon/learn/last.png" @click="nextOrpreSteps(0)" />
  7. <img src="../../assets/icon/learn/next.png" @click="nextOrpreSteps(1)" />
  8. <img src="../../assets/icon/learn/return.png" @click.stop="goTo(
  9. '/courseDetailNT?userid=' +
  10. userid +
  11. '&oid=' +
  12. oid +
  13. '&org=' +
  14. org +
  15. '&cid=' +
  16. classId +
  17. '&courseId=' +
  18. id +
  19. '&tType=' +
  20. tType +
  21. '&screenType=' +
  22. screenType
  23. )
  24. " />
  25. </div>
  26. <div class="pButton" style="
  27. left: 0;
  28. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  29. " v-if="mlDialog == false" @click="setContent2(true)">
  30. <!-- 批 , getCourseDetail()-->
  31. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  32. </div>
  33. <div class="pb_left" v-else>
  34. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  35. <div class="courseTitle">
  36. <div style="width:calc(100% - 25px)">
  37. <el-tooltip effect="light" :content="courseDetail.title" placement="top">
  38. <div class="ctitle">{{ courseDetail.title }}</div>
  39. </el-tooltip>
  40. <!-- <div class="inviteBox" v-if="tcid && inviteCode">
  41. <div><span>随机码:{{ inviteCode }}</span></div>
  42. </div> -->
  43. </div>
  44. <el-tooltip effect="light" content="收缩" placement="top">
  45. <div class="mlImg" @click="setContent2(false)">
  46. <img src="../../assets/mlBtn.png" alt="" />
  47. </div>
  48. </el-tooltip>
  49. </div>
  50. <div class="ml">目录</div>
  51. <div class="cru_selectBox">
  52. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  53. <div class="blue_box_one" @click="get(stageIndex)">
  54. <div>第{{ stageIndex + 1 }}阶段</div>
  55. <div>{{ item.dyName }}</div>
  56. </div>
  57. <div class="twoChild" :class="{ navActive: item.isOpen }">
  58. <div class="navChild" v-for="(nav, navIndex) in item.task" :key="navIndex">
  59. <div class="navTask" @click="openTask(stageIndex, navIndex, nav.id)" :class="{
  60. openTaskActive:
  61. navIndex == taskCount &&
  62. nav.id == navId &&
  63. stageIndex == courseType,
  64. }">
  65. <div class="vedioNav" :class="{
  66. isClick:
  67. navIndex == taskCount &&
  68. nav.id == navId &&
  69. stageIndex == courseType,
  70. }" style="margin: 0">
  71. 任务{{ navIndex + 1 }}
  72. </div>
  73. <el-tooltip class="navTaskname item" effect="light" :content="nav.taskName" placement="top">
  74. <div :style="{
  75. width:
  76. IsLookOpen && !nav.isLook
  77. ? 'calc(100% - 75px)'
  78. : 'auto',
  79. }">
  80. {{ nav.taskName }}
  81. </div>
  82. </el-tooltip>
  83. <img src="../../assets/lock.png" v-if="IsLookOpen && !nav.isLook" alt="" />
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <div class="body_student" :class="{ navLeftCss: !mlDialog }">
  91. <div class="new_top" style="
  92. position: fixed;
  93. top: 0;
  94. left: 20.7%;
  95. width: 80%;
  96. z-index: 999;
  97. box-shadow: 0px 9px 0 0 #f2f2f2;
  98. " :class="{ navLeftCss: !mlDialog }">
  99. <div class="courseIndex">
  100. <div>第{{ courseType - 0 + 1 }}阶段</div>
  101. <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
  102. <div>{{ chapInfoList[courseType].dyName }}</div>
  103. </el-tooltip>
  104. <div>任务{{ taskCount + 1 }}</div>
  105. </div>
  106. <div class="btnAll">
  107. <div class="returnBtn" @click="nextOrpreSteps(0)">上一步</div>
  108. <div class="returnBtn" @click="nextOrpreSteps(1)">下一步</div>
  109. <div class="returnBtn" @click="allScrell">全屏</div>
  110. <!-- <div class="returnBtn" @click="startRecording" v-if="!videoStart && (tType == 1 || tType == 4)">
  111. 开始录制
  112. </div>
  113. <div class="returnBtn" @click="stopRecording" v-else-if="tType == 1 || tType == 4"
  114. style="background: #ee5255">
  115. 下载录制
  116. </div>
  117. <div class="returnBtn" @click="juriVisible = true" v-if="tType == 1">
  118. 权限
  119. </div> -->
  120. <div class="returnBtn" style="background: #225bc7" @click.stop="goTo(
  121. '/courseDetailNT?userid=' +
  122. userid +
  123. '&oid=' +
  124. oid +
  125. '&org=' +
  126. org +
  127. '&cid=' +
  128. classId +
  129. '&courseId=' +
  130. id +
  131. '&tType=' +
  132. tType +
  133. '&screenType=' +
  134. screenType
  135. )
  136. ">
  137. 返回
  138. </div>
  139. </div>
  140. </div>
  141. <!-- v-for="(task, index) in chapInfoList[courseType].chapterInfo[0]
  142. .taskJson"
  143. :key="index"-->
  144. <div class="isNoMessage" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  145. .chapterData.length == 0 &&
  146. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  147. .toolChoose[0].tool.length == 0 &&
  148. chapInfoList[courseType].chapterInfo[0].video.length == 0 &&
  149. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  150. .taskDetail == '' &&
  151. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList
  152. ">
  153. <img src="../../assets/icon/isNoMessage.png" alt />
  154. </div>
  155. <div class="study_top" :class="{ pzClass: pzDialog }">
  156. <div class="vedioBox" v-if="vedio[taskCount].length > 0 ||
  157. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  158. .taskDetail != '' ||
  159. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  160. .chapterData.length > 0
  161. ">
  162. <div class="checkbox">
  163. <div class="check" style="font-size: 25px" :id="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].id
  164. ">
  165. 学一学
  166. </div>
  167. </div>
  168. <div class="student_head" v-if="vedio[taskCount].length > 0 ||
  169. textList[taskCount].length > 0 ||
  170. lineList[taskCount].length > 0 ||
  171. file[taskCount].length > 0 ||
  172. fileC[taskCount].length > 0 ||
  173. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  174. .taskDetail != ''
  175. ">
  176. <div class="taskBox">
  177. <div style="
  178. display: flex;
  179. flex-wrap: nowrap;
  180. flex-direction: column;
  181. position: relative;
  182. ">
  183. <div style="padding: 15px 0 15px 20px; line-height: 25px" class="cont" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[
  184. taskCount
  185. ].taskDetail != ''
  186. " v-html="chapInfoList[courseType].chapterInfo[0].taskJson[
  187. taskCount
  188. ].taskDetail
  189. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  190. taskCount
  191. ].taskDetail
  192. : '暂无描述'
  193. "></div>
  194. </div>
  195. </div>
  196. <div class="vedioTaskBox">
  197. <div :class="contentDialog == false
  198. ? 'box_course isContentCss'
  199. : 'box_course'
  200. " v-if="vedio[taskCount].length > 0 ||
  201. textList[taskCount].length > 0 ||
  202. lineList[taskCount].length > 0 ||
  203. file[taskCount].length > 0
  204. ">
  205. <div class="wheel" style="height: auto;" v-if="vedio.length &&
  206. vedio[taskCount] &&
  207. vedio[taskCount].length > 0 &&
  208. showType == 0
  209. ">
  210. <div class="workd_media" style="height: 650px; width: calc(100% - 50px)">
  211. <video-player class="video-player vjs-custom-skin"
  212. :class="contentDialog == false ? 'isAllWidth' : ''" :playsinline="true"
  213. :options="playerO[taskCount]" @play="onPlayerPlay($event)"
  214. style="width: 100%; height: 100%; margin: 0 0 0 30px"></video-player>
  215. </div>
  216. </div>
  217. <div class="wheel" v-if="showType == 1" style="
  218. box-shadow: 0 0 6px 1px #f2f2f2;
  219. width: 95%;
  220. margin: 0 auto;
  221. background: #f1f1f1;
  222. ">
  223. <div class="title">查看文档</div>
  224. <el-form class="textBox">
  225. <el-form-item class="textTitle">
  226. <div style="font-size: 22px">
  227. {{ text.name }}
  228. </div>
  229. </el-form-item>
  230. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  231. <div v-html="text.url" class="textContent cont"></div>
  232. </el-form>
  233. </div>
  234. <div class="wheel"
  235. v-if="pptImgUrl1.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && showType == 2"
  236. style="width: 95%; margin: 0 auto">
  237. <iframe style="width: 100%; height: 100%; border: none" :src="pptImgUrl1"></iframe>
  238. </div>
  239. <div class="wheel" v-else-if="showType == 2" style="width: 95%; margin: 0 auto">
  240. <iframe style="width: 100%; height: 100%; border: none" security="restricted"
  241. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  242. :src="pptImgUrl1"></iframe>
  243. </div>
  244. <div class="wheel" v-if="showType == 3" style="width: 95%; margin: 0 auto">
  245. <pdf :pdfUrl="pptImgUrl1" style="width: 100%; height: 100%; overflow: auto"></pdf>
  246. </div>
  247. <div class="wheel" v-if="showType == 4" style="width: 95%; margin: 0 auto">
  248. <el-image :src="pptImgUrl1" fit="cover" style="width: 100%"></el-image>
  249. </div>
  250. </div>
  251. <div class="pButton" style="
  252. position: absolute;
  253. right: 20px;
  254. top: 0;
  255. background: #205cc6;
  256. z-index: 998;
  257. opacity: .8;
  258. " v-if="!contentDialog" @click="setContent(true)">
  259. <!-- 批 -->
  260. <img src="../../assets/navBtn2.png" style="width: 25px" alt="" />
  261. </div>
  262. <div v-if="contentDialog == true" :style="{
  263. width: (!vedio[taskCount].length > 0 &&
  264. !textList[taskCount].length > 0 &&
  265. !lineList[taskCount].length > 0 &&
  266. !file[taskCount].length > 0 && fileC[taskCount].length) ? 'calc(100%)' : 'calc(100% - 83%)', margin: (!vedio[taskCount].length > 0 &&
  267. !textList[taskCount].length > 0 &&
  268. !lineList[taskCount].length > 0 &&
  269. !file[taskCount].length > 0 && fileC[taskCount].length) ? '0 15px' : '0 15px 0 0'
  270. }">
  271. <div class="vedioList" v-if="(vedio.length &&
  272. vedio[taskCount] &&
  273. vedio[taskCount].length > 0) ||
  274. (textList.length &&
  275. textList[taskCount] &&
  276. textList[taskCount].length > 0) ||
  277. (lineList.length &&
  278. lineList[taskCount] &&
  279. lineList[taskCount].length > 0) ||
  280. (file.length &&
  281. file[taskCount] &&
  282. file[taskCount].length > 0) ||
  283. (fileC.length &&
  284. fileC[taskCount] &&
  285. fileC[taskCount].length > 0)
  286. " style="height: 650px">
  287. <div class="navCorOpenBox">
  288. <div class="navTitile">内容列表:</div>
  289. <div class="navCorOpen" @click="setContent(false)">
  290. <img src="../../assets/navBtn2.png" alt="" />
  291. </div>
  292. </div>
  293. <div class="navBox">
  294. <div v-show="vedio.length &&
  295. vedio[taskCount] &&
  296. vedio[taskCount].length > 0
  297. ">
  298. <div class="vedioTimeBox" v-for="(media, vedioIndex) in vedio[taskCount]" :key="vedioIndex + '1'"
  299. @click="lookVedio(media.url, vedioIndex)">
  300. <div class="vedioName" :class="isClickNav == 'video' + vedioIndex
  301. ? 'isClickNav'
  302. : ''
  303. ">
  304. <span v-if="media.text">{{ media.text }}-</span>{{ media.name }}
  305. </div>
  306. </div>
  307. </div>
  308. <div v-show="textList.length &&
  309. textList[taskCount] &&
  310. textList[taskCount].length > 0
  311. " class="newNav" v-for="(text, textIndex) in textList[taskCount]" :key="textIndex + '2'"
  312. @click="lookText(taskCount, textIndex)">
  313. <div style="width: calc(100% - 0px)">
  314. <div class="navText" :class="isClickNav == 'text' + textIndex
  315. ? 'isClickNav'
  316. : ''
  317. ">
  318. {{
  319. textList[taskCount].length > 0 ? text.name : ""
  320. }}.doc
  321. </div>
  322. </div>
  323. </div>
  324. <div v-show="lineList.length &&
  325. lineList[taskCount] &&
  326. lineList[taskCount].length > 0
  327. " class="newNav" v-for="(lines, lineIndex) in lineList[taskCount]" :key="lineIndex + '4'"
  328. @click="doUrl(lines.url, lineIndex)">
  329. <div style="width: calc(100% - 0px)">
  330. <div class="navText" :class="isClickNav == 'line' + lineIndex
  331. ? 'isClickNav'
  332. : ''
  333. ">
  334. {{ lines.title ? lines.title : lines.url }}
  335. </div>
  336. </div>
  337. </div>
  338. <div class="newNav" v-show="file.length &&
  339. file[taskCount] &&
  340. file[taskCount].length > 0
  341. " v-for="(f, fileIndex) in file[taskCount]" :key="fileIndex" @click="downFile(f, fileIndex)">
  342. <div style="width: calc(100% - 0px)">
  343. <div class="navText" :class="isClickNav == 'word' + fileIndex
  344. ? 'isClickNav'
  345. : ''
  346. ">
  347. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  348. </div>
  349. </div>
  350. </div>
  351. <div class="newNav" v-show="fileC.length &&
  352. fileC[taskCount] &&
  353. fileC[taskCount].length > 0
  354. " v-for="(f, fileIndex) in fileC[taskCount]" :key="fileIndex" @click="downloadFile2(f)">
  355. <div style="width: calc(100% - 0px)">
  356. <div class="navText">
  357. <span v-if="f.text">{{ f.text }}-</span>{{ f.name }}
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. <div style="width: 81%">
  366. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 2 || showType == 3">
  367. <el-button type="primary" @click="checkFileFull(showType, pptImgUrl1)">全屏查看</el-button>
  368. <el-button type="primary" @click="downloadFile(pptImgUrl1)"
  369. v-if="isClickNav.indexOf('line') == -1">文件下载</el-button>
  370. <el-button v-if="isClickNav.indexOf('line') != -1" type="primary" @click="openLine(pptImgUrl1)">打开链接
  371. </el-button>
  372. </div>
  373. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto" v-if="showType == 1">
  374. <el-button type="primary" @click="checkFileFull(showType, text)">全屏查看</el-button>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="student_body" v-resize="resize">
  380. <div class="vedioBox" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  381. .toolChoose[0].tool &&
  382. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  383. .toolChoose[0].tool.length &&
  384. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  385. .toolChoose[0].tool.length > 0
  386. ">
  387. <div class="queTop" style="
  388. font-size: 25px;
  389. padding: 15px 0 15px 30px;
  390. font-weight: bold;
  391. ">
  392. 任务发布区
  393. </div>
  394. <div class="toolHeng2" style="position: relative">
  395. <div class="filebox" style="flex-wrap: nowrap; margin: 0 20px"
  396. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose.length">
  397. <div class="choiceBox">
  398. <div class="bzChild" style="margin-right:20px;">
  399. <span>步骤选择:</span>
  400. </div>
  401. <div class="bzTypeBox">
  402. <div class="bzChild"
  403. v-for="(bz, bzIndex) in chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].toolChoose"
  404. :key="bzIndex" :class="{active:toolIndex == bzIndex}" @click="checkBz(bzIndex)">
  405. <span>步骤{{ bzIndex + 1 }}</span>
  406. </div>
  407. </div>
  408. </div>
  409. <div class="bzBox">
  410. <div></div>
  411. <div>步骤{{ toolIndex + 1 }}</div>
  412. </div>
  413. <div class="toolBox">
  414. <div class="toolBoxSteps" @click="nextToolindex('last')"><img src="../../assets/icon/leftIcon.png" />
  415. </div>
  416. <div class="toolBoxSteps" @click="nextToolindex('next')"><img src="../../assets/icon/rightIcon.png" />
  417. </div>
  418. <div>
  419. <div class="noiframeBox">
  420. <div class="addPoint" v-for="(tooC, toolCIndex) in tool.tool" :key="toolCIndex">
  421. <div v-if="tooC == 1">
  422. <img src="../../assets/icon/secondToolList/whiteBoard.png" alt
  423. @click="addTools(tooC, toolIndex, taskCount)" />
  424. <div style="margin: 5px 0">电子白板</div>
  425. </div>
  426. <div v-if="tooC == 3">
  427. <img src="../../assets/icon/secondToolList/mindMapping.png" alt
  428. @click="addTools(tooC, toolIndex, taskCount)" />
  429. <div style="margin: 5px 0">思维导图</div>
  430. </div>
  431. <div v-if="tooC == 6">
  432. <img src="../../assets/icon/secondToolList/doc.png" alt
  433. @click="addTools(tooC, toolIndex, taskCount)" />
  434. <div style="margin: 5px 0">协同文档</div>
  435. </div>
  436. <div v-if="tooC == 7">
  437. <img src="../../assets/icon/secondToolList/mindNetwork.png" alt
  438. @click="addTools(tooC, toolIndex, taskCount)" />
  439. <div style="margin: 5px 0">思维网格</div>
  440. </div>
  441. <div v-if="tooC == 8">
  442. <img src="../../assets/icon/secondToolList/library.png" alt
  443. @click="addTools(tooC, toolIndex, taskCount)" />
  444. <div style="margin: 5px 0">素材库</div>
  445. </div>
  446. <div v-if="tooC == 17">
  447. <img src="../../assets/icon/secondToolList/library.png" alt
  448. @click="addTools(tooC, toolIndex, taskCount)" />
  449. <div style="margin: 5px 0">学习资料</div>
  450. </div>
  451. <div v-if="tooC == 2">
  452. <img @click="addTools(tooC, toolIndex, taskCount)"
  453. src="../../assets/icon/secondToolList/note.png" alt />
  454. <div style="margin: 5px 0">便签</div>
  455. </div>
  456. <div v-if="tooC == 4">
  457. <img @click="addTools(tooC, toolIndex, taskCount)"
  458. src="../../assets/icon/thirdToolList/ask.png" alt />
  459. <div style="margin: 5px 0">问卷调查</div>
  460. </div>
  461. <div v-if="tooC == 45">
  462. <img @click="addTools(tooC, toolIndex, taskCount)"
  463. src="../../assets/icon/thirdToolList/choose.png" alt />
  464. <div style="margin: 5px 0">选择题</div>
  465. </div>
  466. <!-- <div v-if="tooC == 5">
  467. <img
  468. @click="addTools(tooC, toolIndex, taskCount)"
  469. src="../../assets/icon/thirdToolList/score.png"
  470. alt
  471. />
  472. <div style="margin: 5px 0">量规评分</div>
  473. </div> -->
  474. <div v-if="tooC == 10">
  475. <img @click="addTools(tooC, toolIndex, taskCount)"
  476. src="../../assets/icon/thirdToolList/time.png" alt />
  477. <div style="margin: 5px 0">倒计时</div>
  478. </div>
  479. <div v-if="tooC == 15">
  480. <img @click="addTools(tooC, toolIndex, taskCount)"
  481. src="../../assets/icon/thirdToolList/answer.png" alt />
  482. <div style="margin: 5px 0">问答工具</div>
  483. </div>
  484. <div v-if="tooC == 26">
  485. <img @click="addTools(tooC, toolIndex, taskCount)"
  486. src="../../assets/icon/thirdToolList/courseDesign.png" alt />
  487. <div style="margin: 5px 0">课程设计</div>
  488. </div>
  489. <div v-if="tooC == 18">
  490. <img @click="addTools(tooC, toolIndex, taskCount)"
  491. src="../../assets/icon/thirdToolList/trainPlatform.png" alt />
  492. <div style="margin: 5px 0">训练服务器</div>
  493. </div>
  494. <div v-if="tooC == 16">
  495. <img @click="addTools(tooC, toolIndex, taskCount)"
  496. src="../../assets/icon/thirdToolList/work.png" alt />
  497. <div style="margin: 5px 0">作业提交</div>
  498. </div>
  499. <div v-if="tooC == 50">
  500. <img @click="addTools(tooC, toolIndex, taskCount)"
  501. src="../../assets/icon/thirdToolList/plwork.png" alt />
  502. <div style="margin: 5px 0">批量上传</div>
  503. </div>
  504. <div v-if="tooC == 21">
  505. <img @click="addTools(tooC, toolIndex, taskCount)"
  506. src="../../assets/icon/fourthToolList/program.png" alt />
  507. <div style="margin: 5px 0">编程平台</div>
  508. </div>
  509. <div v-if="tooC == 22">
  510. <img @click="addTools(tooC, toolIndex, taskCount)"
  511. src="../../assets/icon/fourthToolList/program.png" alt />
  512. <div style="margin: 5px 0">AI体验</div>
  513. </div>
  514. <div v-if="tooC == 23">
  515. <img @click="addTools(tooC, toolIndex, taskCount)"
  516. src="../../assets/icon/fourthToolList/program.png" alt />
  517. <div style="margin: 5px 0">Python</div>
  518. </div>
  519. <div v-if="tooC == 24">
  520. <img @click="addTools(tooC, toolIndex, taskCount)"
  521. src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  522. <div style="margin: 5px 0">AI平台</div>
  523. </div>
  524. <div v-if="tooC == 25">
  525. <img @click="addTools(tooC, toolIndex, taskCount)"
  526. src="../../assets/icon/thirdToolList/evalua.png" alt />
  527. <div style="margin: 5px 0">目标管理</div>
  528. </div>
  529. <div v-if="tooC == 31">
  530. <img @click="addTools(tooC, toolIndex, taskCount)"
  531. src="../../assets/icon/secondToolList/networkPanel.png" alt />
  532. <div style="margin: 5px 0">数学画板</div>
  533. </div>
  534. <div v-if="tooC == 28">
  535. <img @click="addTools(tooC, toolIndex, taskCount)"
  536. src="../../assets/icon/secondToolList/translation.png" alt />
  537. <div style="margin: 5px 0">翻译</div>
  538. </div>
  539. <div v-if="tooC == 37">
  540. <img @click="addTools(tooC, toolIndex, taskCount)"
  541. src="../../assets/icon/secondToolList/mohe.png" alt />
  542. <div style="margin: 5px 0">魔盒识字</div>
  543. </div>
  544. <div v-if="tooC == 38">
  545. <img @click="addTools(tooC, toolIndex, taskCount)"
  546. src="../../assets/icon/secondToolList/24game.png" alt />
  547. <div style="margin: 5px 0">24点</div>
  548. </div>
  549. <div v-if="tooC == 39">
  550. <img @click="addTools(tooC, toolIndex, taskCount)"
  551. src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  552. <div style="margin: 5px 0">GeoGebra</div>
  553. </div>
  554. <div v-if="tooC == 32">
  555. <img @click="addTools(tooC, toolIndex, taskCount)"
  556. src="../../assets/icon/thirdToolList/code.png" alt />
  557. <div style="margin: 5px 0">源码编辑</div>
  558. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  559. style="position: absolute;left: 110px;bottom: 30px;">
  560. 上传文件
  561. <input type="file" accept="*" style="display: none"
  562. @change="beforeUpload1($event, 7, toolIndex)" />
  563. </div> -->
  564. </div>
  565. <div v-if="tooC == 40">
  566. <img @click="addTools(tooC, toolIndex, taskCount)"
  567. src="../../assets/icon/secondToolList/eval.png" alt />
  568. <div style="margin: 5px 0">个人评价</div>
  569. </div>
  570. <div v-if="tooC == 41">
  571. <img @click="addTools(tooC, toolIndex, taskCount)"
  572. src="../../assets/icon/thirdToolList/select.png" alt />
  573. <div style="margin: 5px 0">选择填空</div>
  574. </div>
  575. <div v-if="tooC == 44">
  576. <img @click="addTools(tooC, toolIndex, taskCount)"
  577. src="../../assets/icon/thirdToolList/hanClass.png" alt />
  578. <div style="margin: 5px 0">汉字宫</div>
  579. </div>
  580. <div v-if="tooC == 47">
  581. <img @click="addTools(tooC, toolIndex, taskCount)"
  582. src="../../assets/icon/fourthToolList/conSentences.png" alt />
  583. <div style="margin: 5px 0">连词成句</div>
  584. </div>
  585. <div v-if="tooC == 48">
  586. <img @click="addTools(tooC, toolIndex, taskCount)"
  587. src="../../assets/icon/fourthToolList/table.png" alt />
  588. <div style="margin: 5px 0">表格</div>
  589. </div>
  590. <div v-if="tooC == 52">
  591. <img @click="addTools(tooC, toolIndex, taskCount)"
  592. src="../../assets/icon/fourthToolList/text.png" alt />
  593. <div style="margin: 5px 0">文档</div>
  594. </div>
  595. <div v-if="tooC == 49">
  596. <img @click="addTools(tooC, toolIndex, taskCount)"
  597. src="../../assets/icon/fourthToolList/group.png" alt />
  598. <div style="margin: 5px 0">学生分组</div>
  599. </div>
  600. <div v-if="tooC == 57">
  601. <img @click="addTools(tooC, toolIndex, taskCount)"
  602. src="../../assets/icon/fourthToolList/cocopi.png" alt />
  603. <div style="margin: 5px 0">CocoPi</div>
  604. </div>
  605. <div v-if="tooC == 58">
  606. <img @click="addTools(tooC, toolIndex, taskCount)"
  607. src="../../assets/icon/fourthToolList/car.png" alt />
  608. <div style="margin: 5px 0">模拟驾驶</div>
  609. </div>
  610. <div v-if="tooC == 59">
  611. <img @click="addTools(tooC, toolIndex, taskCount)"
  612. src="../../assets/icon/fourthToolList/lineSearch.png" alt />
  613. <div style="margin: 5px 0">路径搜索</div>
  614. </div>
  615. <div v-if="tooC == 60">
  616. <img @click="addTools(tooC, toolIndex, taskCount)"
  617. src="../../assets/icon/fourthToolList/deepLearning.png" alt />
  618. <div style="margin: 5px 0">深度学习</div>
  619. </div>
  620. <div v-if="tooC == 61">
  621. <img @click="addTools(tooC, toolIndex, taskCount)"
  622. src="../../assets/icon/fourthToolList/allHistory.png" alt />
  623. <div style="margin: 5px 0">全历史</div>
  624. </div>
  625. <div v-if="tooC == 62">
  626. <img @click="addTools(tooC, toolIndex, taskCount)"
  627. src="../../assets/icon/fourthToolList/interVideo.png" alt />
  628. <div style="margin: 5px 0">交互视频</div>
  629. </div>
  630. </div>
  631. </div>
  632. </div>
  633. <div class="tooldetail">
  634. <!-- <div class="toolTitle">工具描述</div> -->
  635. <div v-html="contentConvent(tool.toolDetail ? tool.toolDetail : '暂无描述')"></div>
  636. </div>
  637. <el-button type="primary" v-if="tool.tool[0] == 32" style="
  638. position: absolute;
  639. right: 30px;
  640. transform: translateY(-130%);
  641. " @click="addImg($event)">上传作业<input type="file" accept="*"
  642. style="display: none" @change="beforeUpload1($event, 7, toolIndex)" /></el-button>
  643. <el-button type="primary" v-if="tool.tool[0] == 57" style="
  644. position: absolute;
  645. right: 30px;
  646. transform: translateY(-130%);
  647. " @click="addImg($event)">上传作业<input type="file" accept="*"
  648. style="display: none" @change="beforeUpload1($event, 8, toolIndex)" /></el-button>
  649. </div>
  650. </div>
  651. </div>
  652. </div>
  653. <div class="vedioBox"
  654. v-if="arrayToArray(tool.tool, isWorkTool).length && worksTeacher.length && worksTeacher[toolIndex].length">
  655. <div class="queTop" style="
  656. font-size: 25px;
  657. padding: 15px 0 15px 30px;
  658. font-weight: bold;
  659. ">
  660. 教师工作区
  661. </div>
  662. <div class="tool_work_box">
  663. <div v-if="tType &&
  664. ((tType == 2 && sIsOpen == true) ||
  665. tType == 1 ||
  666. tType == 4) &&
  667. tool.tool.indexOf(16) != -1
  668. " class="worksBox">
  669. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  670. worksTeacher[toolIndex].length > 0
  671. ">
  672. <div class="worksTop">
  673. <div>作业预览</div>
  674. </div>
  675. </div>
  676. <div class="worksDetailBox" v-if="worksTeacher.length &&
  677. worksTeacher[toolIndex].length > 0
  678. ">
  679. <div class="works" style="
  680. width: 200px;
  681. height: 140px;
  682. margin: 10px 10px 10px 0;
  683. border-radius: 15px;
  684. box-shadow: 0 0 6px 1px #dfdada;
  685. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  686. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  687. <div class="workImg" v-if="w.type == 0">
  688. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  689. <img :src="w.works" @click="previewImg(w.works)" alt />
  690. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  691. rightW:
  692. w.userid == userid ||
  693. tType == 1 ||
  694. tType == 4 ||
  695. w.ateacher == userid,
  696. }">
  697. {{ JSON.parse(w.score).wScore }}分
  698. </div>
  699. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  700. :class="{
  701. rightW:
  702. w.userid == userid ||
  703. tType == 1 ||
  704. tType == 4 ||
  705. w.ateacher == userid,
  706. }">
  707. 评分
  708. </div>
  709. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  710. " @click.stop="deleteWorks(w.wid)" alt />
  711. </div>
  712. <div class="workImg" v-if="w.type == 1">
  713. <img :src="word" @click="openFile(w.works)" alt />
  714. <!-- @click="openFile(w.works)" -->
  715. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  716. rightW:
  717. w.userid == userid ||
  718. tType == 1 ||
  719. tType == 4 ||
  720. w.ateacher == userid,
  721. }">
  722. {{ JSON.parse(w.score).wScore }}分
  723. </div>
  724. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  725. :class="{
  726. rightW:
  727. w.userid == userid ||
  728. tType == 1 ||
  729. tType == 4 ||
  730. w.ateacher == userid,
  731. }">
  732. 评分
  733. </div>
  734. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  735. " @click.stop="deleteWorks(w.wid)" alt />
  736. </div>
  737. <div class="workImg" v-if="w.type == 3">
  738. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  739. <!-- @click="openVideo(w.works)" -->
  740. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  741. rightW:
  742. w.userid == userid ||
  743. tType == 1 ||
  744. tType == 4 ||
  745. w.ateacher == userid,
  746. }">
  747. {{ JSON.parse(w.score).wScore }}分
  748. </div>
  749. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  750. :class="{
  751. rightW:
  752. w.userid == userid ||
  753. tType == 1 ||
  754. tType == 4 ||
  755. w.ateacher == userid,
  756. }">
  757. 评分
  758. </div>
  759. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  760. " @click.stop="deleteWorks(w.wid)" alt />
  761. </div>
  762. <div class="workImg" v-if="w.type == 12">
  763. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  764. <!-- @click="openVideo(w.works)" -->
  765. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  766. rightW:
  767. w.userid == userid ||
  768. tType == 1 ||
  769. tType == 4 ||
  770. w.ateacher == userid,
  771. }">
  772. {{ JSON.parse(w.score).wScore }}分
  773. </div>
  774. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  775. :class="{
  776. rightW:
  777. w.userid == userid ||
  778. tType == 1 ||
  779. tType == 4 ||
  780. w.ateacher == userid,
  781. }">
  782. 评分
  783. </div>
  784. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  785. " @click.stop="deleteWorks(w.wid)" alt />
  786. </div>
  787. <div class="comment" style="min-width: 200px">
  788. <div class="worksName">
  789. <div>{{ w.sName }}</div>
  790. </div>
  791. <div class="commentList">
  792. <div class="commentList">
  793. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  794. ">
  795. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  796. </div>
  797. <div>{{ w.likesCount }}</div>
  798. </div>
  799. <div class="commentList" style="margin-right: 15px">
  800. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  801. <img src="../../assets/icon/comment/comment.png" alt="" />
  802. </div>
  803. <div>{{ w.commentCount }}</div>
  804. </div>
  805. </div>
  806. </div>
  807. </div>
  808. </div>
  809. </div>
  810. <div v-if="tType &&
  811. ((tType == 2 && sIsOpen == true) ||
  812. tType == 1 ||
  813. tType == 4) &&
  814. tool.tool.indexOf(32) != -1
  815. " class="worksBox">
  816. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  817. worksTeacher[toolIndex].length > 0
  818. ">
  819. <div class="worksTop">
  820. <div>作业预览</div>
  821. </div>
  822. </div>
  823. <div class="worksDetailBox" v-if="worksTeacher.length &&
  824. worksTeacher[toolIndex].length > 0
  825. ">
  826. <div class="works" style="
  827. width: 200px;
  828. height: 140px;
  829. margin: 10px 10px 10px 0;
  830. border-radius: 15px;
  831. box-shadow: 0 0 6px 1px #dfdada;
  832. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  833. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  834. <div class="workImg">
  835. <img :src="word2" @click="downloadFile(w.works)" alt />
  836. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  837. rightW:
  838. w.userid == userid ||
  839. tType == 1 ||
  840. tType == 4 ||
  841. w.ateacher == userid,
  842. }">
  843. {{ JSON.parse(w.score).wScore }}分
  844. </div>
  845. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  846. :class="{
  847. rightW:
  848. w.userid == userid ||
  849. tType == 1 ||
  850. tType == 4 ||
  851. w.ateacher == userid,
  852. }">
  853. 评分
  854. </div>
  855. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  856. " @click.stop="deleteWorks(w.wid)" alt />
  857. </div>
  858. <div class="comment" style="min-width: 200px">
  859. <div class="worksName">
  860. <div>{{ w.sName }}</div>
  861. </div>
  862. <div class="commentList">
  863. <div class="commentList">
  864. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  865. ">
  866. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  867. </div>
  868. <div>{{ w.likesCount }}</div>
  869. </div>
  870. <div class="commentList" style="margin-right: 15px">
  871. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  872. <img src="../../assets/icon/comment/comment.png" alt="" />
  873. </div>
  874. <div>{{ w.commentCount }}</div>
  875. </div>
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. <div v-if="tType &&
  882. ((tType == 2 && sIsOpen == true) ||
  883. tType == 1 ||
  884. tType == 4) &&
  885. tool.tool.indexOf(57) != -1
  886. " class="worksBox">
  887. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  888. worksTeacher[toolIndex].length > 0
  889. ">
  890. <div class="worksTop">
  891. <div>作业预览</div>
  892. </div>
  893. </div>
  894. <div class="worksDetailBox" v-if="worksTeacher.length &&
  895. worksTeacher[toolIndex].length > 0
  896. ">
  897. <div class="works" style="
  898. width: 200px;
  899. height: 140px;
  900. margin: 10px 10px 10px 0;
  901. border-radius: 15px;
  902. box-shadow: 0 0 6px 1px #dfdada;
  903. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  904. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  905. <div class="workImg">
  906. <img :src="word2" @click="downloadFile(w.works)" alt />
  907. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  908. rightW:
  909. w.userid == userid ||
  910. tType == 1 ||
  911. tType == 4 ||
  912. w.ateacher == userid,
  913. }">
  914. {{ JSON.parse(w.score).wScore }}分
  915. </div>
  916. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  917. :class="{
  918. rightW:
  919. w.userid == userid ||
  920. tType == 1 ||
  921. tType == 4 ||
  922. w.ateacher == userid,
  923. }">
  924. 评分
  925. </div>
  926. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  927. " @click.stop="deleteWorks(w.wid)" alt />
  928. </div>
  929. <div class="comment" style="min-width: 200px">
  930. <div class="worksName">
  931. <div>{{ w.sName }}</div>
  932. </div>
  933. <div class="commentList">
  934. <div class="commentList">
  935. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  936. ">
  937. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  938. </div>
  939. <div>{{ w.likesCount }}</div>
  940. </div>
  941. <div class="commentList" style="margin-right: 15px">
  942. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  943. <img src="../../assets/icon/comment/comment.png" alt="" />
  944. </div>
  945. <div>{{ w.commentCount }}</div>
  946. </div>
  947. </div>
  948. </div>
  949. </div>
  950. </div>
  951. </div>
  952. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  953. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  954. worksTeacher[toolIndex].length > 0
  955. ">
  956. <span>作业预览</span>
  957. </div>
  958. <div class="worksDetailBox" v-if="worksTeacher.length &&
  959. worksTeacher[toolIndex].length > 0
  960. ">
  961. <div class="works" style="
  962. width: 200px;
  963. height: 140px;
  964. margin: 10px 10px 10px 0;
  965. border-radius: 15px;
  966. box-shadow: 0 0 6px 1px #dfdada;
  967. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  968. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  969. <div class="workImg" v-if="w.type == 0">
  970. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  971. <img :src="w.works" @click="previewImg(w.works)" alt />
  972. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  973. rightW:
  974. w.userid == userid ||
  975. tType == 1 ||
  976. tType == 4 ||
  977. w.ateacher == userid,
  978. }">
  979. {{ JSON.parse(w.score).wScore }}分
  980. </div>
  981. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  982. :class="{
  983. rightW:
  984. w.userid == userid ||
  985. tType == 1 ||
  986. tType == 4 ||
  987. w.ateacher == userid,
  988. }">
  989. 评分
  990. </div>
  991. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  992. " @click.stop="deleteWorks(w.wid)" alt />
  993. </div>
  994. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  995. <img :src="word" @click="openFile(w.works)" alt />
  996. <!-- @click="openFile(w.works)" -->
  997. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  998. rightW:
  999. w.userid == userid ||
  1000. tType == 1 ||
  1001. tType == 4 ||
  1002. w.ateacher == userid,
  1003. }">
  1004. {{ JSON.parse(w.score).wScore }}分
  1005. </div>
  1006. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1007. :class="{
  1008. rightW:
  1009. w.userid == userid ||
  1010. tType == 1 ||
  1011. tType == 4 ||
  1012. w.ateacher == userid,
  1013. }">
  1014. 评分
  1015. </div>
  1016. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1017. " @click.stop="deleteWorks(w.wid)" alt />
  1018. </div>
  1019. <div class="workImg" v-if="w.type == 3">
  1020. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1021. <!-- @click="openVideo(w.works)" -->
  1022. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1023. rightW:
  1024. w.userid == userid ||
  1025. tType == 1 ||
  1026. tType == 4 ||
  1027. w.ateacher == userid,
  1028. }">
  1029. {{ JSON.parse(w.score).wScore }}分
  1030. </div>
  1031. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1032. :class="{
  1033. rightW:
  1034. w.userid == userid ||
  1035. tType == 1 ||
  1036. tType == 4 ||
  1037. w.ateacher == userid,
  1038. }">
  1039. 评分
  1040. </div>
  1041. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1042. " @click.stop="deleteWorks(w.wid)" alt />
  1043. </div>
  1044. <div class="comment" style="min-width: 200px">
  1045. <div class="worksName">
  1046. <div style="cursor: pointer" @click="openSname(w.sName, w.wid,toolIndex)">
  1047. {{ w.sName }}
  1048. </div>
  1049. </div>
  1050. <div class="commentList">
  1051. <div class="commentList">
  1052. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1053. ">
  1054. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1055. </div>
  1056. <div>{{ w.likesCount }}</div>
  1057. </div>
  1058. <div class="commentList" style="margin-right: 15px">
  1059. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1060. <img src="../../assets/icon/comment/comment.png" alt="" />
  1061. </div>
  1062. <div>{{ w.commentCount }}</div>
  1063. </div>
  1064. </div>
  1065. </div>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. <div v-if="tType &&
  1070. ((tType == 2 && sIsOpen == true) ||
  1071. tType == 1 ||
  1072. tType == 4) &&
  1073. tool.tool.indexOf(4) != -1
  1074. " class="worksBox">
  1075. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1076. worksTeacher[toolIndex].length > 0
  1077. ">
  1078. <div class="worksTop">
  1079. <div>作业预览</div>
  1080. </div>
  1081. </div>
  1082. <div>
  1083. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1084. worksTeacher[toolIndex].length > 0
  1085. ">
  1086. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  1087. ">
  1088. {{ w.sName }}
  1089. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1090. " @click.stop="deleteWorks(w.wid)" alt />
  1091. </div>
  1092. </div>
  1093. </div>
  1094. </div>
  1095. <div v-if="tType &&
  1096. ((tType == 2 && sIsOpen == true) ||
  1097. tType == 1 ||
  1098. tType == 4) &&
  1099. tool.tool.indexOf(45) != -1
  1100. " class="worksBox">
  1101. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1102. worksTeacher[toolIndex].length > 0
  1103. ">
  1104. <div class="worksTop">
  1105. <div>作业预览</div>
  1106. </div>
  1107. </div>
  1108. <div>
  1109. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1110. worksTeacher[toolIndex].length > 0
  1111. ">
  1112. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName" @click="openTools(
  1113. 45,
  1114. toolIndex,
  1115. taskCount,
  1116. w.works,
  1117. w.sName
  1118. )
  1119. ">
  1120. {{ w.sName }}
  1121. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1122. " @click.stop="deleteWorks(w.wid)" alt />
  1123. </div>
  1124. </div>
  1125. </div>
  1126. </div>
  1127. <div v-if="tType &&
  1128. ((tType == 2 && sIsOpen == true) ||
  1129. tType == 1 ||
  1130. tType == 4) &&
  1131. tool.tool.indexOf(15) != -1
  1132. " class="worksBox">
  1133. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1134. worksTeacher[toolIndex].length > 0
  1135. ">
  1136. <div class="worksTop">
  1137. <div>作业预览</div>
  1138. </div>
  1139. </div>
  1140. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1141. worksTeacher[toolIndex].length > 0
  1142. ">
  1143. <div class="works" v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex">
  1144. <div class="workImg" style="
  1145. border-radius: 15px;
  1146. box-shadow: #eee 0px 0px 5px 5px;
  1147. ">
  1148. <!-- <img
  1149. src="../../assets/icon/works/noImg.png"
  1150. @click="openTools(15, toolIndex, taskCount, w.works)"
  1151. alt=""
  1152. />-->
  1153. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  1154. @click="commentOther(w, toolIndex, wIndex)">
  1155. <!-- <div>{{ w.sName }}</div> -->
  1156. <div class="answerContent">
  1157. {{ JSON.parse(w.works)[0].answer }}
  1158. </div>
  1159. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1160. rightW:
  1161. w.userid == userid ||
  1162. tType == 1 ||
  1163. tType == 4,
  1164. }">
  1165. {{ JSON.parse(w.score).wScore }}分
  1166. </div>
  1167. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1168. :class="{
  1169. rightW:
  1170. w.userid == userid ||
  1171. tType == 1 ||
  1172. tType == 4,
  1173. }">
  1174. 评分
  1175. </div>
  1176. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1177. " @click.stop="deleteWorks(w.wid)" alt />
  1178. </div>
  1179. <div class="comment">
  1180. <div class="worksName">
  1181. <div>{{ w.sName }}</div>
  1182. </div>
  1183. <div class="commentList">
  1184. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1185. ">
  1186. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1187. </div>
  1188. <div>{{ w.likesCount }}</div>
  1189. </div>
  1190. <div class="commentList" style="margin-right: 15px">
  1191. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1192. <img src="../../assets/icon/comment/comment.png" alt="" />
  1193. </div>
  1194. <div>{{ w.commentCount }}</div>
  1195. </div>
  1196. </div>
  1197. </div>
  1198. </div>
  1199. </div>
  1200. </div>
  1201. <div v-if="tType &&
  1202. ((tType == 2 && sIsOpen == true) ||
  1203. tType == 1 ||
  1204. tType == 4) &&
  1205. tool.tool.indexOf(1) != -1
  1206. " class="worksBox">
  1207. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1208. worksTeacher[toolIndex].length > 0
  1209. ">
  1210. <div class="worksTop">
  1211. <div>作业预览</div>
  1212. </div>
  1213. </div>
  1214. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1215. worksTeacher[toolIndex].length > 0
  1216. ">
  1217. <div class="works" style="
  1218. width: 200px;
  1219. height: 140px;
  1220. margin: 10px 10px 10px 0;
  1221. border-radius: 15px;
  1222. box-shadow: 0 0 6px 1px #dfdada;
  1223. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1224. :key="wIndex">
  1225. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  1226. <div class="workImg">
  1227. <img :src="w.works" @click="previewImg(w.works)" alt />
  1228. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1229. rightW:
  1230. w.userid == userid || tType == 1 || tType == 4,
  1231. }">
  1232. {{ JSON.parse(w.score).wScore }}分
  1233. </div>
  1234. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1235. :class="{
  1236. rightW:
  1237. w.userid == userid || tType == 1 || tType == 4,
  1238. }">
  1239. 评分
  1240. </div>
  1241. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1242. " @click.stop="deleteWorks(w.wid)" alt />
  1243. </div>
  1244. <div class="comment" style="min-width: 200px">
  1245. <div class="worksName">
  1246. <div>{{ w.sName }}</div>
  1247. </div>
  1248. <div class="commentList">
  1249. <div class="commentList">
  1250. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1251. ">
  1252. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1253. </div>
  1254. <div>{{ w.likesCount }}</div>
  1255. </div>
  1256. <div class="commentList" style="margin-right: 15px">
  1257. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1258. <img src="../../assets/icon/comment/comment.png" alt="" />
  1259. </div>
  1260. <div>{{ w.commentCount }}</div>
  1261. </div>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. </div>
  1267. <div v-if="tType &&
  1268. ((tType == 2 && sIsOpen == true) ||
  1269. tType == 1 ||
  1270. tType == 4) &&
  1271. tool.tool.indexOf(3) != -1
  1272. " class="worksBox">
  1273. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1274. worksTeacher[toolIndex].length > 0
  1275. ">
  1276. <div class="worksTop">
  1277. <div>作业预览</div>
  1278. </div>
  1279. </div>
  1280. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1281. worksTeacher[toolIndex].length > 0
  1282. ">
  1283. <div class="works" style="
  1284. width: 200px;
  1285. height: 140px;
  1286. margin: 10px 10px 10px 0;
  1287. border-radius: 15px;
  1288. box-shadow: 0 0 6px 1px #dfdada;
  1289. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1290. :key="wIndex">
  1291. <!-- @click="previewImg(w.works)" -->
  1292. <div class="workImg">
  1293. <img :src="w.works" @click="previewImg(w.works)" alt />
  1294. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1295. rightW:
  1296. w.userid == userid || tType == 1 || tType == 4,
  1297. }">
  1298. {{ JSON.parse(w.score).wScore }}分
  1299. </div>
  1300. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1301. :class="{
  1302. rightW:
  1303. w.userid == userid || tType == 1 || tType == 4,
  1304. }">
  1305. 评分
  1306. </div>
  1307. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1308. " @click.stop="deleteWorks(w.wid)" alt />
  1309. </div>
  1310. <div class="comment" style="min-width: 200px">
  1311. <div class="worksName">
  1312. <div>{{ w.sName }}</div>
  1313. </div>
  1314. <div class="commentList">
  1315. <div class="commentList">
  1316. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1317. ">
  1318. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1319. </div>
  1320. <div>{{ w.likesCount }}</div>
  1321. </div>
  1322. <div class="commentList" style="margin-right: 15px">
  1323. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1324. <img src="../../assets/icon/comment/comment.png" alt="" />
  1325. </div>
  1326. <div>{{ w.commentCount }}</div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. </div>
  1333. <div v-if="tType &&
  1334. ((tType == 2 && sIsOpen == true) ||
  1335. tType == 1 ||
  1336. tType == 4) &&
  1337. tool.tool.indexOf(6) != -1
  1338. " class="worksBox">
  1339. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1340. worksTeacher[toolIndex].length > 0
  1341. ">
  1342. <div class="worksTop">
  1343. <div>作业预览</div>
  1344. </div>
  1345. </div>
  1346. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1347. worksTeacher[toolIndex].length > 0
  1348. ">
  1349. <div class="works" style="
  1350. width: 200px;
  1351. height: 140px;
  1352. margin: 10px 10px 10px 0;
  1353. border-radius: 15px;
  1354. box-shadow: 0 0 6px 1px #dfdada;
  1355. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1356. :key="wIndex">
  1357. <!-- @click="previewImg(w.works)" -->
  1358. <div class="workImg">
  1359. <img :src="w.works" @click="previewImg(w.works)" alt />
  1360. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1361. rightW:
  1362. w.userid == userid || tType == 1 || tType == 4,
  1363. }">
  1364. {{ JSON.parse(w.score).wScore }}分
  1365. </div>
  1366. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1367. :class="{
  1368. rightW:
  1369. w.userid == userid || tType == 1 || tType == 4,
  1370. }">
  1371. 评分
  1372. </div>
  1373. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1374. " @click.stop="deleteWorks(w.wid)" alt />
  1375. </div>
  1376. <div class="comment" style="min-width: 200px">
  1377. <div class="worksName">
  1378. <div>{{ w.sName }}</div>
  1379. </div>
  1380. <div class="commentList">
  1381. <div class="commentList">
  1382. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1383. ">
  1384. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1385. </div>
  1386. <div>{{ w.likesCount }}</div>
  1387. </div>
  1388. <div class="commentList" style="margin-right: 15px">
  1389. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1390. <img src="../../assets/icon/comment/comment.png" alt="" />
  1391. </div>
  1392. <div>{{ w.commentCount }}</div>
  1393. </div>
  1394. </div>
  1395. </div>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. <div v-if="tType &&
  1400. ((tType == 2 && sIsOpen == true) ||
  1401. tType == 1 ||
  1402. tType == 4) &&
  1403. tool.tool.indexOf(7) != -1
  1404. " class="worksBox">
  1405. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1406. worksTeacher[toolIndex].length > 0
  1407. ">
  1408. <div class="worksTop">
  1409. <div>作业预览</div>
  1410. </div>
  1411. </div>
  1412. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1413. worksTeacher[toolIndex].length > 0
  1414. ">
  1415. <div class="works" style="
  1416. width: 200px;
  1417. height: 140px;
  1418. margin: 10px 10px 10px 0;
  1419. border-radius: 15px;
  1420. box-shadow: 0 0 6px 1px #dfdada;
  1421. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1422. :key="wIndex">
  1423. <!-- @click="previewImg(w.works)" -->
  1424. <div class="workImg">
  1425. <img :src="w.works" @click="previewImg(w.works)" alt />
  1426. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1427. rightW:
  1428. w.userid == userid || tType == 1 || tType == 4,
  1429. }">
  1430. {{ JSON.parse(w.score).wScore }}分
  1431. </div>
  1432. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1433. :class="{
  1434. rightW:
  1435. w.userid == userid || tType == 1 || tType == 4,
  1436. }">
  1437. 评分
  1438. </div>
  1439. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1440. " @click.stop="deleteWorks(w.wid)" alt />
  1441. </div>
  1442. <div class="comment" style="min-width: 200px">
  1443. <div class="worksName">
  1444. <div>{{ w.sName }}</div>
  1445. </div>
  1446. <div class="commentList">
  1447. <div class="commentList">
  1448. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1449. ">
  1450. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1451. </div>
  1452. <div>{{ w.likesCount }}</div>
  1453. </div>
  1454. <div class="commentList" style="margin-right: 15px">
  1455. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1456. <img src="../../assets/icon/comment/comment.png" alt="" />
  1457. </div>
  1458. <div>{{ w.commentCount }}</div>
  1459. </div>
  1460. </div>
  1461. </div>
  1462. </div>
  1463. </div>
  1464. </div>
  1465. <div v-if="tType &&
  1466. ((tType == 2 && sIsOpen == true) ||
  1467. tType == 1 ||
  1468. tType == 4) &&
  1469. tool.tool.indexOf(26) != -1
  1470. " class="worksBox">
  1471. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1472. worksTeacher[toolIndex].length > 0
  1473. ">
  1474. <div class="worksTop">
  1475. <div>作业预览</div>
  1476. </div>
  1477. </div>
  1478. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1479. worksTeacher[toolIndex].length > 0
  1480. ">
  1481. <div class="works" style="width: 240px; height: 140px; overflow: hidden"
  1482. v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex"
  1483. :class="w.type == 1 ? 'isTypeOne' : ''">
  1484. <div class="workImg" v-if="w.type == 0">
  1485. <img :src="w.works" @click="previewImg(w.works)" alt />
  1486. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1487. " @click.stop="deleteWorks(w.wid)" alt />
  1488. </div>
  1489. <div class="workImg" v-if="w.type == 1">
  1490. <img :src="word" @click="openFile(w.works)" alt />
  1491. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1492. " @click.stop="deleteWorks(w.wid)" alt />
  1493. </div>
  1494. <div class="worksName">
  1495. <div>{{ w.sName }}</div>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. </div>
  1500. <div v-if="tType &&
  1501. ((tType == 2 && sIsOpen == true) ||
  1502. tType == 1 ||
  1503. tType == 4) &&
  1504. tool.tool.indexOf(40) != -1
  1505. " class="worksBox">
  1506. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1507. worksTeacher[toolIndex].length > 0
  1508. ">
  1509. <div class="worksTop">
  1510. <div>作业预览</div>
  1511. </div>
  1512. </div>
  1513. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1514. worksTeacher[toolIndex].length > 0
  1515. ">
  1516. <div class="works" style="
  1517. width: 200px;
  1518. height: 140px;
  1519. margin: 10px 10px 10px 0;
  1520. border-radius: 15px;
  1521. box-shadow: 0 0 6px 1px #dfdada;
  1522. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1523. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1524. <div class="workImg">
  1525. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  1526. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1527. " @click.stop="deleteWorks(w.wid)" alt />
  1528. </div>
  1529. <div class="comment" style="min-width: 200px">
  1530. <div class="worksName">
  1531. <div>{{ w.sName }}</div>
  1532. </div>
  1533. <div class="commentList">
  1534. <div class="commentList">
  1535. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1536. ">
  1537. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1538. </div>
  1539. <div>{{ w.likesCount }}</div>
  1540. </div>
  1541. <div class="commentList" style="margin-right: 15px">
  1542. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1543. <img src="../../assets/icon/comment/comment.png" alt="" />
  1544. </div>
  1545. <div>{{ w.commentCount }}</div>
  1546. </div>
  1547. </div>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. </div>
  1552. <div v-if="tType &&
  1553. ((tType == 2 && sIsOpen == true) ||
  1554. tType == 1 ||
  1555. tType == 4) &&
  1556. tool.tool.indexOf(41) != -1
  1557. " class="worksBox">
  1558. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1559. worksTeacher[toolIndex].length > 0
  1560. ">
  1561. <div class="worksTop">
  1562. <div>作业预览</div>
  1563. </div>
  1564. </div>
  1565. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1566. worksTeacher[toolIndex].length > 0
  1567. ">
  1568. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1569. @click="openXz(w, toolIndex)">
  1570. {{ w.sName }}
  1571. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1572. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1573. </div>
  1574. </div>
  1575. </div>
  1576. <div v-if="tType &&
  1577. ((tType == 2 && sIsOpen == true) ||
  1578. tType == 1 ||
  1579. tType == 4) &&
  1580. tool.tool.indexOf(47) != -1
  1581. " class="worksBox">
  1582. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1583. worksTeacher[toolIndex].length > 0
  1584. ">
  1585. <div class="worksTop">
  1586. <div>作业预览</div>
  1587. </div>
  1588. </div>
  1589. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1590. worksTeacher[toolIndex].length > 0
  1591. ">
  1592. <!-- @click="openXz(w, toolIndex)" -->
  1593. <div v-for="(w, wIndex) in worksTeacher[toolIndex]" :key="wIndex" class="isWorksName"
  1594. @click="openSen(w, toolIndex)">
  1595. {{ w.sName }}
  1596. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  1597. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  1598. </div>
  1599. </div>
  1600. </div>
  1601. <div v-if="tType &&
  1602. ((tType == 2 && sIsOpen == true) ||
  1603. tType == 1 ||
  1604. tType == 4) &&
  1605. tool.tool.indexOf(48) != -1
  1606. " class="worksBox">
  1607. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1608. worksTeacher[toolIndex].length > 0
  1609. ">
  1610. <div class="worksTop">
  1611. <div>作业预览</div>
  1612. </div>
  1613. </div>
  1614. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1615. worksTeacher[toolIndex].length > 0
  1616. ">
  1617. <div class="works" style="
  1618. width: 200px;
  1619. height: 140px;
  1620. margin: 10px 10px 10px 0;
  1621. border-radius: 15px;
  1622. box-shadow: 0 0 6px 1px #dfdada;
  1623. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1624. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1625. <div class="workImg">
  1626. <img :src="word" @click="openTable(w)" alt />
  1627. <!-- @click="openFile(w.works)" -->
  1628. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1629. rightW:
  1630. w.userid == userid ||
  1631. tType == 1 ||
  1632. tType == 4 ||
  1633. w.ateacher == userid,
  1634. }">
  1635. {{ JSON.parse(w.score).wScore }}分
  1636. </div>
  1637. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1638. :class="{
  1639. rightW:
  1640. w.userid == userid ||
  1641. tType == 1 ||
  1642. tType == 4 ||
  1643. w.ateacher == userid,
  1644. }">
  1645. 评分
  1646. </div>
  1647. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1648. " @click.stop="deleteWorks(w.wid)" alt />
  1649. </div>
  1650. <div class="comment" style="min-width: 200px">
  1651. <div class="worksName">
  1652. <div>{{ w.sName }}</div>
  1653. </div>
  1654. <div class="commentList">
  1655. <div class="commentList">
  1656. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1657. ">
  1658. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1659. </div>
  1660. <div>{{ w.likesCount }}</div>
  1661. </div>
  1662. <div class="commentList" style="margin-right: 15px">
  1663. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1664. <img src="../../assets/icon/comment/comment.png" alt="" />
  1665. </div>
  1666. <div>{{ w.commentCount }}</div>
  1667. </div>
  1668. </div>
  1669. </div>
  1670. </div>
  1671. </div>
  1672. </div>
  1673. <div v-if="tType &&
  1674. ((tType == 2 && sIsOpen == true) ||
  1675. tType == 1 ||
  1676. tType == 4) &&
  1677. tool.tool.indexOf(52) != -1
  1678. " class="worksBox">
  1679. <div class="zuoyeYulan" v-if="worksTeacher.length &&
  1680. worksTeacher[toolIndex].length > 0
  1681. ">
  1682. <div class="worksTop">
  1683. <div>作业预览</div>
  1684. </div>
  1685. </div>
  1686. <div class="worksDetailBox" v-if="worksTeacher.length &&
  1687. worksTeacher[toolIndex].length > 0
  1688. ">
  1689. <div class="works" style="
  1690. width: 200px;
  1691. height: 140px;
  1692. margin: 10px 10px 10px 0;
  1693. border-radius: 15px;
  1694. box-shadow: 0 0 6px 1px #dfdada;
  1695. " v-for="(w, wIndex) in worksTeacher[toolIndex]"
  1696. :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  1697. <div class="workImg">
  1698. <img :src="word" @click="openTable(w)" alt />
  1699. <!-- @click="openFile(w.works)" -->
  1700. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1701. rightW:
  1702. w.userid == userid ||
  1703. tType == 1 ||
  1704. tType == 4 ||
  1705. w.ateacher == userid,
  1706. }">
  1707. {{ JSON.parse(w.score).wScore }}分
  1708. </div>
  1709. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1710. :class="{
  1711. rightW:
  1712. w.userid == userid ||
  1713. tType == 1 ||
  1714. tType == 4 ||
  1715. w.ateacher == userid,
  1716. }">
  1717. 评分
  1718. </div>
  1719. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1720. " @click.stop="deleteWorks(w.wid)" alt />
  1721. </div>
  1722. <div class="comment" style="min-width: 200px">
  1723. <div class="worksName">
  1724. <div>{{ w.sName }}</div>
  1725. </div>
  1726. <div class="commentList">
  1727. <div class="commentList">
  1728. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1729. ">
  1730. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1731. </div>
  1732. <div>{{ w.likesCount }}</div>
  1733. </div>
  1734. <div class="commentList" style="margin-right: 15px">
  1735. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1736. <img src="../../assets/icon/comment/comment.png" alt="" />
  1737. </div>
  1738. <div>{{ w.commentCount }}</div>
  1739. </div>
  1740. </div>
  1741. </div>
  1742. </div>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. <div class="vedioBox">
  1748. <div v-if="tType &&
  1749. ((tType == 2 && sIsOpen == true) ||
  1750. tType == 1 ||
  1751. tType == 4) &&
  1752. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1753. worksStudent[toolIndex].length &&
  1754. (tool.askJson[0].answer ||
  1755. tool.askJson[0].answer === 0) &&
  1756. checkJson[toolIndex].length
  1757. " class="xuan_right_box">
  1758. <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
  1759. <div>
  1760. <span>{{ index + 1 + "、" + item.askstitle }}</span>
  1761. </div>
  1762. <div class="right_box_xuan">
  1763. <span>正确率</span>
  1764. <span>{{
  1765. (checkJson[toolIndex][index].right
  1766. ? checkJson[toolIndex][index].right
  1767. : 0) + "%"
  1768. }}</span>
  1769. </div>
  1770. </div>
  1771. </div>
  1772. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1773. ((tType == 2 && sIsOpen == true) ||
  1774. tType == 1 ||
  1775. tType == 4) &&
  1776. tool.tool.indexOf(4) != -1 && worksStudent.length &&
  1777. worksStudent[toolIndex].length
  1778. ">
  1779. <AskStatic v-if="worksStudent.length &&
  1780. worksStudent[toolIndex].length > 0
  1781. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic>
  1782. </div>
  1783. <div v-if="tType &&
  1784. ((tType == 2 && sIsOpen == true) ||
  1785. tType == 1 ||
  1786. tType == 4) &&
  1787. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1788. worksStudent[toolIndex].length &&
  1789. (tool.testJson.testJson[0].answer ||
  1790. tool.testJson.testJson[0].answer === 0) &&
  1791. checkJson[toolIndex].length
  1792. " class="xuan_right_box">
  1793. <div class="tool_right_box" v-for="(item, index) in tool.testJson.testJson" :key="index">
  1794. <div>
  1795. <span>{{ index + 1 + "、" + item.teststitle }}</span>
  1796. </div>
  1797. <div class="right_box_xuan">
  1798. <span>正确率</span>
  1799. <span>{{
  1800. (checkJson[toolIndex][index].right
  1801. ? checkJson[toolIndex][index].right
  1802. : 0) + "%"
  1803. }}</span>
  1804. </div>
  1805. </div>
  1806. </div>
  1807. <div class="xuan_right_box" style="background: unset" v-if="tType &&
  1808. ((tType == 2 && sIsOpen == true) ||
  1809. tType == 1 ||
  1810. tType == 4) &&
  1811. tool.tool.indexOf(45) != -1 && worksStudent.length &&
  1812. worksStudent[toolIndex].length
  1813. ">
  1814. <AskStatic2 v-if="worksStudent.length &&
  1815. worksStudent[toolIndex].length > 0
  1816. " :askJSON="tool" :checkJson="checkJson[toolIndex]"></AskStatic2>
  1817. </div>
  1818. <div v-if="tType &&
  1819. ((tType == 2 && sIsOpen == true) ||
  1820. tType == 1 ||
  1821. tType == 4) &&
  1822. tool.tool.indexOf(41) != -1
  1823. ">
  1824. <AnswerData2 v-if="worksStudent.length &&
  1825. worksStudent[toolIndex].length > 0
  1826. " :problemJson="tool.selectJson.answer" :people="worksStudent[toolIndex]"></AnswerData2>
  1827. </div>
  1828. <div v-if="tType &&
  1829. ((tType == 2 && sIsOpen == true) ||
  1830. tType == 1 ||
  1831. tType == 4) &&
  1832. tool.tool.indexOf(47) != -1
  1833. ">
  1834. <AnswerData v-if="checkJson[toolIndex].length &&
  1835. (tool.sentenceList || tool.sentenceList.length > 0)
  1836. " :people="checkJson[toolIndex]"></AnswerData>
  1837. </div>
  1838. </div>
  1839. <div class="vedioBox" v-if="arrayToArray(tool.tool, isWorkTool).length">
  1840. <div class="queTop" style="
  1841. font-size: 25px;
  1842. padding: 15px 0 15px 30px;
  1843. font-weight: bold;
  1844. ">
  1845. 学生工作区
  1846. </div>
  1847. <div class="tool_work_box">
  1848. <div v-if="tType &&
  1849. ((tType == 2 && sIsOpen == true) ||
  1850. tType == 1 ||
  1851. tType == 4) &&
  1852. tool.tool.indexOf(16) != -1
  1853. " class="worksBox">
  1854. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  1855. worksStudent2[toolIndex].length > 0
  1856. ">
  1857. <div class="worksTop">
  1858. <div>作业预览</div>
  1859. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  1860. isCloseList[toolIndex].isClose == 0
  1861. ">
  1862. 收缩
  1863. </div>
  1864. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  1865. 展开
  1866. </div>
  1867. </div>
  1868. </div>
  1869. <div class="worksDetailBox" v-if="worksStudent2.length &&
  1870. worksStudent2[toolIndex].length > 0
  1871. ">
  1872. <div class="works" style="
  1873. width: 200px;
  1874. height: 140px;
  1875. margin: 10px 10px 10px 0;
  1876. border-radius: 15px;
  1877. box-shadow: 0 0 6px 1px #dfdada;
  1878. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  1879. 0
  1880. ? worksStudent2[toolIndex]
  1881. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  1882. :class="w.type == 1 ? 'isTypeOne' : ''">
  1883. <div class="workImg" v-if="w.type == 0">
  1884. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  1885. <img :src="w.works" @click="previewImg(w.works)" alt />
  1886. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1887. rightW:
  1888. w.userid == userid ||
  1889. tType == 1 ||
  1890. tType == 4 ||
  1891. w.ateacher == userid,
  1892. }">
  1893. {{ JSON.parse(w.score).wScore }}分
  1894. </div>
  1895. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1896. :class="{
  1897. rightW:
  1898. w.userid == userid ||
  1899. tType == 1 ||
  1900. tType == 4 ||
  1901. w.ateacher == userid,
  1902. }">
  1903. 评分
  1904. </div>
  1905. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1906. " @click.stop="deleteWorks(w.wid)" alt />
  1907. </div>
  1908. <div class="workImg" v-if="w.type == 1">
  1909. <img :src="word" @click="openFile(w.works)" alt />
  1910. <!-- @click="openFile(w.works)" -->
  1911. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1912. rightW:
  1913. w.userid == userid ||
  1914. tType == 1 ||
  1915. tType == 4 ||
  1916. w.ateacher == userid,
  1917. }">
  1918. {{ JSON.parse(w.score).wScore }}分
  1919. </div>
  1920. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1921. :class="{
  1922. rightW:
  1923. w.userid == userid ||
  1924. tType == 1 ||
  1925. tType == 4 ||
  1926. w.ateacher == userid,
  1927. }">
  1928. 评分
  1929. </div>
  1930. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1931. " @click.stop="deleteWorks(w.wid)" alt />
  1932. </div>
  1933. <div class="workImg" v-if="w.type == 3">
  1934. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  1935. <!-- @click="openVideo(w.works)" -->
  1936. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1937. rightW:
  1938. w.userid == userid ||
  1939. tType == 1 ||
  1940. tType == 4 ||
  1941. w.ateacher == userid,
  1942. }">
  1943. {{ JSON.parse(w.score).wScore }}分
  1944. </div>
  1945. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1946. :class="{
  1947. rightW:
  1948. w.userid == userid ||
  1949. tType == 1 ||
  1950. tType == 4 ||
  1951. w.ateacher == userid,
  1952. }">
  1953. 评分
  1954. </div>
  1955. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1956. " @click.stop="deleteWorks(w.wid)" alt />
  1957. </div>
  1958. <div class="workImg" v-if="w.type == 12">
  1959. <img style="cursor: pointer" :src="word2" @click="downloadFile(w.works)" alt />
  1960. <!-- @click="openVideo(w.works)" -->
  1961. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  1962. rightW:
  1963. w.userid == userid ||
  1964. tType == 1 ||
  1965. tType == 4 ||
  1966. w.ateacher == userid,
  1967. }">
  1968. {{ JSON.parse(w.score).wScore }}分
  1969. </div>
  1970. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  1971. :class="{
  1972. rightW:
  1973. w.userid == userid ||
  1974. tType == 1 ||
  1975. tType == 4 ||
  1976. w.ateacher == userid,
  1977. }">
  1978. 评分
  1979. </div>
  1980. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  1981. " @click.stop="deleteWorks(w.wid)" alt />
  1982. </div>
  1983. <div class="comment" style="min-width: 200px">
  1984. <div class="worksName">
  1985. <div>{{ w.sName }}</div>
  1986. </div>
  1987. <div class="commentList">
  1988. <div class="commentList">
  1989. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  1990. ">
  1991. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  1992. </div>
  1993. <div>{{ w.likesCount }}</div>
  1994. </div>
  1995. <div class="commentList" style="margin-right: 15px">
  1996. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  1997. <img src="../../assets/icon/comment/comment.png" alt="" />
  1998. </div>
  1999. <div>{{ w.commentCount }}</div>
  2000. </div>
  2001. </div>
  2002. </div>
  2003. </div>
  2004. </div>
  2005. <div class="noWorksS">
  2006. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2007. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2008. {{ s.student }}
  2009. </div>
  2010. </div>
  2011. </div>
  2012. <div v-if="tType &&
  2013. ((tType == 2 && sIsOpen == true) ||
  2014. tType == 1 ||
  2015. tType == 4) &&
  2016. tool.tool.indexOf(32) != -1
  2017. " class="worksBox">
  2018. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2019. worksStudent2[toolIndex].length > 0
  2020. ">
  2021. <div class="worksTop">
  2022. <div>作业预览</div>
  2023. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2024. isCloseList[toolIndex].isClose == 0
  2025. ">
  2026. 收缩
  2027. </div>
  2028. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2029. 展开
  2030. </div>
  2031. </div>
  2032. </div>
  2033. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2034. worksStudent2[toolIndex].length > 0
  2035. ">
  2036. <div class="works" style="
  2037. width: 200px;
  2038. height: 140px;
  2039. margin: 10px 10px 10px 0;
  2040. border-radius: 15px;
  2041. box-shadow: 0 0 6px 1px #dfdada;
  2042. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2043. 0
  2044. ? worksStudent2[toolIndex]
  2045. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2046. :class="w.type == 1 ? 'isTypeOne' : ''">
  2047. <div class="workImg">
  2048. <img :src="word2" @click="downloadFile(w.works)" alt />
  2049. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2050. rightW:
  2051. w.userid == userid ||
  2052. tType == 1 ||
  2053. tType == 4 ||
  2054. w.ateacher == userid,
  2055. }">
  2056. {{ JSON.parse(w.score).wScore }}分
  2057. </div>
  2058. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2059. :class="{
  2060. rightW:
  2061. w.userid == userid ||
  2062. tType == 1 ||
  2063. tType == 4 ||
  2064. w.ateacher == userid,
  2065. }">
  2066. 评分
  2067. </div>
  2068. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2069. " @click.stop="deleteWorks(w.wid)" alt />
  2070. </div>
  2071. <div class="comment" style="min-width: 200px">
  2072. <div class="worksName">
  2073. <div>{{ w.sName }}</div>
  2074. </div>
  2075. <div class="commentList">
  2076. <div class="commentList">
  2077. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2078. ">
  2079. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2080. </div>
  2081. <div>{{ w.likesCount }}</div>
  2082. </div>
  2083. <div class="commentList" style="margin-right: 15px">
  2084. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2085. <img src="../../assets/icon/comment/comment.png" alt="" />
  2086. </div>
  2087. <div>{{ w.commentCount }}</div>
  2088. </div>
  2089. </div>
  2090. </div>
  2091. </div>
  2092. </div>
  2093. <div class="noWorksS">
  2094. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2095. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2096. {{ s.student }}
  2097. </div>
  2098. </div>
  2099. </div>
  2100. <div v-if="tType &&
  2101. ((tType == 2 && sIsOpen == true) ||
  2102. tType == 1 ||
  2103. tType == 4) &&
  2104. tool.tool.indexOf(57) != -1
  2105. " class="worksBox">
  2106. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2107. worksStudent2[toolIndex].length > 0
  2108. ">
  2109. <div class="worksTop">
  2110. <div>作业预览</div>
  2111. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2112. isCloseList[toolIndex].isClose == 0
  2113. ">
  2114. 收缩
  2115. </div>
  2116. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2117. 展开
  2118. </div>
  2119. </div>
  2120. </div>
  2121. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2122. worksStudent2[toolIndex].length > 0
  2123. ">
  2124. <div class="works" style="
  2125. width: 200px;
  2126. height: 140px;
  2127. margin: 10px 10px 10px 0;
  2128. border-radius: 15px;
  2129. box-shadow: 0 0 6px 1px #dfdada;
  2130. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2131. 0
  2132. ? worksStudent2[toolIndex]
  2133. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2134. :class="w.type == 1 ? 'isTypeOne' : ''">
  2135. <div class="workImg">
  2136. <img :src="word2" @click="downloadFile(w.works)" alt />
  2137. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2138. rightW:
  2139. w.userid == userid ||
  2140. tType == 1 ||
  2141. tType == 4 ||
  2142. w.ateacher == userid,
  2143. }">
  2144. {{ JSON.parse(w.score).wScore }}分
  2145. </div>
  2146. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2147. :class="{
  2148. rightW:
  2149. w.userid == userid ||
  2150. tType == 1 ||
  2151. tType == 4 ||
  2152. w.ateacher == userid,
  2153. }">
  2154. 评分
  2155. </div>
  2156. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2157. " @click.stop="deleteWorks(w.wid)" alt />
  2158. </div>
  2159. <div class="comment" style="min-width: 200px">
  2160. <div class="worksName">
  2161. <div>{{ w.sName }}</div>
  2162. </div>
  2163. <div class="commentList">
  2164. <div class="commentList">
  2165. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2166. ">
  2167. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2168. </div>
  2169. <div>{{ w.likesCount }}</div>
  2170. </div>
  2171. <div class="commentList" style="margin-right: 15px">
  2172. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2173. <img src="../../assets/icon/comment/comment.png" alt="" />
  2174. </div>
  2175. <div>{{ w.commentCount }}</div>
  2176. </div>
  2177. </div>
  2178. </div>
  2179. </div>
  2180. </div>
  2181. <div class="noWorksS">
  2182. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2183. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2184. {{ s.student }}
  2185. </div>
  2186. </div>
  2187. </div>
  2188. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  2189. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2190. worksStudent2[toolIndex].length > 0
  2191. ">
  2192. <span>作业预览</span>
  2193. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2194. isCloseList[toolIndex].isClose == 0
  2195. ">
  2196. 收缩
  2197. </div>
  2198. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2199. 展开
  2200. </div>
  2201. </div>
  2202. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2203. worksStudent2[toolIndex].length > 0
  2204. ">
  2205. <div class="works" style="
  2206. width: 200px;
  2207. height: 140px;
  2208. margin: 10px 10px 10px 0;
  2209. border-radius: 15px;
  2210. box-shadow: 0 0 6px 1px #dfdada;
  2211. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2212. 0
  2213. ? worksStudent2[toolIndex]
  2214. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2215. :class="w.type == 1 ? 'isTypeOne' : ''">
  2216. <div class="workImg" v-if="w.type == 0">
  2217. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2218. <img :src="w.works" @click="previewImg(w.works)" alt />
  2219. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2220. rightW:
  2221. w.userid == userid ||
  2222. tType == 1 ||
  2223. tType == 4 ||
  2224. w.ateacher == userid,
  2225. }">
  2226. {{ JSON.parse(w.score).wScore }}分
  2227. </div>
  2228. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2229. :class="{
  2230. rightW:
  2231. w.userid == userid ||
  2232. tType == 1 ||
  2233. tType == 4 ||
  2234. w.ateacher == userid,
  2235. }">
  2236. 评分
  2237. </div>
  2238. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2239. " @click.stop="deleteWorks(w.wid)" alt />
  2240. </div>
  2241. <div class="workImg" style="cursor: pointer" v-if="w.type == 1">
  2242. <img :src="word" @click="openFile(w.works)" alt />
  2243. <!-- @click="openFile(w.works)" -->
  2244. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2245. rightW:
  2246. w.userid == userid ||
  2247. tType == 1 ||
  2248. tType == 4 ||
  2249. w.ateacher == userid,
  2250. }">
  2251. {{ JSON.parse(w.score).wScore }}分
  2252. </div>
  2253. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2254. :class="{
  2255. rightW:
  2256. w.userid == userid ||
  2257. tType == 1 ||
  2258. tType == 4 ||
  2259. w.ateacher == userid,
  2260. }">
  2261. 评分
  2262. </div>
  2263. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2264. " @click.stop="deleteWorks(w.wid)" alt />
  2265. </div>
  2266. <div class="workImg" v-if="w.type == 3">
  2267. <img style="cursor: pointer" :src="video" @click="openVideo(w)" alt />
  2268. <!-- @click="openVideo(w.works)" -->
  2269. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2270. rightW:
  2271. w.userid == userid ||
  2272. tType == 1 ||
  2273. tType == 4 ||
  2274. w.ateacher == userid,
  2275. }">
  2276. {{ JSON.parse(w.score).wScore }}分
  2277. </div>
  2278. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2279. :class="{
  2280. rightW:
  2281. w.userid == userid ||
  2282. tType == 1 ||
  2283. tType == 4 ||
  2284. w.ateacher == userid,
  2285. }">
  2286. 评分
  2287. </div>
  2288. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2289. " @click.stop="deleteWorks(w.wid)" alt />
  2290. </div>
  2291. <div class="comment" style="min-width: 200px">
  2292. <div class="worksName">
  2293. <div style="cursor: pointer" @click="openSname(w.sName, w.wid, toolIndex)">
  2294. {{ w.sName }}
  2295. </div>
  2296. </div>
  2297. <div class="commentList">
  2298. <div class="commentList">
  2299. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2300. ">
  2301. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2302. </div>
  2303. <div>{{ w.likesCount }}</div>
  2304. </div>
  2305. <div class="commentList" style="margin-right: 15px">
  2306. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2307. <img src="../../assets/icon/comment/comment.png" alt="" />
  2308. </div>
  2309. <div>{{ w.commentCount }}</div>
  2310. </div>
  2311. </div>
  2312. </div>
  2313. </div>
  2314. </div>
  2315. <div class="noWorksS">
  2316. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2317. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2318. {{ s.student }}
  2319. </div>
  2320. </div>
  2321. </div>
  2322. <div v-if="tType &&
  2323. ((tType == 2 && sIsOpen == true) ||
  2324. tType == 1 ||
  2325. tType == 4) &&
  2326. tool.tool.indexOf(4) != -1
  2327. " class="worksBox">
  2328. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2329. worksStudent2[toolIndex].length > 0
  2330. ">
  2331. <div class="worksTop">
  2332. <div>作业预览</div>
  2333. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2334. isCloseList[toolIndex].isClose == 0
  2335. ">
  2336. 收缩
  2337. </div>
  2338. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2339. 展开
  2340. </div>
  2341. </div>
  2342. </div>
  2343. <div>
  2344. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2345. worksStudent2[toolIndex].length > 0
  2346. ">
  2347. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2348. .isClose == 0
  2349. ? worksStudent2[toolIndex]
  2350. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(4, toolIndex, taskCount, w.works, w.sName)
  2351. ">
  2352. {{ w.sName }}
  2353. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2354. " @click.stop="deleteWorks(w.wid)" alt />
  2355. </div>
  2356. </div>
  2357. </div>
  2358. <div class="noWorksS">
  2359. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2360. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2361. {{ s.student }}
  2362. </div>
  2363. </div>
  2364. </div>
  2365. <div v-if="tType &&
  2366. ((tType == 2 && sIsOpen == true) ||
  2367. tType == 1 ||
  2368. tType == 4) &&
  2369. tool.tool.indexOf(45) != -1
  2370. " class="worksBox">
  2371. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2372. worksStudent2[toolIndex].length > 0
  2373. ">
  2374. <div class="worksTop">
  2375. <div>作业预览</div>
  2376. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2377. isCloseList[toolIndex].isClose == 0
  2378. ">
  2379. 收缩
  2380. </div>
  2381. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2382. 展开
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div>
  2387. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2388. worksStudent2[toolIndex].length > 0
  2389. ">
  2390. <div v-for="(w, wIndex) in isCloseList[toolIndex]
  2391. .isClose == 0
  2392. ? worksStudent2[toolIndex]
  2393. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName" @click="openTools(
  2394. 45,
  2395. toolIndex,
  2396. taskCount,
  2397. w.works,
  2398. w.sName
  2399. )
  2400. ">
  2401. {{ w.sName }}
  2402. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2403. " @click.stop="deleteWorks(w.wid)" alt />
  2404. </div>
  2405. </div>
  2406. </div>
  2407. <div class="noWorksS">
  2408. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2409. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2410. {{ s.student }}
  2411. </div>
  2412. </div>
  2413. </div>
  2414. <div v-if="tType &&
  2415. ((tType == 2 && sIsOpen == true) ||
  2416. tType == 1 ||
  2417. tType == 4) &&
  2418. tool.tool.indexOf(15) != -1
  2419. " class="worksBox">
  2420. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2421. worksStudent2[toolIndex].length > 0
  2422. ">
  2423. <div class="worksTop">
  2424. <div>作业预览</div>
  2425. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2426. isCloseList[toolIndex].isClose == 0
  2427. ">
  2428. 收缩
  2429. </div>
  2430. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2431. 展开
  2432. </div>
  2433. </div>
  2434. </div>
  2435. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2436. worksStudent2[toolIndex].length > 0
  2437. ">
  2438. <div class="works" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2439. 0
  2440. ? worksStudent2[toolIndex]
  2441. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2442. <div class="workImg" style="
  2443. border-radius: 15px;
  2444. box-shadow: #eee 0px 0px 5px 5px;
  2445. ">
  2446. <!-- <img
  2447. src="../../assets/icon/works/noImg.png"
  2448. @click="openTools(15, toolIndex, taskCount, w.works)"
  2449. alt=""
  2450. />-->
  2451. <div class="answerBg" style="border-radius: 15px 15px 0 0"
  2452. @click="commentOther(w, toolIndex, wIndex)">
  2453. <!-- <div>{{ w.sName }}</div> -->
  2454. <div class="answerContent">
  2455. {{ JSON.parse(w.works)[0].answer }}
  2456. </div>
  2457. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2458. rightW:
  2459. w.userid == userid ||
  2460. tType == 1 ||
  2461. tType == 4,
  2462. }">
  2463. {{ JSON.parse(w.score).wScore }}分
  2464. </div>
  2465. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2466. :class="{
  2467. rightW:
  2468. w.userid == userid ||
  2469. tType == 1 ||
  2470. tType == 4,
  2471. }">
  2472. 评分
  2473. </div>
  2474. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2475. " @click.stop="deleteWorks(w.wid)" alt />
  2476. </div>
  2477. <div class="comment">
  2478. <div class="worksName">
  2479. <div>{{ w.sName }}</div>
  2480. </div>
  2481. <div class="commentList">
  2482. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2483. ">
  2484. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2485. </div>
  2486. <div>{{ w.likesCount }}</div>
  2487. </div>
  2488. <div class="commentList" style="margin-right: 15px">
  2489. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2490. <img src="../../assets/icon/comment/comment.png" alt="" />
  2491. </div>
  2492. <div>{{ w.commentCount }}</div>
  2493. </div>
  2494. </div>
  2495. </div>
  2496. </div>
  2497. </div>
  2498. <div class="noWorksS">
  2499. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2500. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2501. {{ s.student }}
  2502. </div>
  2503. </div>
  2504. </div>
  2505. <div v-if="tType &&
  2506. ((tType == 2 && sIsOpen == true) ||
  2507. tType == 1 ||
  2508. tType == 4) &&
  2509. tool.tool.indexOf(1) != -1
  2510. " class="worksBox">
  2511. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2512. worksStudent2[toolIndex].length > 0
  2513. ">
  2514. <div class="worksTop">
  2515. <div>作业预览</div>
  2516. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2517. isCloseList[toolIndex].isClose == 0
  2518. ">
  2519. 收缩
  2520. </div>
  2521. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2522. 展开
  2523. </div>
  2524. </div>
  2525. </div>
  2526. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2527. worksStudent2[toolIndex].length > 0
  2528. ">
  2529. <div class="works" style="
  2530. width: 200px;
  2531. height: 140px;
  2532. margin: 10px 10px 10px 0;
  2533. border-radius: 15px;
  2534. box-shadow: 0 0 6px 1px #dfdada;
  2535. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2536. 0
  2537. ? worksStudent2[toolIndex]
  2538. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2539. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  2540. <div class="workImg">
  2541. <img :src="w.works" @click="previewImg(w.works)" alt />
  2542. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2543. rightW:
  2544. w.userid == userid || tType == 1 || tType == 4,
  2545. }">
  2546. {{ JSON.parse(w.score).wScore }}分
  2547. </div>
  2548. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2549. :class="{
  2550. rightW:
  2551. w.userid == userid || tType == 1 || tType == 4,
  2552. }">
  2553. 评分
  2554. </div>
  2555. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2556. " @click.stop="deleteWorks(w.wid)" alt />
  2557. </div>
  2558. <div class="comment" style="min-width: 200px">
  2559. <div class="worksName">
  2560. <div>{{ w.sName }}</div>
  2561. </div>
  2562. <div class="commentList">
  2563. <div class="commentList">
  2564. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2565. ">
  2566. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2567. </div>
  2568. <div>{{ w.likesCount }}</div>
  2569. </div>
  2570. <div class="commentList" style="margin-right: 15px">
  2571. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2572. <img src="../../assets/icon/comment/comment.png" alt="" />
  2573. </div>
  2574. <div>{{ w.commentCount }}</div>
  2575. </div>
  2576. </div>
  2577. </div>
  2578. </div>
  2579. </div>
  2580. <div class="noWorksS">
  2581. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2582. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2583. {{ s.student }}
  2584. </div>
  2585. </div>
  2586. </div>
  2587. <div v-if="tType &&
  2588. ((tType == 2 && sIsOpen == true) ||
  2589. tType == 1 ||
  2590. tType == 4) &&
  2591. tool.tool.indexOf(3) != -1
  2592. " class="worksBox">
  2593. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2594. worksStudent2[toolIndex].length > 0
  2595. ">
  2596. <div class="worksTop">
  2597. <div>作业预览</div>
  2598. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2599. isCloseList[toolIndex].isClose == 0
  2600. ">
  2601. 收缩
  2602. </div>
  2603. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2604. 展开
  2605. </div>
  2606. </div>
  2607. </div>
  2608. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2609. worksStudent2[toolIndex].length > 0
  2610. ">
  2611. <div class="works" style="
  2612. width: 200px;
  2613. height: 140px;
  2614. margin: 10px 10px 10px 0;
  2615. border-radius: 15px;
  2616. box-shadow: 0 0 6px 1px #dfdada;
  2617. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2618. 0
  2619. ? worksStudent2[toolIndex]
  2620. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2621. <!-- @click="previewImg(w.works)" -->
  2622. <div class="workImg">
  2623. <img :src="w.works" @click="previewImg(w.works)" alt />
  2624. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2625. rightW:
  2626. w.userid == userid || tType == 1 || tType == 4,
  2627. }">
  2628. {{ JSON.parse(w.score).wScore }}分
  2629. </div>
  2630. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2631. :class="{
  2632. rightW:
  2633. w.userid == userid || tType == 1 || tType == 4,
  2634. }">
  2635. 评分
  2636. </div>
  2637. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2638. " @click.stop="deleteWorks(w.wid)" alt />
  2639. </div>
  2640. <div class="comment" style="min-width: 200px">
  2641. <div class="worksName">
  2642. <div>{{ w.sName }}</div>
  2643. </div>
  2644. <div class="commentList">
  2645. <div class="commentList">
  2646. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2647. ">
  2648. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2649. </div>
  2650. <div>{{ w.likesCount }}</div>
  2651. </div>
  2652. <div class="commentList" style="margin-right: 15px">
  2653. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2654. <img src="../../assets/icon/comment/comment.png" alt="" />
  2655. </div>
  2656. <div>{{ w.commentCount }}</div>
  2657. </div>
  2658. </div>
  2659. </div>
  2660. </div>
  2661. </div>
  2662. <div class="noWorksS">
  2663. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2664. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2665. {{ s.student }}
  2666. </div>
  2667. </div>
  2668. </div>
  2669. <div v-if="tType &&
  2670. ((tType == 2 && sIsOpen == true) ||
  2671. tType == 1 ||
  2672. tType == 4) &&
  2673. tool.tool.indexOf(6) != -1
  2674. " class="worksBox">
  2675. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2676. worksStudent2[toolIndex].length > 0
  2677. ">
  2678. <div class="worksTop">
  2679. <div>作业预览</div>
  2680. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent[toolIndex].length > 6 &&
  2681. isCloseList[toolIndex].isClose == 0
  2682. ">
  2683. 收缩
  2684. </div>
  2685. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2686. 展开
  2687. </div>
  2688. </div>
  2689. </div>
  2690. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2691. worksStudent2[toolIndex].length > 0
  2692. ">
  2693. <div class="works" style="
  2694. width: 200px;
  2695. height: 140px;
  2696. margin: 10px 10px 10px 0;
  2697. border-radius: 15px;
  2698. box-shadow: 0 0 6px 1px #dfdada;
  2699. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2700. 0
  2701. ? worksStudent2[toolIndex]
  2702. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2703. <!-- @click="previewImg(w.works)" -->
  2704. <div class="workImg">
  2705. <img :src="w.works" @click="previewImg(w.works)" alt />
  2706. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2707. rightW:
  2708. w.userid == userid || tType == 1 || tType == 4,
  2709. }">
  2710. {{ JSON.parse(w.score).wScore }}分
  2711. </div>
  2712. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2713. :class="{
  2714. rightW:
  2715. w.userid == userid || tType == 1 || tType == 4,
  2716. }">
  2717. 评分
  2718. </div>
  2719. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2720. " @click.stop="deleteWorks(w.wid)" alt />
  2721. </div>
  2722. <div class="comment" style="min-width: 200px">
  2723. <div class="worksName">
  2724. <div>{{ w.sName }}</div>
  2725. </div>
  2726. <div class="commentList">
  2727. <div class="commentList">
  2728. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2729. ">
  2730. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2731. </div>
  2732. <div>{{ w.likesCount }}</div>
  2733. </div>
  2734. <div class="commentList" style="margin-right: 15px">
  2735. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2736. <img src="../../assets/icon/comment/comment.png" alt="" />
  2737. </div>
  2738. <div>{{ w.commentCount }}</div>
  2739. </div>
  2740. </div>
  2741. </div>
  2742. </div>
  2743. </div>
  2744. <div class="noWorksS">
  2745. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2746. {{ s.student }}
  2747. </div>
  2748. </div>
  2749. </div>
  2750. <div v-if="tType &&
  2751. ((tType == 2 && sIsOpen == true) ||
  2752. tType == 1 ||
  2753. tType == 4) &&
  2754. tool.tool.indexOf(7) != -1
  2755. " class="worksBox">
  2756. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2757. worksStudent2[toolIndex].length > 0
  2758. ">
  2759. <div class="worksTop">
  2760. <div>作业预览</div>
  2761. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2762. isCloseList[toolIndex].isClose == 0
  2763. ">
  2764. 收缩
  2765. </div>
  2766. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2767. 展开
  2768. </div>
  2769. </div>
  2770. </div>
  2771. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2772. worksStudent2[toolIndex].length > 0
  2773. ">
  2774. <div class="works" style="
  2775. width: 200px;
  2776. height: 140px;
  2777. margin: 10px 10px 10px 0;
  2778. border-radius: 15px;
  2779. box-shadow: 0 0 6px 1px #dfdada;
  2780. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2781. 0
  2782. ? worksStudent2[toolIndex]
  2783. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex">
  2784. <!-- @click="previewImg(w.works)" -->
  2785. <div class="workImg">
  2786. <img :src="w.works" @click="previewImg(w.works)" alt />
  2787. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  2788. rightW:
  2789. w.userid == userid || tType == 1 || tType == 4,
  2790. }">
  2791. {{ JSON.parse(w.score).wScore }}分
  2792. </div>
  2793. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  2794. :class="{
  2795. rightW:
  2796. w.userid == userid || tType == 1 || tType == 4,
  2797. }">
  2798. 评分
  2799. </div>
  2800. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2801. " @click.stop="deleteWorks(w.wid)" alt />
  2802. </div>
  2803. <div class="comment" style="min-width: 200px">
  2804. <div class="worksName">
  2805. <div>{{ w.sName }}</div>
  2806. </div>
  2807. <div class="commentList">
  2808. <div class="commentList">
  2809. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2810. ">
  2811. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2812. </div>
  2813. <div>{{ w.likesCount }}</div>
  2814. </div>
  2815. <div class="commentList" style="margin-right: 15px">
  2816. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2817. <img src="../../assets/icon/comment/comment.png" alt="" />
  2818. </div>
  2819. <div>{{ w.commentCount }}</div>
  2820. </div>
  2821. </div>
  2822. </div>
  2823. </div>
  2824. </div>
  2825. <div class="noWorksS">
  2826. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2827. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2828. {{ s.student }}
  2829. </div>
  2830. </div>
  2831. </div>
  2832. <div v-if="tType &&
  2833. ((tType == 2 && sIsOpen == true) ||
  2834. tType == 1 ||
  2835. tType == 4) &&
  2836. tool.tool.indexOf(26) != -1
  2837. " class="worksBox">
  2838. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2839. worksStudent2[toolIndex].length > 0
  2840. ">
  2841. <div class="worksTop">
  2842. <div>作业预览</div>
  2843. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2844. isCloseList[toolIndex].isClose == 0
  2845. ">
  2846. 收缩
  2847. </div>
  2848. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2849. 展开
  2850. </div>
  2851. </div>
  2852. </div>
  2853. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2854. worksStudent2[toolIndex].length > 0
  2855. ">
  2856. <div class="works" style="width: 240px; height: 140px; overflow: hidden" v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2857. 0
  2858. ? worksStudent2[toolIndex]
  2859. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" :class="w.type == 1 ? 'isTypeOne' : ''">
  2860. <div class="workImg" v-if="w.type == 0">
  2861. <img :src="w.works" @click="previewImg(w.works)" alt />
  2862. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2863. " @click.stop="deleteWorks(w.wid)" alt />
  2864. </div>
  2865. <div class="workImg" v-if="w.type == 1">
  2866. <img :src="word" @click="openFile(w.works)" alt />
  2867. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2868. " @click.stop="deleteWorks(w.wid)" alt />
  2869. </div>
  2870. <div class="worksName">
  2871. <div>{{ w.sName }}</div>
  2872. </div>
  2873. </div>
  2874. </div>
  2875. <div class="noWorksS">
  2876. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName" :class="{isWork:s.type == '2'}">
  2877. {{ s.student }}
  2878. </div>
  2879. </div>
  2880. </div>
  2881. <div v-if="tType &&
  2882. ((tType == 2 && sIsOpen == true) ||
  2883. tType == 1 ||
  2884. tType == 4) &&
  2885. tool.tool.indexOf(40) != -1
  2886. " class="worksBox">
  2887. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2888. worksStudent2[toolIndex].length > 0
  2889. ">
  2890. <div class="worksTop">
  2891. <div>作业预览</div>
  2892. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2893. isCloseList[toolIndex].isClose == 0
  2894. ">
  2895. 收缩
  2896. </div>
  2897. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2898. 展开
  2899. </div>
  2900. </div>
  2901. </div>
  2902. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2903. worksStudent2[toolIndex].length > 0
  2904. ">
  2905. <div class="works" style="
  2906. width: 200px;
  2907. height: 140px;
  2908. margin: 10px 10px 10px 0;
  2909. border-radius: 15px;
  2910. box-shadow: 0 0 6px 1px #dfdada;
  2911. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2912. 0
  2913. ? worksStudent2[toolIndex]
  2914. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  2915. :class="w.type == 1 ? 'isTypeOne' : ''">
  2916. <div class="workImg">
  2917. <img src="../../assets/icon/works/noImg.png" @click="openPj(w.works, toolIndex)" alt />
  2918. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  2919. " @click.stop="deleteWorks(w.wid)" alt />
  2920. </div>
  2921. <div class="comment" style="min-width: 200px">
  2922. <div class="worksName">
  2923. <div>{{ w.sName }}</div>
  2924. </div>
  2925. <div class="commentList">
  2926. <div class="commentList">
  2927. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  2928. ">
  2929. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  2930. </div>
  2931. <div>{{ w.likesCount }}</div>
  2932. </div>
  2933. <div class="commentList" style="margin-right: 15px">
  2934. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  2935. <img src="../../assets/icon/comment/comment.png" alt="" />
  2936. </div>
  2937. <div>{{ w.commentCount }}</div>
  2938. </div>
  2939. </div>
  2940. </div>
  2941. </div>
  2942. </div>
  2943. <div class="noWorksS">
  2944. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2945. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2946. {{ s.student }}
  2947. </div>
  2948. </div>
  2949. </div>
  2950. <div v-if="tType &&
  2951. ((tType == 2 && sIsOpen == true) ||
  2952. tType == 1 ||
  2953. tType == 4) &&
  2954. tool.tool.indexOf(41) != -1
  2955. " class="worksBox">
  2956. <div class="noWorksS">
  2957. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2958. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  2959. {{ s.student }}
  2960. </div>
  2961. </div>
  2962. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  2963. worksStudent2[toolIndex].length > 0
  2964. ">
  2965. <div class="worksTop">
  2966. <div>作业预览</div>
  2967. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  2968. isCloseList[toolIndex].isClose == 0
  2969. ">
  2970. 收缩
  2971. </div>
  2972. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  2973. 展开
  2974. </div>
  2975. </div>
  2976. </div>
  2977. <div class="worksDetailBox" v-if="worksStudent2.length &&
  2978. worksStudent2[toolIndex].length > 0
  2979. ">
  2980. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  2981. 0
  2982. ? worksStudent2[toolIndex]
  2983. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  2984. @click="openXz(w, toolIndex)">
  2985. {{ w.sName }}
  2986. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  2987. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  2988. </div>
  2989. </div>
  2990. </div>
  2991. <div v-if="tType &&
  2992. ((tType == 2 && sIsOpen == true) ||
  2993. tType == 1 ||
  2994. tType == 4) &&
  2995. tool.tool.indexOf(47) != -1
  2996. " class="worksBox">
  2997. <div class="noWorksS">
  2998. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  2999. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3000. {{ s.student }}
  3001. </div>
  3002. </div>
  3003. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3004. worksStudent2[toolIndex].length > 0
  3005. ">
  3006. <div class="worksTop">
  3007. <div>作业预览</div>
  3008. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3009. isCloseList[toolIndex].isClose == 0
  3010. ">
  3011. 收缩
  3012. </div>
  3013. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3014. 展开
  3015. </div>
  3016. </div>
  3017. </div>
  3018. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3019. worksStudent2[toolIndex].length > 0
  3020. ">
  3021. <!-- @click="openXz(w, toolIndex)" -->
  3022. <div v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3023. 0
  3024. ? worksStudent2[toolIndex]
  3025. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex" class="isWorksName"
  3026. @click="openSen(w, toolIndex)">
  3027. {{ w.sName }}
  3028. <img class="deleteImg deleteImg2" src="../../assets/deleteworks.png"
  3029. v-if="w.userid == userid || tType == 1 || tType == 4" @click.stop="deleteWorks(w.wid)" alt />
  3030. </div>
  3031. </div>
  3032. </div>
  3033. <div v-if="tType &&
  3034. ((tType == 2 && sIsOpen == true) ||
  3035. tType == 1 ||
  3036. tType == 4) &&
  3037. tool.tool.indexOf(48) != -1
  3038. " class="worksBox">
  3039. <div class="noWorksS">
  3040. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3041. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3042. {{ s.student }}
  3043. </div>
  3044. </div>
  3045. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3046. worksStudent2[toolIndex].length > 0
  3047. ">
  3048. <div class="worksTop">
  3049. <div>作业预览</div>
  3050. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3051. isCloseList[toolIndex].isClose == 0
  3052. ">
  3053. 收缩
  3054. </div>
  3055. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3056. 展开
  3057. </div>
  3058. </div>
  3059. </div>
  3060. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3061. worksStudent2[toolIndex].length > 0
  3062. ">
  3063. <div class="works" style="
  3064. width: 200px;
  3065. height: 140px;
  3066. margin: 10px 10px 10px 0;
  3067. border-radius: 15px;
  3068. box-shadow: 0 0 6px 1px #dfdada;
  3069. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3070. 0
  3071. ? worksStudent2[toolIndex]
  3072. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3073. :class="w.type == 1 ? 'isTypeOne' : ''">
  3074. <div class="workImg">
  3075. <img :src="word" @click="openTable(w)" alt />
  3076. <!-- @click="openFile(w.works)" -->
  3077. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3078. rightW:
  3079. w.userid == userid ||
  3080. tType == 1 ||
  3081. tType == 4 ||
  3082. w.ateacher == userid,
  3083. }">
  3084. {{ JSON.parse(w.score).wScore }}分
  3085. </div>
  3086. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3087. :class="{
  3088. rightW:
  3089. w.userid == userid ||
  3090. tType == 1 ||
  3091. tType == 4 ||
  3092. w.ateacher == userid,
  3093. }">
  3094. 评分
  3095. </div>
  3096. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3097. " @click.stop="deleteWorks(w.wid)" alt />
  3098. </div>
  3099. <div class="comment" style="min-width: 200px">
  3100. <div class="worksName">
  3101. <div>{{ w.sName }}</div>
  3102. </div>
  3103. <div class="commentList">
  3104. <div class="commentList">
  3105. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3106. ">
  3107. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3108. </div>
  3109. <div>{{ w.likesCount }}</div>
  3110. </div>
  3111. <div class="commentList" style="margin-right: 15px">
  3112. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3113. <img src="../../assets/icon/comment/comment.png" alt="" />
  3114. </div>
  3115. <div>{{ w.commentCount }}</div>
  3116. </div>
  3117. </div>
  3118. </div>
  3119. </div>
  3120. </div>
  3121. </div>
  3122. <div v-if="tType &&
  3123. ((tType == 2 && sIsOpen == true) ||
  3124. tType == 1 ||
  3125. tType == 4) &&
  3126. tool.tool.indexOf(52) != -1
  3127. " class="worksBox">
  3128. <div class="noWorksS">
  3129. <div v-for="(s, sIndex) in noWorksS[toolIndex]" :key="sIndex" class="noWorksName"
  3130. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)" :class="{isWork:s.type == '2'}">
  3131. {{ s.student }}
  3132. </div>
  3133. </div>
  3134. <div class="zuoyeYulan" v-if="worksStudent2.length &&
  3135. worksStudent2[toolIndex].length > 0
  3136. ">
  3137. <div class="worksTop">
  3138. <div>作业预览</div>
  3139. <div class="corOpen" @click="contract(toolIndex)" v-if="worksStudent2[toolIndex].length > 6 &&
  3140. isCloseList[toolIndex].isClose == 0
  3141. ">
  3142. 收缩
  3143. </div>
  3144. <div class="corOpen" @click="contract(toolIndex)" v-if="isCloseList[toolIndex].isClose == 1">
  3145. 展开
  3146. </div>
  3147. </div>
  3148. </div>
  3149. <div class="worksDetailBox" v-if="worksStudent2.length &&
  3150. worksStudent2[toolIndex].length > 0
  3151. ">
  3152. <div class="works" style="
  3153. width: 200px;
  3154. height: 140px;
  3155. margin: 10px 10px 10px 0;
  3156. border-radius: 15px;
  3157. box-shadow: 0 0 6px 1px #dfdada;
  3158. " v-for="(w, wIndex) in isCloseList[toolIndex].isClose ==
  3159. 0
  3160. ? worksStudent2[toolIndex]
  3161. : worksStudent2[toolIndex].slice(0, 6)" :key="wIndex"
  3162. :class="w.type == 1 ? 'isTypeOne' : ''">
  3163. <div class="workImg">
  3164. <img :src="word" @click="openTable(w)" alt />
  3165. <!-- @click="openFile(w.works)" -->
  3166. <div class="answerScore" v-if="w.score" @click.stop="openScore(w)" :class="{
  3167. rightW:
  3168. w.userid == userid ||
  3169. tType == 1 ||
  3170. tType == 4 ||
  3171. w.ateacher == userid,
  3172. }">
  3173. {{ JSON.parse(w.score).wScore }}分
  3174. </div>
  3175. <div class="answerScore" @click.stop="openScore(w)" v-else-if="courseDetail.userid == userid"
  3176. :class="{
  3177. rightW:
  3178. w.userid == userid ||
  3179. tType == 1 ||
  3180. tType == 4 ||
  3181. w.ateacher == userid,
  3182. }">
  3183. 评分
  3184. </div>
  3185. <img class="deleteImg" src="../../assets/deleteworks.png" v-if="w.userid == userid || tType == 1 || tType == 4
  3186. " @click.stop="deleteWorks(w.wid)" alt />
  3187. </div>
  3188. <div class="comment" style="min-width: 200px">
  3189. <div class="worksName">
  3190. <div>{{ w.sName }}</div>
  3191. </div>
  3192. <div class="commentList">
  3193. <div class="commentList">
  3194. <div class="commentImg" @click="isLikes(w.wid, userid, 1, null, w.isLikes)
  3195. ">
  3196. <img :src="w.isLikes == true ? likes : noLikes" alt="" />
  3197. </div>
  3198. <div>{{ w.likesCount }}</div>
  3199. </div>
  3200. <div class="commentList" style="margin-right: 15px">
  3201. <div class="commentImg" @click="commentOther(w, toolIndex, wIndex)">
  3202. <img src="../../assets/icon/comment/comment.png" alt="" />
  3203. </div>
  3204. <div>{{ w.commentCount }}</div>
  3205. </div>
  3206. </div>
  3207. </div>
  3208. </div>
  3209. </div>
  3210. </div>
  3211. </div>
  3212. </div>
  3213. <div class="vedioBox" v-if="false
  3214. ">
  3215. <div class="queTop" style="
  3216. font-size: 25px;
  3217. padding: 15px 0 15px 30px;
  3218. font-weight: bold;
  3219. ">
  3220. 评一评
  3221. </div>
  3222. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  3223. <div class="elist_input">
  3224. <div v-for="(eItem, eIndex) in chapInfoList[courseType]
  3225. .chapterInfo[0].taskJson[taskCount].eList" :key="eIndex" class="elist_input_box">
  3226. <div style="width: 95%">
  3227. <div style="
  3228. display: flex;
  3229. flex-direction: row;
  3230. flex-wrap: nowrap;
  3231. align-items: center;
  3232. ">
  3233. <div style="max-width: calc(100% - 285px)">
  3234. <span>{{ eItem.value }}</span>
  3235. </div>
  3236. <div style="
  3237. padding-left: 25px;
  3238. display: flex;
  3239. flex-direction: row;
  3240. align-items: center;
  3241. ">
  3242. <el-rate v-model="eItem.score" :colors="colors" disabled></el-rate>
  3243. </div>
  3244. </div>
  3245. <div class="elist_inptu_text" style="padding-left: 10px">
  3246. <span v-if="eItem.detail != ''">{{
  3247. eItem.detail
  3248. }}</span>
  3249. <span v-else style="color: #b2b1b3; font-size: 14px">暂无描述...</span>
  3250. </div>
  3251. </div>
  3252. </div>
  3253. </div>
  3254. <div v-if="evalua" style="
  3255. border: 1px solid #e5e5e5;
  3256. max-width: 650px;
  3257. width: 100%;
  3258. margin-top: 20px;
  3259. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3260. ">
  3261. <div class="e_add_top">
  3262. <div class="e_add_title">
  3263. <span>目标管理名称</span>
  3264. <span>{{ eTitle }}</span>
  3265. <img src="../../assets/line.png" class="cru_line" style="
  3266. width: 125px;
  3267. height: 20px;
  3268. bottom: -10px;
  3269. left: 120px;
  3270. " />
  3271. <!-- <el-input
  3272. v-model="eTitle"
  3273. placeholder="请输入名称"
  3274. @change="setMindData"
  3275. ></el-input>-->
  3276. </div>
  3277. </div>
  3278. <div class="e_add_content">
  3279. <div class="e_add_list_pbox">
  3280. <div class="e_add_list_pbox_title">
  3281. <span class="type_title">切换模式</span>
  3282. <div class="type_content">
  3283. <span :class="{ active: typeMode == 1 }" @click="typeMode = 1">目标树</span>
  3284. <span :class="{ active: typeMode == 2 }" @click="typeMode = 2">目标罗盘</span>
  3285. <span :class="{ active: typeMode == 3 }" @click="typeMode = 3">目标看板</span>
  3286. </div>
  3287. </div>
  3288. <div class="e_add_list_pbox_content">
  3289. <Mind :showBar="false" :mindData="data" style="width: 100%" v-show="typeMode == 1"></Mind>
  3290. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2"></Sunburst>
  3291. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%" v-if="typeMode == 3">
  3292. </SeeBoard>
  3293. </div>
  3294. </div>
  3295. </div>
  3296. </div>
  3297. </div>
  3298. </div>
  3299. </div>
  3300. </div>
  3301. <el-dialog title="作业提交" :visible.sync="dialogVisible" :append-to-body="true" width="500px"
  3302. :before-close="handleClose" class="dialog_change">
  3303. <div class="marginT">
  3304. <div>上传文件</div>
  3305. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  3306. <div class="up_photo">
  3307. <img src="../../assets/icon/uploadImg.png" alt />
  3308. </div>
  3309. <!-- <input
  3310. type="file"
  3311. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  3312. style="display: none"
  3313. @change="beforeUpload1($event, 1)"
  3314. /> -->
  3315. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  3316. <!-- <input
  3317. type="file"
  3318. accept="image/*"
  3319. capture="camera"
  3320. style="display: none"
  3321. @change="beforeUpload1($event, 1)"
  3322. /> -->
  3323. </div>
  3324. <div class="chapter_add" style="
  3325. display: flex;
  3326. width: 100%;
  3327. flex-direction: row;
  3328. flex-wrap: wrap;
  3329. justify-content: flex-start;
  3330. padding: 15px 0;
  3331. " v-if="studyJuri[0].cover.length > 0">
  3332. <div class="upCover">
  3333. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  3334. <img :src="word" alt v-else-if="fileType == 1" />
  3335. <img :src="video" alt v-else-if="fileType == 2" />
  3336. <img :src="word2" alt v-else-if="fileType == 3" />
  3337. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  3338. <div class="deleteWord" @click="clean(1)">
  3339. <img src="../../assets/icon/deleteWorks.png" alt />
  3340. </div>
  3341. </div>
  3342. </div>
  3343. </div>
  3344. <div class="upload_send" @click="addCourseWorks(taskCount)" v-if="!proVisible">
  3345. 提交
  3346. </div>
  3347. </el-dialog>
  3348. </div>
  3349. </div>
  3350. <div class="pButton" @click="(pzDialog = true), selectPz()" v-if="tType == 4">
  3351. <!-- 批 -->
  3352. <img src="../../assets/pzBtn2.png" style="width: 25px" alt="" />
  3353. </div>
  3354. <div v-if="pzDialog == true" class="newDialogCss">
  3355. <div class="pzTop2">
  3356. <!-- <div>批注</div>
  3357. <div @click="pzDialog = false">
  3358. <img src="../../assets/close1.png" alt="" />
  3359. </div> -->
  3360. <div class="checkbox">
  3361. <div class="check" style="font-size: 25px">评课笔记</div>
  3362. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  3363. </div>
  3364. </div>
  3365. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'">
  3366. <div class="pzListBox" v-if="pzList && pzList.length">
  3367. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  3368. <div class="pzNavTop">
  3369. <div>批</div>
  3370. <div>
  3371. {{
  3372. pz.username && pz.username.length > 5
  3373. ? pz.username.substring(0, 5) + "..."
  3374. : pz.username
  3375. }}的批注
  3376. </div>
  3377. <div class="pzDelete" v-if="pz.userid == userid" @click="deletePz(pz.id)">
  3378. 删除
  3379. </div>
  3380. </div>
  3381. <div class="pzContent cont" v-html="pz.content" v-if="pz.type == '1'"></div>
  3382. <div class="pzContent" v-if="pz.type == '2'">
  3383. <audio :src="pz.content" controls="controls" ref="audio">
  3384. Your browser does not support the audio element.
  3385. </audio>
  3386. </div>
  3387. <div class="pzContent" v-if="pz.type == '3'">
  3388. <img :src="pz.content" style="width: 90%; margin: 0 auto; display: block" @click="previewImg(pz.content)" />
  3389. </div>
  3390. <div class="time">
  3391. {{ pz.time }}
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div class="noPz" v-else>
  3396. <img src="../../assets/icon/noPz.png" alt="" />
  3397. </div>
  3398. <div class="addPzButton">
  3399. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  3400. 添加批注
  3401. </div>
  3402. <!-- <div class="img1">
  3403. <div @click="(addPzDialog = true), (pzType = 2)">
  3404. <img src="../../assets/audio.png" /><span>音频</span>
  3405. </div>
  3406. </div> -->
  3407. </div>
  3408. </div>
  3409. </div>
  3410. <div v-if="addPzDialog == true" class="addDialogCss">
  3411. <div class="pzTop">
  3412. <div class="teacherPz">
  3413. <div class="teacherPzImg">
  3414. <img src="../../assets/icon/teacherPz.png" alt="" />
  3415. </div>
  3416. <div style="margin-left: 10px; height: 25px">教师批注</div>
  3417. </div>
  3418. <div @click="addPzDialog = false">
  3419. <img src="../../assets/close1.png" alt="" />
  3420. </div>
  3421. </div>
  3422. <div class="addPzBox">
  3423. <div class="addPzCheck">
  3424. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1">文本</span>
  3425. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  3426. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2">音频</span>
  3427. </div>
  3428. <div style="height: calc(100% - 95px)">
  3429. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  3430. v-if="pzType == 1"></textarea> -->
  3431. <editor-bar class="binfo_input pzConText" style="width: 100% !important" placeholder="请输入任务描述"
  3432. v-model="pzConText" @change="change" v-if="pzType == 1"></editor-bar>
  3433. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  3434. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  3435. <div @click="addImg($event)">
  3436. <el-button type="primary">上传图片</el-button>
  3437. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  3438. @change="beforeUpload1($event, 4)" />
  3439. </div>
  3440. </div> -->
  3441. </div>
  3442. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  3443. 确定
  3444. </div>
  3445. </div>
  3446. </div>
  3447. <div v-if="proVisible" class="mask">
  3448. <div class="progressBox">
  3449. <!-- <div id="closePro" class="closeCss">
  3450. <img src="../../assets/icon/close.png" alt />
  3451. </div> -->
  3452. <div class="lbox">
  3453. <img src="../../assets/loading.gif" />上传中,请稍后
  3454. </div>
  3455. <div style="margin-bottom: 10px">
  3456. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  3457. </div>
  3458. <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress>
  3459. </div>
  3460. </div>
  3461. <div v-if="proVisible2" class="mask">
  3462. <div class="progressBox">
  3463. <div class="lbox">
  3464. <img src="../../assets/loading.gif" />上传中,请稍后
  3465. </div>
  3466. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  3467. </div>
  3468. </div>
  3469. <el-dialog :visible.sync="pictureDialog" size="tiny">
  3470. <img width="100%" :src="dialogImageUrl" alt />
  3471. </el-dialog>
  3472. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5" :append-to-body="true"
  3473. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3474. <div>
  3475. <div class="a_add_title" style="
  3476. display: flex;
  3477. flex-direction: row;
  3478. align-items: center;
  3479. justify-content: center;
  3480. ">
  3481. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3482. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3483. </div>
  3484. <div class="a_addBox">
  3485. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3486. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3487. <div class="a_add_head">
  3488. <div style="display: flex">
  3489. {{ index1 + 1 + "、" }}
  3490. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3491. </div>
  3492. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3493. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3494. </div>
  3495. <div class="a_add_body">
  3496. <div class="a_add_input">
  3497. <el-radio-group v-model="radio[index1]" v-if="
  3498. askJson.askJson[index1].type == '1' ||
  3499. !askJson.askJson[index1].type
  3500. ">
  3501. <el-radio v-for="(item2, checkIndex) in askJson.askJson[index1]
  3502. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle"><span
  3503. v-html="item2"></span></el-radio>
  3504. </el-radio-group>
  3505. <el-checkbox-group
  3506. v-model="radio[index1]"
  3507. v-if="askJson.askJson[index1].type == '2'"
  3508. >
  3509. <el-checkbox
  3510. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3511. .checkList"
  3512. :key="checkIndex1"
  3513. :label="checkIndex1"
  3514. :disabled="isAnswer"
  3515. class="redioStyle"
  3516. ><span v-html="item2"></span>
  3517. </el-checkbox>
  3518. </el-checkbox-group>
  3519. </div>
  3520. </div>
  3521. </div>
  3522. </div>
  3523. </div>
  3524. <span slot="footer" class="dialog-footer">
  3525. <el-button @click="dialogVisible5 = false" v-show="noteName == ''">取 消</el-button>
  3526. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''">确 定</el-button>
  3527. </span>
  3528. </el-dialog>
  3529. <el-dialog :title="noteName != '' ? noteName : '查看问卷'" :visible.sync="dialogVisible5Teacher" :append-to-body="true"
  3530. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3531. <div>
  3532. <div class="w_name">
  3533. 学生姓名:<span>{{ sStudent.student }}</span>
  3534. </div>
  3535. <div class="a_add_title" style="
  3536. display: flex;
  3537. flex-direction: row;
  3538. align-items: center;
  3539. justify-content: center;
  3540. ">
  3541. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3542. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  3543. </div>
  3544. <div class="a_addBox">
  3545. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3546. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3547. <div class="a_add_head">
  3548. <div style="display: flex">
  3549. {{ index1 + 1 + "、" }}
  3550. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  3551. </div>
  3552. <img v-if="askJson.askJson[index1].img" :src="askJson.askJson[index1].img"
  3553. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3554. </div>
  3555. <div class="a_add_body">
  3556. <div class="a_add_input">
  3557. <el-radio-group
  3558. v-model="radio[index1]"
  3559. v-if="
  3560. askJson.askJson[index1].type == '1' ||
  3561. !askJson.askJson[index1].type
  3562. "
  3563. >
  3564. <el-radio
  3565. v-for="(item2, checkIndex) in askJson.askJson[index1]
  3566. .checkList"
  3567. :key="checkIndex"
  3568. :label="checkIndex"
  3569. :disabled="isAnswer"
  3570. class="redioStyle"
  3571. ><span v-html="item2"></span
  3572. ></el-radio>
  3573. </el-radio-group>
  3574. <el-checkbox-group
  3575. v-model="radio[index1]"
  3576. v-if="askJson.askJson[index1].type == '2'"
  3577. >
  3578. <el-checkbox
  3579. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  3580. .checkList"
  3581. :key="checkIndex1"
  3582. :label="checkIndex1"
  3583. :disabled="isAnswer"
  3584. class="redioStyle"
  3585. ><span v-html="item2"></span>
  3586. </el-checkbox>
  3587. </el-checkbox-group>
  3588. </div>
  3589. </div>
  3590. </div>
  3591. </div>
  3592. </div>
  3593. <span slot="footer" class="dialog-footer">
  3594. <el-button @click="dialogVisible5Teacher = false" v-show="noteName == ''">取 消</el-button>
  3595. <el-button type="primary" @click="addStudentAskTeacher" v-show="noteName == ''">确 定</el-button>
  3596. </span>
  3597. </el-dialog>
  3598. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoice" :append-to-body="true"
  3599. width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3600. <div>
  3601. <div class="a_addBox">
  3602. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3603. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3604. <div class="a_add_head">
  3605. <div style="display: flex">
  3606. {{ index1 + 1 + "、" }}
  3607. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3608. (单选题)
  3609. </div>
  3610. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3611. (多选题)
  3612. </div>
  3613. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3614. </div>
  3615. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3616. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3617. </div>
  3618. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3619. testJson.testJson[index1].timuList.length
  3620. ">
  3621. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3622. @click.stop="previewImg(timg.src)">
  3623. <img :src="timg.src" alt="" />
  3624. </div>
  3625. </div>
  3626. <div class="a_add_body">
  3627. <div class="a_add_input">
  3628. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3629. <div class="radioBox">
  3630. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3631. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3632. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3633. <div class="inImg" @click.stop="previewImg(item2.src)">
  3634. <img :src="item2.src" alt="" />
  3635. </div>
  3636. </div>
  3637. <span v-else v-html="item2"></span>
  3638. </el-radio>
  3639. </div>
  3640. </el-radio-group>
  3641. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3642. <div class="radioBox">
  3643. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3644. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3645. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3646. <div class="inImg" @click.stop="previewImg(item2.src)">
  3647. <img :src="item2.src" alt="" />
  3648. </div>
  3649. </div>
  3650. <span v-else v-html="item2"></span>
  3651. </el-checkbox>
  3652. </div>
  3653. </el-checkbox-group>
  3654. </div>
  3655. </div>
  3656. </div>
  3657. </div>
  3658. </div>
  3659. <span slot="footer" class="dialog-footer">
  3660. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''">取 消</el-button>
  3661. <el-button type="primary" @click="addStudentTest" v-show="noteName == ''">确 定</el-button>
  3662. </span>
  3663. </el-dialog>
  3664. <el-dialog :title="noteName != '' ? noteName : '查看选择题'" :visible.sync="dialogVisibleChoiceTeacher"
  3665. :append-to-body="true" width="1000px" :before-close="handleClose" class="dialog_diy dialog_diy3">
  3666. <div>
  3667. <div class="w_name">
  3668. 学生姓名:<span>{{ sStudent.student }}</span>
  3669. </div>
  3670. <div class="a_addBox">
  3671. <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
  3672. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3673. <div class="a_add_head">
  3674. <div style="display: flex">
  3675. {{ index1 + 1 + "、" }}
  3676. <div v-if="testJson.testJson[index1].type == '1'" style="margin-right: 5px">
  3677. (单选题)
  3678. </div>
  3679. <div v-if="testJson.testJson[index1].type == '2'" style="margin-right: 5px">
  3680. (多选题)
  3681. </div>
  3682. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  3683. </div>
  3684. <img v-if="testJson.testJson[index1].img" :src="testJson.testJson[index1].img"
  3685. style="height: 300px; margin-top: 10px; max-width: 100%" />
  3686. </div>
  3687. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3688. testJson.testJson[index1].timuList.length
  3689. ">
  3690. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3691. @click.stop="previewImg(timg.src)">
  3692. <img :src="timg.src" alt="" />
  3693. </div>
  3694. </div>
  3695. <div class="a_add_body">
  3696. <div class="a_add_input">
  3697. <el-radio-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '1'">
  3698. <div class="radioBox">
  3699. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3700. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3701. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3702. <div class="inImg" @click.stop="previewImg(item2.src)">
  3703. <img :src="item2.src" alt="" />
  3704. </div>
  3705. </div>
  3706. <span v-else v-html="item2"></span>
  3707. </el-radio>
  3708. </div>
  3709. </el-radio-group>
  3710. <el-checkbox-group v-model="radio[index1]" v-if="testJson.testJson[index1].type == '2'">
  3711. <div class="radioBox">
  3712. <el-checkbox v-for="(item2, checkIndex) in testJson.testJson[index1]
  3713. .checkList" :key="checkIndex" :label="checkIndex" :disabled="isAnswer" class="redioStyle">
  3714. <div style="margin-right: 10px" v-if="item2 && item2.imgType && item2.imgType == 1">
  3715. <div class="inImg" @click.stop="previewImg(item2.src)">
  3716. <img :src="item2.src" alt="" />
  3717. </div>
  3718. </div>
  3719. <span v-else v-html="item2"></span>
  3720. </el-checkbox>
  3721. </div>
  3722. </el-checkbox-group>
  3723. </div>
  3724. </div>
  3725. </div>
  3726. </div>
  3727. </div>
  3728. <span slot="footer" class="dialog-footer">
  3729. <el-button @click="dialogVisibleChoiceTeacher = false" v-show="noteName == ''">取 消</el-button>
  3730. <el-button type="primary" @click="addStudentTestTeacher" v-show="noteName == ''">确 定</el-button>
  3731. </span>
  3732. </el-dialog>
  3733. <el-dialog title="查看富文本" :visible.sync="dialogVisible1" :append-to-body="true" width="500px"
  3734. :before-close="handleClose" class="dialog_diy textCss">
  3735. <el-form style="font-size: 20px">
  3736. <el-form-item label="文本标题" class="textTitle">
  3737. <div style="font-size: 20px">{{ text.name }}</div>
  3738. </el-form-item>
  3739. <div>富文本内容</div>
  3740. <div v-html="text.url" style="font-size: 18px; padding: 40px 0 0 0"></div>
  3741. </el-form>
  3742. <span slot="footer" class="dialog-footer">
  3743. <el-button type="primary" @click="dialogVisible1 = false">确定</el-button>
  3744. </span>
  3745. </el-dialog>
  3746. <el-dialog title="文件预览" :visible.sync="dialogVisible3" width="50%" :before-close="handleClose" class="dialog_diy"
  3747. :class="{ fullStyle: full }">
  3748. <div slot="title" class="header-title">
  3749. <div style="color: #fff">文件预览</div>
  3750. <div style="position: absolute; top: 19px; right: 50px">
  3751. <img src="../../assets/full.png" style="height: 16px; cursor: pointer" alt="" @click="fullTools" />
  3752. </div>
  3753. </div>
  3754. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3755. :class="{ fullStyle: full }"></pdf>
  3756. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3757. </el-dialog>
  3758. <el-dialog title="文件预览" :visible.sync="dialogVisible6" width="50%" :before-close="handleClose" class="dialog_diy">
  3759. <iframe :src="pptImgUrl1" frameborder="0" width="100%" height="600"></iframe>
  3760. </el-dialog>
  3761. <el-dialog title="提示" :visible.sync="dialogVisible4" :append-to-body="true" width="800px" :before-close="handleClose"
  3762. class="dialog_diy notice">
  3763. <div>此功能暂未开放!</div>
  3764. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  3765. </el-dialog>
  3766. <el-dialog title="问答" :visible.sync="answerDialogVisible" :append-to-body="true" width="800px"
  3767. :before-close="handleClose" class="dialog_diy">
  3768. <div>
  3769. <div style="
  3770. display: flex;
  3771. flex-wrap: nowrap;
  3772. flex-direction: column;
  3773. position: relative;
  3774. ">
  3775. <div class="queTop" style="padding: 20px 0 20px 0">
  3776. <div class="question">
  3777. <img src="../../assets/icon/question.png" alt />
  3778. </div>
  3779. <div class="queTitle">
  3780. <div style="width: 90px; min-width: 90px">提问:</div>
  3781. <div>{{ answerQ }}</div>
  3782. </div>
  3783. </div>
  3784. <div class="ediBottom">
  3785. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  3786. v-model="questionAnswer"></textarea>
  3787. </div>
  3788. </div>
  3789. </div>
  3790. <div slot="footer">
  3791. <el-button @click="answerDialogVisible = false">取 消</el-button>
  3792. <el-button type="primary" @click="addQuestion">提 交</el-button>
  3793. </div>
  3794. </el-dialog>
  3795. <el-dialog title="倒计时" :visible.sync="timeDialogVisible" :append-to-body="true" width="800px"
  3796. :before-close="handleClose" class="dialog_diy">
  3797. <div>
  3798. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  3799. </div>
  3800. <div slot="footer">
  3801. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  3802. </div>
  3803. </el-dialog>
  3804. <el-dialog title="权限设置" :visible.sync="juriVisible" :append-to-body="true" width="400px" :before-close="handleClose"
  3805. class="dialog_diy">
  3806. <div>
  3807. <div class="open_box">
  3808. <div class="switch_box">
  3809. <span>允许学生查看所有作业</span>
  3810. <el-switch v-model="sIsOpen" active-text="" class="switchCss" @change="updateSLook"></el-switch>
  3811. </div>
  3812. <div class="switch_box" v-if="courseDetail.userid == userid ||
  3813. (courseDetail.course_teacher &&
  3814. courseDetail.course_teacher.indexOf(userid) != -1)
  3815. ">
  3816. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  3817. <span>禁止学生查看所有阶段</span>
  3818. <el-switch v-model="IsLookOpen" active-text="" class="switchCss" @change="updateLookOpen"></el-switch>
  3819. </div>
  3820. <div class="switch_box" v-if="courseDetail.userid == userid">
  3821. <span>开启跟随模式</span>
  3822. <el-switch v-model="IsFollow" active-text="" class="switchCss" @change="updateFollow"></el-switch>
  3823. </div>
  3824. </div>
  3825. </div>
  3826. <div slot="footer">
  3827. <el-button style="background: #409efe; color: #fff" @click="juriVisible = false">关 闭</el-button>
  3828. </div>
  3829. </el-dialog>
  3830. <el-dialog title="查看视频" :visible.sync="videoVisible" :append-to-body="true" width="1000px" :before-close="handleClose"
  3831. class="dialog_diy1">
  3832. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  3833. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3834. @play="onPlayerPlay($event)" style="width: 100%; height: 100%"></video-player>
  3835. </div>
  3836. <div slot="footer">
  3837. <el-button style="background: #409efe; color: #fff"
  3838. @click="(videoVisible = false), (videoDetail.sources[0].src = '')">
  3839. 关 闭</el-button>
  3840. </div>
  3841. </el-dialog>
  3842. <el-dialog title="查看详情" :visible.sync="commentDialogVisible" :append-to-body="true" width="800px"
  3843. :before-close="handleClose" class="dialog_diy">
  3844. <div class="commentTop">
  3845. <div class="studentDetail">
  3846. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  3847. <div class="nameAndTime">
  3848. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  3849. <div>{{ commentDetail.time }}</div>
  3850. </div>
  3851. <div class="returnBtn" style="margin-left: auto; width: 80px" v-if="commentDetail.works &&
  3852. commentDetail.type == 0 &&
  3853. (tType == 1 || tType == 4)
  3854. " @click="showPicturePaint(
  3855. commentDetail.img ? commentDetail.img : commentDetail.works
  3856. )
  3857. ">
  3858. 教师批注
  3859. </div>
  3860. </div>
  3861. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  3862. {{ JSON.parse(commentDetail.works)[0].answer }}
  3863. </div>
  3864. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  3865. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3866. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  3867. :class="{ fullStyle: full }"></pdf>
  3868. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  3869. </div>
  3870. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  3871. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" style="right: 105px" />
  3872. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  3873. </div>
  3874. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  3875. <img src="../../assets/teacherWork.png" v-if="commentDetail.ateacher" class="w_teachert" />
  3876. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  3877. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  3878. </div>
  3879. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 10">
  3880. <div class="cont" v-html="commentDetail.works.text"></div>
  3881. </div>
  3882. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  3883. @click="downloadFile(commentDetail.works)">
  3884. <img src="../../assets/icon/codeFile.png" />
  3885. <div>点击下载文件</div>
  3886. </div>
  3887. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  3888. <div v-html="JSON.parse(commentDetail.works).text"></div>
  3889. </div>
  3890. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 4">
  3891. <div class="evalCss">
  3892. <div class="nav">请选择星星进行评分</div>
  3893. <div class="middleBox" v-if="eScore.eStar">
  3894. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  3895. <div class="nameAndrate">
  3896. <div>{{ e.value }}</div>
  3897. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  3898. </div>
  3899. <div v-if="e.detail">{{ e.detail }}</div>
  3900. </div>
  3901. <div class="bz">
  3902. <textarea disabled rows="4" class="pj" style="
  3903. padding: 10px 5px;
  3904. width: 70%;
  3905. background: #f7f6f9;
  3906. font-size: 14px;
  3907. text-indent: 10px;
  3908. color: #000;
  3909. " cols v-model="eScore.eBzText"
  3910. placeholder="请输入评价内容..."></textarea>
  3911. </div>
  3912. </div>
  3913. </div>
  3914. </div>
  3915. <div class="comment">
  3916. <div class="commentList">
  3917. <div class="commentImg">
  3918. <img @click="isLikes(
  3919. commentDetail.wid,
  3920. userid,
  3921. 1,
  3922. null,
  3923. commentDetail.isLikes
  3924. )
  3925. " :src="commentDetail.isLikes == true ? likes : noLikes" alt="" />
  3926. </div>
  3927. <div>{{ commentDetail.likesCount }}</div>
  3928. </div>
  3929. <div class="commentList">
  3930. <div class="commentImg">
  3931. <img src="../../assets/icon/comment/comment.png" alt="" />
  3932. </div>
  3933. <div>{{ commentDetail.commentCount }}</div>
  3934. </div>
  3935. </div>
  3936. <div class="drawPBox" v-if="commentDetail.img">
  3937. <span>教师批注</span>
  3938. <img :src="commentDetail.img" alt="" @click="previewImg(commentDetail.img)" />
  3939. <span class="deleteImg" v-if="tType == 1 || tType == 4" @click.stop="deletePicturePaint(commentDetail.wid)"
  3940. style="
  3941. font-size: 14px;
  3942. width: auto !important;
  3943. color: #b4b4b4;
  3944. top: unset;
  3945. bottom: 0;
  3946. border: none;
  3947. padding: 0;
  3948. height: auto !important;
  3949. margin: 0;
  3950. ">删除</span>
  3951. </div>
  3952. </div>
  3953. <div class="commentBox">
  3954. <div class="pl">评论:</div>
  3955. <div style="max-height: 200px; overflow: auto">
  3956. <div v-if="commentDetail.commentJson && commentDetail.commentJson.length" style="padding: 10px 0 0 0">
  3957. <div class="studentDetail" style="padding-top: 10px" v-for="(co, coIndex) in commentDetail.commentJson"
  3958. :key="coIndex">
  3959. <div class="tx" style="min-width: 50px">
  3960. <img src="../../assets/avatar.png" alt="" />
  3961. </div>
  3962. <div class="plPerson">
  3963. <div class="plName">
  3964. <div>{{ co.commentPeople }}</div>
  3965. <div style="margin-left: 5px">
  3966. {{ co.commentTime }}
  3967. </div>
  3968. <div class="deleteComment" v-if="userid == co.userid" @click="deleteComment(co.wid)">删除</div>
  3969. </div>
  3970. <div class="plContent">{{ co.commentText }}</div>
  3971. </div>
  3972. </div>
  3973. </div>
  3974. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  3975. </div>
  3976. </div>
  3977. <div style="margin-top: 10px">
  3978. <div class="displayBox">
  3979. <div style="
  3980. color: #556db4;
  3981. font-size: 14px;
  3982. font-weight: bold;
  3983. padding-bottom: 10px;
  3984. ">
  3985. 评价
  3986. </div>
  3987. <div class="easy_comment" v-if="false">
  3988. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
  3989. {{ p }}
  3990. </div>
  3991. </div>
  3992. </div>
  3993. <div>
  3994. <textarea rows="3" class="pj" style="padding: 10px 5px" cols v-model="commentText"
  3995. placeholder="请输入对该学生的评价"></textarea>
  3996. </div>
  3997. </div>
  3998. <div slot="footer">
  3999. <el-button @click="(commentDialogVisible = false),
  4000. (commentIndexJson = {}),
  4001. videoDetail.sources && videoDetail.sources[0]
  4002. ? (videoDetail.sources[0].src = '')
  4003. : ''
  4004. ">取 消</el-button>
  4005. <el-button type="primary" @click="addComment(commentDetail.wid, userid, 2)">确 定</el-button>
  4006. </div>
  4007. </el-dialog>
  4008. <el-dialog title="查看文档" :visible.sync="fullDialogVisible" :append-to-body="true" width="100%"
  4009. :before-close="handleClose" :show-close="false" class="dialog_diy full_diy" :class="{ full_diy2: fulltype == 3 }">
  4010. <div slot="title" class="header-title">
  4011. <div style="color: #fff">查看文档</div>
  4012. <div @click="fullDialogVisible = false" style="
  4013. cursor: pointer;
  4014. position: absolute;
  4015. top: 20px;
  4016. right: 20px;
  4017. color: #fff;
  4018. ">
  4019. 退出全屏
  4020. </div>
  4021. </div>
  4022. <div style="height: 100%">
  4023. <div class="wheel"
  4024. v-if="fullUrl.indexOf('https://view.officeapps.live.com/op/view.aspx?src=') != -1 && fulltype == 2"
  4025. style="width: 95%; margin: 0 auto">
  4026. <iframe style="width: 100%; height: 100%; border: none" :src="fullUrl"></iframe>
  4027. </div>
  4028. <iframe v-else-if="fulltype == 2" style="width: 100%; height: 100%; border: none" :src="fullUrl"
  4029. security="restricted"
  4030. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
  4031. <pdf v-else-if="fulltype == 3" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
  4032. <div class="wheel" v-if="fulltype == 1" style="
  4033. box-shadow: 0 0 6px 1px #f2f2f2;
  4034. width: 100%;
  4035. background: #f1f1f1;
  4036. ">
  4037. <div class="title" style="width: 100%; box-sizing: border-box">
  4038. 查看文档
  4039. </div>
  4040. <el-form class="textBox" style="height: 90%">
  4041. <el-form-item class="textTitle">
  4042. <div style="font-size: 22px">
  4043. {{ fullUrl.name }}
  4044. </div>
  4045. </el-form-item>
  4046. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  4047. <div v-html="fullUrl.url" class="textContent" style="height: auto"></div>
  4048. </el-form>
  4049. </div>
  4050. </div>
  4051. <!-- <div slot="footer">
  4052. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  4053. </div> -->
  4054. </el-dialog>
  4055. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisible" :append-to-body="true" width="800px"
  4056. :before-close="handleClose" class="dialog_diy">
  4057. <div class="evalCss">
  4058. <div class="nav">请选择星星进行评分</div>
  4059. <div class="middleBox" v-if="eScore.eStar">
  4060. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4061. <div class="nameAndrate">
  4062. <div>{{ e.value }}</div>
  4063. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4064. </div>
  4065. <div v-if="e.detail">{{ e.detail }}</div>
  4066. </div>
  4067. <div class="easy_comment" v-if="false">
  4068. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4069. {{ p }}
  4070. </div>
  4071. </div>
  4072. <div class="bz">
  4073. <textarea :disabled="isStar" rows="4" class="pj" style="
  4074. padding: 10px 5px;
  4075. width: 70%;
  4076. background: #f7f6f9;
  4077. font-size: 14px;
  4078. text-indent: 10px;
  4079. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4080. </div>
  4081. </div>
  4082. </div>
  4083. <div slot="footer">
  4084. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  4085. <el-button type="primary" @click="addBzWorks" v-if="!isStar">确 定</el-button>
  4086. </div>
  4087. </el-dialog>
  4088. <el-dialog title="个人评价" :visible.sync="studentEvalDialogVisibleTeacher" :append-to-body="true" width="800px"
  4089. :before-close="handleClose" class="dialog_diy">
  4090. <div class="w_name">
  4091. 学生姓名:<span>{{ sStudent.student }}</span>
  4092. </div>
  4093. <div class="evalCss">
  4094. <div class="nav">请选择星星进行评分</div>
  4095. <div class="middleBox" v-if="eScore.eStar">
  4096. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  4097. <div class="nameAndrate">
  4098. <div>{{ e.value }}</div>
  4099. <el-rate v-model="eScore.eStar[eIndex]" :disabled="isStar"></el-rate>
  4100. </div>
  4101. <div v-if="e.detail">{{ e.detail }}</div>
  4102. </div>
  4103. <div class="easy_comment" v-if="false">
  4104. <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
  4105. {{ p }}
  4106. </div>
  4107. </div>
  4108. <div class="bz">
  4109. <textarea :disabled="isStar" rows="4" class="pj" style="
  4110. padding: 10px 5px;
  4111. width: 70%;
  4112. background: #f7f6f9;
  4113. font-size: 14px;
  4114. text-indent: 10px;
  4115. " cols v-model="eScore.eBzText" placeholder="请输入评价内容..."></textarea>
  4116. </div>
  4117. </div>
  4118. </div>
  4119. <div slot="footer">
  4120. <el-button @click="studentEvalDialogVisibleTeacher = false">取 消</el-button>
  4121. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar">确 定</el-button>
  4122. </div>
  4123. </el-dialog>
  4124. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="90%"
  4125. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4126. <div v-if="selectJson">
  4127. <div class="select_box2">
  4128. <div class="select_box2_title">
  4129. <div>选择填空</div>
  4130. <div>请选择对应的答案进行答题!</div>
  4131. </div>
  4132. <div class="select_box2_box">
  4133. <div class="select_box2_img">
  4134. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4135. </div>
  4136. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4137. <div style="padding-top: 15px">
  4138. <div class="select_answer_title" v-if="isSelect">
  4139. {{ selectAnswer.stu }}
  4140. </div>
  4141. <div class="select_answer_title" v-else>
  4142. 根据题目选择对应答案
  4143. </div>
  4144. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4145. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4146. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4147. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4148. </el-option>
  4149. </el-select>
  4150. </div>
  4151. </div>
  4152. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4153. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4154. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4155. 回答正确
  4156. </div>
  4157. <div v-else>回答错误</div>
  4158. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4159. 正确答案:
  4160. </div>
  4161. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4162. ">
  4163. {{ selectJson.select[a] }}
  4164. </div>
  4165. </div>
  4166. </div>
  4167. </div>
  4168. <div class="upAnswerCss">
  4169. <el-button type="primary" @click="addSelectAnswer" v-if="!isSelect">提交答案</el-button>
  4170. </div>
  4171. </div>
  4172. </div>
  4173. </div>
  4174. </el-dialog>
  4175. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelectTeacher" :append-to-body="true" width="90%"
  4176. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4177. <div v-if="selectJson">
  4178. <div class="w_name">
  4179. 学生姓名:<span>{{ sStudent.student }}</span>
  4180. </div>
  4181. <div class="select_box2">
  4182. <div class="select_box2_title">
  4183. <div>选择填空</div>
  4184. <div>请选择对应的答案进行答题!</div>
  4185. </div>
  4186. <div class="select_box2_box">
  4187. <div class="select_box2_img">
  4188. <img :src="selectJson.url" @click="previewImg(selectJson.url)" alt="" />
  4189. </div>
  4190. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  4191. <div style="padding-top: 15px">
  4192. <div class="select_answer_title" v-if="isSelect">
  4193. {{ selectAnswer.stu }}
  4194. </div>
  4195. <div class="select_answer_title" v-else>
  4196. 根据题目选择对应答案
  4197. </div>
  4198. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  4199. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  4200. <el-select :disabled="isSelect" v-model="selectAnswer.answer[checkIndex]" placeholder="请选择正确答案">
  4201. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  4202. </el-option>
  4203. </el-select>
  4204. </div>
  4205. </div>
  4206. <div class="rightAnswerCss" v-if="isSelect && (tType == 1 || tType == 4)">
  4207. <div v-for="(a, aIndex) in selectJson.answer" :key="aIndex" class="rightAnswer">
  4208. <div v-if="selectAnswer.answer[aIndex] === a" style="color: #767de1">
  4209. 回答正确
  4210. </div>
  4211. <div v-else>回答错误</div>
  4212. <div style="margin-left: 10px" v-if="selectAnswer.answer[aIndex] !== a">
  4213. 正确答案:
  4214. </div>
  4215. <div :class="selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  4216. ">
  4217. {{ selectJson.select[a] }}
  4218. </div>
  4219. </div>
  4220. </div>
  4221. </div>
  4222. <div class="upAnswerCss">
  4223. <el-button type="primary" @click="addSelectAnswerTeacher" v-if="!isSelect">提交答案</el-button>
  4224. </div>
  4225. </div>
  4226. </div>
  4227. </div>
  4228. </el-dialog>
  4229. <el-dialog title="教师评分" :visible.sync="dialogVisibleScore" :append-to-body="true" width="800px"
  4230. :before-close="handleClose" class="dialog_diy">
  4231. <div>
  4232. <div class="studentDetail">
  4233. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  4234. <div class="nameAndTime">
  4235. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  4236. <div>{{ commentDetail.time }}</div>
  4237. </div>
  4238. </div>
  4239. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 2">
  4240. {{ JSON.parse(commentDetail.works)[0].answer }}
  4241. </div>
  4242. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 1">
  4243. <pdf v-if="showPDF" :pdfUrl="pptImgUrl" style="width: 100%; height: 520px; overflow: auto"
  4244. :class="{ fullStyle: full }"></pdf>
  4245. <iframe v-else :src="pptImgUrl" frameborder="0" width="100%" height="600" :class="{ fullStyle: full }"></iframe>
  4246. </div>
  4247. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 0">
  4248. <img :src="commentDetail.works" alt="" @click="previewImg(commentDetail.works)" />
  4249. </div>
  4250. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 3">
  4251. <video-player class="video-player vjs-custom-skin" :playsinline="true" :options="videoDetail"
  4252. @play="onPlayerPlay($event)" style="width: 90%; height: 100%; margin: 0 0 0 30px"></video-player>
  4253. </div>
  4254. <div class="worksAnswer codeFileBox" v-if="commentDetail.works && commentDetail.type == 12"
  4255. @click="downloadFile(commentDetail.works)">
  4256. <img src="../../assets/icon/codeFile.png" />
  4257. <div>点击下载文件</div>
  4258. </div>
  4259. <div class="worksAnswer" v-if="commentDetail.works && commentDetail.type == 13">
  4260. <div v-html="JSON.parse(commentDetail.works).text"></div>
  4261. </div>
  4262. <div class="scoreBox">
  4263. <span class="t">请输入分数</span>
  4264. <el-input-number :disabled="courseDetail.userid != userid" v-model="wScore" :controls="false" :min="0"
  4265. :max="100"></el-input-number>
  4266. </div>
  4267. <div class="scoreDetailBox">
  4268. <span class="t">评分评论</span>
  4269. <el-input type="textarea" :rows="5" :disabled="courseDetail.userid != userid" resize="none"
  4270. v-model="scoreDetail" placeholder="请输入对学生的评价">
  4271. </el-input>
  4272. </div>
  4273. </div>
  4274. <span slot="footer" class="dialog-footer">
  4275. <el-button @click="(dialogVisibleScore = false),
  4276. (commentIndexJson = {}),
  4277. videoDetail.sources && videoDetail.sources[0]
  4278. ? (videoDetail.sources[0].src = '')
  4279. : ''
  4280. ">取 消</el-button>
  4281. <el-button type="primary" v-if="courseDetail.userid == userid" @click="scoreWork(commentDetail.wid)">确 定
  4282. </el-button>
  4283. </span>
  4284. </el-dialog>
  4285. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  4286. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4287. <div>
  4288. <div class="sentenBox">
  4289. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4290. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4291. <div class="cardList" v-if="st.chooseSenList">
  4292. <div class="cardBox">
  4293. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4294. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4295. <div :class="{
  4296. isCard: r,
  4297. isChooseCard: r == '' || r == undefined,
  4298. }">
  4299. <div>{{ r }}</div>
  4300. </div>
  4301. </el-tooltip>
  4302. <div :class="{
  4303. isCard: r,
  4304. isChooseCard: r == '' || r == undefined,
  4305. }" v-else>
  4306. <div>{{ r }}</div>
  4307. </div>
  4308. </div>
  4309. </div>
  4310. </div>
  4311. <div class="cardList" v-if="st.addChangeSen">
  4312. <div class="cardBox">
  4313. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4314. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4315. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4316. <div>{{ s }}</div>
  4317. </div>
  4318. </el-tooltip>
  4319. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4320. <div>{{ s }}</div>
  4321. </div>
  4322. </div>
  4323. </div>
  4324. </div>
  4325. </div>
  4326. </div>
  4327. </div>
  4328. <span slot="footer" class="dialog-footer">
  4329. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  4330. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  4331. </span>
  4332. </el-dialog>
  4333. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentenceTeacher" :append-to-body="true" width="1000px"
  4334. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4335. <div>
  4336. <div class="w_name">
  4337. 学生姓名:<span>{{ sStudent.student }}</span>
  4338. </div>
  4339. <div class="sentenBox">
  4340. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  4341. <div style="padding: 15px 0 10px 20px">请选择正确顺序</div>
  4342. <div class="cardList" v-if="st.chooseSenList">
  4343. <div class="cardBox">
  4344. <div v-for="(r, rIndex) in st.chooseSenList" :key="rIndex" @click="returnCard(r, stIndex, rIndex)">
  4345. <el-tooltip class="item" effect="light" :content="r" placement="top" v-if="r != '' && r != undefined">
  4346. <div :class="{
  4347. isCard: r,
  4348. isChooseCard: r == '' || r == undefined,
  4349. }">
  4350. <div>{{ r }}</div>
  4351. </div>
  4352. </el-tooltip>
  4353. <div :class="{
  4354. isCard: r,
  4355. isChooseCard: r == '' || r == undefined,
  4356. }" v-else>
  4357. <div>{{ r }}</div>
  4358. </div>
  4359. </div>
  4360. </div>
  4361. </div>
  4362. <div class="cardList" v-if="st.addChangeSen">
  4363. <div class="cardBox">
  4364. <div v-for="(s, sIndex) in st.addChangeSen" :key="sIndex" @click="setRightAnswer(s, stIndex, sIndex)">
  4365. <el-tooltip class="item" effect="light" :content="s" placement="top" v-if="s != '' && s != undefined">
  4366. <div :class="{ noCard: s == '' || s == undefined, isCard: s }">
  4367. <div>{{ s }}</div>
  4368. </div>
  4369. </el-tooltip>
  4370. <div :class="{ noCard: s == '' || s == undefined, isCard: s }" v-else>
  4371. <div>{{ s }}</div>
  4372. </div>
  4373. </div>
  4374. </div>
  4375. </div>
  4376. </div>
  4377. </div>
  4378. </div>
  4379. <span slot="footer" class="dialog-footer">
  4380. <el-button @click="dialogVisibleSentenceTeacher = false">取 消</el-button>
  4381. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  4382. </span>
  4383. </el-dialog>
  4384. <el-dialog title="连词成句" :visible.sync="dialogVisibleSentence1" :append-to-body="true" width="1000px"
  4385. :before-close="handleClose" class="dialog_diy dialog_diy3">
  4386. <div>
  4387. <div class="sentenBox">
  4388. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4389. {{ sentenceList1.stuName }}的作业
  4390. </div>
  4391. <div v-for="(st, stIndex) in sentenceList1" :key="stIndex" style="padding-bottom: 20px">
  4392. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  4393. 第{{ stIndex + 1 }}题
  4394. </div>
  4395. <div class="isWrong">
  4396. <div class="cardList1" v-if="st.chooseSenList">
  4397. <div class="cardBox">
  4398. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  4399. <el-tooltip class="item" effect="light" :content="s" placement="top">
  4400. <div class="isCard">
  4401. <div>{{ s }}</div>
  4402. </div>
  4403. </el-tooltip>
  4404. </div>
  4405. </div>
  4406. <div class="cardAnswerBox">
  4407. 组成句子:{{ st.chooseSenList.join(" ") }}
  4408. </div>
  4409. </div>
  4410. <div class="answerRight isTj" v-if="st.chooseSenList.toString() == st.rightAnswer.toString() &&
  4411. (tType == 1 || tType == 4)
  4412. ">
  4413. <div class="isTjImg">
  4414. <img src="../../assets/icon/conSentences/right.png" alt="" />
  4415. </div>
  4416. <div>回答正确</div>
  4417. </div>
  4418. <div class="answerRight isTj" v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4419. (tType == 1 || tType == 4)
  4420. ">
  4421. <div class="isTjImg">
  4422. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  4423. </div>
  4424. <div>回答错误</div>
  4425. </div>
  4426. </div>
  4427. <div v-if="st.chooseSenList.toString() != st.rightAnswer.toString() &&
  4428. (tType == 1 || tType == 4)
  4429. ">
  4430. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  4431. <div class="cardList" v-if="st.rightAnswer" style="border: none; padding: 10px 0 10px 10px; margin: 0">
  4432. <div class="cardBox">
  4433. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  4434. <el-tooltip class="item" effect="light" :content="r" placement="top">
  4435. <div class="isCard1">
  4436. <div>{{ r }}</div>
  4437. </div>
  4438. </el-tooltip>
  4439. </div>
  4440. </div>
  4441. <div class="cardAnswerBox">
  4442. 组成句子:{{ st.rightAnswer.join(" ") }}
  4443. </div>
  4444. </div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. <span slot="footer" class="dialog-footer">
  4450. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  4451. <el-button type="primary" @click="dialogVisibleSentence1 = false">确 定</el-button>
  4452. </span>
  4453. </el-dialog>
  4454. <el-dialog title="提交作业" :visible.sync="dialogVisibleWorks" :append-to-body="true" width="500px"
  4455. :before-close="handleClose" class="dialog_change">
  4456. <div class="marginT">
  4457. <div class="w_name">
  4458. 学生姓名:<span>{{ sStudent.student }}</span>
  4459. </div>
  4460. <div>上传文件</div>
  4461. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4462. <div class="up_photo">
  4463. <img src="../../assets/uploadImg2.png" alt />
  4464. </div>
  4465. <!-- <input
  4466. type="file"
  4467. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4468. style="display: none"
  4469. @change="beforeUpload1($event, 1)"
  4470. /> -->
  4471. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4472. </div>
  4473. <!-- capture="camera" -->
  4474. <div class="chapter_add" style="
  4475. display: flex;
  4476. width: 100%;
  4477. flex-direction: row;
  4478. flex-wrap: wrap;
  4479. justify-content: flex-start;
  4480. padding: 15px 0;
  4481. " v-if="studyJuri[0].cover.length > 0">
  4482. <div class="upCover">
  4483. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4484. <img :src="word" alt v-else-if="fileType == 1" />
  4485. <img :src="video" alt v-else-if="fileType == 2" />
  4486. <img :src="word2" alt v-else-if="fileType == 3" />
  4487. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4488. <div class="deleteWord" @click="clean(1)">
  4489. <img src="../../assets/icon/deleteWorks.png" alt />
  4490. </div>
  4491. </div>
  4492. </div>
  4493. </div>
  4494. <div class="upload_send" @click="addCourseWorksTeacher(taskCount)" v-if="!proVisible">
  4495. 提交
  4496. </div>
  4497. </el-dialog>
  4498. <el-dialog title="问答" :visible.sync="answerDialogVisibleTeacher" :append-to-body="true" width="800px"
  4499. :before-close="handleClose" class="dialog_diy">
  4500. <div>
  4501. <div class="w_name">
  4502. 学生姓名:<span>{{ sStudent.student }}</span>
  4503. </div>
  4504. <div style="
  4505. display: flex;
  4506. flex-wrap: nowrap;
  4507. flex-direction: column;
  4508. position: relative;
  4509. ">
  4510. <div class="queTop" style="padding: 20px 0 20px 0">
  4511. <div class="question">
  4512. <img src="../../assets/icon/question.png" alt />
  4513. </div>
  4514. <div class="queTitle">
  4515. <div style="width: 90px; min-width: 90px">提问:</div>
  4516. <div>{{ answerQ }}</div>
  4517. </div>
  4518. </div>
  4519. <div class="ediBottom">
  4520. <textarea rows="6" class="binfo_input" cols style="width: 95%; height: 120px"
  4521. v-model="questionAnswer"></textarea>
  4522. </div>
  4523. </div>
  4524. </div>
  4525. <div slot="footer">
  4526. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  4527. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  4528. </div>
  4529. </el-dialog>
  4530. <ImgDraw :drawShow="drawShow" @closeDraw="closeDraw" @addImgDraw="addImgDraw" :bg="bg"></ImgDraw>
  4531. <el-dialog title="表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  4532. :before-close="handleClose" class="dialog_diy">
  4533. <el-form>
  4534. <div>表格内容</div>
  4535. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTable"></Table>
  4536. </el-form>
  4537. <span slot="footer" class="dialog-footer">
  4538. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  4539. <el-button type="primary" @click="addTableWorks">确定</el-button>
  4540. </span>
  4541. </el-dialog>
  4542. <el-dialog title="表格" :visible.sync="dialogVisibleTableTeacher" :append-to-body="true" width="95%"
  4543. :before-close="handleClose" class="dialog_diy">
  4544. <el-form>
  4545. <div class="w_name">
  4546. 学生姓名:<span>{{ sStudent.student }}</span>
  4547. </div>
  4548. <div>表格内容</div>
  4549. <Table v-model="tableJson.text" @change="change" v-if="dialogVisibleTableTeacher"></Table>
  4550. </el-form>
  4551. <span slot="footer" class="dialog-footer">
  4552. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  4553. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  4554. </span>
  4555. </el-dialog>
  4556. <el-dialog title="文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="95%" :before-close="handleClose"
  4557. class="dialog_diy">
  4558. <el-form>
  4559. <div>文档内容</div>
  4560. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWord"></editor-bar>
  4561. </el-form>
  4562. <span slot="footer" class="dialog-footer">
  4563. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  4564. <el-button type="primary" @click="addWordWorks">确定</el-button>
  4565. </span>
  4566. </el-dialog>
  4567. <el-dialog title="文档" :visible.sync="dialogVisibleWordTeacher" :append-to-body="true" width="95%"
  4568. :before-close="handleClose" class="dialog_diy">
  4569. <el-form>
  4570. <div class="w_name">
  4571. 学生姓名:<span>{{ sStudent.student }}</span>
  4572. </div>
  4573. <div>文档内容</div>
  4574. <editor-bar v-model="wordJson.text" v-if="dialogVisibleWordTeacher"></editor-bar>
  4575. </el-form>
  4576. <span slot="footer" class="dialog-footer">
  4577. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  4578. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  4579. </span>
  4580. </el-dialog>
  4581. <el-dialog title="表格" :visible.sync="dialogVisibleTable2" :append-to-body="true" width="95%"
  4582. :before-close="handleClose" class="dialog_diy">
  4583. <el-form>
  4584. <div class="cont" v-html="tableJson.text"></div>
  4585. </el-form>
  4586. <span slot="footer" class="dialog-footer">
  4587. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  4588. </span>
  4589. </el-dialog>
  4590. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="95%"
  4591. :before-close="handleClose" class="dialog_diy">
  4592. <div v-if="dialogVisibleGroup">
  4593. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  4594. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  4595. 提示:需要锁定位置,才能点击头像修改座位。
  4596. </div>
  4597. <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  4598. @click="lockChair">
  4599. 锁定位置
  4600. </div>
  4601. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  4602. 解锁位置
  4603. </div>
  4604. <div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
  4605. 分组设置
  4606. </div>
  4607. </div>
  4608. <div>
  4609. <div class="g_d_box" v-if="groupJson.group && groupStudent[toolindex]">
  4610. <div class="g_d_group" v-for="(g, gindex) in groupJson.group" :key="gindex">
  4611. <div class="g_d_group_chair">
  4612. <div v-if="groupJson.number > 1">
  4613. <span :class="{
  4614. isChair:
  4615. groupStudent[toolindex][gindex] &&
  4616. groupStudent[toolindex][gindex][0],
  4617. updateChair:
  4618. courseDetail.userid == userid &&
  4619. groupStudent[toolindex][gindex] &&
  4620. groupStudent[toolindex][gindex][0] &&
  4621. groupJson.islock == 2,
  4622. }"><span class="updateChairBtn" @click="updateGroupChair(
  4623. groupStudent[toolindex][gindex] &&
  4624. groupStudent[toolindex][gindex][0]
  4625. )
  4626. ">修改</span></span><span>{{
  4627. groupStudent[toolindex][gindex] &&
  4628. groupStudent[toolindex][gindex][0]
  4629. ? groupStudent[toolindex][gindex] &&
  4630. groupStudent[toolindex][gindex][0].name
  4631. : "空位置"
  4632. }}</span>
  4633. </div>
  4634. <div v-if="groupJson.number > 4">
  4635. <span :class="{
  4636. isChair:
  4637. groupStudent[toolindex][gindex] &&
  4638. groupStudent[toolindex][gindex][4],
  4639. updateChair:
  4640. courseDetail.userid == userid &&
  4641. groupStudent[toolindex][gindex] &&
  4642. groupStudent[toolindex][gindex][4] &&
  4643. groupJson.islock == 2,
  4644. }"><span class="updateChairBtn" @click="updateGroupChair(
  4645. groupStudent[toolindex][gindex] &&
  4646. groupStudent[toolindex][gindex][4]
  4647. )
  4648. ">修改</span></span><span>{{
  4649. groupStudent[toolindex][gindex] &&
  4650. groupStudent[toolindex][gindex][4]
  4651. ? groupStudent[toolindex][gindex] &&
  4652. groupStudent[toolindex][gindex][4].name
  4653. : "空位置"
  4654. }}</span>
  4655. </div>
  4656. <div v-if="groupJson.number > 8">
  4657. <span :class="{
  4658. isChair:
  4659. groupStudent[toolindex][gindex] &&
  4660. groupStudent[toolindex][gindex][8],
  4661. updateChair:
  4662. courseDetail.userid == userid &&
  4663. groupStudent[toolindex][gindex] &&
  4664. groupStudent[toolindex][gindex][8] &&
  4665. groupJson.islock == 2,
  4666. }"><span class="updateChairBtn" @click="updateGroupChair(
  4667. groupStudent[toolindex][gindex] &&
  4668. groupStudent[toolindex][gindex][8]
  4669. )
  4670. ">修改</span></span><span>{{
  4671. groupStudent[toolindex][gindex] &&
  4672. groupStudent[toolindex][gindex][8]
  4673. ? groupStudent[toolindex][gindex] &&
  4674. groupStudent[toolindex][gindex][8].name
  4675. : "空位置"
  4676. }}</span>
  4677. </div>
  4678. </div>
  4679. <div class="g_d_group_tableBox">
  4680. <div class="g_d_group_chair2">
  4681. <div v-if="groupJson.number > 2">
  4682. <span :class="{
  4683. isChair:
  4684. groupStudent[toolindex][gindex] &&
  4685. groupStudent[toolindex][gindex][2],
  4686. updateChair:
  4687. courseDetail.userid == userid &&
  4688. groupStudent[toolindex][gindex] &&
  4689. groupStudent[toolindex][gindex][2] &&
  4690. groupJson.islock == 2,
  4691. }"><span class="updateChairBtn" @click="updateGroupChair(
  4692. groupStudent[toolindex][gindex] &&
  4693. groupStudent[toolindex][gindex][2]
  4694. )
  4695. ">修改</span></span><span>{{
  4696. groupStudent[toolindex][gindex] &&
  4697. groupStudent[toolindex][gindex][2]
  4698. ? groupStudent[toolindex][gindex] &&
  4699. groupStudent[toolindex][gindex][2].name
  4700. : "空位置"
  4701. }}</span>
  4702. </div>
  4703. <div v-if="groupJson.number > 6">
  4704. <span :class="{
  4705. isChair:
  4706. groupStudent[toolindex][gindex] &&
  4707. groupStudent[toolindex][gindex][6],
  4708. updateChair:
  4709. courseDetail.userid == userid &&
  4710. groupStudent[toolindex][gindex] &&
  4711. groupStudent[toolindex][gindex][6] &&
  4712. groupJson.islock == 2,
  4713. }"><span class="updateChairBtn" @click="updateGroupChair(
  4714. groupStudent[toolindex][gindex] &&
  4715. groupStudent[toolindex][gindex][6]
  4716. )
  4717. ">修改</span></span><span>{{
  4718. groupStudent[toolindex][gindex] &&
  4719. groupStudent[toolindex][gindex][6]
  4720. ? groupStudent[toolindex][gindex] &&
  4721. groupStudent[toolindex][gindex][6].name
  4722. : "空位置"
  4723. }}</span>
  4724. </div>
  4725. </div>
  4726. <div class="g_d_group_table">
  4727. <div>
  4728. {{ g.name }}
  4729. </div>
  4730. <div>
  4731. <div v-if="courseDetail.userid == userid && groupJson.islock == 2
  4732. " @click="deleteGroupChair(gindex)">
  4733. 移除组员
  4734. </div>
  4735. <div @click="selectGroup(gindex)" v-else-if="groupStudentUid[toolindex] &&
  4736. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  4737. ">
  4738. 加入分组
  4739. </div>
  4740. <div @click="exitGroup(
  4741. groupStudent[toolindex][gindex] &&
  4742. groupStudent[toolindex][gindex][
  4743. groupStudentUid[toolindex][gindex].indexOf(userid)
  4744. ].id
  4745. )
  4746. " v-else-if="groupStudentUid[toolindex] &&
  4747. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  4748. ">
  4749. 退出分组
  4750. </div>
  4751. </div>
  4752. </div>
  4753. <div class="g_d_group_chair2">
  4754. <div v-if="groupJson.number > 3">
  4755. <span :class="{
  4756. isChair:
  4757. groupStudent[toolindex][gindex] &&
  4758. groupStudent[toolindex][gindex][3],
  4759. updateChair:
  4760. courseDetail.userid == userid &&
  4761. groupStudent[toolindex][gindex] &&
  4762. groupStudent[toolindex][gindex][3] &&
  4763. groupJson.islock == 2,
  4764. }"><span class="updateChairBtn" @click="updateGroupChair(
  4765. groupStudent[toolindex][gindex] &&
  4766. groupStudent[toolindex][gindex][3]
  4767. )
  4768. ">修改</span></span><span>{{
  4769. groupStudent[toolindex][gindex] &&
  4770. groupStudent[toolindex][gindex][3]
  4771. ? groupStudent[toolindex][gindex] &&
  4772. groupStudent[toolindex][gindex][3].name
  4773. : "空位置"
  4774. }}</span>
  4775. </div>
  4776. <div v-if="groupJson.number > 7">
  4777. <span :class="{
  4778. isChair:
  4779. groupStudent[toolindex][gindex] &&
  4780. groupStudent[toolindex][gindex][7],
  4781. updateChair:
  4782. courseDetail.userid == userid &&
  4783. groupStudent[toolindex][gindex] &&
  4784. groupStudent[toolindex][gindex][7] &&
  4785. groupJson.islock == 2,
  4786. }"><span class="updateChairBtn" @click="updateGroupChair(
  4787. groupStudent[toolindex][gindex] &&
  4788. groupStudent[toolindex][gindex][7]
  4789. )
  4790. ">修改</span></span><span>{{
  4791. groupStudent[toolindex][gindex] &&
  4792. groupStudent[toolindex][gindex][7]
  4793. ? groupStudent[toolindex][gindex] &&
  4794. groupStudent[toolindex][gindex][7].name
  4795. : "空位置"
  4796. }}</span>
  4797. </div>
  4798. </div>
  4799. </div>
  4800. <div class="g_d_group_chair">
  4801. <div v-if="groupJson.number > 1">
  4802. <span :class="{
  4803. isChair:
  4804. groupStudent[toolindex][gindex] &&
  4805. groupStudent[toolindex][gindex][1],
  4806. updateChair:
  4807. courseDetail.userid == userid &&
  4808. groupStudent[toolindex][gindex] &&
  4809. groupStudent[toolindex][gindex][1] &&
  4810. groupJson.islock == 2,
  4811. }"><span class="updateChairBtn" @click="updateGroupChair(
  4812. groupStudent[toolindex][gindex] &&
  4813. groupStudent[toolindex][gindex][1]
  4814. )
  4815. ">修改</span></span><span>{{
  4816. groupStudent[toolindex][gindex] &&
  4817. groupStudent[toolindex][gindex][1]
  4818. ? groupStudent[toolindex][gindex] &&
  4819. groupStudent[toolindex][gindex][1].name
  4820. : "空位置"
  4821. }}</span>
  4822. </div>
  4823. <div v-if="groupJson.number > 5">
  4824. <span :class="{
  4825. isChair:
  4826. groupStudent[toolindex][gindex] &&
  4827. groupStudent[toolindex][gindex][5],
  4828. updateChair:
  4829. courseDetail.userid == userid &&
  4830. groupStudent[toolindex][gindex] &&
  4831. groupStudent[toolindex][gindex][5] &&
  4832. groupJson.islock == 2,
  4833. }"><span class="updateChairBtn" @click="updateGroupChair(
  4834. groupStudent[toolindex][gindex] &&
  4835. groupStudent[toolindex][gindex][5]
  4836. )
  4837. ">修改</span></span><span>{{
  4838. groupStudent[toolindex][gindex] &&
  4839. groupStudent[toolindex][gindex][5]
  4840. ? groupStudent[toolindex][gindex] &&
  4841. groupStudent[toolindex][gindex][5].name
  4842. : "空位置"
  4843. }}</span>
  4844. </div>
  4845. <div v-if="groupJson.number > 9">
  4846. <span :class="{
  4847. isChair:
  4848. groupStudent[toolindex][gindex] &&
  4849. groupStudent[toolindex][gindex][9],
  4850. updateChair:
  4851. courseDetail.userid == userid &&
  4852. groupStudent[toolindex][gindex] &&
  4853. groupStudent[toolindex][gindex][9] &&
  4854. groupJson.islock == 2,
  4855. }"><span class="updateChairBtn" @click="updateGroupChair(
  4856. groupStudent[toolindex][gindex] &&
  4857. groupStudent[toolindex][gindex][9]
  4858. )
  4859. ">修改</span></span><span>{{
  4860. groupStudent[toolindex][gindex] &&
  4861. groupStudent[toolindex][gindex][9]
  4862. ? groupStudent[toolindex][gindex] &&
  4863. groupStudent[toolindex][gindex][9].name
  4864. : "空位置"
  4865. }}</span>
  4866. </div>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. </div>
  4871. </div>
  4872. <span slot="footer" class="dialog-footer">
  4873. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  4874. </span>
  4875. </el-dialog>
  4876. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
  4877. :before-close="handleClose" class="dialog_diy">
  4878. <div class="groupBox">
  4879. <div v-if="groupJson2.group" class="groupContent">
  4880. <div class="groupTitle">请设置小组数量</div>
  4881. <div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
  4882. <span class="groupn">组{{ index + 1 }}名称:</span>
  4883. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4884. <!-- <div class="groupBtn">
  4885. <el-button type="primary" size="small" @click="addGroup(index)">
  4886. 添加</el-button>
  4887. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4888. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  4889. </div> -->
  4890. </div>
  4891. </div>
  4892. <div class="groupContent">
  4893. <div class="groupTitle">请设置每组人数数量</div>
  4894. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4895. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4896. <el-input-number v-model="groupJson2.number" :controls="false" :min="2" :max="10"
  4897. placeholder="2-10人以内"></el-input-number>
  4898. </div>
  4899. </div>
  4900. <span slot="footer" class="dialog-footer">
  4901. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  4902. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  4903. </span>
  4904. </el-dialog>
  4905. <el-dialog title="作业提交" :visible.sync="dialogVisibleGroupWork" :append-to-body="true" width="500px"
  4906. :before-close="handleClose" class="dialog_change">
  4907. <div class="marginT">
  4908. <div>上传文件</div>
  4909. <div class="chapter_add" @click="addImg($event)" v-if="studyJuri[0].cover.length == 0">
  4910. <div class="up_photo">
  4911. <img src="../../assets/icon/uploadImg.png" alt />
  4912. </div>
  4913. <!-- <input
  4914. type="file"
  4915. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  4916. style="display: none"
  4917. @change="beforeUpload1($event, 1)"
  4918. /> -->
  4919. <input type="file" accept="*" style="display: none" @change="beforeUpload1($event, 1)" />
  4920. </div>
  4921. <!-- capture="camera" -->
  4922. <div class="chapter_add" style="
  4923. display: flex;
  4924. width: 100%;
  4925. flex-direction: row;
  4926. flex-wrap: wrap;
  4927. justify-content: flex-start;
  4928. padding: 15px 0;
  4929. " v-if="studyJuri[0].cover.length > 0">
  4930. <div class="upCover">
  4931. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  4932. <img :src="word" alt v-else-if="fileType == 1" />
  4933. <img :src="video" alt v-else-if="fileType == 2" />
  4934. <img :src="word2" alt v-else-if="fileType == 3" />
  4935. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  4936. <div class="deleteWord" @click="clean(1)">
  4937. <img src="../../assets/icon/deleteWorks.png" alt />
  4938. </div>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. <div class="upload_send" @click="addCourseWorks2(taskCount)" v-if="!proVisible">
  4943. 提交
  4944. </div>
  4945. </el-dialog>
  4946. <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
  4947. :before-close="handleClose" class="dialog_diy">
  4948. <div>
  4949. <h2>
  4950. {{ this.updateGroupUser.name }}
  4951. </h2>
  4952. <div style="color: rgb(171 171 171); margin-top: 10px">
  4953. 请选择要进入的分组
  4954. </div>
  4955. <el-radio-group v-model="checkChair">
  4956. <el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray" :label="item.label"
  4957. :key="index">{{ item.name }}</el-radio>
  4958. </el-radio-group>
  4959. </div>
  4960. <span slot="footer" class="dialog-footer">
  4961. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  4962. <el-button type="primary" @click="updateChair">确定</el-button>
  4963. </span>
  4964. </el-dialog>
  4965. <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
  4966. :before-close="handleClose" class="dialog_diy">
  4967. <div>
  4968. <h2>
  4969. {{ this.deleteGroupArray.name }}
  4970. </h2>
  4971. <div style="color: rgb(171 171 171); margin-top: 10px">
  4972. 请选择要删除的组员
  4973. </div>
  4974. <el-checkbox-group v-model="checkDeleteGroup">
  4975. <el-checkbox style="display: block; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
  4976. :label="item.userid" :key="index">{{ item.name }}</el-checkbox>
  4977. </el-checkbox-group>
  4978. </div>
  4979. <span slot="footer" class="dialog-footer">
  4980. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  4981. <el-button type="primary" @click="deleteChair">确定</el-button>
  4982. </span>
  4983. </el-dialog>
  4984. <el-dialog title="批量上传" :visible.sync="dialogVisiblePl" :append-to-body="true" width="700px"
  4985. :before-close="handleClose" class="dialog_change">
  4986. <div class="marginT">
  4987. <div>上传文件</div>
  4988. <div class="plworkBox">
  4989. <div class="chapter_add" style="
  4990. display: flex;
  4991. width: 150px;
  4992. flex-direction: row;
  4993. flex-wrap: wrap;
  4994. justify-content: flex-start;
  4995. margin: 0 10px 10px 0;
  4996. " v-for="(item, index) in plworkFile" :key="index">
  4997. <div class="upCover2">
  4998. <img :src="item.url" alt v-if="item.fileType == 1" />
  4999. <img :src="word" alt v-else-if="item.fileType == 4" />
  5000. <img :src="video" alt v-else />
  5001. <!-- <span class="picName">{{ item.name }}</span> -->
  5002. <!-- <el-input
  5003. v-model="item.username"
  5004. placeholder="请输入学生名字"
  5005. style="margin-top: 10px"
  5006. ></el-input> -->
  5007. <el-select style="margin-top: 10px" v-model="item.username" filterable allow-create placeholder="请选择学生">
  5008. <el-option v-for="item1 in checkUpload" :key="item1.userid"
  5009. :label="item1.name ? item1.name : item1.username" :value="item1.userid">
  5010. </el-option>
  5011. </el-select>
  5012. <div class="deleteWord" @click="clean2(index)">
  5013. <img src="../../assets/icon/deleteWorks.png" alt />
  5014. </div>
  5015. </div>
  5016. </div>
  5017. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  5018. <div class="up_photo2">
  5019. <img src="../../assets/icon/plwork.png" alt />
  5020. <span>点击批量上传文件</span>
  5021. </div>
  5022. <input type="file"
  5023. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  5024. multiple="multiple" style="display: none" @change="beforeUpload3($event, 6)" />
  5025. </div>
  5026. </div>
  5027. </div>
  5028. <!-- capture="camera" -->
  5029. <div class="upload_send" @click="addCourseWorksPl(taskCount)" v-if="!proVisible2">
  5030. 提交
  5031. </div>
  5032. </el-dialog>
  5033. <el-dialog title="修改名称" :visible.sync="dialogVisibleSname" width="500px" :before-close="handleClose"
  5034. class="dialog_diy" center>
  5035. <div style="text-align: center">
  5036. <span class="tian1">名称</span>
  5037. <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  5038. placeholder="请选择学生">
  5039. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  5040. :value="item.userid">
  5041. </el-option>
  5042. </el-select>
  5043. <!-- <el-input
  5044. v-model="worksSName"
  5045. style="width: 250px; margin: 15px 0px"
  5046. ></el-input> -->
  5047. </div>
  5048. <span slot="footer" class="dialog-footer">
  5049. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  5050. <el-button type="primary" @click="updateName">确 定</el-button>
  5051. </span>
  5052. </el-dialog>
  5053. </div>
  5054. </template>
  5055. <script>
  5056. import "../../common/aws-sdk-2.235.1.min.js";
  5057. // import pdf from "../components/pdf3";
  5058. import pdf from "../components/vpdf";
  5059. import AskStatic from "../components/askStatic";
  5060. import AskStatic2 from "../components/askStatic2";
  5061. import AnswerData2 from "../components/answerData2";
  5062. import AnswerData from "../components/answerData";
  5063. import EditorBar from "../tools/wangEnduit.vue";
  5064. import Table from "../tools/table.vue";
  5065. import Time from "../tools/time.vue";
  5066. import Mind from "../tools/jsmind.vue";
  5067. import Sunburst from "../tools/sunburst";
  5068. import SeeBoard from "../tools/seeBoard";
  5069. import * as imageConversion from "image-conversion";
  5070. import Audio from "../components/audio.vue";
  5071. import ImgDraw from "../tools/imgDraw/imgDraw";
  5072. import { Empty } from "element-ui";
  5073. import RecordRTC from "recordrtc";
  5074. export default {
  5075. components: {
  5076. EditorBar,
  5077. Time,
  5078. pdf,
  5079. AskStatic,
  5080. AskStatic2,
  5081. Mind,
  5082. Sunburst,
  5083. SeeBoard,
  5084. AnswerData2,
  5085. AnswerData,
  5086. Audio,
  5087. ImgDraw,
  5088. Table,
  5089. },
  5090. data() {
  5091. return {
  5092. bg: null,
  5093. drawShow: false,
  5094. dialogVisible: false,
  5095. dialogVisiblePl: false,
  5096. commentDialogVisible: false,
  5097. videoVisible: false,
  5098. isStar: false,
  5099. studentEvalDialogVisible: false,
  5100. studentEvalDialogVisibleTeacher: false,
  5101. dialogVisibleSelect: false,
  5102. dialogVisibleSelectTeacher: false,
  5103. dialogVisibleScore: false,
  5104. dialogVisibleSentence: false,
  5105. dialogVisibleSentenceTeacher: false,
  5106. dialogVisibleSentence1: false,
  5107. dialogVisibleWorks: false,
  5108. answerDialogVisibleTeacher: false,
  5109. dialogVisibleTable: false,
  5110. dialogVisibleTableTeacher: false,
  5111. dialogVisibleWord: false,
  5112. dialogVisibleWordTeacher: false,
  5113. dialogVisibleTable2: false,
  5114. dialogVisibleGroupWork: false,
  5115. dialogVisibleUpdateGroup: false,
  5116. dialogVisibleDeleteGroup: false,
  5117. dialogVisibleSname: false,
  5118. worksSName: "",
  5119. classJuri: [],
  5120. uploadStudentJuri: [],
  5121. uploadCid: "",
  5122. snameWid: "",
  5123. sStudent: {},
  5124. sTool: "",
  5125. bzText: "",
  5126. commentDetail: [],
  5127. selectAnswer: [],
  5128. videoDetail: {},
  5129. selectJson: {},
  5130. eScore: { eBzText: "", eStar: [] },
  5131. id: this.$route.query.courseId,
  5132. userid: this.$route.query.userid,
  5133. classId: this.$route.query.cid,
  5134. // courseTypeLine: this.$route.query.type,
  5135. oid: this.$route.query.oid,
  5136. org: this.$route.query.org,
  5137. tType: this.$route.query.tType,
  5138. courseType: this.$route.query.type,
  5139. screenType: this.$route.query.screenType,
  5140. tcid2: this.$route.query.tcid,
  5141. tcid: "",
  5142. pptImgUrl: "",
  5143. pptImgUrl1: "",
  5144. commentText: "",
  5145. full: false,
  5146. sIsOpen: false,
  5147. IsLookOpen: false,
  5148. IsFollow: false,
  5149. pzDialog: false,
  5150. contentDialog: false,
  5151. mlDialog: false,
  5152. type: 1,
  5153. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  5154. sentenceList1: [],
  5155. tableJson: [],
  5156. wordJson: [],
  5157. vedio: [],
  5158. text: [],
  5159. textList: [],
  5160. line: [],
  5161. lineList: [],
  5162. chapTools: [],
  5163. chapToolList: [],
  5164. file: [],
  5165. fileC: [],
  5166. vedioTime: [],
  5167. upToolImg: "",
  5168. preTime: 0,
  5169. rateList: {
  5170. ca: 0,
  5171. },
  5172. rateParams: [],
  5173. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  5174. studyJuri: [
  5175. {
  5176. content: "",
  5177. cover: [],
  5178. upVedio: [],
  5179. upFile: [],
  5180. },
  5181. ],
  5182. plworkFile: [],
  5183. mr: require("../../assets/vedioPic.png"),
  5184. word: require("../../assets/icon/isWord.png"),
  5185. word2: require("../../assets/icon/word2.png"),
  5186. video: require("../../assets/icon/isVideo.png"),
  5187. noLikes: require("../../assets/icon/comment/noLikes.png"),
  5188. likes: require("../../assets/icon/comment/likes.png"),
  5189. scoreImg: require("../../assets/score.png"),
  5190. courseDetail: {},
  5191. isSelect: false,
  5192. chapInfo: [],
  5193. chapInfoList: [],
  5194. taskCount: 0,
  5195. imgList: [],
  5196. noImgList: [],
  5197. pzList: [],
  5198. PlTextList: [
  5199. "Excellent!",
  5200. "nice!",
  5201. "很有创意!",
  5202. "还不错哦~",
  5203. "继续努力哦~",
  5204. ],
  5205. isClickNav: "",
  5206. navId: "",
  5207. playerOptions: {
  5208. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5209. autoplay: false, //如果true,浏览器准备好时开始回放。
  5210. muted: false, // 默认情况下将会消除任何音频。
  5211. loop: false, // 导致视频一结束就重新开始。
  5212. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5213. language: "zh-CN",
  5214. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5215. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5216. sources: [
  5217. {
  5218. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5219. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5220. },
  5221. ],
  5222. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5223. // poster: dataRes.imgUrl, //你的封面地址
  5224. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5225. controlBar: {
  5226. timeDivider: true, //当前时间和持续时间的分隔符
  5227. durationDisplay: true, //显示持续时间
  5228. remainingTimeDisplay: false, //是否显示剩余时间功能
  5229. fullscreenToggle: true, //全屏按钮
  5230. },
  5231. },
  5232. playerOptions1: {
  5233. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  5234. autoplay: false, //如果true,浏览器准备好时开始回放。
  5235. muted: false, // 默认情况下将会消除任何音频。
  5236. loop: false, // 导致视频一结束就重新开始。
  5237. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  5238. language: "zh-CN",
  5239. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  5240. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  5241. sources: [
  5242. {
  5243. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  5244. src: "", //url地址require("../../../../assets/media/aaa.mp4")
  5245. },
  5246. ],
  5247. // poster: require("../../../../assets/tu31.png"), //你的封面地址
  5248. // poster: dataRes.imgUrl, //你的封面地址
  5249. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  5250. controlBar: {
  5251. timeDivider: true, //当前时间和持续时间的分隔符
  5252. durationDisplay: true, //显示持续时间
  5253. remainingTimeDisplay: false, //是否显示剩余时间功能
  5254. fullscreenToggle: true, //全屏按钮
  5255. },
  5256. },
  5257. playerO: {},
  5258. noneBtnImg: false,
  5259. proVisible: false,
  5260. proVisible2: false,
  5261. progress: 0,
  5262. isFinishSize: 0,
  5263. isAllSize: 0,
  5264. questionAnswer: "",
  5265. answerQ: "", //问答标题
  5266. rateJson: [],
  5267. wbCount: 0,
  5268. wordCount: 0,
  5269. mindCount: 0,
  5270. askCount: 0,
  5271. noteCount: 0,
  5272. mindNetWorkCount: 0,
  5273. libraryCount: 0,
  5274. workCount: 0,
  5275. timeCount: 0,
  5276. answerCount: 0,
  5277. trainCount: 0,
  5278. evalCount: 0,
  5279. dialogImageUrl: "",
  5280. pictureDialog: false,
  5281. toolTypeList: [],
  5282. dialogVisible1: false,
  5283. dialogVisible2: false,
  5284. dialogVisible3: false,
  5285. dialogVisible6: false,
  5286. dialogVisible4: false,
  5287. isNoHomeWork: false,
  5288. dialogVisible5: false,
  5289. dialogVisible5Teacher: false,
  5290. dialogVisibleChoice: false,
  5291. dialogVisibleChoiceTeacher: false,
  5292. answerDialogVisible: false,
  5293. juriVisible: false,
  5294. timeDialogVisible: false,
  5295. radio: [],
  5296. isAsk: false,
  5297. askJson: {
  5298. askCount: 1,
  5299. askTitle: "",
  5300. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5301. },
  5302. testJson: {},
  5303. checkJson: [],
  5304. askList: [],
  5305. answerList: [],
  5306. navList: [],
  5307. addPzDialog: false,
  5308. pzConText: "",
  5309. worksStudent: [],
  5310. worksStudent2: [],
  5311. worksTeacher: [],
  5312. isCloseList: [],
  5313. workStudent: [],
  5314. groupStudent: [],
  5315. groupStudentUid: [],
  5316. noWorksS: [],
  5317. isWorksS: [],
  5318. noWorksStudent: [],
  5319. toolindex: 0,
  5320. groupIndex: 0,
  5321. workTypeB: false,
  5322. workTypeC: false,
  5323. isAnswer: false,
  5324. timer: null,
  5325. opertimer: null,
  5326. showType: 0,
  5327. fileType: 0,
  5328. showPDF: false,
  5329. noteName: "",
  5330. evaJuri: [],
  5331. evalua: "",
  5332. eTitle: "",
  5333. eName: "",
  5334. eJson: {},
  5335. fid: "", //一级
  5336. sid: "", //二级
  5337. tid: "", //二级
  5338. typeMode: 1,
  5339. eJSONNum: 0,
  5340. Etype: 1,
  5341. data: {
  5342. meta: {
  5343. name: "example",
  5344. author: "dd@163.com",
  5345. version: "0.2",
  5346. },
  5347. format: "node_array",
  5348. data: [{ id: "root", isroot: true, topic: "" }],
  5349. },
  5350. fullDialogVisible: false,
  5351. fulltype: "",
  5352. fullUrl: "",
  5353. commentIndexJson: {},
  5354. Stbodywidth: 0,
  5355. pzType: 1,
  5356. wScore: 0,
  5357. scoreDetail: "",
  5358. videoStart: false,
  5359. recorder: null,
  5360. groupJson: {},
  5361. groupJson2: {},
  5362. dialogVisibleGroup: false,
  5363. dialogVisibleGroup2: false,
  5364. updateGroupArray: [],
  5365. updateGroupUser: {},
  5366. deleteGroupUser: [],
  5367. deleteGroupArray: {},
  5368. checkChair: "",
  5369. checkDeleteGroup: [],
  5370. inviteCode: "",
  5371. courseGroupStudent: [],
  5372. courseGroupStudentUid: [],
  5373. courseGroup: {},
  5374. isGroup: false,
  5375. toolIndex: null,
  5376. tool: {},
  5377. isWorkTool: [16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40]//, 40
  5378. };
  5379. },
  5380. methods: {
  5381. jump() {
  5382. window.parent.postMessage({ tools: "43" }, "*");
  5383. },
  5384. previewImg(url) {
  5385. this.$hevueImgPreview(url);
  5386. },
  5387. change(val) {
  5388. console.log(val);
  5389. },
  5390. goTo(path) {
  5391. this.$router.push(path);
  5392. },
  5393. handlePictureCardPreview(url) {
  5394. this.dialogImageUrl = url;
  5395. this.pictureDialog = true;
  5396. },
  5397. clean(type) {
  5398. if (type == 1) {
  5399. this.studyJuri[0].cover.splice(0, 1);
  5400. } else if (type == 2) {
  5401. this.studyJuri[0].upVedio.splice(0, 1);
  5402. } else {
  5403. this.studyJuri[0].upFile.splice(0, 1);
  5404. }
  5405. },
  5406. clean2(index) {
  5407. this.plworkFile.splice(index, 1);
  5408. },
  5409. handleClose(done) {
  5410. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  5411. this.videoDetail.sources[0].src = "";
  5412. }
  5413. this.commentIndexJson = {};
  5414. done();
  5415. },
  5416. fullTools() {
  5417. this.full = !this.full;
  5418. },
  5419. imgChange(file, fileList, type) {
  5420. if (type == 1) {
  5421. var _tmp = this.studyJuri[0].cover;
  5422. } else if (type == 2) {
  5423. var _tmp = this.studyJuri[0].upVedio;
  5424. } else {
  5425. var _tmp = this.studyJuri[0].upFile;
  5426. }
  5427. this.noneBtnImg = _tmp.length >= 1;
  5428. },
  5429. setContent(bool) {
  5430. this.contentDialog = bool
  5431. if (bool && this.mlDialog) {
  5432. document.querySelector('.workd_media').style.height = "650px"
  5433. } else {
  5434. document.querySelector('.workd_media').style.height = "auto"
  5435. }
  5436. },
  5437. setContent2(bool) {
  5438. this.mlDialog = bool
  5439. if (bool && this.contentDialog) {
  5440. document.querySelector('.workd_media').style.height = "650px"
  5441. } else {
  5442. document.querySelector('.workd_media').style.height = "auto"
  5443. }
  5444. },
  5445. addImg(e) {
  5446. var el = e.currentTarget;
  5447. // this.$message.success('触发上传')
  5448. el.getElementsByTagName("input")[0].click();
  5449. e.target.value = "";
  5450. },
  5451. addSelectAnswer() {
  5452. let params = [
  5453. {
  5454. uid: this.userid,
  5455. cid: this.id,
  5456. stage: this.courseType,
  5457. task: this.taskCount,
  5458. tool: this.toolindex,
  5459. content: this.selectAnswer.answer,
  5460. type: 7,
  5461. },
  5462. ];
  5463. this.ajax
  5464. .post(this.$store.state.api + "addCourseWorks", params)
  5465. .then((res) => {
  5466. this.$message({
  5467. message: "提交成功",
  5468. type: "success",
  5469. });
  5470. this.dialogVisibleSelect = false;
  5471. // this.selectAnswer = {};
  5472. this.selectSWorks();
  5473. this.selectStudent();
  5474. })
  5475. .catch((err) => {
  5476. this.$message.error("提交失败");
  5477. console.error(err);
  5478. });
  5479. },
  5480. addSelectAnswerTeacher() {
  5481. let params = [
  5482. {
  5483. uid: this.sStudent.userid,
  5484. cid: this.id,
  5485. stage: this.courseType,
  5486. task: this.taskCount,
  5487. tool: this.toolindex,
  5488. content: this.selectAnswer.answer,
  5489. type: 7,
  5490. },
  5491. ];
  5492. this.ajax
  5493. .post(this.$store.state.api + "addCourseWorks", params)
  5494. .then((res) => {
  5495. this.$message({
  5496. message: "提交成功",
  5497. type: "success",
  5498. });
  5499. this.dialogVisibleSelectTeacher = false;
  5500. // this.selectAnswer = {};
  5501. this.selectSWorks();
  5502. this.selectStudent();
  5503. })
  5504. .catch((err) => {
  5505. this.$message.error("提交失败");
  5506. console.error(err);
  5507. });
  5508. },
  5509. addSenWorks() {
  5510. for (var i = 0; i < this.sentenceList.length; i++) {
  5511. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5512. if (
  5513. this.sentenceList[i].chooseSenList[j] == undefined ||
  5514. this.sentenceList[i].chooseSenList[j] == ""
  5515. ) {
  5516. this.$message.error("请将答案填写完整!");
  5517. return;
  5518. }
  5519. }
  5520. }
  5521. let params = [
  5522. {
  5523. uid: this.userid,
  5524. cid: this.id,
  5525. stage: this.courseType,
  5526. task: this.taskCount,
  5527. tool: this.toolindex,
  5528. content: JSON.stringify(this.sentenceList),
  5529. type: 9,
  5530. },
  5531. ];
  5532. this.ajax
  5533. .post(this.$store.state.api + "addCourseWorks", params)
  5534. .then((res) => {
  5535. this.$message({
  5536. message: "提交成功",
  5537. type: "success",
  5538. });
  5539. this.dialogVisibleSentence = false;
  5540. // this.selectAnswer = {};
  5541. this.selectSWorks();
  5542. this.selectStudent();
  5543. })
  5544. .catch((err) => {
  5545. this.$message.error("提交失败");
  5546. console.error(err);
  5547. });
  5548. },
  5549. addSenWorksTeacher() {
  5550. for (var i = 0; i < this.sentenceList.length; i++) {
  5551. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  5552. if (
  5553. this.sentenceList[i].chooseSenList[j] == undefined ||
  5554. this.sentenceList[i].chooseSenList[j] == ""
  5555. ) {
  5556. this.$message.error("请将答案填写完整!");
  5557. return;
  5558. }
  5559. }
  5560. }
  5561. let params = [
  5562. {
  5563. uid: this.sStudent.userid,
  5564. cid: this.id,
  5565. stage: this.courseType,
  5566. task: this.taskCount,
  5567. tool: this.toolindex,
  5568. content: JSON.stringify(this.sentenceList),
  5569. type: 9,
  5570. },
  5571. ];
  5572. this.ajax
  5573. .post(this.$store.state.api + "addCourseWorks", params)
  5574. .then((res) => {
  5575. this.$message({
  5576. message: "提交成功",
  5577. type: "success",
  5578. });
  5579. this.dialogVisibleSentenceTeacher = false;
  5580. // this.selectAnswer = {};
  5581. this.selectSWorks();
  5582. this.selectStudent();
  5583. })
  5584. .catch((err) => {
  5585. this.$message.error("提交失败");
  5586. console.error(err);
  5587. });
  5588. },
  5589. addTableWorks() {
  5590. let params = [
  5591. {
  5592. uid: this.userid,
  5593. cid: this.id,
  5594. stage: this.courseType,
  5595. task: this.taskCount,
  5596. tool: this.toolindex,
  5597. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5598. type: 10,
  5599. },
  5600. ];
  5601. this.ajax
  5602. .post(this.$store.state.api + "addCourseWorks", params)
  5603. .then((res) => {
  5604. this.$message({
  5605. message: "提交成功",
  5606. type: "success",
  5607. });
  5608. this.dialogVisibleTable = false;
  5609. // this.selectAnswer = {};
  5610. this.selectSWorks();
  5611. this.selectStudent();
  5612. })
  5613. .catch((err) => {
  5614. this.$message.error("提交失败");
  5615. console.error(err);
  5616. });
  5617. },
  5618. addTableWorksTeacher() {
  5619. let params = [
  5620. {
  5621. uid: this.sStudent.userid,
  5622. cid: this.id,
  5623. stage: this.courseType,
  5624. task: this.taskCount,
  5625. tool: this.toolindex,
  5626. content: JSON.stringify(this.tableJson).replaceAll(/%/g, "%25"),
  5627. type: 10,
  5628. },
  5629. ];
  5630. this.ajax
  5631. .post(this.$store.state.api + "addCourseWorks", params)
  5632. .then((res) => {
  5633. this.$message({
  5634. message: "提交成功",
  5635. type: "success",
  5636. });
  5637. this.dialogVisibleTableTeacher = false;
  5638. // this.selectAnswer = {};
  5639. this.selectSWorks();
  5640. this.selectStudent();
  5641. })
  5642. .catch((err) => {
  5643. this.$message.error("提交失败");
  5644. console.error(err);
  5645. });
  5646. },
  5647. addWordWorks() {
  5648. let params = [{
  5649. uid: this.userid,
  5650. cid: this.id,
  5651. stage: this.courseType,
  5652. task: this.taskCount,
  5653. tool: this.toolindex,
  5654. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5655. type: 13,
  5656. atool: 52,
  5657. }];
  5658. console.log(params);
  5659. this.ajax
  5660. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5661. .then((res) => {
  5662. this.$message({
  5663. message: "提交成功",
  5664. type: "success",
  5665. });
  5666. this.dialogVisibleWord = false;
  5667. // this.selectAnswer = {};
  5668. this.selectSWorks();
  5669. this.selectStudent();
  5670. })
  5671. .catch((err) => {
  5672. this.$message.error("提交失败");
  5673. console.error(err);
  5674. });
  5675. },
  5676. addWordWorksTeacher() {
  5677. let params = [{
  5678. uid: this.sStudent.userid,
  5679. cid: this.id,
  5680. stage: this.courseType,
  5681. task: this.taskCount,
  5682. tool: this.toolindex,
  5683. content: JSON.stringify(this.wordJson).replaceAll(/%/g, "%25"),
  5684. type: 13,
  5685. atool: 52,
  5686. }];
  5687. console.log(params);
  5688. this.ajax
  5689. .post(this.$store.state.api + "addCourseWorks3-2", params)
  5690. .then((res) => {
  5691. this.$message({
  5692. message: "提交成功",
  5693. type: "success",
  5694. });
  5695. this.dialogVisibleWordTeacher = false;
  5696. // this.selectAnswer = {};
  5697. this.selectSWorks();
  5698. this.selectStudent();
  5699. })
  5700. .catch((err) => {
  5701. this.$message.error("提交失败");
  5702. console.error(err);
  5703. });
  5704. },
  5705. addCourseWorks(i) {
  5706. var typesql;
  5707. if (this.fileType === 0) {
  5708. typesql = 1;
  5709. } else if (this.fileType === 1) {
  5710. typesql = 4;
  5711. } else if (this.fileType === 2) {
  5712. typesql = 5;
  5713. } else if (this.fileType === 3) {
  5714. typesql = 12;
  5715. }
  5716. if (!this.studyJuri[0].cover[0].url) {
  5717. this.$message.error("请上传文件");
  5718. return;
  5719. }
  5720. let params = [
  5721. {
  5722. uid: this.userid,
  5723. cid: this.id,
  5724. stage: this.courseType,
  5725. task: i,
  5726. tool: this.toolindex,
  5727. content: this.studyJuri[0].cover[0].url,
  5728. type: typesql,
  5729. },
  5730. ];
  5731. this.ajax
  5732. .post(this.$store.state.api + "addCourseWorksR", params)
  5733. .then((res) => {
  5734. this.$message({
  5735. message: "提交成功",
  5736. type: "success",
  5737. });
  5738. this.studyJuri[0].cover = [];
  5739. this.dialogVisible = false;
  5740. this.getCourseDetail();
  5741. })
  5742. .catch((err) => {
  5743. this.$message.error("提交失败");
  5744. console.error(err);
  5745. });
  5746. },
  5747. addCourseWorksPl(i) {
  5748. let _files = this.plworkFile;
  5749. var c = 1;
  5750. for (var k = 0; k < _files.length; k++) {
  5751. if (!_files[k].username) {
  5752. c = 2;
  5753. }
  5754. }
  5755. if (c == 2) {
  5756. this.$message.error("请填写学生姓名");
  5757. return;
  5758. }
  5759. let params = [
  5760. {
  5761. ateacher: this.userid,
  5762. cid: this.id,
  5763. stage: this.courseType,
  5764. task: i,
  5765. tool: this.toolindex,
  5766. content: JSON.stringify(_files).replaceAll(/%/g, "%25"),
  5767. },
  5768. ];
  5769. this.ajax
  5770. .post(this.$store.state.api + "addCourseWorksPl", params)
  5771. .then((res) => {
  5772. this.$message({
  5773. message: "提交成功",
  5774. type: "success",
  5775. });
  5776. this.plworkFile = [];
  5777. this.dialogVisiblePl = false;
  5778. this.getCourseDetail();
  5779. })
  5780. .catch((err) => {
  5781. this.$message.error("提交失败");
  5782. console.error(err);
  5783. });
  5784. },
  5785. addCourseWorks2(i) {
  5786. var typesql;
  5787. if (this.fileType === 0) {
  5788. typesql = 0;
  5789. } else if (this.fileType === 1) {
  5790. typesql = 1;
  5791. } else if (this.fileType === 2) {
  5792. typesql = 3;
  5793. } else if (this.fileType === 3) {
  5794. typesql = 12;
  5795. }
  5796. if (!this.studyJuri[0].cover[0].url) {
  5797. this.$message.error("请上传文件");
  5798. return;
  5799. }
  5800. let params = [
  5801. {
  5802. uid: this.userid,
  5803. cid: this.id,
  5804. stage: this.courseType,
  5805. task: i,
  5806. tool: this.toolindex,
  5807. content: JSON.stringify({
  5808. type: typesql,
  5809. groupIndex: this.groupIndex,
  5810. url: this.studyJuri[0].cover[0].url,
  5811. }).replaceAll(/%/g, "%25"),
  5812. type: 11,
  5813. atool: 49,
  5814. text: "",
  5815. },
  5816. ];
  5817. this.ajax
  5818. .post(this.$store.state.api + "addCourseWorks5", params)
  5819. .then((res) => {
  5820. this.$message({
  5821. message: "提交成功",
  5822. type: "success",
  5823. });
  5824. this.studyJuri[0].cover = [];
  5825. this.dialogVisibleGroupWork = false;
  5826. this.getCourseDetail();
  5827. })
  5828. .catch((err) => {
  5829. this.$message.error("提交失败");
  5830. console.error(err);
  5831. });
  5832. },
  5833. addCourseWorksGong(i, data, tool) {
  5834. let params = [
  5835. {
  5836. uid: this.userid,
  5837. cid: this.id,
  5838. stage: this.courseType,
  5839. task: this.taskCount,
  5840. tool: i,
  5841. content: data,
  5842. type: 12,
  5843. atool: tool,
  5844. text: "",
  5845. },
  5846. ];
  5847. this.ajax
  5848. .post(this.$store.state.api + "addCourseWorks5", params)
  5849. .then((res) => {
  5850. this.$message({
  5851. message: "提交成功",
  5852. type: "success",
  5853. });
  5854. this.studyJuri[0].cover = [];
  5855. this.selectSWorks();
  5856. this.selectStudent();
  5857. })
  5858. .catch((err) => {
  5859. this.$message.error("提交失败");
  5860. console.error(err);
  5861. });
  5862. },
  5863. addCourseWorksGongTeacher(i, data, tool) {
  5864. let params = [
  5865. {
  5866. uid: this.sStudent.userid,
  5867. cid: this.id,
  5868. stage: this.courseType,
  5869. task: this.taskCount,
  5870. tool: i,
  5871. content: data,
  5872. type: 12,
  5873. atool: tool,
  5874. text: "",
  5875. },
  5876. ];
  5877. this.ajax
  5878. .post(this.$store.state.api + "addCourseWorks5", params)
  5879. .then((res) => {
  5880. this.$message({
  5881. message: "提交成功",
  5882. type: "success",
  5883. });
  5884. this.studyJuri[0].cover = [];
  5885. this.dialogVisibleWorks = false;
  5886. this.selectSWorks();
  5887. this.selectStudent();
  5888. })
  5889. .catch((err) => {
  5890. this.$message.error("提交失败");
  5891. console.error(err);
  5892. });
  5893. },
  5894. addCourseWorksGongPl(i, data, tool, type) {
  5895. let params = [
  5896. {
  5897. uid: this.sStudent.userid,
  5898. cid: this.id,
  5899. stage: this.courseType,
  5900. task: this.taskCount,
  5901. tool: i,
  5902. content: data,
  5903. type: type,
  5904. atool: tool,
  5905. text: "",
  5906. },
  5907. ];
  5908. this.ajax
  5909. .post(this.$store.state.api + "addCourseWorks5", params)
  5910. .then((res) => {
  5911. this.$message({
  5912. message: "提交成功",
  5913. type: "success",
  5914. });
  5915. this.studyJuri[0].cover = [];
  5916. this.dialogVisibleWorks = false;
  5917. this.selectSWorks();
  5918. this.selectStudent();
  5919. })
  5920. .catch((err) => {
  5921. this.$message.error("提交失败");
  5922. console.error(err);
  5923. });
  5924. },
  5925. addCourseWorksTeacher(i) {
  5926. var typesql;
  5927. if (this.sTool == 32 || this.sTool == 57) {
  5928. this.addCourseWorksGongTeacher(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool);
  5929. return;
  5930. }
  5931. if (this.fileType === 0) {
  5932. typesql = 1;
  5933. } else if (this.fileType === 1) {
  5934. typesql = 4;
  5935. } else if (this.fileType === 2) {
  5936. typesql = 5;
  5937. } else if (this.fileType === 3) {
  5938. typesql = 12;
  5939. }
  5940. if (this.sTool == 50) {
  5941. this.addCourseWorksGongPl(this.toolindex, this.studyJuri[0].cover[0].url, this.sTool, typesql);
  5942. return;
  5943. }
  5944. if (!this.studyJuri[0].cover[0].url) {
  5945. this.$message.error("请上传文件");
  5946. return;
  5947. }
  5948. let params = [
  5949. {
  5950. uid: this.sStudent.userid,
  5951. cid: this.id,
  5952. stage: this.courseType,
  5953. task: i,
  5954. tool: this.toolindex,
  5955. content: this.studyJuri[0].cover[0].url,
  5956. type: typesql,
  5957. ateacher: this.userid,
  5958. },
  5959. ];
  5960. this.ajax
  5961. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  5962. .then((res) => {
  5963. this.$message({
  5964. message: "提交成功",
  5965. type: "success",
  5966. });
  5967. this.studyJuri[0].cover = [];
  5968. this.dialogVisibleWorks = false;
  5969. this.getCourseDetail();
  5970. })
  5971. .catch((err) => {
  5972. this.$message.error("提交失败");
  5973. console.error(err);
  5974. });
  5975. },
  5976. selectUploadStudent() {
  5977. let params = {
  5978. cid: this.tcid ? this.tcid : this.courseDetail.juri,
  5979. oid: this.oid,
  5980. cn: '',
  5981. };
  5982. this.ajax
  5983. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  5984. .then((res) => {
  5985. var studentK = [];
  5986. if (this.isWorksS[this.toolindex].length > 0) {
  5987. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  5988. studentK.push(this.isWorksS[this.toolindex][z].uid);
  5989. }
  5990. studentK = studentK.join(",");
  5991. }
  5992. this.uploadStudentJuri = res.data[0].filter((el)=>{
  5993. return studentK.indexOf(el.userid) == -1
  5994. });
  5995. })
  5996. .catch((err) => {
  5997. console.error(err);
  5998. });
  5999. },
  6000. arrayToArray(arrayo, arrayt) {
  6001. let array1 = arrayo;
  6002. let array2 = arrayt;
  6003. let commonElements = [];
  6004. for (let i = 0; i < array1.length; i++) {
  6005. for (let j = 0; j < array2.length; j++) {
  6006. if (array1[i] === array2[j]) {
  6007. commonElements.push(array1[i]);
  6008. }
  6009. }
  6010. }
  6011. return commonElements
  6012. },
  6013. selectWorksStudent() {
  6014. let params = {
  6015. oid: this.oid,
  6016. cid: this.courseDetail.juri,
  6017. };
  6018. this.ajax
  6019. .get(this.$store.state.api + "selectWorksStudent", params)
  6020. .then((res) => {
  6021. var a = res.data[0];
  6022. for (var i = 0; i < this.isWorksS.length; i++) {
  6023. this.noWorksS[i] = [];
  6024. var studentK = [];
  6025. if (this.isWorksS[i].length > 0) {
  6026. for (var z = 0; z < this.isWorksS[i].length; z++) {
  6027. studentK.push(this.isWorksS[i][z].uid);
  6028. }
  6029. studentK = studentK.join(",");
  6030. for (var j = 0; j < a.length; j++) {
  6031. // if (studentK.indexOf(a[j].userid) == -1) {
  6032. if (this.tcid) {
  6033. // a[j].classid.indexOf(this.tcid) != -1
  6034. if (this.arrayToArray(a[j].classid.split(","), this.tcid.split(",")).length) {
  6035. this.noWorksS[i].push({
  6036. student: a[j].name,
  6037. userid: a[j].userid,
  6038. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6039. });
  6040. }
  6041. } else {
  6042. this.noWorksS[i].push({
  6043. student: a[j].name,
  6044. userid: a[j].userid,
  6045. type:studentK.indexOf(a[j].userid) == -1 ? '1' : '2'
  6046. });
  6047. }
  6048. // }
  6049. }
  6050. } else {
  6051. for (var k = 0; k < a.length; k++) {
  6052. if (this.tcid) {
  6053. if (this.arrayToArray(a[k].classid.split(","), this.tcid.split(",")).length) {
  6054. this.noWorksS[i].push({
  6055. student: a[k].name,
  6056. userid: a[k].userid,
  6057. type:'1'
  6058. });
  6059. }
  6060. } else {
  6061. this.noWorksS[i].push({
  6062. student: a[k].name,
  6063. userid: a[k].userid,
  6064. type:'1'
  6065. });
  6066. }
  6067. }
  6068. }
  6069. // this.noWorksS[i] = this.noWorksS[i].sort(function (a, b) {
  6070. // let jscoreA = parseInt(a.type);
  6071. // let jscoreB = parseInt(b.type);
  6072. // return jscoreB - jscoreA;
  6073. // });
  6074. }
  6075. this.$forceUpdate();
  6076. if (
  6077. Object.keys(this.commentDetail).length &&
  6078. Object.keys(this.commentIndexJson).length &&
  6079. !this.dialogVisibleScore
  6080. ) {
  6081. let a = 1;
  6082. let c = this.commentIndexJson;
  6083. console.log(c);
  6084. if (
  6085. this.commentIndexJson.gindex ||
  6086. this.commentIndexJson.gindex === 0
  6087. ) {
  6088. for (
  6089. var i = 0;
  6090. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6091. i++
  6092. ) {
  6093. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6094. groupA: for (var k = 0; k < _el.length; k++) {
  6095. let el = _el[k];
  6096. if (el.wid == this.commentDetail.wid) {
  6097. a = 2;
  6098. this.commentOther(
  6099. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  6100. this.commentIndexJson.toolIndex,
  6101. k,
  6102. this.commentIndexJson.gindex
  6103. );
  6104. break groupA;
  6105. }
  6106. }
  6107. }
  6108. if (a === 1) {
  6109. this.commentDetail = [];
  6110. this.commentIndexJson = {};
  6111. this.commentDialogVisible = false;
  6112. this.$message("此作业已被删除");
  6113. }
  6114. } else {
  6115. if (this.isGroup && this.commentIndexJson.gid) {
  6116. groupA: for (
  6117. var i = 0;
  6118. i < this.courseGroup.group.length;
  6119. i++
  6120. ) {
  6121. let _group = this.courseGroup.group[i]
  6122. if (_group.id == this.commentIndexJson.gid) {
  6123. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  6124. for (var k = 0; k < _el2.length; k++) {
  6125. let el2 = _el2[k];
  6126. if (el2.wid == this.commentDetail.wid) {
  6127. a = 2;
  6128. this.commentOther(
  6129. _el2[k],
  6130. this.commentIndexJson.toolIndex,
  6131. k,
  6132. null,
  6133. this.commentIndexJson.gid
  6134. );
  6135. break groupA;
  6136. }
  6137. }
  6138. }
  6139. }
  6140. }
  6141. if (a == 1) {
  6142. for (
  6143. var i = 0;
  6144. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  6145. i++
  6146. ) {
  6147. let el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  6148. if (el.wid == this.commentDetail.wid) {
  6149. a = 2;
  6150. this.commentOther(
  6151. this.worksStudent[this.commentIndexJson.toolIndex][i],
  6152. this.commentIndexJson.toolIndex,
  6153. i
  6154. );
  6155. break;
  6156. }
  6157. }
  6158. }
  6159. if (a === 1) {
  6160. this.commentDetail = [];
  6161. this.commentIndexJson = {};
  6162. this.commentDialogVisible = false;
  6163. this.$message("此作业已被删除");
  6164. }
  6165. }
  6166. }
  6167. })
  6168. .catch((err) => {
  6169. console.error(err);
  6170. });
  6171. },
  6172. selectStudent() {
  6173. },
  6174. openVideo(w) {
  6175. this.videoDetail = {};
  6176. this.playerOptions1.sources[0].src = w.works;
  6177. this.videoDetail = this.playerOptions1;
  6178. this.videoVisible = true;
  6179. },
  6180. isLikes(wid, uid, t, c, isLikes) {
  6181. if (isLikes == false) {
  6182. let params = [
  6183. {
  6184. wid: wid,
  6185. lid: uid,
  6186. t: t,
  6187. c: c,
  6188. },
  6189. ];
  6190. this.ajax
  6191. .post(this.$store.state.api + "insertComment", params)
  6192. .then((res) => {
  6193. this.$message({
  6194. message: "点赞成功",
  6195. type: "success",
  6196. });
  6197. this.selectSWorks();
  6198. this.selectStudent();
  6199. })
  6200. .catch((err) => {
  6201. this.$message.error("点赞失败");
  6202. console.error(err);
  6203. });
  6204. } else {
  6205. let params = {
  6206. wid: wid,
  6207. lid: uid,
  6208. type: t,
  6209. };
  6210. this.ajax
  6211. .get(this.$store.state.api + "deleteComment", params)
  6212. .then((res) => {
  6213. this.$message({
  6214. message: "取消点赞成功",
  6215. type: "success",
  6216. });
  6217. this.selectSWorks();
  6218. this.selectStudent();
  6219. })
  6220. .catch((err) => {
  6221. console.error(err);
  6222. });
  6223. }
  6224. },
  6225. deleteComment(wid) {
  6226. this.$confirm("确定删除此评论吗?", "提示", {
  6227. confirmButtonText: "确定",
  6228. cancelButtonText: "取消",
  6229. type: "warning",
  6230. })
  6231. .then(() => {
  6232. let params = {
  6233. id: wid,
  6234. };
  6235. this.ajax
  6236. .get(this.$store.state.api + "deleteComment2", params)
  6237. .then((res) => {
  6238. this.$message({
  6239. message: "删除评论成功",
  6240. type: "success",
  6241. });
  6242. this.selectSWorks();
  6243. this.selectStudent();
  6244. })
  6245. .catch((err) => {
  6246. console.error(err);
  6247. });
  6248. })
  6249. .catch(() => { });
  6250. },
  6251. commentOther(w, toolIndex, wIndex, gindex, gid) {
  6252. this.commentIndexJson = {
  6253. toolIndex: toolIndex,
  6254. wIndex: wIndex,
  6255. gindex: gindex,
  6256. gid: gid
  6257. };
  6258. this.commentDetail = [];
  6259. this.commentDialogVisible = true;
  6260. this.commentDetail = w;
  6261. if (w.works && w.type == 1) {
  6262. this.pptImgUrl = "";
  6263. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6264. if (
  6265. a.indexOf(
  6266. w.works
  6267. .split(".")
  6268. [w.works.split(".").length - 1].toLocaleUpperCase()
  6269. ) != -1
  6270. ) {
  6271. this.pptImgUrl =
  6272. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6273. this.showPDF = false;
  6274. } else if (
  6275. w.works
  6276. .split(".")
  6277. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6278. ) {
  6279. this.pptImgUrl = w.works;
  6280. this.showPDF = true;
  6281. }
  6282. } else if (w.works && w.type == 3) {
  6283. this.videoDetail = {};
  6284. this.playerOptions1.sources[0].src = w.works;
  6285. this.videoDetail = this.playerOptions1;
  6286. // this.videoVisible = true;
  6287. } else if (w.works && w.type == 4) {
  6288. this.eScore = JSON.parse(w.works);
  6289. this.rateJson =
  6290. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6291. this.taskCount
  6292. ].toolChoose[toolIndex].rateJson;
  6293. } else if (w.works && w.type == 10) {
  6294. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  6295. } else if (w.works && w.type == 13) {
  6296. this.wordJson =
  6297. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6298. this.taskCount
  6299. ].toolChoose[toolIndex].wordJson;
  6300. }
  6301. },
  6302. openScore(w) {
  6303. this.wScore = 0;
  6304. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  6305. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  6306. this.commentDetail = [];
  6307. this.dialogVisibleScore = true;
  6308. this.commentDetail = w;
  6309. if (w.works && w.type == 1) {
  6310. this.pptImgUrl = "";
  6311. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  6312. if (
  6313. a.indexOf(
  6314. w.works
  6315. .split(".")
  6316. [w.works.split(".").length - 1].toLocaleUpperCase()
  6317. ) != -1
  6318. ) {
  6319. this.pptImgUrl =
  6320. "https://view.officeapps.live.com/op/view.aspx?src=" + w.works;
  6321. this.showPDF = false;
  6322. } else if (
  6323. w.works
  6324. .split(".")
  6325. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  6326. ) {
  6327. this.pptImgUrl = w.works;
  6328. this.showPDF = true;
  6329. }
  6330. } else if (w.works && w.type == 3) {
  6331. this.videoDetail = {};
  6332. this.playerOptions1.sources[0].src = w.works;
  6333. this.videoDetail = this.playerOptions1;
  6334. }
  6335. },
  6336. addComment(wid, uid, t) {
  6337. if (this.commentText == "") {
  6338. this.$message.error("请输入对该学生的评价");
  6339. return;
  6340. }
  6341. let params2 = [
  6342. {
  6343. wid: wid,
  6344. lid: uid,
  6345. t: t,
  6346. },
  6347. ];
  6348. this.ajax
  6349. .post(this.$store.state.api + "getComment", params2)
  6350. .then((res) => {
  6351. if (res.data[0].length > 0) {
  6352. this.$message.error("一个作业只能评论一条");
  6353. } else {
  6354. let params = [
  6355. {
  6356. wid: wid,
  6357. lid: uid,
  6358. t: t,
  6359. c: this.commentText,
  6360. },
  6361. ];
  6362. this.ajax
  6363. .post(this.$store.state.api + "insertComment", params)
  6364. .then((res) => {
  6365. this.$message({
  6366. message: "评论成功",
  6367. type: "success",
  6368. });
  6369. this.commentText = "";
  6370. this.selectSWorks();
  6371. this.selectStudent();
  6372. })
  6373. .catch((err) => {
  6374. this.$message.error("评论失败");
  6375. console.error(err);
  6376. });
  6377. }
  6378. })
  6379. .catch((err) => {
  6380. // this.$message.error("评论失败");
  6381. console.error(err);
  6382. });
  6383. },
  6384. scoreWork(wid) {
  6385. if (this.wScore == 0) {
  6386. this.$message.error("请评分");
  6387. return;
  6388. }
  6389. let params = [
  6390. {
  6391. wid: wid,
  6392. score: JSON.stringify({
  6393. wScore: this.wScore,
  6394. detail: this.scoreDetail,
  6395. }),
  6396. },
  6397. ];
  6398. this.ajax
  6399. .post(this.$store.state.api + "scoreWork", params)
  6400. .then((res) => {
  6401. this.$message({
  6402. message: "评分成功",
  6403. type: "success",
  6404. });
  6405. this.wScore = 0;
  6406. this.scoreDetail = "";
  6407. this.dialogVisibleScore = false;
  6408. this.selectSWorks();
  6409. this.selectStudent();
  6410. })
  6411. .catch((err) => {
  6412. this.$message.error("评分失败");
  6413. console.error(err);
  6414. });
  6415. },
  6416. openXz(w, i) {
  6417. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  6418. .taskJson[this.taskCount].toolChoose[i].selectJson
  6419. ? JSON.parse(
  6420. JSON.stringify(
  6421. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6422. this.taskCount
  6423. ].toolChoose[i].selectJson
  6424. )
  6425. )
  6426. : { url: "", select: [], answer: [] };
  6427. var a = w.works.split(",");
  6428. for (var k = 0; k < a.length; k++) {
  6429. a[k] = parseInt(a[k]);
  6430. }
  6431. this.selectAnswer = { answer: a, stu: w.sName };
  6432. this.isSelect = true;
  6433. this.dialogVisibleSelect = true;
  6434. },
  6435. openSen(w, i) {
  6436. this.sentenceList1 = JSON.parse(w.works);
  6437. this.sentenceList1.stuName = w.sName;
  6438. this.dialogVisibleSentence1 = true;
  6439. },
  6440. openPj(w, toolindex) {
  6441. this.isStar = true;
  6442. this.eScore = JSON.parse(w);
  6443. this.rateJson =
  6444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6445. this.taskCount
  6446. ].toolChoose[toolindex].rateJson;
  6447. this.studentEvalDialogVisible = true;
  6448. },
  6449. deleteWorks(id) {
  6450. this.$confirm("确定删除此作业吗?", "提示", {
  6451. confirmButtonText: "确定",
  6452. cancelButtonText: "取消",
  6453. type: "warning",
  6454. })
  6455. .then(() => {
  6456. let params = [
  6457. {
  6458. id: id,
  6459. },
  6460. ];
  6461. this.ajax
  6462. .post(this.$store.state.api + "deleteCourseWork", params)
  6463. .then((res) => {
  6464. this.$message({
  6465. message: "删除成功",
  6466. type: "success",
  6467. });
  6468. this.selectStudent();
  6469. this.selectSWorks();
  6470. this.selectSLook();
  6471. })
  6472. .catch((err) => {
  6473. this.$message.error("网络异常");
  6474. console.error(err);
  6475. });
  6476. })
  6477. .catch(() => { });
  6478. },
  6479. selectSWorks(gindex) {
  6480. //教师查看全部作业
  6481. let params = {
  6482. cid: this.id,
  6483. s: this.courseType,
  6484. t: this.taskCount,
  6485. };
  6486. this.ajax
  6487. .get(this.$store.state.api + "selectSWorks", params)
  6488. .then((res) => {
  6489. var a =
  6490. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  6491. this.taskCount
  6492. ].toolChoose;
  6493. var b = res.data[0];
  6494. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  6495. var y = [
  6496. "AVI",
  6497. "NAVI",
  6498. "MPEG",
  6499. "ASF",
  6500. "MOV",
  6501. "WMV",
  6502. "3GP",
  6503. "RM",
  6504. "RMVB",
  6505. "FLV",
  6506. "F4V",
  6507. "H.264",
  6508. "H.265",
  6509. "REAL VIDEO",
  6510. "MKV",
  6511. "WebM",
  6512. "HDDVD",
  6513. "MP4",
  6514. "MPG",
  6515. "M4V",
  6516. "MGV",
  6517. "OGV",
  6518. "QTM",
  6519. "STR",
  6520. "AMC",
  6521. "DVX",
  6522. "EVO",
  6523. "DAT",
  6524. "OGG",
  6525. "OGM",
  6526. ];
  6527. var d = res.data[1];
  6528. var e = res.data[2];
  6529. var f = res.data[3];
  6530. for (var i = 0; i < a.length; i++) {
  6531. this.worksStudent[i] = [];
  6532. this.worksTeacher[i] = [];
  6533. this.worksStudent2[i] = [];
  6534. if (
  6535. !this.isCloseList[i] ||
  6536. this.isCloseList[i].isClose == undefined
  6537. ) {
  6538. this.isCloseList[i] = { isClose: 0 };
  6539. }
  6540. this.groupStudent[i] = [];
  6541. this.groupStudentUid[i] = [];
  6542. this.isWorksS[i] = [];
  6543. this.checkJson[i] = [];
  6544. if (a[i].tool[0] == 49) {
  6545. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  6546. this.groupStudent[i][gA] = [];
  6547. this.groupStudentUid[i][gA] = [];
  6548. this.worksStudent[i][gA] = [];
  6549. this.isCloseList[i][gA] = [];
  6550. for (var g = 0; g < f.length; g++) {
  6551. if (
  6552. f[g].ttype == 2 &&
  6553. this.tcid &&
  6554. this.arrayToArray(f[g].classid.split(","), this.tcid.split(",")).length == 0
  6555. ) {
  6556. continue;
  6557. }
  6558. if (gA == f[g].group && f[g].tool == i) {
  6559. this.groupStudent[i][gA].push(f[g]);
  6560. this.groupStudentUid[i][gA].push(f[g].userid);
  6561. }
  6562. }
  6563. }
  6564. this.$forceUpdate();
  6565. }
  6566. for (var j = 0; j < b.length; j++) {
  6567. if (b[j].ttype == 2 && this.tcid && this.arrayToArray(b[j].classid.split(","), this.tcid.split(",")).length == 0) {
  6568. continue;
  6569. }
  6570. var likesCount = 0;
  6571. var commentCount = 0;
  6572. var isLikes = false;
  6573. var commentJson = [];
  6574. var data = b[j];
  6575. if (i == b[j].tool) {
  6576. if (data.type == 2 && a[i].tool[0] == 4) {
  6577. // if(JSON.parse(data.content)[0].anwer){
  6578. var checkL = JSON.parse(data.content)[0].anwer instanceof Array ? JSON.parse(data.content)[0].anwer : JSON.parse(data.content)[0].anwer.split(",");
  6579. for (var z = 0; z < checkL.length; z++) {
  6580. if (!this.checkJson[i][z]) {
  6581. this.checkJson[i].push({
  6582. checkCount: [],
  6583. checkPerson: [],
  6584. rightPerson: [],
  6585. });
  6586. }
  6587. if (!this.checkJson[i][z].checkCount.length) {
  6588. this.checkJson[i][z].checkCount = [];
  6589. let _askItemCount = JSON.parse(data.content)[0].askJson
  6590. .askJson[z].askItem;
  6591. for (var aic = 0; aic < _askItemCount; aic++) {
  6592. this.checkJson[i][z].checkCount.push(0);
  6593. }
  6594. }
  6595. if (checkL[z] instanceof Array) {
  6596. if (
  6597. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  6598. checkL[z].sort().join(",")
  6599. ) {
  6600. this.checkJson[i][z].rightPerson.push(data.name);
  6601. }
  6602. for (var q = 0; q < checkL[z].length; q++) {
  6603. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6604. ? this.checkJson[i][z].checkPerson[
  6605. parseInt(checkL[z][q])
  6606. ].push(data.name)
  6607. : (this.checkJson[i][z].checkPerson[
  6608. parseInt(checkL[z][q])
  6609. ] = [data.name]);
  6610. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6611. ? this.checkJson[i][z].checkCount[
  6612. parseInt(checkL[z][q])
  6613. ]++
  6614. : (this.checkJson[i][z].checkCount[
  6615. parseInt(checkL[z][q])
  6616. ] = 1);
  6617. }
  6618. } else {
  6619. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  6620. this.checkJson[i][z].rightPerson.push(data.name);
  6621. }
  6622. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6623. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6624. ? this.checkJson[i][z].checkPerson[
  6625. parseInt(checkL[z])
  6626. ].push(data.name)
  6627. : (this.checkJson[i][z].checkPerson[
  6628. parseInt(checkL[z])
  6629. ] = [data.name]);
  6630. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6631. ? this.checkJson[i][z].checkCount[
  6632. parseInt(checkL[z])
  6633. ]++
  6634. : (this.checkJson[i][z].checkCount[
  6635. parseInt(checkL[z])
  6636. ] = 1);
  6637. }
  6638. }
  6639. }
  6640. } else if (data.type == 8 && a[i].tool[0] == 45) {
  6641. var checkL = JSON.parse(data.content)[0].anwer;
  6642. for (var z = 0; z < checkL.length; z++) {
  6643. if (!this.checkJson[i][z]) {
  6644. this.checkJson[i].push({
  6645. checkCount: [],
  6646. checkPerson: [],
  6647. rightPerson: [],
  6648. });
  6649. }
  6650. if (!this.checkJson[i][z].checkCount.length) {
  6651. this.checkJson[i][z].checkCount = [];
  6652. let _askItemCount = JSON.parse(data.content)[0].testJson
  6653. .testJson[z].testItem;
  6654. console.log(_askItemCount);
  6655. for (var aic = 0; aic < _askItemCount; aic++) {
  6656. this.checkJson[i][z].checkCount.push(0);
  6657. }
  6658. }
  6659. if (checkL[z] instanceof Array) {
  6660. if (
  6661. JSON.parse(data.content)[0]
  6662. .testJson.testJson[z].answer.sort()
  6663. .join(",") == checkL[z].sort().join(",")
  6664. ) {
  6665. this.checkJson[i][z].rightPerson.push(data.name);
  6666. }
  6667. for (var q = 0; q < checkL[z].length; q++) {
  6668. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  6669. ? this.checkJson[i][z].checkPerson[
  6670. parseInt(checkL[z][q])
  6671. ].push(data.name)
  6672. : (this.checkJson[i][z].checkPerson[
  6673. parseInt(checkL[z][q])
  6674. ] = [data.name]);
  6675. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  6676. ? this.checkJson[i][z].checkCount[
  6677. parseInt(checkL[z][q])
  6678. ]++
  6679. : (this.checkJson[i][z].checkCount[
  6680. parseInt(checkL[z][q])
  6681. ] = 1);
  6682. }
  6683. } else {
  6684. if (
  6685. JSON.parse(data.content)[0].testJson.testJson[z]
  6686. .answer == checkL[z]
  6687. ) {
  6688. this.checkJson[i][z].rightPerson.push(data.name);
  6689. }
  6690. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  6691. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  6692. ? this.checkJson[i][z].checkPerson[
  6693. parseInt(checkL[z])
  6694. ].push(data.name)
  6695. : (this.checkJson[i][z].checkPerson[
  6696. parseInt(checkL[z])
  6697. ] = [data.name]);
  6698. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  6699. ? this.checkJson[i][z].checkCount[
  6700. parseInt(checkL[z])
  6701. ]++
  6702. : (this.checkJson[i][z].checkCount[
  6703. parseInt(checkL[z])
  6704. ] = 1);
  6705. }
  6706. }
  6707. }
  6708. } else if (data.type == 9 && a[i].tool[0] == 47) {
  6709. var checkL = JSON.parse(data.content);
  6710. for (var z = 0; z < checkL.length; z++) {
  6711. if (!this.checkJson[i][z]) {
  6712. this.checkJson[i].push({
  6713. checkCount: [],
  6714. checkPerson: [],
  6715. rightPerson: [],
  6716. });
  6717. }
  6718. this.checkJson[i][z].checkPerson.push(data.name);
  6719. if (
  6720. checkL[z].chooseSenList.toString() ==
  6721. checkL[z].rightAnswer.toString()
  6722. ) {
  6723. this.checkJson[i][z].rightPerson.push(data.name);
  6724. }
  6725. }
  6726. }
  6727. for (var k = 0; k < d.length; k++) {
  6728. //点赞
  6729. if (d[k].workId == b[j].id) {
  6730. likesCount++;
  6731. if (d[k].likesId == this.userid) {
  6732. isLikes = true;
  6733. }
  6734. }
  6735. }
  6736. for (var l = 0; l < e.length; l++) {
  6737. //评论
  6738. if (e[l].workId == b[j].id) {
  6739. if (e[l].comment != "") {
  6740. commentCount++;
  6741. commentJson.push({
  6742. commentText: e[l].comment,
  6743. commentTime: e[l].commentTime,
  6744. commentPeople: e[l].commentPeople,
  6745. userid: e[l].userid,
  6746. wid: e[l].id,
  6747. });
  6748. }
  6749. }
  6750. }
  6751. if (
  6752. (b[j].type == 1 ||
  6753. b[j].type == 4 ||
  6754. b[j].type == 5 ||
  6755. b[j].type == 6 ||
  6756. b[j].type == 12 ||
  6757. b[j].type == 7) &&
  6758. a[i].tool[0] != 15 &&
  6759. a[i].tool[0] != 4 &&
  6760. a[i].tool[0] != 45 &&
  6761. a[i].tool[0] != 50 &&
  6762. a[i].tool[0] != 32 &&
  6763. a[i].tool[0] != 57 &&
  6764. a[i].tool[0] != 52
  6765. ) {
  6766. if (
  6767. c.indexOf(
  6768. b[j].content
  6769. .split(".")
  6770. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6771. ) != -1 &&
  6772. a[i].tool[0] == 16 &&
  6773. b[j].atool != 50
  6774. ) {
  6775. let _works = {
  6776. userid: b[j].userid,
  6777. ateacher: b[j].ateacher,
  6778. wid: b[j].id,
  6779. works: b[j].content,
  6780. sName: b[j].name,
  6781. type: 1,
  6782. time: b[j].time,
  6783. score: b[j].score,
  6784. img: b[j].img,
  6785. likesCount: likesCount,
  6786. commentCount: commentCount,
  6787. isLikes: isLikes,
  6788. commentJson: commentJson,
  6789. }
  6790. if (b[j].ttype == 1) {
  6791. this.worksTeacher[i].push(_works);
  6792. } else {
  6793. this.worksStudent2[i].push(_works);
  6794. }
  6795. this.worksStudent[i].push(_works);
  6796. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6797. } else if (
  6798. y.indexOf(
  6799. b[j].content
  6800. .split(".")
  6801. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  6802. ) != -1 &&
  6803. a[i].tool[0] == 16 &&
  6804. b[j].atool != 50
  6805. ) {
  6806. let _works = {
  6807. userid: b[j].userid,
  6808. ateacher: b[j].ateacher,
  6809. wid: b[j].id,
  6810. works: b[j].content,
  6811. sName: b[j].name,
  6812. type: 3,
  6813. time: b[j].time,
  6814. score: b[j].score,
  6815. img: b[j].img,
  6816. likesCount: likesCount,
  6817. commentCount: commentCount,
  6818. isLikes: isLikes,
  6819. commentJson: commentJson,
  6820. }
  6821. if (b[j].ttype == 1) {
  6822. this.worksTeacher[i].push(_works);
  6823. } else {
  6824. this.worksStudent2[i].push(_works);
  6825. }
  6826. this.worksStudent[i].push(_works);
  6827. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6828. } else if (b[j].type == 6 && b[j].atool != 50) {
  6829. let _works = {
  6830. userid: b[j].userid,
  6831. ateacher: b[j].ateacher,
  6832. wid: b[j].id,
  6833. works: b[j].content,
  6834. sName: b[j].name,
  6835. type: 4,
  6836. time: b[j].time,
  6837. score: b[j].score,
  6838. img: b[j].img,
  6839. likesCount: likesCount,
  6840. commentCount: commentCount,
  6841. isLikes: isLikes,
  6842. commentJson: commentJson,
  6843. }
  6844. if (b[j].ttype == 1) {
  6845. this.worksTeacher[i].push(_works);
  6846. } else {
  6847. this.worksStudent2[i].push(_works);
  6848. }
  6849. this.worksStudent[i].push(_works);
  6850. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6851. } else if (b[j].type == 7 && b[j].atool != 50) {
  6852. let _works = {
  6853. userid: b[j].userid,
  6854. ateacher: b[j].ateacher,
  6855. wid: b[j].id,
  6856. works: b[j].content,
  6857. sName: b[j].name,
  6858. type: 5,
  6859. time: b[j].time,
  6860. score: b[j].score,
  6861. img: b[j].img,
  6862. likesCount: likesCount,
  6863. commentCount: commentCount,
  6864. isLikes: isLikes,
  6865. commentJson: commentJson,
  6866. }
  6867. if (b[j].ttype == 1) {
  6868. this.worksTeacher[i].push(_works);
  6869. } else {
  6870. this.worksStudent2[i].push(_works);
  6871. }
  6872. this.worksStudent[i].push(_works);
  6873. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6874. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  6875. let _works = {
  6876. userid: b[j].userid,
  6877. ateacher: b[j].ateacher,
  6878. wid: b[j].id,
  6879. works: b[j].content,
  6880. sName: b[j].name,
  6881. type: 12,
  6882. time: b[j].time,
  6883. score: b[j].score,
  6884. img: b[j].img,
  6885. likesCount: likesCount,
  6886. commentCount: commentCount,
  6887. isLikes: isLikes,
  6888. commentJson: commentJson,
  6889. }
  6890. if (b[j].ttype == 1) {
  6891. this.worksTeacher[i].push(_works);
  6892. } else {
  6893. this.worksStudent2[i].push(_works);
  6894. }
  6895. this.worksStudent[i].push(_works);
  6896. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6897. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  6898. let _works = {
  6899. userid: b[j].userid,
  6900. ateacher: b[j].ateacher,
  6901. wid: b[j].id,
  6902. works: b[j].content,
  6903. sName: b[j].name,
  6904. type: 0,
  6905. time: b[j].time,
  6906. score: b[j].score,
  6907. img: b[j].img,
  6908. likesCount: likesCount,
  6909. commentCount: commentCount,
  6910. isLikes: isLikes,
  6911. commentJson: commentJson,
  6912. }
  6913. if (b[j].ttype == 1) {
  6914. this.worksTeacher[i].push(_works);
  6915. } else {
  6916. this.worksStudent2[i].push(_works);
  6917. }
  6918. this.worksStudent[i].push(_works);
  6919. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6920. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  6921. let _works = {
  6922. userid: b[j].userid,
  6923. ateacher: b[j].ateacher,
  6924. wid: b[j].id,
  6925. works: b[j].content,
  6926. sName: b[j].name,
  6927. type: 0,
  6928. time: b[j].time,
  6929. score: b[j].score,
  6930. img: b[j].img,
  6931. likesCount: likesCount,
  6932. commentCount: commentCount,
  6933. isLikes: isLikes,
  6934. commentJson: commentJson,
  6935. }
  6936. if (b[j].ttype == 1) {
  6937. this.worksTeacher[i].push(_works);
  6938. } else {
  6939. this.worksStudent2[i].push(_works);
  6940. }
  6941. this.worksStudent[i].push(_works);
  6942. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6943. }
  6944. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  6945. let _works = {
  6946. userid: b[j].userid,
  6947. ateacher: b[j].ateacher,
  6948. wid: b[j].id,
  6949. works: b[j].content,
  6950. sName: b[j].name,
  6951. type: 2,
  6952. time: b[j].time,
  6953. score: b[j].score,
  6954. img: b[j].img,
  6955. likesCount: likesCount,
  6956. commentCount: commentCount,
  6957. isLikes: isLikes,
  6958. commentJson: commentJson,
  6959. }
  6960. if (b[j].ttype == 1) {
  6961. this.worksTeacher[i].push(_works);
  6962. } else {
  6963. this.worksStudent2[i].push(_works);
  6964. }
  6965. this.worksStudent[i].push(_works);
  6966. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6967. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  6968. //问卷
  6969. let _works = {
  6970. userid: b[j].userid,
  6971. ateacher: b[j].ateacher,
  6972. wid: b[j].id,
  6973. works: b[j].content,
  6974. sName: b[j].name,
  6975. type: 2,
  6976. time: b[j].time,
  6977. score: b[j].score,
  6978. img: b[j].img,
  6979. likesCount: likesCount,
  6980. commentCount: commentCount,
  6981. isLikes: isLikes,
  6982. commentJson: commentJson,
  6983. }
  6984. if (b[j].ttype == 1) {
  6985. this.worksTeacher[i].push(_works);
  6986. } else {
  6987. this.worksStudent2[i].push(_works);
  6988. }
  6989. this.worksStudent[i].push(_works);
  6990. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  6991. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  6992. //选择题
  6993. let _works = {
  6994. userid: b[j].userid,
  6995. ateacher: b[j].ateacher,
  6996. wid: b[j].id,
  6997. works: b[j].content,
  6998. sName: b[j].name,
  6999. type: 8,
  7000. time: b[j].time,
  7001. score: b[j].score,
  7002. img: b[j].img,
  7003. likesCount: likesCount,
  7004. commentCount: commentCount,
  7005. isLikes: isLikes,
  7006. commentJson: commentJson,
  7007. }
  7008. if (b[j].ttype == 1) {
  7009. this.worksTeacher[i].push(_works);
  7010. } else {
  7011. this.worksStudent2[i].push(_works);
  7012. }
  7013. this.worksStudent[i].push(_works);
  7014. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7015. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  7016. //选择题
  7017. let _works = {
  7018. userid: b[j].userid,
  7019. ateacher: b[j].ateacher,
  7020. wid: b[j].id,
  7021. works: b[j].content,
  7022. sName: b[j].name,
  7023. type: 9,
  7024. time: b[j].time,
  7025. score: b[j].score,
  7026. img: b[j].img,
  7027. likesCount: likesCount,
  7028. commentCount: commentCount,
  7029. isLikes: isLikes,
  7030. commentJson: commentJson,
  7031. }
  7032. if (b[j].ttype == 1) {
  7033. this.worksTeacher[i].push(_works);
  7034. } else {
  7035. this.worksStudent2[i].push(_works);
  7036. }
  7037. this.worksStudent[i].push(_works);
  7038. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7039. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  7040. //选择题
  7041. let _works = {
  7042. userid: b[j].userid,
  7043. ateacher: b[j].ateacher,
  7044. wid: b[j].id,
  7045. works: b[j].content,
  7046. sName: b[j].name,
  7047. type: 10,
  7048. time: b[j].time,
  7049. score: b[j].score,
  7050. img: b[j].img,
  7051. likesCount: likesCount,
  7052. commentCount: commentCount,
  7053. isLikes: isLikes,
  7054. commentJson: commentJson,
  7055. }
  7056. if (b[j].ttype == 1) {
  7057. this.worksTeacher[i].push(_works);
  7058. } else {
  7059. this.worksStudent2[i].push(_works);
  7060. }
  7061. this.worksStudent[i].push(_works);
  7062. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7063. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  7064. //选择题
  7065. let _works = {
  7066. userid: b[j].userid,
  7067. ateacher: b[j].ateacher,
  7068. wid: b[j].id,
  7069. works: b[j].content,
  7070. sName: b[j].name,
  7071. type: 13,
  7072. time: b[j].time,
  7073. score: b[j].score,
  7074. img: b[j].img,
  7075. likesCount: likesCount,
  7076. commentCount: commentCount,
  7077. isLikes: isLikes,
  7078. commentJson: commentJson,
  7079. }
  7080. if (b[j].ttype == 1) {
  7081. this.worksTeacher[i].push(_works);
  7082. } else {
  7083. this.worksStudent2[i].push(_works);
  7084. }
  7085. this.worksStudent[i].push(_works);
  7086. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7087. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  7088. let _gindex = JSON.parse(b[j].content);
  7089. if (
  7090. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  7091. b[j].userid
  7092. ) != -1
  7093. ) {
  7094. this.worksStudent[i][_gindex.groupIndex].push({
  7095. userid: b[j].userid,
  7096. ateacher: b[j].ateacher,
  7097. wid: b[j].id,
  7098. works: _gindex.url,
  7099. sName: b[j].name,
  7100. type: _gindex.type,
  7101. time: b[j].time,
  7102. score: b[j].score,
  7103. img: b[j].img,
  7104. likesCount: likesCount,
  7105. commentCount: commentCount,
  7106. isLikes: isLikes,
  7107. commentJson: commentJson,
  7108. });
  7109. }
  7110. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7111. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  7112. let _works = {
  7113. userid: b[j].userid,
  7114. ateacher: b[j].ateacher,
  7115. wid: b[j].id,
  7116. works: b[j].content,
  7117. sName: b[j].name ? b[j].name : b[j].userid,
  7118. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  7119. time: b[j].time,
  7120. score: b[j].score,
  7121. img: b[j].img,
  7122. likesCount: likesCount,
  7123. commentCount: commentCount,
  7124. isLikes: isLikes,
  7125. commentJson: commentJson,
  7126. }
  7127. if (b[j].ttype == 1) {
  7128. this.worksTeacher[i].push(_works);
  7129. } else {
  7130. this.worksStudent2[i].push(_works);
  7131. }
  7132. this.worksStudent[i].push(_works);
  7133. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7134. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  7135. let _works = {
  7136. userid: b[j].userid,
  7137. ateacher: b[j].ateacher,
  7138. wid: b[j].id,
  7139. works: b[j].content,
  7140. sName: b[j].name ? b[j].name : b[j].userid,
  7141. type: 12,
  7142. time: b[j].time,
  7143. score: b[j].score,
  7144. img: b[j].img,
  7145. likesCount: likesCount,
  7146. commentCount: commentCount,
  7147. isLikes: isLikes,
  7148. commentJson: commentJson,
  7149. }
  7150. if (b[j].ttype == 1) {
  7151. this.worksTeacher[i].push(_works);
  7152. } else {
  7153. this.worksStudent2[i].push(_works);
  7154. }
  7155. this.worksStudent[i].push(_works);
  7156. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7157. } else if (a[i].tool[0] == 57 && b[j].atool == 57) {
  7158. let _works = {
  7159. userid: b[j].userid,
  7160. ateacher: b[j].ateacher,
  7161. wid: b[j].id,
  7162. works: b[j].content,
  7163. sName: b[j].name ? b[j].name : b[j].userid,
  7164. type: 12,
  7165. time: b[j].time,
  7166. score: b[j].score,
  7167. img: b[j].img,
  7168. likesCount: likesCount,
  7169. commentCount: commentCount,
  7170. isLikes: isLikes,
  7171. commentJson: commentJson,
  7172. }
  7173. if (b[j].ttype == 1) {
  7174. this.worksTeacher[i].push(_works);
  7175. } else {
  7176. this.worksStudent2[i].push(_works);
  7177. }
  7178. this.worksStudent[i].push(_works);
  7179. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  7180. }
  7181. }
  7182. }
  7183. if (this.worksStudent[i] && this.worksStudent[i].length) {
  7184. this.worksStudent[i] = this.worksStudent[i].sort(function (a, b) {
  7185. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7186. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7187. var scoreA = parseFloat(jscoreA);
  7188. var scoreB = parseFloat(jscoreB);
  7189. if (scoreA == scoreB) {
  7190. return b.likesCount - a.likesCount;
  7191. }
  7192. return scoreB - scoreA;
  7193. });
  7194. }
  7195. if (this.worksStudent2[i] && this.worksStudent2[i].length) {
  7196. this.worksStudent2[i] = this.worksStudent2[i].sort(function (a, b) {
  7197. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7198. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7199. var scoreA = parseFloat(jscoreA);
  7200. var scoreB = parseFloat(jscoreB);
  7201. if (scoreA == scoreB) {
  7202. return b.likesCount - a.likesCount;
  7203. }
  7204. return scoreB - scoreA;
  7205. });
  7206. }
  7207. if (this.worksTeacher[i] && this.worksTeacher[i].length) {
  7208. this.worksTeacher[i] = this.worksTeacher[i].sort(function (a, b) {
  7209. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  7210. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  7211. var scoreA = parseFloat(jscoreA);
  7212. var scoreB = parseFloat(jscoreB);
  7213. if (scoreA == scoreB) {
  7214. return b.likesCount - a.likesCount;
  7215. }
  7216. return scoreB - scoreA;
  7217. });
  7218. }
  7219. }
  7220. for (var i = 0; i < a.length; i++) {
  7221. for (var j = 0; j < b.length; j++) {
  7222. var data = b[j];
  7223. if (i == b[j].tool) {
  7224. if (data.type == 2 || data.type == 8) {
  7225. for (var z = 0; z < this.checkJson[i].length; z++) {
  7226. this.checkJson[i][z].checkPerent = [];
  7227. this.checkJson[i][z].right = Math.round(
  7228. (this.checkJson[i][z].rightPerson.length /
  7229. parseInt(this.worksStudent[i].length)) *
  7230. 100
  7231. );
  7232. let aaaa = this.checkJson[i][z];
  7233. console.log(aaaa);
  7234. for (
  7235. var k = 0;
  7236. k < this.checkJson[i][z].checkCount.length;
  7237. k++
  7238. ) {
  7239. this.checkJson[i][z].checkPerent.push(
  7240. Math.round(
  7241. (this.checkJson[i][z].checkCount[k] /
  7242. parseInt(this.worksStudent[i].length)) *
  7243. 100
  7244. )
  7245. );
  7246. }
  7247. }
  7248. } else if (data.type == 9) {
  7249. for (var z = 0; z < this.checkJson[i].length; z++) {
  7250. this.checkJson[i][z].checkPerent = [];
  7251. this.checkJson[i][z].right = Math.round(
  7252. (this.checkJson[i][z].rightPerson.length /
  7253. this.checkJson[i][z].checkPerson.length) *
  7254. 100
  7255. );
  7256. }
  7257. }
  7258. }
  7259. }
  7260. }
  7261. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  7262. this.joinGroup(gindex);
  7263. }
  7264. this.selectWorksStudent();
  7265. })
  7266. .catch((err) => {
  7267. console.error(err);
  7268. });
  7269. },
  7270. pngToWhiteBg(file) {
  7271. const _file = file;
  7272. let read = new FileReader();
  7273. read.readAsDataURL(file); // 文件转base64
  7274. return new Promise((resolve, reject) => {
  7275. read.onload = (e) => {
  7276. let img = new Image();
  7277. img.src = e.target.result;
  7278. img.onload = async () => {
  7279. // 生成canvas
  7280. let canvas = document.createElement("canvas");
  7281. let context = canvas.getContext("2d");
  7282. // 绘制图片到canvas上
  7283. canvas.width = img.width;
  7284. canvas.height = img.height;
  7285. // 在canvas绘制前填充白色背景
  7286. context.fillStyle = "#fff";
  7287. context.fillRect(0, 0, canvas.width, canvas.height);
  7288. context.drawImage(img, 0, 0);
  7289. let base64 = canvas.toDataURL(file["type"], 1);
  7290. let newFile = this.dataUrlToFile(base64, _file);
  7291. resolve(newFile);
  7292. };
  7293. };
  7294. });
  7295. },
  7296. dataUrlToFile(dataurl, file) {
  7297. let arr = dataurl.split(","),
  7298. mime = arr[0].match(/:(.*?);/)[1],
  7299. bstr = atob(arr[1]),
  7300. n = bstr.length,
  7301. u8arr = new Uint8Array(n);
  7302. while (n--) {
  7303. u8arr[n] = bstr.charCodeAt(n);
  7304. }
  7305. // return new Blob([u8arr], { type: mime });
  7306. return new File([new Blob([u8arr], { type: mime })], file.name, {
  7307. type: mime,
  7308. });
  7309. },
  7310. async beforeUpload1(event, type, i) {
  7311. // this.$message.success('进入上传')
  7312. var file = "";
  7313. if (type == 5) {
  7314. file = event;
  7315. } else {
  7316. file = event.target.files[0];
  7317. }
  7318. var credentials = {
  7319. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7320. secretAccessKey: "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",
  7321. }; //秘钥形式的登录上传
  7322. window.AWS.config.update(credentials);
  7323. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7324. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7325. var _this = this;
  7326. _this.progress = 0;
  7327. _this.proVisible = true;
  7328. _this.isFinishSize = 0;
  7329. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  7330. var b = [
  7331. "DOC",
  7332. "DOCX",
  7333. "DOCM",
  7334. "DOTM",
  7335. "DOTX",
  7336. "PPTX",
  7337. "PPSX",
  7338. "PPT",
  7339. "PPS",
  7340. "PPTM",
  7341. "POTM",
  7342. "PPAM",
  7343. "POTX",
  7344. "PPSM",
  7345. ];
  7346. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7347. var photoA = [
  7348. "BMP",
  7349. "GIF",
  7350. "PNG",
  7351. "JPGE",
  7352. "JPG",
  7353. "TIF",
  7354. "PCX",
  7355. "TGA",
  7356. "EXIF",
  7357. "FPX",
  7358. "SVG",
  7359. "APNG",
  7360. ];
  7361. // if (
  7362. // b.indexOf(
  7363. // file.name
  7364. // .split(".")
  7365. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7366. // ) != -1
  7367. // ) {
  7368. // if (file.size / 1024 / 1024 > 10) {
  7369. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  7370. // return;
  7371. // }
  7372. // } else if (
  7373. // excelA.indexOf(
  7374. // file.name
  7375. // .split(".")
  7376. // [file.name.split(".").length - 1].toLocaleUpperCase()
  7377. // ) != "-1"
  7378. // ) {
  7379. // if (file.size / 1024 / 1024 > 5) {
  7380. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  7381. // return;
  7382. // }
  7383. // }
  7384. if (
  7385. photoA.indexOf(
  7386. file.name
  7387. .split(".")
  7388. [file.name.split(".").length - 1].toLocaleUpperCase()
  7389. ) != -1 &&
  7390. type != 4
  7391. ) {
  7392. // const blob = await imageConversion.compress(file, 0.8)
  7393. file = await this.pngToWhiteBg(file);
  7394. const blob = await imageConversion.compressAccurately(file, 256);
  7395. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7396. file = new File([blob], file.name, { type: file.type });
  7397. }
  7398. if (file) {
  7399. var params = {
  7400. Key:
  7401. file.name.split(".")[0] +
  7402. new Date().getTime() +
  7403. "." +
  7404. file.name.split(".")[file.name.split(".").length - 1],
  7405. ContentType: file.type,
  7406. Body: file,
  7407. "Access-Control-Allow-Credentials": "*",
  7408. ACL: "public-read",
  7409. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7410. var options = {
  7411. // partSize: 2048 * 1024 * 1024,
  7412. partSize: 1024 * 1024 * 1024,
  7413. queueSize: 2,
  7414. leavePartsOnError: true,
  7415. };
  7416. bucket
  7417. .upload(params, options)
  7418. .on("httpUploadProgress", function (evt) {
  7419. //这里可以写进度条
  7420. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7421. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  7422. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  7423. })
  7424. .send(function (err, data) {
  7425. _this.progress = 100;
  7426. _this.isFinishSize = _this.isAllSize;
  7427. setTimeout(() => {
  7428. _this.proVisible = false;
  7429. }, 1000);
  7430. if (err) {
  7431. var a = _this.$refs.upload1.uploadFiles;
  7432. a.splice(a.length - 1, a.length);
  7433. _this.$message.error("上传失败");
  7434. } else {
  7435. // _this.$message.success('上传成功')
  7436. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7437. var c = [
  7438. "AVI",
  7439. "NAVI",
  7440. "MPEG",
  7441. "ASF",
  7442. "MOV",
  7443. "WMV",
  7444. "3GP",
  7445. "RM",
  7446. "RMVB",
  7447. "FLV",
  7448. "F4V",
  7449. "H.264",
  7450. "H.265",
  7451. "REAL VIDEO",
  7452. "MKV",
  7453. "WebM",
  7454. "HDDVD",
  7455. "MP4",
  7456. "MPG",
  7457. "M4V",
  7458. "MGV",
  7459. "OGV",
  7460. "QTM",
  7461. "STR",
  7462. "AMC",
  7463. "DVX",
  7464. "EVO",
  7465. "DAT",
  7466. "OGG",
  7467. "OGM",
  7468. ];
  7469. if (type == 1) {
  7470. _this.studyJuri[0].cover.push({
  7471. name: file.name,
  7472. url: data.Location,
  7473. uid: file.uid,
  7474. });
  7475. if (
  7476. c.indexOf(
  7477. _this.studyJuri[0].cover[0].url
  7478. .split(".")
  7479. [
  7480. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7481. ].toLocaleUpperCase()
  7482. ) != -1
  7483. ) {
  7484. _this.fileType = 2;
  7485. } else if (
  7486. b.indexOf(
  7487. _this.studyJuri[0].cover[0].url
  7488. .split(".")
  7489. [
  7490. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7491. ].toLocaleUpperCase()
  7492. ) != -1
  7493. ) {
  7494. _this.fileType = 1;
  7495. } else if (photoA.indexOf(
  7496. _this.studyJuri[0].cover[0].url
  7497. .split(".")
  7498. [
  7499. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7500. ].toLocaleUpperCase()
  7501. ) != -1) {
  7502. _this.fileType = 0;
  7503. } else {
  7504. _this.fileType = 3;
  7505. }
  7506. _this.imgChange(null, null, type);
  7507. } else if (type == 2) {
  7508. _this.upToolImg = data.Location;
  7509. _this.imgChange(null, null, type);
  7510. _this.addCourseWorks(i);
  7511. } else if (type == 4) {
  7512. _this.addPz("3", data.Location);
  7513. } else if (type == 5) {
  7514. _this.addImgDrawImG(data.Location);
  7515. } else if (type == 6) {
  7516. var _ftype = 1;
  7517. if (
  7518. c.indexOf(
  7519. data.Location.split(".")[
  7520. data.Location.split(".").length - 1
  7521. ].toLocaleUpperCase()
  7522. ) != -1
  7523. ) {
  7524. _ftype = 5;
  7525. } else if (
  7526. b.indexOf(
  7527. data.Location.split(".")[
  7528. data.Location.split(".").length - 1
  7529. ].toLocaleUpperCase()
  7530. ) != -1
  7531. ) {
  7532. _ftype = 4;
  7533. } else {
  7534. _ftype = 1;
  7535. }
  7536. _this.plworkFile.push({
  7537. name: file.name,
  7538. url: data.Location,
  7539. uid: file.uid,
  7540. fileType: _ftype,
  7541. username:
  7542. _this.plworkFile.length + 1 > 10
  7543. ? _this.plworkFile.length + 1
  7544. : "0" + (_this.plworkFile.length + 1),
  7545. });
  7546. } else if (type == 7) {
  7547. _this.addCourseWorksGong(i, data.Location, 32);
  7548. } else if (type == 8) {
  7549. _this.addCourseWorksGong(i, data.Location, 57);
  7550. }
  7551. _this.imgChange(null, null, type);
  7552. console.log(data.Location);
  7553. // _this.$message.success('上传成功'+data.Location)
  7554. }
  7555. });
  7556. }
  7557. },
  7558. async beforeUpload3(event, type, i) {
  7559. // this.$message.success('进入上传')
  7560. let file = "";
  7561. let cfindex2 = 0;
  7562. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  7563. file = event.target.files[cfindex];
  7564. var credentials = {
  7565. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7566. secretAccessKey: "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",
  7567. }; //秘钥形式的登录上传
  7568. window.AWS.config.update(credentials);
  7569. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7570. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7571. var _this = this;
  7572. // _this.progress = 0;
  7573. _this.proVisible2 = true;
  7574. var b = [
  7575. "DOC",
  7576. "DOCX",
  7577. "DOCM",
  7578. "DOTM",
  7579. "DOTX",
  7580. "PPTX",
  7581. "PPSX",
  7582. "PPT",
  7583. "PPS",
  7584. "PPTM",
  7585. "POTM",
  7586. "PPAM",
  7587. "POTX",
  7588. "PPSM",
  7589. ];
  7590. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  7591. var photoA = [
  7592. "BMP",
  7593. "GIF",
  7594. "PNG",
  7595. "JPGE",
  7596. "JPG",
  7597. "TIF",
  7598. "PCX",
  7599. "TGA",
  7600. "EXIF",
  7601. "FPX",
  7602. "SVG",
  7603. "APNG",
  7604. ];
  7605. if (
  7606. photoA.indexOf(
  7607. file.name
  7608. .split(".")
  7609. [file.name.split(".").length - 1].toLocaleUpperCase()
  7610. ) != -1 &&
  7611. type != 4
  7612. ) {
  7613. // const blob = await imageConversion.compress(file, 0.8)
  7614. file = await this.pngToWhiteBg(file);
  7615. const blob = await imageConversion.compressAccurately(file, 256);
  7616. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  7617. file = new File([blob], file.name, { type: file.type });
  7618. }
  7619. if (file) {
  7620. var params = {
  7621. Key:
  7622. file.name.split(".")[0] +
  7623. new Date().getTime() +
  7624. "." +
  7625. file.name.split(".")[file.name.split(".").length - 1],
  7626. ContentType: file.type,
  7627. Body: file,
  7628. "Access-Control-Allow-Credentials": "*",
  7629. ACL: "public-read",
  7630. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7631. var options = {
  7632. // partSize: 2048 * 1024 * 1024,
  7633. partSize: 1024 * 1024 * 1024,
  7634. queueSize: 2,
  7635. leavePartsOnError: true,
  7636. };
  7637. bucket
  7638. .upload(params, options)
  7639. .on("httpUploadProgress", function (evt) {
  7640. //这里可以写进度条
  7641. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7642. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7643. })
  7644. .send(function (err, data) {
  7645. // _this.progress = 100;
  7646. cfindex2++;
  7647. setTimeout(() => {
  7648. if (
  7649. cfindex2 == event.target.files.length - 1 ||
  7650. cfindex2 > event.target.files.length - 1
  7651. ) {
  7652. _this.proVisible2 = false;
  7653. }
  7654. }, 1000);
  7655. if (err) {
  7656. var a = _this.$refs.upload1.uploadFiles;
  7657. a.splice(a.length - 1, a.length);
  7658. _this.$message.error("上传失败");
  7659. } else {
  7660. // _this.$message.success('上传成功')
  7661. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  7662. var c = [
  7663. "AVI",
  7664. "NAVI",
  7665. "MPEG",
  7666. "ASF",
  7667. "MOV",
  7668. "WMV",
  7669. "3GP",
  7670. "RM",
  7671. "RMVB",
  7672. "FLV",
  7673. "F4V",
  7674. "H.264",
  7675. "H.265",
  7676. "REAL VIDEO",
  7677. "MKV",
  7678. "WebM",
  7679. "HDDVD",
  7680. "MP4",
  7681. "MPG",
  7682. "M4V",
  7683. "MGV",
  7684. "OGV",
  7685. "QTM",
  7686. "STR",
  7687. "AMC",
  7688. "DVX",
  7689. "EVO",
  7690. "DAT",
  7691. "OGG",
  7692. "OGM",
  7693. ];
  7694. if (type == 1) {
  7695. _this.studyJuri[0].cover.push({
  7696. name: file.name,
  7697. url: data.Location,
  7698. uid: file.uid,
  7699. });
  7700. if (
  7701. c.indexOf(
  7702. _this.studyJuri[0].cover[0].url
  7703. .split(".")
  7704. [
  7705. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7706. ].toLocaleUpperCase()
  7707. ) != -1
  7708. ) {
  7709. _this.fileType = 2;
  7710. } else if (
  7711. b.indexOf(
  7712. _this.studyJuri[0].cover[0].url
  7713. .split(".")
  7714. [
  7715. _this.studyJuri[0].cover[0].url.split(".").length - 1
  7716. ].toLocaleUpperCase()
  7717. ) != -1
  7718. ) {
  7719. _this.fileType = 1;
  7720. } else {
  7721. _this.fileType = 0;
  7722. }
  7723. _this.imgChange(null, null, type);
  7724. } else if (type == 2) {
  7725. _this.upToolImg = data.Location;
  7726. _this.imgChange(null, null, type);
  7727. _this.addCourseWorks(i);
  7728. } else if (type == 4) {
  7729. _this.addPz("3", data.Location);
  7730. } else if (type == 5) {
  7731. _this.addImgDrawImG(data.Location);
  7732. } else if (type == 6) {
  7733. var _ftype = 1;
  7734. if (
  7735. c.indexOf(
  7736. data.Location.split(".")[
  7737. data.Location.split(".").length - 1
  7738. ].toLocaleUpperCase()
  7739. ) != -1
  7740. ) {
  7741. _ftype = 5;
  7742. } else if (
  7743. b.indexOf(
  7744. data.Location.split(".")[
  7745. data.Location.split(".").length - 1
  7746. ].toLocaleUpperCase()
  7747. ) != -1
  7748. ) {
  7749. _ftype = 4;
  7750. } else {
  7751. _ftype = 1;
  7752. }
  7753. _this.plworkFile.push({
  7754. name: file.name,
  7755. url: data.Location,
  7756. uid: file.uid,
  7757. fileType: _ftype,
  7758. username:
  7759. _this.plworkFile.length+1 > 9
  7760. ? _this.plworkFile.length+1
  7761. : "0" + (_this.plworkFile.length+1),
  7762. });
  7763. }
  7764. _this.imgChange(null, null, type);
  7765. console.log(data.Location);
  7766. // _this.$message.success('上传成功'+data.Location)
  7767. }
  7768. });
  7769. }
  7770. }
  7771. },
  7772. beforeUpload2(event, type) {
  7773. var file = event.target.files[0];
  7774. var credentials = {
  7775. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  7776. secretAccessKey: "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",
  7777. }; //秘钥形式的登录上传
  7778. window.AWS.config.update(credentials);
  7779. window.AWS.config.region = "cn-northwest-1"; //设置区域
  7780. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  7781. var _this = this;
  7782. _this.progress = 0;
  7783. _this.proVisible = true;
  7784. if (file) {
  7785. var params = {
  7786. Key:
  7787. file.name.split(".")[0] +
  7788. new Date().getTime() +
  7789. "." +
  7790. file.name.split(".")[file.name.split(".").length - 1],
  7791. ContentType: file.type,
  7792. Body: file,
  7793. "Access-Control-Allow-Credentials": "*",
  7794. ACL: "public-read",
  7795. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  7796. var options = {
  7797. partSize: 2048 * 1024 * 1024,
  7798. queueSize: 2,
  7799. leavePartsOnError: true,
  7800. };
  7801. bucket
  7802. .upload(params, options)
  7803. .on("httpUploadProgress", function (evt) {
  7804. //这里可以写进度条
  7805. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  7806. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  7807. })
  7808. .send(function (err, data) {
  7809. _this.progress = 100;
  7810. setTimeout(() => {
  7811. _this.proVisible = false;
  7812. }, 1000);
  7813. if (err) {
  7814. var a = _this.$refs.upload1.uploadFiles;
  7815. a.splice(a.length - 1, a.length);
  7816. _this.$message.error("上传失败");
  7817. } else {
  7818. if (type == 2) {
  7819. _this.studyJuri[0].upVedio.push({
  7820. name: file.name,
  7821. url: data.Location,
  7822. uid: file.uid,
  7823. });
  7824. _this.imgChange(null, null, type);
  7825. } else if (type == 3) {
  7826. _this.studyJuri[0].upFile.push({
  7827. name: file.name,
  7828. url: data.Location,
  7829. uid: file.uid,
  7830. });
  7831. _this.imgChange(null, null, type);
  7832. }
  7833. console.log(data.Location);
  7834. }
  7835. });
  7836. }
  7837. },
  7838. allScrell() {
  7839. window.parent.postMessage({ allScreen: this.screenType + "NT" }, "*");
  7840. },
  7841. nextToolindex(type) {
  7842. if (type == 'last') {
  7843. if (this.toolIndex == 0) {
  7844. this.$message.error("已经是第一个步骤")
  7845. return;
  7846. }
  7847. this.toolIndex = this.toolIndex - 1
  7848. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7849. } else if (type == 'next') {
  7850. if (this.toolIndex == this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length - 1) {
  7851. this.$message.error("已经是最后一个步骤")
  7852. return;
  7853. }
  7854. this.toolIndex = this.toolIndex + 1
  7855. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7856. }
  7857. this.$forceUpdate();
  7858. },
  7859. checkBz(index){
  7860. this.toolIndex = index
  7861. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  7862. this.$forceUpdate();
  7863. },
  7864. nextOrpreSteps(t) {
  7865. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  7866. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  7867. return;
  7868. }
  7869. var b = this.chapInfoList.length - 1;
  7870. if (t == 0) {
  7871. if (this.courseType == 0) {
  7872. if (this.taskCount == 0) {
  7873. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  7874. if (this.IsLookOpen) {
  7875. if (
  7876. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  7877. ) {
  7878. if (
  7879. this.courseDetail.userid != this.userid &&
  7880. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  7881. ) {
  7882. this.$message.error("任务未解锁");
  7883. } else {
  7884. this.$message.error("上一任务未解锁");
  7885. }
  7886. return;
  7887. }
  7888. }
  7889. this.navList[this.courseType].isOpen = false;
  7890. this.courseType = b;
  7891. this.taskCount =
  7892. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7893. .length - 1;
  7894. this.navList[this.courseType].isOpen = true;
  7895. } else {
  7896. this.taskCount--;
  7897. }
  7898. } else {
  7899. if (this.taskCount == 0) {
  7900. this.navList[this.courseType].isOpen = false;
  7901. this.courseType--;
  7902. this.taskCount =
  7903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  7904. .length - 1;
  7905. this.navList[this.courseType].isOpen = true;
  7906. } else {
  7907. this.taskCount--;
  7908. }
  7909. }
  7910. } else {
  7911. if (this.courseType == b) {
  7912. if (
  7913. this.taskCount ==
  7914. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7915. 1
  7916. ) {
  7917. this.navList[this.courseType].isOpen = false;
  7918. this.courseType = 0;
  7919. this.taskCount = 0;
  7920. this.navList[this.courseType].isOpen = true;
  7921. } else {
  7922. var bbb = parseInt(this.taskCount) + 1;
  7923. if (
  7924. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7925. .isLook &&
  7926. this.courseDetail.userid != this.userid &&
  7927. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7928. this.IsLookOpen
  7929. ) {
  7930. this.$message.error("任务未解锁");
  7931. return;
  7932. }
  7933. this.taskCount++;
  7934. if (this.IsLookOpen) {
  7935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7936. this.taskCount
  7937. ].isLook = true;
  7938. this.addCourseState(3);
  7939. }
  7940. }
  7941. } else {
  7942. if (
  7943. this.taskCount ==
  7944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  7945. 1
  7946. ) {
  7947. var bbb = parseInt(this.courseType) + 1;
  7948. if (
  7949. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  7950. this.courseDetail.userid != this.userid &&
  7951. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7952. this.IsLookOpen
  7953. ) {
  7954. this.$message.error("任务未解锁");
  7955. return;
  7956. }
  7957. this.navList[this.courseType].isOpen = false;
  7958. this.courseType++;
  7959. this.taskCount = 0;
  7960. this.navList[this.courseType].isOpen = true;
  7961. } else {
  7962. var bbb = parseInt(this.taskCount) + 1;
  7963. if (
  7964. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  7965. .isLook &&
  7966. this.courseDetail.userid != this.userid &&
  7967. this.courseDetail.course_teacher.indexOf(this.userid) == -1 &&
  7968. this.IsLookOpen
  7969. ) {
  7970. this.$message.error("任务未解锁");
  7971. return;
  7972. }
  7973. this.taskCount++;
  7974. }
  7975. if (this.IsLookOpen) {
  7976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  7977. this.taskCount
  7978. ].isLook = true;
  7979. this.addCourseState(3);
  7980. }
  7981. }
  7982. }
  7983. document.scrollingElement.scrollTop = 0;
  7984. this.showType = 0;
  7985. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  7986. this.toolIndex = null
  7987. this.isNoHomeWork = false;
  7988. (this.studyJuri = [
  7989. {
  7990. content: "",
  7991. cover: [],
  7992. upVedio: [],
  7993. upFile: [],
  7994. },
  7995. ]),
  7996. (this.radio = []);
  7997. this.isClickNav = "";
  7998. this.selectPz();
  7999. this.getHomeWork();
  8000. this.getCourseDetail();
  8001. this.$forceUpdate();
  8002. },
  8003. openTask(s, n, i) {
  8004. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8005. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8006. return;
  8007. }
  8008. if (this.IsLookOpen) {
  8009. if (
  8010. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  8011. this.courseDetail.userid != this.userid &&
  8012. this.courseDetail.course_teacher.indexOf(this.userid) == -1
  8013. ) {
  8014. this.$message.error("任务未解锁");
  8015. return;
  8016. }
  8017. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  8018. if (
  8019. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  8020. .isLook
  8021. ) {
  8022. this.$message.error("上一任务未解锁");
  8023. return;
  8024. }
  8025. } else if (s > this.courseType) {
  8026. if (n > 0) {
  8027. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  8028. this.$message.error("上一任务未解锁");
  8029. return;
  8030. }
  8031. } else {
  8032. if (
  8033. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  8034. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  8035. ].isLook
  8036. ) {
  8037. this.$message.error("上一任务未解锁");
  8038. return;
  8039. }
  8040. }
  8041. }
  8042. }
  8043. this.courseType = s;
  8044. this.navId = i;
  8045. this.taskCount = n;
  8046. if (this.IsLookOpen) {
  8047. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8048. this.taskCount
  8049. ].isLook = true;
  8050. this.addCourseState(3);
  8051. }
  8052. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  8053. this.isCloseList[ci].isClose = 0;
  8054. }
  8055. this.showType = 0;
  8056. this.isNoHomeWork = false;
  8057. (this.studyJuri = [
  8058. {
  8059. content: "",
  8060. cover: [],
  8061. upVedio: [],
  8062. upFile: [],
  8063. },
  8064. ]),
  8065. (this.radio = []);
  8066. document.scrollingElement.scrollTop = 0;
  8067. this.toolIndex = null
  8068. // setTimeout(() => {
  8069. // let a = document.getElementById(i);
  8070. // if (a.offsetTop - 110 == 0) {
  8071. // window.scrollTo(0, 0);
  8072. // } else {
  8073. // window.scrollTo(0, a.offsetTop);
  8074. // }
  8075. // }, 0);
  8076. this.selectPz();
  8077. this.getHomeWork();
  8078. this.getCourseDetail();
  8079. },
  8080. get(i) {
  8081. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8082. this.$message.error('已经开启跟随模式,请认真跟堂听讲')
  8083. return;
  8084. }
  8085. this.navList[i].isOpen = !this.navList[i].isOpen;
  8086. },
  8087. addQuestion() {
  8088. this.answerList.push({
  8089. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8090. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8091. });
  8092. let params = [
  8093. {
  8094. uid: this.userid,
  8095. cid: this.id,
  8096. stage: this.courseType,
  8097. task: this.taskCount,
  8098. tool: this.toolindex,
  8099. content: JSON.stringify(this.answerList),
  8100. type: 3,
  8101. },
  8102. ];
  8103. this.ajax
  8104. .post(this.$store.state.api + "addCourseWorks", params)
  8105. .then((res) => {
  8106. this.$message({
  8107. message: "提交成功",
  8108. type: "success",
  8109. });
  8110. this.answerList = [];
  8111. this.questionAnswer = ""
  8112. this.answerDialogVisible = false;
  8113. this.selectStudent();
  8114. this.selectSWorks();
  8115. this.selectSLook();
  8116. })
  8117. .catch((err) => {
  8118. this.$message.error("提交失败");
  8119. console.error(err);
  8120. });
  8121. },
  8122. addQuestionTeacher() {
  8123. this.answerList.push({
  8124. answerTitle: this.answerQ.replaceAll(/%/g, "%25"),
  8125. answer: this.questionAnswer.replaceAll(/%/g, "%25"),
  8126. });
  8127. let params = [
  8128. {
  8129. uid: this.sStudent.userid,
  8130. cid: this.id,
  8131. stage: this.courseType,
  8132. task: this.taskCount,
  8133. tool: this.toolindex,
  8134. content: JSON.stringify(this.answerList),
  8135. type: 3,
  8136. ateacher: this.userid,
  8137. },
  8138. ];
  8139. this.ajax
  8140. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  8141. .then((res) => {
  8142. this.$message({
  8143. message: "提交成功",
  8144. type: "success",
  8145. });
  8146. this.answerList = [];
  8147. this.questionAnswer = ""
  8148. this.answerDialogVisibleTeacher = false;
  8149. this.selectStudent();
  8150. this.selectSWorks();
  8151. this.selectSLook();
  8152. })
  8153. .catch((err) => {
  8154. this.$message.error("提交失败");
  8155. console.error(err);
  8156. });
  8157. },
  8158. getCourseDetail(type, gindex) {
  8159. let loading;
  8160. if (type != 2) {
  8161. loading = this.$loading.service({
  8162. background: "rgba(255, 255, 255, 0.7)",
  8163. target: document.querySelector(".student_table"),
  8164. });
  8165. }
  8166. let params = {
  8167. courseId: this.id,
  8168. };
  8169. this.ajax
  8170. .get(this.$store.state.api + "selectCourseDetail3", params)
  8171. .then((res) => {
  8172. if (type != 2) {
  8173. loading.close();
  8174. if (this.courseType > (JSON.parse(res.data[0][0].chapters).length - 1)) {
  8175. this.courseType = (JSON.parse(res.data[0][0].chapters).length - 1)
  8176. }
  8177. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8178. .chapterInfo[0].taskJson;
  8179. var b = [
  8180. "AVI",
  8181. "NAVI",
  8182. "MPEG",
  8183. "ASF",
  8184. "MOV",
  8185. "WMV",
  8186. "3GP",
  8187. "RM",
  8188. "RMVB",
  8189. "FLV",
  8190. "F4V",
  8191. "H.264",
  8192. "H.265",
  8193. "REAL VIDEO",
  8194. "MKV",
  8195. "WebM",
  8196. "HDDVD",
  8197. "MP4",
  8198. "MPG",
  8199. "M4V",
  8200. "MGV",
  8201. "OGV",
  8202. "QTM",
  8203. "STR",
  8204. "AMC",
  8205. "DVX",
  8206. "EVO",
  8207. "DAT",
  8208. "OGG",
  8209. "OGM",
  8210. "MP3",
  8211. ];
  8212. for (var i = 0; i < a.length; i++) {
  8213. var c = a[i].chapterData;
  8214. this.vedio[i] = [];
  8215. this.textList[i] = [];
  8216. this.lineList[i] = [];
  8217. this.chapToolList[i] = [];
  8218. this.file[i] = [];
  8219. this.fileC[i] = [];
  8220. for (var j = 0; j < c.length; j++) {
  8221. if (c[j].type == 7) {
  8222. this.chapToolList[i].push(c[j]);
  8223. } else if (c[j].type == 8) {
  8224. this.lineList[i].push(c[j]);
  8225. } else if (c[j].type == 6) {
  8226. this.textList[i].push(c[j]);
  8227. } else if (c[j].type == 12) {
  8228. this.fileC[i].push(c[j]);
  8229. } else {
  8230. if (
  8231. b.indexOf(
  8232. c[j].url
  8233. .split(".")
  8234. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8235. ) != -1
  8236. ) {
  8237. this.vedio[i].push(c[j]);
  8238. } else {
  8239. this.file[i].push(c[j]);
  8240. }
  8241. }
  8242. }
  8243. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8244. d.sources[0].src =
  8245. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8246. this.playerO[i] = d;
  8247. }
  8248. this.courseDetail = res.data[0][0];
  8249. this.tcid = this.arrayToArray(this.courseDetail.juri ? this.courseDetail.juri.split(",") : [], this.tcid2 ? this.tcid2.split(",") : []).join(",")
  8250. console.log(this.tcid);
  8251. this.evalua = res.data[0][0].evaId;
  8252. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  8253. this.courseType
  8254. ];
  8255. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  8256. if (this.tcid && res.data[1].length) {
  8257. let _inviteA = []
  8258. for (var ik = 0; ik < res.data[1].length; ik++) {
  8259. _inviteA.push({ cid: res.data[1][ik].classid, ic: res.data[1][ik].code });
  8260. }
  8261. for (var ik = 0; ik < _inviteA.length; ik++) {
  8262. if (this.arrayToArray(_inviteA[ik].cid.split(","), this.tcid.split(",")).length) {
  8263. this.inviteCode = _inviteA[ik].ic
  8264. break;
  8265. }
  8266. }
  8267. }
  8268. for (var l = 0; l < this.chapInfoList.length; l++) {
  8269. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8270. for (var m = 0; m < w.length; m++) {
  8271. w[m].id = l + "-" + m;
  8272. }
  8273. }
  8274. if (
  8275. !this.vedio[this.taskCount][0] ||
  8276. this.vedio[this.taskCount][0].url == ""
  8277. ) {
  8278. if (
  8279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8280. this.taskCount
  8281. ].chapterData.length > 0
  8282. ) {
  8283. // if (
  8284. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8285. // this.taskCount
  8286. // ].chapterData[0].type != 8
  8287. // ) {
  8288. let _url =
  8289. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8290. this.taskCount
  8291. ].chapterData[0].url;
  8292. if (
  8293. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8294. this.taskCount
  8295. ].chapterData[0].type == 8
  8296. ) {
  8297. this.showType = 2;
  8298. if (
  8299. _url.indexOf("https://") == -1 &&
  8300. _url.indexOf("http://") == -1
  8301. ) {
  8302. _url = "https://" + _url;
  8303. }
  8304. this.pptImgUrl1 = _url;
  8305. this.isClickNav = "line0";
  8306. } else if (
  8307. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8308. this.taskCount
  8309. ].chapterData[0].type == 3
  8310. ) {
  8311. if (
  8312. _url
  8313. .split(".")
  8314. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8315. ) {
  8316. this.showType = 3;
  8317. this.pptImgUrl1 = _url;
  8318. this.isClickNav = "word0";
  8319. } else if (
  8320. this.isAssetTypeAnImage(
  8321. _url
  8322. .split(".")
  8323. [_url.split(".").length - 1].toLocaleLowerCase()
  8324. )
  8325. ) {
  8326. this.showType = 4;
  8327. this.pptImgUrl1 = _url;
  8328. this.isClickNav = "word0";
  8329. } else {
  8330. this.showType = 2;
  8331. this.pptImgUrl1 =
  8332. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8333. _url;
  8334. this.isClickNav = "word0";
  8335. }
  8336. } else if (
  8337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8338. this.taskCount
  8339. ].chapterData[0].type == 6
  8340. ) {
  8341. this.showType = 1;
  8342. this.text = this.textList[this.taskCount][0];
  8343. this.isClickNav = "text0";
  8344. }
  8345. }
  8346. } else {
  8347. this.isClickNav = "video0";
  8348. }
  8349. if (this.toolIndex == null && this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose.length) {
  8350. this.toolIndex = 0
  8351. this.tool = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[this.toolIndex]
  8352. }
  8353. } else {
  8354. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  8355. .chapterInfo[0].taskJson;
  8356. var b = [
  8357. "AVI",
  8358. "NAVI",
  8359. "MPEG",
  8360. "ASF",
  8361. "MOV",
  8362. "WMV",
  8363. "3GP",
  8364. "RM",
  8365. "RMVB",
  8366. "FLV",
  8367. "F4V",
  8368. "H.264",
  8369. "H.265",
  8370. "REAL VIDEO",
  8371. "MKV",
  8372. "WebM",
  8373. "HDDVD",
  8374. "MP4",
  8375. "MPG",
  8376. "M4V",
  8377. "MGV",
  8378. "OGV",
  8379. "QTM",
  8380. "STR",
  8381. "AMC",
  8382. "DVX",
  8383. "EVO",
  8384. "DAT",
  8385. "OGG",
  8386. "OGM",
  8387. "MP3",
  8388. ];
  8389. for (var i = 0; i < a.length; i++) {
  8390. var c = a[i].chapterData;
  8391. this.vedio[i] = [];
  8392. this.textList[i] = [];
  8393. this.lineList[i] = [];
  8394. this.chapToolList[i] = [];
  8395. this.file[i] = [];
  8396. this.fileC[i] = [];
  8397. for (var j = 0; j < c.length; j++) {
  8398. if (c[j].type == 7) {
  8399. this.chapToolList[i].push(c[j]);
  8400. } else if (c[j].type == 8) {
  8401. this.lineList[i].push(c[j]);
  8402. } else if (c[j].type == 6) {
  8403. this.textList[i].push(c[j]);
  8404. } else if (c[j].type == 12) {
  8405. this.fileC[i].push(c[j]);
  8406. } else {
  8407. if (
  8408. b.indexOf(
  8409. c[j].url
  8410. .split(".")
  8411. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  8412. ) != -1
  8413. ) {
  8414. this.vedio[i].push(c[j]);
  8415. } else {
  8416. this.file[i].push(c[j]);
  8417. }
  8418. }
  8419. }
  8420. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8421. d.sources[0].src =
  8422. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  8423. this.playerO[i] = d;
  8424. }
  8425. if (
  8426. !this.vedio[this.taskCount][0] ||
  8427. this.vedio[this.taskCount][0].url == ""
  8428. ) {
  8429. if (
  8430. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8431. this.taskCount
  8432. ].chapterData.length > 0
  8433. ) {
  8434. // if (
  8435. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8436. // this.taskCount
  8437. // ].chapterData[0].type != 8
  8438. // ) {
  8439. let _url =
  8440. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8441. this.taskCount
  8442. ].chapterData[0].url;
  8443. if (
  8444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8445. this.taskCount
  8446. ].chapterData[0].type == 8
  8447. ) {
  8448. this.showType = 2;
  8449. if (
  8450. _url.indexOf("https://") == -1 &&
  8451. _url.indexOf("http://") == -1
  8452. ) {
  8453. _url = "https://" + _url;
  8454. }
  8455. this.pptImgUrl1 = _url;
  8456. this.isClickNav = "line0";
  8457. } else if (
  8458. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8459. this.taskCount
  8460. ].chapterData[0].type == 3
  8461. ) {
  8462. if (
  8463. _url
  8464. .split(".")
  8465. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  8466. ) {
  8467. this.showType = 3;
  8468. this.pptImgUrl1 = _url;
  8469. this.isClickNav = "word0";
  8470. } else if (
  8471. this.isAssetTypeAnImage(
  8472. _url
  8473. .split(".")
  8474. [_url.split(".").length - 1].toLocaleLowerCase()
  8475. )
  8476. ) {
  8477. this.showType = 4;
  8478. this.pptImgUrl1 = _url;
  8479. this.isClickNav = "word0";
  8480. } else {
  8481. this.showType = 2;
  8482. this.pptImgUrl1 =
  8483. "https://view.officeapps.live.com/op/view.aspx?src=" +
  8484. _url;
  8485. this.isClickNav = "word0";
  8486. }
  8487. } else if (
  8488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  8489. this.taskCount
  8490. ].chapterData[0].type == 6
  8491. ) {
  8492. this.showType = 1;
  8493. this.text = this.textList[this.taskCount][0];
  8494. this.isClickNav = "text0";
  8495. }
  8496. }
  8497. } else {
  8498. this.isClickNav = "video0";
  8499. }
  8500. this.$forceUpdate();
  8501. }
  8502. this.$nextTick(() => {
  8503. setTimeout(() => {
  8504. this.checkEva();
  8505. }, 1000);
  8506. });
  8507. let _this = this;
  8508. if (_this.timer) {
  8509. clearInterval(_this.timer);
  8510. _this.timer = null;
  8511. }
  8512. _this.selectSWorks(gindex);
  8513. _this.selectStudent();
  8514. _this.selectSLook();
  8515. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  8516. _this.setCTask();
  8517. }
  8518. if (_this.dialogVisibleGroup) {
  8519. _this.groupJson =
  8520. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  8521. _this.taskCount
  8522. ].toolChoose[_this.toolindex].groupJson;
  8523. }
  8524. _this.timer = setInterval(function () {
  8525. _this.selectSWorks(gindex);
  8526. }, 5000);
  8527. })
  8528. .catch((err) => {
  8529. loading.close();
  8530. console.error(err);
  8531. });
  8532. },
  8533. getCourseGroup(gindex) {
  8534. let params = {
  8535. cid: this.id,
  8536. classid: this.tcid ? this.tcid : '1',
  8537. };
  8538. this.ajax
  8539. .get(this.$store.state.api + "getCourseGroup", params)
  8540. .then((res) => {
  8541. if (res.data && res.data[0].length) {
  8542. if (!this.isGroup) {
  8543. let courseGroup = JSON.parse(res.data[0][0].group)
  8544. courseGroup.group = courseGroup.group.filter(el => {
  8545. el.works = []
  8546. return el
  8547. });
  8548. this.courseGroup = courseGroup
  8549. let groupPerson = res.data[1]
  8550. let group = JSON.parse(res.data[0][0].group).group
  8551. let courseGroupStudent = {}
  8552. let courseGroupStudentUid = {}
  8553. for (var i = 0; i < group.length; i++) {
  8554. courseGroupStudent[group[i].id] = []
  8555. courseGroupStudentUid[group[i].id] = []
  8556. for (var j = 0; j < groupPerson.length; j++) {
  8557. if (groupPerson[j].groupCid == group[i].id) {
  8558. courseGroupStudent[group[i].id].push(groupPerson[j])
  8559. courseGroupStudentUid[group[i].id].push(groupPerson[j].userid)
  8560. }
  8561. }
  8562. }
  8563. this.courseGroupStudent = courseGroupStudent
  8564. this.courseGroupStudentUid = courseGroupStudentUid
  8565. }
  8566. this.isGroup = true
  8567. this.selectSWorks(gindex);
  8568. } else {
  8569. this.selectSWorks(gindex);
  8570. this.isGroup = false
  8571. }
  8572. })
  8573. .catch((err) => {
  8574. // this.$message.error("网络不佳");
  8575. console.error(err);
  8576. });
  8577. },
  8578. setOperationTime() {
  8579. let _this = this
  8580. if (_this.opertimer) {
  8581. clearInterval(_this.opertimer);
  8582. _this.opertimer = null;
  8583. }
  8584. _this.opertimer = setInterval(() => {
  8585. _this.setoTime('600')
  8586. }, 600000);
  8587. },
  8588. setoTime(time) {
  8589. let params = [
  8590. {
  8591. uid: this.userid,
  8592. cid: this.id,
  8593. type: '2',
  8594. time: time,
  8595. },
  8596. ];
  8597. this.ajax
  8598. .post(this.$store.state.api + "addOperationTimeT2", params)
  8599. .then((res) => {
  8600. })
  8601. .catch((err) => {
  8602. console.error(err);
  8603. });
  8604. },
  8605. addPz(type, content) {
  8606. if (type == "1" && this.pzConText == "") {
  8607. this.$message.error("批注不能为空!");
  8608. return;
  8609. }
  8610. let params = [
  8611. {
  8612. cid: this.id,
  8613. uid: this.userid,
  8614. s: this.courseType,
  8615. t: this.taskCount,
  8616. c: type == "1" ? this.pzConText.replaceAll(/%/g, "%25") : content,
  8617. type: type,
  8618. },
  8619. ];
  8620. this.ajax
  8621. .post(this.$store.state.api + "addPz2", params)
  8622. .then((res) => {
  8623. this.$message({
  8624. message: "添加成功",
  8625. type: "success",
  8626. });
  8627. this.pzConText = "";
  8628. this.addPzDialog = false;
  8629. this.selectPz();
  8630. })
  8631. .catch((err) => {
  8632. this.$message.error("添加失败");
  8633. console.error(err);
  8634. });
  8635. },
  8636. deletePz(id) {
  8637. this.$confirm("确定删除此批注吗?", "提示", {
  8638. confirmButtonText: "确定",
  8639. cancelButtonText: "取消",
  8640. type: "warning",
  8641. })
  8642. .then(() => {
  8643. let params = [
  8644. {
  8645. id: id,
  8646. },
  8647. ];
  8648. this.ajax
  8649. .post(this.$store.state.api + "deletePz", params)
  8650. .then((res) => {
  8651. this.$message({
  8652. message: "删除成功",
  8653. type: "success",
  8654. });
  8655. this.selectPz();
  8656. })
  8657. .catch((err) => {
  8658. this.$message.error("网络异常");
  8659. console.error(err);
  8660. });
  8661. })
  8662. .catch(() => { });
  8663. },
  8664. selectPz() {
  8665. let params = {
  8666. cid: this.id,
  8667. s: this.courseType,
  8668. t: this.taskCount,
  8669. };
  8670. this.ajax
  8671. .get(this.$store.state.api + "selectPzList", params)
  8672. .then((res) => {
  8673. this.pzList = res.data[0];
  8674. })
  8675. .catch((err) => {
  8676. console.error(err);
  8677. });
  8678. },
  8679. updateSLook() {
  8680. let params = {
  8681. sopen: this.sIsOpen == false ? 1 : 2,
  8682. cid: this.id,
  8683. };
  8684. this.ajax
  8685. .get(this.$store.state.api + "updateCourseSLook", params)
  8686. .then((res) => {
  8687. if (this.sIsOpen == true) {
  8688. this.$message({
  8689. message: "权限设置成功",
  8690. type: "success",
  8691. });
  8692. } else {
  8693. this.$message({
  8694. message: "权限关闭成功",
  8695. type: "success",
  8696. });
  8697. }
  8698. })
  8699. .catch((err) => {
  8700. console.error(err);
  8701. });
  8702. },
  8703. updateFollow() {
  8704. let params = [
  8705. {
  8706. sopen: this.IsFollow == false ? 1 : 2,
  8707. cid: this.id,
  8708. },
  8709. ];
  8710. this.ajax
  8711. .post(this.$store.state.api + "updateCourseFollow", params)
  8712. .then((res) => {
  8713. if (this.IsFollow == true) {
  8714. this.$message({
  8715. message: "开启成功",
  8716. type: "success",
  8717. });
  8718. } else {
  8719. this.$message({
  8720. message: "关闭成功",
  8721. type: "success",
  8722. });
  8723. }
  8724. this.setCTask();
  8725. })
  8726. .catch((err) => {
  8727. console.error(err);
  8728. });
  8729. },
  8730. setCTask() {
  8731. let params = [
  8732. {
  8733. sopen: this.courseType + '-' + this.taskCount,
  8734. cid: this.id,
  8735. },
  8736. ];
  8737. this.ajax
  8738. .post(this.$store.state.api + "updateCourseFollowC", params)
  8739. .then((res) => {
  8740. })
  8741. .catch((err) => {
  8742. console.error(err);
  8743. });
  8744. },
  8745. updateLookOpen() {
  8746. let params = [
  8747. {
  8748. sopen: this.IsLookOpen == false ? 1 : 2,
  8749. cid: this.id,
  8750. },
  8751. ];
  8752. this.ajax
  8753. .post(this.$store.state.api + "updateCourseLookOpen", params)
  8754. .then((res) => {
  8755. if (this.IsLookOpen == true) {
  8756. // if (this.courseType != 0 && this.taskCount != 0) {
  8757. // this.openTask(0, 0, "0-0");
  8758. // }
  8759. this.$message({
  8760. message: "权限设置成功",
  8761. type: "success",
  8762. });
  8763. } else {
  8764. this.$message({
  8765. message: "权限关闭成功",
  8766. type: "success",
  8767. });
  8768. }
  8769. this.getCourseState(2);
  8770. })
  8771. .catch((err) => {
  8772. console.error(err);
  8773. });
  8774. },
  8775. selectSLook() {
  8776. let params = {
  8777. cid: this.id,
  8778. };
  8779. this.ajax
  8780. .get(this.$store.state.api + "selectCourseSLook", params)
  8781. .then((res) => {
  8782. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  8783. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  8784. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  8785. if (!this.IsLookOpen) {
  8786. this.setNavList();
  8787. } else {
  8788. this.getCourseState(1);
  8789. }
  8790. if (this.IsFollow && this.courseDetail.userid != this.userid) {
  8791. let _followC = res.data[0][0].followC.split('-')
  8792. if (this.courseType != _followC[0] || this.taskCount != _followC[1]) {
  8793. this.navList[this.courseType].isOpen = false;
  8794. this.courseType = _followC[0]
  8795. this.navList[this.courseType].isOpen = true;
  8796. this.taskCount = parseInt(_followC[1])
  8797. this.navId = res.data[0][0].followC;
  8798. this.getCourseDetail()
  8799. }
  8800. }
  8801. })
  8802. .catch((err) => {
  8803. console.error(err);
  8804. });
  8805. },
  8806. setNavList() {
  8807. if (this.navList.length == 0) {
  8808. this.navList = [];
  8809. for (var l = 0; l < this.chapInfoList.length; l++) {
  8810. var q = this.chapInfoList[l].dyName;
  8811. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8812. var e;
  8813. this.navList.push({
  8814. dyName: q,
  8815. isOpen: l === 0 ? true : false,
  8816. task: [],
  8817. });
  8818. for (var r = 0; r < w.length; r++) {
  8819. e = w[r].task;
  8820. if (this.chapInfoList[l].easy == 1) {
  8821. this.navList[l].task.push({
  8822. taskName: q,
  8823. id: l + "-" + r,
  8824. isLook: w[r].isLook,
  8825. });
  8826. } else {
  8827. this.navList[l].task.push({
  8828. taskName: e,
  8829. id: l + "-" + r,
  8830. isLook: w[r].isLook,
  8831. });
  8832. }
  8833. // this.navId = this.navId ? this.navId : l + "-" + r;
  8834. // this.navId = l + "-" + r;
  8835. }
  8836. }
  8837. this.navList[0].isOpen = false;
  8838. this.navList[this.courseType].isOpen = true;
  8839. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  8840. } else {
  8841. this.setNavList2();
  8842. }
  8843. },
  8844. setNavList2() {
  8845. for (var l = 0; l < this.chapInfoList.length; l++) {
  8846. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  8847. for (var r = 0; r < w.length; r++) {
  8848. this.navList[l].task[r].isLook = w[r].isLook;
  8849. }
  8850. }
  8851. if (
  8852. this.IsLookOpen &&
  8853. !this.navList[this.courseType].task[this.taskCount].isLook
  8854. ) {
  8855. this.openTask(0, 0, "0-0");
  8856. }
  8857. this.$forceUpdate();
  8858. },
  8859. getCourseState(type) {
  8860. let params = {
  8861. cid: this.id,
  8862. };
  8863. this.ajax
  8864. .get(this.$store.state.api + "getCourseState", params)
  8865. .then((res) => {
  8866. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  8867. this.chapInfoList = JSON.parse(res.data[0][0].state);
  8868. this.setNavList();
  8869. this.$forceUpdate();
  8870. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  8871. this.addCourseState(2);
  8872. } else {
  8873. this.addCourseState(1);
  8874. }
  8875. })
  8876. .catch((err) => {
  8877. console.error(err);
  8878. });
  8879. },
  8880. addCourseState(type) {
  8881. let _state = this.chapInfoList;
  8882. // this.courseType this.taskCount
  8883. if (type == 1 || type == 2) {
  8884. for (var i = 0; i < _state.length; i++) {
  8885. let el = _state[i].chapterInfo[0].taskJson;
  8886. for (var j = 0; j < el.length; j++) {
  8887. // if (i == 0 && j == 0) {
  8888. // el[j].isLook = true;
  8889. // } else {
  8890. // el[j].isLook = false;
  8891. // }
  8892. if (
  8893. this.courseType > i ||
  8894. (this.courseType == i && this.taskCount + 1 > j)
  8895. ) {
  8896. el[j].isLook = true;
  8897. } else {
  8898. el[j].isLook = false;
  8899. }
  8900. }
  8901. }
  8902. }
  8903. let params = [
  8904. {
  8905. cid: this.id,
  8906. state: JSON.stringify(_state).replaceAll(/%/g, "%25"),
  8907. },
  8908. ];
  8909. this.ajax
  8910. .post(
  8911. this.$store.state.api +
  8912. (type == 1 ? "addCourseState" : "updateCourseSate"),
  8913. params
  8914. )
  8915. .then((res) => {
  8916. if (this.IsLookOpen) {
  8917. this.setNavList();
  8918. }
  8919. if (type == 3 && type == 2) {
  8920. this.getCourseState(1);
  8921. }
  8922. })
  8923. .catch((err) => {
  8924. console.error(err);
  8925. });
  8926. },
  8927. getHomeWork() {
  8928. let params = {
  8929. cid: this.id,
  8930. stage: this.courseType,
  8931. task: this.taskCount,
  8932. uid: this.userid,
  8933. };
  8934. this.ajax
  8935. .get(this.$store.state.api + "selectWork", params)
  8936. .then((res) => {
  8937. if (res.data[0].length > 0) {
  8938. this.studyJuri = JSON.parse(res.data[0][0].content);
  8939. this.isNoHomeWork = true;
  8940. }
  8941. })
  8942. .catch((err) => {
  8943. console.error(err);
  8944. });
  8945. },
  8946. isAssetTypeAnImage(ext) {
  8947. return (
  8948. [
  8949. "png",
  8950. "jpg",
  8951. "jpeg",
  8952. "bmp",
  8953. "gif",
  8954. "webp",
  8955. "psd",
  8956. "svg",
  8957. "tiff",
  8958. ].indexOf(ext) !== -1
  8959. );
  8960. },
  8961. switchVideo(media) {
  8962. this.playerO = {};
  8963. this.playerOptions.poster = "";
  8964. this.playerOptions.sources[0].src = media;
  8965. this.playerO = this.playerOptions;
  8966. },
  8967. onPlayerPlay() { },
  8968. lookVedio(u, i) {
  8969. this.isClickNav = "";
  8970. // this.playerOptions.sources[0].src = u;
  8971. var d = JSON.parse(JSON.stringify(this.playerOptions));
  8972. d.sources[0].src = u;
  8973. this.playerO[this.taskCount] = d;
  8974. this.showType = 0;
  8975. this.isClickNav = "video" + i;
  8976. this.$forceUpdate();
  8977. },
  8978. lookText(i, t) {
  8979. this.isClickNav = "";
  8980. this.text = this.textList[i][t];
  8981. // this.dialogVisible1 = true;
  8982. this.showType = 1;
  8983. this.isClickNav = "text" + t;
  8984. },
  8985. lookTools(i, t) {
  8986. this.chapTools = this.chapToolList[i][t];
  8987. this.dialogVisible2 = true;
  8988. },
  8989. openFile(f) {
  8990. this.pptImgUrl = "";
  8991. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  8992. if (
  8993. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  8994. -1
  8995. ) {
  8996. this.pptImgUrl =
  8997. "https://view.officeapps.live.com/op/view.aspx?src=" + f;
  8998. this.showPDF = false;
  8999. this.dialogVisible3 = true;
  9000. } else if (
  9001. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  9002. ) {
  9003. this.pptImgUrl = f;
  9004. this.showPDF = true;
  9005. this.dialogVisible3 = true;
  9006. }
  9007. },
  9008. openTable(f) {
  9009. this.tableJson = JSON.parse(f.works);
  9010. this.$forceUpdate();
  9011. this.dialogVisibleTable2 = true;
  9012. },
  9013. doUrl(url, i) {
  9014. this.isClickNav = "";
  9015. this.pptImgUrl1 = "";
  9016. this.showType = 2;
  9017. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  9018. url = "https://" + url;
  9019. }
  9020. this.pptImgUrl1 = url;
  9021. this.isClickNav = "line" + i;
  9022. },
  9023. downFile(f, i) {
  9024. this.isClickNav = "";
  9025. this.pptImgUrl1 = "";
  9026. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  9027. if (
  9028. a.indexOf(
  9029. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  9030. ) != -1
  9031. ) {
  9032. this.pptImgUrl1 =
  9033. "https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
  9034. // this.dialogVisible3 = true;
  9035. this.showType = 2;
  9036. } else if (
  9037. this.isAssetTypeAnImage(
  9038. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  9039. )
  9040. ) {
  9041. this.showType = 4;
  9042. this.pptImgUrl1 = f.url;
  9043. } else if (
  9044. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  9045. "PDF"
  9046. ) {
  9047. this.pptImgUrl1 = f.url;
  9048. // this.dialogVisible3 = true;
  9049. this.showType = 3;
  9050. } else {
  9051. window.open(this.file[i].url);
  9052. }
  9053. this.isClickNav = "word" + i;
  9054. },
  9055. downFileList(i) {
  9056. window.open(this.noImgList[i].url);
  9057. },
  9058. openAddWork() {
  9059. this.dialogVisible = true;
  9060. },
  9061. addBzWorks() {
  9062. let params = [
  9063. {
  9064. uid: this.userid,
  9065. cid: this.id,
  9066. stage: this.courseType,
  9067. task: this.taskCount,
  9068. tool: this.toolindex,
  9069. content: JSON.stringify(this.eScore),
  9070. type: 6,
  9071. },
  9072. ];
  9073. this.ajax
  9074. .post(this.$store.state.api + "addCourseWorks", params)
  9075. .then((res) => {
  9076. this.$message({
  9077. message: "提交成功",
  9078. type: "success",
  9079. });
  9080. this.eScore = { eBzText: "", eStar: [] };
  9081. this.studentEvalDialogVisible = false;
  9082. this.selectSWorks();
  9083. })
  9084. .catch((err) => {
  9085. this.$message.error("提交失败");
  9086. console.error(err);
  9087. });
  9088. },
  9089. addBzWorksTeacher() {
  9090. let params = [
  9091. {
  9092. uid: this.sStudent.userid,
  9093. cid: this.id,
  9094. stage: this.courseType,
  9095. task: this.taskCount,
  9096. tool: this.toolindex,
  9097. content: JSON.stringify(this.eScore),
  9098. type: 6,
  9099. },
  9100. ];
  9101. this.ajax
  9102. .post(this.$store.state.api + "addCourseWorks", params)
  9103. .then((res) => {
  9104. this.$message({
  9105. message: "提交成功",
  9106. type: "success",
  9107. });
  9108. this.eScore = { eBzText: "", eStar: [] };
  9109. this.studentEvalDialogVisibleTeacher = false;
  9110. this.selectSWorks();
  9111. })
  9112. .catch((err) => {
  9113. this.$message.error("提交失败");
  9114. console.error(err);
  9115. });
  9116. },
  9117. addStudentAsk() {
  9118. if (!this.radio.length) {
  9119. this.$message.error("请选择选项");
  9120. return;
  9121. }
  9122. for (var i = 0; i < this.askJson.askCount; i++) {
  9123. if (
  9124. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9125. (this.radio[i] !== 0 && !this.radio[i])
  9126. ) {
  9127. this.$message.error("请选择选项");
  9128. return;
  9129. }
  9130. }
  9131. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9132. let params = [
  9133. {
  9134. uid: this.userid,
  9135. cid: this.id,
  9136. stage: this.courseType,
  9137. task: this.taskCount,
  9138. tool: this.toolindex,
  9139. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9140. type: 2,
  9141. },
  9142. ];
  9143. this.ajax
  9144. .post(this.$store.state.api + "addCourseWorks", params)
  9145. .then((res) => {
  9146. this.$message({
  9147. message: "提交成功",
  9148. type: "success",
  9149. });
  9150. this.askList = [];
  9151. this.dialogVisible5 = false;
  9152. this.selectStudent();
  9153. this.selectSWorks();
  9154. this.selectSLook();
  9155. })
  9156. .catch((err) => {
  9157. this.$message.error("提交失败");
  9158. console.error(err);
  9159. });
  9160. },
  9161. addStudentAskTeacher() {
  9162. if (!this.radio.length) {
  9163. this.$message.error("请选择选项");
  9164. return;
  9165. }
  9166. for (var i = 0; i < this.askJson.askCount; i++) {
  9167. if (
  9168. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9169. (this.radio[i] !== 0 && !this.radio[i])
  9170. ) {
  9171. this.$message.error("请选择选项");
  9172. return;
  9173. }
  9174. }
  9175. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  9176. let params = [
  9177. {
  9178. uid: this.sStudent.userid,
  9179. cid: this.id,
  9180. stage: this.courseType,
  9181. task: this.taskCount,
  9182. tool: this.toolindex,
  9183. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9184. type: 2,
  9185. },
  9186. ];
  9187. this.ajax
  9188. .post(this.$store.state.api + "addCourseWorks", params)
  9189. .then((res) => {
  9190. this.$message({
  9191. message: "提交成功",
  9192. type: "success",
  9193. });
  9194. this.askList = [];
  9195. this.dialogVisible5Teacher = false;
  9196. this.selectStudent();
  9197. this.selectSWorks();
  9198. this.selectSLook();
  9199. })
  9200. .catch((err) => {
  9201. this.$message.error("提交失败");
  9202. console.error(err);
  9203. });
  9204. },
  9205. addStudentTest() {
  9206. if (!this.radio.length) {
  9207. this.$message.error("请选择选项");
  9208. return;
  9209. }
  9210. for (var i = 0; i < this.testJson.testCount; i++) {
  9211. if (
  9212. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9213. (this.radio[i] !== 0 && !this.radio[i])
  9214. ) {
  9215. this.$message.error("请选择选项");
  9216. return;
  9217. }
  9218. }
  9219. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9220. let params = [
  9221. {
  9222. uid: this.userid,
  9223. cid: this.id,
  9224. stage: this.courseType,
  9225. task: this.taskCount,
  9226. tool: this.toolindex,
  9227. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9228. type: 8,
  9229. },
  9230. ];
  9231. this.ajax
  9232. .post(this.$store.state.api + "addCourseWorks", params)
  9233. .then((res) => {
  9234. this.$message({
  9235. message: "提交成功",
  9236. type: "success",
  9237. });
  9238. this.askList = [];
  9239. this.dialogVisibleChoice = false;
  9240. this.selectStudent();
  9241. this.selectSWorks();
  9242. this.selectSLook();
  9243. })
  9244. .catch((err) => {
  9245. this.$message.error("提交失败");
  9246. console.error(err);
  9247. });
  9248. },
  9249. addStudentTestTeacher() {
  9250. if (!this.radio.length) {
  9251. this.$message.error("请选择选项");
  9252. return;
  9253. }
  9254. for (var i = 0; i < this.testJson.testCount; i++) {
  9255. if (
  9256. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  9257. (this.radio[i] !== 0 && !this.radio[i])
  9258. ) {
  9259. this.$message.error("请选择选项");
  9260. return;
  9261. }
  9262. }
  9263. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  9264. let params = [
  9265. {
  9266. uid: this.sStudent.userid,
  9267. cid: this.id,
  9268. stage: this.courseType,
  9269. task: this.taskCount,
  9270. tool: this.toolindex,
  9271. content: JSON.stringify(this.askList).replaceAll(/%/g, "%25"),
  9272. type: 8,
  9273. },
  9274. ];
  9275. this.ajax
  9276. .post(this.$store.state.api + "addCourseWorks", params)
  9277. .then((res) => {
  9278. this.$message({
  9279. message: "提交成功",
  9280. type: "success",
  9281. });
  9282. this.askList = [];
  9283. this.dialogVisibleChoiceTeacher = false;
  9284. this.selectStudent();
  9285. this.selectSWorks();
  9286. this.selectSLook();
  9287. })
  9288. .catch((err) => {
  9289. this.$message.error("提交失败");
  9290. console.error(err);
  9291. });
  9292. },
  9293. addWork() {
  9294. if (this.studyJuri[0].content == "") {
  9295. this.$message.error("请将信息填写完整");
  9296. return;
  9297. } else if (this.studyJuri[0].cover.length == 0) {
  9298. this.$message.error("请将信息填写完整");
  9299. return;
  9300. } else if (this.studyJuri[0].upVedio.length == 0) {
  9301. this.$message.error("请将信息填写完整");
  9302. return;
  9303. }
  9304. if (this.isNoHomeWork) {
  9305. this.$confirm(
  9306. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  9307. "提示",
  9308. {
  9309. confirmButtonText: "确定",
  9310. cancelButtonText: "取消",
  9311. type: "warning",
  9312. }
  9313. )
  9314. .then(() => {
  9315. let params = [
  9316. {
  9317. uid: this.userid,
  9318. cid: this.id,
  9319. stage: this.courseType,
  9320. task: this.taskCount,
  9321. content: JSON.stringify(this.studyJuri),
  9322. },
  9323. ];
  9324. this.ajax
  9325. .post(this.$store.state.api + "addWorks", params)
  9326. .then((res) => {
  9327. this.$message({
  9328. message: "提交成功",
  9329. type: "success",
  9330. });
  9331. this.isNoHomeWork = true;
  9332. this.dialogVisible = false;
  9333. })
  9334. .catch((err) => {
  9335. this.$message.error("提交失败");
  9336. console.error(err);
  9337. });
  9338. })
  9339. .catch(() => { });
  9340. } else {
  9341. let params = [
  9342. {
  9343. uid: this.userid,
  9344. cid: this.id,
  9345. stage: this.courseType,
  9346. task: this.taskCount,
  9347. content: JSON.stringify(this.studyJuri),
  9348. },
  9349. ];
  9350. this.ajax
  9351. .post(this.$store.state.api + "addWorks", params)
  9352. .then((res) => {
  9353. this.$message({
  9354. message: "提交成功",
  9355. type: "success",
  9356. });
  9357. this.isNoHomeWork = true;
  9358. this.dialogVisible = false;
  9359. })
  9360. .catch((err) => {
  9361. this.$message.error("提交失败");
  9362. console.error(err);
  9363. });
  9364. }
  9365. },
  9366. selectCount() {
  9367. let params = {
  9368. cid: this.id,
  9369. chid: this.courseType,
  9370. uid: this.userid,
  9371. };
  9372. this.ajax
  9373. .get(this.$store.state.api + "selectToolsCount", params)
  9374. .then((res) => {
  9375. for (var i = 0; i < res.data[0].length; i++) {
  9376. if (res.data[0][i].tools == 1) {
  9377. this.wbCount = res.data[0][i].count;
  9378. } else if (res.data[0][i].tools == 2) {
  9379. this.wordCount = res.data[0][i].count;
  9380. } else if (res.data[0][i].tools == 3) {
  9381. this.mindCount = res.data[0][i].count;
  9382. } else if (res.data[0][i].tools == 4) {
  9383. this.askCount = res.data[0][i].count;
  9384. } else if (res.data[0][i].tools == 6) {
  9385. this.noteCount = res.data[0][i].count;
  9386. } else if (res.data[0][i].tools == 7) {
  9387. this.mindNetWorkCount = res.data[0][i].count;
  9388. } else if (res.data[0][i].tools == 8) {
  9389. this.libraryCount = res.data[0][i].count;
  9390. } else if (res.data[0][i].tools == 16) {
  9391. this.workCount = res.data[0][i].count;
  9392. } else if (res.data[0][i].tools == 10) {
  9393. this.timeCount = res.data[0][i].count;
  9394. } else if (res.data[0][i].tools == 15) {
  9395. this.answerCount = res.data[0][i].count;
  9396. } else if (res.data[0][i].tools == 18) {
  9397. this.trainCount = res.data[0][i].count;
  9398. }
  9399. }
  9400. })
  9401. .catch((err) => {
  9402. console.error(err);
  9403. });
  9404. },
  9405. openTools(t, i, index, c, sName) {
  9406. var z = JSON.parse(c);
  9407. this.noteName = sName;
  9408. if (t == 4) {
  9409. this.radio = [];
  9410. this.isAnswer = false;
  9411. let b = z[0].anwer;
  9412. this.radio = b;
  9413. this.askJson = z[0].askJson;
  9414. this.isAnswer = true;
  9415. this.dialogVisible5 = true;
  9416. } else if (t == 45) {
  9417. this.radio = [];
  9418. this.isAnswer = false;
  9419. let b = z[0].anwer;
  9420. this.radio = b;
  9421. this.testJson = z[0].testJson;
  9422. this.isAnswer = true;
  9423. this.dialogVisibleChoice = true;
  9424. }
  9425. // else if (t == 15) {
  9426. // this.answerQ = "";
  9427. // this.questionAnswer = "";
  9428. // this.answerQ = z[0].answerTitle;
  9429. // this.questionAnswer = z[0].answer;
  9430. // this.answerDialogVisible = true;
  9431. // }
  9432. },
  9433. fastText(p, t) {
  9434. if (t == 1) {
  9435. this.commentText += p;
  9436. } else {
  9437. this.eScore.eBzText += p;
  9438. }
  9439. },
  9440. addTools(t, i, index) {
  9441. var a = 0;
  9442. // this.taskCount = index;
  9443. this.toolindex = i;
  9444. if (t == 1) {
  9445. if (this.wbCount > 0) {
  9446. this.updateCount(this.wbCount, t);
  9447. } else {
  9448. this.wbCount++;
  9449. a = this.wbCount;
  9450. this.toolsCount(a, t);
  9451. }
  9452. window.parent.postMessage(
  9453. {
  9454. tools: "1",
  9455. cid: this.id,
  9456. stage: this.courseType,
  9457. task: this.taskCount,
  9458. tool: i,
  9459. },
  9460. "*"
  9461. );
  9462. } else if (t == 2) {
  9463. if (this.wordCount > 0) {
  9464. this.updateCount(this.wordCount, t);
  9465. } else {
  9466. this.wordCount++;
  9467. a = this.wordCount;
  9468. this.toolsCount(a, t);
  9469. }
  9470. window.parent.postMessage({ tools: "2" }, "*");
  9471. } else if (t == 3) {
  9472. if (this.mindCount > 0) {
  9473. this.updateCount(this.mindCount, t);
  9474. } else {
  9475. this.mindCount++;
  9476. a = this.mindCount;
  9477. this.toolsCount(a, t);
  9478. }
  9479. window.parent.postMessage(
  9480. {
  9481. tools: "3",
  9482. cid: this.id,
  9483. stage: this.courseType,
  9484. task: this.taskCount,
  9485. tool: i,
  9486. },
  9487. "*"
  9488. );
  9489. } else if (t == 4) {
  9490. this.radio = [];
  9491. this.noteName = "";
  9492. this.isAnswer = false;
  9493. if (this.askCount > 0) {
  9494. this.updateCount(this.askCount, t);
  9495. } else {
  9496. this.askCount++;
  9497. a = this.askCount;
  9498. this.toolsCount(a, t);
  9499. }
  9500. this.askJson.askJson =
  9501. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9502. index
  9503. ].toolChoose[i].askJson;
  9504. this.askJson.askTitle =
  9505. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9506. index
  9507. ].toolChoose[i].askTitle;
  9508. this.askJson.askCount =
  9509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9510. index
  9511. ].toolChoose[i].askCount;
  9512. for (var k = 0; k < this.askJson.askJson.length; k++) {
  9513. if (this.askJson.askJson[k].type == "2") {
  9514. this.radio.push([]);
  9515. } else {
  9516. this.radio.push("");
  9517. }
  9518. }
  9519. this.dialogVisible5 = true;
  9520. // window.parent.postMessage({ tools: "4" }, "*");
  9521. } else if (t == 45) {
  9522. this.noteName = "";
  9523. this.radio = [];
  9524. this.isAnswer = false;
  9525. if (this.askCount > 0) {
  9526. this.updateCount(this.askCount, t);
  9527. } else {
  9528. this.askCount++;
  9529. a = this.askCount;
  9530. this.toolsCount(a, t);
  9531. }
  9532. this.testJson =
  9533. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9534. index
  9535. ].toolChoose[i].testJson;
  9536. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9537. if (this.testJson.testJson[k].type == "2") {
  9538. this.radio.push([]);
  9539. } else {
  9540. this.radio.push("");
  9541. }
  9542. }
  9543. this.dialogVisibleChoice = true;
  9544. // window.parent.postMessage({ tools: "4" }, "*");
  9545. } else if (t == 5) {
  9546. if (this.scoreCount > 0) {
  9547. this.updateCount(this.scoreCount, t);
  9548. } else {
  9549. this.scoreCount++;
  9550. a = this.scoreCount;
  9551. this.toolsCount(a, t);
  9552. }
  9553. this.dialogVisible4 = true;
  9554. // window.parent.postMessage({ tools: "5" }, "*");
  9555. } else if (t == 6) {
  9556. if (this.noteCount > 0) {
  9557. this.updateCount(this.noteCount, t);
  9558. } else {
  9559. this.noteCount++;
  9560. a = this.noteCount;
  9561. this.toolsCount(a, t);
  9562. }
  9563. window.parent.postMessage(
  9564. {
  9565. tools: "6",
  9566. cid: this.id,
  9567. stage: this.courseType,
  9568. task: this.taskCount,
  9569. tool: i,
  9570. },
  9571. "*"
  9572. );
  9573. } else if (t == 7) {
  9574. if (this.mindNetWorkCount > 0) {
  9575. this.updateCount(this.mindNetWorkCount, t);
  9576. } else {
  9577. this.mindNetWorkCount++;
  9578. a = this.mindNetWorkCount;
  9579. this.toolsCount(a, t);
  9580. }
  9581. window.parent.postMessage(
  9582. {
  9583. tools: "7",
  9584. cid: this.id,
  9585. stage: this.courseType,
  9586. task: this.taskCount,
  9587. tool: i,
  9588. },
  9589. "*"
  9590. );
  9591. } else if (t == 16) {
  9592. if (this.workCount > 0) {
  9593. this.updateCount(this.workCount, t);
  9594. } else {
  9595. this.workCount++;
  9596. a = this.workCount;
  9597. this.toolsCount(a, t);
  9598. }
  9599. this.dialogVisible = true;
  9600. } else if (t == 50) {
  9601. if (this.tType == 2) {
  9602. this.$message.error("不支持学生使用");
  9603. return;
  9604. }
  9605. this.plworkFile = [];
  9606. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  9607. this.selectUploadStudent();
  9608. this.dialogVisiblePl = true;
  9609. } else if (t == 8) {
  9610. if (this.libraryCount > 0) {
  9611. this.updateCount(this.libraryCount, t);
  9612. } else {
  9613. this.libraryCount++;
  9614. a = this.libraryCount;
  9615. this.toolsCount(a, t);
  9616. }
  9617. window.parent.postMessage({ tools: "8" }, "*");
  9618. } else if (t == 17) {
  9619. if (this.libraryCount > 0) {
  9620. this.updateCount(this.libraryCount, t);
  9621. } else {
  9622. this.libraryCount++;
  9623. a = this.libraryCount;
  9624. this.toolsCount(a, t);
  9625. }
  9626. window.parent.postMessage({ tools: "17" }, "*");
  9627. } else if (t == 18) {
  9628. if (this.trainCount > 0) {
  9629. this.updateCount(this.trainCount, t);
  9630. } else {
  9631. this.trainCount++;
  9632. a = this.trainCount;
  9633. this.toolsCount(a, t);
  9634. }
  9635. window.parent.postMessage({ tools: "18" }, "*");
  9636. } else if (t == 10) {
  9637. if (this.timeCount > 0) {
  9638. this.updateCount(this.timeCount, t);
  9639. } else {
  9640. this.timeCount++;
  9641. a = this.timeCount;
  9642. this.toolsCount(a, t);
  9643. }
  9644. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  9645. .taskJson[index].toolChoose[i].preTime
  9646. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9647. .toolChoose[i].preTime
  9648. : "";
  9649. this.timeDialogVisible = true;
  9650. } else if (t == 15) {
  9651. this.answerQ = "";
  9652. this.questionAnswer = "";
  9653. if (this.answerCount > 0) {
  9654. this.updateCount(this.answerCount, t);
  9655. } else {
  9656. this.answerCount++;
  9657. a = this.answerCount;
  9658. this.toolsCount(a, t);
  9659. }
  9660. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9661. .taskJson[index].toolChoose[i].answerQ
  9662. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9663. .toolChoose[i].answerQ
  9664. : "";
  9665. this.answerDialogVisible = true;
  9666. } else if (t == 21) {
  9667. window.parent.postMessage({ tools: "21" }, "*");
  9668. } else if (t == 22) {
  9669. window.parent.postMessage({ tools: "22" }, "*");
  9670. } else if (t == 23) {
  9671. window.parent.postMessage({ tools: "23" }, "*");
  9672. } else if (t == 24) {
  9673. window.parent.postMessage({ tools: "24" }, "*");
  9674. } else if (t == 25) {
  9675. window.parent.postMessage({ tools: "25" }, "*");
  9676. } else if (t == 31) {
  9677. window.parent.postMessage({ tools: "31" }, "*");
  9678. } else if (t == 28) {
  9679. window.parent.postMessage({ tools: "28" }, "*");
  9680. } else if (t == 37) {
  9681. window.parent.postMessage({ tools: "37" }, "*");
  9682. } else if (t == 38) {
  9683. window.parent.postMessage({ tools: "38" }, "*");
  9684. } else if (t == 39) {
  9685. window.parent.postMessage({ tools: "39" }, "*");
  9686. } else if (t == 32) {
  9687. window.parent.postMessage({ tools: "32" }, "*");
  9688. } else if (t == 57) {
  9689. window.parent.postMessage({ tools: "57" }, "*");
  9690. } else if (t == 58) {
  9691. window.parent.postMessage({ tools: "58" }, "*");
  9692. } else if (t == 59) {
  9693. window.parent.postMessage({ tools: "59" }, "*");
  9694. } else if (t == 60) {
  9695. window.parent.postMessage({ tools: "60" }, "*");
  9696. } else if (t == 61) {
  9697. window.parent.postMessage({ tools: "61" }, "*");
  9698. } else if (t == 26) {
  9699. window.parent.postMessage(
  9700. {
  9701. tools: "26",
  9702. cid: this.id,
  9703. stage: this.courseType,
  9704. task: this.taskCount,
  9705. tool: i,
  9706. },
  9707. "*"
  9708. );
  9709. } else if (t == 40) {
  9710. if (this.evalCount > 0) {
  9711. this.updateCount(this.evalCount, t);
  9712. } else {
  9713. this.evalCount++;
  9714. a = this.evalCount;
  9715. this.toolsCount(a, t);
  9716. }
  9717. this.eScore = { eBzText: "", eStar: [] };
  9718. if (this.worksStudent[i].length) {
  9719. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9720. if (this.userid == this.worksStudent[i][k].userid) {
  9721. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  9722. this.rateJson =
  9723. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9724. index
  9725. ].toolChoose[i].rateJson;
  9726. break;
  9727. } else {
  9728. this.rateJson =
  9729. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9730. index
  9731. ].toolChoose[i].rateJson;
  9732. }
  9733. }
  9734. } else {
  9735. this.rateJson =
  9736. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9737. index
  9738. ].toolChoose[i].rateJson;
  9739. }
  9740. this.isStar = false;
  9741. this.studentEvalDialogVisible = true;
  9742. } else if (t == 41) {
  9743. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9744. .taskJson[index].toolChoose[i].selectJson
  9745. ? JSON.parse(
  9746. JSON.stringify(
  9747. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9748. index
  9749. ].toolChoose[i].selectJson
  9750. )
  9751. )
  9752. : { url: "", select: [], answer: [] };
  9753. if (this.worksStudent[i].length) {
  9754. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9755. if (this.userid == this.worksStudent[i][k].userid) {
  9756. var a = this.worksStudent[i][k].works.split(",");
  9757. for (var ki = 0; ki < a.length; ki++) {
  9758. a[ki] = parseInt(a[ki]);
  9759. }
  9760. this.selectAnswer = {
  9761. answer: a,
  9762. stu: this.worksStudent[i][k].sName,
  9763. };
  9764. break;
  9765. } else {
  9766. this.selectAnswer = { answer: [], stu: "" };
  9767. }
  9768. }
  9769. } else {
  9770. this.selectAnswer = { answer: [], stu: "" };
  9771. }
  9772. this.isSelect = false;
  9773. this.dialogVisibleSelect = true;
  9774. } else if (t == 44) {
  9775. window.parent.postMessage({ tools: "44" }, "*");
  9776. } else if (t == 47) {
  9777. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9778. .taskJson[index].toolChoose[i].sentenceList
  9779. ? JSON.parse(
  9780. JSON.stringify(
  9781. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9782. index
  9783. ].toolChoose[i].sentenceList
  9784. )
  9785. )
  9786. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9787. for (var q = 0; q < this.sentenceList.length; q++) {
  9788. this.sentenceList[q].chooseSenList = [];
  9789. this.sentenceList[q].addChangeSen = [];
  9790. this.sentenceList[q].addChangeSen = JSON.parse(
  9791. JSON.stringify(this.sentenceList[q].addSentence)
  9792. );
  9793. this.sentenceList[q].chooseSenList.length =
  9794. this.sentenceList[q].rightAnswer.length;
  9795. }
  9796. this.dialogVisibleSentence = true;
  9797. } else if (t == 48) {
  9798. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9799. .taskJson[index].toolChoose[i].tableJson
  9800. ? JSON.parse(
  9801. JSON.stringify(
  9802. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9803. index
  9804. ].toolChoose[i].tableJson
  9805. )
  9806. )
  9807. : { text: "" };
  9808. if (this.worksStudent[i].length) {
  9809. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9810. if (this.userid == this.worksStudent[i][k].userid) {
  9811. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9812. break;
  9813. }
  9814. }
  9815. }
  9816. this.dialogVisibleTable = true;
  9817. } else if (t == 52) {
  9818. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9819. .taskJson[index].toolChoose[i].wordJson
  9820. ? JSON.parse(
  9821. JSON.stringify(
  9822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9823. index
  9824. ].toolChoose[i].wordJson
  9825. )
  9826. )
  9827. : { text: "" };
  9828. this.dialogVisibleWord = true;
  9829. } else if (t == 49) {
  9830. this.groupJson =
  9831. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9832. index
  9833. ].toolChoose[i].groupJson;
  9834. this.dialogVisibleGroup = true;
  9835. }
  9836. },
  9837. teacherWorkSubmit(t, i, index, s) {
  9838. this.sStudent = s;
  9839. this.sTool = t;
  9840. this.toolindex = i;
  9841. if (this.tType !== "1" && this.tType !== "4") {
  9842. return;
  9843. }
  9844. if (t == 16 || t == 32 || t == 57 || t == 50) {
  9845. this.dialogVisibleWorks = true; //作业提交
  9846. } else if (t == 15) {
  9847. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  9848. .taskJson[index].toolChoose[i].answerQ
  9849. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  9850. .toolChoose[i].answerQ
  9851. : "";
  9852. this.questionAnswer = ''
  9853. this.answerDialogVisibleTeacher = true;//问答
  9854. } else if (t == 52) {
  9855. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9856. .taskJson[index].toolChoose[i].wordJson
  9857. ? JSON.parse(
  9858. JSON.stringify(
  9859. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9860. index
  9861. ].toolChoose[i].wordJson
  9862. )
  9863. )
  9864. : { text: "" };
  9865. this.dialogVisibleWordTeacher = true;//文档
  9866. } else if (t == 4) {
  9867. this.radio = [];
  9868. this.noteName = "";
  9869. this.isAnswer = false;
  9870. if (this.askCount > 0) {
  9871. this.updateCount(this.askCount, t);
  9872. } else {
  9873. this.askCount++;
  9874. a = this.askCount;
  9875. this.toolsCount(a, t);
  9876. }
  9877. if (!this.dialogVisible2) {
  9878. this.askJson.askJson =
  9879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9880. index
  9881. ].toolChoose[i].askJson;
  9882. this.askJson.askTitle =
  9883. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9884. index
  9885. ].toolChoose[i].askTitle;
  9886. this.askJson.askCount =
  9887. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9888. index
  9889. ].toolChoose[i].askCount;
  9890. } else {
  9891. this.askJson.askJson = this.chapTools.askJson.askJson;
  9892. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  9893. this.askJson.askCount = this.chapTools.askJson.askCount;
  9894. }
  9895. this.dialogVisible5Teacher = true;
  9896. } else if (t == 45) {
  9897. this.noteName = "";
  9898. this.radio = [];
  9899. this.isAnswer = false;
  9900. if (this.askCount > 0) {
  9901. this.updateCount(this.askCount, t);
  9902. } else {
  9903. this.askCount++;
  9904. a = this.askCount;
  9905. this.toolsCount(a, t);
  9906. }
  9907. this.testJson =
  9908. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9909. index
  9910. ].toolChoose[i].testJson;
  9911. for (var k = 0; k < this.testJson.testJson.length; k++) {
  9912. if (this.testJson.testJson[k].type == "2") {
  9913. this.radio.push([]);
  9914. } else {
  9915. this.radio.push("");
  9916. }
  9917. }
  9918. this.dialogVisibleChoiceTeacher = true;
  9919. } else if (t == 41) {
  9920. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9921. .taskJson[index].toolChoose[i].selectJson
  9922. ? JSON.parse(
  9923. JSON.stringify(
  9924. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9925. index
  9926. ].toolChoose[i].selectJson
  9927. )
  9928. )
  9929. : { url: "", select: [], answer: [] };
  9930. if (this.worksStudent[i].length) {
  9931. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9932. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9933. var a = this.worksStudent[i][k].works.split(",");
  9934. for (var ki = 0; ki < a.length; ki++) {
  9935. a[ki] = parseInt(a[ki]);
  9936. }
  9937. this.selectAnswer = {
  9938. answer: a,
  9939. stu: this.worksStudent[i][k].sName,
  9940. };
  9941. break;
  9942. } else {
  9943. this.selectAnswer = { answer: [], stu: "" };
  9944. }
  9945. }
  9946. } else {
  9947. this.selectAnswer = { answer: [], stu: "" };
  9948. }
  9949. this.isSelect = false;
  9950. this.dialogVisibleSelectTeacher = true;
  9951. } else if (t == 47) {
  9952. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  9953. .taskJson[index].toolChoose[i].sentenceList
  9954. ? JSON.parse(
  9955. JSON.stringify(
  9956. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9957. index
  9958. ].toolChoose[i].sentenceList
  9959. )
  9960. )
  9961. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  9962. for (var q = 0; q < this.sentenceList.length; q++) {
  9963. this.sentenceList[q].chooseSenList = [];
  9964. this.sentenceList[q].addChangeSen = [];
  9965. this.sentenceList[q].addChangeSen = JSON.parse(
  9966. JSON.stringify(this.sentenceList[q].addSentence)
  9967. );
  9968. this.sentenceList[q].chooseSenList.length =
  9969. this.sentenceList[q].rightAnswer.length;
  9970. }
  9971. this.dialogVisibleSentenceTeacher = true;
  9972. } else if (t == 48) {
  9973. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  9974. .taskJson[index].toolChoose[i].tableJson
  9975. ? JSON.parse(
  9976. JSON.stringify(
  9977. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  9978. index
  9979. ].toolChoose[i].tableJson
  9980. )
  9981. )
  9982. : { text: "" };
  9983. if (this.worksStudent[i].length) {
  9984. for (var k = 0; k < this.worksStudent[i].length; k++) {
  9985. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  9986. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  9987. break;
  9988. }
  9989. }
  9990. }
  9991. this.dialogVisibleTableTeacher = true;
  9992. } else if (t == 40) {
  9993. if (this.evalCount > 0) {
  9994. this.updateCount(this.evalCount, t);
  9995. } else {
  9996. this.evalCount++;
  9997. a = this.evalCount;
  9998. this.toolsCount(a, t);
  9999. }
  10000. this.eScore = { eBzText: "", eStar: [] };
  10001. if (this.worksStudent[i].length) {
  10002. for (var k = 0; k < this.worksStudent[i].length; k++) {
  10003. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  10004. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  10005. this.rateJson =
  10006. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10007. index
  10008. ].toolChoose[i].rateJson;
  10009. break;
  10010. } else {
  10011. this.rateJson =
  10012. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10013. index
  10014. ].toolChoose[i].rateJson;
  10015. }
  10016. }
  10017. } else {
  10018. this.rateJson =
  10019. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10020. index
  10021. ].toolChoose[i].rateJson;
  10022. }
  10023. this.isStar = false;
  10024. this.studentEvalDialogVisibleTeacher = true;
  10025. } else if (t == 3 || t == 1 || t == 7) {
  10026. window.parent.postMessage(
  10027. {
  10028. tools: t + 'teacher',
  10029. cid: this.id,
  10030. stage: this.courseType,
  10031. task: this.taskCount,
  10032. tool: i,
  10033. student: this.sStudent,
  10034. },
  10035. "*"
  10036. );
  10037. }
  10038. },
  10039. setRightAnswer(s, i, j) {
  10040. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  10041. if (
  10042. this.sentenceList[i].chooseSenList[q] == undefined ||
  10043. this.sentenceList[i].chooseSenList[q] == ""
  10044. ) {
  10045. this.sentenceList[i].chooseSenList[q] = s;
  10046. this.sentenceList[i].addChangeSen[j] = "";
  10047. break;
  10048. }
  10049. }
  10050. this.$forceUpdate();
  10051. },
  10052. returnCard(r, i, j) {
  10053. var a = this.sentenceList[i].addSentence.indexOf(r);
  10054. this.sentenceList[i].chooseSenList[j] = "";
  10055. this.sentenceList[i].addChangeSen[a] = r;
  10056. this.$forceUpdate();
  10057. },
  10058. // addSentenceTool() {
  10059. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10060. // this.taskCount
  10061. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  10062. // this.sentenceList = [
  10063. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  10064. // ];
  10065. // this.dialogVisibleSentence = false;
  10066. // },
  10067. toolsCount(a, t) {
  10068. let params = {
  10069. cid: this.id,
  10070. chid: this.courseType,
  10071. uid: this.userid,
  10072. tid: t,
  10073. count: a,
  10074. };
  10075. this.ajax
  10076. .get(this.$store.state.api + "insertToolsCount", params)
  10077. .then((res) => {
  10078. this.selectCount();
  10079. })
  10080. .catch((err) => {
  10081. console.error(err);
  10082. });
  10083. },
  10084. updateCount(c, t) {
  10085. c++;
  10086. let params = {
  10087. cid: this.id,
  10088. chid: this.courseType,
  10089. uid: this.userid,
  10090. tid: t,
  10091. count: c,
  10092. };
  10093. this.ajax
  10094. .get(this.$store.state.api + "updateToolsCount", params)
  10095. .then((res) => {
  10096. this.selectCount();
  10097. })
  10098. .catch((err) => {
  10099. console.error(err);
  10100. });
  10101. },
  10102. checkEva() {
  10103. if (this.evalua != "") {
  10104. for (var i = 0; i < this.evaJuri.length; i++) {
  10105. if (this.evalua == this.evaJuri[i].id) {
  10106. this.eTitle = this.evaJuri[i].title;
  10107. this.eJson = JSON.parse(this.evaJuri[i].content);
  10108. }
  10109. }
  10110. this.$forceUpdate();
  10111. setTimeout(() => {
  10112. this.setMindData();
  10113. }, 0);
  10114. }
  10115. },
  10116. selectEva() {
  10117. let params = {
  10118. oid: this.oid,
  10119. };
  10120. this.ajax
  10121. .get(this.$store.state.api + "selectAllEvaluation", params)
  10122. .then((res) => {
  10123. this.evaJuri = res.data[0];
  10124. })
  10125. .catch((err) => {
  10126. console.error(err);
  10127. });
  10128. },
  10129. setMindData() {
  10130. this.data.data = [];
  10131. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  10132. let _eJson = Object.keys(this.eJson);
  10133. let _e = this.eJson;
  10134. for (let i = 0; i < _eJson.length; i++) {
  10135. let element = _e[_eJson[i]];
  10136. this.data.data.push({
  10137. id: element.id,
  10138. parentid: "root",
  10139. topic: element.name,
  10140. });
  10141. let _eJsonc = Object.keys(element.child);
  10142. let _e2 = element.child;
  10143. for (let j = 0; j < _eJsonc.length; j++) {
  10144. let _ec = _e2[_eJsonc[j]];
  10145. this.data.data.push({
  10146. id: _ec.id,
  10147. parentid: element.id,
  10148. topic: _ec.name,
  10149. });
  10150. let _eJsonz = Object.keys(_ec.child);
  10151. let _e3 = _ec.child;
  10152. for (let z = 0; z < _eJsonz.length; z++) {
  10153. let _ez = _e3[_eJsonz[z]];
  10154. this.data.data.push({
  10155. id: _ez.id,
  10156. parentid: _ec.id,
  10157. topic: _ez.name,
  10158. });
  10159. }
  10160. }
  10161. }
  10162. this.$forceUpdate();
  10163. },
  10164. checkFileFull(type, url) {
  10165. this.fullDialogVisible = true;
  10166. this.fulltype = type;
  10167. this.fullUrl = url;
  10168. },
  10169. openSname(n, id, i) {
  10170. this.snameWid = id;
  10171. this.worksSName = n;
  10172. this.toolindex = i
  10173. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri
  10174. this.selectUploadStudent()
  10175. this.dialogVisibleSname = true;
  10176. },
  10177. updateName() {
  10178. let params = {
  10179. n: this.worksSName,
  10180. cid: this.snameWid,
  10181. };
  10182. this.ajax
  10183. .get(this.$store.state.api + "updateCourseWorksName", params)
  10184. .then((res) => {
  10185. this.$message({
  10186. message: "修改成功",
  10187. type: "success",
  10188. });
  10189. this.dialogVisibleSname = false;
  10190. this.getCourseDetail();
  10191. this.snameWid = "";
  10192. this.worksSName = "";
  10193. })
  10194. .catch((err) => {
  10195. console.error(err);
  10196. });
  10197. },
  10198. downloadFile2(f) {
  10199. let url = f.url
  10200. let _this = this;
  10201. let _url = "";
  10202. if (
  10203. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10204. ) {
  10205. _url = url.split(
  10206. "https://view.officeapps.live.com/op/view.aspx?src="
  10207. )[1];
  10208. } else {
  10209. _url = url;
  10210. }
  10211. const x = new XMLHttpRequest();
  10212. x.open("GET", _url, true);
  10213. x.responseType = "blob";
  10214. const loading = _this.$loading.service({
  10215. background: "rgba(255, 255, 255, 0.7)",
  10216. target: document.body,
  10217. text: "文件加载中...",
  10218. });
  10219. // _this.$message.success("文件下载中...");
  10220. x.onload = function (e) {
  10221. loading.close();
  10222. let content = x.response;
  10223. let elink = document.createElement("a");
  10224. elink.download = f.name;
  10225. elink.style.display = "none";
  10226. let blob = new Blob([content]);
  10227. elink.href = URL.createObjectURL(blob);
  10228. document.body.appendChild(elink);
  10229. elink.click();
  10230. document.body.removeChild(elink);
  10231. };
  10232. x.send();
  10233. },
  10234. downloadFile(url) {
  10235. let _this = this;
  10236. let _url = "";
  10237. if (
  10238. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  10239. ) {
  10240. _url = url.split(
  10241. "https://view.officeapps.live.com/op/view.aspx?src="
  10242. )[1];
  10243. } else {
  10244. _url = url;
  10245. }
  10246. const x = new XMLHttpRequest();
  10247. x.open("GET", _url, true);
  10248. x.responseType = "blob";
  10249. const loading = _this.$loading.service({
  10250. background: "rgba(255, 255, 255, 0.7)",
  10251. target: document.body,
  10252. text: "文件加载中...",
  10253. });
  10254. // _this.$message.success("文件下载中...");
  10255. x.onload = function (e) {
  10256. loading.close();
  10257. // const url = window.URL.createObjectURL(x.response);
  10258. // const a = document.createElement("a");
  10259. // a.href = url;
  10260. // a.target = "_blank";
  10261. // a.download = url;
  10262. // a.click();
  10263. // a.remove();
  10264. let content = x.response;
  10265. let elink = document.createElement("a");
  10266. elink.download = decodeURI(
  10267. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  10268. );
  10269. elink.style.display = "none";
  10270. let blob = new Blob([content]);
  10271. elink.href = URL.createObjectURL(blob);
  10272. document.body.appendChild(elink);
  10273. elink.click();
  10274. document.body.removeChild(elink);
  10275. };
  10276. x.send();
  10277. },
  10278. openLine(url) {
  10279. window.open(url);
  10280. },
  10281. resize() {
  10282. if (document.getElementsByClassName("box_course").length) {
  10283. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10284. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10285. document.getElementsByClassName("navBox")[0].style.height =
  10286. a - 40 + "px";
  10287. }
  10288. this.Stbodywidth =
  10289. document.getElementsByClassName("student_body").length &&
  10290. document.getElementsByClassName("student_body")[0].offsetWidth;
  10291. },
  10292. closeDraw() {
  10293. this.bg = null;
  10294. this.drawShow = false;
  10295. },
  10296. showPicturePaint(url) {
  10297. let params = {
  10298. img: url,
  10299. };
  10300. this.ajax
  10301. .get(this.$store.state.api + "imgToBase64", params)
  10302. .then((res) => {
  10303. console.log(res);
  10304. this.drawShow = true;
  10305. this.bg = res.data[0].img;
  10306. })
  10307. .catch((err) => {
  10308. console.error(err);
  10309. });
  10310. },
  10311. addImgDraw(base64) {
  10312. let file = { name: "批注图.png" };
  10313. let img = this.dataUrlToFile(base64, file);
  10314. this.beforeUpload1(img, 5);
  10315. },
  10316. addImgDrawImG(url) {
  10317. // console.log(url);
  10318. let params = [
  10319. {
  10320. wid: this.commentDetail.wid,
  10321. img: url,
  10322. },
  10323. ];
  10324. this.ajax
  10325. .post(this.$store.state.api + "updateCourseWorks", params)
  10326. .then((res) => {
  10327. this.$message({
  10328. message: "提交成功",
  10329. type: "success",
  10330. });
  10331. this.drawShow = false;
  10332. this.bg = "";
  10333. this.selectSWorks();
  10334. this.selectStudent();
  10335. })
  10336. .catch((err) => {
  10337. this.$message.error("提交失败");
  10338. console.error(err);
  10339. });
  10340. },
  10341. deletePicturePaint() {
  10342. this.$confirm("确定删除此批注吗?", "提示", {
  10343. confirmButtonText: "确定",
  10344. cancelButtonText: "取消",
  10345. type: "warning",
  10346. })
  10347. .then(() => {
  10348. let params = [
  10349. {
  10350. wid: this.commentDetail.wid,
  10351. img: "",
  10352. },
  10353. ];
  10354. this.ajax
  10355. .post(this.$store.state.api + "updateCourseWorks", params)
  10356. .then((res) => {
  10357. this.$message({
  10358. message: "删除成功",
  10359. type: "success",
  10360. });
  10361. this.selectSWorks();
  10362. this.selectStudent();
  10363. })
  10364. .catch((err) => {
  10365. this.$message.error("删除失败");
  10366. console.error(err);
  10367. });
  10368. })
  10369. .catch(() => { });
  10370. },
  10371. getAudioVideo(constraintsData) {
  10372. if (navigator.mediaDevices === undefined) {
  10373. navigator.mediaDevices = {};
  10374. }
  10375. if (navigator.mediaDevices.getUserMedia === undefined) {
  10376. navigator.mediaDevices.getUserMedia = function (constraints) {
  10377. // 首先,如果有getUserMedia的话,就获得它
  10378. var getUserMedia =
  10379. navigator.getUserMedia ||
  10380. navigator.webkitGetUserMedia ||
  10381. navigator.mozGetUserMedia ||
  10382. navigator.msGetUserMedia;
  10383. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  10384. if (!getUserMedia) {
  10385. return Promise.reject({ code: 404 });
  10386. }
  10387. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  10388. return new Promise(function (resolve, reject) {
  10389. getUserMedia.call(navigator, constraints, resolve, reject);
  10390. });
  10391. };
  10392. }
  10393. return navigator.mediaDevices.getUserMedia(constraintsData);
  10394. },
  10395. /**
  10396. * 开始录制
  10397. */
  10398. startRecording(callback) {
  10399. let _function = (screenStream) => {
  10400. this.addStreamStopListener(screenStream, () => {
  10401. console.log("流停止监听");
  10402. this.stopRecording();
  10403. this.$emit("streamStop", {});
  10404. // this.stopRecording();
  10405. });
  10406. var options = {
  10407. type: "video",
  10408. mimeType: "video/webm",
  10409. disableLogs: false,
  10410. getNativeBlob: false, // enable it for longer recordings
  10411. ignoreMutedMedia: false,
  10412. };
  10413. // this.video.srcObject = screenStream;
  10414. this.recorder = RecordRTC(screenStream, options);
  10415. this.recorder.startRecording();
  10416. this.recorder.screen = screenStream;
  10417. this.videoStart = true;
  10418. // callback(true);
  10419. };
  10420. this.getAudioVideo({ audio: true })
  10421. .then((res) => {
  10422. this.captureScreen(_function, true);
  10423. console.log("已点击允许,开启成功");
  10424. })
  10425. .catch((err) => {
  10426. // console.log('浏览器不支持,请更换浏览器')
  10427. // } else {
  10428. this.captureScreen(_function, false);
  10429. console.log("请检查是否存在麦克风");
  10430. });
  10431. },
  10432. /**
  10433. * 停止录制
  10434. */
  10435. stopRecording(callback) {
  10436. this.recorder.stopRecording(() => {
  10437. // this.video.src = this.video.srcObject = null;
  10438. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  10439. const url = URL.createObjectURL(this.recorder.getBlob());
  10440. const a = document.createElement("a"); //this.fileName+
  10441. let videoFile = new File(
  10442. [this.recorder.getBlob()],
  10443. this.courseDetail.title + "录屏.mp4",
  10444. {
  10445. type: "video/mp4",
  10446. }
  10447. );
  10448. let downloadUrl = URL.createObjectURL(videoFile);
  10449. document.body.appendChild(a);
  10450. a.style.display = "none";
  10451. a.href = url;
  10452. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  10453. a.click();
  10454. this.recorder.screen.stop();
  10455. this.recorder.destroy();
  10456. this.recorder = null;
  10457. this.videoStart = false;
  10458. // callback(false);
  10459. });
  10460. },
  10461. //初始化
  10462. captureScreen(callback, type) {
  10463. if (navigator.getDisplayMedia) {
  10464. //录制结束,文件下载
  10465. navigator
  10466. .getDisplayMedia({
  10467. video: true,
  10468. })
  10469. .then((screenStream) => {
  10470. if (type) {
  10471. navigator.mediaDevices
  10472. .getUserMedia({ audio: true })
  10473. .then((mic) => {
  10474. screenStream.addTrack(mic.getTracks()[0]);
  10475. callback(screenStream);
  10476. });
  10477. } else {
  10478. callback(screenStream);
  10479. }
  10480. })
  10481. .catch(function (error) {
  10482. console.log("error", error);
  10483. });
  10484. } else if (navigator.mediaDevices.getDisplayMedia) {
  10485. navigator.mediaDevices
  10486. .getDisplayMedia({
  10487. video: true,
  10488. })
  10489. .then((screenStream) => {
  10490. if (type) {
  10491. navigator.mediaDevices
  10492. .getUserMedia({ audio: true })
  10493. .then((mic) => {
  10494. screenStream.addTrack(mic.getTracks()[0]);
  10495. callback(screenStream);
  10496. });
  10497. } else {
  10498. callback(screenStream);
  10499. }
  10500. })
  10501. .catch(function (error) {
  10502. console.log("error", error);
  10503. });
  10504. } else {
  10505. var error = "getDisplayMedia API are not supported in this browser.";
  10506. console.log("error", error);
  10507. alert(error);
  10508. }
  10509. },
  10510. //流监听
  10511. addStreamStopListener(stream, callback) {
  10512. stream.addEventListener(
  10513. "ended",
  10514. function () {
  10515. callback();
  10516. callback = function () { };
  10517. },
  10518. false
  10519. );
  10520. stream.addEventListener(
  10521. "inactive",
  10522. function () {
  10523. callback();
  10524. callback = function () { };
  10525. },
  10526. false
  10527. );
  10528. stream.getTracks().forEach(function (track) {
  10529. track.addEventListener(
  10530. "ended",
  10531. function () {
  10532. callback();
  10533. callback = function () { };
  10534. },
  10535. false
  10536. );
  10537. track.addEventListener(
  10538. "inactive",
  10539. function () {
  10540. callback();
  10541. callback = function () { };
  10542. },
  10543. false
  10544. );
  10545. });
  10546. },
  10547. updateGroup() {
  10548. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10549. this.dialogVisibleGroup2 = true;
  10550. },
  10551. updateGroupJson() {
  10552. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  10553. if (
  10554. this.groupStudentUid[this.toolindex][i].length >
  10555. this.groupJson2.number
  10556. ) {
  10557. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  10558. return;
  10559. }
  10560. }
  10561. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  10562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  10563. this.taskCount
  10564. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  10565. let params = [
  10566. {
  10567. cid: this.id,
  10568. chapters: JSON.stringify(this.chapInfoList).replaceAll(/%/g, "%25"),
  10569. uid: this.userid,
  10570. unitIndex: this.courseType,
  10571. },
  10572. ];
  10573. this.ajax
  10574. .post(this.$store.state.api + "updateWorkNew4", params)
  10575. .then((res) => {
  10576. this.$message.success("设置成功");
  10577. this.getCourseDetail(2);
  10578. this.dialogVisibleGroup2 = false;
  10579. this.groupJson2 = {};
  10580. this.$forceUpdate();
  10581. })
  10582. .catch((err) => {
  10583. this.$message.error("网络不佳");
  10584. console.error(err);
  10585. });
  10586. },
  10587. lockChair() {
  10588. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  10589. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  10590. this.updateGroupJson();
  10591. },
  10592. selectGroup(index) {
  10593. this.getCourseDetail(2, index);
  10594. },
  10595. joinGroup(index) {
  10596. if (this.groupJson.islock == 2) {
  10597. this.$message.error("位置已被锁定,无法加入");
  10598. return;
  10599. }
  10600. if (
  10601. this.groupStudent[this.toolindex][index].length >
  10602. this.groupJson.number ||
  10603. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  10604. ) {
  10605. this.$message.error("位置已满,无法加入");
  10606. return;
  10607. }
  10608. let params = [
  10609. {
  10610. cid: this.id,
  10611. stage: this.courseType,
  10612. task: this.taskCount,
  10613. tool: this.toolindex,
  10614. g: index,
  10615. uid: this.userid,
  10616. },
  10617. ];
  10618. this.ajax
  10619. .post(this.$store.state.api + "joinGroup", params)
  10620. .then((res) => {
  10621. this.$message.success("加入成功");
  10622. this.getCourseDetail();
  10623. })
  10624. .catch((err) => {
  10625. this.$message.error("网络不佳");
  10626. console.error(err);
  10627. });
  10628. },
  10629. exitGroup(id) {
  10630. if (this.groupJson.islock == 2) {
  10631. this.$message.error("位置已被锁定,无法退出");
  10632. return;
  10633. }
  10634. let params = [
  10635. {
  10636. gid: id,
  10637. },
  10638. ];
  10639. this.ajax
  10640. .post(this.$store.state.api + "exitGroup", params)
  10641. .then((res) => {
  10642. this.$message.success("退出成功");
  10643. this.getCourseDetail();
  10644. })
  10645. .catch((err) => {
  10646. this.$message.error("网络不佳");
  10647. console.error(err);
  10648. });
  10649. },
  10650. groupUpload(index, task, gindex) {
  10651. this.taskCount = task;
  10652. this.toolindex = index;
  10653. this.groupIndex = gindex;
  10654. this.dialogVisibleGroupWork = true;
  10655. },
  10656. updateGroupChair(user) {
  10657. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  10658. el.label = index;
  10659. return index != user.group;
  10660. });
  10661. this.updateGroupUser = user;
  10662. this.dialogVisibleUpdateGroup = true;
  10663. },
  10664. updateChair() {
  10665. if (
  10666. this.groupStudent[this.toolindex][this.checkChair].length >
  10667. this.groupJson.number ||
  10668. this.groupStudent[this.toolindex][this.checkChair].length ==
  10669. this.groupJson.number
  10670. ) {
  10671. this.$message.error("位置已满,无法加入");
  10672. return;
  10673. }
  10674. let params = [
  10675. {
  10676. cid: this.id,
  10677. stage: this.courseType,
  10678. task: this.taskCount,
  10679. tool: this.toolindex,
  10680. g: this.checkChair,
  10681. uid: this.updateGroupUser.userid,
  10682. },
  10683. ];
  10684. this.ajax
  10685. .post(this.$store.state.api + "joinGroup", params)
  10686. .then((res) => {
  10687. this.$message.success("修改成功");
  10688. this.updateGroupUser = {};
  10689. this.checkChair = "";
  10690. this.updateGroupArray = {};
  10691. this.dialogVisibleUpdateGroup = false;
  10692. this.getCourseDetail();
  10693. })
  10694. .catch((err) => {
  10695. this.$message.error("网络不佳");
  10696. console.error(err);
  10697. });
  10698. },
  10699. deleteGroupChair(gindex) {
  10700. this.checkDeleteGroup = [];
  10701. this.deleteGroupUser = JSON.parse(
  10702. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  10703. );
  10704. this.deleteGroupArray = this.groupJson.group[gindex];
  10705. this.groupIndex = gindex;
  10706. this.dialogVisibleDeleteGroup = true;
  10707. },
  10708. async deleteChair() {
  10709. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  10710. const gid =
  10711. this.groupStudent[this.toolindex][this.groupIndex][
  10712. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  10713. this.checkDeleteGroup[i]
  10714. )
  10715. ];
  10716. let params = [
  10717. {
  10718. gid: gid.id,
  10719. },
  10720. ];
  10721. var a = await this.deleteChairA(params);
  10722. if (i == this.checkDeleteGroup.length - 1) {
  10723. this.$message.success("退出成功");
  10724. this.dialogVisibleDeleteGroup = false;
  10725. this.deleteGroupUser = [];
  10726. this.deleteGroupArray = {};
  10727. this.groupIndex = "";
  10728. this.checkDeleteGroup = [];
  10729. this.getCourseDetail();
  10730. }
  10731. }
  10732. },
  10733. deleteChairA(params) {
  10734. return new Promise((resolve, reject) => {
  10735. this.ajax
  10736. .post(this.$store.state.api + "exitGroup", params)
  10737. .then((res) => {
  10738. resolve(1);
  10739. })
  10740. .catch((err) => {
  10741. this.$message.error("网络不佳");
  10742. console.error(err);
  10743. });
  10744. });
  10745. },
  10746. contract(i) {
  10747. if (this.isCloseList[i].isClose == 0) {
  10748. this.isCloseList[i].isClose = 1;
  10749. } else {
  10750. this.isCloseList[i].isClose = 0;
  10751. }
  10752. this.$forceUpdate();
  10753. },
  10754. },
  10755. directives: {
  10756. // 使用局部注册指令的方式
  10757. resize: {
  10758. // 指令的名称
  10759. bind(el, binding) {
  10760. // el为绑定的元素,binding为绑定给指令的对象
  10761. let width = "",
  10762. height = "";
  10763. function isReize() {
  10764. const style = document.defaultView.getComputedStyle(el);
  10765. if (width !== style.width || height !== style.height) {
  10766. binding.value(); // 关键
  10767. }
  10768. width = style.width;
  10769. height = style.height;
  10770. }
  10771. el.__vueSetInterval__ = setInterval(isReize, 300);
  10772. },
  10773. unbind(el) {
  10774. clearInterval(el.__vueSetInterval__);
  10775. },
  10776. },
  10777. },
  10778. beforeDestroy() {
  10779. window.onresize = null;
  10780. clearInterval(this.timer);
  10781. this.timer = null;
  10782. clearInterval(this.opertimer);
  10783. this.opertimer = null;
  10784. },
  10785. computed: {
  10786. contentConvent() {
  10787. return function (c) {
  10788. return c
  10789. ? c
  10790. .replaceAll(/\r\n/g, "<br/>")
  10791. .replaceAll(/\n/g, "<br/>")
  10792. .replaceAll(/\s/g, " &nbsp")
  10793. : "";
  10794. };
  10795. },
  10796. checkUpload(){
  10797. return function(){
  10798. var studentK = [];
  10799. if (this.plworkFile.length > 0) {
  10800. for (var z = 0; z < this.plworkFile.length; z++) {
  10801. studentK.push(this.plworkFile[z].username);
  10802. }
  10803. studentK = studentK.join(",");
  10804. }
  10805. var a = this.uploadStudentJuri.filter((el)=>{
  10806. return studentK.indexOf(el.userid) == -1
  10807. });
  10808. return a
  10809. }
  10810. }
  10811. },
  10812. mounted() {
  10813. if (this.screenType == 2) {
  10814. window.parent.postMessage({ allScreen: 4 }, "*");
  10815. } else if (this.screenType == 3) {
  10816. window.parent.postMessage({ allScreen: 5 }, "*");
  10817. } else if (this.screenType == 1) {
  10818. window.parent.postMessage({ allScreen: 6 }, "*");
  10819. }
  10820. this.setOperationTime();
  10821. this.selectEva();
  10822. this.getCourseDetail();
  10823. this.selectCount();
  10824. this.getHomeWork();
  10825. this.toolIndex = null
  10826. this.contentDialog = true;
  10827. this.setContent2(true)
  10828. if (this.tType == 4) {
  10829. this.pzDialog = true;
  10830. this.selectPz();
  10831. }
  10832. document.scrollingElement.scrollTop = 0;
  10833. window.addEventListener("resize", () => {
  10834. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  10835. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  10836. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  10837. });
  10838. let _this = this;
  10839. setTimeout(() => {
  10840. // _this.vedioTime = [];
  10841. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  10842. // _this.vedioTime[i] = document.getElementsByClassName(
  10843. // "vjs-duration-display"
  10844. // )[i].textContent;
  10845. // }
  10846. }, 1000);
  10847. },
  10848. };
  10849. </script>
  10850. <style scoped>
  10851. @media screen and (max-width: 1280px) {
  10852. /* .courseIndex > div:first-child(2) {
  10853. width: 15% !important;
  10854. } */
  10855. /* .navText {
  10856. width: 120px !important;
  10857. } */
  10858. .evaCss {
  10859. flex-direction: column !important;
  10860. align-items: center !important;
  10861. }
  10862. .dialog_diy1>>>.el-dialog {
  10863. width: 100% !important;
  10864. }
  10865. .rightWidthCss {
  10866. width: 100% !important;
  10867. }
  10868. .dialog_diy3>>>.el-dialog {
  10869. width: 100% !important;
  10870. }
  10871. /* .textTitle >>> .el-form-item__label {
  10872. width: 150px !important;
  10873. } */
  10874. }
  10875. .evaCssMax {
  10876. flex-direction: column !important;
  10877. align-items: center !important;
  10878. }
  10879. .dialog_diy>>>.el-dialog {
  10880. margin-top: 10vh !important;
  10881. }
  10882. .body_student {
  10883. width: 77%;
  10884. height: 100%;
  10885. position: absolute;
  10886. left: 22%;
  10887. top: 0;
  10888. }
  10889. .student_head {
  10890. width: 100%;
  10891. margin: 0 auto;
  10892. padding-bottom: 20px;
  10893. display: flex;
  10894. flex-direction: column;
  10895. flex-wrap: nowrap;
  10896. align-items: flex-start;
  10897. justify-content: flex-start;
  10898. }
  10899. .pb_left {
  10900. width: 20%;
  10901. margin-right: 10px;
  10902. background: rgb(255, 255, 255);
  10903. padding-right: 10px;
  10904. position: fixed;
  10905. height: 100%;
  10906. }
  10907. .wheel>img,
  10908. .project>img,
  10909. .star>img,
  10910. .evaluate>img,
  10911. .up_photo>img,
  10912. .chapter_add>img,
  10913. .deleteWord>img,
  10914. .question>img,
  10915. .homework>img {
  10916. width: 100%;
  10917. height: 100%;
  10918. }
  10919. .upCover>img {
  10920. width: 131px;
  10921. height: 69px;
  10922. object-fit: cover;
  10923. }
  10924. .upCover {
  10925. width: calc(100% / 3.5);
  10926. position: relative;
  10927. margin: 0 15px 10px 0;
  10928. display: flex;
  10929. flex-direction: column;
  10930. flex-wrap: nowrap;
  10931. justify-content: center;
  10932. align-content: center;
  10933. align-items: center;
  10934. height: fit-content;
  10935. }
  10936. .upCover2 {
  10937. width: 100%;
  10938. position: relative;
  10939. margin: 0 15px 10px 0;
  10940. display: flex;
  10941. flex-direction: column;
  10942. flex-wrap: nowrap;
  10943. justify-content: center;
  10944. align-content: center;
  10945. align-items: center;
  10946. }
  10947. .upCover2>img {
  10948. width: 100%;
  10949. height: 90px;
  10950. object-fit: contain;
  10951. }
  10952. .chapter_add {
  10953. width: 120px;
  10954. position: relative;
  10955. text-align: center;
  10956. }
  10957. .isAddThings {
  10958. margin-top: 20px;
  10959. position: relative;
  10960. text-align: center;
  10961. background: #f7f8fa;
  10962. height: 90px;
  10963. width: 90px;
  10964. display: flex;
  10965. flex-direction: column;
  10966. justify-content: center;
  10967. }
  10968. .deleteWord {
  10969. width: 22px;
  10970. height: 22px;
  10971. position: absolute;
  10972. right: -5px;
  10973. top: -5px;
  10974. cursor: pointer;
  10975. }
  10976. .box_course {
  10977. /* width: 60%; */
  10978. width: 81%;
  10979. }
  10980. .wheel {
  10981. width: 100%;
  10982. /* height: 100%; */
  10983. height: 650px;
  10984. }
  10985. .right_box {
  10986. display: flex;
  10987. flex-direction: column;
  10988. margin-left: 30px;
  10989. justify-content: space-around;
  10990. }
  10991. .right_box_title {
  10992. font-size: 23px;
  10993. }
  10994. .people {
  10995. display: flex;
  10996. }
  10997. .student_body {
  10998. width: 100%;
  10999. margin: 0 auto;
  11000. margin-top: 10px;
  11001. padding: 0 0 20px;
  11002. }
  11003. .study_top {
  11004. margin-top: 70px;
  11005. width: 100%;
  11006. /* overflow: auto; */
  11007. height: auto;
  11008. }
  11009. .study_top .checkbox {
  11010. display: flex;
  11011. align-items: center;
  11012. padding: 15px 0 15px 30px;
  11013. flex: 0 0 auto;
  11014. font-weight: bold;
  11015. border-bottom: 1px solid #eee;
  11016. }
  11017. .study_top .check {
  11018. padding-bottom: 5px;
  11019. text-align: center;
  11020. cursor: pointer;
  11021. height: 30px;
  11022. box-sizing: border-box;
  11023. display: flex;
  11024. }
  11025. .study_top .checked {
  11026. border-bottom: 4px solid #3fc6a0;
  11027. padding-bottom: 5px;
  11028. color: #3fc6a0;
  11029. display: flex;
  11030. height: 35px;
  11031. }
  11032. .study_top .checked>div,
  11033. .study_top .check>div {
  11034. margin-right: 5px;
  11035. }
  11036. .videoTop {
  11037. display: flex;
  11038. flex-direction: row;
  11039. justify-content: space-between;
  11040. background: #fff;
  11041. align-items: center;
  11042. width: 95%;
  11043. padding: 20px;
  11044. }
  11045. .upbtn {
  11046. margin: 25px;
  11047. background: #70afdb;
  11048. color: #fff;
  11049. width: 120px;
  11050. text-align: center;
  11051. height: 30px;
  11052. line-height: 30px;
  11053. font-size: 13px;
  11054. border-radius: 5px;
  11055. cursor: pointer;
  11056. }
  11057. .filebox {
  11058. display: flex;
  11059. flex-wrap: wrap;
  11060. flex-direction: column;
  11061. padding: 15px 0 5px;
  11062. }
  11063. .filebox .tooldetail {
  11064. width: 100%;
  11065. margin: 0px 12px;
  11066. background: rgb(247, 247, 247);
  11067. padding: 20px;
  11068. line-height: 30px;
  11069. word-break: break-word;
  11070. }
  11071. .file {
  11072. display: flex;
  11073. flex-direction: column;
  11074. align-items: center;
  11075. justify-content: center;
  11076. cursor: pointer;
  11077. width: 200px;
  11078. }
  11079. .file div {
  11080. margin-top: 10px;
  11081. width: 150px;
  11082. text-align: center;
  11083. overflow: hidden;
  11084. white-space: nowrap;
  11085. text-overflow: ellipsis;
  11086. }
  11087. .media {
  11088. display: flex;
  11089. flex-direction: column;
  11090. align-items: center;
  11091. justify-content: center;
  11092. margin: 0 20px 20px 0;
  11093. cursor: pointer;
  11094. margin: 12px 0 5px 15px;
  11095. overflow: hidden;
  11096. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  11097. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  11098. box-sizing: border-box;
  11099. }
  11100. .media img {
  11101. height: 90px;
  11102. width: 160px;
  11103. object-fit: cover;
  11104. }
  11105. .media .title {
  11106. padding: 5px;
  11107. text-align: left;
  11108. width: 100%;
  11109. box-sizing: border-box;
  11110. }
  11111. .media .btn {
  11112. width: 100%;
  11113. height: 35px;
  11114. line-height: 35px;
  11115. color: #fff;
  11116. background: #606060;
  11117. text-align: center;
  11118. overflow: hidden;
  11119. white-space: nowrap;
  11120. text-overflow: ellipsis;
  11121. }
  11122. .detail_content_top {
  11123. width: 100%;
  11124. padding: 25px 0 25px 0;
  11125. }
  11126. .detail_title {
  11127. text-align: center;
  11128. font-size: 24px;
  11129. }
  11130. .detail_time {
  11131. font-size: 13px;
  11132. padding: 15px 0 0 40px;
  11133. }
  11134. .detail_content {
  11135. line-height: 2pc;
  11136. width: 90%;
  11137. margin: 0 auto;
  11138. padding-top: 30px;
  11139. text-indent: 30px;
  11140. overflow: auto;
  11141. height: 200px;
  11142. }
  11143. .score_box>>>.el-rate {
  11144. margin-left: 10px;
  11145. }
  11146. .dialog_change>>>.el-dialog {
  11147. border-radius: 5px;
  11148. }
  11149. .dialog_change>>>.el-dialog__header {
  11150. background: #f2f2f2;
  11151. text-align: center;
  11152. }
  11153. .dialog_change>>>.el-dialog__title {
  11154. line-height: 5px;
  11155. }
  11156. .dialog_change>>>.el-dialog__body {
  11157. background: #fff;
  11158. padding: 10px 20px;
  11159. }
  11160. .score_box {
  11161. display: flex;
  11162. align-items: center;
  11163. margin-bottom: 18px;
  11164. margin-top: 20px;
  11165. }
  11166. .up_photo {
  11167. width: 120px;
  11168. cursor: pointer;
  11169. margin-top: 10px;
  11170. }
  11171. .up_photo2 {
  11172. width: 180px;
  11173. box-sizing: border-box;
  11174. min-width: 180px;
  11175. height: 180px;
  11176. max-height: 180px;
  11177. min-height: 180px;
  11178. cursor: pointer;
  11179. display: flex;
  11180. flex-direction: column;
  11181. align-items: center;
  11182. justify-content: center;
  11183. background: rgb(242, 246, 255);
  11184. /* padding: 25px; */
  11185. margin-bottom: 10px;
  11186. }
  11187. .up_photo2 img {
  11188. width: 50%;
  11189. height: auto;
  11190. }
  11191. .up_photo2 span {
  11192. color: #898989;
  11193. }
  11194. .plworkBox {
  11195. display: flex;
  11196. align-items: center;
  11197. margin-top: 10px;
  11198. flex-wrap: wrap;
  11199. }
  11200. .upload_send {
  11201. margin: 30px auto 30px;
  11202. width: 60%;
  11203. background: #169bd6;
  11204. text-align: center;
  11205. height: 35px;
  11206. line-height: 35px;
  11207. color: #fff;
  11208. border-radius: 5px;
  11209. cursor: pointer;
  11210. }
  11211. .marginT {
  11212. margin-top: 20px;
  11213. }
  11214. .cd_content_steps {
  11215. display: flex;
  11216. width: 90%;
  11217. justify-content: space-around;
  11218. border-top: 1px solid #eeeeee;
  11219. }
  11220. .cd_steps_box {
  11221. display: flex;
  11222. justify-content: center;
  11223. align-items: center;
  11224. flex-direction: column;
  11225. cursor: pointer;
  11226. }
  11227. .first {
  11228. display: flex;
  11229. align-items: center;
  11230. margin: 15px 0 20px 0;
  11231. font-size: 20px;
  11232. }
  11233. .first>div:nth-child(2) {
  11234. font-size: 16px !important;
  11235. padding-left: 10px;
  11236. line-height: 26px;
  11237. box-sizing: border-box;
  11238. }
  11239. .blue_box_one {
  11240. text-align: center;
  11241. color: #fff;
  11242. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  11243. border-radius: 7px;
  11244. margin: 10px;
  11245. cursor: pointer;
  11246. width: 95%;
  11247. height: 45px;
  11248. display: flex;
  11249. flex-direction: row;
  11250. justify-content: flex-start;
  11251. align-items: center;
  11252. }
  11253. .blue_box_one>div:nth-child(1) {
  11254. line-height: 30px;
  11255. margin: 0 5px 0 10px;
  11256. width: 30%;
  11257. min-width: 70px;
  11258. border-radius: 4px;
  11259. }
  11260. .blue_box_one>div:nth-child(2) {
  11261. white-space: nowrap;
  11262. text-overflow: ellipsis;
  11263. overflow: hidden;
  11264. word-break: break-all;
  11265. width: 70%;
  11266. text-align: left;
  11267. margin-right: 10px;
  11268. max-width: calc(100% - 85px);
  11269. }
  11270. .blue_box_one>div:nth-child(2):hover {
  11271. overflow: hidden;
  11272. text-overflow: ellipsis;
  11273. white-space: nowrap;
  11274. cursor: pointer;
  11275. }
  11276. .upFile {
  11277. margin: 0 auto;
  11278. width: 120px;
  11279. background: #70afdb;
  11280. color: #fff;
  11281. height: 30px;
  11282. text-align: center;
  11283. line-height: 30px;
  11284. border-radius: 5px;
  11285. font-size: 14px;
  11286. cursor: pointer;
  11287. }
  11288. .courseTitle {
  11289. background: #205cc6;
  11290. width: 85%;
  11291. margin: 10px auto;
  11292. color: #fff;
  11293. border-radius: 5px;
  11294. padding: 10px 10px;
  11295. display: flex;
  11296. flex-direction: row;
  11297. align-items: center;
  11298. justify-content: space-between;
  11299. text-align: center;
  11300. }
  11301. .courseTitle .ctitle {
  11302. font-weight: bold;
  11303. font-size: 20px;
  11304. white-space: nowrap;
  11305. overflow: hidden;
  11306. text-overflow: ellipsis;
  11307. }
  11308. .courseTitle .inviteBox {
  11309. font-size: 14px;
  11310. margin-top: 5px;
  11311. color: #a6cbff;
  11312. }
  11313. .courseTitle>>>.el-tooltip {
  11314. width: 100%;
  11315. white-space: nowrap;
  11316. overflow: hidden;
  11317. text-overflow: ellipsis;
  11318. word-break: break-word;
  11319. }
  11320. .ml {
  11321. margin-left: 20px;
  11322. color: #5b7dba;
  11323. border-left: 3px solid #5b7dba;
  11324. padding-left: 5px;
  11325. font-weight: bold;
  11326. }
  11327. .return {
  11328. width: 2rem;
  11329. height: 2rem;
  11330. cursor: pointer;
  11331. }
  11332. .return>img {
  11333. width: 100%;
  11334. height: 100%;
  11335. }
  11336. .returnBtn {
  11337. background: #499eef;
  11338. width: 65px;
  11339. height: 30px;
  11340. color: #fff;
  11341. text-align: center;
  11342. line-height: 32px;
  11343. margin-right: 20px;
  11344. cursor: pointer;
  11345. border-radius: 5px;
  11346. font-size: 14px;
  11347. }
  11348. .tool {
  11349. display: flex;
  11350. flex-direction: column;
  11351. flex-wrap: nowrap;
  11352. width: 13%;
  11353. margin: 0 30px;
  11354. align-items: center;
  11355. }
  11356. .whiteBIcon {
  11357. width: 150px;
  11358. cursor: pointer;
  11359. }
  11360. .whiteBIcon>img {
  11361. width: 100%;
  11362. height: 100%;
  11363. }
  11364. .mask {
  11365. background-color: rgba(0, 0, 0, 0);
  11366. position: fixed;
  11367. top: 0;
  11368. left: 0;
  11369. width: 100%;
  11370. height: 100%;
  11371. z-index: 20000;
  11372. display: flex;
  11373. align-items: center;
  11374. justify-content: center;
  11375. }
  11376. .progressBox {
  11377. width: 500px;
  11378. height: 180px;
  11379. background: #fff;
  11380. border-radius: 10px;
  11381. box-shadow: 0 0 6px 1px #bfbfbf;
  11382. display: flex;
  11383. align-items: center;
  11384. justify-content: center;
  11385. flex-direction: column;
  11386. position: relative;
  11387. color: #6c6c6c;
  11388. }
  11389. .progressBox>>>.el-progress-bar__outer {
  11390. background-color: #d1dfff !important;
  11391. }
  11392. .progressBox .lbox {
  11393. height: 50px;
  11394. font-size: 19px;
  11395. display: flex;
  11396. align-items: center;
  11397. color: #747474;
  11398. }
  11399. .progressBox .lbox img {
  11400. width: 40px;
  11401. margin-right: 20px;
  11402. }
  11403. .closeCss {
  11404. position: absolute;
  11405. top: 8px;
  11406. right: 8px;
  11407. cursor: pointer;
  11408. width: 20px;
  11409. height: 20px;
  11410. }
  11411. .closeCss>img {
  11412. width: 100%;
  11413. height: 100%;
  11414. }
  11415. .uploadVedio {
  11416. display: flex;
  11417. flex-direction: column;
  11418. flex-wrap: nowrap;
  11419. justify-content: center;
  11420. align-items: center;
  11421. margin: 0 15px 10px 0;
  11422. }
  11423. .uploadVedio>img {
  11424. width: 30px;
  11425. height: 30px;
  11426. }
  11427. .uploadVedio>span {
  11428. white-space: nowrap;
  11429. overflow: hidden;
  11430. text-overflow: ellipsis;
  11431. width: 75px;
  11432. margin-top: 7px;
  11433. }
  11434. .picName {
  11435. white-space: nowrap;
  11436. overflow: hidden;
  11437. text-overflow: ellipsis;
  11438. width: 75px;
  11439. margin-top: 7px;
  11440. }
  11441. .new_top {
  11442. display: flex;
  11443. background: #fff;
  11444. flex-direction: row;
  11445. justify-content: flex-start;
  11446. align-items: center;
  11447. height: 60px;
  11448. position: relative;
  11449. }
  11450. .before {
  11451. position: absolute;
  11452. background: #c3dad4;
  11453. width: 6px;
  11454. height: 100%;
  11455. }
  11456. .courseIndex {
  11457. display: flex;
  11458. flex-direction: row;
  11459. align-items: center;
  11460. width: calc(100% - 520px);
  11461. }
  11462. .courseIndex>div:nth-child(1) {
  11463. margin: 0 20px;
  11464. padding-left: 5px;
  11465. font-size: 24px;
  11466. min-width: 100px;
  11467. font-weight: bold;
  11468. border-left: 4px solid #3363b9;
  11469. height: 35px;
  11470. text-align: center;
  11471. line-height: 35px;
  11472. }
  11473. .courseIndex>div:nth-child(2) {
  11474. font-size: 23px;
  11475. /* width: 300px; */
  11476. max-width: calc(100% - 180px);
  11477. white-space: nowrap;
  11478. overflow: hidden;
  11479. text-overflow: ellipsis;
  11480. }
  11481. .courseIndex>div:nth-child(3) {
  11482. border-bottom: 1px solid #d7d7d7;
  11483. padding-bottom: 5px;
  11484. background: #49a0f0;
  11485. width: 55px;
  11486. min-width: 55px;
  11487. border-radius: 5px;
  11488. color: #fff;
  11489. text-align: center;
  11490. height: 20px;
  11491. line-height: 26px;
  11492. font-size: 14px;
  11493. margin: 0 0 0 10px;
  11494. }
  11495. .course_text {
  11496. padding: 20px 0 0 15px;
  11497. text-indent: 30px;
  11498. width: 80%;
  11499. min-height: 20px;
  11500. }
  11501. .vedioList {
  11502. background: #f2f2f2;
  11503. border: 1px solid #ececec;
  11504. /* width: 38.8%; */
  11505. width: 100%;
  11506. height: 445px;
  11507. border-radius: 10px;
  11508. overflow: hidden;
  11509. }
  11510. .vedioNav {
  11511. margin: 10px 0 0 15px;
  11512. border-bottom: 1px solid #d7d7d7;
  11513. padding-bottom: 5px;
  11514. background: #96d1ff;
  11515. width: 55px;
  11516. min-width: 55px;
  11517. border-radius: 5px;
  11518. color: #fff;
  11519. text-align: center;
  11520. height: 20px;
  11521. line-height: 26px;
  11522. font-size: 14px;
  11523. }
  11524. .queTop {
  11525. display: flex;
  11526. padding: 20px 0 20px 30px;
  11527. width: 100%;
  11528. flex-direction: row;
  11529. justify-content: flex-start;
  11530. align-items: center;
  11531. border-bottom: 1px solid #eeeeee;
  11532. box-sizing: border-box;
  11533. }
  11534. .question {
  11535. width: 40px;
  11536. margin-right: 10px;
  11537. margin-top: 7px;
  11538. }
  11539. .queTitle {
  11540. margin-left: 5px;
  11541. font-size: 25px;
  11542. display: flex;
  11543. align-items: center;
  11544. }
  11545. .addEditor {
  11546. width: 100px;
  11547. height: 30px;
  11548. background: #42cda6;
  11549. color: #fff;
  11550. border-radius: 5px;
  11551. text-align: center;
  11552. line-height: 30px;
  11553. box-shadow: 1px 3px 6px 1px #bfbfbf;
  11554. cursor: pointer;
  11555. }
  11556. .vedioName {
  11557. /* text-overflow: ellipsis;
  11558. top: 8px;
  11559. font-size: 14px;
  11560. overflow: hidden;
  11561. width: 100%;
  11562. word-break: break-all;
  11563. white-space: nowrap; */
  11564. cursor: pointer;
  11565. margin: 0px 0px 10px 5px;
  11566. white-space: nowrap;
  11567. overflow: hidden;
  11568. text-overflow: ellipsis;
  11569. width: 100%;
  11570. }
  11571. .vedioTime {
  11572. width: 35px;
  11573. position: absolute;
  11574. color: #fff;
  11575. bottom: 0px;
  11576. right: 0px;
  11577. text-align: center;
  11578. background: #46411f;
  11579. height: 20px;
  11580. font-size: 14px;
  11581. line-height: 20px;
  11582. }
  11583. .homework {
  11584. width: 200px;
  11585. display: flex;
  11586. flex-direction: column;
  11587. flex-wrap: nowrap;
  11588. align-items: center;
  11589. cursor: pointer;
  11590. }
  11591. .homebox {
  11592. display: flex;
  11593. flex-wrap: wrap;
  11594. flex-direction: row;
  11595. justify-content: flex-start;
  11596. align-items: center;
  11597. padding: 15px 0;
  11598. }
  11599. .isChooseActive {
  11600. color: #3e88f4;
  11601. border-bottom: 2px solid #2f80f3;
  11602. }
  11603. .chooseWho {
  11604. display: flex;
  11605. width: 100%;
  11606. flex-direction: row;
  11607. flex-wrap: nowrap;
  11608. justify-content: flex-start;
  11609. padding-bottom: 10px;
  11610. }
  11611. .chooseWho>div {
  11612. cursor: pointer;
  11613. padding-bottom: 10px;
  11614. margin: 0 30px;
  11615. }
  11616. .addPoint>div>img {
  11617. cursor: pointer;
  11618. margin: 0 10px;
  11619. width: 85px;
  11620. border-radius: 15px;
  11621. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  11622. }
  11623. .addPoint>div {
  11624. display: flex;
  11625. flex-direction: column;
  11626. flex-wrap: nowrap;
  11627. align-items: center;
  11628. }
  11629. .isBorder>div {
  11630. margin: 0 0 10px 0;
  11631. align-items: flex-start !important;
  11632. }
  11633. .noiframeBox {
  11634. display: flex;
  11635. flex-wrap: wrap;
  11636. }
  11637. .iframeBox iframe {
  11638. width: 100%;
  11639. height: 800px;
  11640. border: none;
  11641. margin-bottom: 20px;
  11642. border: 1px solid #ccc;
  11643. }
  11644. .upload_toolBtn {
  11645. background: #6b92c9;
  11646. color: #fff;
  11647. width: 110px;
  11648. text-align: center;
  11649. height: 35px;
  11650. line-height: 35px;
  11651. font-size: 14px;
  11652. border-radius: 5px;
  11653. cursor: pointer;
  11654. position: absolute;
  11655. right: 10px;
  11656. bottom: 0;
  11657. }
  11658. .binfo_input,
  11659. .pj {
  11660. font: inherit;
  11661. color: currentColor;
  11662. width: 100%;
  11663. margin: 0;
  11664. padding: 15px 14px;
  11665. display: block;
  11666. min-width: 0;
  11667. outline: none;
  11668. box-sizing: content-box;
  11669. background: none;
  11670. -webkit-tap-highlight-color: transparent;
  11671. border: 1px solid rgba(0, 0, 0, 0.23);
  11672. border-radius: 4px;
  11673. box-sizing: border-box;
  11674. resize: none;
  11675. }
  11676. .binfo_input:focus-visible {
  11677. border: 1px solid rgba(61, 103, 188);
  11678. }
  11679. .dialog_diy>>>.el-dialog__header,
  11680. .dialog_diy1>>>.el-dialog__header {
  11681. background: #454545 !important;
  11682. padding: 15px 20px;
  11683. }
  11684. .dialog_diy>>>.el-dialog__title,
  11685. .dialog_diy1>>>.el-dialog__title {
  11686. color: #fff;
  11687. }
  11688. .dialog_diy>>>.el-dialog__headerbtn,
  11689. .dialog_diy1>>>.el-dialog__headerbtn {
  11690. top: 19px;
  11691. }
  11692. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close,
  11693. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close {
  11694. color: #fff;
  11695. }
  11696. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover,
  11697. .dialog_diy1>>>.el-dialog__headerbtn .el-dialog__close:hover {
  11698. color: #fff;
  11699. }
  11700. .dialog_diy1>>>.el-dialog__body {
  11701. padding: 0;
  11702. }
  11703. .dialog_diy>>>.el-dialog__body,
  11704. .dialog_diy>>>.el-dialog__footer,
  11705. .dialog_diy1>>>.el-dialog__footer {
  11706. background: #fafafa;
  11707. }
  11708. .a_addBox {
  11709. margin: 10px 0;
  11710. background: #fff;
  11711. padding: 15px;
  11712. max-height: 400px;
  11713. overflow: auto;
  11714. }
  11715. .a_add_box {
  11716. border-bottom: 2px solid #eee;
  11717. padding-bottom: 10px;
  11718. }
  11719. .a_add_head {
  11720. display: flex;
  11721. align-items: flex-start;
  11722. /* justify-content: space-between; */
  11723. flex-direction: column;
  11724. /* flex-direction: row; */
  11725. margin: 10px 0 20px 0;
  11726. font-size: 18px;
  11727. width: 100%;
  11728. }
  11729. .a_add_head .a_add_head_input {
  11730. width: 300px;
  11731. }
  11732. .a_add_head .a_add_head_div {
  11733. display: flex;
  11734. align-items: center;
  11735. justify-content: space-between;
  11736. }
  11737. .a_add_body {
  11738. display: flex;
  11739. align-items: center;
  11740. }
  11741. .a_add_input {
  11742. display: flex;
  11743. align-items: center;
  11744. flex-wrap: wrap;
  11745. }
  11746. .a_add_input>>>el-radio-group {
  11747. margin: 10px 0;
  11748. }
  11749. .a_add_input>>>.el-radio,
  11750. .a_add_input>>>.el-checkbox {
  11751. margin-bottom: 10px;
  11752. display: flex;
  11753. flex-direction: row;
  11754. flex-wrap: nowrap;
  11755. align-items: center;
  11756. }
  11757. .redioStyle>>>.el-radio__label {
  11758. font-size: 18px;
  11759. }
  11760. .redioStyle>>>.el-checkbox__label {
  11761. font-size: 18px;
  11762. }
  11763. .toolHeng2 {
  11764. width: 100%;
  11765. }
  11766. .toolHeng {
  11767. display: flex;
  11768. flex-direction: row;
  11769. flex-wrap: wrap;
  11770. justify-content: flex-start;
  11771. align-items: center;
  11772. width: 100%;
  11773. }
  11774. .toolHeng>div {
  11775. padding-left: 20px;
  11776. }
  11777. .isWidth {
  11778. width: 20%;
  11779. }
  11780. .textTitle {
  11781. display: flex;
  11782. flex-direction: row;
  11783. flex-wrap: nowrap;
  11784. align-items: center;
  11785. width: 95%;
  11786. }
  11787. .textTitle>>>.el-form-item__label {
  11788. font-size: 22px;
  11789. color: #918f8f;
  11790. width: 100px;
  11791. }
  11792. .textTitle>>>.el-form-item__content {
  11793. width: calc(100% - 100px);
  11794. }
  11795. .textCss>>>.el-dialog {
  11796. width: 800px !important;
  11797. height: 400px;
  11798. background: #fafafa;
  11799. }
  11800. .textCss>>>.el-dialog__body {
  11801. margin: 55px 8% 0 8%;
  11802. padding: 0 !important;
  11803. }
  11804. .textCss>>>.el-dialog__footer {
  11805. padding-top: 38px;
  11806. }
  11807. .toolsCss>>>.el-dialog__body {
  11808. padding: 20px;
  11809. }
  11810. .lineCss>>>.el-dialog__body {
  11811. display: flex;
  11812. flex-direction: row;
  11813. align-items: center;
  11814. justify-content: center;
  11815. }
  11816. .newNav {
  11817. display: flex;
  11818. flex-direction: row;
  11819. align-items: baseline;
  11820. justify-content: flex-start;
  11821. }
  11822. .navText {
  11823. cursor: pointer;
  11824. margin: 0px 0px 10px 5px;
  11825. white-space: nowrap;
  11826. overflow: hidden;
  11827. text-overflow: ellipsis;
  11828. /* width: 300px; */
  11829. width: 100%;
  11830. }
  11831. .noVedio {
  11832. display: flex;
  11833. flex-direction: row;
  11834. justify-content: center;
  11835. align-content: center;
  11836. }
  11837. .noNavText {
  11838. cursor: pointer;
  11839. margin: 0px 0px 10px 5px;
  11840. width: 112px;
  11841. }
  11842. .listNoVedio {
  11843. margin: 0 0 0 30px;
  11844. width: 97%;
  11845. }
  11846. .video-player>>>.video-js {
  11847. height: 100%;
  11848. }
  11849. .hangVedioList {
  11850. width: 90% !important;
  11851. height: 150px !important;
  11852. margin: 20px 0 0 30px;
  11853. }
  11854. .hangVedio {
  11855. width: 100%;
  11856. height: 170px !important;
  11857. align-items: flex-start !important;
  11858. }
  11859. .hangHand {
  11860. height: 150px !important;
  11861. }
  11862. .twoChild {
  11863. width: 95%;
  11864. margin: 10px;
  11865. border-radius: 5px;
  11866. background: #f2f2f2;
  11867. display: flex;
  11868. flex-direction: column;
  11869. flex-wrap: nowrap;
  11870. justify-content: flex-start;
  11871. align-items: flex-start;
  11872. transition: all 0.5s;
  11873. overflow: hidden;
  11874. height: 0;
  11875. background: #e7f3ff;
  11876. }
  11877. .twoChild>div:nth-child(1) {
  11878. margin-top: 5px;
  11879. }
  11880. .navChild {
  11881. width: 100%;
  11882. cursor: pointer;
  11883. margin-bottom: 10px;
  11884. position: relative;
  11885. }
  11886. .navChild img {
  11887. position: absolute;
  11888. right: 11px;
  11889. width: 15px;
  11890. top: 50%;
  11891. transform: translateY(-50%);
  11892. }
  11893. .navActive {
  11894. height: auto;
  11895. }
  11896. .navTask {
  11897. display: flex;
  11898. flex-direction: row;
  11899. flex-wrap: nowrap;
  11900. align-items: center;
  11901. align-content: flex-start;
  11902. height: 40px;
  11903. justify-content: flex-start;
  11904. padding: 0 10px;
  11905. width: 100%;
  11906. box-sizing: border-box;
  11907. }
  11908. .navTaskname {
  11909. white-space: nowrap;
  11910. text-overflow: ellipsis;
  11911. overflow: hidden;
  11912. word-break: break-all;
  11913. padding-left: 5px;
  11914. }
  11915. .openTaskActive {
  11916. color: #4386e6;
  11917. }
  11918. .iframeName {
  11919. margin: 5px 0;
  11920. border-left: 4px solid #41c4a4;
  11921. padding-left: 4px;
  11922. }
  11923. .toolTitle {
  11924. margin: 0px 0px 20px;
  11925. font-size: 20px;
  11926. font-weight: 500;
  11927. border-left: 4px solid #41c4a4;
  11928. padding-left: 4px;
  11929. }
  11930. .cru_selectBox {
  11931. overflow: auto;
  11932. width: 96%;
  11933. margin: 0 auto;
  11934. height: calc(100% - 40px - 21px - 20px);
  11935. }
  11936. .cru_selectBox::-webkit-scrollbar,
  11937. .study_top::-webkit-scrollbar,
  11938. .textContent::-webkit-scrollbar {
  11939. /*滚动条整体样式*/
  11940. width: 6px;
  11941. /*高宽分别对应横竖滚动条的尺寸*/
  11942. height: 6px;
  11943. }
  11944. /*定义滚动条轨道 内阴影+圆角*/
  11945. .cru_selectBox::-webkit-scrollbar-track,
  11946. .study_top::-webkit-scrollbar-track,
  11947. .textContent::-webkit-scrollbar {
  11948. border-radius: 10px;
  11949. background-color: #b8bdc9;
  11950. }
  11951. /*定义滑块 内阴影+圆角*/
  11952. .cru_selectBox::-webkit-scrollbar-thumb,
  11953. .study_top::-webkit-scrollbar-thumb,
  11954. .textContent::-webkit-scrollbar-thumb {
  11955. border-radius: 10px;
  11956. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  11957. background-color: #2c5ab3;
  11958. }
  11959. .vedioBox {
  11960. border-radius: 20px;
  11961. background: #fff;
  11962. margin-bottom: 10px;
  11963. overflow: auto;
  11964. }
  11965. .taskBox {
  11966. margin: 15px auto 20px;
  11967. background: #f7f7f7;
  11968. width: 97%;
  11969. border-radius: 10px;
  11970. }
  11971. .vedioTaskBox {
  11972. width: 100%;
  11973. display: flex;
  11974. flex-direction: row;
  11975. flex-wrap: nowrap;
  11976. align-items: flex-start;
  11977. position: relative;
  11978. }
  11979. .toolBox {
  11980. padding: 20px 60px 15px;
  11981. display: flex;
  11982. position: relative;
  11983. }
  11984. .btnAll {
  11985. position: absolute;
  11986. right: 0;
  11987. display: flex;
  11988. flex-direction: row;
  11989. flex-wrap: nowrap;
  11990. align-items: center;
  11991. }
  11992. .btnAllNT {
  11993. position: fixed;
  11994. bottom: 50px;
  11995. right: 40px;
  11996. z-index: 999;
  11997. display: flex;
  11998. flex-direction: row;
  11999. }
  12000. .btnAllNT>img {
  12001. cursor: pointer;
  12002. width: 80px;
  12003. }
  12004. .vedioTimeBox {
  12005. display: flex;
  12006. flex-direction: row;
  12007. align-items: center;
  12008. flex-wrap: nowrap;
  12009. position: relative;
  12010. }
  12011. .navBox {
  12012. background: #fff;
  12013. height: calc(100% - 40px);
  12014. padding: 5px 1px 0;
  12015. overflow-y: auto;
  12016. overflow-x: hidden;
  12017. }
  12018. .tool_work_box {
  12019. width: 100%;
  12020. padding: 0 30px 10px;
  12021. box-sizing: border-box;
  12022. }
  12023. .worksBox {
  12024. padding: 5px 0;
  12025. border-bottom: 1px solid #eeeeee;
  12026. }
  12027. .worksBTitle {
  12028. font-size: 20px;
  12029. padding-bottom: 15px;
  12030. border-bottom: 1px solid #eeeeee;
  12031. display: flex;
  12032. align-items: center;
  12033. }
  12034. .greenBox {
  12035. width: 5px;
  12036. height: 30px;
  12037. background: #63b6fa;
  12038. margin-right: 5px;
  12039. }
  12040. .worksDetailBox {
  12041. display: flex;
  12042. width: 100%;
  12043. flex-direction: row;
  12044. flex-wrap: wrap;
  12045. align-items: flex-end;
  12046. justify-content: flex-start;
  12047. padding: 15px 0;
  12048. }
  12049. .works {
  12050. display: flex;
  12051. flex-direction: column;
  12052. flex-wrap: nowrap;
  12053. align-items: flex-start;
  12054. justify-content: flex-start;
  12055. align-content: center;
  12056. max-width: 240px;
  12057. width: calc(100% / 3 - 10px);
  12058. height: auto;
  12059. margin-right: 10px;
  12060. margin-bottom: 10px;
  12061. overflow: hidden;
  12062. height: 140px;
  12063. box-shadow: 0 0 6px 1px #dfdada;
  12064. border-radius: 15px;
  12065. }
  12066. .workImg {
  12067. width: 100%;
  12068. /* height: calc(100% - 40px); */
  12069. height: 105px;
  12070. position: relative;
  12071. }
  12072. .workImg>img {
  12073. width: 100%;
  12074. height: 100%;
  12075. object-fit: contain;
  12076. cursor: pointer;
  12077. }
  12078. .worksName {
  12079. height: 40px;
  12080. line-height: 40px;
  12081. display: flex;
  12082. width: 100%;
  12083. flex-direction: row;
  12084. flex-wrap: nowrap;
  12085. justify-content: space-between;
  12086. align-items: center;
  12087. margin: 0 0 0 10px;
  12088. }
  12089. .worksName>div:nth-child(1) {
  12090. width: 110px;
  12091. white-space: nowrap;
  12092. overflow: hidden;
  12093. text-overflow: ellipsis;
  12094. }
  12095. .worksName>div:nth-child(2) {
  12096. color: #b7b4b5;
  12097. }
  12098. .noWorksS {
  12099. padding: 15px 0 0;
  12100. display: flex;
  12101. flex-direction: row;
  12102. flex-wrap: wrap;
  12103. align-items: center;
  12104. justify-content: flex-start;
  12105. }
  12106. .noWorksS>div {
  12107. cursor: pointer;
  12108. }
  12109. .noWorksName,
  12110. .isWorksName {
  12111. background: #7cbcf1;
  12112. color: #fff;
  12113. width: 90px;
  12114. height: 25px;
  12115. text-align: center;
  12116. line-height: 25px;
  12117. border-radius: 5px;
  12118. margin: 10px 15px 10px 0;
  12119. white-space: nowrap;
  12120. overflow: hidden;
  12121. padding: 5px;
  12122. text-overflow: ellipsis;
  12123. }
  12124. .noWorksName.isWork{
  12125. background: #165d96 !important;
  12126. }
  12127. .isWorksName {
  12128. cursor: pointer;
  12129. background: #46a1eb !important;
  12130. width: 100px;
  12131. height: 40px;
  12132. line-height: 40px;
  12133. position: relative;
  12134. }
  12135. .noWorksName:hover {
  12136. background: #46a1eb !important;
  12137. }
  12138. .title {
  12139. background: #1e5cc9;
  12140. /* width: 98%; */
  12141. height: 45px;
  12142. color: #fff;
  12143. line-height: 45px;
  12144. padding-left: 20px;
  12145. box-sizing: border-box;
  12146. }
  12147. .textBox {
  12148. font-size: 20px;
  12149. width: 90%;
  12150. display: flex;
  12151. flex-direction: column;
  12152. align-items: center;
  12153. margin: 20px auto 0;
  12154. max-height: 500px;
  12155. overflow: auto;
  12156. }
  12157. .textContent {
  12158. font-size: 18px;
  12159. width: 95%;
  12160. max-width: 95%;
  12161. }
  12162. .answerBg {
  12163. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  12164. background-size: 100% 100%;
  12165. width: 100%;
  12166. height: 100%;
  12167. color: #fff;
  12168. text-align: center;
  12169. display: flex;
  12170. flex-direction: column;
  12171. flex-wrap: nowrap;
  12172. align-items: center;
  12173. position: relative;
  12174. justify-content: center;
  12175. }
  12176. .answerBg>div:nth-child(1) {
  12177. /* font-size: 22px;
  12178. padding: 25px 0 10px; */
  12179. }
  12180. .answerContent {
  12181. width: 215px;
  12182. max-height: 60px;
  12183. word-break: break-all;
  12184. text-align: center;
  12185. /* white-space: nowrap; */
  12186. overflow: hidden;
  12187. text-overflow: ellipsis;
  12188. /* padding: 23px 0 0; */
  12189. -webkit-line-clamp: 3;
  12190. -webkit-box-orient: vertical;
  12191. display: -webkit-box;
  12192. font-size: 15px;
  12193. cursor: pointer;
  12194. }
  12195. .elist_input_box {
  12196. display: flex;
  12197. align-items: flex-start;
  12198. flex-wrap: nowrap;
  12199. padding: 10px 0 15px 30px;
  12200. flex-direction: column;
  12201. }
  12202. .elist_input {
  12203. /* width: 40%; */
  12204. width: 100%;
  12205. }
  12206. .elist_input .elist_input_box input {
  12207. font: inherit;
  12208. color: currentColor;
  12209. width: 200px;
  12210. padding: 8px 14px;
  12211. display: block;
  12212. min-width: 0;
  12213. outline: none;
  12214. border: 1px solid rgba(0, 0, 0, 0.23);
  12215. border-radius: 4px;
  12216. box-sizing: border-box;
  12217. background: #fff;
  12218. margin: 0 20px 0 0;
  12219. }
  12220. .elist_input .elist_input_box span {
  12221. height: 36px;
  12222. line-height: 36px;
  12223. color: rgb(82, 82, 82);
  12224. }
  12225. .elist_input .elist_input_box .remove {
  12226. height: 20px;
  12227. width: 20px;
  12228. background-size: 100% 100%;
  12229. background-position: unset;
  12230. margin-left: 5px;
  12231. }
  12232. .elist_input_box>>>.el-rate {
  12233. display: flex;
  12234. height: 36px;
  12235. align-items: center;
  12236. }
  12237. .elist_input_box .elist_inptu_text {
  12238. min-height: 50px;
  12239. /* width: 500px;
  12240. max-height: 150px; */
  12241. width: 100%;
  12242. line-height: 50px;
  12243. color: rgb(82, 82, 82);
  12244. overflow: auto;
  12245. text-indent: 5px;
  12246. background: #f7f6f9;
  12247. border-radius: 10px;
  12248. }
  12249. .elist_input_box .elist_inptu_text input {
  12250. width: 500px;
  12251. }
  12252. .elist_input_box>>>.el-rate__icon {
  12253. font-size: 24px;
  12254. }
  12255. .isClick {
  12256. background: #4d9def;
  12257. }
  12258. /*定义滚动条轨道 内阴影+圆角*/
  12259. .bzTypeBox::-webkit-scrollbar {
  12260. /*滚动条整体样式*/
  12261. width: 6px;
  12262. /*高宽分别对应横竖滚动条的尺寸*/
  12263. height: 6px;
  12264. }
  12265. /*定义滚动条轨道 内阴影+圆角*/
  12266. .bzTypeBox::-webkit-scrollbar-track {
  12267. border-radius: 10px;
  12268. background-color: rgba(0, 0, 0, 0.1);
  12269. }
  12270. /*定义滑块 内阴影+圆角*/
  12271. .bzTypeBox::-webkit-scrollbar-thumb {
  12272. border-radius: 10px;
  12273. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  12274. background-color: rgba(0, 0, 0, 0.1);
  12275. }
  12276. .choiceBox{
  12277. display:flex;
  12278. margin: 20px 0;
  12279. width: 100%;
  12280. }
  12281. .bzTypeBox {
  12282. display: flex;
  12283. width: 100%;
  12284. overflow: auto;
  12285. white-space: nowrap;
  12286. }
  12287. .bzChild {
  12288. cursor: pointer;
  12289. box-sizing: border-box;
  12290. padding-bottom: 10px;
  12291. font-weight: bold;
  12292. min-width: fit-content;
  12293. }
  12294. .bzChild.active{
  12295. color: #3e88f4;
  12296. border-bottom: 2px solid #2f80f3;
  12297. }
  12298. .bzChild +.bzChild{
  12299. margin-left: 25px;
  12300. }
  12301. .bzBox {
  12302. display: flex;
  12303. flex-direction: row;
  12304. align-items: center;
  12305. }
  12306. .bzBox>div:nth-child(1) {
  12307. width: 4px;
  12308. height: 40px;
  12309. background-image: linear-gradient(180deg, #2c5cbd, #a1cff4);
  12310. }
  12311. .bzBox>div:nth-child(2) {
  12312. font-size: 23px;
  12313. font-weight: bold;
  12314. padding: 0px 0px 0 10px;
  12315. }
  12316. .navTitile {
  12317. padding: 0 0px 0 15px;
  12318. color: #fff;
  12319. height: 40px;
  12320. line-height: 40px;
  12321. }
  12322. .isTypeOne {
  12323. width: 240px;
  12324. height: 170px;
  12325. /* border: 1px solid #f8f8f8; */
  12326. border-radius: 10px;
  12327. box-shadow: 0 0 6px 1px #dfdada;
  12328. }
  12329. .e_add_top {
  12330. display: flex;
  12331. justify-content: space-between;
  12332. padding: 20px 20px 0 20px;
  12333. border-radius: 3px;
  12334. background: #fff;
  12335. }
  12336. .e_add_title2 {
  12337. display: flex;
  12338. align-items: center;
  12339. }
  12340. .e_add_title2 span {
  12341. width: 40px;
  12342. }
  12343. .e_add_title {
  12344. display: flex;
  12345. align-items: center;
  12346. color: #b8b8b8;
  12347. font-size: 18px;
  12348. position: relative;
  12349. height: 40px;
  12350. }
  12351. .e_add_title span {
  12352. margin-right: 10px;
  12353. }
  12354. .e_add_title .el_input {
  12355. width: 300px;
  12356. }
  12357. .e_add_title>>>.el-input__inner {
  12358. width: 400px;
  12359. }
  12360. .e_add_btn {}
  12361. .e_add_content {
  12362. display: flex;
  12363. width: 100%;
  12364. max-width: 650px;
  12365. height: 550px;
  12366. }
  12367. .e_add_list {
  12368. background: #fff;
  12369. height: 500px;
  12370. width: 210px;
  12371. position: relative;
  12372. margin: 15px 5px 0 0;
  12373. flex-shrink: 0;
  12374. display: flex;
  12375. flex-direction: column;
  12376. }
  12377. .e_add_list_title {
  12378. font-size: 20px;
  12379. width: 100%;
  12380. box-sizing: border-box;
  12381. padding: 15px 40px;
  12382. text-align: center;
  12383. border-bottom: 1px solid #eaeaea;
  12384. position: relative;
  12385. display: flex;
  12386. align-items: center;
  12387. justify-content: center;
  12388. height: 57px;
  12389. background: #f6f6f6;
  12390. }
  12391. .e_add_list_title span {
  12392. overflow: hidden;
  12393. white-space: nowrap;
  12394. text-overflow: ellipsis;
  12395. }
  12396. .e_add_list_title img {
  12397. position: absolute;
  12398. right: 15px;
  12399. width: 25px;
  12400. cursor: pointer;
  12401. top: 50%;
  12402. transform: translateY(-50%);
  12403. }
  12404. .e_add_list_body {
  12405. height: calc(100% - 187px);
  12406. overflow: auto;
  12407. }
  12408. .e_add_list_child {
  12409. width: 100%;
  12410. display: flex;
  12411. align-items: center;
  12412. justify-content: center;
  12413. position: relative;
  12414. box-sizing: border-box;
  12415. padding: 15px 40px;
  12416. text-align: center;
  12417. }
  12418. .e_add_list_child span {
  12419. overflow: hidden;
  12420. white-space: nowrap;
  12421. text-overflow: ellipsis;
  12422. cursor: pointer;
  12423. }
  12424. .e_add_list_child img {
  12425. position: absolute;
  12426. right: 10px;
  12427. width: 21px;
  12428. cursor: pointer;
  12429. top: 50%;
  12430. transform: translateY(-50%);
  12431. }
  12432. .e_add_list_child+.e_add_list_child {
  12433. border-top: 1px solid #eaeaea;
  12434. }
  12435. .e_add_list_child .active {
  12436. color: #409eff;
  12437. }
  12438. .e_add_list_btn {
  12439. position: absolute;
  12440. bottom: 0;
  12441. height: 50px;
  12442. background: rgb(120, 120, 254);
  12443. width: 100%;
  12444. color: #fff;
  12445. font-size: 16px;
  12446. text-align: center;
  12447. line-height: 50px;
  12448. cursor: pointer;
  12449. }
  12450. .e_add_list_detail {
  12451. position: absolute;
  12452. bottom: 0;
  12453. height: 130px;
  12454. background: rgb(120, 120, 254);
  12455. width: 100%;
  12456. color: #fff;
  12457. font-size: 16px;
  12458. display: flex;
  12459. align-items: center;
  12460. justify-content: center;
  12461. }
  12462. .e_add_list_detail textarea {
  12463. height: 90%;
  12464. width: 95%;
  12465. border: none;
  12466. resize: none;
  12467. outline: none;
  12468. padding: 5px;
  12469. box-sizing: border-box;
  12470. }
  12471. .e_add_list_pbox {
  12472. width: 100%;
  12473. max-width: 650px;
  12474. /* height: 600px; */
  12475. }
  12476. .e_add_list_pbox_title {
  12477. height: 50px;
  12478. background: #fff;
  12479. display: flex;
  12480. align-items: center;
  12481. width: 100%;
  12482. box-sizing: border-box;
  12483. padding: 0 20px;
  12484. }
  12485. .type_title {
  12486. font-size: 18px;
  12487. font-weight: 700;
  12488. }
  12489. .type_content {
  12490. font-size: 16px;
  12491. margin-left: 30px;
  12492. }
  12493. .type_content span+span {
  12494. margin-left: 20px;
  12495. }
  12496. .type_content span {
  12497. cursor: pointer;
  12498. padding-bottom: 5px;
  12499. box-sizing: border-box;
  12500. }
  12501. .type_content .active {
  12502. color: #409eff;
  12503. border-bottom: 2px solid #409eff;
  12504. }
  12505. .e_add_list_pbox_content {
  12506. height: calc(100% - 50px);
  12507. display: flex;
  12508. align-items: center;
  12509. width: 100%;
  12510. background: #fff;
  12511. }
  12512. .evaCss {
  12513. display: flex;
  12514. flex-direction: row;
  12515. flex-wrap: nowrap;
  12516. align-items: flex-start;
  12517. }
  12518. .cru_line {
  12519. position: absolute;
  12520. bottom: 0px;
  12521. transition: all 0.5s;
  12522. left: 0px;
  12523. width: 125px;
  12524. margin-left: -25px;
  12525. }
  12526. .isNoMessage {
  12527. width: 20%;
  12528. margin: 25% auto 0;
  12529. }
  12530. .isNoMessage>img {
  12531. width: 100%;
  12532. height: 100%;
  12533. }
  12534. .fullStyle>>>.el-dialog__body {
  12535. height: 100% !important;
  12536. }
  12537. .fullStyle>>>.el-dialog,
  12538. .fullStyle {
  12539. width: 100% !important;
  12540. max-width: 100% !important;
  12541. height: 100% !important;
  12542. margin: 0 !important;
  12543. }
  12544. .full_diy>>>.el-dialog {
  12545. margin: 0 !important;
  12546. height: 100%;
  12547. padding: 4px;
  12548. }
  12549. .full_diy>>>.el-dialog__body {
  12550. height: calc(100% - 100px);
  12551. }
  12552. .full_diy2>>>.el-dialog__body {
  12553. height: calc(100% - 50px);
  12554. padding: 0;
  12555. }
  12556. .switchCss {
  12557. /* width: 100%; */
  12558. display: flex;
  12559. flex-direction: row;
  12560. flex-wrap: nowrap;
  12561. align-items: center;
  12562. /* justify-content: center; */
  12563. }
  12564. .isClickNav {
  12565. color: #499eef;
  12566. }
  12567. .commentImg {
  12568. width: 25px;
  12569. height: 25px;
  12570. cursor: pointer;
  12571. }
  12572. .commentImg>img {
  12573. width: 100%;
  12574. height: 100%;
  12575. }
  12576. .comment {
  12577. background: #f9f9f9;
  12578. border-radius: 0 0 15px 15px;
  12579. display: flex;
  12580. flex-direction: row;
  12581. flex-wrap: nowrap;
  12582. align-items: center;
  12583. justify-content: flex-end;
  12584. height: 35px;
  12585. }
  12586. .commentList {
  12587. display: flex;
  12588. flex-direction: row;
  12589. flex-wrap: nowrap;
  12590. align-items: center;
  12591. justify-content: center;
  12592. align-content: center;
  12593. /* margin-left: 15px; */
  12594. /* margin-left: 8px; */
  12595. }
  12596. .scoreImg {
  12597. width: 17px;
  12598. height: 17px;
  12599. }
  12600. .studentDetail {
  12601. display: flex;
  12602. flex-direction: row;
  12603. flex-wrap: nowrap;
  12604. /* align-items: center; */
  12605. align-items: flex-start;
  12606. }
  12607. .tx {
  12608. width: 50px;
  12609. }
  12610. .tx>img {
  12611. width: 100%;
  12612. height: 100%;
  12613. }
  12614. .nameAndTime {
  12615. display: flex;
  12616. flex-direction: column;
  12617. flex-wrap: nowrap;
  12618. align-items: flex-start;
  12619. margin-left: 10px;
  12620. }
  12621. .worksAnswer {
  12622. color: #4078dd;
  12623. margin: 10px 0;
  12624. font-size: 16px;
  12625. position: relative;
  12626. }
  12627. .worksAnswer>img {
  12628. width: 500px;
  12629. height: 300px;
  12630. object-fit: contain;
  12631. margin: 0 auto;
  12632. display: block;
  12633. }
  12634. .commentTop {
  12635. border-bottom: 1px solid #eaeaea;
  12636. padding-bottom: 10px;
  12637. }
  12638. .commentBox {
  12639. padding-top: 15px;
  12640. }
  12641. .pl {
  12642. font-size: 18px;
  12643. }
  12644. .plPerson {
  12645. width: 100%;
  12646. }
  12647. .plName {
  12648. display: flex;
  12649. flex-direction: row;
  12650. flex-wrap: nowrap;
  12651. align-items: baseline;
  12652. color: #78787a;
  12653. width: 100%;
  12654. }
  12655. .deleteComment {
  12656. cursor: pointer;
  12657. margin-left: auto;
  12658. color: #237ade;
  12659. }
  12660. .plContent {
  12661. margin-top: 5px;
  12662. }
  12663. .evalCss {
  12664. background: #fff;
  12665. font-size: 18px;
  12666. }
  12667. .nav {
  12668. color: #9d9d9d;
  12669. padding: 5px 0 15px 20px;
  12670. }
  12671. .middleBox {
  12672. padding: 5px 0 15px 20px;
  12673. }
  12674. .pfBox {
  12675. padding-bottom: 30px;
  12676. }
  12677. .nameAndrate {
  12678. display: flex;
  12679. flex-direction: row;
  12680. flex-wrap: nowrap;
  12681. align-items: center;
  12682. padding-bottom: 10px;
  12683. height: 30px;
  12684. line-height: 30px;
  12685. }
  12686. .nameAndrate>div {
  12687. margin-left: 10px;
  12688. color: #000;
  12689. height: 30px;
  12690. }
  12691. .nameAndrate>>>.el-rate__icon {
  12692. font-size: 28px !important;
  12693. }
  12694. .pfBox>div:nth-child(2) {
  12695. background: #f7f6f9;
  12696. width: 400px;
  12697. min-height: 45px;
  12698. border-radius: 10px;
  12699. font-size: 16px;
  12700. display: flex;
  12701. flex-wrap: wrap;
  12702. align-items: center;
  12703. padding: 10px 20px;
  12704. box-sizing: border-box;
  12705. color: #000;
  12706. }
  12707. .bz {
  12708. display: flex;
  12709. flex-direction: row;
  12710. flex-wrap: nowrap;
  12711. align-items: flex-start;
  12712. }
  12713. .bz>div {
  12714. padding: 0 10px;
  12715. }
  12716. .select_box2_title {
  12717. background: #fff;
  12718. border-radius: 5px;
  12719. padding: 15px 10px;
  12720. box-sizing: border-box;
  12721. margin-bottom: 10px;
  12722. display: flex;
  12723. flex-direction: row;
  12724. flex-wrap: nowrap;
  12725. align-items: center;
  12726. }
  12727. .select_box2_title>div:nth-child(2) {
  12728. margin-left: 10px;
  12729. color: #c4c4c4;
  12730. }
  12731. .select_box2_box {
  12732. display: flex;
  12733. height: 500px;
  12734. }
  12735. .select_box2_img {
  12736. width: calc(100% - 310px);
  12737. height: 100%;
  12738. overflow: auto;
  12739. background: #fff;
  12740. border-radius: 5px;
  12741. }
  12742. .select_box2_img img {
  12743. width: 100%;
  12744. }
  12745. .select_box2_answer {
  12746. background: #fff;
  12747. margin-left: 10px;
  12748. border-radius: 5px;
  12749. width: 300px;
  12750. overflow: auto;
  12751. height: 90%;
  12752. display: flex;
  12753. flex-direction: column;
  12754. align-items: flex-start;
  12755. padding-top: 10px;
  12756. box-sizing: border-box;
  12757. position: relative;
  12758. }
  12759. .select_answer_title {
  12760. padding: 0 0 15px 20px;
  12761. color: #c4c4c4;
  12762. }
  12763. .select_box2_answer_box {
  12764. margin: 0 0 10px 20px;
  12765. width: 85%;
  12766. display: flex;
  12767. flex-direction: row;
  12768. flex-wrap: nowrap;
  12769. align-items: center;
  12770. }
  12771. .select_box2_answer_box>>>.el-input.is-disabled .el-input__inner {
  12772. color: #000;
  12773. }
  12774. .upAnswerCss {
  12775. position: absolute;
  12776. bottom: 15px;
  12777. right: 15px;
  12778. }
  12779. .upAnswerCss>>>.el-button {
  12780. width: 95px;
  12781. height: 35px;
  12782. line-height: 35px;
  12783. padding: 0;
  12784. }
  12785. .rightWidthCss {
  12786. width: 60%;
  12787. display: flex;
  12788. flex-direction: row;
  12789. align-items: flex-start;
  12790. }
  12791. .rightAnswer {
  12792. display: flex;
  12793. flex-direction: row;
  12794. flex-wrap: nowrap;
  12795. align-items: center;
  12796. color: red;
  12797. margin-bottom: 31px;
  12798. }
  12799. .rightAnswerCss {
  12800. display: flex;
  12801. flex-direction: column;
  12802. flex-wrap: nowrap;
  12803. padding-top: 60px;
  12804. }
  12805. .blueCss {
  12806. color: #767de1;
  12807. margin-left: 10px;
  12808. }
  12809. .redCss {
  12810. color: red;
  12811. }
  12812. .redioStyle>>>.el-radio__input.is-checked+.el-radio__label {
  12813. color: rgb(0 123 255) !important;
  12814. }
  12815. .redioStyle>>>.el-checkbox__input.is-checked+.el-checkbox__label {
  12816. color: rgb(0 123 255) !important;
  12817. }
  12818. .zuoyeYulan {
  12819. padding-top: 15px;
  12820. font-size: 18px;
  12821. display: flex;
  12822. align-items: flex-end;
  12823. }
  12824. .buttonA {
  12825. margin-left: 10px;
  12826. padding: 0;
  12827. }
  12828. .displayBox {
  12829. margin-bottom: 10px;
  12830. display: block;
  12831. border-bottom: 3px solid #eee;
  12832. display: flex;
  12833. align-items: center;
  12834. }
  12835. .easy_comment {
  12836. width: calc(100% - 90px);
  12837. margin-left: 10px;
  12838. display: flex;
  12839. flex-wrap: wrap;
  12840. }
  12841. .easy_comment>div {
  12842. border: 1px solid #4a4a4a;
  12843. color: #666;
  12844. border-radius: 15px;
  12845. padding: 5px 10px;
  12846. font-size: 16px;
  12847. margin-bottom: 10px;
  12848. margin-right: 5px;
  12849. cursor: pointer;
  12850. }
  12851. .easy_comment div:hover {
  12852. border: 1px solid #f7ba2a;
  12853. color: #c69217;
  12854. }
  12855. .xuan_right_box {
  12856. padding: 10px;
  12857. background: rgb(247, 247, 247);
  12858. margin: 10px 12px;
  12859. border-radius: 5px;
  12860. }
  12861. .tool_right_box {
  12862. display: flex;
  12863. align-items: center;
  12864. }
  12865. .tool_right_box+.tool_right_box {
  12866. margin-top: 10px;
  12867. }
  12868. .right_box_xuan {
  12869. background: rgb(0 123 255);
  12870. color: #fff;
  12871. border-radius: 5px;
  12872. padding: 5px;
  12873. margin-left: 10px;
  12874. }
  12875. .pButton:hover {
  12876. opacity: 1 !important;
  12877. }
  12878. .pButton {
  12879. position: fixed;
  12880. /* right: 5%; */
  12881. /* bottom: 5%; */
  12882. color: #fff;
  12883. /* width: 50px;
  12884. height: 50px; */
  12885. /* border-radius: 50%; */
  12886. text-align: center;
  12887. /* line-height: 50px; */
  12888. /* background-image: -webkit-linear-gradient(left, #72aaf4, #4d81d5); */
  12889. cursor: pointer;
  12890. z-index: 999;
  12891. right: 0;
  12892. top: 83px;
  12893. width: 50px;
  12894. height: 50px;
  12895. background: #fff;
  12896. display: flex;
  12897. align-items: center;
  12898. justify-content: center;
  12899. box-shadow: 0px 0 8px 2px #c5c5c5;
  12900. border-radius: 5px;
  12901. }
  12902. .pzClass {
  12903. width: calc(100% - 340px);
  12904. }
  12905. .newDialogCss {
  12906. /* position: fixed;
  12907. right: 5%;
  12908. top: 50%;
  12909. width: 340px;
  12910. transform: translateY(-50%);
  12911. height: 60%;
  12912. box-shadow: 0px 0 8px 0px #555555;
  12913. border-radius: 15px;
  12914. z-index: 999; */
  12915. position: fixed;
  12916. right: 0;
  12917. top: 70px;
  12918. width: 340px;
  12919. height: calc(100% - 80px);
  12920. z-index: 999;
  12921. background: #fff;
  12922. border-radius: 15px;
  12923. border-top-right-radius: 0px;
  12924. border-bottom-right-radius: 0px;
  12925. overflow: hidden;
  12926. }
  12927. .pzTop {
  12928. color: #fff;
  12929. background: #000;
  12930. display: flex;
  12931. flex-direction: row;
  12932. flex-wrap: nowrap;
  12933. align-items: center;
  12934. justify-content: space-between;
  12935. height: 40px;
  12936. border-radius: 15px 15px 0 0;
  12937. }
  12938. .pzTop2 .checkbox {
  12939. display: flex;
  12940. align-items: center;
  12941. padding: 15px 30px;
  12942. flex: 0 0 auto;
  12943. font-weight: bold;
  12944. border-bottom: 1px solid #eee;
  12945. justify-content: space-between;
  12946. }
  12947. .pzTop2 .check {
  12948. text-align: center;
  12949. cursor: pointer;
  12950. box-sizing: border-box;
  12951. display: flex;
  12952. }
  12953. .pzTop2 img {
  12954. width: 25px;
  12955. cursor: pointer;
  12956. }
  12957. .pzTop>div:nth-child(1) {
  12958. padding-left: 10px;
  12959. }
  12960. .pzTop>div:nth-child(2) {
  12961. width: 15px;
  12962. height: 15px;
  12963. padding-right: 10px;
  12964. cursor: pointer;
  12965. }
  12966. .pzTop>div:nth-child(2)>img {
  12967. width: 100%;
  12968. height: 100%;
  12969. }
  12970. .pzBox,
  12971. .noPzBox {
  12972. height: calc(100% - 60px);
  12973. /* background: #ededed; */
  12974. background: #fff;
  12975. /* border-radius: 0 0 15px 15px; */
  12976. }
  12977. .noPzBox {
  12978. display: flex;
  12979. flex-direction: column;
  12980. flex-wrap: nowrap;
  12981. justify-content: center;
  12982. align-items: center;
  12983. }
  12984. .pzList {
  12985. background: #f7f7f7;
  12986. width: 90%;
  12987. margin: 0 auto 15px;
  12988. border-radius: 5px;
  12989. }
  12990. .pzNavTop {
  12991. display: flex;
  12992. flex-direction: row;
  12993. flex-wrap: nowrap;
  12994. padding: 10px 10px 0 10px;
  12995. align-items: center;
  12996. }
  12997. .pzDelete {
  12998. cursor: pointer;
  12999. margin-left: auto;
  13000. font-size: 14px;
  13001. color: #afafaf;
  13002. }
  13003. .pzNavTop>div:nth-child(1) {
  13004. background: #3760af;
  13005. width: 35px;
  13006. height: 35px;
  13007. color: #fff;
  13008. text-align: center;
  13009. line-height: 35px;
  13010. border-radius: 50%;
  13011. font-size: 14px;
  13012. }
  13013. .pzNavTop>div:nth-child(2) {
  13014. font-size: 18px;
  13015. color: #959595;
  13016. margin-left: 5px;
  13017. }
  13018. .pzContent {
  13019. padding: 10px;
  13020. word-break: break-word;
  13021. }
  13022. .pzContent audio {
  13023. width: 100%;
  13024. }
  13025. .pzContent audio::-webkit-media-controls-panel {
  13026. background: #fff;
  13027. }
  13028. .pzListBox {
  13029. padding-top: 15px;
  13030. height: calc(100% - 60px);
  13031. overflow: auto;
  13032. }
  13033. .addPzButton {
  13034. position: relative;
  13035. margin-top: 3px;
  13036. width: 100%;
  13037. }
  13038. .addPzButton .img1 {
  13039. position: absolute;
  13040. top: 50%;
  13041. right: 25px;
  13042. transform: translateY(-50%);
  13043. height: 100%;
  13044. display: flex;
  13045. align-items: center;
  13046. }
  13047. .addPzButton .img1 div {
  13048. display: flex;
  13049. }
  13050. .addPzButton .img1 div img {
  13051. width: 28px;
  13052. margin-left: 10px;
  13053. cursor: pointer;
  13054. }
  13055. .addPzButton .img1 div span {
  13056. font-size: 14px;
  13057. margin: 4px 0 0 3px;
  13058. color: #afafaf;
  13059. }
  13060. .addPz {
  13061. background: #4b79ce;
  13062. width: 100px;
  13063. color: #fff;
  13064. font-size: 12px;
  13065. height: 30px;
  13066. margin: 0 auto;
  13067. text-align: center;
  13068. line-height: 30px;
  13069. border-radius: 10px;
  13070. cursor: pointer;
  13071. }
  13072. .addDialogCss {
  13073. position: fixed;
  13074. right: 37%;
  13075. top: 50%;
  13076. width: 600px;
  13077. transform: translateY(-50%);
  13078. height: 70%;
  13079. min-height: 450px;
  13080. box-shadow: 0px 0 8px 0px #555555;
  13081. border-radius: 15px;
  13082. z-index: 999;
  13083. }
  13084. .teacherPz {
  13085. display: flex;
  13086. flex-direction: row;
  13087. align-items: center;
  13088. flex-wrap: nowrap;
  13089. }
  13090. .teacherPzImg {
  13091. width: 30px;
  13092. height: 30px;
  13093. }
  13094. .teacherPzImg>img {
  13095. width: 100%;
  13096. height: 100%;
  13097. }
  13098. .addPzBox {
  13099. height: calc(100% - 40px);
  13100. background: #ededed;
  13101. }
  13102. .pzAudioClass {
  13103. margin: 15px 14px;
  13104. background: #fff;
  13105. height: 100%;
  13106. display: flex;
  13107. justify-content: center;
  13108. align-items: center;
  13109. }
  13110. .pzConText {
  13111. width: 95%;
  13112. height: 100%;
  13113. margin: 10px auto 0;
  13114. border: none;
  13115. background: #fff;
  13116. border-radius: 0px;
  13117. }
  13118. .pzConText>>>.text {
  13119. height: calc(100% - 82px);
  13120. }
  13121. .addTextCss {
  13122. background: #4b79ce;
  13123. width: 80px;
  13124. height: 30px;
  13125. text-align: center;
  13126. color: #fff;
  13127. line-height: 30px;
  13128. border-radius: 10px;
  13129. margin: 10px auto 0;
  13130. cursor: pointer;
  13131. }
  13132. .pzConText:focus-visible {
  13133. border: none !important;
  13134. }
  13135. .maxWidth {
  13136. width: 1000px;
  13137. }
  13138. .noPz {
  13139. width: 150px;
  13140. margin: 0 auto 20%;
  13141. }
  13142. .noPz>img {
  13143. width: 100%;
  13144. height: 100%;
  13145. }
  13146. .pzList .time {
  13147. text-align: right;
  13148. box-sizing: border-box;
  13149. padding: 0 10px 10px 0px;
  13150. color: #949494;
  13151. font-size: 14px;
  13152. }
  13153. /* table 样式 */
  13154. .cont>>>table {
  13155. border-top: 1px solid #ccc;
  13156. border-left: 1px solid #ccc;
  13157. }
  13158. .cont>>>table td,
  13159. .cont>>>table th {
  13160. border-bottom: 1px solid #ccc;
  13161. border-right: 1px solid #ccc;
  13162. padding: 15px 5px;
  13163. max-width: 0px;
  13164. }
  13165. .cont>>>table th {
  13166. border-bottom: 2px solid #ccc;
  13167. text-align: center;
  13168. }
  13169. /* blockquote 样式 */
  13170. .cont>>>blockquote {
  13171. display: block;
  13172. border-left: 8px solid #d0e5f2;
  13173. padding: 5px 10px;
  13174. margin: 10px 0;
  13175. line-height: 1.4;
  13176. font-size: 100%;
  13177. background-color: #f1f1f1;
  13178. }
  13179. .addPzCheck {
  13180. display: flex;
  13181. flex-direction: row;
  13182. flex-wrap: nowrap;
  13183. padding: 10px 15px 0;
  13184. }
  13185. .addPzCheck span {
  13186. cursor: pointer;
  13187. padding-bottom: 5px;
  13188. font-weight: bold;
  13189. }
  13190. .addPzCheck span+span {
  13191. margin-left: 10px;
  13192. }
  13193. .addPzCheck .isChooseActive {
  13194. color: #3e88f4;
  13195. border-bottom: 2px solid #2f80f3;
  13196. }
  13197. /* code 样式 */
  13198. .cont>>>code {
  13199. display: inline-block;
  13200. *display: inline;
  13201. *zoom: 1;
  13202. background-color: #f1f1f1;
  13203. border-radius: 3px;
  13204. padding: 3px 5px;
  13205. margin: 0 3px;
  13206. }
  13207. .cont>>>pre code {
  13208. display: block;
  13209. }
  13210. /* ul ol 样式 */
  13211. .cont>>>ul,
  13212. ol {
  13213. margin: 10px 0 10px 20px;
  13214. }
  13215. .scoreBox,
  13216. .scoreDetailBox {
  13217. display: flex;
  13218. align-items: center;
  13219. justify-content: flex-start;
  13220. margin-top: 20px;
  13221. font-size: 18px;
  13222. width: 100%;
  13223. }
  13224. .scoreBox .t,
  13225. .scoreDetailBox .t {
  13226. margin-right: 10px;
  13227. width: 100px;
  13228. text-align: right;
  13229. }
  13230. .scoreDetailBox {
  13231. align-items: flex-start;
  13232. }
  13233. .scoreDetailBox>>>.el-textarea {
  13234. width: calc(100% - 200px);
  13235. }
  13236. .scoreBox>>>.el-input {
  13237. width: 130px;
  13238. font-size: 38px;
  13239. }
  13240. .scoreBox>>>.el-input__inner {
  13241. height: 60px;
  13242. }
  13243. .answerScore {
  13244. position: absolute;
  13245. top: 10px;
  13246. right: 10px;
  13247. background: #0000008f;
  13248. border-radius: 5px;
  13249. padding: 3px 5px;
  13250. font-size: 14px;
  13251. color: #fff;
  13252. cursor: pointer;
  13253. }
  13254. .open_box .switch_box {
  13255. width: 100%;
  13256. margin: 0 auto;
  13257. display: flex;
  13258. justify-content: space-between;
  13259. }
  13260. .open_box .switch_box+.switch_box {
  13261. margin-top: 10px;
  13262. }
  13263. .deleteImg {
  13264. width: 25px !important;
  13265. height: 25px !important;
  13266. cursor: pointer;
  13267. position: absolute;
  13268. top: 10px;
  13269. right: 10px;
  13270. }
  13271. .deleteImg2 {
  13272. width: 15px !important;
  13273. height: 15px !important;
  13274. top: 5px;
  13275. right: 5px;
  13276. }
  13277. .rightW {
  13278. right: 40px;
  13279. }
  13280. .drawPBox {
  13281. display: flex;
  13282. flex-direction: column;
  13283. position: relative;
  13284. }
  13285. .drawPBox span {
  13286. font-size: 18px;
  13287. color: #606266;
  13288. padding-bottom: 10px;
  13289. margin: 10px 0;
  13290. border-bottom: 1px solid #eaeaea;
  13291. }
  13292. .drawPBox img {
  13293. width: 500px;
  13294. height: 300px;
  13295. object-fit: contain;
  13296. cursor: pointer;
  13297. margin: 0 auto;
  13298. }
  13299. .sentenBox {
  13300. background: #fff;
  13301. height: 450px;
  13302. overflow: auto;
  13303. background-image: url("../../assets/icon/conSentences/stuBg.png");
  13304. background-position: 102%;
  13305. background-repeat: no-repeat;
  13306. background-size: 60%;
  13307. }
  13308. .addSen {
  13309. background: #409efe;
  13310. width: 90px;
  13311. color: #fff;
  13312. height: 35px;
  13313. text-align: center;
  13314. line-height: 35px;
  13315. border-radius: 5px;
  13316. float: right;
  13317. margin: 10px 20px 0 0;
  13318. cursor: pointer;
  13319. }
  13320. .sentenTop {
  13321. display: flex;
  13322. flex-direction: row;
  13323. flex-wrap: nowrap;
  13324. align-items: center;
  13325. padding: 55px 0 0 20px;
  13326. box-sizing: border-box;
  13327. }
  13328. .sentenTop>div:nth-child(2) {
  13329. width: 300px;
  13330. margin: 0 15px;
  13331. }
  13332. .sentenTop>div:nth-child(3) {
  13333. background: #409efe;
  13334. color: #fff;
  13335. width: 65px;
  13336. height: 35px;
  13337. text-align: center;
  13338. line-height: 35px;
  13339. border-radius: 5px;
  13340. cursor: pointer;
  13341. }
  13342. .cardList,
  13343. .cardList1 {
  13344. padding: 10px 0 10px 0;
  13345. display: flex;
  13346. flex-direction: row;
  13347. flex-wrap: wrap;
  13348. align-items: center;
  13349. box-sizing: border-box;
  13350. border-bottom: 1px solid #f4f4f4;
  13351. width: 98%;
  13352. margin: 0 auto;
  13353. min-width: 60%;
  13354. max-width: 85%;
  13355. }
  13356. .cardList1 {
  13357. padding: 10px 0 10px 10px !important;
  13358. margin: 0 !important;
  13359. }
  13360. .cardBox {
  13361. display: flex;
  13362. flex-direction: row;
  13363. flex-wrap: wrap;
  13364. align-items: center;
  13365. align-content: center;
  13366. }
  13367. .cardBox>div {
  13368. margin-bottom: 10px;
  13369. }
  13370. .isCard,
  13371. .isChooseCard,
  13372. .noCard,
  13373. .isCard1 {
  13374. width: 130px;
  13375. height: 60px;
  13376. text-align: center;
  13377. line-height: 60px;
  13378. font-size: 20px;
  13379. cursor: pointer;
  13380. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  13381. background-size: cover;
  13382. transition: all 2s;
  13383. margin-right: 20px;
  13384. }
  13385. .isCard>div,
  13386. .noCard>div,
  13387. .isCard1>div {
  13388. white-space: nowrap;
  13389. overflow: hidden;
  13390. text-overflow: ellipsis;
  13391. width: 75%;
  13392. margin: 0 auto;
  13393. }
  13394. .noCard {
  13395. background-image: none;
  13396. }
  13397. .isCard1 {
  13398. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  13399. }
  13400. .isChooseCard {
  13401. background-image: none;
  13402. border: 1px dashed #b9b9b9;
  13403. border-radius: 10px;
  13404. }
  13405. .card {
  13406. width: 130px;
  13407. height: 60px;
  13408. }
  13409. .card>img {
  13410. width: 100%;
  13411. height: 100%;
  13412. }
  13413. .rightCardBox {
  13414. margin: 10px 0 0 10px;
  13415. }
  13416. .rightCardBox>div:nth-child(1) {
  13417. margin-bottom: 10px;
  13418. }
  13419. .cardCss {
  13420. display: flex;
  13421. flex-direction: column;
  13422. flex-wrap: nowrap;
  13423. align-items: center;
  13424. border-bottom: 3px solid #b4c3d3;
  13425. padding: 0 0 5px 0;
  13426. margin-right: 10px;
  13427. }
  13428. .cardCss>div:nth-child(2) {
  13429. background: #5b7b9d;
  13430. color: #fff;
  13431. width: 20px;
  13432. height: 20px;
  13433. border-radius: 50%;
  13434. text-align: center;
  13435. line-height: 20px;
  13436. }
  13437. .isWrong {
  13438. display: flex;
  13439. flex-direction: row;
  13440. flex-wrap: nowrap;
  13441. align-content: center;
  13442. align-items: center;
  13443. }
  13444. .answerRight {
  13445. width: 25%;
  13446. }
  13447. .isTj {
  13448. display: flex;
  13449. flex-direction: row;
  13450. flex-wrap: nowrap;
  13451. align-items: center;
  13452. }
  13453. .isTj>div:nth-child(2) {
  13454. color: #727070;
  13455. margin-left: 10px;
  13456. }
  13457. .isTjImg {
  13458. width: 30px;
  13459. height: 30px;
  13460. }
  13461. .isTjImg>img {
  13462. width: 100%;
  13463. height: 100%;
  13464. }
  13465. .cardAnswerBox {
  13466. font-size: 18px;
  13467. width: 97%;
  13468. border: 5px;
  13469. padding: 0;
  13470. border-radius: 5px;
  13471. margin: 10px auto;
  13472. word-break: break-word;
  13473. }
  13474. .w_name {
  13475. margin-bottom: 10px;
  13476. }
  13477. .w_name span {
  13478. font-size: 16px;
  13479. }
  13480. .w_teachert {
  13481. width: 50px !important;
  13482. position: absolute;
  13483. height: auto !important;
  13484. z-index: 10;
  13485. right: 25px;
  13486. top: -25px;
  13487. }
  13488. .group_workBox {}
  13489. .group_workBox+.group_workBox {
  13490. margin-top: 20px;
  13491. }
  13492. .group_box {
  13493. padding-bottom: 20px;
  13494. border-bottom: 2px solid #f0f0f0;
  13495. }
  13496. .group_title {
  13497. display: flex;
  13498. align-items: center;
  13499. justify-content: space-between;
  13500. }
  13501. .group_name {
  13502. background-image: url(../../assets/icon/groupN.png);
  13503. width: 220px;
  13504. background-size: 100% 100%;
  13505. height: 67px;
  13506. padding: 0 20px 0 43px;
  13507. box-sizing: border-box;
  13508. line-height: 63px;
  13509. color: #fff;
  13510. overflow: hidden;
  13511. white-space: nowrap;
  13512. text-overflow: ellipsis;
  13513. }
  13514. .group_work {
  13515. width: 100%;
  13516. padding: 0 10px;
  13517. box-sizing: border-box;
  13518. display: flex;
  13519. flex-wrap: wrap;
  13520. }
  13521. .g_d_box {
  13522. display: flex;
  13523. flex-flow: wrap;
  13524. justify-content: space-around;
  13525. }
  13526. .g_d_box .isChair {
  13527. background-image: url(../../assets/avatar.png) !important;
  13528. }
  13529. .g_d_group {
  13530. width: 500px;
  13531. margin-bottom: 80px;
  13532. }
  13533. .g_d_group_chair {
  13534. display: flex;
  13535. align-items: center;
  13536. justify-content: center;
  13537. }
  13538. .g_d_group_chair>div+div {
  13539. margin-left: 30px;
  13540. }
  13541. .g_d_group_chair>div,
  13542. .g_d_group_chair2>div {
  13543. display: flex;
  13544. flex-direction: column;
  13545. align-items: center;
  13546. }
  13547. .g_d_group_chair>div>span:nth-child(1),
  13548. .g_d_group_chair2>div>span:nth-child(1) {
  13549. background-image: url(../../assets/icon/chair.png);
  13550. width: 50px;
  13551. height: 50px;
  13552. display: block;
  13553. background-size: 100% 100%;
  13554. }
  13555. .g_d_group_tableBox {
  13556. display: flex;
  13557. align-items: center;
  13558. justify-content: center;
  13559. }
  13560. .g_d_group_chair2 {
  13561. display: flex;
  13562. flex-direction: column;
  13563. align-items: center;
  13564. justify-content: center;
  13565. }
  13566. .g_d_group_chair2>div+div {
  13567. margin-top: 10px;
  13568. }
  13569. .g_d_group_table {
  13570. background-image: url(../../assets/icon/groupBg.png);
  13571. width: 354px;
  13572. height: 196px;
  13573. background-size: 100% 100%;
  13574. display: flex;
  13575. align-items: center;
  13576. justify-content: center;
  13577. flex-direction: column;
  13578. color: #fff;
  13579. }
  13580. .g_d_group_table>div:nth-child(1) {
  13581. font-size: 24px;
  13582. margin-bottom: 5px;
  13583. }
  13584. .g_d_group_table>div:nth-child(2) div {
  13585. cursor: pointer;
  13586. background: #2e77bf;
  13587. padding: 4px 10px;
  13588. border-radius: 5px;
  13589. }
  13590. .groupBox {}
  13591. .groupContent+.groupContent {
  13592. margin-top: 30px;
  13593. }
  13594. .groupTitle {
  13595. font-size: 24px;
  13596. color: rgb(80, 80, 80);
  13597. margin-bottom: 20px;
  13598. }
  13599. .groupName {
  13600. display: flex;
  13601. align-items: center;
  13602. }
  13603. .groupn {
  13604. font-size: 15px;
  13605. margin-right: 10px;
  13606. }
  13607. .groupName+.groupName {
  13608. margin-top: 15px;
  13609. }
  13610. .groupBtn {
  13611. margin-left: 10px;
  13612. }
  13613. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  13614. text-align: left;
  13615. }
  13616. .g_d_btnBox {
  13617. display: flex;
  13618. justify-content: flex-end;
  13619. align-items: flex-end;
  13620. margin-bottom: 20px;
  13621. }
  13622. .updateChair {
  13623. position: relative;
  13624. }
  13625. .updateChairBtn {
  13626. position: absolute;
  13627. width: 50px;
  13628. height: 50px;
  13629. overflow: hidden;
  13630. /* display: flex; */
  13631. align-items: center;
  13632. justify-content: center;
  13633. background: #00000087;
  13634. color: #fff;
  13635. border-radius: 50px;
  13636. display: none;
  13637. cursor: pointer;
  13638. }
  13639. .updateChair:hover .updateChairBtn {
  13640. display: flex;
  13641. }
  13642. .group_staic_box {
  13643. display: flex;
  13644. padding: 30px 40px 10px;
  13645. flex-wrap: wrap;
  13646. }
  13647. .group_staic {
  13648. /* width: 50%; */
  13649. margin-bottom: 20px;
  13650. display: flex;
  13651. align-items: center;
  13652. }
  13653. .group_staic span:nth-child(1) {
  13654. width: 150px;
  13655. text-align: right;
  13656. margin-right: 15px;
  13657. }
  13658. .group_staic span:nth-child(2) {
  13659. background: rgb(0 123 255);
  13660. color: #fff;
  13661. border-radius: 5px;
  13662. padding: 5px;
  13663. }
  13664. .codeFileBox {
  13665. height: 300px;
  13666. background: #fff;
  13667. display: flex;
  13668. align-items: center;
  13669. justify-content: center;
  13670. }
  13671. .codeFileBox img {
  13672. width: 200px;
  13673. margin: 0;
  13674. height: auto;
  13675. }
  13676. .codeFileBox div {
  13677. background: rgb(80, 142, 226);
  13678. color: #fff;
  13679. padding: 10px 20px;
  13680. border-radius: 25px;
  13681. cursor: pointer;
  13682. margin-left: 15px;
  13683. }
  13684. .radioBox {
  13685. display: flex;
  13686. flex-direction: row;
  13687. flex-wrap: nowrap;
  13688. align-items: center;
  13689. }
  13690. .radioBox>div {
  13691. margin: 10px 0 0 10px;
  13692. }
  13693. /* .radioBox >>> .el-radio__input,
  13694. .radioBox >>> .el-checkbox__inner {
  13695. margin-left: 10px;
  13696. } */
  13697. .radioBox>>>.el-radio__label,
  13698. .radioBox>>>.el-checkbox__label {
  13699. display: flex;
  13700. align-items: center;
  13701. }
  13702. .inImg {
  13703. width: 100px;
  13704. cursor: pointer;
  13705. }
  13706. .inImg>img {
  13707. width: 100%;
  13708. height: 100%;
  13709. object-fit: cover;
  13710. }
  13711. .timuImgBox {
  13712. margin: 10px 0;
  13713. display: flex;
  13714. flex-direction: column;
  13715. flex-wrap: wrap;
  13716. align-items: flex-start;
  13717. }
  13718. .timuImg {
  13719. width: 100px;
  13720. margin: 5px 0;
  13721. cursor: pointer;
  13722. }
  13723. .timuImg>img {
  13724. width: 100%;
  13725. height: 100%;
  13726. object-fit: cover;
  13727. }
  13728. .worksTop {
  13729. display: flex;
  13730. flex-direction: row;
  13731. align-items: flex-end;
  13732. }
  13733. .corOpen {
  13734. margin: 0 0 0 10px;
  13735. font-size: 14px;
  13736. cursor: pointer;
  13737. color: #505050;
  13738. }
  13739. .corOpen:hover {
  13740. color: #499eef;
  13741. }
  13742. .navCorOpenBox {
  13743. display: flex;
  13744. flex-direction: row;
  13745. align-items: center;
  13746. background: #1e5cc9;
  13747. justify-content: space-between;
  13748. }
  13749. .navCorOpen {
  13750. padding-right: 15px;
  13751. cursor: pointer;
  13752. width: 20px;
  13753. display: flex;
  13754. }
  13755. .navCorOpen>img {
  13756. width: 100%;
  13757. height: 100%;
  13758. }
  13759. .mlImg {
  13760. width: 25px !important;
  13761. cursor: pointer;
  13762. margin-top: 5px;
  13763. }
  13764. .mlImg>img {
  13765. width: 100%;
  13766. height: 100%;
  13767. }
  13768. .navLeftCss {
  13769. width: 100% !important;
  13770. left: 0 !important;
  13771. }
  13772. .isContentCss {
  13773. width: 100% !important;
  13774. }
  13775. .isAllWidth {
  13776. width: 100% !important;
  13777. }
  13778. .toolBoxSteps {
  13779. position: absolute;
  13780. top: 50%;
  13781. transform: translateY(-50%);
  13782. cursor: pointer;
  13783. width: 60px;
  13784. display: flex;
  13785. align-items: center;
  13786. justify-content: center;
  13787. }
  13788. .toolBoxSteps:nth-child(1)>img,
  13789. .toolBoxSteps:nth-child(2)>img {
  13790. width: 24px;
  13791. }
  13792. .toolBoxSteps:nth-child(1) {
  13793. left: 0;
  13794. }
  13795. .toolBoxSteps:nth-child(2) {
  13796. right: 0;
  13797. }</style>