addCourse.vue 199 KB

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