addCourse.vue 210 KB

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