addCourse.vue 255 KB

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