addCourse.vue 280 KB

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