addCourse.vue 189 KB

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