addCourse.vue 345 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298
  1. <template>
  2. <div class="pb_content">
  3. <div class="pb_content_body" style="position: relative; margin: 0">
  4. <div class="right">
  5. <!-- <div style="display: flex; margin-top: 20px; position: relative"> -->
  6. <div style="width: 100%; height: 100%; overflow: auto" ref="stepBox">
  7. <div class="courseTop">
  8. <div class="stepsNav">
  9. <h3 class="info_title" v-if="steps == 1">填写基本信息</h3>
  10. <h3 class="info_title" v-if="steps == 4">上传课程</h3>
  11. <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 15px">
  12. <el-breadcrumb-item :to="{
  13. path:
  14. '/course?userid=' +
  15. userid +
  16. '&oid=' +
  17. oid +
  18. '&org=' +
  19. org +
  20. '&role=' +
  21. role,
  22. }">课程管理</el-breadcrumb-item>
  23. <el-breadcrumb-item>
  24. <span style="color: rgb(15, 126, 255)">添加课程</span>
  25. </el-breadcrumb-item>
  26. </el-breadcrumb>
  27. </div>
  28. </div>
  29. <div class="rightBox" v-if="this.steps == 1" @mousewheel="scrollChange">
  30. <div class="updateMask" :style="{
  31. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  32. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  33. <div class="whiteBg">
  34. <div class="right_title" :class="{ updateTips: cid && userid != courseUserid && role != '1' }">
  35. 课程基本信息
  36. </div>
  37. <div class="basic_box">
  38. <div class="big_box">
  39. <div class="left_first">
  40. <div>
  41. <div>
  42. <div class="bInfo_title" style="margin-bottom: 15px">
  43. <!-- <span style="color: red">*</span> -->
  44. 课程名称
  45. </div>
  46. <div style="display: flex; margin-right: 20px">
  47. <img src="../../../assets/icon/projectName.png" alt style="margin-right: 8px" />
  48. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName" />
  49. </div>
  50. </div>
  51. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  52. <span>类型</span>
  53. <!-- 学科+ 主题+ 未来+ -->
  54. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  55. style="display: flex; align-items: center">
  56. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  57. <el-radio :label="item.name">{{
  58. item.name
  59. }}</el-radio>
  60. </div>
  61. </el-radio-group>
  62. </div>
  63. <div class="both">
  64. <div class="choose">
  65. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  66. <span v-if="CourseTypeJson[item.id].length > 0 &&
  67. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  68. ? pTypeCheck.indexOf(item.id) != -1
  69. : true)
  70. ">{{ item.name }}</span>
  71. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  72. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  73. ? pTypeCheck.indexOf(item.id) != -1
  74. : true)
  75. ">
  76. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  77. item1.name }}</el-checkbox>
  78. </el-checkbox-group>
  79. <!-- <div
  80. v-else
  81. style="font-size: 14px; margin-left: -8px"
  82. >
  83. 暂无
  84. </div> -->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="whiteBg" style="border-radius: 0">
  94. <div class="right_first">
  95. <div class="right_title">上传封面</div>
  96. <div style="
  97. padding: 0 0 50px 20px;
  98. display: flex;
  99. align-items: baseline;
  100. justify-content: flex-start;
  101. margin: 0 auto;
  102. ">
  103. <div>
  104. <div class="bInfo_title" style="margin-top: 0 !important">
  105. 课程封面
  106. </div>
  107. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  108. <img src="../../../assets/icon/addPoster.png" alt="" />
  109. </div>
  110. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  111. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  112. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  113. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  114. <i class="el-icon-plus"></i>
  115. </el-upload>
  116. </div>
  117. <div style="
  118. display: flex;
  119. flex-flow: row nowrap;
  120. flex-direction: row;
  121. flex-wrap: wrap;
  122. align-items: baseline;
  123. margin: 0 30px;
  124. ">
  125. <div style="margin: 0 30px 0 0; width: 150px">
  126. <div class="bInfo_title">添加班级</div>
  127. <div class="addPeople" @click="(dialogVisibleClass = true),
  128. (classSearch = ''),
  129. getClass()
  130. ">
  131. 添加班级
  132. </div>
  133. <div v-if="checkboxList2.length" style="
  134. max-width: 100%;
  135. word-break: break-all;
  136. overflow: hidden;
  137. margin-top: 10px;
  138. font-size: 14px;
  139. color: #6e6e6e;
  140. ">
  141. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2"
  142. :key="tcIndex">{{ getClassC(tc) }}</span>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <div style="width: 95%; padding: 15px 0px 15px 20px">
  148. <el-switch v-model="isTeacherSee" active-text="是否公开此课程" style="padding-bottom: 30px"></el-switch>
  149. </div>
  150. </div>
  151. </div>
  152. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  153. <div class="right_title">课程简要描述</div>
  154. <div style="width: 95%; padding: 15px 0px 15px 20px">
  155. <div style="width: 55%">
  156. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  157. '\n' +
  158. '2、课程学习知识目标' +
  159. '\n' +
  160. '3、课程学习技能目标'
  161. "></textarea>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  166. <div class="right_title">
  167. <span>上传课程内容</span>
  168. <el-button type="primary" @click="pasteTask" size="small">智能粘贴</el-button>
  169. </div>
  170. <div style=" padding: 0 0 50px 20px;display: flex;">
  171. <div class="course_left">
  172. <div class="stepsBottom2">
  173. <div class="navTop">辅助导航</div>
  174. <div class="navBottom">
  175. <div class="navTask" :class="{
  176. isNavTask: isClickColor > 0 && isClickColor == tIndex + 1,
  177. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  178. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  179. <div>任务{{ tIndex + 1 }}</div>
  180. <div>
  181. <el-tooltip effect="light" :content="t.task" placement="top">
  182. <span>{{ t.task }}</span>
  183. </el-tooltip>
  184. </div>
  185. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length > 1">
  186. <div class="chapter_upload_up" style="width: 15px; height: 15px"
  187. @click.stop="taskMove(1, tIndex)">
  188. </div>
  189. <div class="chapter_upload_down" style="width: 15px; height: 15px; margin: 2px 0 0"
  190. @click.stop="taskMove(2, tIndex)"></div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="basic_box2">
  197. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  198. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  199. <div class="taskBorder">
  200. <div class="basic_box" style="
  201. margin: 0;
  202. min-height: 0;
  203. width: 90% !important;
  204. padding-top: 10px !important;
  205. ">
  206. <div style="
  207. display: flex;
  208. margin: 0 0 20px 0;
  209. flex-direction: row;
  210. justify-content: flex-start;
  211. align-items: center;
  212. ">
  213. <div class="lineTitle">学习内容</div>
  214. <div class="line"></div>
  215. </div>
  216. <div>
  217. <div class="add_chapters_box" v-if="item.taskJson[0].chapterData &&
  218. item.taskJson[0].chapterData.length == 0
  219. " style="height: 185px"></div>
  220. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  221. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0].chapterData"
  222. :key="item1.id" @click="getChapterData(
  223. $event,
  224. unitIndex,
  225. index,
  226. index1,
  227. item1.type
  228. )
  229. ">
  230. <div class="chapter_upload_t" style="width: 100%"></div>
  231. <div class="chapter_upload_o" style="
  232. position: relative;
  233. display: flex;
  234. align-items: center;
  235. ">
  236. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  237. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  238. <div v-if="item1.type == 3 ||
  239. item1.type == 12 ||
  240. item1.type == 6 ||
  241. item1.type == 7
  242. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  243. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  244. </div>
  245. <div class="chapter_upload_ic" style="
  246. cursor: pointer;
  247. position: absolute;
  248. width: 45px;
  249. right: 0;
  250. top: 0;
  251. ">
  252. <div class="chapter_upload_ic_l"></div>
  253. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  254. $event,
  255. unitIndex,
  256. index,
  257. index1,
  258. 0
  259. )
  260. ">
  261. <div></div>
  262. </div>
  263. </div>
  264. <div class="chapter_upload_n">
  265. <input v-if="item1.type == 2 ||
  266. item1.type == 3 ||
  267. item1.type == 12 ||
  268. item1.type == 7
  269. " :placeholder="item1.name" @change="updataVideoT(
  270. $event,
  271. unitIndex,
  272. chapterIndex,
  273. index1
  274. )
  275. " style="
  276. border: none;
  277. outline: none;
  278. width: 80%;
  279. minwidth: 215px;
  280. z-index: 99;
  281. font-size: 14px;
  282. white-space: nowrap;
  283. overflow: hidden;
  284. text-overflow: ellipsis;
  285. " />
  286. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  287. border: none;
  288. outline: none;
  289. width: 80%;
  290. white-space: nowrap;
  291. overflow: hidden;
  292. text-overflow: ellipsis;
  293. " readonly="true" @click="selectAttText(0, index1)" />
  294. <input :placeholder="item1.title ? item1.title : '链接'
  295. " v-if="item1.type == 8" style="
  296. border: none;
  297. outline: none;
  298. width: 80%;
  299. white-space: nowrap;
  300. overflow: hidden;
  301. text-overflow: ellipsis;
  302. " readonly="true" @click="selectLine(0, index1)" />
  303. <div class="chapter_upload_ud" style="z-index: 99">
  304. <div class="chapter_upload_up" @click="upCd(
  305. $event,
  306. unitIndex,
  307. index,
  308. 0,
  309. index1
  310. )
  311. "></div>
  312. <div class="chapter_upload_down" @click="downCd(
  313. $event,
  314. unitIndex,
  315. index,
  316. 0,
  317. index1
  318. )
  319. "></div>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </div>
  326. <div class="add_info_box">
  327. <button class="info_btn" @click="addImg($event)">
  328. 添加文件
  329. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, 0)
  330. " />
  331. </button>
  332. <!-- <button class="info_btn" @click="addImg($event)">
  333. 添加视频
  334. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  335. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  336. " />
  337. </button>
  338. <button class="info_btn" @click="addImg($event)">
  339. 添加文档
  340. <input type="file"
  341. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  342. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  343. " />
  344. </button> -->
  345. <button class="info_btn" @click="addAttText(0)">
  346. 添加图文
  347. </button>
  348. <button class="info_btn" @click="openLine(0)">
  349. 添加链接
  350. </button>
  351. <button class="info_btn" @click="pasteLine(0)">
  352. 嵌入代码
  353. </button>
  354. <button class="info_btn" @click="openSource(0)">
  355. 添加资源
  356. </button>
  357. <!-- <button class="info_btn" @click="addImg($event)">
  358. 其他附件
  359. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  360. " />
  361. </button> -->
  362. </div>
  363. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  364. 0
  365. ].proVisible
  366. " class="mask">
  367. <div class="progressBox">
  368. <!-- <div id="closePro" class="closeCss">
  369. <img src="../../../../assets/icon/close.png" alt />
  370. </div> -->
  371. <div class="lbox">
  372. <img src="../../../assets/loading.gif" />上传中,请稍后
  373. </div>
  374. <div style="margin-bottom: 10px">
  375. <span>{{
  376. unitJson[unitIndex].chapterInfo[0].taskJson[
  377. 0
  378. ].isFinishSize
  379. }}M</span>
  380. /
  381. <span>{{
  382. unitJson[unitIndex].chapterInfo[0].taskJson[
  383. 0
  384. ].isAllSize
  385. }}M</span>
  386. </div>
  387. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  388. 0
  389. ].progress
  390. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  391. 0
  392. ].progress
  393. : 0
  394. " style="width: 80%"></el-progress>
  395. </div>
  396. </div>
  397. </div>
  398. </div>
  399. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  400. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  401. <div v-if="unitJson[unitIndex].easy != 1">
  402. <div :style="{
  403. marginBottom:
  404. unitJson[unitIndex].easy == 3 ||
  405. (unitJson[unitIndex].easy == 5 &&
  406. itemTask.taskType == 1)
  407. ? '75px'
  408. : '0',
  409. }">
  410. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  411. 任务{{ itemTaskIndex + 1 }}
  412. </div>
  413. <div class="chapter_contentbox" style="
  414. flex-direction: row;
  415. justify-content: flex-start;
  416. align-items: center;
  417. ">
  418. <div style="
  419. border-left: 6px solid #5699e8;
  420. height: 20px;
  421. padding-left: 10px;
  422. line-height: 22px;
  423. ">
  424. 任务名称
  425. </div>
  426. <div>
  427. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  428. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  429. itemTaskIndex
  430. ].task
  431. " />
  432. </div>
  433. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"
  434. style="position: absolute; right: 55px">
  435. </div>
  436. </div>
  437. </div>
  438. </div>
  439. <div style="padding: 25px 0 10px 30px;">
  440. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  441. itemTaskIndex
  442. ].taskDetail
  443. " @change="change"></editor-bar> -->
  444. <textarea rows="2" class="binfo_input" placeholder="请输入任务描述" cols
  445. style="width: 90% !important; resize:none" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  446. itemTaskIndex
  447. ].taskDetail
  448. "></textarea>
  449. </div>
  450. </div>
  451. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  452. <div>
  453. <img src="../../../assets/icon/addHw.png" alt />
  454. <span>添加任务</span>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. <div class="rightBox" v-if="this.steps == 2">
  463. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  464. <div class="right_title" style="border: none; margin: 0; padding: 0">
  465. 请选择合适的课程模板
  466. </div>
  467. <div class="wordbox">
  468. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  469. <div class="wordPic">
  470. <img src="../../../assets/icon/wordMub.png" alt />
  471. </div>
  472. <div style="
  473. margin-top: 10px;
  474. line-height: 19px;
  475. overflow: hidden;
  476. text-overflow: ellipsis;
  477. white-space: nowrap;
  478. padding: 0 20px;
  479. ">
  480. {{ aa.title }}
  481. </div>
  482. </div>
  483. <div class="wordTeacher" @click="checkTemplate2()">
  484. <div class="wordPic">
  485. <img src="../../../assets/icon/wordMub.png" alt />
  486. </div>
  487. <div style="
  488. margin-top: 10px;
  489. line-height: 19px;
  490. overflow: hidden;
  491. text-overflow: ellipsis;
  492. white-space: nowrap;
  493. padding: 0 20px;
  494. ">
  495. 任务模式
  496. </div>
  497. </div>
  498. <div class="wordTeacher" @click="checkTemplate3()">
  499. <div class="wordPic">
  500. <img src="../../../assets/icon/wordMub.png" alt />
  501. </div>
  502. <div style="
  503. margin-top: 10px;
  504. line-height: 19px;
  505. overflow: hidden;
  506. text-overflow: ellipsis;
  507. white-space: nowrap;
  508. padding: 0 20px;
  509. ">
  510. 简易模式
  511. </div>
  512. </div>
  513. <div class="wordTeacher" @click="pasteStage()">
  514. <div class="wordPic">
  515. <img src="../../../assets/icon/wordMub.png" alt />
  516. </div>
  517. <div style="
  518. margin-top: 10px;
  519. line-height: 19px;
  520. overflow: hidden;
  521. text-overflow: ellipsis;
  522. white-space: nowrap;
  523. padding: 0 20px;
  524. ">
  525. 智能粘贴模式
  526. </div>
  527. </div>
  528. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  529. <div class="wordPic">
  530. <img src="../../../assets/icon/wordMub.png" alt />
  531. </div>
  532. <div style="
  533. margin-top: 10px;
  534. line-height: 19px;
  535. overflow: hidden;
  536. text-overflow: ellipsis;
  537. white-space: nowrap;
  538. padding: 0 20px;
  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 style="
  548. margin-top: 10px;
  549. line-height: 19px;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. white-space: nowrap;
  553. padding: 0 20px;
  554. ">
  555. 我的课程
  556. </div>
  557. </div> -->
  558. </div>
  559. </div>
  560. </div>
  561. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  562. <div class="basic_box">
  563. <div style="
  564. display: flex;
  565. flex-direction: row;
  566. align-items: center;
  567. position: sticky;
  568. top: 0;
  569. background: #fff;
  570. z-index: 99;
  571. width: 100%;
  572. padding: 0 20px 0 20px;
  573. box-sizing: border-box;
  574. ">
  575. <div class="cru_selectBox">
  576. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  577. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  578. <!-- item.dyName ? item.dyName : -->
  579. {{
  580. "第" + (index + 1) + "阶段"
  581. }}
  582. </div>
  583. <img src="../../../assets/line.png" class="cru_line" :style="{
  584. left: offsetLetfPx + 'px',
  585. }" />
  586. </div>
  587. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  588. !(unitJson[unitJson.length - 1].easy == 6)
  589. ">
  590. <img src="../../../assets/icon/add.png" alt />
  591. </div>
  592. </div>
  593. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  594. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  595. <div>
  596. <div class="chapter_contentbox">
  597. <div>第{{ unitIndex + 1 }}阶段</div>
  598. <div>
  599. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  600. </div>
  601. <div v-if="unitJson.length > 1 &&
  602. !(unitJson[unitJson.length - 1].easy == 4) &&
  603. !(unitJson[unitJson.length - 1].easy == 6)
  604. " @click="deleteUnit(unitIndex)"></div>
  605. </div>
  606. </div>
  607. <div v-if="!unitJson[unitIndex].easy" style="
  608. margin: 50px 0px 10px;
  609. font-size: 1.5em;
  610. font-weight: 700;
  611. color: #0f7eff;
  612. ">
  613. 添加任务
  614. </div>
  615. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  616. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  617. <div v-if="unitJson[unitIndex].easy != 1">
  618. <div :style="{
  619. marginBottom:
  620. unitJson[unitIndex].easy == 3 ||
  621. (unitJson[unitIndex].easy == 5 &&
  622. itemTask.taskType == 1)
  623. ? '75px'
  624. : '0',
  625. }">
  626. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  627. 任务{{ itemTaskIndex + 1 }}
  628. </div>
  629. <div class="chapter_contentbox" style="
  630. flex-direction: row;
  631. justify-content: flex-start;
  632. align-items: center;
  633. ">
  634. <div style="
  635. border-left: 6px solid #5699e8;
  636. height: 20px;
  637. padding-left: 10px;
  638. line-height: 22px;
  639. ">
  640. 任务名称
  641. </div>
  642. <div>
  643. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  644. itemTaskIndex
  645. ].task
  646. " />
  647. </div>
  648. <div class="remove" v-if="item.taskJson.length > 1 &&
  649. (!unitJson[unitIndex].easy ||
  650. unitJson[unitIndex].easy == 6)
  651. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  652. </div>
  653. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  654. display: flex;
  655. margin: 0 0 20px 0;
  656. flex-direction: row;
  657. justify-content: flex-start;
  658. align-items: center;
  659. width: 70.5% !important;
  660. padding-top: 30px;
  661. ">
  662. <div class="lineTitle">任务描述</div>
  663. <div class="line"></div>
  664. </div>
  665. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  666. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  667. itemTaskIndex
  668. ].taskDetail
  669. " @change="change"></editor-bar>
  670. <!-- <textarea
  671. rows="6"
  672. class="binfo_input"
  673. placeholder="请输入任务描述"
  674. cols
  675. style="width: 70.5% !important; height: 120px"
  676. v-model="
  677. unitJson[unitIndex].chapterInfo[0].taskJson[
  678. itemTaskIndex
  679. ].taskDetail
  680. "
  681. ></textarea>-->
  682. </div>
  683. </div>
  684. </div>
  685. <div v-if="!unitJson[unitIndex].easy ||
  686. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  687. " class="basic_box" style="
  688. margin: 0;
  689. min-height: 0;
  690. width: 90% !important;
  691. padding-top: 10px !important;
  692. ">
  693. <div style="
  694. display: flex;
  695. margin: 0 0 20px 0;
  696. flex-direction: row;
  697. justify-content: flex-start;
  698. align-items: center;
  699. ">
  700. <div class="lineTitle">学习内容</div>
  701. <div class="line"></div>
  702. </div>
  703. <div>
  704. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  705. itemTask.chapterData.length == 0
  706. " style="height: 185px"></div>
  707. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  708. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  709. @click="getChapterData(
  710. $event,
  711. unitIndex,
  712. index,
  713. index1,
  714. item1.type
  715. )
  716. ">
  717. <div class="chapter_upload_t" style="width: 100%"></div>
  718. <div class="chapter_upload_o" style="
  719. position: relative;
  720. display: flex;
  721. align-items: center;
  722. ">
  723. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  724. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  725. <div v-if="item1.type == 3 ||
  726. item1.type == 12 ||
  727. item1.type == 6 ||
  728. item1.type == 7
  729. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  730. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  731. </div>
  732. <div class="chapter_upload_ic" style="
  733. cursor: pointer;
  734. position: absolute;
  735. width: 45px;
  736. right: 0;
  737. top: 0;
  738. ">
  739. <div class="chapter_upload_ic_l"></div>
  740. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  741. $event,
  742. unitIndex,
  743. index,
  744. index1,
  745. itemTaskIndex
  746. )
  747. ">
  748. <div></div>
  749. </div>
  750. </div>
  751. <div class="chapter_upload_n">
  752. <input v-if="item1.type == 2 ||
  753. item1.type == 3 ||
  754. item1.type == 12 ||
  755. item1.type == 7
  756. " :placeholder="item1.name" @change="updataVideoT(
  757. $event,
  758. unitIndex,
  759. chapterIndex,
  760. index1
  761. )
  762. " style="
  763. border: none;
  764. outline: none;
  765. width: 80%;
  766. minwidth: 215px;
  767. z-index: 99;
  768. font-size: 14px;
  769. white-space: nowrap;
  770. overflow: hidden;
  771. text-overflow: ellipsis;
  772. " />
  773. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  774. border: none;
  775. outline: none;
  776. width: 80%;
  777. white-space: nowrap;
  778. overflow: hidden;
  779. text-overflow: ellipsis;
  780. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  781. <input :placeholder="item1.title ? item1.title : '链接'
  782. " v-if="item1.type == 8" style="
  783. border: none;
  784. outline: none;
  785. width: 80%;
  786. white-space: nowrap;
  787. overflow: hidden;
  788. text-overflow: ellipsis;
  789. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  790. <div class="chapter_upload_ud" style="z-index: 99">
  791. <div class="chapter_upload_up" @click="upCd(
  792. $event,
  793. unitIndex,
  794. index,
  795. itemTaskIndex,
  796. index1
  797. )
  798. "></div>
  799. <div class="chapter_upload_down" @click="downCd(
  800. $event,
  801. unitIndex,
  802. index,
  803. itemTaskIndex,
  804. index1
  805. )
  806. "></div>
  807. </div>
  808. </div>
  809. </div>
  810. </div>
  811. </div>
  812. </div>
  813. <div class="add_info_box">
  814. <button class="info_btn" @click="addImg($event)">
  815. 添加文件
  816. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  817. " />
  818. </button>
  819. <!-- <button class="info_btn" @click="addImg($event)">
  820. 添加视频
  821. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  822. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  823. " />
  824. </button>
  825. <button class="info_btn" @click="addImg($event)">
  826. 添加文档
  827. <input type="file"
  828. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  829. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  830. " />
  831. </button> -->
  832. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  833. 添加图文
  834. </button>
  835. <button class="info_btn" @click="openLine(itemTaskIndex)">
  836. 添加链接
  837. </button>
  838. <button class="info_btn" @click="openSource(itemTaskIndex)">
  839. 添加资源
  840. </button>
  841. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  842. 嵌入代码
  843. </button>
  844. <!-- <button class="info_btn" @click="addImg($event)">
  845. 其他附件
  846. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  847. " />
  848. </button> -->
  849. </div>
  850. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  851. itemTaskIndex
  852. ].proVisible
  853. " class="mask">
  854. <div class="progressBox">
  855. <!-- <div id="closePro" class="closeCss">
  856. <img src="../../../../assets/icon/close.png" alt />
  857. </div> -->
  858. <div class="lbox">
  859. <img src="../../../assets/loading.gif" />上传中,请稍后
  860. </div>
  861. <div style="margin-bottom: 10px">
  862. <span>{{
  863. unitJson[unitIndex].chapterInfo[0].taskJson[
  864. itemTaskIndex
  865. ].isFinishSize
  866. }}M</span>
  867. /
  868. <span>{{
  869. unitJson[unitIndex].chapterInfo[0].taskJson[
  870. itemTaskIndex
  871. ].isAllSize
  872. }}M</span>
  873. </div>
  874. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  875. itemTaskIndex
  876. ].progress
  877. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  878. itemTaskIndex
  879. ].progress
  880. : 0
  881. " style="width: 80%"></el-progress>
  882. </div>
  883. </div>
  884. </div>
  885. <div v-if="unitJson[unitIndex].easy == 1 ||
  886. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  887. " class="basic_box" style="
  888. margin: 0 auto;
  889. min-height: 0;
  890. width: 95% !important;
  891. padding: 20px 10px 10px;
  892. ">
  893. <div>
  894. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  895. itemTask.chapterData.length == 0
  896. " style="height: 185px"></div>
  897. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  898. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  899. <div class="chapter_upload" @click="getChapterData(
  900. $event,
  901. unitIndex,
  902. index,
  903. index1,
  904. item1.type
  905. )
  906. ">
  907. <div class="chapter_upload_t" style="width: 100%"></div>
  908. <div class="chapter_upload_o" style="
  909. position: relative;
  910. display: flex;
  911. align-items: center;
  912. ">
  913. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  914. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  915. <div v-if="item1.type == 3 ||
  916. item1.type == 6 ||
  917. item1.type == 7
  918. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  919. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  920. </div>
  921. <div class="chapter_upload_ic" style="
  922. cursor: pointer;
  923. position: absolute;
  924. width: 45px;
  925. right: 0;
  926. top: 0;
  927. ">
  928. <div class="chapter_upload_ic_l"></div>
  929. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="deleteChapterData(
  930. $event,
  931. unitIndex,
  932. index,
  933. index1,
  934. itemTaskIndex
  935. )
  936. ">
  937. <div></div>
  938. </div>
  939. </div>
  940. <div class="chapter_upload_n">
  941. <span style="
  942. font-size: 14px;
  943. color: rgb(109, 109, 109);
  944. height: 14px;
  945. line-height: 12px;
  946. " v-if="item1.type == 2 ||
  947. item1.type == 3 ||
  948. item1.type == 7
  949. ">{{ item1.text }}-</span>
  950. <input v-if="item1.type == 2 ||
  951. item1.type == 3 ||
  952. item1.type == 7
  953. " :placeholder="item1.name" @change="updataVideoT(
  954. $event,
  955. unitIndex,
  956. chapterIndex,
  957. index1
  958. )
  959. " style="
  960. border: none;
  961. outline: none;
  962. width: 80%;
  963. minwidth: 215px;
  964. z-index: 99;
  965. font-size: 14px;
  966. white-space: nowrap;
  967. overflow: hidden;
  968. text-overflow: ellipsis;
  969. " />
  970. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  971. border: none;
  972. outline: none;
  973. width: 80%;
  974. white-space: nowrap;
  975. overflow: hidden;
  976. text-overflow: ellipsis;
  977. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  978. <input :placeholder="item1.title ? item1.title : '链接'
  979. " v-if="item1.type == 8" style="
  980. border: none;
  981. outline: none;
  982. width: 80%;
  983. white-space: nowrap;
  984. overflow: hidden;
  985. text-overflow: ellipsis;
  986. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  987. <div class="chapter_upload_ud" style="z-index: 99">
  988. <div class="chapter_upload_up" @click="upCd(
  989. $event,
  990. unitIndex,
  991. index,
  992. itemTaskIndex,
  993. index1
  994. )
  995. "></div>
  996. <div class="chapter_upload_down" @click="downCd(
  997. $event,
  998. unitIndex,
  999. index,
  1000. itemTaskIndex,
  1001. index1
  1002. )
  1003. "></div>
  1004. </div>
  1005. </div>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. </div>
  1010. </div>
  1011. <div class="add_info_box" style="margin: 10px 0 0">
  1012. <button class="info_btn" @click="addImg($event)">
  1013. <span style="color: red">*</span>
  1014. 教学设计
  1015. <input type="file"
  1016. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1017. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1018. $event,
  1019. unitIndex,
  1020. 3,
  1021. itemTaskIndex,
  1022. '教学设计'
  1023. )
  1024. " />
  1025. </button>
  1026. <button class="info_btn" @click="addImg($event)">
  1027. <span style="color: red">*</span>
  1028. 教学课件
  1029. <input type="file"
  1030. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1031. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1032. $event,
  1033. unitIndex,
  1034. 3,
  1035. itemTaskIndex,
  1036. '教学课件'
  1037. )
  1038. " />
  1039. </button>
  1040. <button class="info_btn" @click="addImg($event)">
  1041. 教学视频
  1042. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1043. v-if="inputShow" @change="beforeUpload3(
  1044. $event,
  1045. unitIndex,
  1046. 2,
  1047. itemTaskIndex,
  1048. '教学视频'
  1049. )
  1050. " />
  1051. </button>
  1052. <button class="info_btn" @click="addImg($event)">
  1053. 教学音频
  1054. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="beforeUpload3(
  1055. $event,
  1056. unitIndex,
  1057. 2,
  1058. itemTaskIndex,
  1059. '教学音频'
  1060. )
  1061. " />
  1062. </button>
  1063. <button class="info_btn" @click="addImg($event)">
  1064. 学习单
  1065. <input type="file"
  1066. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1067. style="display: none" v-if="inputShow" @change="beforeUpload3(
  1068. $event,
  1069. unitIndex,
  1070. 3,
  1071. itemTaskIndex,
  1072. '学习单'
  1073. )
  1074. " />
  1075. </button>
  1076. </div>
  1077. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1078. itemTaskIndex
  1079. ].proVisible
  1080. " class="mask">
  1081. <div class="progressBox">
  1082. <!-- <div id="closePro" class="closeCss">
  1083. <img src="../../../../assets/icon/close.png" alt />
  1084. </div> -->
  1085. <div class="lbox">
  1086. <img src="../../../assets/loading.gif" />上传中,请稍后
  1087. </div>
  1088. <div style="margin-bottom: 10px">
  1089. <span>{{
  1090. unitJson[unitIndex].chapterInfo[0].taskJson[
  1091. itemTaskIndex
  1092. ].isFinishSize
  1093. }}M</span>
  1094. /
  1095. <span>{{
  1096. unitJson[unitIndex].chapterInfo[0].taskJson[
  1097. itemTaskIndex
  1098. ].isAllSize
  1099. }}M</span>
  1100. </div>
  1101. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1102. itemTaskIndex
  1103. ].progress
  1104. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1105. itemTaskIndex
  1106. ].progress
  1107. : 0
  1108. " style="width: 80%"></el-progress>
  1109. </div>
  1110. </div>
  1111. </div>
  1112. <div v-if="unitJson[unitIndex].easy != 3 &&
  1113. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  1114. " style="
  1115. flex-direction: row;
  1116. justify-content: flex-start;
  1117. align-items: center;
  1118. padding: 0 0 0 30px;
  1119. paddint-top: 10px !important;
  1120. ">
  1121. <div style="
  1122. display: flex;
  1123. flex-direction: row;
  1124. align-items: center;
  1125. margin-bottom: 20px;
  1126. ">
  1127. <div class="lineTitle">
  1128. {{
  1129. !unitJson[unitIndex].easy ||
  1130. unitJson[unitIndex].easy == 6 ||
  1131. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1132. ? "练习内容"
  1133. : "评价内容"
  1134. }}
  1135. </div>
  1136. <div class="line" style="width: 90%"></div>
  1137. </div>
  1138. </div>
  1139. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  1140. " class="toolChoose" style="padding: 0 0 0 30px">
  1141. <div class="tools">
  1142. <div class="leftTools" style="
  1143. width: 95%;
  1144. padding: 0 0 15px 0;
  1145. border-bottom: 1px solid #efefef;
  1146. margin-bottom: 15px;
  1147. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1148. <div>
  1149. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1150. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1151. </div>
  1152. <div style="
  1153. display: flex;
  1154. flex-direction: row;
  1155. align-items: baseline;
  1156. flex-wrap: nowrap;
  1157. justify-content: flex-start;
  1158. position: relative;
  1159. ">
  1160. <div style="margin-right: 20px; font-weight: bold">
  1161. 步骤 {{ toolIndex + 1 }} :
  1162. </div>
  1163. <div class="chooseWho">
  1164. <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  1165. " @click="(itemTool.toolType = 0), $forceUpdate()">
  1166. 互动类
  1167. </div>
  1168. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  1169. " @click="(itemTool.toolType = 1), $forceUpdate()">
  1170. 思维类
  1171. </div>
  1172. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  1173. " @click="(itemTool.toolType = 2), $forceUpdate()">
  1174. 评价类
  1175. </div>
  1176. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  1177. " @click="(itemTool.toolType = 3), $forceUpdate()">
  1178. 编程类
  1179. </div>
  1180. <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  1181. " @click="(itemTool.toolType = 5), $forceUpdate()">
  1182. 学科类
  1183. </div>
  1184. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  1185. " @click="(itemTool.toolType = 4), $forceUpdate()">
  1186. 其他
  1187. </div>
  1188. </div>
  1189. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1190. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1191. </div>
  1192. <div style="min-height: 163px">
  1193. <div class="toolSort" v-if="itemTool.toolType == 0">
  1194. <!-- <div class="tool">
  1195. <div
  1196. class="whiteBIcon"
  1197. @click="addTools(8, itemTaskIndex, toolIndex)"
  1198. >
  1199. <img src="../../../assets/icon/secondToolList/library.png" alt />
  1200. <div style="margin: 5px 0">素材库</div>
  1201. </div>
  1202. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  1203. <img
  1204. src="../../../assets/icon/checkNo.png"
  1205. alt
  1206. v-if="itemTool.tool.indexOf(8) == -1"
  1207. />
  1208. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  1209. alt /><span>已选择</span></div>
  1210. </div>
  1211. </div>-->
  1212. <!-- <div class="tool">
  1213. <div
  1214. class="whiteBIcon"
  1215. @click="addTools(17, itemTaskIndex, toolIndex)"
  1216. >
  1217. <img
  1218. src="../../../assets/icon/secondToolList/library.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">学习资料</div>
  1222. </div>
  1223. <div
  1224. class="check"
  1225. @click="addTools(17, itemTaskIndex, toolIndex)"
  1226. >
  1227. <img
  1228. src="../../../assets/icon/checkNo.png"
  1229. alt
  1230. v-if="itemTool.tool.indexOf(17) == -1"
  1231. />
  1232. <img
  1233. src="../../../assets/icon/checkedIs.png"
  1234. alt
  1235. v-else
  1236. />
  1237. </div>10
  1238. </div> -->
  1239. <div class="tool">
  1240. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  1241. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  1242. <div style="margin: 5px 0">倒计时</div>
  1243. </div>
  1244. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  1245. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  1246. <div class="checkDiv" v-else>
  1247. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1248. </div>
  1249. </div>
  1250. </div>
  1251. <div class="tool">
  1252. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  1253. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  1254. <div style="margin: 5px 0">学生分组</div>
  1255. </div>
  1256. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  1257. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  1258. <div class="checkDiv" v-else>
  1259. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1260. </div>
  1261. </div>
  1262. </div>
  1263. <div class="tool">
  1264. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  1265. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  1266. <div style="margin: 5px 0">交互视频</div>
  1267. </div>
  1268. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  1269. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  1270. <div class="checkDiv" v-else>
  1271. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1272. </div>
  1273. </div>
  1274. </div>
  1275. </div>
  1276. <div class="toolSort" v-if="itemTool.toolType == 1">
  1277. <div class="tool">
  1278. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  1279. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  1280. <div style="margin: 5px 0">思维网格</div>
  1281. </div>
  1282. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  1283. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  1284. <div class="checkDiv" v-else>
  1285. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <div class="tool">
  1290. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1291. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1292. <div style="margin: 5px 0">电子白板</div>
  1293. </div>
  1294. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1295. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1296. <div class="checkDiv" v-else>
  1297. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1298. </div>
  1299. </div>
  1300. </div>
  1301. <!-- <div class="tool">
  1302. <div
  1303. class="whiteBIcon"
  1304. @click="addTools(2, itemTaskIndex, toolIndex)"
  1305. >
  1306. <img
  1307. src="../../../assets/icon/secondToolList/note.png"
  1308. alt
  1309. />
  1310. <div style="margin: 5px 0">便签</div>
  1311. </div>
  1312. <div
  1313. class="check"
  1314. @click="addTools(2, itemTaskIndex, toolIndex)"
  1315. >
  1316. <img
  1317. src="../../../assets/icon/checkNo.png"
  1318. alt
  1319. v-if="itemTool.tool.indexOf(2) == -1"
  1320. />
  1321. <div class="checkDiv" v-else>
  1322. <img
  1323. src="../../../assets/icon/checkedIs.png"
  1324. alt
  1325. /><span>已选择</span>
  1326. </div>
  1327. </div>
  1328. </div> -->
  1329. <!-- <div class="tool">
  1330. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  1331. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  1332. <div style="margin: 5px 0">协同文档</div>
  1333. </div>
  1334. <div
  1335. class="check"
  1336. @click="addTools(6, itemTaskIndex, toolIndex)"
  1337. >
  1338. <img
  1339. src="../../../assets/icon/checkNo.png"
  1340. alt
  1341. v-if="itemTool.tool.indexOf(6) == -1"
  1342. />
  1343. <div class="checkDiv" v-else>
  1344. <img
  1345. src="../../../assets/icon/checkedIs.png"
  1346. alt
  1347. /><span>已选择</span>
  1348. </div>
  1349. </div>
  1350. </div> -->
  1351. <div class="tool">
  1352. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1353. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1354. <div style="margin: 5px 0">文档</div>
  1355. </div>
  1356. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1357. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1358. <div class="checkDiv" v-else>
  1359. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1360. </div>
  1361. </div>
  1362. </div>
  1363. <div class="tool">
  1364. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1365. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1366. <div style="margin: 5px 0">思维导图</div>
  1367. </div>
  1368. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1369. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1370. <div class="checkDiv" v-else>
  1371. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1372. </div>
  1373. </div>
  1374. </div>
  1375. <div class="tool">
  1376. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1377. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1378. <div style="margin: 5px 0">表格</div>
  1379. </div>
  1380. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1381. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1382. <div class="checkDiv" v-else>
  1383. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1384. </div>
  1385. </div>
  1386. </div>
  1387. </div>
  1388. <div class="toolSort" v-if="itemTool.toolType == 2">
  1389. <!-- <div class="tool">
  1390. <div
  1391. class="whiteBIcon"
  1392. @click="addTools(5, itemTaskIndex, toolIndex)"
  1393. >
  1394. <img
  1395. src="../../../assets/icon/thirdToolList/score.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">量规评分</div>
  1399. </div>
  1400. <div
  1401. class="check"
  1402. @click="addTools(5, itemTaskIndex, toolIndex)"
  1403. >
  1404. <img
  1405. src="../../../assets/icon/checkNo.png"
  1406. alt
  1407. v-if="itemTool.tool.indexOf(5) == -1"
  1408. />
  1409. <img
  1410. src="../../../assets/icon/checkedIs.png"
  1411. alt
  1412. v-else
  1413. />
  1414. </div>
  1415. </div>-->
  1416. <div class="tool">
  1417. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1418. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1419. <div style="margin: 5px 0">问卷调查</div>
  1420. </div>
  1421. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1422. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1423. <div class="checkDiv" v-else>
  1424. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1425. </div>
  1426. </div>
  1427. </div>
  1428. <div class="tool">
  1429. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1430. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1431. <div style="margin: 5px 0">选择题</div>
  1432. </div>
  1433. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1434. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1435. <div class="checkDiv" v-else>
  1436. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1437. </div>
  1438. </div>
  1439. </div>
  1440. <div class="tool">
  1441. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1442. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1443. <div style="margin: 5px 0">问答工具</div>
  1444. </div>
  1445. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1446. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1447. <div class="checkDiv" v-else>
  1448. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1449. </div>
  1450. </div>
  1451. </div>
  1452. <div class="tool">
  1453. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1454. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1455. <div style="margin: 5px 0">作业提交</div>
  1456. </div>
  1457. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1458. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1459. <div class="checkDiv" v-else>
  1460. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1461. </div>
  1462. </div>
  1463. </div>
  1464. <div class="tool">
  1465. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  1466. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1467. <div style="margin: 5px 0">批量上传</div>
  1468. </div>
  1469. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1470. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1471. <div class="checkDiv" v-else>
  1472. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1473. </div>
  1474. </div>
  1475. </div>
  1476. <div class="tool">
  1477. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  1478. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1479. <div style="margin: 5px 0">个人评价</div>
  1480. </div>
  1481. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  1482. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  1483. <div class="checkDiv" v-else>
  1484. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1485. </div>
  1486. </div>
  1487. </div>
  1488. <div class="tool">
  1489. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1490. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1491. <div style="margin: 5px 0">选择填空</div>
  1492. </div>
  1493. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1494. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1495. <div class="checkDiv" v-else>
  1496. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1497. </div>
  1498. </div>
  1499. </div>
  1500. <div class="tool">
  1501. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1502. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1503. <div style="margin: 5px 0">连词成句</div>
  1504. </div>
  1505. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1506. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1507. <div class="checkDiv" v-else>
  1508. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1509. </div>
  1510. </div>
  1511. </div>
  1512. <!-- <div class="tool">
  1513. <div
  1514. class="whiteBIcon"
  1515. @click="openTools(itemTaskIndex, 42, toolIndex)"
  1516. >
  1517. <img
  1518. src="../../../assets/icon/thirdToolList/mp3.png"
  1519. alt
  1520. />
  1521. <div style="margin: 5px 0">上传音频</div>
  1522. </div>
  1523. <div
  1524. class="check"
  1525. @click="addTools(42, itemTaskIndex, toolIndex)"
  1526. >
  1527. <img
  1528. src="../../../assets/icon/checkNo.png"
  1529. alt
  1530. v-if="itemTool.tool.indexOf(42) == -1"
  1531. />
  1532. <img
  1533. src="../../../assets/icon/checkedIs.png"
  1534. alt
  1535. v-else
  1536. />
  1537. </div>
  1538. </div> -->
  1539. </div>
  1540. <div class="toolSort" v-if="itemTool.toolType == 3">
  1541. <div class="tool">
  1542. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  1543. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  1544. <div style="margin: 5px 0">训练平台</div>
  1545. </div>
  1546. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  1547. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  1548. <div class="checkDiv" v-else>
  1549. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1550. </div>
  1551. </div>
  1552. </div>
  1553. <div class="tool">
  1554. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  1555. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  1556. <div style="margin: 5px 0">编程平台</div>
  1557. </div>
  1558. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  1559. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  1560. <div class="checkDiv" v-else>
  1561. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1562. </div>
  1563. </div>
  1564. </div>
  1565. <div class="tool">
  1566. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  1567. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  1568. <div style="margin: 5px 0">AI体验</div>
  1569. </div>
  1570. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  1571. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  1572. <div class="checkDiv" v-else>
  1573. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1574. </div>
  1575. </div>
  1576. </div>
  1577. <div class="tool">
  1578. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  1579. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1580. <div style="margin: 5px 0">Python</div>
  1581. </div>
  1582. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  1583. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  1584. <div class="checkDiv" v-else>
  1585. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1586. </div>
  1587. </div>
  1588. </div>
  1589. <div class="tool">
  1590. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  1591. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1592. <div style="margin: 5px 0">AI平台</div>
  1593. </div>
  1594. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  1595. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  1596. <div class="checkDiv" v-else>
  1597. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1598. </div>
  1599. </div>
  1600. </div>
  1601. <div class="tool">
  1602. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  1603. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1604. <div style="margin: 5px 0">源码编辑</div>
  1605. </div>
  1606. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  1607. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  1608. <div class="checkDiv" v-else>
  1609. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1610. </div>
  1611. </div>
  1612. </div>
  1613. <div class="tool">
  1614. <div class="whiteBIcon" @click="addTools(57, itemTaskIndex, toolIndex)">
  1615. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1616. <div style="margin: 5px 0">CocoPi</div>
  1617. </div>
  1618. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  1619. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  1620. <div class="checkDiv" v-else>
  1621. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1622. </div>
  1623. </div>
  1624. </div>
  1625. <div class="tool">
  1626. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  1627. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1628. <div style="margin: 5px 0">海龟编程</div>
  1629. </div>
  1630. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  1631. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  1632. <div class="checkDiv" v-else>
  1633. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1634. </div>
  1635. </div>
  1636. </div>
  1637. </div>
  1638. <div class="toolSort" v-if="itemTool.toolType == 5">
  1639. <div class="tool">
  1640. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  1641. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1642. <div style="margin: 5px 0">翻译</div>
  1643. </div>
  1644. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  1645. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  1646. <div class="checkDiv" v-else>
  1647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1648. </div>
  1649. </div>
  1650. </div>
  1651. <div class="tool">
  1652. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  1653. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1654. <div style="margin: 5px 0">魔盒识字</div>
  1655. </div>
  1656. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  1657. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  1658. <div class="checkDiv" v-else>
  1659. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1660. </div>
  1661. </div>
  1662. </div>
  1663. <div class="tool">
  1664. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  1665. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1666. <div style="margin: 5px 0">24点</div>
  1667. </div>
  1668. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  1669. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  1670. <div class="checkDiv" v-else>
  1671. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1672. </div>
  1673. </div>
  1674. </div>
  1675. <div class="tool">
  1676. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  1677. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1678. <div style="margin: 5px 0">数学画板</div>
  1679. </div>
  1680. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  1681. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  1682. <div class="checkDiv" v-else>
  1683. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. <div class="tool">
  1688. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  1689. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1690. <div style="margin: 5px 0">GeoGebra</div>
  1691. </div>
  1692. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  1693. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  1694. <div class="checkDiv" v-else>
  1695. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. <div class="tool">
  1700. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  1701. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1702. <div style="margin: 5px 0">模拟驾驶</div>
  1703. </div>
  1704. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  1705. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  1706. <div class="checkDiv" v-else>
  1707. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. <div class="tool">
  1712. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  1713. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1714. <div style="margin: 5px 0">路径搜索</div>
  1715. </div>
  1716. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  1717. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  1718. <div class="checkDiv" v-else>
  1719. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1720. </div>
  1721. </div>
  1722. </div>
  1723. <div class="tool">
  1724. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  1725. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1726. <div style="margin: 5px 0">深度学习</div>
  1727. </div>
  1728. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  1729. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  1730. <div class="checkDiv" v-else>
  1731. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1732. </div>
  1733. </div>
  1734. </div>
  1735. <div class="tool">
  1736. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  1737. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1738. <div style="margin: 5px 0">全历史</div>
  1739. </div>
  1740. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  1741. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  1742. <div class="checkDiv" v-else>
  1743. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1744. </div>
  1745. </div>
  1746. </div>
  1747. </div>
  1748. <div class="toolSort" v-if="itemTool.toolType == 4">
  1749. <div class="tool">
  1750. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  1751. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1752. <div style="margin: 5px 0">课程设计</div>
  1753. </div>
  1754. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  1755. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  1756. <div class="checkDiv" v-else>
  1757. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div class="tool">
  1762. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  1763. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1764. <div style="margin: 5px 0">目标管理</div>
  1765. </div>
  1766. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  1767. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  1768. <div class="checkDiv" v-else>
  1769. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1770. </div>
  1771. </div>
  1772. </div>
  1773. <!-- <div class="tool">
  1774. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1775. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1776. <div style="margin: 5px 0">汉字宫</div>
  1777. </div>
  1778. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1779. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1780. <div class="checkDiv" v-else>
  1781. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1782. </div>
  1783. </div>
  1784. </div> -->
  1785. </div>
  1786. </div>
  1787. </div>
  1788. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  1789. <div class="addToolImg">
  1790. <img src="../../../assets/icon/add.png" alt />
  1791. </div>
  1792. <div>添加工具</div>
  1793. </div>
  1794. </div>
  1795. </div>
  1796. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  1797. unitJson[unitIndex].easy == 4
  1798. " class="toolChoose" style="padding: 0 0 0 30px">
  1799. <div class="tools">
  1800. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  1801. :key="toolIndex">
  1802. <div>
  1803. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  1804. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  1805. </div>
  1806. <div style="
  1807. display: flex;
  1808. flex-direction: row;
  1809. align-items: baseline;
  1810. flex-wrap: nowrap;
  1811. justify-content: flex-start;
  1812. position: relative;
  1813. ">
  1814. <div style="margin-right: 20px; font-weight: bold">
  1815. 步骤 {{ toolIndex + 1 }} :
  1816. </div>
  1817. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  1818. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  1819. </div>
  1820. <div style="min-height: 163px">
  1821. <div class="toolSort">
  1822. <div class="tool">
  1823. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  1824. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  1825. <div style="margin: 5px 0">电子白板</div>
  1826. </div>
  1827. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  1828. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  1829. <div class="checkDiv" v-else>
  1830. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1831. </div>
  1832. </div>
  1833. </div>
  1834. <div class="tool">
  1835. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  1836. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  1837. <div style="margin: 5px 0">文档</div>
  1838. </div>
  1839. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  1840. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  1841. <div class="checkDiv" v-else>
  1842. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1843. </div>
  1844. </div>
  1845. </div>
  1846. <div class="tool">
  1847. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  1848. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  1849. <div style="margin: 5px 0">思维导图</div>
  1850. </div>
  1851. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  1852. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  1853. <div class="checkDiv" v-else>
  1854. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1855. </div>
  1856. </div>
  1857. </div>
  1858. <div class="tool">
  1859. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  1860. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  1861. <div style="margin: 5px 0">问卷调查</div>
  1862. </div>
  1863. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  1864. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  1865. <div class="checkDiv" v-else>
  1866. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1867. </div>
  1868. </div>
  1869. </div>
  1870. <div class="tool">
  1871. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  1872. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  1873. <div style="margin: 5px 0">选择题</div>
  1874. </div>
  1875. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  1876. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  1877. <div class="checkDiv" v-else>
  1878. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1879. </div>
  1880. </div>
  1881. </div>
  1882. <div class="tool">
  1883. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  1884. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  1885. <div style="margin: 5px 0">问答工具</div>
  1886. </div>
  1887. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  1888. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  1889. <div class="checkDiv" v-else>
  1890. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1891. </div>
  1892. </div>
  1893. </div>
  1894. <div class="tool">
  1895. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  1896. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  1897. <div style="margin: 5px 0">作业提交</div>
  1898. </div>
  1899. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  1900. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  1901. <div class="checkDiv" v-else>
  1902. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1903. </div>
  1904. </div>
  1905. </div>
  1906. <div class="tool">
  1907. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1908. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1909. <div style="margin: 5px 0">批量上传</div>
  1910. </div>
  1911. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1912. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1913. <div class="checkDiv" v-else>
  1914. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1915. </div>
  1916. </div>
  1917. </div>
  1918. <div class="tool">
  1919. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  1920. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  1921. <div style="margin: 5px 0">选择填空</div>
  1922. </div>
  1923. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  1924. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  1925. <div class="checkDiv" v-else>
  1926. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1927. </div>
  1928. </div>
  1929. </div>
  1930. <div class="tool">
  1931. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  1932. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  1933. <div style="margin: 5px 0">连词成句</div>
  1934. </div>
  1935. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  1936. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  1937. <div class="checkDiv" v-else>
  1938. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1939. </div>
  1940. </div>
  1941. </div>
  1942. <div class="tool">
  1943. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  1944. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  1945. <div style="margin: 5px 0">表格</div>
  1946. </div>
  1947. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  1948. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  1949. <div class="checkDiv" v-else>
  1950. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1951. </div>
  1952. </div>
  1953. </div>
  1954. </div>
  1955. </div>
  1956. </div>
  1957. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  1958. <div class="addToolImg">
  1959. <img src="../../../assets/icon/add.png" alt />
  1960. </div>
  1961. <div>添加工具</div>
  1962. </div>
  1963. </div>
  1964. </div>
  1965. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  1966. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1967. " class="toolChoose" style="padding: 0 0 0 30px">
  1968. <div class="tools">
  1969. <div class="leftTools" style="
  1970. width: 95%;
  1971. padding: 0 0 15px 0;
  1972. margin-bottom: 15px;
  1973. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  1974. <div style="min-height: 163px">
  1975. <div class="toolSort">
  1976. <div class="tool">
  1977. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  1978. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  1979. <div style="margin: 5px 0">批量上传</div>
  1980. </div>
  1981. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  1982. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  1983. <div class="checkDiv" v-else>
  1984. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1985. </div>
  1986. </div>
  1987. </div>
  1988. </div>
  1989. </div>
  1990. </div>
  1991. </div>
  1992. </div>
  1993. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  1994. <div class="elist_title">
  1995. <div style="
  1996. display: flex;
  1997. flex-direction: row;
  1998. align-items: center;
  1999. margin-bottom: 20px;
  2000. ">
  2001. <div class="lineTitle">评价设置</div>
  2002. <div class="line" style="width: 90%"></div>
  2003. </div>
  2004. </div>
  2005. <div class="mbCss">
  2006. <div class="pjCss">
  2007. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2008. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2009. <span>评价名称:</span>
  2010. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2011. <span>评星等级:</span>
  2012. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2013. <div class="remove" @click="deletEList(unitIndex, itemTaskIndex, eIndex)
  2014. "></div>
  2015. <div class="elist_inptu_text">
  2016. <span>评价描述:</span>
  2017. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2018. </div>
  2019. <div class="elist_inptu_text" v-if="evalua">
  2020. <span>目标:</span>
  2021. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2022. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2023. @change="forceUpdate()">
  2024. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2025. :value="e.name">
  2026. </el-option>
  2027. </el-select> -->
  2028. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2029. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2030. </div>
  2031. </div>
  2032. </div>
  2033. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2034. <div class="addToolImg">
  2035. <img src="../../../assets/icon/add.png" alt />
  2036. </div>
  2037. <div>添加</div>
  2038. </div>
  2039. </div>
  2040. <div v-if="evalua" style="
  2041. border: 1px solid #e5e5e5;
  2042. width: 55%;
  2043. margin-top: 20px;
  2044. box-shadow: 3px 1px 15px 3px #e0e0e0;
  2045. " class="evaCss">
  2046. <div class="e_add_top">
  2047. <div class="e_add_title">
  2048. <span>当前使用目标管理</span>
  2049. <span>{{ eTitle }}</span>
  2050. <img src="../../../assets/line.png" class="cru_line" style="
  2051. width: 125px;
  2052. height: 20px;
  2053. bottom: -10px;
  2054. left: 155px;
  2055. " />
  2056. </div>
  2057. </div>
  2058. <div class="e_add_content" style="width: 100%">
  2059. <div class="e_add_list_pbox" style="width: 100%">
  2060. <div class="e_add_list_pbox_title">
  2061. <span class="type_title">切换模式</span>
  2062. <div class="type_content">
  2063. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  2064. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  2065. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  2066. </div>
  2067. </div>
  2068. <div class="e_add_list_pbox_content">
  2069. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  2070. " v-if="typeMode == 1"></Mind>
  2071. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  2072. </Sunburst>
  2073. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  2074. v-if="typeMode == 3"></SeeBoard>
  2075. </div>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. <div class="funBlock" style="padding: 0">
  2082. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  2083. <div>折叠</div>
  2084. <div class="arrow">
  2085. <img src="../../../assets/icon/fold.png" alt />
  2086. </div>
  2087. </div>
  2088. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  2089. <div>展开</div>
  2090. <div class="arrow">
  2091. <img src="../../../assets/icon/expand.png" alt />
  2092. </div>
  2093. </div>
  2094. </div>
  2095. </div>
  2096. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  2097. <div>
  2098. <img src="../../../assets/icon/addHw.png" alt />
  2099. <span>添加任务</span>
  2100. </div>
  2101. </div>
  2102. </div>
  2103. </div>
  2104. </div>
  2105. <div class="rightBox" v-if="this.steps == 4">
  2106. <div class="basic_box_success">
  2107. <div class="right_img">
  2108. <img src="../../../assets/icon/right.png" alt />
  2109. </div>
  2110. <div style="font-weight: bold">成功</div>
  2111. <!-- <div>您的课程编号</div>
  2112. <div class="number">{{ number }}</div>-->
  2113. <!-- <div class="success_button">
  2114. <div class="look_course" @click="isNoFinsh">
  2115. 邀请老师协同编辑
  2116. </div>
  2117. <div class="attend_others" @click="goCourse">预览课程</div>
  2118. </div> -->
  2119. </div>
  2120. </div>
  2121. <div class="info_btnBox">
  2122. <button class="info_btn" @click="goTo(
  2123. '/course?userid=' +
  2124. userid +
  2125. '&oid=' +
  2126. oid +
  2127. '&org=' +
  2128. org +
  2129. '&role=' +
  2130. role
  2131. )
  2132. ">
  2133. 返回课程
  2134. </button>
  2135. <button class="info_btn" @click="nextSteps" v-if="this.steps == 1">
  2136. 确认上传
  2137. </button>
  2138. </div>
  2139. </div>
  2140. </div>
  2141. </div>
  2142. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  2143. class="dialog_diy2 customWidth">
  2144. <div>请复制该链接邀请协同编辑</div>
  2145. <div>http://www.boomyon.com/index-zhang.com</div>
  2146. <span slot="footer" class="dialog-footer">
  2147. <el-button type="primary">复制链接分享</el-button>
  2148. <el-button @click="dialogVisible = false">取消</el-button>
  2149. </span>
  2150. </el-dialog>
  2151. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  2152. :before-close="handleClose" class="dialog_diy2 customWidth">
  2153. <el-form>
  2154. <el-form-item label="文档标题">
  2155. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2156. </el-form-item>
  2157. <div>文档简介</div>
  2158. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  2159. </el-form>
  2160. <span slot="footer" class="dialog-footer">
  2161. <el-button @click="dialogVisible1 = false">取 消</el-button>
  2162. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  2163. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  2164. </span>
  2165. </el-dialog>
  2166. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  2167. :before-close="handleClose" class="dialog_diy">
  2168. <el-form>
  2169. <el-form-item label="文档标题">
  2170. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  2171. </el-form-item>
  2172. <div>文档内容</div>
  2173. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  2174. </el-form>
  2175. <span slot="footer" class="dialog-footer">
  2176. <el-button @click="clearChoose">取 消</el-button>
  2177. <el-button type="primary" @click="wordNext()">确定</el-button>
  2178. </span>
  2179. </el-dialog>
  2180. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  2181. :before-close="handleClose" class="dialog_diy">
  2182. <el-form>
  2183. <el-form-item label="文本标题">
  2184. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2185. </el-form-item>
  2186. <div>富文本内容</div>
  2187. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  2188. </el-form>
  2189. <span slot="footer" class="dialog-footer">
  2190. <el-button @click="clearAttText">取 消</el-button>
  2191. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  2192. </span>
  2193. </el-dialog>
  2194. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  2195. :before-close="handleClose" class="dialog_diy lineCss">
  2196. <el-form>
  2197. <el-form-item label="标题" :label-width="formLabelWidth">
  2198. <span>
  2199. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  2200. </span>
  2201. </el-form-item>
  2202. <el-form-item label="链接" :label-width="formLabelWidth">
  2203. <span>
  2204. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  2205. </span>
  2206. </el-form-item>
  2207. </el-form>
  2208. <span slot="footer" class="dialog-footer">
  2209. <el-button @click="clearLine">取 消</el-button>
  2210. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  2211. </span>
  2212. </el-dialog>
  2213. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  2214. :before-close="handleClose" class="dialog_diy source_diy">
  2215. <div>
  2216. <sourceDialog :sourceData="sourceData"></sourceDialog>
  2217. </div>
  2218. <span slot="footer" class="dialog-footer">
  2219. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  2220. <el-button type="primary" @click="addSource">确定</el-button>
  2221. </span>
  2222. </el-dialog>
  2223. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  2224. :before-close="handleClose" class="addNewPP customWidth">
  2225. <div class="people">
  2226. <div class="people_top">
  2227. <div class="people_nav">选择成员</div>
  2228. <div class="people_top_right">
  2229. <div class="people_search">
  2230. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  2231. <div class="search_img" @click="searchStudent">
  2232. <img src="../../../assets/icon/search.png" alt />
  2233. </div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. <el-checkbox-group v-model="checkboxList" class="people_name">
  2238. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  2239. "暂无学生可选" }}</el-checkbox>
  2240. </el-checkbox-group>
  2241. </div>
  2242. <span slot="footer" class="dialog-footer">
  2243. <el-button @click="dialogVisible3 = false">取 消</el-button>
  2244. <el-button type="primary" @click="isAddPP">确定</el-button>
  2245. </span>
  2246. </el-dialog>
  2247. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  2248. :before-close="handleClose" class="addNewPP">
  2249. <div class="people" style="height: 300px">
  2250. <div class="people_top">
  2251. <div class="people_top_right">
  2252. <div class="people_search">
  2253. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  2254. <!-- @click="getClass()"
  2255. @keyup.enter.native="getClass()"
  2256. -->
  2257. <div class="search_img">
  2258. <img src="../../../assets/icon/search.png" alt />
  2259. </div>
  2260. </div>
  2261. </div>
  2262. <div class="people_nav">选择班级</div>
  2263. </div>
  2264. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  2265. <div v-for="item in grade2" :key="item.id" class="p_box">
  2266. <el-checkbox :label="item.id">
  2267. {{ item.name }}
  2268. </el-checkbox>
  2269. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  2270. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  2271. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  2272. @click="OpenInviteD(item.id)">随机码设置</div>
  2273. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  2274. </div>
  2275. </el-checkbox-group>
  2276. </div>
  2277. <span slot="footer" class="dialog-footer">
  2278. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  2279. <el-button type="primary" @click="isAddClass">确定</el-button>
  2280. </span>
  2281. </el-dialog>
  2282. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  2283. :before-close="handleClose" class="addNewPP customWidth">
  2284. <div class="people">
  2285. <div class="people_top">
  2286. <div class="people_top_right">
  2287. <div class="people_search">
  2288. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  2289. <div class="search_img" @click="getTeacher">
  2290. <img src="../../../assets/icon/search.png" alt />
  2291. </div>
  2292. </div>
  2293. </div>
  2294. <div class="people_nav">选择成员</div>
  2295. </div>
  2296. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  2297. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  2298. <div class="t_j_box">
  2299. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  2300. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  2301. </el-tooltip>
  2302. <el-tooltip placement="top" :content="item.username">
  2303. <span>{{ item.username }}</span>
  2304. </el-tooltip>
  2305. <el-tooltip placement="top" :content="item.school">
  2306. <span>{{ item.school }}</span>
  2307. </el-tooltip>
  2308. </div>
  2309. </el-checkbox>
  2310. </el-checkbox-group>
  2311. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  2312. </div>
  2313. <span slot="footer" class="dialog-footer">
  2314. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  2315. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  2316. </span>
  2317. </el-dialog>
  2318. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  2319. :before-close="handleClose" class="dialog_diy">
  2320. <div>
  2321. <div class="a_add_title" style="
  2322. display: flex;
  2323. flex-direction: row;
  2324. align-items: center;
  2325. justify-content: center;
  2326. ">
  2327. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2328. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2329. </div>
  2330. <div class="a_addBox">
  2331. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  2332. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  2333. <div class="a_add_checkType">
  2334. <span :class="{ active: askJson.askJson[index1].type == '1' || !askJson.askJson[index1].type }"
  2335. @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  2336. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  2337. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  2338. </div>
  2339. <div class="a_add_head">
  2340. <div>
  2341. {{ index1 + 1 + "、" }}
  2342. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  2343. </el-input>
  2344. </div>
  2345. <div class="a_add_head_div">
  2346. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  2347. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  2348. </el-button>
  2349. </div>
  2350. </div>
  2351. <div class="a_add_body">
  2352. <div class="a_add_input">
  2353. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  2354. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  2355. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2356. </div>
  2357. <div class="a_add_body_div">
  2358. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  2359. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  2360. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  2361. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  2362. </el-button>
  2363. </div>
  2364. </div>
  2365. </div>
  2366. </div>
  2367. </div>
  2368. <span slot="footer" class="dialog-footer">
  2369. <el-button @click="dialogVisible5 = false">取 消</el-button>
  2370. <el-button type="primary" @click="addAsk">确 定</el-button>
  2371. </span>
  2372. </el-dialog>
  2373. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  2374. :before-close="handleClose" class="dialog_diy">
  2375. <div>
  2376. <!-- <div class="a_add_title" style="
  2377. display: flex;
  2378. flex-direction: row;
  2379. align-items: center;
  2380. justify-content: center;
  2381. ">
  2382. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  2383. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  2384. </div> -->
  2385. <div class="a_addBox">
  2386. <div style="font-size: 16px; color: #c7c7c7">
  2387. 请输入题目内容
  2388. <el-button type="primary" size="small" @click="pasteOption" style="margin-left:10px">智能粘贴</el-button>
  2389. </div>
  2390. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  2391. <div class="a_add_checkType">
  2392. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  2393. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  2394. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  2395. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  2396. </div>
  2397. <div class="a_add_head">
  2398. <div class="timuUpImg">
  2399. <div>
  2400. {{ index1 + 1 + "、" }}
  2401. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  2402. placeholder="请输入题目...">
  2403. </el-input>
  2404. </div>
  2405. <div class="xzUpImg" @click.stop="addImg($event)">
  2406. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2407. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  2408. </div>
  2409. </div>
  2410. <div class="a_add_head_div">
  2411. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  2412. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  2413. </el-button>
  2414. </div>
  2415. </div>
  2416. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  2417. testJson.testJson[index1].timuList.length
  2418. ">
  2419. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  2420. @click.stop="previewImg(timg.src)">
  2421. <img :src="timg.src" alt="" />
  2422. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  2423. <img src="../../../assets/icon/delete.png" alt="" />
  2424. </div>
  2425. </div>
  2426. </div>
  2427. <div class="a_add_body">
  2428. <div class="a_add_input a_add_input_choice">
  2429. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  2430. <div class="radioBox">
  2431. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  2432. .testItem" :key="checkIndex" :label="checkIndex">
  2433. <div style="margin-right: 10px">
  2434. 选项{{ checkIndex + 1 }}
  2435. </div>
  2436. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  2437. testJson.testJson[index1].checkList[checkIndex]
  2438. .imgType &&
  2439. testJson.testJson[index1].checkList[checkIndex]
  2440. .imgType == 1
  2441. ">
  2442. <div class="inImg" @click.stop="previewImg(
  2443. testJson.testJson[index1].checkList[checkIndex]
  2444. .src
  2445. )
  2446. ">
  2447. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  2448. .src
  2449. " lazy />
  2450. <!-- <img :src="
  2451. testJson.testJson[index1].checkList[checkIndex]
  2452. .src
  2453. " alt="" /> -->
  2454. </div>
  2455. </div>
  2456. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  2457. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2458. <div class="xzUpImg" @click.stop="addImg($event)">
  2459. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2460. <input type="file" accept="image/*" style="display: none"
  2461. @change="beforeUploadTi($event, index1, checkIndex)" />
  2462. </div>
  2463. </el-radio>
  2464. </div>
  2465. </el-radio-group>
  2466. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  2467. v-if="testJson.testJson[index1].type == '2'">
  2468. <div class="radioBox">
  2469. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  2470. .testItem" :key="checkIndex1" :label="checkIndex1">
  2471. <div style="margin-right: 10px">
  2472. 选项{{ checkIndex1 + 1 }}
  2473. </div>
  2474. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  2475. testJson.testJson[index1].checkList[checkIndex1]
  2476. .imgType &&
  2477. testJson.testJson[index1].checkList[checkIndex1]
  2478. .imgType == 1
  2479. ">
  2480. <div class="inImg" @click.stop="previewImg(
  2481. testJson.testJson[index1].checkList[checkIndex1]
  2482. .src
  2483. )
  2484. ">
  2485. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  2486. .src
  2487. " lazy />
  2488. <!-- <img :src="
  2489. testJson.testJson[index1].checkList[checkIndex1]
  2490. .src
  2491. " alt="" /> -->
  2492. </div>
  2493. </div>
  2494. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  2495. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  2496. <div class="xzUpImg" @click.stop="addImg($event)">
  2497. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  2498. <input type="file" accept="image/*" style="display: none"
  2499. @change="beforeUploadTi($event, index1, checkIndex1)" />
  2500. </div>
  2501. </el-checkbox>
  2502. </div>
  2503. </el-checkbox-group>
  2504. </div>
  2505. <div class="a_add_body_div" style="margin-bottom: 3px">
  2506. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  2507. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  2508. v-if="testJson.testJson[index1].testItem != 1">删除
  2509. </el-button>
  2510. </div>
  2511. </div>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. <span slot="footer" class="dialog-footer">
  2516. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  2517. <el-button type="primary" @click="addTest">确 定</el-button>
  2518. </span>
  2519. </el-dialog>
  2520. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  2521. :before-close="handleClose" class="dialog_diy addToolsDia">
  2522. <div class="toolChoose" style="padding: 0 0 0 30px">
  2523. <div class="tools">
  2524. <div class="leftTools" style="
  2525. width: 95%;
  2526. padding: 0 0 15px 0;
  2527. border-bottom: 1px solid #efefef;
  2528. margin-bottom: 15px;
  2529. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  2530. <div style="
  2531. display: flex;
  2532. flex-direction: row;
  2533. align-items: baseline;
  2534. flex-wrap: nowrap;
  2535. justify-content: flex-start;
  2536. position: relative;
  2537. ">
  2538. <div class="chooseWho">
  2539. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  2540. 互动类
  2541. </div>
  2542. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  2543. 思维类
  2544. </div>
  2545. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2546. 评价类
  2547. </div>
  2548. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  2549. 其他
  2550. </div>
  2551. </div>
  2552. </div>
  2553. <div style="min-height: 163px">
  2554. <div class="toolSort" v-if="chapToolsType == 0">
  2555. <div class="tool">
  2556. <div class="whiteBIcon" @click="chapAddTools(8)">
  2557. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2558. <div style="margin: 5px 0">素材库</div>
  2559. </div>
  2560. <div class="check" @click="chapAddTools(8)">
  2561. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  2562. <div class="checkDiv" v-else>
  2563. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2564. </div>
  2565. </div>
  2566. </div>
  2567. </div>
  2568. <div class="toolSort" v-if="chapToolsType == 1">
  2569. <div class="tool">
  2570. <div class="whiteBIcon" @click="chapAddTools(7)">
  2571. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2572. <div style="margin: 5px 0">思维网格</div>
  2573. </div>
  2574. <div class="check" @click="chapAddTools(7)">
  2575. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  2576. <div class="checkDiv" v-else>
  2577. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2578. </div>
  2579. </div>
  2580. </div>
  2581. <div class="tool">
  2582. <div class="whiteBIcon" @click="chapAddTools(1)">
  2583. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2584. <div style="margin: 5px 0">电子白板</div>
  2585. </div>
  2586. <div class="check" @click="chapAddTools(1)">
  2587. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  2588. <div class="checkDiv" v-else>
  2589. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2590. </div>
  2591. </div>
  2592. </div>
  2593. <div class="tool">
  2594. <div class="whiteBIcon" @click="chapAddTools(2)">
  2595. <img src="../../../assets/icon/secondToolList/note.png" alt />
  2596. <div style="margin: 5px 0">便签</div>
  2597. </div>
  2598. <div class="check" @click="chapAddTools(2)">
  2599. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  2600. <div class="checkDiv" v-else>
  2601. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2602. </div>
  2603. </div>
  2604. </div>
  2605. <div class="tool">
  2606. <div class="whiteBIcon" @click="chapAddTools(6)">
  2607. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2608. <div style="margin: 5px 0">协同文档</div>
  2609. </div>
  2610. <div class="check" @click="chapAddTools(6)">
  2611. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  2612. <div class="checkDiv" v-else>
  2613. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. <div class="tool">
  2618. <div class="whiteBIcon" @click="chapAddTools(3)">
  2619. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2620. <div style="margin: 5px 0">思维导图</div>
  2621. </div>
  2622. <div class="check" @click="chapAddTools(3)">
  2623. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  2624. <div class="checkDiv" v-else>
  2625. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2626. </div>
  2627. </div>
  2628. </div>
  2629. <div class="tool">
  2630. <div class="whiteBIcon" @click="chapAddTools(31)">
  2631. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2632. <div style="margin: 5px 0">数学画板</div>
  2633. </div>
  2634. <div class="check" @click="chapAddTools(31)">
  2635. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  2636. <div class="checkDiv" v-else>
  2637. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2638. </div>
  2639. </div>
  2640. </div>
  2641. </div>
  2642. <div class="toolSort" v-if="chapToolsType == 2">
  2643. <div class="tool">
  2644. <div class="whiteBIcon" @click="chapAddTools(5)">
  2645. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  2646. <div style="margin: 5px 0">量规评分</div>
  2647. </div>
  2648. <div class="check" @click="chapAddTools(5)">
  2649. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  2650. <div class="checkDiv" v-else>
  2651. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2652. </div>
  2653. </div>
  2654. </div>
  2655. <div class="tool">
  2656. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  2657. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2658. <div style="margin: 5px 0">问卷调查</div>
  2659. </div>
  2660. <div class="check" @click="chapAddTools(4)">
  2661. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  2662. <div class="checkDiv" v-else>
  2663. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2664. </div>
  2665. </div>
  2666. </div>
  2667. </div>
  2668. </div>
  2669. <div>
  2670. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  2671. v-model="itemTools.toolDetail" />
  2672. </div>
  2673. </div>
  2674. </div>
  2675. </div>
  2676. <span slot="footer" class="dialog-footer">
  2677. <el-button @click="dialogVisible4 = false">取 消</el-button>
  2678. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  2679. </span>
  2680. </el-dialog>
  2681. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  2682. :before-close="handleClose" class="dialog_diy">
  2683. <div>
  2684. <div class="a_add_title" style="
  2685. display: flex;
  2686. flex-direction: column;
  2687. align-items: flex-start;
  2688. justify-content: center;
  2689. ">
  2690. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2691. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  2692. </div>
  2693. </div>
  2694. <span slot="footer" class="dialog-footer">
  2695. <el-button @click="dialogVisible8 = false">取 消</el-button>
  2696. <el-button type="primary" @click="addAnswer">确 定</el-button>
  2697. </span>
  2698. </el-dialog>
  2699. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  2700. :before-close="handleClose" class="dialog_diy">
  2701. <div>
  2702. <div class="a_add_title" style="
  2703. display: flex;
  2704. flex-direction: column;
  2705. align-items: flex-start;
  2706. justify-content: center;
  2707. ">
  2708. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  2709. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  2710. </div>
  2711. </div>
  2712. <span slot="footer" class="dialog-footer">
  2713. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  2714. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  2715. </span>
  2716. </el-dialog>
  2717. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  2718. :before-close="handleClose" class="dialog_diy">
  2719. <div>
  2720. <div class="fileCss" style="padding-top: 20px">
  2721. <div>
  2722. <button class="info_btn" @click="addImg($event)">
  2723. 选择本地文件
  2724. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  2725. </button>
  2726. </div>
  2727. <div>
  2728. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  2729. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  2730. <img :src="cover[0].url" alt="" />
  2731. <div class="deletePic" @click="deleteSysPic">
  2732. <img src="../../../assets/icon/delete.png" alt="" />
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <div class="fileCss">
  2738. <div>选择本地文件</div>
  2739. <div>选择系统文件</div>
  2740. </div>
  2741. </div>
  2742. <span slot="footer" class="dialog-footer">
  2743. <el-button @click="choosePicVisible = false">取 消</el-button>
  2744. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  2745. </span>
  2746. </el-dialog>
  2747. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  2748. :before-close="handleClose" class="dialog_diy">
  2749. <div class="cru_selectBox" style="margin: 0">
  2750. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  2751. 绘画
  2752. </div>
  2753. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  2754. 科技
  2755. </div>
  2756. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  2757. 人文
  2758. </div>
  2759. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  2760. 艺术
  2761. </div>
  2762. </div>
  2763. <div class="sysPicBox">
  2764. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  2765. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  2766. </div>
  2767. </div>
  2768. <span slot="footer" class="dialog-footer">
  2769. <el-button @click="sysPicVisible = false">取 消</el-button>
  2770. <el-button type="primary">确 定</el-button>
  2771. </span>
  2772. </el-dialog>
  2773. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  2774. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2775. <div v-if="selectJson">
  2776. <div class="select_box1" v-if="selectSteps == 1">
  2777. <div class="select_box1_img">
  2778. <div class="select_box1_title">
  2779. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  2780. </div>
  2781. <div class="select_box1_add_img">
  2782. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  2783. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  2784. <img src="../../../assets/icon/addPoster.png" alt="" />
  2785. </div>
  2786. <div class="isSysPic" v-else>
  2787. <img :src="selectJson.url" alt="" />
  2788. <div class="deletePic" @click="deleteSelectPic">
  2789. <img src="../../../assets/icon/delete.png" alt="" />
  2790. </div>
  2791. </div>
  2792. </div>
  2793. </div>
  2794. <div class="select_box1_select">
  2795. <div class="select_box1_title">
  2796. <span>添加选项</span><span>提示:请输入题目选项</span>
  2797. </div>
  2798. <div class="select_box1_select_box">
  2799. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  2800. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  2801. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  2802. <div class="select_box1_select_box_add">
  2803. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  2804. 添加</el-button>
  2805. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  2806. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  2807. </div>
  2808. </div>
  2809. </div>
  2810. </div>
  2811. <div v-if="selectSteps == 2">
  2812. <div class="select_box2">
  2813. <div class="select_box2_title">设置答案</div>
  2814. <div class="select_box2_box">
  2815. <div class="select_box2_img">
  2816. <img :src="selectJson.url" alt="" />
  2817. </div>
  2818. <div class="select_box2_answer">
  2819. <div class="select_answer_title">根据题目选择对应答案</div>
  2820. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  2821. <span>{{ checkIndex + 1 }}、</span>
  2822. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  2823. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  2824. </el-option>
  2825. </el-select>
  2826. </div>
  2827. </div>
  2828. </div>
  2829. </div>
  2830. </div>
  2831. </div>
  2832. <span slot="footer" class="dialog-footer">
  2833. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  2834. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  2835. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  2836. </span>
  2837. </el-dialog>
  2838. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  2839. :before-close="handleClose" class="dialog_diy">
  2840. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  2841. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  2842. <div class="pjCss" style="width: 100%">
  2843. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  2844. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  2845. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  2846. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  2847. <div class="remove" @click="deletRateList(eIndex)"></div>
  2848. <div style="width: 100%; display: flex">
  2849. <span style="min-width: 100px; text-align: right">评星等级:</span>
  2850. <el-rate v-model="eItem.score" disabled></el-rate>
  2851. </div>
  2852. <div class="elist_inptu_text" style="align-items: flex-start">
  2853. <span style="min-width: 100px; text-align: right">描述:</span>
  2854. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  2855. </div>
  2856. </div>
  2857. </div>
  2858. <div class="addToolFun" @click="addRateList()">
  2859. <div class="addToolImg">
  2860. <img src="../../../assets/icon/add.png" alt />
  2861. </div>
  2862. <div>添加</div>
  2863. </div>
  2864. </div>
  2865. </div>
  2866. <span slot="footer" class="dialog-footer">
  2867. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  2868. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  2869. </span>
  2870. </el-dialog>
  2871. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  2872. :before-close="handleClose" class="dialog_diy dialog_diy3">
  2873. <div>
  2874. <div class="sentenBox">
  2875. <div class="addSen" @click="addSt">添加题目</div>
  2876. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  2877. <div class="sentenTopBox">
  2878. <div class="sentenTop">
  2879. <div>题目设置</div>
  2880. <div>
  2881. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  2882. </div>
  2883. <div @click="addSen(stIndex)">添加</div>
  2884. </div>
  2885. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  2886. </div>
  2887. <div class="cardList">
  2888. <div v-if="st.addSentence.length > 0" class="cardBox">
  2889. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  2890. @click="setRightAnswer(s, stIndex, sIndex)">
  2891. <el-tooltip class="item" effect="light" :content="s" placement="top">
  2892. <div>{{ s }}</div>
  2893. </el-tooltip>
  2894. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  2895. <img src="../../../assets/icon/delete.png" alt="" />
  2896. </div>
  2897. </div>
  2898. </div>
  2899. <div class="card">
  2900. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  2901. </div>
  2902. </div>
  2903. <div class="rightCardBox">
  2904. <div>正确顺序</div>
  2905. <div class="rightCardList">
  2906. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  2907. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  2908. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  2909. <el-tooltip class="item" effect="light" :content="r" placement="top">
  2910. <div>{{ r }}</div>
  2911. </el-tooltip>
  2912. </div>
  2913. <div>{{ rIndex + 1 }}</div>
  2914. </div>
  2915. </div>
  2916. <div class="card" v-if="st.rightAnswer.length == 0">
  2917. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  2918. </div>
  2919. </div>
  2920. </div>
  2921. </div>
  2922. </div>
  2923. </div>
  2924. <span slot="footer" class="dialog-footer">
  2925. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  2926. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  2927. </span>
  2928. </el-dialog>
  2929. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  2930. :before-close="handleClose" class="dialog_diy">
  2931. <el-form>
  2932. <!-- <el-form-item label="文本标题">
  2933. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2934. </el-form-item> -->
  2935. <div>表格内容</div>
  2936. <Table v-model="tableJson.text" @change="change"></Table>
  2937. </el-form>
  2938. <span slot="footer" class="dialog-footer">
  2939. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  2940. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  2941. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  2942. </span>
  2943. </el-dialog>
  2944. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  2945. :before-close="handleClose" class="dialog_diy">
  2946. <el-form>
  2947. <!-- <el-form-item label="文本标题">
  2948. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  2949. </el-form-item> -->
  2950. <div>文档内容</div>
  2951. <editor-bar v-model="wordJson.text"></editor-bar>
  2952. </el-form>
  2953. <span slot="footer" class="dialog-footer">
  2954. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  2955. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  2956. </span>
  2957. </el-dialog>
  2958. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  2959. :before-close="handleClose" class="dialog_diy">
  2960. <div style="
  2961. width: 100%;
  2962. display: flex;
  2963. flex-direction: row;
  2964. flex-wrap: nowrap;
  2965. align-items: center;
  2966. justify-content: center;
  2967. ">
  2968. <div>班级:</div>
  2969. <el-select multiple v-model="uploadJson" placeholder="请选择">
  2970. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  2971. </el-option>
  2972. </el-select>
  2973. </div>
  2974. <span slot="footer" class="dialog-footer">
  2975. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  2976. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  2977. </span>
  2978. </el-dialog>
  2979. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  2980. :before-close="handleClose" class="dialog_diy">
  2981. <div style="
  2982. width: 100%;
  2983. display: flex;
  2984. flex-direction: row;
  2985. flex-wrap: nowrap;
  2986. align-items: center;
  2987. justify-content: center;
  2988. ">
  2989. <div>随机码:</div>
  2990. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  2991. </div>
  2992. <span slot="footer" class="dialog-footer">
  2993. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  2994. <el-button type="primary" @click="addInvite">确定</el-button>
  2995. </span>
  2996. </el-dialog>
  2997. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  2998. :before-close="handleClose" class="dialog_diy">
  2999. <div>
  3000. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3001. </div>
  3002. <span slot="footer" class="dialog-footer">
  3003. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3004. <el-button type="primary" @click="addPreTime">确定</el-button>
  3005. </span>
  3006. </el-dialog>
  3007. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3008. class="dialog_diy">
  3009. <div>
  3010. <div style="
  3011. width: 100%;
  3012. display: flex;
  3013. flex-direction: row;
  3014. flex-wrap: nowrap;
  3015. align-content: center;
  3016. align-items: center;
  3017. justify-content: space-between;
  3018. ">
  3019. <div style="
  3020. display: flex;
  3021. flex-flow: row nowrap;
  3022. align-items: flex-start;
  3023. width: 100%;
  3024. flex-direction: column;
  3025. flex-wrap: nowrap;
  3026. position: relative;
  3027. ">
  3028. <div class="e_box">
  3029. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3030. <div class="e_card_picture">
  3031. <img src="../../../assets/e_picture.png" />
  3032. </div>
  3033. <div class="e_card_name">
  3034. <span>{{ item.title }}</span>
  3035. </div>
  3036. <div class="e_card_btn">
  3037. <span @click="checkEva(item.id, 2)">导入</span>
  3038. </div>
  3039. </div>
  3040. <div class="addEva" @click="openT">
  3041. <img src="../../../assets/icon/addEva.png" alt="" />
  3042. </div>
  3043. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  3044. 暂无数据
  3045. </div>
  3046. </div>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. <span slot="footer" class="dialog-footer">
  3051. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  3052. </span>
  3053. </el-dialog>
  3054. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  3055. :before-close="handleClose" class="dialog_diy">
  3056. <div class="groupBox">
  3057. <div v-if="groupJson.group" class="groupContent">
  3058. <div class="groupTitle">请设置小组数量</div>
  3059. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  3060. <span class="groupn">组{{ index + 1 }}名称:</span>
  3061. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  3062. <div class="groupBtn">
  3063. <el-button type="primary" size="small" @click="addGroup(index)">
  3064. 添加</el-button>
  3065. <el-button type="primary" size="small" @click="deleteGroup(index)"
  3066. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  3067. </div>
  3068. </div>
  3069. </div>
  3070. <div class="groupContent">
  3071. <div class="groupTitle">请设置每组人数数量</div>
  3072. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  3073. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  3074. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  3075. placeholder="2-10人以内"></el-input-number>
  3076. </div>
  3077. </div>
  3078. <span slot="footer" class="dialog-footer">
  3079. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  3080. <el-button type="primary" @click="addGroupJson">确定</el-button>
  3081. </span>
  3082. </el-dialog>
  3083. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  3084. </div>
  3085. </template>
  3086. <script>
  3087. import "../../../common/aws-sdk-2.235.1.min.js";
  3088. import $ from "jquery";
  3089. import EditorBar from "../../../components/tools/wangEnduit";
  3090. import Table from "../../../components/tools/table";
  3091. import Mind from "../../tools/jsmind2";
  3092. import Time from "../../tools/time.vue";
  3093. import Sunburst from "../../tools/sunburst";
  3094. import SeeBoard from "../../tools/seeBoard";
  3095. import weilaiData from "../components/weilai.js";
  3096. import sourceDialog from "../teacherSource/dialog.vue";
  3097. import interVideo from "../interVideo/index.vue";
  3098. export default {
  3099. components: { EditorBar, Mind, Time, Sunburst, SeeBoard, Table, sourceDialog, interVideo },
  3100. data() {
  3101. return {
  3102. checkAll: false,
  3103. chooseType: 1,
  3104. checkedCities: [],
  3105. isIndeterminate: true,
  3106. isSysPic: false,
  3107. steps: 1,
  3108. nbOrder: 0,
  3109. courseId: "",
  3110. chapToolsType: 0,
  3111. chapTools: [
  3112. {
  3113. tools: [],
  3114. toolDetail: "",
  3115. },
  3116. ],
  3117. line: "",
  3118. lineTitle: "",
  3119. sysPic: [],
  3120. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  3121. isPushTitleList: [],
  3122. lineCount: 0,
  3123. lineType: 0,
  3124. chapCount: 0,
  3125. courseName: "",
  3126. isTeacherSee: true,
  3127. courseText: "",
  3128. preTime: 0,
  3129. formLabelWidth: "100px",
  3130. choosePicVisible: false,
  3131. sysPicVisible: false,
  3132. uploadLoading1: false,
  3133. noneBtnImg: false,
  3134. updateBoolean2: false,
  3135. unitIndex: 0,
  3136. taskCount: 0,
  3137. dialogVisible: false,
  3138. dialogVisible1: false,
  3139. dialogVisible2: false,
  3140. dialogVisible3: false,
  3141. dialogVisible4: false,
  3142. dialogVisible5: false,
  3143. dialogVisible6: false,
  3144. dialogVisible7: false,
  3145. dialogVisible8: false,
  3146. dialogVisible9: false,
  3147. dialogVisibleClass: false,
  3148. dialogVisibleMember: false,
  3149. dialogVisibleMp3: false,
  3150. dialogVisibleSelect: false,
  3151. dialogVisibleSentence: false,
  3152. dialogVisibleRate: false,
  3153. dialogVisibleChoice: false,
  3154. dialogVisiblemb: false,
  3155. dialogVisibleInvite: false,
  3156. dialogVisibleSource: false,
  3157. dialogVisibleVideo: false,
  3158. isClickColor: 0,
  3159. publicTool: 0,
  3160. searchPeople: "",
  3161. searchTN: "",
  3162. userid: this.$route.query.userid,
  3163. oid: this.$route.query.oid,
  3164. org: this.$route.query.org,
  3165. role: this.$route.query.role,
  3166. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  3167. dialogVisibleTable: false,
  3168. dialogVisibleWord: false,
  3169. tableJson: { text: "" },
  3170. wordJson: { text: "" },
  3171. dialogVisibleMoreUpload: false,
  3172. dialogVisiblePreTime: false,
  3173. uploadJson: [],
  3174. classJuri: [],
  3175. cover: [], //课程封面
  3176. myWord: [],
  3177. evaJuri: [],
  3178. evalua: "",
  3179. targetArray: [],
  3180. eTitle: "",
  3181. eJson: {},
  3182. fid: "", //一级
  3183. sid: "", //二级
  3184. tid: "", //二级
  3185. typeMode: 1,
  3186. eJSONNum: 0,
  3187. data: {
  3188. meta: {
  3189. name: "example",
  3190. author: "dd@163.com",
  3191. version: "0.2",
  3192. },
  3193. format: "node_array",
  3194. data: [{ id: "root", isroot: true, topic: "" }],
  3195. },
  3196. askJson: {
  3197. askCount: 1,
  3198. askTitle: "",
  3199. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3200. },
  3201. testJson: {},
  3202. selectJson: {},
  3203. rateJson: [],
  3204. unitJson2: [],
  3205. unitJson: [
  3206. {
  3207. dyName: "", //单元标题
  3208. chapterInfo: [
  3209. {
  3210. isread: false,
  3211. chapterid: this.guid(),
  3212. title: "",
  3213. courseName: "",
  3214. taskJson: [
  3215. {
  3216. task: "",
  3217. taskDetail: "",
  3218. chapterData: [],
  3219. toolChoose: [
  3220. {
  3221. tool: [],
  3222. toolDetail: "",
  3223. toolType: 0,
  3224. askCount: 1,
  3225. askTitle: "",
  3226. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3227. },
  3228. ],
  3229. toolText: "",
  3230. isShowTools: false,
  3231. askCount: 1,
  3232. isFold: 0,
  3233. askTitle: "",
  3234. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  3235. checkJson: [{ checkCount: [], checkPerent: [] }],
  3236. homeworkList: [],
  3237. },
  3238. ],
  3239. itemCount: 1,
  3240. fileList1: [],
  3241. video: [],
  3242. testData: [],
  3243. pData: [],
  3244. templateArray: [],
  3245. },
  3246. ],
  3247. },
  3248. ],
  3249. studentJuri: [],
  3250. teacherJuri: [],
  3251. checkboxList: [],
  3252. checkboxList2: [],
  3253. checkboxList3: [],
  3254. classSearch: "",
  3255. number: "",
  3256. tTitle: "",
  3257. tdetail: "",
  3258. templateC: {},
  3259. AttText: {},
  3260. AttTextType: 0,
  3261. AttTextIndex: 0,
  3262. cTemplate: "",
  3263. CourseType: [],
  3264. CourseType2: [],
  3265. CourseTypeJson: {},
  3266. courseTypeId: [],
  3267. courseTypeSon: [],
  3268. clearArray: [],
  3269. pTypeCheck: [],
  3270. pTypeCheckName: [],
  3271. loading: false,
  3272. toolType: 0,
  3273. inputShow: true,
  3274. inputShow2: true,
  3275. toolIndex: 0,
  3276. cidType: 0,
  3277. answerQ: "",
  3278. grade: [],
  3279. grade2: [],
  3280. courseUserid: "",
  3281. timer: null,
  3282. timer2: null,
  3283. checkId: "",
  3284. isDelete: 1,
  3285. addindex: 0,
  3286. selectSteps: 1,
  3287. groupJson: {},
  3288. dialogVisibleGroup: false,
  3289. rightBoxHeight: 0,
  3290. ManAarray: [],
  3291. checkBoolean: false,
  3292. inviteCode: [],
  3293. inviteId: "",
  3294. icode: "",
  3295. easyArray: [2, 4],
  3296. sourceData: {},
  3297. videoJson: {}
  3298. };
  3299. },
  3300. computed: {
  3301. // rightBoxHeight: function () {
  3302. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  3303. // },
  3304. offsetLetfPx: function () {
  3305. //addnum可以直接在模板语法里面用,相当于data内的值
  3306. return (
  3307. $(".cru_select")[this.unitIndex] &&
  3308. $(".cru_select")[this.unitIndex].offsetLeft
  3309. );
  3310. },
  3311. getMan2() {
  3312. return function (people) {
  3313. let _people = people;
  3314. let _people2 = "";
  3315. if (this.ManAarray.length) {
  3316. for (var i = 0; i < this.ManAarray.length; i++) {
  3317. if (this.ManAarray[i].userid == people) {
  3318. _people2 = this.ManAarray[i].name;
  3319. break;
  3320. }
  3321. }
  3322. }
  3323. if (people == this.courseUserid) {
  3324. return "";
  3325. }
  3326. return this.ManAarray.length ? _people2 : "";
  3327. };
  3328. },
  3329. isInvite() {
  3330. return function (cid) {
  3331. let array = [];
  3332. for (var i = 0; i < this.inviteCode.length; i++) {
  3333. array.push(this.inviteCode[i].cid);
  3334. }
  3335. return array.indexOf(cid) != -1;
  3336. };
  3337. },
  3338. getInviteCodeC() {
  3339. return function (cid) {
  3340. let array = [];
  3341. for (var i = 0; i < this.inviteCode.length; i++) {
  3342. array.push(this.inviteCode[i].cid);
  3343. }
  3344. return this.inviteCode[array.indexOf(cid)].ic;
  3345. };
  3346. },
  3347. getClassC() {
  3348. return function (c) {
  3349. let _c2 = "";
  3350. if (this.grade.length) {
  3351. for (var i = 0; i < this.grade.length; i++) {
  3352. if (this.grade[i].id == c) {
  3353. _c2 = this.grade[i].name;
  3354. break;
  3355. }
  3356. }
  3357. }
  3358. return this.grade.length ? _c2 : "";
  3359. };
  3360. },
  3361. },
  3362. watch: {
  3363. unitIndex(newValue, oldValue) {
  3364. if (this.isDelete == 2) {
  3365. this.isDelete = 1;
  3366. return;
  3367. }
  3368. if (this.cid != "") {
  3369. let _unitIndex = oldValue;
  3370. if (
  3371. JSON.stringify(this.unitJson2[_unitIndex]) ==
  3372. JSON.stringify(this.unitJson[_unitIndex])
  3373. ) {
  3374. this.$refs.rightboxR.scrollTop = 0;
  3375. return;
  3376. }
  3377. let cPan = 1;
  3378. for (
  3379. var j = 0;
  3380. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  3381. j++
  3382. ) {
  3383. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3384. j
  3385. ].proVisible = false;
  3386. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  3387. j
  3388. ].proVisible2 = false;
  3389. if (
  3390. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3391. .length > 1
  3392. ) {
  3393. for (
  3394. var z = 0;
  3395. z <
  3396. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  3397. .length;
  3398. z++
  3399. ) {
  3400. if (
  3401. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  3402. .toolChoose[z].tool.length
  3403. ) {
  3404. this.$message.error("请把工具添加完整");
  3405. cPan = 2;
  3406. break;
  3407. }
  3408. }
  3409. }
  3410. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  3411. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  3412. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  3413. (ele) => {
  3414. return ele.value != "";
  3415. }
  3416. );
  3417. }
  3418. }
  3419. if (cPan == 2) {
  3420. this.unitIndex = oldValue;
  3421. return;
  3422. }
  3423. for (var i = 0; i < this.unitJson.length; i++) {
  3424. if (this.addindex != i) {
  3425. delete this.unitJson[i].isUpdate;
  3426. }
  3427. }
  3428. this.$refs.rightboxR.scrollTop = 0;
  3429. this.addindex = -1;
  3430. let params = [
  3431. {
  3432. cid: this.cid,
  3433. chapters: JSON.stringify(this.unitJson),
  3434. uid: this.userid,
  3435. unitIndex: _unitIndex,
  3436. },
  3437. ];
  3438. this.ajax
  3439. .post(this.$store.state.api + "updateWorkNew4", params)
  3440. .then((res) => {
  3441. // this.$message({
  3442. // message: "修改成功",
  3443. // type: "success",
  3444. // });
  3445. // this.courseId = this.cid;
  3446. })
  3447. .catch((err) => {
  3448. this.$message.error("网络不佳");
  3449. console.error(err);
  3450. });
  3451. }
  3452. },
  3453. steps(newValue) {
  3454. if (newValue == 4) {
  3455. this.goTo(
  3456. "/course?userid=" +
  3457. this.userid +
  3458. "&oid=" +
  3459. this.oid +
  3460. "&org=" +
  3461. this.org +
  3462. "&role=" +
  3463. this.role
  3464. );
  3465. }
  3466. }
  3467. },
  3468. methods: {
  3469. setMan() {
  3470. // let teacherJuri = this.teacherJuri2;
  3471. this.ManAarray = [];
  3472. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  3473. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  3474. _user.push(this.courseUserid || this.userid);
  3475. }
  3476. let params = {
  3477. uid: _user.join(","),
  3478. };
  3479. this.ajax
  3480. .get(this.$store.state.api + "getAllUserById", params)
  3481. .then((res) => {
  3482. let teacherJuri = res.data[0];
  3483. this.ManAarray = teacherJuri;
  3484. })
  3485. .catch((err) => {
  3486. console.error(err);
  3487. });
  3488. },
  3489. previewImg(url) {
  3490. this.$hevueImgPreview(url);
  3491. },
  3492. scrollChange() {
  3493. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  3494. // document.querySelector('.course_left').scrollHeight
  3495. // document.querySelector('.stepsBottom2').scrollHeight
  3496. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3497. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  3498. let client = $(".course_left")[0].clientHeight - stepsBottom2
  3499. let top = $(".rightBox")[0].scrollTop - 400 - stepsBottom2
  3500. // if (top < client) {
  3501. // $('.stepsBottom2')[0].style.position = 'absolute'
  3502. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  3503. // // $('.stepsBottom2')[0].style.top = client + 'px'
  3504. // } else
  3505. if (top > 0) {
  3506. let top = $(".rightBox")[0].offsetTop
  3507. $('.stepsBottom2')[0].style.position = 'fixed'
  3508. $('.stepsBottom2')[0].style.top = top + 'px'
  3509. // $('.stepsBottom2')[0].style.top = top + 'px'
  3510. } else {
  3511. $('.stepsBottom2')[0].style.position = 'absolute'
  3512. $('.stepsBottom2')[0].style.top = '0px'
  3513. }
  3514. },
  3515. handleCheckAllChange(val) {
  3516. this.checkedCities = val ? cityOptions : [];
  3517. this.isIndeterminate = false;
  3518. },
  3519. handleCheckedCitiesChange(value) {
  3520. let checkedCount = value.length;
  3521. this.checkAll = checkedCount === this.cities.length;
  3522. this.isIndeterminate =
  3523. checkedCount > 0 && checkedCount < this.cities.length;
  3524. },
  3525. addHw(e) {
  3526. var el = e.currentTarget;
  3527. el.getElementsByTagName("input")[0].click();
  3528. },
  3529. change(val) {
  3530. console.log(val);
  3531. },
  3532. change2(val) {
  3533. console.log(val);
  3534. this.$forceUpdate();
  3535. },
  3536. handleClose(done) {
  3537. done();
  3538. },
  3539. imgChange2(i, j) {
  3540. var _tmp = this.testJson.testJson[i].checkList[j];
  3541. this.noneBtnImg = _tmp.length >= 1;
  3542. },
  3543. imgChange3(i) {
  3544. var _tmp = this.testJson.testJson[i];
  3545. this.noneBtnImg = _tmp.length >= 1;
  3546. },
  3547. imgChange1(file, fileList, type, itemTaskIndex) {
  3548. if (type == 1) {
  3549. var _tmp = this.cover;
  3550. } else if (
  3551. type == 2 ||
  3552. type == 3 ||
  3553. type == 6 ||
  3554. type == 7 ||
  3555. type == 8
  3556. ) {
  3557. var _tmp =
  3558. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3559. .chapterData;
  3560. } else if (type == 4) {
  3561. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  3562. } else {
  3563. var _tmp =
  3564. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  3565. .homeworkList;
  3566. }
  3567. this.noneBtnImg = _tmp.length >= 1;
  3568. },
  3569. goTo(path) {
  3570. this.$router.push(path);
  3571. },
  3572. guid() {
  3573. var _num,
  3574. i,
  3575. _guid = "";
  3576. for (i = 0; i < 32; i++) {
  3577. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  3578. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  3579. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  3580. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  3581. _guid += "-";
  3582. }
  3583. }
  3584. return _guid;
  3585. },
  3586. lastSteps() {
  3587. this.goTo(
  3588. "/course?userid=" +
  3589. this.userid +
  3590. "&oid=" +
  3591. this.oid +
  3592. "&org=" +
  3593. this.org +
  3594. "&role=" +
  3595. this.role
  3596. );
  3597. },
  3598. nextSteps() {
  3599. if (this.cid == "" || this.cid == undefined) {
  3600. if (this.courseName == "") {
  3601. this.$message.error("请将信息填写完整");
  3602. return;
  3603. } else {
  3604. this.addWork();
  3605. this.steps = 4
  3606. }
  3607. } else {
  3608. if (this.courseName == "") {
  3609. this.$message.error("请将信息填写完整");
  3610. return;
  3611. } else {
  3612. if (this.userid != this.courseUserid && this.role != '1') {
  3613. this.updateWork2();
  3614. } else {
  3615. this.updateWork();
  3616. }
  3617. this.steps = 4
  3618. }
  3619. }
  3620. this.$refs.stepBox.scrollTop = 0;
  3621. },
  3622. unitSet(i) {
  3623. this.unitIndex = i;
  3624. // this.$refs.rightboxR.scrollTop = 0;
  3625. },
  3626. time() {
  3627. if (!this.now) {
  3628. this.now = new Date().getTime();
  3629. return true;
  3630. } else {
  3631. let time = new Date().getTime();
  3632. if (time - this.now > 3000) {
  3633. this.now = time;
  3634. return true;
  3635. } else {
  3636. return false;
  3637. }
  3638. }
  3639. },
  3640. deleteUnit(i) {
  3641. var _this = this;
  3642. if (_this.time()) {
  3643. _this
  3644. .$confirm("确定删除此单元吗?", "提示", {
  3645. confirmButtonText: "确定",
  3646. cancelButtonText: "取消",
  3647. type: "warning",
  3648. })
  3649. .then(() => {
  3650. _this.isDelete = 2;
  3651. // _this.unitIndex = _this.unitIndex - 1;
  3652. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  3653. // _this.$message.success("删除成功");
  3654. })
  3655. .catch(() => {
  3656. return;
  3657. });
  3658. }
  3659. },
  3660. deleteWork(chapid) {
  3661. let params = [
  3662. {
  3663. cid: this.cid,
  3664. chapters: JSON.stringify(this.unitJson),
  3665. uid: this.userid,
  3666. chapid: chapid,
  3667. },
  3668. ];
  3669. this.ajax
  3670. .post(this.$store.state.api + "deleteWork", params)
  3671. .then((res) => {
  3672. this.$message({
  3673. message: "删除成功",
  3674. type: "success",
  3675. });
  3676. this.unitJson.splice(this.unitIndex, 1);
  3677. this.unitIndex = this.unitIndex - 1;
  3678. })
  3679. .catch((err) => {
  3680. this.$message.error("网络不佳");
  3681. console.error(err);
  3682. });
  3683. },
  3684. deleteTool(itemTaskIndex, i) {
  3685. var _this = this;
  3686. if (_this.time()) {
  3687. _this
  3688. .$confirm("确定删除此工具吗?", "提示", {
  3689. confirmButtonText: "确定",
  3690. cancelButtonText: "取消",
  3691. type: "warning",
  3692. })
  3693. .then(() => {
  3694. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  3695. itemTaskIndex
  3696. ].toolChoose.splice(i, 1);
  3697. _this.$message.success("删除成功");
  3698. })
  3699. .catch(() => {
  3700. return;
  3701. });
  3702. }
  3703. },
  3704. deleteSentence(i) {
  3705. var _this = this;
  3706. if (_this.time()) {
  3707. _this
  3708. .$confirm("确定删除此题目吗?", "提示", {
  3709. confirmButtonText: "确定",
  3710. cancelButtonText: "取消",
  3711. type: "warning",
  3712. })
  3713. .then(() => {
  3714. _this.sentenceList.splice(i, 1);
  3715. _this.$message.success("删除成功");
  3716. })
  3717. .catch(() => {
  3718. return;
  3719. });
  3720. }
  3721. },
  3722. deleteS(s, i, j) {
  3723. this.sentenceList[i].addSentence.splice(j, 1);
  3724. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  3725. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  3726. this.sentenceList[i].rightAnswer.splice(a, 1);
  3727. }
  3728. },
  3729. openT() {
  3730. window.parent.postMessage({ tools: "25" }, "*");
  3731. },
  3732. deleteTask(i) {
  3733. var _this = this;
  3734. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  3735. _this
  3736. .$confirm("确定删除此任务吗?", "提示", {
  3737. confirmButtonText: "确定",
  3738. cancelButtonText: "取消",
  3739. type: "warning",
  3740. })
  3741. .then(() => {
  3742. if (i == 0) {
  3743. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i + 1].chapterData = JSON.parse(JSON.stringify(_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i].chapterData))
  3744. }
  3745. _this.$forceUpdate();
  3746. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(
  3747. i,
  3748. 1
  3749. );
  3750. _this.$message.success("删除成功");
  3751. // this.$nextTick(() => {
  3752. // $('.stepsBottom2')[0].style.transition = 'unset'
  3753. // setTimeout(() => {
  3754. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  3755. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  3756. // let top = $('.stepsBottom2')[0].offsetTop - 20
  3757. // if (top > client) {
  3758. // $('.stepsBottom2')[0].style.top = client + 'px'
  3759. // }
  3760. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  3761. // this.$forceUpdate()
  3762. // }, 500)
  3763. // })
  3764. })
  3765. .catch(() => {
  3766. return;
  3767. });
  3768. },
  3769. handlePictureCardPreview(file) {
  3770. this.dialogImageUrl = file.url;
  3771. },
  3772. clean(i, c) {
  3773. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  3774. },
  3775. handle_remove1(file, fileList, type) {
  3776. var _tmp = this.cover;
  3777. // for (var i = 0, len = _tmp.length; i < len; i++) {
  3778. // if (_tmp[i].uid == file.uid) {
  3779. // _tmp.splice(i, 1);
  3780. // break;
  3781. // }
  3782. // this.cover = _tmp;
  3783. // }
  3784. this.cover = [];
  3785. this.noneBtnImg = this.cover.length >= 1;
  3786. this.isSysPic = false;
  3787. this.$forceUpdate();
  3788. },
  3789. addImg(e) {
  3790. var el = e.currentTarget;
  3791. el.getElementsByTagName("input")[0].click();
  3792. e.target.value = "";
  3793. },
  3794. addChaptersTools(i) {
  3795. this.chapTools = [
  3796. {
  3797. tools: [],
  3798. toolDetail: "",
  3799. },
  3800. ];
  3801. this.chapCount = i;
  3802. this.dialogVisible4 = true;
  3803. },
  3804. isNoFinsh() {
  3805. this.$message.warning("功能正在开发中");
  3806. },
  3807. addAttText(i) {
  3808. this.AttText = {
  3809. title: "",
  3810. text: "",
  3811. };
  3812. this.taskCount = i;
  3813. this.AttTextType = 0;
  3814. this.$forceUpdate();
  3815. this.dialogVisible6 = true;
  3816. },
  3817. openLine(i) {
  3818. this.line = "";
  3819. this.lineCount = i;
  3820. this.lineType = 0;
  3821. this.$forceUpdate();
  3822. this.dialogVisible7 = true;
  3823. },
  3824. pasteLine(i) {
  3825. navigator.clipboard
  3826. .readText()
  3827. .then((v) => {
  3828. console.log("获取剪贴板成功:", v);
  3829. const html = v;
  3830. const regex = /src="(.*?)"/g;
  3831. const match = regex.exec(html);
  3832. if (match && match[1]) {
  3833. console.log(match[1]);
  3834. this.$message.success("粘贴成功")
  3835. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3836. i
  3837. ].chapterData.push({
  3838. name: "链接",
  3839. title: "嵌入代码",
  3840. url: match[1],
  3841. type: 8,
  3842. });
  3843. } else {
  3844. // console.log("未找到包含 src 属性的 iframe");
  3845. this.$message.error("没有找到粘贴的链接")
  3846. }
  3847. })
  3848. .catch((v) => {
  3849. console.log("获取剪贴板失败: ", v);
  3850. });
  3851. },
  3852. openSource(i) {
  3853. this.lineCount = i;
  3854. this.sourceData = {}
  3855. this.dialogVisibleSource = true;
  3856. },
  3857. addSource() {
  3858. if (!Object.keys(this.sourceData).length) {
  3859. this.$message.error("请选择要上传的资源")
  3860. return;
  3861. }
  3862. let keys = Object.keys(this.sourceData)
  3863. for (var i = 0; i < keys.length; i++) {
  3864. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  3865. this.lineCount
  3866. ].chapterData.push({
  3867. name: "链接",
  3868. title: this.sourceData[keys[i]].name,
  3869. url: this.sourceData[keys[i]].url,
  3870. type: 8,
  3871. });
  3872. }
  3873. this.$forceUpdate();
  3874. this.dialogVisibleSource = false;
  3875. },
  3876. deleteM(i, j) {
  3877. this.testJson.testJson[i].timuList.splice(j, 1);
  3878. },
  3879. beforeUploadTiMu(event, i) {
  3880. const loading = this.openLoading();
  3881. var file = event.target.files[0];
  3882. var credentials = {
  3883. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3884. secretAccessKey: "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",
  3885. }; //秘钥形式的登录上传
  3886. window.AWS.config.update(credentials);
  3887. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3888. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3889. var _this = this;
  3890. if (file) {
  3891. var params = {
  3892. Key:
  3893. file.name.split(".")[0] +
  3894. new Date().getTime() +
  3895. "." +
  3896. file.name.split(".")[file.name.split(".").length - 1],
  3897. ContentType: file.type,
  3898. Body: file,
  3899. "Access-Control-Allow-Credentials": "*",
  3900. ACL: "public-read",
  3901. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3902. var options = {
  3903. partSize: 2048 * 1024 * 1024,
  3904. queueSize: 2,
  3905. leavePartsOnError: true,
  3906. };
  3907. bucket
  3908. .upload(params, options)
  3909. .on("httpUploadProgress", function (evt) {
  3910. //这里可以写进度条
  3911. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3912. })
  3913. .send(function (err, data) {
  3914. loading.close();
  3915. if (err) {
  3916. _this.$message.error("上传失败");
  3917. } else {
  3918. if (_this.testJson.testJson[i].timuList) {
  3919. _this.testJson.testJson[i].timuList.push({
  3920. src: data.Location,
  3921. });
  3922. } else {
  3923. _this.testJson.testJson[i].timuList = [];
  3924. _this.testJson.testJson[i].timuList.push({
  3925. src: data.Location,
  3926. });
  3927. }
  3928. _this.imgChange3(i);
  3929. _this.$forceUpdate();
  3930. }
  3931. });
  3932. }
  3933. },
  3934. beforeUploadTi(event, i, j) {
  3935. const loading = this.openLoading();
  3936. var file = event.target.files[0];
  3937. var credentials = {
  3938. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3939. secretAccessKey: "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",
  3940. }; //秘钥形式的登录上传
  3941. window.AWS.config.update(credentials);
  3942. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3943. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3944. var _this = this;
  3945. if (file) {
  3946. var params = {
  3947. Key:
  3948. file.name.split(".")[0] +
  3949. new Date().getTime() +
  3950. "." +
  3951. file.name.split(".")[file.name.split(".").length - 1],
  3952. ContentType: file.type,
  3953. Body: file,
  3954. "Access-Control-Allow-Credentials": "*",
  3955. ACL: "public-read",
  3956. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  3957. var options = {
  3958. partSize: 2048 * 1024 * 1024,
  3959. queueSize: 2,
  3960. leavePartsOnError: true,
  3961. };
  3962. bucket
  3963. .upload(params, options)
  3964. .on("httpUploadProgress", function (evt) {
  3965. //这里可以写进度条
  3966. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  3967. })
  3968. .send(function (err, data) {
  3969. loading.close();
  3970. if (err) {
  3971. _this.$message.error("上传失败");
  3972. } else {
  3973. _this.testJson.testJson[i].checkList[j] = {};
  3974. _this.testJson.testJson[i].checkList[j].src = data.Location;
  3975. _this.testJson.testJson[i].checkList[j].imgType = 1;
  3976. _this.imgChange2(i, j);
  3977. _this.$forceUpdate();
  3978. }
  3979. });
  3980. }
  3981. },
  3982. beforeUpload1(event, type) {
  3983. // const loading = this.openLoading();
  3984. var file = event.target.files[0];
  3985. var credentials = {
  3986. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  3987. secretAccessKey: "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",
  3988. }; //秘钥形式的登录上传
  3989. window.AWS.config.update(credentials);
  3990. window.AWS.config.region = "cn-northwest-1"; //设置区域
  3991. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  3992. var _this = this;
  3993. if (file) {
  3994. var params = {
  3995. Key:
  3996. file.name.split(".")[0] +
  3997. new Date().getTime() +
  3998. "." +
  3999. file.name.split(".")[file.name.split(".").length - 1],
  4000. ContentType: file.type,
  4001. Body: file,
  4002. "Access-Control-Allow-Credentials": "*",
  4003. ACL: "public-read",
  4004. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4005. var options = {
  4006. partSize: 2048 * 1024 * 1024,
  4007. queueSize: 2,
  4008. leavePartsOnError: true,
  4009. };
  4010. bucket
  4011. .upload(params, options)
  4012. .on("httpUploadProgress", function (evt) {
  4013. //这里可以写进度条
  4014. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4015. })
  4016. .send(function (err, data) {
  4017. // loading.close();
  4018. if (err) {
  4019. // var a = _this.$refs.upload1.uploadFiles;
  4020. // a.splice(a.length - 1, a.length);
  4021. _this.$message.error("上传失败");
  4022. } else {
  4023. _this.cover.push({
  4024. name: file.name,
  4025. url: data.Location,
  4026. uid: file.uid,
  4027. });
  4028. _this.imgChange1(null, null, 1, null);
  4029. _this.choosePicVisible = false;
  4030. console.log(data.Location);
  4031. }
  4032. });
  4033. }
  4034. },
  4035. beforeUploadSelect(event, type) {
  4036. // const loading = this.openLoading();
  4037. var file = event.target.files[0];
  4038. var credentials = {
  4039. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4040. secretAccessKey: "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",
  4041. }; //秘钥形式的登录上传
  4042. window.AWS.config.update(credentials);
  4043. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4044. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4045. var _this = this;
  4046. if (file) {
  4047. var params = {
  4048. Key:
  4049. file.name.split(".")[0] +
  4050. new Date().getTime() +
  4051. "." +
  4052. file.name.split(".")[file.name.split(".").length - 1],
  4053. ContentType: file.type,
  4054. Body: file,
  4055. "Access-Control-Allow-Credentials": "*",
  4056. ACL: "public-read",
  4057. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4058. var options = {
  4059. partSize: 2048 * 1024 * 1024,
  4060. queueSize: 2,
  4061. leavePartsOnError: true,
  4062. };
  4063. bucket
  4064. .upload(params, options)
  4065. .on("httpUploadProgress", function (evt) {
  4066. //这里可以写进度条
  4067. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4068. })
  4069. .send(function (err, data) {
  4070. // loading.close();
  4071. if (err) {
  4072. _this.$message.error("上传失败");
  4073. } else {
  4074. _this.selectJson.url = data.Location;
  4075. console.log(data.Location);
  4076. }
  4077. });
  4078. }
  4079. },
  4080. chooseSysPic(p) {
  4081. this.cover.push({
  4082. name: "系统图片.png",
  4083. url: p,
  4084. });
  4085. this.imgChange1(null, null, 1, null);
  4086. this.isSysPic = true;
  4087. this.sysPicVisible = false;
  4088. },
  4089. beforeUpload(data) {
  4090. this.$refs.upload1.uploadFiles;
  4091. this.uploadLoading1 = true;
  4092. var file = data.file;
  4093. var credentials = {
  4094. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4095. secretAccessKey: "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",
  4096. }; //秘钥形式的登录上传
  4097. window.AWS.config.update(credentials);
  4098. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4099. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4100. var _this = this;
  4101. if (file) {
  4102. var params = {
  4103. Key:
  4104. file.name.split(".")[0] +
  4105. new Date().getTime() +
  4106. "." +
  4107. file.name.split(".")[file.name.split(".").length - 1],
  4108. ContentType: file.type,
  4109. Body: file,
  4110. "Access-Control-Allow-Credentials": "*",
  4111. ACL: "public-read",
  4112. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4113. var options = {
  4114. partSize: 2048 * 1024 * 1024,
  4115. queueSize: 2,
  4116. leavePartsOnError: true,
  4117. };
  4118. bucket
  4119. .upload(params, options)
  4120. .on("httpUploadProgress", function (evt) {
  4121. //这里可以写进度条
  4122. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4123. })
  4124. .send(function (err, data) {
  4125. _this.uploadLoading1 = false;
  4126. if (err) {
  4127. // var a = _this.$refs.upload1.uploadFiles;
  4128. // a.splice(a.length - 1, a.length);
  4129. _this.$message.error("上传失败");
  4130. } else {
  4131. //上传成功处理
  4132. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  4133. name: file.name,
  4134. url: data.Location,
  4135. uid: file.uid,
  4136. });
  4137. _this.imgChange();
  4138. console.log(data.Location);
  4139. }
  4140. });
  4141. }
  4142. },
  4143. onExceed() {
  4144. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  4145. },
  4146. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  4147. // const loading = this.openLoading();
  4148. var file = event.target.files[0];
  4149. var credentials = {
  4150. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4151. secretAccessKey: "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",
  4152. }; //秘钥形式的登录上传
  4153. window.AWS.config.update(credentials);
  4154. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4155. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4156. var _this = this;
  4157. if (type == 3) {
  4158. var b = [
  4159. "DOC",
  4160. "DOCX",
  4161. "DOCM",
  4162. "DOTM",
  4163. "DOTX",
  4164. "PPTX",
  4165. "PPSX",
  4166. "PPT",
  4167. "PPS",
  4168. "PPTM",
  4169. "POTM",
  4170. "PPAM",
  4171. "POTX",
  4172. "PPSM",
  4173. ];
  4174. if (
  4175. b.indexOf(
  4176. file.name
  4177. .split(".")
  4178. [file.name.split(".").length - 1].toLocaleUpperCase()
  4179. ) != -1
  4180. ) {
  4181. if (file.size / 1024 / 1024 > 80) {
  4182. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4183. this.inputShow = true;
  4184. // var a = _this.$refs.upload1.uploadFiles;
  4185. // a.splice(a.length - 1, a.length);
  4186. // loading.close();
  4187. return;
  4188. }
  4189. } else if (
  4190. file.name
  4191. .split(".")
  4192. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4193. ) {
  4194. if (file.size / 1024 / 1024 > 80) {
  4195. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4196. this.inputShow = true;
  4197. // var a = _this.$refs.upload1.uploadFiles;
  4198. // a.splice(a.length - 1, a.length);
  4199. // loading.close();
  4200. return;
  4201. }
  4202. }
  4203. }
  4204. this.inputShow = false;
  4205. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4206. itemTaskIndex
  4207. ].progress = 0;
  4208. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4209. itemTaskIndex
  4210. ].proVisible = true;
  4211. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4212. itemTaskIndex
  4213. ].isFinishSize = 0;
  4214. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4215. itemTaskIndex
  4216. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4217. _this.$forceUpdate();
  4218. if (file) {
  4219. var params = {
  4220. Key:
  4221. file.name.split(".")[0] +
  4222. new Date().getTime() +
  4223. "." +
  4224. file.name.split(".")[file.name.split(".").length - 1],
  4225. ContentType: file.type,
  4226. Body: file,
  4227. "Access-Control-Allow-Credentials": "*",
  4228. ACL: "public-read",
  4229. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4230. var options = {
  4231. partSize: 2048 * 1024 * 1024,
  4232. queueSize: 2,
  4233. leavePartsOnError: true,
  4234. };
  4235. bucket
  4236. .upload(params, options)
  4237. .on("httpUploadProgress", function (evt) {
  4238. //这里可以写进度条
  4239. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4240. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4241. itemTaskIndex
  4242. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4243. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4244. itemTaskIndex
  4245. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4246. _this.$forceUpdate();
  4247. })
  4248. .send(function (err, data) {
  4249. // loading.close();
  4250. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4251. itemTaskIndex
  4252. ].progress = 100;
  4253. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4254. itemTaskIndex
  4255. ].isFinishSize =
  4256. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4257. itemTaskIndex
  4258. ].isAllSize;
  4259. _this.$forceUpdate();
  4260. setTimeout(() => {
  4261. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4262. itemTaskIndex
  4263. ].proVisible = false;
  4264. _this.$forceUpdate();
  4265. }, 1000);
  4266. _this.inputShow = true;
  4267. if (err) {
  4268. // var a = _this.$refs.upload1.uploadFiles;
  4269. // a.splice(a.length - 1, a.length);
  4270. _this.$message.error("上传失败");
  4271. } else {
  4272. if (type == 13) {
  4273. let _type = 2
  4274. var fileA = [
  4275. "PDF",
  4276. "DOC",
  4277. "DOCX",
  4278. "DOCM",
  4279. "DOTM",
  4280. "DOTX",
  4281. "PPTX",
  4282. "PPSX",
  4283. "PPT",
  4284. "PPS",
  4285. "PPTM",
  4286. "POTM",
  4287. "PPAM",
  4288. "POTX",
  4289. "PPSM",
  4290. ];
  4291. var videoA = [
  4292. "AVI",
  4293. "NAVI",
  4294. "MPEG",
  4295. "ASF",
  4296. "MOV",
  4297. "WMV",
  4298. "3GP",
  4299. "RM",
  4300. "RMVB",
  4301. "FLV",
  4302. "F4V",
  4303. "H.264",
  4304. "H.265",
  4305. "REAL VIDEO",
  4306. "MKV",
  4307. "WebM",
  4308. "HDDVD",
  4309. "MP4",
  4310. "MPG",
  4311. "M4V",
  4312. "MGV",
  4313. "OGV",
  4314. "QTM",
  4315. "STR",
  4316. "AMC",
  4317. "DVX",
  4318. "EVO",
  4319. "DAT",
  4320. "OGG",
  4321. "OGM",
  4322. ];
  4323. if (fileA.indexOf(
  4324. data.Location
  4325. .split(".")
  4326. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4327. ) != -1) {
  4328. _type = 3
  4329. } else if (videoA.indexOf(
  4330. data.Location
  4331. .split(".")
  4332. [data.Location.split(".").length - 1].toLocaleUpperCase()
  4333. ) != -1) {
  4334. _type = 2
  4335. } else {
  4336. _type = 12
  4337. }
  4338. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4339. itemTaskIndex
  4340. ].chapterData.push({
  4341. name: file.name,
  4342. url: data.Location,
  4343. uid: file.uid,
  4344. type: _type,
  4345. });
  4346. _this.imgChange1(null, null, _type, itemTaskIndex);
  4347. } else if (type == 2 || type == 3 || type == 12) {
  4348. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4349. itemTaskIndex
  4350. ].chapterData.push({
  4351. name: file.name,
  4352. url: data.Location,
  4353. uid: file.uid,
  4354. type: type,
  4355. });
  4356. _this.imgChange1(null, null, type, itemTaskIndex);
  4357. } else if (type == 4) {
  4358. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4359. itemTaskIndex
  4360. ].fileList1.push({
  4361. name: file.name,
  4362. url: data.Location,
  4363. uid: file.uid,
  4364. });
  4365. _this.imgChange1(null, null, type, itemTaskIndex);
  4366. } else if (type == 5) {
  4367. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4368. itemTaskIndex
  4369. ].homeworkList.push({
  4370. name: file.name,
  4371. url: data.Location,
  4372. uid: file.uid,
  4373. });
  4374. _this.imgChange1(null, null, type, itemTaskIndex);
  4375. }
  4376. console.log(data.Location);
  4377. }
  4378. });
  4379. }
  4380. },
  4381. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  4382. // const loading = this.openLoading();
  4383. var file = event.target.files[0];
  4384. var credentials = {
  4385. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4386. secretAccessKey: "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",
  4387. }; //秘钥形式的登录上传
  4388. window.AWS.config.update(credentials);
  4389. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4390. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4391. var _this = this;
  4392. if (type == 3) {
  4393. var b = [
  4394. "DOC",
  4395. "DOCX",
  4396. "DOCM",
  4397. "DOTM",
  4398. "DOTX",
  4399. "PPTX",
  4400. "PPSX",
  4401. "PPT",
  4402. "PPS",
  4403. "PPTM",
  4404. "POTM",
  4405. "PPAM",
  4406. "POTX",
  4407. "PPSM",
  4408. ];
  4409. if (
  4410. b.indexOf(
  4411. file.name
  4412. .split(".")
  4413. [file.name.split(".").length - 1].toLocaleUpperCase()
  4414. ) != -1
  4415. ) {
  4416. if (file.size / 1024 / 1024 > 80) {
  4417. this.$message.error("上传文件大于80兆,请重新选择文件!");
  4418. this.inputShow = true;
  4419. // var a = _this.$refs.upload1.uploadFiles;
  4420. // a.splice(a.length - 1, a.length);
  4421. // loading.close();
  4422. return;
  4423. }
  4424. } else if (
  4425. file.name
  4426. .split(".")
  4427. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  4428. ) {
  4429. if (file.size / 1024 / 1024 > 80) {
  4430. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  4431. this.inputShow = true;
  4432. // var a = _this.$refs.upload1.uploadFiles;
  4433. // a.splice(a.length - 1, a.length);
  4434. // loading.close();
  4435. return;
  4436. }
  4437. }
  4438. }
  4439. this.inputShow = false;
  4440. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4441. itemTaskIndex
  4442. ].progress = 0;
  4443. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4444. itemTaskIndex
  4445. ].proVisible = true;
  4446. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4447. itemTaskIndex
  4448. ].isFinishSize = 0;
  4449. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4450. itemTaskIndex
  4451. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  4452. _this.$forceUpdate();
  4453. if (file) {
  4454. var params = {
  4455. Key:
  4456. file.name.split(".")[0] +
  4457. new Date().getTime() +
  4458. "." +
  4459. file.name.split(".")[file.name.split(".").length - 1],
  4460. ContentType: file.type,
  4461. Body: file,
  4462. "Access-Control-Allow-Credentials": "*",
  4463. ACL: "public-read",
  4464. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4465. var options = {
  4466. partSize: 2048 * 1024 * 1024,
  4467. queueSize: 2,
  4468. leavePartsOnError: true,
  4469. };
  4470. bucket
  4471. .upload(params, options)
  4472. .on("httpUploadProgress", function (evt) {
  4473. //这里可以写进度条
  4474. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4475. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4476. itemTaskIndex
  4477. ].progress = parseInt((evt.loaded / evt.total) * 100);
  4478. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4479. itemTaskIndex
  4480. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  4481. _this.$forceUpdate();
  4482. })
  4483. .send(function (err, data) {
  4484. // loading.close();
  4485. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4486. itemTaskIndex
  4487. ].progress = 100;
  4488. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4489. itemTaskIndex
  4490. ].isFinishSize =
  4491. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4492. itemTaskIndex
  4493. ].isAllSize;
  4494. _this.$forceUpdate();
  4495. setTimeout(() => {
  4496. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4497. itemTaskIndex
  4498. ].proVisible = false;
  4499. _this.$forceUpdate();
  4500. }, 1000);
  4501. _this.inputShow = true;
  4502. if (err) {
  4503. // var a = _this.$refs.upload1.uploadFiles;
  4504. // a.splice(a.length - 1, a.length);
  4505. _this.$message.error("上传失败");
  4506. } else {
  4507. if (type == 2 || type == 3) {
  4508. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4509. itemTaskIndex
  4510. ].chapterData.push({
  4511. name: file.name,
  4512. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4513. // itemTaskIndex
  4514. // ].chapterData.length+1),
  4515. url: data.Location,
  4516. uid: file.uid,
  4517. type: type,
  4518. text: string,
  4519. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  4520. // itemTaskIndex
  4521. // ].chapterData.length + 1),
  4522. });
  4523. _this.imgChange1(null, null, type, itemTaskIndex);
  4524. } else if (type == 4) {
  4525. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4526. itemTaskIndex
  4527. ].fileList1.push({
  4528. name: file.name,
  4529. url: data.Location,
  4530. uid: file.uid,
  4531. });
  4532. _this.imgChange1(null, null, type, itemTaskIndex);
  4533. } else if (type == 5) {
  4534. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4535. itemTaskIndex
  4536. ].homeworkList.push({
  4537. name: file.name,
  4538. url: data.Location,
  4539. uid: file.uid,
  4540. });
  4541. _this.imgChange1(null, null, type, itemTaskIndex);
  4542. }
  4543. console.log(data.Location);
  4544. }
  4545. });
  4546. }
  4547. },
  4548. addunit() {
  4549. this.unitJson.push({
  4550. dyName: "", //单元标题
  4551. isUpdate: 1,
  4552. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  4553. chapterInfo: [
  4554. {
  4555. isread: false,
  4556. chapterid: this.guid(),
  4557. title: "",
  4558. courseName: "",
  4559. taskJson: [
  4560. {
  4561. task: "",
  4562. taskDetail: "",
  4563. chapterData: [],
  4564. toolText: "",
  4565. toolChoose: [
  4566. {
  4567. tool: [],
  4568. toolDetail: "",
  4569. toolType: 0,
  4570. askCount: 1,
  4571. askTitle: "",
  4572. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4573. },
  4574. ],
  4575. isShowTools: false,
  4576. askCount: 1,
  4577. isFold: 0,
  4578. askTitle: "",
  4579. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4580. checkJson: [{ checkCount: [], checkPerent: [] }],
  4581. homeworkList: [],
  4582. },
  4583. ],
  4584. itemCount: 1,
  4585. fileList1: [],
  4586. video: [],
  4587. testData: [],
  4588. pData: [],
  4589. templateArray: [],
  4590. },
  4591. ],
  4592. });
  4593. this.addindex = this.unitJson.length - 1;
  4594. setTimeout(() => {
  4595. this.unitIndex = this.unitJson.length - 1;
  4596. this.unitSet(this.unitIndex);
  4597. }, 0);
  4598. },
  4599. addToolFun(itemTaskIndex) {
  4600. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4601. itemTaskIndex
  4602. ].toolChoose.push({
  4603. tool: [],
  4604. toolDetail: "",
  4605. toolType: 0,
  4606. askCount: 1,
  4607. askTitle: "",
  4608. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4609. });
  4610. },
  4611. addTaskBorder() {
  4612. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  4613. task: "",
  4614. taskDetail: "",
  4615. chapterData: [],
  4616. toolChoose: [
  4617. {
  4618. tool: [],
  4619. toolDetail: "",
  4620. toolType: 0,
  4621. askCount: 1,
  4622. askTitle: "",
  4623. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4624. },
  4625. ],
  4626. toolText: "",
  4627. isShowTools: false,
  4628. askCount: 1,
  4629. isFold: 0,
  4630. askTitle: "",
  4631. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4632. checkJson: [{ checkCount: [], checkPerent: [] }],
  4633. homeworkList: [],
  4634. });
  4635. },
  4636. add(e, i) {
  4637. var el = e.currentTarget;
  4638. el.getElementsByTagName("input")[0].click();
  4639. },
  4640. fold(i, e, type) {
  4641. var a = e.currentTarget.parentElement.parentElement;
  4642. var b = e.currentTarget.parentElement;
  4643. if (type == 1) {
  4644. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  4645. a.className += " smallTaskBorder";
  4646. b.className += " funBlockTop";
  4647. } else {
  4648. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  4649. a.className = "taskBorder";
  4650. b.className = "funBlock";
  4651. }
  4652. console.log(e);
  4653. },
  4654. deleteHomeworkBox(unitIndex, index, i) {
  4655. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  4656. this.taskCount
  4657. ].homeworkList.splice(i, 1);
  4658. },
  4659. getStudent() {
  4660. let params = {
  4661. oid: this.oid,
  4662. cu: "",
  4663. cn: this.searchPeople,
  4664. };
  4665. this.ajax
  4666. .get(this.$store.state.api + "selectStudentAdd", params)
  4667. .then((res) => {
  4668. this.studentJuri = res.data[0];
  4669. })
  4670. .catch((err) => {
  4671. this.isLoading = false;
  4672. console.error(err);
  4673. });
  4674. },
  4675. getTeacher() {
  4676. let params = {
  4677. oid:
  4678. this.org && this.org != "undefined" && this.org != "null"
  4679. ? this.org
  4680. : this.oid,
  4681. cu: "",
  4682. cn: this.searchTN,
  4683. };
  4684. this.ajax
  4685. .get(
  4686. this.$store.state.api +
  4687. (this.org && this.org != "undefined" && this.org != "null"
  4688. ? "selectTeacherAddOrg"
  4689. : "selectTeacherAdd"),
  4690. params
  4691. )
  4692. .then((res) => {
  4693. let teacherJuri = res.data[0];
  4694. for (var i = 0; i < teacherJuri.length; i++) {
  4695. if (teacherJuri[i].userid == this.userid) {
  4696. teacherJuri.splice(i, 1);
  4697. break;
  4698. }
  4699. }
  4700. this.teacherJuri = teacherJuri;
  4701. })
  4702. .catch((err) => {
  4703. console.error(err);
  4704. });
  4705. },
  4706. searchStudent() {
  4707. this.getStudent();
  4708. },
  4709. //获取班级列表
  4710. getClass() {
  4711. let params = {
  4712. oid: this.oid,
  4713. cn: this.classSearch,
  4714. };
  4715. this.ajax
  4716. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  4717. .then((res) => {
  4718. if (!this.grade.length) {
  4719. this.grade = res.data[0];
  4720. }
  4721. this.grade2 = res.data[0];
  4722. this.classJuri = res.data[0];
  4723. })
  4724. .catch((err) => {
  4725. this.isLoading = false;
  4726. console.error(err);
  4727. });
  4728. },
  4729. CourseType2Change(val) {
  4730. this.pTypeCheck = [];
  4731. for (var i = 0; i < this.CourseType2.length; i++) {
  4732. let typeA = this.CourseType2[i];
  4733. if (val.indexOf(typeA.name) != -1) {
  4734. this.pTypeCheck.push(...typeA.id);
  4735. }
  4736. }
  4737. },
  4738. getChapterData(e, i, j, ic, type) {
  4739. e.stopPropagation();
  4740. this.updataC = true;
  4741. this.icc = ic;
  4742. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  4743. console.log("还不能下载图片喔");
  4744. }
  4745. },
  4746. deleteChapterData(e, i, j, ic, taskI) {
  4747. e.stopPropagation();
  4748. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  4749. },
  4750. updataVideoT(e, i, j, ic) {
  4751. e.stopPropagation();
  4752. this.unitJson[i].chapterInfo[j].taskJson[this.taskCount].chapterData[
  4753. ic
  4754. ].name = e.target.value;
  4755. },
  4756. upCd(e, i, j, taskCount, ic) {
  4757. e.stopPropagation();
  4758. if (ic == 0) {
  4759. return;
  4760. }
  4761. var a =
  4762. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1];
  4763. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  4764. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4765. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4766. this.$forceUpdate();
  4767. },
  4768. downCd(e, i, j, taskCount, ic) {
  4769. e.stopPropagation();
  4770. if (
  4771. ic ==
  4772. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  4773. 1
  4774. ) {
  4775. return;
  4776. }
  4777. var a =
  4778. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1];
  4779. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  4780. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic];
  4781. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  4782. this.$forceUpdate();
  4783. },
  4784. addWork() {
  4785. let cPan = 1;
  4786. for (var i = 0; i < this.unitJson.length; i++) {
  4787. for (
  4788. var j = 0;
  4789. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4790. j++
  4791. ) {
  4792. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4793. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4794. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4795. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4796. i
  4797. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4798. return ele.value != "";
  4799. });
  4800. }
  4801. }
  4802. }
  4803. this.inputShow = true;
  4804. if (cPan == 2) {
  4805. this.steps--;
  4806. return;
  4807. }
  4808. for (var i = 0; i < this.unitJson.length; i++) {
  4809. delete this.unitJson[i].isUpdate;
  4810. }
  4811. let params = [
  4812. {
  4813. uid: this.userid,
  4814. title: this.courseName.replace(/%/g, "%25"),
  4815. brief: this.courseText.replace(/%/g, "%25"),
  4816. cover:
  4817. this.cover.length > 0
  4818. ? JSON.stringify(this.cover)
  4819. : JSON.stringify([
  4820. {
  4821. name: "noBanner.jpg",
  4822. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4823. uid: 1656409780264,
  4824. status: "success",
  4825. },
  4826. ]),
  4827. evaId: this.evalua,
  4828. astudent:
  4829. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4830. see: this.isTeacherSee == true ? 1 : 0,
  4831. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4832. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  4833. courseType: JSON.stringify(this.courseTypeId),
  4834. ateacher:
  4835. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4836. inviteCode: JSON.stringify(this.inviteCode),
  4837. },
  4838. ];
  4839. this.ajax
  4840. .post(this.$store.state.api + "addWorkNew2T", params)
  4841. .then((res) => {
  4842. console.log(this.steps);
  4843. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4844. this.$message({
  4845. message: "新增成功",
  4846. type: "success",
  4847. });
  4848. }
  4849. this.number = res.data.ordernumber;
  4850. this.courseId = res.data.courseId;
  4851. this.cid = res.data.courseId;
  4852. this.courseUserid = this.userid;
  4853. this.islogin = true;
  4854. })
  4855. .catch((err) => {
  4856. this.$message.error("网络不佳");
  4857. console.error(err);
  4858. });
  4859. },
  4860. goCourse() {
  4861. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  4862. },
  4863. updateWork2() {
  4864. let _unitIndex = this.unitIndex;
  4865. let cPan = 1;
  4866. for (
  4867. var j = 0;
  4868. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4869. j++
  4870. ) {
  4871. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  4872. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4873. j
  4874. ].proVisible2 = false;
  4875. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4876. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4877. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4878. (ele) => {
  4879. return ele.value != "";
  4880. }
  4881. );
  4882. }
  4883. }
  4884. this.inputShow = true;
  4885. if (cPan == 2) {
  4886. this.steps--;
  4887. return;
  4888. }
  4889. let params = [
  4890. {
  4891. cid: this.cid,
  4892. chapters: JSON.stringify(this.unitJson),
  4893. uid: this.userid,
  4894. unitIndex: _unitIndex,
  4895. },
  4896. ];
  4897. this.ajax
  4898. .post(this.$store.state.api + "updateWorkNew4", params)
  4899. .then((res) => {
  4900. this.$message({
  4901. message: "修改成功",
  4902. type: "success",
  4903. });
  4904. this.courseId = this.cid;
  4905. })
  4906. .catch((err) => {
  4907. this.$message.error("网络不佳");
  4908. console.error(err);
  4909. });
  4910. },
  4911. updateWork() {
  4912. let cPan = 1;
  4913. for (var i = 0; i < this.unitJson.length; i++) {
  4914. for (
  4915. var j = 0;
  4916. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  4917. j++
  4918. ) {
  4919. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  4920. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  4921. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  4922. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  4923. i
  4924. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  4925. return ele.value != "";
  4926. });
  4927. }
  4928. }
  4929. }
  4930. this.inputShow = true;
  4931. if (cPan == 2) {
  4932. this.steps--;
  4933. return;
  4934. }
  4935. for (var i = 0; i < this.unitJson.length; i++) {
  4936. delete this.unitJson[i].isUpdate;
  4937. }
  4938. let params = [
  4939. {
  4940. cid: this.cid,
  4941. title: this.courseName.replace(/%/g, "%25"),
  4942. brief: this.courseText.replace(/%/g, "%25"),
  4943. cover:
  4944. this.cover.length > 0
  4945. ? JSON.stringify(this.cover)
  4946. : JSON.stringify([
  4947. {
  4948. name: "noBanner.jpg",
  4949. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  4950. uid: 1656409780264,
  4951. status: "success",
  4952. },
  4953. ]),
  4954. evaId: this.evalua,
  4955. astudent:
  4956. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  4957. see: this.isTeacherSee == true ? 1 : 0,
  4958. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  4959. template: this.myWord != "undefined" ? this.myWord : [],
  4960. uid: this.userid,
  4961. courseType: JSON.stringify(this.courseTypeId),
  4962. ateacher:
  4963. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  4964. inviteCode: JSON.stringify(this.inviteCode),
  4965. },
  4966. ];
  4967. this.ajax
  4968. .post(this.$store.state.api + "updateWorkNew2", params)
  4969. .then((res) => {
  4970. if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  4971. if (this.cidType == 1) {
  4972. this.$message({
  4973. message: "修改成功",
  4974. type: "success",
  4975. });
  4976. } else {
  4977. this.$message({
  4978. message: "新增成功",
  4979. type: "success",
  4980. });
  4981. }
  4982. }
  4983. this.number = this.nbOrder;
  4984. this.courseId = this.cid;
  4985. })
  4986. .catch((err) => {
  4987. this.$message.error("网络不佳");
  4988. console.error(err);
  4989. });
  4990. },
  4991. guid() {
  4992. var _num,
  4993. i,
  4994. _guid = "";
  4995. for (i = 0; i < 32; i++) {
  4996. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4997. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4998. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4999. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  5000. _guid += "-";
  5001. }
  5002. }
  5003. return _guid;
  5004. },
  5005. insertWord() {
  5006. this.dialogVisible1 = true;
  5007. this.updateBoolean2 = false;
  5008. this.tTitle = "";
  5009. this.tdetail = "";
  5010. },
  5011. addWord() {
  5012. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  5013. name: this.tTitle,
  5014. content: this.tdetail,
  5015. uid: this.guid(),
  5016. });
  5017. this.dialogVisible1 = false;
  5018. },
  5019. upWord() { },
  5020. selectWord(uid, i, c) {
  5021. this.dialogVisible1 = true;
  5022. this.updateBoolean2 = true;
  5023. if (
  5024. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  5025. ) {
  5026. this.tTitle =
  5027. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  5028. this.tdetail =
  5029. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  5030. }
  5031. },
  5032. isAddPP() {
  5033. if (this.checkboxList.length > 0) {
  5034. this.$message({
  5035. message: "添加成功",
  5036. type: "success",
  5037. });
  5038. this.dialogVisible3 = false;
  5039. } else {
  5040. this.$message({
  5041. message: "请添加课程成员",
  5042. type: "error",
  5043. });
  5044. }
  5045. },
  5046. isAddClass() {
  5047. this.dialogVisibleClass = false;
  5048. },
  5049. isAddPPTeacher() {
  5050. this.dialogVisibleMember = false;
  5051. this.setMan();
  5052. },
  5053. getTemplate() {
  5054. this.ajax
  5055. .get(this.$store.state.api + "getCourseTemplateT", "")
  5056. .then((res) => {
  5057. this.templateArray = res.data[0];
  5058. this.getTemplateOid();
  5059. this.$forceUpdate();
  5060. })
  5061. .catch((err) => { });
  5062. },
  5063. getTemplateOid() {
  5064. let params = {
  5065. oid: this.oid,
  5066. };
  5067. this.ajax
  5068. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5069. .then((res) => {
  5070. if (res.data[0].length) {
  5071. this.templateArray = [...res.data[0], ...this.templateArray];
  5072. }
  5073. this.getTemplateOrg();
  5074. this.$forceUpdate();
  5075. })
  5076. .catch((err) => { });
  5077. },
  5078. getTemplateOrg() {
  5079. let params = {
  5080. oid: this.org,
  5081. };
  5082. this.ajax
  5083. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  5084. .then((res) => {
  5085. if (res.data[0].length) {
  5086. this.templateArray = [...res.data[0], ...this.templateArray];
  5087. }
  5088. this.$forceUpdate();
  5089. })
  5090. .catch((err) => { });
  5091. },
  5092. clearChoose() {
  5093. this.clearArray.splice(this.templateC.id, 1);
  5094. this.dialogVisible2 = false;
  5095. },
  5096. clearAttText() {
  5097. this.AttText = {
  5098. title: "",
  5099. text: "",
  5100. };
  5101. this.dialogVisible6 = false;
  5102. },
  5103. clearLine() {
  5104. this.line = "";
  5105. this.dialogVisible7 = false;
  5106. },
  5107. checkTemplate(res) {
  5108. let _this = this;
  5109. _this
  5110. .$confirm("确定选择此模板吗?", "提示", {
  5111. confirmButtonText: "确定",
  5112. cancelButtonText: "取消",
  5113. type: "warning",
  5114. })
  5115. .then(() => {
  5116. _this.unitJson = JSON.parse(res.chapters);
  5117. _this.steps++;
  5118. setTimeout(() => {
  5119. this.checkEva(this.checkId);
  5120. }, 1000);
  5121. })
  5122. .catch(() => {
  5123. return;
  5124. });
  5125. },
  5126. checkTemplate1(w) {
  5127. this.steps++;
  5128. },
  5129. checkTemplate2() {
  5130. let _this = this;
  5131. _this
  5132. .$confirm("确定选择空模板吗?", "提示", {
  5133. confirmButtonText: "确定",
  5134. cancelButtonText: "取消",
  5135. type: "warning",
  5136. })
  5137. .then(() => {
  5138. _this.unitIndex = 0;
  5139. _this.unitJson = [
  5140. {
  5141. dyName: "", //单元标题
  5142. chapterInfo: [
  5143. {
  5144. isread: false,
  5145. chapterid: this.guid(),
  5146. title: "",
  5147. courseName: "",
  5148. taskJson: [
  5149. {
  5150. task: "",
  5151. taskDetail: "",
  5152. chapterData: [],
  5153. toolText: "",
  5154. toolChoose: [
  5155. {
  5156. tool: [],
  5157. toolDetail: "",
  5158. toolType: 0,
  5159. askCount: 1,
  5160. askTitle: "",
  5161. askJson: [
  5162. { askstitle: "", askItem: 1, checkList: [] },
  5163. ],
  5164. },
  5165. ],
  5166. isShowTools: false,
  5167. askCount: 1,
  5168. isFold: 0,
  5169. askTitle: "",
  5170. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5171. checkJson: [{ checkCount: [], checkPerent: [] }],
  5172. homeworkList: [],
  5173. },
  5174. ],
  5175. itemCount: 1,
  5176. fileList1: [],
  5177. video: [],
  5178. testData: [],
  5179. pData: [],
  5180. templateArray: [],
  5181. },
  5182. ],
  5183. },
  5184. ];
  5185. this.steps++;
  5186. this.updateWork();
  5187. })
  5188. .catch(() => {
  5189. return;
  5190. });
  5191. },
  5192. checkTemplate3() {
  5193. let _this = this;
  5194. _this
  5195. .$confirm("确定选择简易模式吗?", "提示", {
  5196. confirmButtonText: "确定",
  5197. cancelButtonText: "取消",
  5198. type: "warning",
  5199. })
  5200. .then(() => {
  5201. _this.unitIndex = 0;
  5202. _this.unitJson = [
  5203. {
  5204. dyName: "", //单元标题
  5205. easy: 1,
  5206. chapterInfo: [
  5207. {
  5208. isread: false,
  5209. chapterid: this.guid(),
  5210. title: "",
  5211. courseName: "",
  5212. taskJson: [
  5213. {
  5214. task: "",
  5215. taskDetail: "",
  5216. chapterData: [],
  5217. toolText: "",
  5218. toolChoose: [
  5219. {
  5220. tool: [],
  5221. toolDetail: "",
  5222. toolType: 0,
  5223. askCount: 1,
  5224. askTitle: "",
  5225. askJson: [
  5226. { askstitle: "", askItem: 1, checkList: [] },
  5227. ],
  5228. },
  5229. ],
  5230. isShowTools: false,
  5231. askCount: 1,
  5232. isFold: 0,
  5233. askTitle: "",
  5234. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5235. checkJson: [{ checkCount: [], checkPerent: [] }],
  5236. homeworkList: [],
  5237. },
  5238. ],
  5239. itemCount: 1,
  5240. fileList1: [],
  5241. video: [],
  5242. testData: [],
  5243. pData: [],
  5244. templateArray: [],
  5245. },
  5246. ],
  5247. },
  5248. ];
  5249. this.steps++;
  5250. this.updateWork();
  5251. })
  5252. .catch(() => {
  5253. return;
  5254. });
  5255. },
  5256. checkTemplate4() {
  5257. let _this = this;
  5258. _this
  5259. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  5260. confirmButtonText: "确定",
  5261. cancelButtonText: "取消",
  5262. type: "warning",
  5263. })
  5264. .then(() => {
  5265. _this.unitIndex = 0;
  5266. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  5267. this.steps++;
  5268. this.updateWork();
  5269. })
  5270. .catch(() => {
  5271. return;
  5272. });
  5273. },
  5274. wordNext() {
  5275. this.dialogVisible2 = false;
  5276. },
  5277. isAddOrUpdateAttText() {
  5278. if (this.AttTextType == 0) {
  5279. this.addAttTextMessage();
  5280. } else {
  5281. this.updateAttText();
  5282. }
  5283. },
  5284. isAddOrUpdateLine() {
  5285. if (!this.lineTitle) {
  5286. this.$message.error("请填写链接标题");
  5287. return;
  5288. }
  5289. if (this.lineType == 0) {
  5290. this.addLine();
  5291. } else {
  5292. this.updateLine();
  5293. }
  5294. },
  5295. addAttTextMessage() {
  5296. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5297. this.taskCount
  5298. ].chapterData.push({
  5299. name: this.AttText.title,
  5300. url: this.AttText.text,
  5301. type: 6,
  5302. });
  5303. this.imgChange1(null, null, 6, this.taskCount);
  5304. this.dialogVisible6 = false;
  5305. },
  5306. selectAttText(itemTaskIndex, i) {
  5307. this.AttText.title =
  5308. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5309. itemTaskIndex
  5310. ].chapterData[i].name;
  5311. this.AttText.text =
  5312. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5313. itemTaskIndex
  5314. ].chapterData[i].url;
  5315. this.taskCount = itemTaskIndex;
  5316. this.AttTextIndex = i;
  5317. this.AttTextType = 1;
  5318. this.dialogVisible6 = true;
  5319. },
  5320. updateAttText() {
  5321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5322. this.taskCount
  5323. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  5324. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5325. this.taskCount
  5326. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  5327. this.dialogVisible6 = false;
  5328. },
  5329. addLine() {
  5330. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5331. this.lineCount
  5332. ].chapterData.push({
  5333. name: "链接",
  5334. title: this.lineTitle,
  5335. url: this.line,
  5336. type: 8,
  5337. });
  5338. this.imgChange1(null, null, 8, this.lineCount);
  5339. this.dialogVisible7 = false;
  5340. },
  5341. selectLine(itemTaskIndex, i) {
  5342. this.line =
  5343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5344. itemTaskIndex
  5345. ].chapterData[i].url;
  5346. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5347. itemTaskIndex
  5348. ].chapterData[i].title
  5349. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5350. .chapterData[i].title
  5351. : "";
  5352. this.taskCount = itemTaskIndex;
  5353. this.lineCount = i;
  5354. this.lineType = 1;
  5355. this.dialogVisible7 = true;
  5356. },
  5357. updateLine() {
  5358. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5359. this.taskCount
  5360. ].chapterData[this.lineCount].url = this.line;
  5361. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5362. this.taskCount
  5363. ].chapterData[this.lineCount].title = this.lineTitle;
  5364. this.dialogVisible7 = false;
  5365. },
  5366. addPP() {
  5367. this.dialogVisible3 = true;
  5368. },
  5369. goTo(path) {
  5370. this.$router.push(path);
  5371. },
  5372. openTools(itemTaskIndex, i, toolIndex) {
  5373. this.toolIndex = toolIndex;
  5374. this.taskCount = itemTaskIndex;
  5375. if (i == 4) {
  5376. if (toolIndex == null) {
  5377. var a =
  5378. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5379. .chapterData;
  5380. for (var i = 0; i < a.length; i++) {
  5381. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  5382. this.askJson =
  5383. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5384. itemTaskIndex
  5385. ].chapterData[i].askJson;
  5386. }
  5387. }
  5388. } else {
  5389. this.askJson = JSON.parse(
  5390. JSON.stringify(
  5391. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5392. itemTaskIndex
  5393. ].toolChoose[toolIndex]
  5394. )
  5395. );
  5396. }
  5397. this.dialogVisible5 = true;
  5398. } else if (i == 45) {
  5399. if (
  5400. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5401. .toolChoose[toolIndex].testJson
  5402. ) {
  5403. this.testJson = JSON.parse(
  5404. JSON.stringify(
  5405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5406. itemTaskIndex
  5407. ].toolChoose[toolIndex].testJson
  5408. )
  5409. );
  5410. } else {
  5411. var testJson = {
  5412. testCount: 1,
  5413. testTitle: "",
  5414. testJson: [
  5415. {
  5416. teststitle: "",
  5417. testItem: 1,
  5418. checkList: [],
  5419. timuList: [],
  5420. answer: [],
  5421. type: "1",
  5422. },
  5423. ],
  5424. };
  5425. this.testJson = testJson;
  5426. }
  5427. this.dialogVisibleChoice = true;
  5428. } else if (i == 47) {
  5429. if (
  5430. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5431. .toolChoose[toolIndex].sentenceList
  5432. ) {
  5433. this.sentenceList = JSON.parse(
  5434. JSON.stringify(
  5435. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5436. itemTaskIndex
  5437. ].toolChoose[toolIndex].sentenceList
  5438. )
  5439. );
  5440. } else {
  5441. var sentenceList = [
  5442. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  5443. ];
  5444. this.sentenceList = sentenceList;
  5445. }
  5446. this.dialogVisibleSentence = true;
  5447. } else if (i == 48) {
  5448. if (
  5449. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5450. .toolChoose[toolIndex].tableJson
  5451. ) {
  5452. this.tableJson = JSON.parse(
  5453. JSON.stringify(
  5454. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5455. itemTaskIndex
  5456. ].toolChoose[toolIndex].tableJson
  5457. )
  5458. );
  5459. } else {
  5460. var tableJson = { text: "" };
  5461. this.tableJson = tableJson;
  5462. }
  5463. this.dialogVisibleTable = true;
  5464. } else if (i == 52) {
  5465. if (
  5466. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5467. .toolChoose[toolIndex].wordJson
  5468. ) {
  5469. this.wordJson = JSON.parse(
  5470. JSON.stringify(
  5471. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5472. itemTaskIndex
  5473. ].toolChoose[toolIndex].wordJson
  5474. )
  5475. );
  5476. } else {
  5477. var wordJson = { text: "" };
  5478. this.wordJson = wordJson;
  5479. }
  5480. this.dialogVisibleWord = true;
  5481. // else if (i == 50) {
  5482. // if (
  5483. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5484. // .toolChoose[toolIndex].uploadJson
  5485. // ) {
  5486. // this.uploadJson = JSON.parse(
  5487. // JSON.stringify(
  5488. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5489. // itemTaskIndex
  5490. // ].toolChoose[toolIndex].uploadJson
  5491. // )
  5492. // );
  5493. // } else {
  5494. // var uploadJson = [];
  5495. // this.uploadJson = uploadJson;
  5496. // }
  5497. // this.dialogVisibleMoreUpload = true;
  5498. // }
  5499. } else if (i == 10) {
  5500. if (
  5501. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5502. .toolChoose[toolIndex].preTime
  5503. ) {
  5504. this.preTime = JSON.parse(
  5505. JSON.stringify(
  5506. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5507. itemTaskIndex
  5508. ].toolChoose[toolIndex].preTime
  5509. )
  5510. );
  5511. } else {
  5512. var preTime = 0;
  5513. this.preTime = preTime;
  5514. }
  5515. this.dialogVisiblePreTime = true;
  5516. } else if (i == 49) {
  5517. if (
  5518. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5519. .toolChoose[toolIndex].groupJson
  5520. ) {
  5521. this.groupJson = JSON.parse(
  5522. JSON.stringify(
  5523. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5524. itemTaskIndex
  5525. ].toolChoose[toolIndex].groupJson
  5526. )
  5527. );
  5528. } else {
  5529. var groupJson = {
  5530. group: [{ name: "第1组" }],
  5531. number: undefined,
  5532. islock: 1,
  5533. };
  5534. this.groupJson = groupJson;
  5535. }
  5536. this.dialogVisibleGroup = true;
  5537. } else if (i == 62) {
  5538. if (
  5539. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5540. .toolChoose[toolIndex].videoJson
  5541. ) {
  5542. this.videoJson = JSON.parse(
  5543. JSON.stringify(
  5544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5545. itemTaskIndex
  5546. ].toolChoose[toolIndex].videoJson
  5547. )
  5548. );
  5549. } else {
  5550. var videoJson = {
  5551. video: "",
  5552. setting: []
  5553. };
  5554. this.videoJson = videoJson;
  5555. }
  5556. this.dialogVisibleVideo = true;
  5557. } else if (i == 15) {
  5558. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5559. itemTaskIndex
  5560. ].toolChoose[toolIndex].answerQ
  5561. ? JSON.parse(
  5562. JSON.stringify(
  5563. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5564. itemTaskIndex
  5565. ].toolChoose[toolIndex].answerQ
  5566. )
  5567. )
  5568. : "";
  5569. this.dialogVisible8 = true;
  5570. } else if (i == 40) {
  5571. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5572. itemTaskIndex
  5573. ].toolChoose[toolIndex].rateJson
  5574. ? JSON.parse(
  5575. JSON.stringify(
  5576. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5577. itemTaskIndex
  5578. ].toolChoose[toolIndex].rateJson
  5579. )
  5580. )
  5581. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  5582. this.selectSteps = 1;
  5583. this.dialogVisibleRate = true;
  5584. } else if (i == 42) {
  5585. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5586. itemTaskIndex
  5587. ].toolChoose[toolIndex].answerQ
  5588. ? JSON.parse(
  5589. JSON.stringify(
  5590. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5591. itemTaskIndex
  5592. ].toolChoose[toolIndex].answerQ
  5593. )
  5594. )
  5595. : "";
  5596. this.dialogVisibleMp3 = true;
  5597. } else if (i == 41) {
  5598. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5599. itemTaskIndex
  5600. ].toolChoose[toolIndex].selectJson
  5601. ? JSON.parse(
  5602. JSON.stringify(
  5603. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5604. itemTaskIndex
  5605. ].toolChoose[toolIndex].selectJson
  5606. )
  5607. )
  5608. : { url: "", select: [], answer: [] };
  5609. this.selectSteps = 1;
  5610. this.dialogVisibleSelect = true;
  5611. } else if (i == 3) {
  5612. window.parent.postMessage(
  5613. {
  5614. tools: "3y",
  5615. cid: this.cid,
  5616. stage: this.unitIndex,
  5617. task: itemTaskIndex,
  5618. tool: toolIndex,
  5619. },
  5620. "*"
  5621. );
  5622. } else if (i == 1) {
  5623. window.parent.postMessage(
  5624. {
  5625. tools: "1y",
  5626. cid: this.cid,
  5627. stage: this.unitIndex,
  5628. task: itemTaskIndex,
  5629. tool: toolIndex,
  5630. },
  5631. "*"
  5632. );
  5633. }
  5634. },
  5635. chapAddTools(i) {
  5636. if (this.chapTools[0].tools.length == 0) {
  5637. this.chapTools[0].tools.push(i);
  5638. } else {
  5639. if (this.chapTools[0].tools.indexOf(i) != -1) {
  5640. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  5641. } else {
  5642. this.chapTools[0].tools.push(i);
  5643. }
  5644. }
  5645. this.$forceUpdate();
  5646. },
  5647. addChaptersDataTools() {
  5648. if (this.chapTools[0].tools.indexOf(4) != -1) {
  5649. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5650. this.chapCount
  5651. ].chapterData.push({
  5652. name: this.chapTools[0].toolDetail,
  5653. url: this.chapTools[0].tools,
  5654. type: 7,
  5655. askJson: this.askJson,
  5656. });
  5657. } else {
  5658. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5659. this.chapCount
  5660. ].chapterData.push({
  5661. name: this.chapTools[0].toolDetail,
  5662. url: this.chapTools[0].tools,
  5663. type: 7,
  5664. });
  5665. }
  5666. this.imgChange1(null, null, 7, this.chapCount);
  5667. this.dialogVisible4 = false;
  5668. },
  5669. addTools(i, itemTaskIndex, toolIndex) {
  5670. // if (
  5671. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5672. // .toolChoose[toolIndex].tool.length == 0
  5673. // ) {
  5674. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5675. // itemTaskIndex
  5676. // ].toolChoose[toolIndex].tool.push(i);
  5677. // } else {
  5678. // if (
  5679. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5680. // itemTaskIndex
  5681. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5682. // ) {
  5683. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5684. // itemTaskIndex
  5685. // ].toolChoose[toolIndex].tool.splice(
  5686. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5687. // itemTaskIndex
  5688. // ].toolChoose[toolIndex].tool.indexOf(i),
  5689. // 1
  5690. // );
  5691. // } else {
  5692. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5693. // itemTaskIndex
  5694. // ].toolChoose[toolIndex].tool.push(i);
  5695. // }
  5696. // console.log(
  5697. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5698. // .toolChoose[toolIndex].tool
  5699. // );
  5700. // }
  5701. if (i == 4) {
  5702. if (
  5703. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5704. .toolChoose[toolIndex].askJson.askTitle == "" ||
  5705. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5706. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  5707. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5708. .toolChoose[toolIndex].askJson[0].checkList < 2
  5709. ) {
  5710. this.openTools(itemTaskIndex, 4, toolIndex);
  5711. // this.$message({
  5712. // message: "请填写完整问卷内容",
  5713. // type: "error",
  5714. // });
  5715. return;
  5716. }
  5717. }
  5718. if (i == 45) {
  5719. if (
  5720. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5721. .toolChoose[toolIndex].testJson ||
  5722. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5723. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  5724. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5725. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  5726. ) {
  5727. this.openTools(itemTaskIndex, 45, toolIndex);
  5728. // this.$message({
  5729. // message: "请填写完整问卷内容",
  5730. // type: "error",
  5731. // });
  5732. return;
  5733. }
  5734. }
  5735. if (i == 47) {
  5736. if (
  5737. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5738. .toolChoose[toolIndex].sentenceList ||
  5739. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5740. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  5741. ) {
  5742. this.openTools(itemTaskIndex, 47, toolIndex);
  5743. return;
  5744. }
  5745. }
  5746. // if (i == 48) {
  5747. // if (
  5748. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5749. // .toolChoose[toolIndex].tableJson
  5750. // ) {
  5751. // this.openTools(itemTaskIndex, 48, toolIndex);
  5752. // return;
  5753. // }
  5754. // }
  5755. // if (i == 50) {
  5756. // if (
  5757. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5758. // .toolChoose[toolIndex].uploadJson
  5759. // ) {
  5760. // this.openTools(itemTaskIndex, 50, toolIndex);
  5761. // return;
  5762. // }
  5763. // }
  5764. if (i == 49) {
  5765. if (
  5766. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5767. .toolChoose[toolIndex].groupJson
  5768. ) {
  5769. this.openTools(itemTaskIndex, 49, toolIndex);
  5770. return;
  5771. }
  5772. }
  5773. if (i == 62) {
  5774. if (
  5775. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5776. .toolChoose[toolIndex].videoJson
  5777. ) {
  5778. this.openTools(itemTaskIndex, 62, toolIndex);
  5779. return;
  5780. }
  5781. }
  5782. if (i == 15) {
  5783. if (
  5784. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5785. .toolChoose[toolIndex].answerQ ||
  5786. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5787. .toolChoose[toolIndex].answerQ == ""
  5788. ) {
  5789. this.openTools(itemTaskIndex, 15, toolIndex);
  5790. // this.$message({
  5791. // message: "请填写问答内容",
  5792. // type: "error",
  5793. // });
  5794. return;
  5795. }
  5796. }
  5797. if (i == 40) {
  5798. if (
  5799. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5800. .toolChoose[toolIndex].rateJson ||
  5801. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5802. .toolChoose[toolIndex].rateJson.length
  5803. ) {
  5804. this.openTools(itemTaskIndex, 40, toolIndex);
  5805. return;
  5806. }
  5807. }
  5808. if (i == 41) {
  5809. if (
  5810. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5811. .toolChoose[toolIndex].selectJson ||
  5812. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5813. .toolChoose[toolIndex].selectJson.url == "" ||
  5814. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5815. .toolChoose[toolIndex].selectJson.select.length ||
  5816. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5817. .toolChoose[toolIndex].selectJson.answer.length
  5818. ) {
  5819. this.openTools(itemTaskIndex, 41, toolIndex);
  5820. return;
  5821. }
  5822. }
  5823. if (i == 42) {
  5824. if (
  5825. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5826. .toolChoose[toolIndex].answerQ ||
  5827. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5828. .toolChoose[toolIndex].answerQ == ""
  5829. ) {
  5830. this.openTools(itemTaskIndex, 42, toolIndex);
  5831. return;
  5832. }
  5833. }
  5834. if (
  5835. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  5836. .toolChoose[toolIndex].tool.length > 0
  5837. ) {
  5838. if (
  5839. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5840. itemTaskIndex
  5841. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  5842. ) {
  5843. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5844. itemTaskIndex
  5845. ].toolChoose[toolIndex].tool.splice(
  5846. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5847. itemTaskIndex
  5848. ].toolChoose[toolIndex].tool.indexOf(i),
  5849. 1
  5850. );
  5851. } else {
  5852. // this.$message({
  5853. // message: "每个工具只能添加一个",
  5854. // type: "error",
  5855. // });
  5856. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5857. itemTaskIndex
  5858. ].toolChoose[toolIndex].tool = [];
  5859. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5860. itemTaskIndex
  5861. ].toolChoose[toolIndex].tool.push(i);
  5862. }
  5863. } else {
  5864. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5865. itemTaskIndex
  5866. ].toolChoose[toolIndex].tool.push(i);
  5867. }
  5868. this.$forceUpdate();
  5869. },
  5870. addAskList() {
  5871. this.askJson.askJson.push({
  5872. askstitle: "",
  5873. askItem: 1,
  5874. checkList: [],
  5875. });
  5876. this.askJson.askCount++;
  5877. },
  5878. addTestList() {
  5879. this.testJson.testJson.push({
  5880. teststitle: "",
  5881. testItem: 1,
  5882. checkList: [],
  5883. timuList: [],
  5884. answer: [],
  5885. type: "1",
  5886. });
  5887. this.testJson.testCount++;
  5888. },
  5889. deleteAskList(index) {
  5890. this.askJson.askJson.splice(index, 1);
  5891. this.askJson.askCount--;
  5892. },
  5893. deleteTestList(index) {
  5894. this.testJson.testJson.splice(index, 1);
  5895. this.testJson.testCount--;
  5896. },
  5897. addcheckList(json) {
  5898. json.checkList.length++;
  5899. json.askItem++;
  5900. },
  5901. deletecheckList(json) {
  5902. json.checkList.length--;
  5903. json.askItem--;
  5904. },
  5905. addTcheckList(json) {
  5906. json.checkList.length++;
  5907. json.testItem++;
  5908. },
  5909. deleteTcheckList(json) {
  5910. json.checkList.length--;
  5911. json.testItem--;
  5912. },
  5913. checkTestType(type, json) {
  5914. json.type = type;
  5915. json.answer = [];
  5916. },
  5917. checkAskType(type, json) {
  5918. json.type = type;
  5919. json.checkList = [];
  5920. },
  5921. addSelectList(json) {
  5922. json.select.push("");
  5923. json.answer.push("");
  5924. },
  5925. deleteSelectList(json) {
  5926. // json.select.length--;
  5927. // json.answer.length--;
  5928. json.select.splice(json.select.length - 1, 1);
  5929. json.answer.splice(json.answer.length - 1, 1);
  5930. },
  5931. addAsk() {
  5932. if (this.askJson.askTitle === "") {
  5933. this.$message.error("标题不能为空!");
  5934. return;
  5935. }
  5936. var aj = this.askJson.askJson;
  5937. var b = 1;
  5938. for (var i = 0; i < aj.length; i++) {
  5939. if (aj[i].askstitle === "") {
  5940. var a = 1;
  5941. for (let index = 0; index < aj[i].askItem; index++) {
  5942. const element = aj[i].checkList[index]
  5943. ? aj[i].checkList[index]
  5944. : "";
  5945. if (element != "") {
  5946. b++;
  5947. this.$message.error("填写了选项,题目不能为空!");
  5948. return;
  5949. } else {
  5950. a++;
  5951. }
  5952. }
  5953. if (b == 1) {
  5954. this.$message.error("至少填写一个问题");
  5955. return;
  5956. }
  5957. } else if (aj[i].askstitle != "") {
  5958. for (let index = 0; index < aj[i].askItem; index++) {
  5959. const element = aj[i].checkList[index]
  5960. ? aj[i].checkList[index]
  5961. : "";
  5962. var index = 0;
  5963. for (var z = 0; z < aj[i].checkList.length; z++) {
  5964. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  5965. if (checkC != "") {
  5966. index++;
  5967. } else {
  5968. this.$message.error("选项不能为空!");
  5969. return;
  5970. }
  5971. }
  5972. b++;
  5973. if (index < 2) {
  5974. this.$message.error("填写了的题目,选项至少要有两项!");
  5975. return;
  5976. }
  5977. }
  5978. }
  5979. }
  5980. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  5981. var elc = el.checkList.filter((element) => {
  5982. return element != "";
  5983. });
  5984. return el.askstitle != "" && elc.length != 0;
  5985. });
  5986. if (!this.dialogVisible4) {
  5987. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5988. this.taskCount
  5989. ].toolChoose[this.toolIndex] = this.askJson;
  5990. }
  5991. this.dialogVisible5 = false;
  5992. if (
  5993. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  5994. .toolChoose[this.toolIndex].tool != 4
  5995. ) {
  5996. this.addTools(4, this.taskCount, this.toolIndex);
  5997. }
  5998. },
  5999. addTest() {
  6000. // if (this.testJson.testTitle === "") {
  6001. // this.$message.error("标题不能为空!");
  6002. // return;
  6003. // }
  6004. var aj = this.testJson.testJson;
  6005. var b = 1;
  6006. for (var i = 0; i < aj.length; i++) {
  6007. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  6008. var a = 1;
  6009. for (let index = 0; index < aj[i].testItem; index++) {
  6010. const element = aj[i].checkList[index]
  6011. ? aj[i].checkList[index]
  6012. : "";
  6013. if (element != "") {
  6014. b++;
  6015. this.$message.error("填写了选项,题目不能为空!");
  6016. return;
  6017. } else {
  6018. a++;
  6019. }
  6020. }
  6021. if (b == 1) {
  6022. this.$message.error("至少填写一个问题");
  6023. return;
  6024. }
  6025. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  6026. for (let index = 0; index < aj[i].testItem; index++) {
  6027. const element = aj[i].checkList[index]
  6028. ? aj[i].checkList[index]
  6029. : "";
  6030. var index = 0;
  6031. for (var z = 0; z < aj[i].checkList.length; z++) {
  6032. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  6033. if (checkC != "") {
  6034. index++;
  6035. } else {
  6036. this.$message.error("选项不能为空!");
  6037. return;
  6038. }
  6039. }
  6040. b++;
  6041. if (index < 2) {
  6042. this.$message.error("填写了的题目,选项至少要有两项!");
  6043. return;
  6044. }
  6045. if (
  6046. (aj[i].type == "2" && !aj[i].answer.length) ||
  6047. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  6048. ) {
  6049. this.$message.error("有题目未选择答案请选择答案");
  6050. return;
  6051. }
  6052. }
  6053. }
  6054. }
  6055. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6056. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6057. var elc = el.checkList.filter((element) => {
  6058. return element != "";
  6059. });
  6060. return (
  6061. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6062. );
  6063. });
  6064. isTestJson.testCount = isTestJson.testJson.length;
  6065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6066. this.taskCount
  6067. ].toolChoose[this.toolIndex].testJson = isTestJson;
  6068. this.dialogVisibleChoice = false;
  6069. if (
  6070. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6071. .toolChoose[this.toolIndex].tool != 45
  6072. ) {
  6073. this.addTools(45, this.taskCount, this.toolIndex);
  6074. }
  6075. },
  6076. addVideoJson(videoJson) {
  6077. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6078. this.taskCount
  6079. ].toolChoose[this.toolIndex].videoJson = videoJson;
  6080. this.dialogVisibleVideo = false;
  6081. if (
  6082. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6083. .toolChoose[this.toolIndex].tool != 62
  6084. ) {
  6085. this.addTools(62, this.taskCount, this.toolIndex);
  6086. }
  6087. },
  6088. //自动获取剪贴板
  6089. pasteOption() {
  6090. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6091. if (!iframe) {
  6092. this.$message.error("请使用AI共创生成题目")
  6093. return;
  6094. }
  6095. let copyData = iframe.contentWindow.copyData
  6096. if (!copyData || !copyData.selectData.length) {
  6097. this.$message.error("请使用AI共创生成题目")
  6098. return;
  6099. }
  6100. let selectData = copyData.selectData;
  6101. for (var i = 0; i < selectData.length; i++) {
  6102. let answer = 0
  6103. switch (selectData[i].answer[0]) {
  6104. case 'A':
  6105. answer = 0
  6106. break;
  6107. case 'B':
  6108. answer = 1
  6109. break;
  6110. case 'C':
  6111. answer = 2
  6112. break;
  6113. case 'D':
  6114. answer = 3
  6115. break;
  6116. case 'E':
  6117. answer = 4
  6118. break;
  6119. default:
  6120. break;
  6121. }
  6122. this.testJson.testJson.push({
  6123. teststitle: selectData[i].subject,
  6124. testItem: selectData[i].options.length,
  6125. checkList: selectData[i].options,
  6126. timuList: [],
  6127. answer: answer,
  6128. type: "1",
  6129. });
  6130. this.testJson.testCount++;
  6131. }
  6132. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  6133. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  6134. var elc = el.checkList.filter((element) => {
  6135. return element != "";
  6136. });
  6137. return (
  6138. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  6139. );
  6140. });
  6141. isTestJson.testCount = isTestJson.testJson.length;
  6142. this.testJson = isTestJson
  6143. this.$forceUpdate();
  6144. },
  6145. pasteTask() {
  6146. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6147. if (!iframe) {
  6148. this.$message.error("请使用AI共创生成")
  6149. return;
  6150. }
  6151. let copyData = iframe.contentWindow.copyData
  6152. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  6153. this.$message.error("请使用AI共创生成")
  6154. return;
  6155. }
  6156. let stageTasksData = copyData.tasksData;
  6157. let taskA = []
  6158. let tasks = stageTasksData
  6159. for (var j = 0; j < tasks.length; j++) {
  6160. taskA.push({
  6161. task: tasks[j].taskName,
  6162. taskDetail: tasks[j].taskDecs,
  6163. chapterData: [],
  6164. toolText: "",
  6165. toolChoose: [
  6166. {
  6167. tool: [],
  6168. toolDetail: "",
  6169. toolType: 0,
  6170. askCount: 1,
  6171. askTitle: "",
  6172. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6173. },
  6174. ],
  6175. isShowTools: false,
  6176. askCount: 1,
  6177. isFold: 0,
  6178. askTitle: "",
  6179. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6180. checkJson: [{ checkCount: [], checkPerent: [] }],
  6181. homeworkList: [],
  6182. })
  6183. }
  6184. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA
  6185. this.$forceUpdate();
  6186. },
  6187. pasteStage() {
  6188. let iframe = top.document.querySelectorAll("#AIChat iframe")[0]
  6189. if (!iframe) {
  6190. this.$message.error("请使用AI共创生成")
  6191. return;
  6192. }
  6193. let copyData = iframe.contentWindow.copyData
  6194. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  6195. this.$message.error("请使用AI共创生成")
  6196. return;
  6197. }
  6198. let stageData = copyData.stageData;
  6199. let stage = []
  6200. for (var i = 0; i < stageData.length; i++) {
  6201. stage.push({
  6202. dyName: stageData[i], //单元标题
  6203. chapterInfo: [
  6204. {
  6205. isread: false,
  6206. chapterid: this.guid(),
  6207. title: "",
  6208. courseName: "",
  6209. taskJson: [
  6210. {
  6211. task: "",
  6212. taskDetail: "",
  6213. chapterData: [],
  6214. toolText: "",
  6215. toolChoose: [
  6216. {
  6217. tool: [],
  6218. toolDetail: "",
  6219. toolType: 0,
  6220. askCount: 1,
  6221. askTitle: "",
  6222. askJson: [
  6223. { askstitle: "", askItem: 1, checkList: [] },
  6224. ],
  6225. },
  6226. ],
  6227. isShowTools: false,
  6228. askCount: 1,
  6229. isFold: 0,
  6230. askTitle: "",
  6231. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6232. checkJson: [{ checkCount: [], checkPerent: [] }],
  6233. homeworkList: [],
  6234. },
  6235. ],
  6236. itemCount: 1,
  6237. fileList1: [],
  6238. video: [],
  6239. testData: [],
  6240. pData: [],
  6241. templateArray: [],
  6242. },
  6243. ],
  6244. },)
  6245. }
  6246. let _this = this;
  6247. _this
  6248. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  6249. confirmButtonText: "确定",
  6250. cancelButtonText: "取消",
  6251. type: "warning",
  6252. })
  6253. .then(() => {
  6254. _this.unitIndex = 0;
  6255. _this.unitJson = stage;
  6256. _this.steps++;
  6257. _this.updateWork();
  6258. })
  6259. .catch(() => {
  6260. return;
  6261. });
  6262. },
  6263. addAnswer() {
  6264. if (this.answerQ == "") {
  6265. this.$message.error("请输入您想要问的问题");
  6266. return;
  6267. }
  6268. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6269. this.taskCount
  6270. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6271. this.dialogVisible8 = false;
  6272. if (
  6273. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6274. .toolChoose[this.toolIndex].tool != 15
  6275. ) {
  6276. this.addTools(15, this.taskCount, this.toolIndex);
  6277. }
  6278. },
  6279. addMp3Answer() {
  6280. if (this.answerQ == "") {
  6281. this.$message.error("请输入您想要回答的问题");
  6282. return;
  6283. }
  6284. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6285. this.taskCount
  6286. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  6287. this.dialogVisibleMp3 = false;
  6288. },
  6289. addRateAnswer() {
  6290. var a = 1;
  6291. for (var i = 0; i < this.rateJson.length; i++) {
  6292. if (this.rateJson[i].value == "") {
  6293. a = 2;
  6294. break;
  6295. }
  6296. }
  6297. if (a == 2) {
  6298. this.$message.error("请把评价信息填写完整");
  6299. return;
  6300. }
  6301. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6302. this.taskCount
  6303. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  6304. this.dialogVisibleRate = false;
  6305. if (
  6306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6307. .toolChoose[this.toolIndex].tool != 40
  6308. ) {
  6309. this.addTools(40, this.taskCount, this.toolIndex);
  6310. }
  6311. },
  6312. addSelectAnswer() {
  6313. if (this.selectJson.url == "") {
  6314. this.$message.error("请上传题目");
  6315. return;
  6316. }
  6317. if (!this.selectJson.select.length) {
  6318. this.$message.error("请添加选项");
  6319. return;
  6320. }
  6321. if (!this.selectJson.answer.length) {
  6322. this.$message.error("请设置答案");
  6323. return;
  6324. }
  6325. var a = 1;
  6326. for (var i = 0; i < this.selectJson.answer.length; i++) {
  6327. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  6328. a = 2;
  6329. }
  6330. }
  6331. if (a == 2) {
  6332. this.$message.error("请设置答案");
  6333. return;
  6334. }
  6335. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6336. this.taskCount
  6337. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  6338. this.dialogVisibleSelect = false;
  6339. if (
  6340. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  6341. .toolChoose[this.toolIndex].tool != 41
  6342. ) {
  6343. this.addTools(41, this.taskCount, this.toolIndex);
  6344. }
  6345. },
  6346. nextSelectSteps() {
  6347. if (this.selectJson.url == "") {
  6348. this.$message.error("请上传题目");
  6349. return;
  6350. }
  6351. if (!this.selectJson.select.length) {
  6352. this.$message.error("请添加选项");
  6353. return;
  6354. }
  6355. var a = 1;
  6356. for (var i = 0; i < this.selectJson.select.length; i++) {
  6357. if (!this.selectJson.select[i]) {
  6358. a = 2;
  6359. }
  6360. }
  6361. if (a == 2) {
  6362. this.$message.error("添加的选项不能为空");
  6363. return;
  6364. }
  6365. this.selectSteps++;
  6366. },
  6367. selectCourseDetail() {
  6368. if (this.cid == "" || this.cid == undefined) {
  6369. console.log("这是新增课程");
  6370. this.selectAllType();
  6371. } else {
  6372. this.cidType = 1;
  6373. let params = {
  6374. cid: this.cid,
  6375. };
  6376. this.ajax
  6377. .get(this.$store.state.api + "select_course_detail", params)
  6378. .then((res) => {
  6379. this.loading = true;
  6380. this.unitJson = JSON.parse(res.data[0][0].chapters);
  6381. for (var j = 0; j < this.unitJson.length; j++) {
  6382. for (
  6383. var k = 0;
  6384. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  6385. k++
  6386. ) {
  6387. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  6388. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6389. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  6390. : [];
  6391. let _chapterData = [];
  6392. for (
  6393. var c = 0;
  6394. c <
  6395. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  6396. .length;
  6397. c++
  6398. ) {
  6399. if (
  6400. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6401. ) {
  6402. _chapterData.push(
  6403. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  6404. );
  6405. }
  6406. }
  6407. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  6408. _chapterData;
  6409. }
  6410. }
  6411. this.$forceUpdate();
  6412. this.courseName = res.data[0][0].title;
  6413. this.courseText = res.data[0][0].brief;
  6414. this.evalua = res.data[0][0].evaId;
  6415. this.cover = JSON.parse(res.data[0][0].cover);
  6416. this.noneBtnImg = this.cover.length >= 1;
  6417. // this.checkboxList =
  6418. // res.data[0][0].course_student.length > 0
  6419. // ? JSON.parse(res.data[0][0].course_student)
  6420. // : [];
  6421. this.checkboxList2 = res.data[0][0].juri
  6422. ? res.data[0][0].juri.split(",")
  6423. : [];
  6424. this.inviteCode = [];
  6425. for (var i = 0; i < res.data[2].length; i++) {
  6426. this.inviteCode.push({
  6427. cid: res.data[2][i].classid,
  6428. ic: res.data[2][i].code,
  6429. });
  6430. }
  6431. this.checkboxList3 = res.data[0][0].course_teacher
  6432. ? res.data[0][0].course_teacher.split(",")
  6433. : [];
  6434. // this.isTeacherSee =
  6435. // res.data[0][0].is_teacher_look == 0 ? true : false;
  6436. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  6437. this.myWord = res.data[0][0].template;
  6438. this.templateC.id = "123";
  6439. this.courseUserid = res.data[0][0].userid;
  6440. // if(this.courseUserid == this.userid){
  6441. // this.InviteChange(this.checkboxList2)
  6442. // }
  6443. this.nbOrder = res.data[0][0].ordernumber;
  6444. this.courseTypeId = [];
  6445. for (var i = 0; i < res.data[1].length; i++) {
  6446. this.courseTypeId.push(res.data[1][i].typeid);
  6447. }
  6448. console.log(this.courseTypeId);
  6449. // if (this.timer) clearInterval(this.timer);
  6450. if (this.timer) clearTimeout(this.timer);
  6451. this.timer = null;
  6452. // this.timer = setInterval(() => {
  6453. // this.seleteCourseUpdate();
  6454. this.setMan();
  6455. this.selectAllType();
  6456. // }, 5000);
  6457. this.$forceUpdate();
  6458. setTimeout(() => {
  6459. this.checkEva(this.evalua);
  6460. }, 0);
  6461. })
  6462. .catch((err) => {
  6463. console.error(err);
  6464. });
  6465. }
  6466. },
  6467. seleteCourseUpdate() {
  6468. let params = {
  6469. cid: this.cid,
  6470. };
  6471. this.ajax
  6472. .get(this.$store.state.api + "select_course_detail", params)
  6473. .then((res) => {
  6474. // console.log(this.unitJson);
  6475. let unitJson = JSON.parse(res.data[0][0].chapters);
  6476. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  6477. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  6478. let _unitJson = [];
  6479. let _chapAarry = [];
  6480. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  6481. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  6482. let index = 1;
  6483. let chapindex;
  6484. if (_unitJson2.length > unitJson.length) {
  6485. for (let c = 0; c < _unitJson2.length; c++) {
  6486. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  6487. }
  6488. for (let j = 0; j < unitJson.length; j++) {
  6489. let count = 0;
  6490. for (let k = 0; k < _unitJson2.length; k++) {
  6491. if (
  6492. unitJson[j].chapterInfo[0].chapterid ==
  6493. _unitJson2[k].chapterInfo[0].chapterid
  6494. ) {
  6495. count++;
  6496. _chapAarry.splice(
  6497. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6498. 1
  6499. );
  6500. _unitJson.push(unitJson[j]);
  6501. break;
  6502. }
  6503. }
  6504. // if(count === 0){
  6505. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6506. // }
  6507. }
  6508. for (let k = 0; k < _unitJson2.length; k++) {
  6509. if (_unitJson2[k].isUpdate == 1) {
  6510. _chapAarry.splice(
  6511. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  6512. 1
  6513. );
  6514. _unitJson.push(_unitJson2[k]);
  6515. }
  6516. }
  6517. console.log(_chapAarry);
  6518. for (let d = 0; d < _unitJson2.length; d++) {
  6519. if (
  6520. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  6521. ) {
  6522. if (_unitIndex == d) {
  6523. index = 2;
  6524. }
  6525. chapindex = d;
  6526. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  6527. }
  6528. }
  6529. } else {
  6530. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  6531. }
  6532. for (let i = 0; i < unitJson.length; i++) {
  6533. if (
  6534. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  6535. _unitJson[i].chapterInfo[0].chapterid !=
  6536. unitJson[i].chapterInfo[0].chapterid
  6537. ) {
  6538. if (i == _unitJson.length - 1) {
  6539. // this.unitIndex++
  6540. _unitIndex2++;
  6541. }
  6542. _unitJson.splice(i, 0, unitJson[i]);
  6543. } else if (i > _unitJson.length - 1) {
  6544. _unitJson.push(unitJson[i]);
  6545. } else if (
  6546. _unitJson[i].chapterInfo[0].chapterid ==
  6547. unitJson[i].chapterInfo[0].chapterid
  6548. ) {
  6549. _unitJson[i] = unitJson[i];
  6550. }
  6551. // if (i == _unitIndex) {
  6552. // continue;
  6553. // } else
  6554. }
  6555. if (_chapAarry.length && index != 2) {
  6556. if (chapindex < _unitIndex) {
  6557. this.isDelete = 2;
  6558. // this.unitIndex--;
  6559. _unitIndex2--;
  6560. } else if (
  6561. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  6562. _unitJson[_unitIndex].chapterInfo[0].chapterid
  6563. ) {
  6564. this.isDelete = 2;
  6565. for (let n = 0; n < _unitJson.length; n++) {
  6566. if (
  6567. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  6568. _unitJson[n].chapterInfo[0].chapterid
  6569. ) {
  6570. // this.unitIndex = n;
  6571. _unitIndex2 = n;
  6572. _unitJson[n] = _unitJson2[_unitIndex];
  6573. break;
  6574. }
  6575. }
  6576. }
  6577. } else if (index != 2) {
  6578. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  6579. _unitJson2[_unitIndex];
  6580. for (
  6581. var ci = 0;
  6582. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  6583. ci++
  6584. ) {
  6585. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  6586. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  6587. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6588. .toolChoose
  6589. : [];
  6590. let _chapterData = [];
  6591. for (
  6592. var c = 0;
  6593. c <
  6594. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  6595. .length;
  6596. c++
  6597. ) {
  6598. if (
  6599. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6600. .chapterData[c]
  6601. ) {
  6602. _chapterData.push(
  6603. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  6604. .chapterData[c]
  6605. );
  6606. }
  6607. }
  6608. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  6609. _chapterData;
  6610. }
  6611. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  6612. }
  6613. if (index == 1) {
  6614. this.unitJson = _unitJson;
  6615. this.$forceUpdate();
  6616. setTimeout(() => {
  6617. if (this.unitIndex != _unitIndex2) {
  6618. this.isDelete = 2;
  6619. this.unitIndex = _unitIndex2;
  6620. }
  6621. }, 0);
  6622. this.timer = setTimeout(() => {
  6623. this.seleteCourseUpdate();
  6624. }, 1000);
  6625. } else if (index == 2) {
  6626. let _this = this;
  6627. _this
  6628. .$confirm(
  6629. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  6630. "提示",
  6631. {
  6632. confirmButtonText: "需要",
  6633. cancelButtonText: "取消",
  6634. type: "warning",
  6635. }
  6636. )
  6637. .then(() => {
  6638. if (_this.time()) {
  6639. _this.restoreWork(
  6640. _chapAarry[0],
  6641. _unitJson,
  6642. chapindex,
  6643. _unitJson2,
  6644. _unitIndex2
  6645. );
  6646. }
  6647. })
  6648. .catch(() => {
  6649. _this.unitJson = _unitJson;
  6650. _this.$forceUpdate();
  6651. setTimeout(() => {
  6652. if (this.unitIndex != _unitIndex2) {
  6653. this.isDelete = 2;
  6654. this.unitIndex = _unitIndex2;
  6655. }
  6656. }, 0);
  6657. _this.timer = setTimeout(() => {
  6658. _this.seleteCourseUpdate();
  6659. }, 1000);
  6660. });
  6661. }
  6662. })
  6663. .catch((err) => {
  6664. console.error(err);
  6665. });
  6666. },
  6667. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  6668. let params = [
  6669. {
  6670. cid: this.cid,
  6671. chapters: JSON.stringify(this.unitJson),
  6672. uid: this.userid,
  6673. chapid: chapid,
  6674. },
  6675. ];
  6676. this.ajax
  6677. .post(this.$store.state.api + "restoreWork", params)
  6678. .then((res) => {
  6679. this.$message({
  6680. message: "恢复成功",
  6681. type: "success",
  6682. });
  6683. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  6684. this.unitJson = unitJson;
  6685. this.$forceUpdate();
  6686. setTimeout(() => {
  6687. if (this.unitIndex != unitIndex2) {
  6688. this.isDelete = 2;
  6689. this.unitIndex = unitIndex2;
  6690. }
  6691. }, 0);
  6692. this.timer = setTimeout(() => {
  6693. this.seleteCourseUpdate();
  6694. }, 1000);
  6695. })
  6696. .catch((err) => {
  6697. this.$message.error("网络不佳");
  6698. console.error(err);
  6699. });
  6700. },
  6701. getTypeName() {
  6702. console.log(this.courseTypeId);
  6703. this.$forceUpdate();
  6704. },
  6705. selectAllType() {
  6706. let params = {
  6707. org: this.org && this.org != "" ? this.org : "",
  6708. oid: this.oid && this.oid != "" ? this.oid : "",
  6709. };
  6710. this.ajax
  6711. .get(this.$store.state.api + "selectAllType", params)
  6712. .then((res) => {
  6713. this.CourseType = res.data;
  6714. this.CourseType2 = [
  6715. { name: "智见课程", id: [] },
  6716. { name: "智行课程", id: [] },
  6717. { name: "智创课程", id: [] },
  6718. ];
  6719. for (var cti = 0; cti < res.data[0].length; cti++) {
  6720. if (
  6721. res.data[0][cti].name == "年级" ||
  6722. res.data[0][cti].name == "学科"
  6723. ) {
  6724. this.CourseType2[1].id.push(res.data[0][cti].id);
  6725. this.CourseType2[0].id.push(res.data[0][cti].id);
  6726. } else if (res.data[0][cti].name == "主题") {
  6727. this.CourseType2[2].id.push(res.data[0][cti].id);
  6728. }
  6729. }
  6730. let _courseTypeId = [];
  6731. for (var i = 0; i < res.data[0].length; i++) {
  6732. if (!this.cid) {
  6733. this.courseTypeId[res.data[0][i].id] = [];
  6734. }
  6735. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  6736. // }
  6737. this.CourseTypeJson[res.data[0][i].id] = [];
  6738. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6739. if (res.data[0][i].name == "栏目") {
  6740. this.CourseType[0][i].name = "主题";
  6741. }
  6742. }
  6743. if (res.data[2].length == 0 && res.data[3].length == 0) {
  6744. for (var j = 0; j < res.data[1].length; j++) {
  6745. if (
  6746. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  6747. _courseTypeId.indexOf(res.data[1][j].id) == -1
  6748. ) {
  6749. _courseTypeId.push(res.data[1][j].id);
  6750. }
  6751. if (res.data[0][i].id == res.data[1][j].pid) {
  6752. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6753. }
  6754. }
  6755. } else {
  6756. if (res.data[2].length > 0) {
  6757. for (var j = 0; j < res.data[2].length; j++) {
  6758. if (
  6759. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  6760. _courseTypeId.indexOf(res.data[2][j].id) == -1
  6761. ) {
  6762. _courseTypeId.push(res.data[2][j].id);
  6763. }
  6764. if (res.data[0][i].id == res.data[2][j].pid) {
  6765. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  6766. }
  6767. }
  6768. }
  6769. if (res.data[3].length > 0) {
  6770. for (var j = 0; j < res.data[3].length; j++) {
  6771. if (
  6772. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  6773. _courseTypeId.indexOf(res.data[3][j].id) == -1
  6774. ) {
  6775. _courseTypeId.push(res.data[3][j].id);
  6776. }
  6777. if (res.data[0][i].id == res.data[3][j].pid) {
  6778. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  6779. }
  6780. }
  6781. }
  6782. }
  6783. }
  6784. this.courseTypeId = _courseTypeId;
  6785. })
  6786. .catch((err) => {
  6787. console.error(err);
  6788. });
  6789. },
  6790. selectType() {
  6791. this.ajax
  6792. .get(this.$store.state.api + "selectType")
  6793. .then((res) => {
  6794. this.CourseType = res.data;
  6795. for (var i = 0; i < res.data[0].length; i++) {
  6796. if (!this.cid) {
  6797. this.courseTypeId[res.data[0][i].id] = "";
  6798. }
  6799. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  6800. if (res.data[0][i].name == "栏目") {
  6801. this.CourseType[0][i].name = "主题";
  6802. }
  6803. }
  6804. for (var j = 0; j < res.data[1].length; j++) {
  6805. if (res.data[0][i].id == res.data[1][j].pid) {
  6806. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6807. this.CourseTypeJson[res.data[0][i].id] = [];
  6808. }
  6809. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  6810. }
  6811. }
  6812. }
  6813. this.selectTypeByOid();
  6814. this.selectTypeByOrg();
  6815. })
  6816. .catch((err) => {
  6817. console.error(err);
  6818. });
  6819. },
  6820. selectTypeByOid() {
  6821. let params = {
  6822. oid: this.oid,
  6823. };
  6824. this.ajax
  6825. .get(this.$store.state.api + "selectTypeByOid", params)
  6826. .then((res) => {
  6827. for (var i = 0; i < res.data[0].length; i++) {
  6828. for (var j = 0; j < res.data[1].length; j++) {
  6829. if (res.data[0][i].id == res.data[1][j].pid) {
  6830. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6831. this.CourseTypeJson[res.data[0][i].id] = [];
  6832. }
  6833. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6834. }
  6835. }
  6836. }
  6837. })
  6838. .catch((err) => {
  6839. console.error(err);
  6840. });
  6841. },
  6842. selectTypeByOrg() {
  6843. let params = {
  6844. oid: this.org,
  6845. };
  6846. this.ajax
  6847. .get(this.$store.state.api + "selectTypeByOrg", params)
  6848. .then((res) => {
  6849. for (var i = 0; i < res.data[0].length; i++) {
  6850. for (var j = 0; j < res.data[1].length; j++) {
  6851. if (res.data[0][i].id == res.data[1][j].pid) {
  6852. if (!this.CourseTypeJson[res.data[0][i].id]) {
  6853. this.CourseTypeJson[res.data[0][i].id] = [];
  6854. }
  6855. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  6856. }
  6857. }
  6858. }
  6859. this.$forceUpdate();
  6860. })
  6861. .catch((err) => {
  6862. console.error(err);
  6863. });
  6864. },
  6865. OtherMb(type) {
  6866. this.typeMode = type;
  6867. setTimeout(() => {
  6868. this.checkEva(this.checkId);
  6869. }, 0);
  6870. },
  6871. openMember() {
  6872. this.searchTN = "";
  6873. this.getTeacher();
  6874. this.dialogVisibleMember = true;
  6875. },
  6876. checkEva(id, type) {
  6877. this.dialogVisiblemb = false;
  6878. this.selectEva();
  6879. if (this.evalua != id && type == 2) {
  6880. this.$message.success("导入成功");
  6881. }
  6882. this.evalua = id;
  6883. this.checkId = id;
  6884. if (this.evalua != "") {
  6885. for (var i = 0; i < this.evaJuri.length; i++) {
  6886. if (this.evalua == this.evaJuri[i].id) {
  6887. this.eTitle = this.evaJuri[i].title;
  6888. this.eJson = JSON.parse(this.evaJuri[i].content);
  6889. }
  6890. }
  6891. this.data.data = [];
  6892. this.$forceUpdate();
  6893. setTimeout(() => {
  6894. this.setMindData();
  6895. }, 500);
  6896. }
  6897. },
  6898. deleteEva() {
  6899. let _this = this;
  6900. if (_this.evalua == "") {
  6901. this.$message.warning("内容已经清空了,请勿重复清空");
  6902. return;
  6903. }
  6904. _this
  6905. .$confirm("确定删除此目标吗?", "提示", {
  6906. confirmButtonText: "确定",
  6907. cancelButtonText: "取消",
  6908. type: "warning",
  6909. })
  6910. .then(() => {
  6911. _this.evalua = "";
  6912. _this.checkId = "";
  6913. _this.eTitle = "";
  6914. let _unitJson = _this.unitJson;
  6915. for (var i = 0; i < _unitJson.length; i++) {
  6916. let _task = _unitJson[i].chapterInfo[0].taskJson;
  6917. for (var j = 0; j < _task.length; j++) {
  6918. let _eList = _task[j].eList;
  6919. for (var k = 0; k < _eList.length; k++) {
  6920. delete _eList[k].target;
  6921. }
  6922. }
  6923. }
  6924. _this.$forceUpdate();
  6925. if (_this.cid) {
  6926. _this.updateWork();
  6927. }
  6928. })
  6929. .catch(() => {
  6930. return;
  6931. });
  6932. },
  6933. selectEva() {
  6934. let params = {
  6935. oid: this.oid,
  6936. };
  6937. this.ajax
  6938. .get(this.$store.state.api + "selectAllEvaluation", params)
  6939. .then((res) => {
  6940. this.evaJuri = res.data[0];
  6941. })
  6942. .catch((err) => {
  6943. console.error(err);
  6944. });
  6945. },
  6946. setMindData() {
  6947. let targetArray = [];
  6948. this.data.data = [];
  6949. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  6950. let _eJson = Object.keys(this.eJson);
  6951. let _e = this.eJson;
  6952. for (let i = 0; i < _eJson.length; i++) {
  6953. let element = _e[_eJson[i]];
  6954. this.data.data.push({
  6955. id: element.id,
  6956. parentid: "root",
  6957. topic: element.name,
  6958. });
  6959. // targetArray.push({
  6960. // id: element.id,
  6961. // parentid: "root",
  6962. // name: element.name,
  6963. // });
  6964. targetArray.push({
  6965. value: element.name,
  6966. label: element.name,
  6967. children: [],
  6968. });
  6969. let _eJsonc = Object.keys(element.child);
  6970. let _e2 = element.child;
  6971. for (let j = 0; j < _eJsonc.length; j++) {
  6972. let _ec = _e2[_eJsonc[j]];
  6973. this.data.data.push({
  6974. id: _ec.id,
  6975. parentid: element.id,
  6976. topic: _ec.name,
  6977. });
  6978. // targetArray.push({
  6979. // id: _ec.id,
  6980. // parentid: element.id,
  6981. // name: _ec.name,
  6982. // });
  6983. targetArray[i].children.push({
  6984. value: _ec.name,
  6985. label: _ec.name,
  6986. children: [],
  6987. });
  6988. let _eJsonz = Object.keys(_ec.child);
  6989. let _e3 = _ec.child;
  6990. for (let z = 0; z < _eJsonz.length; z++) {
  6991. let _ez = _e3[_eJsonz[z]];
  6992. this.data.data.push({
  6993. id: _ez.id,
  6994. parentid: _ec.id,
  6995. topic: _ez.name,
  6996. });
  6997. // targetArray.push({
  6998. // id: _ez.id,
  6999. // parentid: _ec.id,
  7000. // name: _ez.name,
  7001. // });
  7002. targetArray[i].children[j].children.push({
  7003. value: _ez.name,
  7004. label: _ez.name,
  7005. });
  7006. }
  7007. }
  7008. }
  7009. this.targetArray = targetArray;
  7010. this.$forceUpdate();
  7011. },
  7012. /*添加评价 */
  7013. addEList(index, tIndex) {
  7014. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  7015. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  7016. value: "",
  7017. detail: "",
  7018. score: 5,
  7019. })
  7020. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  7021. { value: "", detail: "", score: 5 },
  7022. ]);
  7023. this.$forceUpdate();
  7024. },
  7025. forceUpdate() {
  7026. this.$forceUpdate();
  7027. },
  7028. deletEList(index, tIndex, eIndex) {
  7029. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  7030. eIndex,
  7031. 1
  7032. );
  7033. this.$forceUpdate();
  7034. },
  7035. getChoosePic(t) {
  7036. this.chooseType = t;
  7037. this.getAllBanner();
  7038. },
  7039. getAllBanner() {
  7040. this.sysPicVisible = true;
  7041. let params = {
  7042. t: this.chooseType,
  7043. };
  7044. this.ajax
  7045. .get(this.$store.state.api + "selectAllBanner", params)
  7046. .then((res) => {
  7047. this.sysPic = res.data[0];
  7048. })
  7049. .catch((err) => {
  7050. console.error(err);
  7051. });
  7052. },
  7053. // getClass() {
  7054. // let params = {
  7055. // oid: this.oid,
  7056. // };
  7057. // this.ajax
  7058. // .get(this.$store.state.api + "selectClassBySchool", params)
  7059. // .then((res) => {
  7060. // this.classJuri = res.data[0];
  7061. // })
  7062. // .catch((err) => {
  7063. // console.error(err);
  7064. // });
  7065. // },
  7066. deleteSysPic() {
  7067. this.cover = [];
  7068. this.isSysPic = false;
  7069. },
  7070. deleteSelectPic() {
  7071. this.selectJson.url = "";
  7072. },
  7073. setEListStar() {
  7074. this.$forceUpdate();
  7075. },
  7076. deletRateList(i) {
  7077. this.rateJson.splice(i, 1);
  7078. },
  7079. addRateList() {
  7080. this.rateJson.push({ detail: "", score: 5, value: "" });
  7081. },
  7082. addSt() {
  7083. this.sentenceList.push({
  7084. sentenceTitle: "",
  7085. addSentence: [],
  7086. rightAnswer: [],
  7087. });
  7088. },
  7089. addSen(i) {
  7090. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  7091. // this.isPushTitleList.push(this.sentenceTitle);
  7092. this.sentenceList[i].sentenceTitle = "";
  7093. },
  7094. setRightAnswer(s, i, j) {
  7095. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  7096. this.sentenceList[i].rightAnswer.push(s);
  7097. }
  7098. },
  7099. returnCard(r, i, j) {
  7100. this.sentenceList[i].rightAnswer.splice(j, 1);
  7101. },
  7102. addSentenceTool() {
  7103. for (var i = 0; i < this.sentenceList.length; i++) {
  7104. if (this.sentenceList[i].rightAnswer.length == 0) {
  7105. this.$message.error("请将信息填写完整!");
  7106. return;
  7107. }
  7108. if (
  7109. this.sentenceList[i].addSentence.length !=
  7110. this.sentenceList[i].rightAnswer.length
  7111. ) {
  7112. this.$message.error("请将信息填写完整!");
  7113. return;
  7114. }
  7115. }
  7116. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7117. this.taskCount
  7118. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  7119. this.sentenceList = [
  7120. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  7121. ];
  7122. this.dialogVisibleSentence = false;
  7123. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7124. // itemTaskIndex
  7125. // ].toolChoose[toolIndex].tool = [];
  7126. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7127. // itemTaskIndex
  7128. // ].toolChoose[toolIndex].tool.push(i);
  7129. if (
  7130. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7131. .toolChoose[this.toolIndex].tool != 47
  7132. ) {
  7133. this.addTools(47, this.taskCount, this.toolIndex);
  7134. }
  7135. },
  7136. addTableJson() {
  7137. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  7138. // this.$message.error("请将信息填写完整!");
  7139. // return;
  7140. // }
  7141. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7142. this.taskCount
  7143. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  7144. // this.tableJson = [{ text: "" }];
  7145. // this.dialogVisibleTable = false;
  7146. this.$message.success("上传成功");
  7147. if (
  7148. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7149. .toolChoose[this.toolIndex].tool != 48
  7150. ) {
  7151. this.addTools(48, this.taskCount, this.toolIndex);
  7152. }
  7153. },
  7154. addWordJson() {
  7155. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7156. this.taskCount
  7157. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  7158. // this.wordJson = [{ text: "" }];
  7159. // this.dialogVisibleWord = false;
  7160. this.$message.success("上传成功");
  7161. if (
  7162. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7163. .toolChoose[this.toolIndex].tool != 52
  7164. ) {
  7165. this.addTools(52, this.taskCount, this.toolIndex);
  7166. }
  7167. },
  7168. addMoreUpload() {
  7169. if (this.uploadJson.length == 0) {
  7170. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7171. this.taskCount
  7172. ].toolChoose[this.toolIndex].uploadJson = [];
  7173. } else {
  7174. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7175. this.taskCount
  7176. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  7177. }
  7178. this.uploadJson = [];
  7179. this.dialogVisibleMoreUpload = false;
  7180. if (
  7181. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7182. .toolChoose[this.toolIndex].tool != 50
  7183. ) {
  7184. this.addTools(50, this.taskCount, this.toolIndex);
  7185. }
  7186. },
  7187. addPreTime() {
  7188. if (this.preTime == 0) {
  7189. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7190. this.taskCount
  7191. ].toolChoose[this.toolIndex].preTime = 0;
  7192. } else {
  7193. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7194. this.taskCount
  7195. ].toolChoose[this.toolIndex].preTime = this.preTime;
  7196. }
  7197. this.preTime = 0;
  7198. this.dialogVisiblePreTime = false;
  7199. if (
  7200. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7201. .toolChoose[this.toolIndex].tool != 10
  7202. ) {
  7203. this.addTools(10, this.taskCount, this.toolIndex);
  7204. }
  7205. },
  7206. goToTask(i) {
  7207. $(".rightBox")[0].scrollTop = $(".taskBorder")[i].offsetTop + $(".taskBorder")[i].parentElement.parentElement.offsetTop;
  7208. this.isClickColor = i + 1;
  7209. },
  7210. taskMove(type, index) {
  7211. // this
  7212. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  7213. // confirmButtonText: "确定",
  7214. // cancelButtonText: "取消",
  7215. // type: "warning",
  7216. // })
  7217. // .then(() => {
  7218. if (type == 1) {
  7219. if (index > 0) {
  7220. let a = JSON.parse(
  7221. JSON.stringify(
  7222. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  7223. )
  7224. );
  7225. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  7226. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7227. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7228. }
  7229. } else {
  7230. if (
  7231. index <
  7232. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  7233. ) {
  7234. let a = JSON.parse(
  7235. JSON.stringify(
  7236. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  7237. )
  7238. );
  7239. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  7240. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  7241. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  7242. }
  7243. }
  7244. this.$forceUpdate();
  7245. // })
  7246. // .catch(() => {
  7247. // return;
  7248. // })
  7249. },
  7250. addGroup(i) {
  7251. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  7252. this.groupJson.group.push({
  7253. name: "第" + (this.groupJson.group.length + 1) + "组",
  7254. });
  7255. },
  7256. deleteGroup(i) {
  7257. this.groupJson.group.splice(i, 1);
  7258. },
  7259. addGroupJson() {
  7260. for (var i = 0; i < this.groupJson.group.length; i++) {
  7261. if (!this.groupJson.group[i].name) {
  7262. this.$message.error("请将信息填写完整!");
  7263. return;
  7264. }
  7265. }
  7266. if (!this.groupJson.number) {
  7267. this.$message.error("请将信息填写完整!");
  7268. return;
  7269. }
  7270. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7271. this.taskCount
  7272. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  7273. JSON.stringify(this.groupJson)
  7274. );
  7275. this.dialogVisibleGroup = false;
  7276. this.groupJson = {};
  7277. if (
  7278. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7279. .toolChoose[this.toolIndex].tool != 49
  7280. ) {
  7281. this.addTools(49, this.taskCount, this.toolIndex);
  7282. }
  7283. },
  7284. updateTime(preTime) {
  7285. this.preTime = preTime;
  7286. },
  7287. InviteChange(val) {
  7288. console.log(val);
  7289. return;
  7290. let array = JSON.parse(JSON.stringify(val));
  7291. this.inviteCode = this.inviteCode.filter((el) => {
  7292. if (val.indexOf(el.cid) != -1) {
  7293. array.splice(array.indexOf(el.cid), 1);
  7294. return el;
  7295. }
  7296. });
  7297. for (var i = 0; i < array.length; i++) {
  7298. this.getInviteCode(array[i]);
  7299. }
  7300. },
  7301. async getInviteCode(cid) {
  7302. let code = this.randomNumber();
  7303. let params = {
  7304. code: code,
  7305. oid: this.oid,
  7306. };
  7307. let type = 1;
  7308. for (var i = 0; i < this.inviteCode.length; i++) {
  7309. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  7310. type = 2;
  7311. }
  7312. }
  7313. if (type == 2) {
  7314. this.getInviteCode(cid);
  7315. return;
  7316. }
  7317. const res = await this.ajax.get(
  7318. this.$store.state.api + "selectInviteCode2",
  7319. params
  7320. );
  7321. if (
  7322. res.data.length &&
  7323. res.data[0].length &&
  7324. res.data[0][0].courseId != this.cid
  7325. ) {
  7326. this.getInviteCode(cid);
  7327. return;
  7328. }
  7329. let array = [];
  7330. for (var i = 0; i < this.inviteCode.length; i++) {
  7331. array.push(this.inviteCode[i].cid);
  7332. }
  7333. if (array.indexOf(cid) != -1) {
  7334. this.inviteCode[array.indexOf(cid)].ic = code;
  7335. } else {
  7336. this.inviteCode.push({ cid: cid, ic: code });
  7337. }
  7338. },
  7339. OpenInviteD(cid) {
  7340. let array = [];
  7341. this.icode = "";
  7342. for (var i = 0; i < this.inviteCode.length; i++) {
  7343. array.push(this.inviteCode[i].cid);
  7344. }
  7345. if (array.indexOf(cid) != -1) {
  7346. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  7347. }
  7348. this.inviteId = cid;
  7349. this.dialogVisibleInvite = true;
  7350. },
  7351. addInvite() {
  7352. let reg = /^[A-Za-z0-9]{4,}$/;
  7353. if (!reg.test(this.icode)) {
  7354. this.$message.error("请输入至少四位数字或英文组合的随机码");
  7355. return;
  7356. }
  7357. let type = 1;
  7358. for (var i = 0; i < this.inviteCode.length; i++) {
  7359. if (
  7360. this.inviteCode[i].cid != this.inviteId &&
  7361. this.icode == this.inviteCode[i].ic
  7362. ) {
  7363. type = 2;
  7364. }
  7365. }
  7366. if (type == 2) {
  7367. this.$message.error("已有此随机码,不能重复");
  7368. return;
  7369. }
  7370. let params = {
  7371. code: this.icode,
  7372. oid: this.oid,
  7373. };
  7374. this.ajax
  7375. .get(this.$store.state.api + "selectInviteCode", params)
  7376. .then((res) => {
  7377. if (
  7378. res.data.length &&
  7379. res.data[0].length &&
  7380. res.data[0][0].courseId != this.cid
  7381. ) {
  7382. this.$message.error("已有此随机码,不能重复");
  7383. return;
  7384. }
  7385. let array = [];
  7386. for (var i = 0; i < this.inviteCode.length; i++) {
  7387. array.push(this.inviteCode[i].cid);
  7388. }
  7389. if (array.indexOf(this.inviteId) != -1) {
  7390. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  7391. } else {
  7392. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  7393. }
  7394. this.icode = "";
  7395. this.dialogVisibleInvite = false;
  7396. })
  7397. .catch((err) => {
  7398. console.error(err);
  7399. });
  7400. },
  7401. randomNumber() {
  7402. // 随机生成两位数
  7403. // let num = Math.floor(Math.random() * 900) + 100;
  7404. // 生成 0 到 99 之间的随机整数
  7405. const randomNumber = Math.floor(Math.random() * 100);
  7406. // 如果随机数小于 10,补上前导零
  7407. const num =
  7408. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  7409. // 随机生成两个大写字母
  7410. let letters = "";
  7411. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  7412. for (let i = 0; i < 3; i++) {
  7413. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  7414. }
  7415. // 随机生成两位数字和字母的组合
  7416. let mix = "";
  7417. let chars =
  7418. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  7419. for (let i = 0; i < 3; i++) {
  7420. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  7421. mix += char;
  7422. }
  7423. // 随机选择一种类型
  7424. let type = Math.floor(Math.random() * 3);
  7425. return num;
  7426. // 根据类型输出结果
  7427. switch (type) {
  7428. case 0:
  7429. console.log(num); // 输出两位数
  7430. return num;
  7431. case 1:
  7432. console.log(letters); // 输出两个大写字母
  7433. return letters;
  7434. case 2:
  7435. console.log(mix); // 输出两位数字和字母的组合
  7436. return mix;
  7437. }
  7438. },
  7439. },
  7440. beforeDestroy() {
  7441. clearTimeout(this.timer);
  7442. this.timer = null;
  7443. clearInterval(this.timer2);
  7444. this.timer2 = null;
  7445. },
  7446. beforeRouteLeave(to, from, next) {
  7447. clearTimeout(this.timer);
  7448. this.timer = null;
  7449. clearInterval(this.timer2);
  7450. this.timer2 = null;
  7451. next();
  7452. },
  7453. created() {
  7454. this.getStudent();
  7455. this.getTeacher();
  7456. this.getClass();
  7457. this.getTemplate();
  7458. // this.selectType();
  7459. this.selectEva();
  7460. this.loading = false;
  7461. this.timer2 = setInterval(() => {
  7462. this.selectEva();
  7463. }, 5000);
  7464. setTimeout(() => {
  7465. this.selectCourseDetail();
  7466. }, 500);
  7467. },
  7468. mounted() {
  7469. this.$nextTick(() => {
  7470. //监听这个dom的scroll事件
  7471. $('.rightBox')[0].addEventListener("scroll", this.scrollChange);
  7472. });;
  7473. },
  7474. };
  7475. </script>
  7476. <style scoped>
  7477. @media screen and (max-width: 1280px) {
  7478. .mbCss {
  7479. flex-direction: column !important;
  7480. }
  7481. .pjCss {
  7482. width: 100% !important;
  7483. }
  7484. .evaCss {
  7485. width: 100% !important;
  7486. }
  7487. }
  7488. .dialog_diy>>>.el-dialog__header {
  7489. background: #3c3c3c !important;
  7490. padding: 15px 20px;
  7491. }
  7492. .dialog_diy>>>.el-dialog__title {
  7493. color: #fff;
  7494. }
  7495. .dialog_diy>>>.el-dialog__headerbtn {
  7496. top: 19px;
  7497. }
  7498. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  7499. color: #fff;
  7500. }
  7501. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  7502. color: #fff;
  7503. }
  7504. .dialog_diy>>>.el-dialog__body,
  7505. .dialog_diy>>>.el-dialog__footer {
  7506. background: #fafafa;
  7507. }
  7508. .dialog_diy3>>>.el-dialog__body,
  7509. .dialog_diy3>>>.el-dialog__footer {
  7510. background: #eee !important;
  7511. }
  7512. .dialog_diy3>>>.el-dialog__body {
  7513. padding: 20px 20px;
  7514. }
  7515. .source_diy>>>.el-dialog {
  7516. height: 100% !important;
  7517. margin: 0 auto !important;
  7518. }
  7519. .source_diy>>>.el-dialog__body {
  7520. height: calc(100% - 185px);
  7521. overflow: auto;
  7522. background: #e6eaf0;
  7523. }
  7524. .source_diy>>>.el-dialog__footer {
  7525. background: #e6eaf0 !important;
  7526. }
  7527. .left {
  7528. border-right: 1px solid rgb(60, 94, 143);
  7529. display: flex;
  7530. flex-direction: column;
  7531. align-items: center;
  7532. min-height: 600px;
  7533. width: 385px;
  7534. height: 80%;
  7535. }
  7536. .tips {
  7537. color: rgb(128, 128, 128);
  7538. font-size: 12px;
  7539. width: 270px;
  7540. margin: 40px;
  7541. }
  7542. .pb_content {
  7543. height: 100% !important;
  7544. /* margin: 0 20px 0 20px; */
  7545. }
  7546. .pb_content_body {
  7547. width: 100% !important;
  7548. height: 100%;
  7549. }
  7550. .info_solid {
  7551. width: 270px;
  7552. height: 30px;
  7553. border-left: 1px solid #bdbdbd;
  7554. margin: 10px 0px 10px 30px;
  7555. }
  7556. .info_steps {
  7557. width: 270px;
  7558. font-size: 0.875rem;
  7559. display: flex;
  7560. align-items: center;
  7561. }
  7562. .info_steps span:nth-child(1) {
  7563. width: 30px;
  7564. height: 30px;
  7565. background: rgba(0, 0, 0, 0.38);
  7566. display: block;
  7567. color: #fff;
  7568. border-radius: 40px;
  7569. text-align: center;
  7570. line-height: 30px;
  7571. }
  7572. .steps_active {
  7573. background: #3d67bc !important;
  7574. }
  7575. .info_steps span:nth-child(2) {
  7576. margin-left: 5px;
  7577. }
  7578. .right {
  7579. height: 100%;
  7580. width: 100%;
  7581. display: flex;
  7582. overflow: hidden;
  7583. }
  7584. .basic_box {
  7585. margin: 0 auto;
  7586. position: relative;
  7587. padding: 0 20px 0 20px;
  7588. }
  7589. .basic_box2 {
  7590. position: relative;
  7591. width: calc(100% - 300px);
  7592. }
  7593. .basic_box_success {
  7594. width: 100%;
  7595. height: 100%;
  7596. padding: 50px 0;
  7597. position: relative;
  7598. text-align: center;
  7599. /* border-bottom: 1px solid #bfbfbf; */
  7600. box-sizing: border-box;
  7601. display: flex;
  7602. align-items: center;
  7603. flex-direction: column;
  7604. justify-content: center;
  7605. }
  7606. .info_title {
  7607. font-size: 1.5em;
  7608. margin-right: 25px;
  7609. /* margin: 20px 30px 20px 30px; */
  7610. }
  7611. .bInfo_title {
  7612. text-align: left;
  7613. margin: 10px 0;
  7614. }
  7615. .small_title {
  7616. font-size: 14px;
  7617. line-height: 40px;
  7618. }
  7619. .chapter_beizhu {
  7620. font-size: 12px;
  7621. font-weight: bold;
  7622. float: right;
  7623. color: rgb(128, 128, 128);
  7624. margin-top: 5px;
  7625. }
  7626. .chapter_uploadBox1 {
  7627. text-align: left;
  7628. background-color: rgb(242, 242, 242);
  7629. width: 100%;
  7630. height: 67px;
  7631. padding: 0px 15px;
  7632. border-radius: 8px;
  7633. overflow: hidden;
  7634. font-size: 16px;
  7635. box-sizing: border-box;
  7636. position: relative;
  7637. }
  7638. .chapter_add {
  7639. width: 100%;
  7640. height: 32px;
  7641. margin-top: 15px;
  7642. cursor: pointer;
  7643. }
  7644. .chapter_add_l {
  7645. margin-left: 5px;
  7646. width: 30px;
  7647. height: 30px;
  7648. float: left;
  7649. border: 1px solid #aaa;
  7650. color: #aaa;
  7651. border-radius: 50%;
  7652. font-size: 25px;
  7653. text-align: center;
  7654. }
  7655. .chapter_add_r {
  7656. font-size: 18px;
  7657. height: 40px;
  7658. line-height: 30px;
  7659. text-indent: 10px;
  7660. color: #aaa;
  7661. }
  7662. .chapter_add_r span {
  7663. font-size: 12px;
  7664. color: rgb(204, 204, 204);
  7665. }
  7666. .chapter_add_input {
  7667. display: none;
  7668. }
  7669. .line {
  7670. width: 85%;
  7671. margin: 0 auto;
  7672. border-top: 1px solid #e5e5e5;
  7673. margin-top: 20px;
  7674. }
  7675. .info_btnBox {
  7676. width: 100%;
  7677. display: flex;
  7678. justify-content: space-evenly;
  7679. margin: 10px 0 10px 0;
  7680. }
  7681. .info_btn,
  7682. .teacherWord {
  7683. color: #fff;
  7684. background-color: #0f7eff;
  7685. padding: 8px 24px;
  7686. font-size: 0.9375rem;
  7687. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  7688. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  7689. min-width: 64px;
  7690. font-weight: 500;
  7691. border-radius: 4px;
  7692. box-sizing: border-box;
  7693. border: none;
  7694. cursor: pointer;
  7695. }
  7696. .teacherWord {
  7697. width: 105px !important;
  7698. text-align: center !important;
  7699. line-height: 36px !important;
  7700. padding: 0 !important;
  7701. font-size: 14px !important;
  7702. margin: 10px 0 !important;
  7703. }
  7704. .wordTeacher {
  7705. display: flex;
  7706. flex-direction: column;
  7707. width: 20%;
  7708. text-align: center;
  7709. font-size: 14px;
  7710. margin: 30px 30px 0 10px;
  7711. background: #fff;
  7712. position: relative;
  7713. border-radius: 5px;
  7714. padding: 25px 0px;
  7715. }
  7716. .wordPic {
  7717. margin: 0 auto;
  7718. width: 60px;
  7719. height: 60px;
  7720. cursor: pointer;
  7721. }
  7722. .deleteWord {
  7723. width: 22px;
  7724. height: 22px;
  7725. position: absolute;
  7726. right: 5px;
  7727. top: -15px;
  7728. cursor: pointer;
  7729. display: none;
  7730. z-index: 999;
  7731. }
  7732. .wordPic>img,
  7733. .deleteWord>img,
  7734. .addToolImg>img {
  7735. width: 100%;
  7736. height: 100%;
  7737. }
  7738. .info_btn:hover {
  7739. background-color: #4f7cd5 !important;
  7740. }
  7741. .cru_selectBox {
  7742. display: flex;
  7743. margin: 24px 0 10px;
  7744. flex-wrap: nowrap;
  7745. white-space: nowrap;
  7746. overflow: auto;
  7747. position: relative;
  7748. height: 47px;
  7749. }
  7750. .cru_selectBox::-webkit-scrollbar {
  7751. /*滚动条整体样式*/
  7752. width: 6px;
  7753. /*高宽分别对应横竖滚动条的尺寸*/
  7754. height: 6px;
  7755. }
  7756. /*定义滚动条轨道 内阴影+圆角*/
  7757. .cru_selectBox::-webkit-scrollbar-track {
  7758. border-radius: 10px;
  7759. background-color: #eee;
  7760. }
  7761. /*定义滑块 内阴影+圆角*/
  7762. .cru_selectBox::-webkit-scrollbar-thumb {
  7763. border-radius: 10px;
  7764. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  7765. background-color: rgba(0, 0, 0, 0.1);
  7766. }
  7767. .cru_line {
  7768. position: absolute;
  7769. bottom: 0px;
  7770. transition: all 0.5s;
  7771. left: 0px;
  7772. width: 125px;
  7773. margin-left: -25px;
  7774. }
  7775. .cru_select {
  7776. font-size: 21px;
  7777. margin-right: 37px;
  7778. margin-left: 5px;
  7779. cursor: pointer;
  7780. color: #a6a6a6;
  7781. }
  7782. .cru_selected {
  7783. color: #0b7fc2 !important;
  7784. }
  7785. .chapter_contentbox {
  7786. display: flex;
  7787. align-items: center;
  7788. margin-top: 15px;
  7789. }
  7790. .chapter_contentbox div:nth-child(1) {
  7791. /* width: 150px; */
  7792. margin: 0px;
  7793. /* font-size: 2em; */
  7794. color: black;
  7795. display: block;
  7796. white-space: nowrap;
  7797. overflow: hidden;
  7798. text-overflow: ellipsis;
  7799. /* font-weight: 600; */
  7800. margin-right: 20px;
  7801. font-size: 18px;
  7802. }
  7803. .chapter_contentbox div:nth-child(2) {
  7804. width: 380px;
  7805. }
  7806. .chapter_contentbox div:nth-child(3),
  7807. .remove {
  7808. background-image: url("../../../assets/remove.png");
  7809. cursor: pointer;
  7810. opacity: 0.5;
  7811. width: 40px;
  7812. height: 50px;
  7813. background-repeat: no-repeat;
  7814. background-position: 5px 10px;
  7815. }
  7816. .remove1 {
  7817. background-image: url("../../../assets/remove1.png");
  7818. background-repeat: no-repeat;
  7819. background-position: 5px 10px;
  7820. width: 40px;
  7821. height: 50px;
  7822. cursor: pointer;
  7823. }
  7824. .binfo_input {
  7825. font: inherit;
  7826. color: currentColor;
  7827. width: 100%;
  7828. margin: 0;
  7829. /* padding: 15px 14px; */
  7830. padding: 8px 14px;
  7831. display: block;
  7832. min-width: 0;
  7833. outline: none;
  7834. box-sizing: content-box;
  7835. background: none;
  7836. border: 1px solid rgba(0, 0, 0, 0.23);
  7837. border-radius: 4px;
  7838. box-sizing: border-box;
  7839. background: #fff;
  7840. font-size: 18px;
  7841. }
  7842. .binfo_input:focus-visible {
  7843. border: 1px solid rgba(61, 103, 188);
  7844. }
  7845. .time {
  7846. display: flex;
  7847. margin: 35px 0 80px 0;
  7848. }
  7849. .chapter_btnbox {
  7850. width: 160px;
  7851. border-radius: 5px;
  7852. border: 2px dashed gray;
  7853. display: flex;
  7854. padding: 8px 50px;
  7855. align-items: center;
  7856. justify-content: center;
  7857. margin: 30px auto 0;
  7858. cursor: pointer;
  7859. }
  7860. .icon_add {
  7861. position: relative;
  7862. width: 24px;
  7863. padding-top: 20px;
  7864. border-radius: 100%;
  7865. border-width: 2px;
  7866. border-style: solid;
  7867. border-color: gray;
  7868. }
  7869. .icon_add i:nth-child(1) {
  7870. position: absolute;
  7871. left: 50%;
  7872. top: 50%;
  7873. height: 60%;
  7874. transform: translate(-50%, -50%);
  7875. border-width: 1px;
  7876. border-style: solid;
  7877. border-color: inherit;
  7878. }
  7879. .icon_add i:nth-child(2) {
  7880. position: absolute;
  7881. top: 50%;
  7882. left: 50%;
  7883. width: 60%;
  7884. transform: translate(-50%, -50%);
  7885. border-width: 1px;
  7886. border-style: solid;
  7887. border-color: inherit;
  7888. }
  7889. .chapter_btn_w {
  7890. font-size: 0.9375rem;
  7891. font-weight: bold;
  7892. color: gray;
  7893. margin-left: 20px;
  7894. }
  7895. .disUoloadSty>>>.el-icon-plus {
  7896. display: none !important;
  7897. /* 上传按钮隐藏 */
  7898. }
  7899. .imgLeft {
  7900. margin: 15px 0;
  7901. }
  7902. .add_info_box {
  7903. margin: 20px 0;
  7904. }
  7905. .add_info_box button {
  7906. margin: 0 10px 10px 0;
  7907. }
  7908. .add_info_box2 {
  7909. display: flex;
  7910. align-items: center;
  7911. flex-wrap: wrap;
  7912. }
  7913. .add_info_box2::after {
  7914. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  7915. color: red;
  7916. font-size: 14px;
  7917. margin-bottom: 10px;
  7918. }
  7919. .add_chapters_box {
  7920. text-align: left;
  7921. background-color: rgb(232 234 237);
  7922. width: 100%;
  7923. padding: 0px 15px;
  7924. border-radius: 15px;
  7925. font-size: 16px;
  7926. box-sizing: border-box;
  7927. position: relative;
  7928. padding: 0 10px 5px 10px;
  7929. height: 185px;
  7930. overflow-y: auto;
  7931. overflow-x: hidden;
  7932. }
  7933. .homework_box {
  7934. display: flex;
  7935. align-items: flex-start;
  7936. flex-wrap: wrap;
  7937. margin: 15px 0 0 0;
  7938. flex-direction: column;
  7939. align-content: flex-start;
  7940. }
  7941. .course_homework {
  7942. display: flex;
  7943. justify-content: center;
  7944. flex-direction: row;
  7945. align-items: center;
  7946. margin: 0 10px 0 0;
  7947. }
  7948. .course_homework>>>.el-input__inner {
  7949. width: 140px;
  7950. margin-left: 15px;
  7951. }
  7952. .chapter_upload_move {
  7953. position: relative;
  7954. background-color: #fff;
  7955. position: absolute;
  7956. width: 100%;
  7957. top: 0px;
  7958. left: 0px;
  7959. border: 1px solid #eee;
  7960. border-radius: 5px;
  7961. transition: width 2s;
  7962. -moz-transition: width 2s;
  7963. -webkit-transition: width 2s;
  7964. -o-transition: width 2s;
  7965. }
  7966. .chapter_upload_l_i {
  7967. background-image: url("../../../assets/icon.png");
  7968. background-position: 3px -165px;
  7969. width: 30px;
  7970. height: 30px;
  7971. margin: 10px auto 0 auto;
  7972. }
  7973. .left_first {
  7974. display: flex;
  7975. flex-direction: column;
  7976. flex-wrap: nowrap;
  7977. }
  7978. .right_first {
  7979. width: 100%;
  7980. height: 100%;
  7981. margin-top: 15px;
  7982. }
  7983. .right_title {
  7984. height: 30px;
  7985. padding: 15px 20px 15px 20px;
  7986. border-bottom: 1px solid #f2f2f2;
  7987. font-size: 1.5em;
  7988. font-weight: bold;
  7989. color: #0f7eff;
  7990. margin: 0 auto;
  7991. display: flex;
  7992. justify-content: space-between;
  7993. }
  7994. .people {
  7995. border: 1px solid rgb(229 229 229);
  7996. height: 495px;
  7997. border-radius: 5px;
  7998. width: 100%;
  7999. overflow: auto;
  8000. }
  8001. .people_top {
  8002. display: flex;
  8003. width: 100%;
  8004. /* justify-content: space-between; */
  8005. /* align-items: center; */
  8006. flex-direction: column;
  8007. padding: 10px 25px 0;
  8008. box-sizing: border-box;
  8009. }
  8010. .people_nav,
  8011. .people_top_right {
  8012. /* padding: 20px 0 0 20px; */
  8013. }
  8014. .people_top_right {
  8015. height: 40px;
  8016. margin-bottom: 10px;
  8017. }
  8018. .people_search {
  8019. display: flex;
  8020. position: relative;
  8021. }
  8022. .people_search>>>.el-input__inner {
  8023. /* height: 25px; */
  8024. width: 95%;
  8025. }
  8026. .search_img {
  8027. width: 20px;
  8028. height: 20px;
  8029. position: absolute;
  8030. right: 30px;
  8031. top: 50%;
  8032. transform: translateY(-50%);
  8033. }
  8034. .search_img>img {
  8035. width: 100%;
  8036. height: 100%;
  8037. }
  8038. .people_name {
  8039. display: flex;
  8040. justify-content: flex-start;
  8041. padding: 20px 0 0 25px;
  8042. flex-direction: column;
  8043. flex-wrap: wrap;
  8044. }
  8045. .p_box {
  8046. position: relative;
  8047. }
  8048. .people_name>>>.el-checkbox {
  8049. width: 100%;
  8050. display: flex;
  8051. align-items: center;
  8052. margin-bottom: 10px;
  8053. }
  8054. .people_name>>>.el-checkbox__label {
  8055. text-overflow: ellipsis;
  8056. overflow: hidden;
  8057. width: calc(100%);
  8058. }
  8059. .people_name2>>>.el-checkbox__label {
  8060. width: calc(100% - 130px);
  8061. }
  8062. .inviteCode {
  8063. position: absolute;
  8064. right: 30px;
  8065. color: #237ade;
  8066. top: 0;
  8067. cursor: pointer;
  8068. font-size: 13px;
  8069. }
  8070. .noneInvite {
  8071. color: #a8a8a8;
  8072. }
  8073. .inviteImg {
  8074. position: absolute;
  8075. right: 5px;
  8076. top: 0;
  8077. width: 20px;
  8078. }
  8079. .right_img {
  8080. width: 150px;
  8081. height: 150px;
  8082. margin: 20px auto;
  8083. }
  8084. .right_img>img {
  8085. width: 100%;
  8086. height: 100%;
  8087. }
  8088. .number {
  8089. margin-top: 20px;
  8090. color: #4aa6ff;
  8091. text-decoration: underline;
  8092. }
  8093. .success_button {
  8094. display: flex;
  8095. text-align: center;
  8096. margin: 5% 0 auto;
  8097. flex-direction: row;
  8098. justify-content: center;
  8099. }
  8100. .look_course {
  8101. margin-right: 40px;
  8102. background: #3d67bc;
  8103. width: 200px;
  8104. height: 35px;
  8105. line-height: 35px;
  8106. color: #fff;
  8107. text-align: center;
  8108. font-size: 14px;
  8109. border-radius: 5px;
  8110. cursor: pointer;
  8111. }
  8112. .attend_others {
  8113. width: 250px;
  8114. background: #4fb13c;
  8115. height: 35px;
  8116. line-height: 35px;
  8117. color: #fff;
  8118. text-align: center;
  8119. font-size: 14px;
  8120. border-radius: 5px;
  8121. cursor: pointer;
  8122. }
  8123. .dialog_diy2>>>.el-dialog__body {
  8124. text-align: center;
  8125. }
  8126. .write_togother {
  8127. position: absolute;
  8128. right: 45px;
  8129. display: flex;
  8130. top: 5%;
  8131. }
  8132. .write_people {
  8133. font-size: 14px;
  8134. line-height: 50px;
  8135. padding-right: 10px;
  8136. }
  8137. .end_write {
  8138. background: #3d67bc;
  8139. color: #fff;
  8140. width: 100px;
  8141. height: 35px;
  8142. line-height: 35px;
  8143. text-align: center;
  8144. font-size: 14px;
  8145. border-radius: 5px;
  8146. cursor: pointer;
  8147. }
  8148. .chapter_upload {
  8149. height: 50px;
  8150. margin-top: 12px;
  8151. position: relative;
  8152. display: flex;
  8153. align-items: center;
  8154. width: 100%;
  8155. min-height: 50px;
  8156. }
  8157. .chapter_upload_t {
  8158. background-color: #fff;
  8159. position: absolute;
  8160. height: 100%;
  8161. top: 0px;
  8162. left: 0px;
  8163. border-radius: 40px;
  8164. box-sizing: border-box;
  8165. box-shadow: 0 0 3px 3px #dfdfdf;
  8166. }
  8167. .chapter_upload_o {
  8168. width: 100%;
  8169. height: 100%;
  8170. position: relative;
  8171. z-index: 1;
  8172. }
  8173. .chapter_upload_ic {
  8174. height: 30px;
  8175. float: right;
  8176. }
  8177. .chapter_upload_ic_l {
  8178. width: 50px;
  8179. height: 50px;
  8180. float: left;
  8181. }
  8182. .chapter_upload_ic_l div {
  8183. width: 30px;
  8184. height: 35px;
  8185. background: url("../../../assets/icon/icon.png");
  8186. }
  8187. .chapter_upload_ic_r {
  8188. width: 50px;
  8189. height: 50px;
  8190. float: left;
  8191. margin-left: 0px;
  8192. display: flex;
  8193. align-items: center;
  8194. }
  8195. .chapter_upload_ic_r div {
  8196. width: 25px;
  8197. height: 25px;
  8198. background-image: url("../../../assets/delete.png");
  8199. background-size: 100% 100%;
  8200. }
  8201. .chapter_upload_n {
  8202. display: flex;
  8203. text-indent: 10px;
  8204. text-decoration: none;
  8205. text-overflow: ellipsis;
  8206. white-space: nowrap;
  8207. overflow: hidden;
  8208. width: 55%;
  8209. margin-left: 10px;
  8210. cursor: pointer;
  8211. margin-top: 2px;
  8212. align-items: center;
  8213. }
  8214. .chapter_upload_l_i1 {
  8215. background-image: url("../../../assets/icon/video.png");
  8216. width: 28px;
  8217. height: 28px;
  8218. background-size: 100% 100%;
  8219. }
  8220. .chapter_upload_l_i5 {
  8221. background-image: url("../../../assets/icon/word.png");
  8222. width: 24px;
  8223. height: 24px;
  8224. background-size: 100% 100%;
  8225. }
  8226. .chapter_upload_l_i8 {
  8227. background-image: url("../../../assets/icon/line.png");
  8228. width: 24px;
  8229. height: 24px;
  8230. background-size: 100% 100%;
  8231. }
  8232. .chapter_upload_ud {
  8233. display: flex;
  8234. flex-direction: column;
  8235. margin-left: 5px;
  8236. justify-content: center;
  8237. }
  8238. .chapter_upload_up {
  8239. background-image: url("../../../assets/icon/up.png");
  8240. width: 17px;
  8241. height: 15px;
  8242. background-size: 100% 100%;
  8243. cursor: pointer;
  8244. }
  8245. .chapter_upload_down {
  8246. background-image: url("../../../assets/icon/down.png");
  8247. width: 17px;
  8248. height: 15px;
  8249. margin: 2px auto 0 auto;
  8250. background-size: 100% 100%;
  8251. cursor: pointer;
  8252. }
  8253. .addWordStyle {
  8254. display: flex;
  8255. flex-direction: row;
  8256. justify-content: flex-start;
  8257. overflow-x: auto;
  8258. white-space: nowrap;
  8259. flex-wrap: wrap;
  8260. }
  8261. /* table 样式 */
  8262. .cont>>>table {
  8263. border-top: 1px solid #ccc;
  8264. border-left: 1px solid #ccc;
  8265. }
  8266. .cont>>>table td,
  8267. .cont>>>table th {
  8268. border-bottom: 1px solid #ccc;
  8269. border-right: 1px solid #ccc;
  8270. /* padding: 20px 5px; */
  8271. padding: 5px 10px;
  8272. max-width: 0px;
  8273. height: 30px;
  8274. vertical-align: baseline;
  8275. }
  8276. .cont>>>table th {
  8277. border-bottom: 2px solid #ccc;
  8278. text-align: center;
  8279. }
  8280. /* blockquote 样式 */
  8281. .cont>>>blockquote {
  8282. display: block;
  8283. border-left: 8px solid #d0e5f2;
  8284. padding: 5px 10px;
  8285. margin: 10px 0;
  8286. line-height: 1.4;
  8287. font-size: 100%;
  8288. background-color: #f1f1f1;
  8289. }
  8290. /* code 样式 */
  8291. .cont>>>code {
  8292. display: inline-block;
  8293. *display: inline;
  8294. *zoom: 1;
  8295. background-color: #f1f1f1;
  8296. border-radius: 3px;
  8297. padding: 3px 5px;
  8298. margin: 0 3px;
  8299. }
  8300. .cont>>>pre code {
  8301. display: block;
  8302. }
  8303. /* ul ol 样式 */
  8304. .cont>>>ul,
  8305. ol {
  8306. margin: 10px 0 10px 20px;
  8307. }
  8308. .wordbox {
  8309. display: flex;
  8310. flex-wrap: wrap;
  8311. cursor: pointer;
  8312. width: 100%;
  8313. }
  8314. .checkword {
  8315. width: 22px;
  8316. height: 22px;
  8317. margin: 10px auto 0;
  8318. cursor: pointer;
  8319. }
  8320. .checkword img {
  8321. width: 100%;
  8322. }
  8323. .stepBg {
  8324. display: flex;
  8325. flex-direction: column;
  8326. justify-content: space-between;
  8327. align-items: center;
  8328. background: #fff;
  8329. width: 300px;
  8330. margin: 0 25px 0 0;
  8331. }
  8332. .stepTop {
  8333. min-width: 300px;
  8334. width: 300px;
  8335. /* border-radius: 10px; */
  8336. display: flex;
  8337. flex-direction: column;
  8338. justify-content: flex-start;
  8339. align-items: center;
  8340. flex-wrap: nowrap;
  8341. background: #fff;
  8342. /* top: 18%; */
  8343. }
  8344. .stepTop>div {
  8345. height: 80px;
  8346. width: 85%;
  8347. cursor: pointer;
  8348. margin: 10px 0;
  8349. border-radius: 10px;
  8350. }
  8351. .first,
  8352. .second,
  8353. .third,
  8354. .four {
  8355. background: #4a83d0;
  8356. height: 90px;
  8357. color: #fff;
  8358. display: flex;
  8359. flex-direction: row;
  8360. align-items: center;
  8361. justify-content: center;
  8362. }
  8363. .first>div:nth-child(1),
  8364. .second>div:nth-child(1),
  8365. .third>div:nth-child(1),
  8366. .four>div:nth-child(1) {
  8367. margin: 5px 10px 0 0;
  8368. width: 2rem;
  8369. }
  8370. .firstNo,
  8371. .secondNo,
  8372. .thirdNo,
  8373. .fourNo {
  8374. background: #e7e7e7;
  8375. color: #adadad;
  8376. display: flex;
  8377. flex-direction: row;
  8378. align-items: center;
  8379. justify-content: center;
  8380. }
  8381. .firstNo>div:nth-child(1),
  8382. .secondNo>div:nth-child(1),
  8383. .thirdNo>div:nth-child(1),
  8384. .fourNo>div:nth-child(1) {
  8385. margin: 5px 10px 0 0;
  8386. width: 2rem;
  8387. }
  8388. .uploadWidth>>>.el-upload {
  8389. width: 60px;
  8390. height: 60px;
  8391. position: relative;
  8392. }
  8393. .addPeople {
  8394. background: #fa6060;
  8395. width: 150px;
  8396. height: 40px;
  8397. color: #fff;
  8398. border-radius: 5px;
  8399. text-align: center;
  8400. line-height: 40px;
  8401. font-size: 14px;
  8402. cursor: pointer;
  8403. margin-top: 20px;
  8404. }
  8405. .kcImg {
  8406. width: 60px;
  8407. margin-left: 10px;
  8408. }
  8409. .zyImg {
  8410. width: 55px;
  8411. margin: 0 10px;
  8412. }
  8413. .deleteZy {
  8414. width: 20px;
  8415. position: absolute;
  8416. top: 5px;
  8417. right: 5px;
  8418. cursor: pointer;
  8419. }
  8420. .kcImg>img,
  8421. .zyImg>img,
  8422. .deleteZy>img {
  8423. width: 100%;
  8424. height: 100%;
  8425. }
  8426. .zyBox {
  8427. display: flex;
  8428. flex-direction: row;
  8429. align-items: center;
  8430. background: #67d37d;
  8431. color: #fff;
  8432. width: 210px;
  8433. margin: 20px 20px 0 0;
  8434. border-radius: 10px;
  8435. height: 70px;
  8436. position: relative;
  8437. }
  8438. .upCss {
  8439. display: flex;
  8440. flex-direction: row;
  8441. justify-content: flex-start;
  8442. }
  8443. .upCss>>>.el-icon-plus {
  8444. position: none !important;
  8445. width: 200px;
  8446. height: 100px;
  8447. display: flex;
  8448. flex-wrap: nowrap;
  8449. flex-direction: column;
  8450. align-items: center;
  8451. justify-content: center;
  8452. border: 1px dashed #ccc;
  8453. min-width: 78px;
  8454. min-height: 100px;
  8455. z-index: 999;
  8456. }
  8457. .upCss>>>.el-upload-list__item-name {
  8458. width: 100px;
  8459. white-space: nowrap;
  8460. overflow: hidden;
  8461. text-overflow: ellipsis;
  8462. }
  8463. .addStageImg {
  8464. min-width: 25px;
  8465. min-height: 25px;
  8466. width: 25px;
  8467. height: 25px;
  8468. cursor: pointer;
  8469. }
  8470. .addHW {
  8471. width: 28px;
  8472. height: 28px;
  8473. cursor: pointer;
  8474. }
  8475. .addStageImg>img,
  8476. .addHW>img {
  8477. width: 100%;
  8478. height: 100%;
  8479. }
  8480. .addNewPP>>>.el-dialog__body {
  8481. padding: 5px 20px;
  8482. }
  8483. .isHeight {
  8484. height: 680px;
  8485. }
  8486. .toolChoose {
  8487. display: flex;
  8488. /* width: 100%; */
  8489. flex-direction: row;
  8490. flex-wrap: wrap;
  8491. }
  8492. .tool {
  8493. display: flex;
  8494. flex-direction: column;
  8495. flex-wrap: nowrap;
  8496. width: fit-content;
  8497. margin: 10px 0 10px 0;
  8498. align-items: center;
  8499. }
  8500. .tool+.tool {
  8501. margin-right: 45px;
  8502. }
  8503. .whiteBIcon {
  8504. width: 80px;
  8505. cursor: pointer;
  8506. display: flex;
  8507. flex-direction: column;
  8508. flex-wrap: nowrap;
  8509. align-items: center;
  8510. }
  8511. .whiteBIcon>img,
  8512. .toolIcon>img,
  8513. .arrow>img {
  8514. width: 100%;
  8515. height: 100%;
  8516. }
  8517. .check img {
  8518. width: 20px;
  8519. height: 20px;
  8520. }
  8521. .whiteBIcon>img {
  8522. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  8523. border-radius: 15px;
  8524. }
  8525. .check {
  8526. /* width: 20px;
  8527. height: 20px; */
  8528. cursor: pointer;
  8529. margin: 10px 0;
  8530. }
  8531. .checkDiv {
  8532. display: flex;
  8533. align-items: center;
  8534. }
  8535. .checkDiv span {
  8536. margin-left: 5px;
  8537. color: #858585;
  8538. }
  8539. .customWidth>>>.el-dialog {
  8540. min-width: 500px !important;
  8541. }
  8542. .a_addBox {
  8543. margin: 10px 0;
  8544. background: #fff;
  8545. padding: 15px;
  8546. max-height: 600px;
  8547. overflow: auto;
  8548. }
  8549. .a_add_box {
  8550. border-bottom: 2px solid #eee;
  8551. padding-bottom: 25px;
  8552. }
  8553. .a_add_head {
  8554. display: flex;
  8555. align-items: center;
  8556. justify-content: space-between;
  8557. margin: 10px 0 0 0;
  8558. font-size: 18px;
  8559. }
  8560. .a_add_checkType {
  8561. margin-top: 10px;
  8562. display: flex;
  8563. font-size: 16px;
  8564. align-items: center;
  8565. }
  8566. .a_add_checkType span {
  8567. box-sizing: border-box;
  8568. padding: 0 0 5px 0;
  8569. cursor: pointer;
  8570. }
  8571. .a_add_checkType span+span {
  8572. margin-left: 10px;
  8573. }
  8574. .a_add_checkType .active {
  8575. border-bottom: 2px solid #409eff;
  8576. color: #409eff;
  8577. }
  8578. .a_add_head .a_add_head_input {
  8579. width: 300px;
  8580. }
  8581. .a_add_head .a_add_head_div {
  8582. display: flex;
  8583. align-items: center;
  8584. justify-content: space-between;
  8585. }
  8586. .a_add_body {
  8587. display: flex;
  8588. /* align-items: center; */
  8589. align-items: flex-end;
  8590. }
  8591. .a_add_input {
  8592. display: flex;
  8593. align-items: center;
  8594. flex-wrap: wrap;
  8595. }
  8596. .a_add_input_choice {
  8597. flex-direction: column;
  8598. margin-right: 10px;
  8599. }
  8600. .a_add_input_choice>>>.el-radio {
  8601. display: flex;
  8602. align-items: center;
  8603. flex-direction: row-reverse;
  8604. margin: 30px 0 0 0;
  8605. }
  8606. .a_add_input_choice>>>.el-checkbox {
  8607. display: flex;
  8608. align-items: center;
  8609. flex-direction: row-reverse;
  8610. margin: 30px 0 0 0;
  8611. }
  8612. .width100 {
  8613. width: 100%;
  8614. }
  8615. .a_add_input .a_add_persent {
  8616. width: 100%;
  8617. }
  8618. .a_add_persent_div {
  8619. width: 100%;
  8620. display: flex;
  8621. align-items: center;
  8622. }
  8623. .a_add_persent_div span {
  8624. margin: 5px 0;
  8625. }
  8626. .a_add_persent_div span:nth-child(1) {
  8627. width: 30%;
  8628. }
  8629. .a_add_persent_div span:nth-child(2) {
  8630. width: 7%;
  8631. }
  8632. .a_add_persent_div span:nth-child(3) {
  8633. width: 40%;
  8634. }
  8635. .a_add_body_div {
  8636. display: flex;
  8637. align-items: center;
  8638. justify-content: center;
  8639. /* flex-direction: column; */
  8640. }
  8641. .all_choose {
  8642. display: flex;
  8643. flex-direction: row;
  8644. align-items: flex-start;
  8645. width: 100%;
  8646. }
  8647. .all_choose>span {
  8648. min-width: 100px;
  8649. display: block;
  8650. letter-spacing: 14px;
  8651. white-space: nowrap;
  8652. overflow: hidden;
  8653. text-overflow: ellipsis;
  8654. }
  8655. .all_choose>>>.el-checkbox-group {
  8656. display: flex;
  8657. flex-direction: row;
  8658. width: 100%;
  8659. flex-wrap: wrap;
  8660. align-content: center;
  8661. justify-content: flex-start;
  8662. align-items: center;
  8663. margin-top: 3px;
  8664. }
  8665. .all_choose>.el-checkbox-group>>>.el-checkbox {
  8666. margin-bottom: 10px;
  8667. display: flex;
  8668. flex-direction: row;
  8669. align-items: center;
  8670. }
  8671. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  8672. min-width: 80px;
  8673. overflow: hidden;
  8674. width: 80px;
  8675. text-overflow: ellipsis;
  8676. white-space: nowrap;
  8677. }
  8678. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  8679. width: auto;
  8680. }
  8681. .choose>div:nth-child(3)>span {
  8682. /* letter-spacing: 0 !important; */
  8683. }
  8684. .choose {
  8685. display: flex;
  8686. flex-direction: column;
  8687. flex-wrap: nowrap;
  8688. height: 100%;
  8689. justify-content: space-evenly;
  8690. align-items: flex-start;
  8691. }
  8692. .both {
  8693. display: flex;
  8694. flex-direction: row;
  8695. flex-wrap: wrap;
  8696. width: 100%;
  8697. align-items: center;
  8698. justify-content: flex-start;
  8699. margin: 15px 0;
  8700. }
  8701. .notice>>>.el-dialog {
  8702. width: 500px !important;
  8703. text-align: center;
  8704. }
  8705. .notice>>>.el-button {
  8706. margin-top: 20px;
  8707. }
  8708. .whiteBg {
  8709. background: #fff;
  8710. border-radius: 10px;
  8711. }
  8712. .chooseWho {
  8713. display: flex;
  8714. width: 380px;
  8715. flex-direction: row;
  8716. flex-wrap: nowrap;
  8717. justify-content: space-between;
  8718. padding-bottom: 10px;
  8719. }
  8720. .chooseWho>div {
  8721. cursor: pointer;
  8722. padding-bottom: 10px;
  8723. font-weight: bold;
  8724. }
  8725. .isChooseActive {
  8726. color: #3e88f4;
  8727. border-bottom: 2px solid #2f80f3;
  8728. }
  8729. .toolSort {
  8730. display: flex;
  8731. flex-direction: row;
  8732. flex-wrap: wrap;
  8733. justify-content: flex-start;
  8734. align-items: flex-start;
  8735. }
  8736. .toolSort>div {
  8737. margin-right: 45px;
  8738. }
  8739. .tools {
  8740. width: 100%;
  8741. display: flex;
  8742. flex-direction: column;
  8743. flex-wrap: nowrap;
  8744. align-items: flex-start;
  8745. }
  8746. .leftTools,
  8747. .rightTools {
  8748. width: 50%;
  8749. }
  8750. .rightTools {
  8751. display: flex;
  8752. flex-direction: row;
  8753. flex-wrap: nowrap;
  8754. justify-content: space-around;
  8755. }
  8756. .firstToolList {
  8757. display: flex;
  8758. flex-direction: column;
  8759. flex-wrap: nowrap;
  8760. align-items: center;
  8761. }
  8762. .iconList {
  8763. display: flex;
  8764. flex-direction: row;
  8765. flex-wrap: wrap;
  8766. justify-content: flex-start;
  8767. align-items: center;
  8768. margin: 20px 0 5px 0;
  8769. width: 240px;
  8770. min-width: 240px;
  8771. }
  8772. .iconTool {
  8773. display: flex;
  8774. flex-direction: column;
  8775. flex-wrap: nowrap;
  8776. align-items: center;
  8777. justify-content: flex-start;
  8778. margin: 15px 10px;
  8779. }
  8780. .toolIcon {
  8781. width: 50px;
  8782. }
  8783. .taskBorder {
  8784. border: 1px solid #e1e1e1;
  8785. border-radius: 10px;
  8786. margin-top: 20px;
  8787. /* min-height: 1160px; */
  8788. position: relative;
  8789. background: #fbfbfb;
  8790. }
  8791. .smallTaskBorder {
  8792. height: 170px;
  8793. min-height: 170px !important;
  8794. overflow: hidden;
  8795. }
  8796. .taskBorder>div {
  8797. padding: 30px 0 10px 30px;
  8798. }
  8799. .addTaskBorder {
  8800. border: 2px solid #e1e1e1;
  8801. border-radius: 10px;
  8802. margin-top: 25px;
  8803. cursor: pointer;
  8804. }
  8805. .addTaskBorder>div {
  8806. margin: 0 auto;
  8807. display: flex;
  8808. align-items: center;
  8809. justify-content: center;
  8810. }
  8811. .addTaskBorder>div>img {
  8812. width: 100px;
  8813. }
  8814. .addTaskBorder>div>span {
  8815. font-size: 23px;
  8816. color: #dbdbdb;
  8817. }
  8818. .funBlock {
  8819. display: flex;
  8820. padding: 15px 0;
  8821. flex-direction: row;
  8822. justify-content: flex-end;
  8823. align-items: center;
  8824. position: absolute;
  8825. right: 15px;
  8826. bottom: 35px;
  8827. }
  8828. .fold {
  8829. display: flex;
  8830. margin: 0 10px;
  8831. flex-direction: row;
  8832. align-items: center;
  8833. cursor: pointer;
  8834. }
  8835. .arrow {
  8836. width: 15px;
  8837. height: 15px;
  8838. margin-left: 10px;
  8839. }
  8840. .addToolFun {
  8841. display: flex;
  8842. width: 150px;
  8843. flex-direction: row;
  8844. align-items: center;
  8845. justify-content: center;
  8846. border: 1px dashed;
  8847. border-radius: 5px;
  8848. height: 50px;
  8849. margin: 35px auto 0;
  8850. cursor: pointer;
  8851. }
  8852. .addToolImg {
  8853. width: 30px;
  8854. height: 30px;
  8855. margin-right: 20px;
  8856. }
  8857. .addToolsDia>>>.el-dialog__body {
  8858. padding: 20px;
  8859. }
  8860. .addToolsDia>>>.el-dialog__body>.toolChoose {
  8861. padding: 0;
  8862. }
  8863. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  8864. padding: 0;
  8865. border-bottom: none;
  8866. margin-bottom: 0;
  8867. }
  8868. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  8869. width: 100%;
  8870. }
  8871. .lineCss>>>.el-form-item__label {
  8872. width: auto !important;
  8873. }
  8874. .lineCss>>>.el-form-item__content {
  8875. margin-left: 50px !important;
  8876. }
  8877. .newSteps {
  8878. display: flex;
  8879. width: 100% !important;
  8880. height: 80px;
  8881. cursor: pointer;
  8882. margin: 10px 0;
  8883. border-radius: 10px;
  8884. flex-direction: row;
  8885. align-content: center;
  8886. justify-content: center;
  8887. align-items: center;
  8888. margin: 0 !important;
  8889. }
  8890. /* 评价样式 */
  8891. .elist_css {
  8892. padding-bottom: 60px !important;
  8893. }
  8894. .elist_title {
  8895. margin-bottom: 10px;
  8896. }
  8897. .elist_input {}
  8898. .elist_input_box {
  8899. display: flex;
  8900. align-items: center;
  8901. flex-wrap: wrap;
  8902. }
  8903. .elist_input_box+.elist_input_box {
  8904. margin-top: 30px;
  8905. }
  8906. .elist_input .elist_input_box input {
  8907. font: inherit;
  8908. color: currentColor;
  8909. /* width: 200px; */
  8910. max-width: 200px;
  8911. padding: 8px 14px;
  8912. display: block;
  8913. min-width: 0;
  8914. outline: none;
  8915. border: 1px solid rgba(0, 0, 0, 0.23);
  8916. border-radius: 4px;
  8917. box-sizing: border-box;
  8918. background: #fff;
  8919. margin: 0 20px 0 0;
  8920. }
  8921. .elist_input .elist_input_box span {
  8922. height: 36px;
  8923. line-height: 36px;
  8924. color: rgb(82, 82, 82);
  8925. min-width: 80px;
  8926. }
  8927. .elist_input .elist_input_box .remove {
  8928. height: 20px;
  8929. width: 20px;
  8930. background-size: 100% 100%;
  8931. background-position: unset;
  8932. margin-left: 5px;
  8933. }
  8934. .elist_input_box>>>.el-rate {
  8935. display: flex;
  8936. height: 36px;
  8937. align-items: center;
  8938. }
  8939. .elist_input_box .elist_inptu_text {
  8940. width: 100%;
  8941. display: flex;
  8942. align-items: center;
  8943. margin-top: 10px;
  8944. }
  8945. .elist_input_box .elist_inptu_text input {
  8946. /* width: 500px; */
  8947. width: 100%;
  8948. max-width: unset;
  8949. }
  8950. .elist_input_box>>>.el-rate__icon {
  8951. font-size: 24px;
  8952. }
  8953. .elist_btn {
  8954. margin-top: 10px;
  8955. }
  8956. .lineTitle {
  8957. margin-top: 15px;
  8958. width: 110px;
  8959. }
  8960. .courseTop {
  8961. display: flex;
  8962. flex-direction: row;
  8963. justify-content: flex-start;
  8964. align-items: center;
  8965. width: calc(100% - 40px);
  8966. padding: 20px 0;
  8967. margin: 0 auto;
  8968. }
  8969. .stepsNav {
  8970. display: flex;
  8971. flex-direction: row;
  8972. justify-content: flex-start;
  8973. align-items: center;
  8974. }
  8975. .stepsWord {
  8976. font-size: 18px;
  8977. color: #fff;
  8978. font-weight: bold;
  8979. margin-left: auto;
  8980. background: rgb(15, 126, 255);
  8981. border-radius: 5px;
  8982. padding: 3px 25px;
  8983. box-sizing: border-box;
  8984. }
  8985. .rightBox {
  8986. width: calc(100% - 40px);
  8987. background: rgb(255, 255, 255);
  8988. border-radius: 10px;
  8989. overflow: auto;
  8990. height: calc(100% - 160px);
  8991. position: relative;
  8992. margin: 0px auto 0;
  8993. }
  8994. .e_add_top {
  8995. display: flex;
  8996. justify-content: space-between;
  8997. padding: 20px 20px 0 20px;
  8998. border-radius: 3px;
  8999. background: #fff;
  9000. }
  9001. .e_add_title2 {
  9002. display: flex;
  9003. align-items: center;
  9004. }
  9005. .e_add_title2 span {
  9006. width: 40px;
  9007. }
  9008. .e_add_title {
  9009. display: flex;
  9010. align-items: center;
  9011. color: #b8b8b8;
  9012. font-size: 18px;
  9013. position: relative;
  9014. height: 40px;
  9015. }
  9016. .e_add_title span {
  9017. margin-right: 10px;
  9018. }
  9019. .e_add_title .el_input {
  9020. width: 300px;
  9021. }
  9022. .e_add_title>>>.el-input__inner {
  9023. width: 400px;
  9024. }
  9025. .e_add_btn {}
  9026. .e_add_content {
  9027. display: flex;
  9028. width: 100%;
  9029. }
  9030. .e_add_list {
  9031. background: #fff;
  9032. height: 500px;
  9033. width: 210px;
  9034. position: relative;
  9035. margin: 15px 5px 0 0;
  9036. flex-shrink: 0;
  9037. display: flex;
  9038. flex-direction: column;
  9039. }
  9040. .e_add_list_title {
  9041. font-size: 20px;
  9042. width: 100%;
  9043. box-sizing: border-box;
  9044. padding: 15px 40px;
  9045. text-align: center;
  9046. border-bottom: 1px solid #eaeaea;
  9047. position: relative;
  9048. display: flex;
  9049. align-items: center;
  9050. justify-content: center;
  9051. height: 57px;
  9052. background: #f6f6f6;
  9053. }
  9054. .e_add_list_title span {
  9055. overflow: hidden;
  9056. white-space: nowrap;
  9057. text-overflow: ellipsis;
  9058. }
  9059. .e_add_list_title img {
  9060. position: absolute;
  9061. right: 15px;
  9062. width: 25px;
  9063. cursor: pointer;
  9064. top: 50%;
  9065. transform: translateY(-50%);
  9066. }
  9067. .e_add_list_body {
  9068. height: calc(100% - 187px);
  9069. overflow: auto;
  9070. }
  9071. .e_add_list_child {
  9072. width: 100%;
  9073. display: flex;
  9074. align-items: center;
  9075. justify-content: center;
  9076. position: relative;
  9077. box-sizing: border-box;
  9078. padding: 15px 40px;
  9079. text-align: center;
  9080. }
  9081. .e_add_list_child span {
  9082. overflow: hidden;
  9083. white-space: nowrap;
  9084. text-overflow: ellipsis;
  9085. cursor: pointer;
  9086. }
  9087. .e_add_list_child img {
  9088. position: absolute;
  9089. right: 10px;
  9090. width: 21px;
  9091. cursor: pointer;
  9092. top: 50%;
  9093. transform: translateY(-50%);
  9094. }
  9095. .e_add_list_child+.e_add_list_child {
  9096. border-top: 1px solid #eaeaea;
  9097. }
  9098. .e_add_list_child .active {
  9099. color: #409eff;
  9100. }
  9101. .e_add_list_btn {
  9102. position: absolute;
  9103. bottom: 0;
  9104. height: 50px;
  9105. background: rgb(120, 120, 254);
  9106. width: 100%;
  9107. color: #fff;
  9108. font-size: 16px;
  9109. text-align: center;
  9110. line-height: 50px;
  9111. cursor: pointer;
  9112. }
  9113. .e_add_list_detail {
  9114. position: absolute;
  9115. bottom: 0;
  9116. height: 130px;
  9117. background: rgb(120, 120, 254);
  9118. width: 100%;
  9119. color: #fff;
  9120. font-size: 16px;
  9121. display: flex;
  9122. align-items: center;
  9123. justify-content: center;
  9124. }
  9125. .e_add_list_detail textarea {
  9126. height: 90%;
  9127. width: 95%;
  9128. border: none;
  9129. resize: none;
  9130. outline: none;
  9131. padding: 5px;
  9132. box-sizing: border-box;
  9133. }
  9134. .e_add_list_pbox {
  9135. width: 100%;
  9136. }
  9137. .e_add_list_pbox_title {
  9138. height: 50px;
  9139. background: #fff;
  9140. display: flex;
  9141. align-items: center;
  9142. width: 100%;
  9143. box-sizing: border-box;
  9144. padding: 0 20px;
  9145. flex-direction: row;
  9146. flex-wrap: wrap;
  9147. }
  9148. .type_title {
  9149. font-size: 18px;
  9150. font-weight: 700;
  9151. }
  9152. .type_content {
  9153. font-size: 16px;
  9154. margin-left: 30px;
  9155. }
  9156. .type_content span+span {
  9157. margin-left: 20px;
  9158. }
  9159. .type_content span {
  9160. cursor: pointer;
  9161. padding-bottom: 5px;
  9162. box-sizing: border-box;
  9163. }
  9164. .type_content .active {
  9165. color: #409eff;
  9166. border-bottom: 2px solid #409eff;
  9167. }
  9168. .e_add_list_pbox_content {
  9169. height: calc(100% - 50px);
  9170. display: flex;
  9171. align-items: center;
  9172. width: 100%;
  9173. background: #fff;
  9174. }
  9175. .mbCss {
  9176. width: 100%;
  9177. display: flex;
  9178. flex-direction: row;
  9179. flex-wrap: nowrap;
  9180. align-content: center;
  9181. align-items: flex-start;
  9182. justify-content: flex-start;
  9183. }
  9184. .pjCss {
  9185. /* width: 42%; */
  9186. width: calc(100% - 55%);
  9187. display: flex;
  9188. flex-direction: column;
  9189. flex-wrap: nowrap;
  9190. align-items: flex-start;
  9191. margin-top: 1.5%;
  9192. }
  9193. .e_box {
  9194. display: flex;
  9195. flex-wrap: wrap;
  9196. max-height: 500px;
  9197. align-items: flex-start;
  9198. overflow: auto;
  9199. }
  9200. .e_card {
  9201. border: 1px solid #ccc;
  9202. background: #fff;
  9203. margin-right: 20px;
  9204. width: 270px;
  9205. display: flex;
  9206. flex-direction: column;
  9207. align-items: center;
  9208. border-radius: 5px;
  9209. margin-top: 10px;
  9210. text-align: center;
  9211. }
  9212. .e_card_picture {
  9213. margin: 10px 0;
  9214. }
  9215. .e_card_picture>img {
  9216. width: 50px;
  9217. }
  9218. .e_card_name {
  9219. width: 100%;
  9220. padding: 0 10px;
  9221. box-sizing: border-box;
  9222. margin-bottom: 10px;
  9223. overflow: hidden;
  9224. text-overflow: ellipsis;
  9225. white-space: nowrap;
  9226. }
  9227. .e_card_time {
  9228. width: 100%;
  9229. padding: 0 10px;
  9230. box-sizing: border-box;
  9231. font-size: 15px;
  9232. color: #c3c3c3;
  9233. margin-bottom: 10px;
  9234. }
  9235. .e_card_btn {
  9236. height: 40px;
  9237. display: flex;
  9238. align-items: center;
  9239. width: 100%;
  9240. background: rgb(244, 244, 244);
  9241. }
  9242. .e_card_btn:hover {
  9243. background: rgb(221 221 221);
  9244. }
  9245. .e_card_btn span {
  9246. flex: 1 1 auto;
  9247. text-align: center;
  9248. cursor: pointer;
  9249. }
  9250. .addEva {
  9251. border: 1px solid #ccc;
  9252. background: #fff;
  9253. margin-right: 20px;
  9254. width: 270px;
  9255. height: 149px;
  9256. display: flex;
  9257. flex-direction: column;
  9258. align-items: center;
  9259. border-radius: 5px;
  9260. margin-top: 10px;
  9261. text-align: center;
  9262. cursor: pointer;
  9263. justify-content: center;
  9264. }
  9265. .addEva>img {
  9266. width: 50px;
  9267. object-fit: cover;
  9268. }
  9269. .uploadFm {
  9270. border: 1px dashed #ccc;
  9271. width: 202px;
  9272. height: 102px;
  9273. position: relative;
  9274. cursor: pointer;
  9275. }
  9276. .uploadFm>img {
  9277. position: absolute;
  9278. top: 25px;
  9279. left: 35%;
  9280. width: 50px;
  9281. }
  9282. .fileCss {
  9283. width: 100%;
  9284. display: flex;
  9285. flex-direction: row;
  9286. flex-wrap: nowrap;
  9287. justify-content: space-around;
  9288. align-items: center;
  9289. padding-top: 15px;
  9290. }
  9291. .sysPicBox {
  9292. display: flex;
  9293. flex-direction: row;
  9294. flex-wrap: wrap;
  9295. align-content: flex-start;
  9296. height: 435px;
  9297. overflow: auto;
  9298. }
  9299. .sysPic {
  9300. width: 200px;
  9301. height: 115px;
  9302. margin: 0 20px 20px 0;
  9303. cursor: pointer;
  9304. }
  9305. .sysPic>img,
  9306. .isSysPic>img,
  9307. .deletePic>img {
  9308. width: 100%;
  9309. height: 100%;
  9310. object-fit: cover;
  9311. }
  9312. .isSysPic {
  9313. width: 200px;
  9314. height: 115px;
  9315. position: relative;
  9316. }
  9317. .deletePic {
  9318. width: 20px;
  9319. height: 20px;
  9320. position: absolute;
  9321. top: 0;
  9322. right: 0;
  9323. cursor: pointer;
  9324. }
  9325. .select_box1 {}
  9326. .select_box1_img {
  9327. background: #fff;
  9328. border-radius: 5px;
  9329. padding: 15px;
  9330. box-sizing: border-box;
  9331. margin-bottom: 20px;
  9332. }
  9333. .select_box1_title {
  9334. padding: 0 0 15px 0;
  9335. border-bottom: 1px solid #eee;
  9336. margin-bottom: 15px;
  9337. }
  9338. .select_box1_title span:nth-child(1) {
  9339. font-size: 16px;
  9340. margin-right: 20px;
  9341. color: #000;
  9342. }
  9343. .select_box1_title span:nth-child(2) {
  9344. font-size: 14px;
  9345. color: rgb(112, 112, 112);
  9346. }
  9347. .select_box1_add_img {}
  9348. .select_box1_select {
  9349. background: #fff;
  9350. border-radius: 5px;
  9351. padding: 15px;
  9352. box-sizing: border-box;
  9353. }
  9354. .select_box2 {}
  9355. .select_box2_title {
  9356. background: #fff;
  9357. border-radius: 5px;
  9358. padding: 5px 10px;
  9359. box-sizing: border-box;
  9360. margin-bottom: 10px;
  9361. }
  9362. .select_box2_box {
  9363. display: flex;
  9364. height: 500px;
  9365. }
  9366. .select_box2_img {
  9367. width: calc(100% - 310px);
  9368. height: 100%;
  9369. overflow: auto;
  9370. background: #fff;
  9371. border-radius: 5px;
  9372. }
  9373. .select_box2_img img {
  9374. width: 100%;
  9375. }
  9376. .select_box2_answer {
  9377. background: #fff;
  9378. margin-left: 10px;
  9379. border-radius: 5px;
  9380. width: 300px;
  9381. overflow: auto;
  9382. height: 100%;
  9383. display: flex;
  9384. flex-direction: column;
  9385. align-items: center;
  9386. padding-top: 10px;
  9387. box-sizing: border-box;
  9388. }
  9389. .select_box2_answer_box {
  9390. margin: 0 0 10px 0;
  9391. width: 85%;
  9392. }
  9393. .rate_textarea {
  9394. font: inherit;
  9395. color: currentColor;
  9396. width: 100%;
  9397. padding: 8px 14px;
  9398. display: block;
  9399. min-width: 0;
  9400. outline: none;
  9401. border: 1px solid rgba(0, 0, 0, 0.23);
  9402. border-radius: 4px;
  9403. box-sizing: border-box;
  9404. background: #fff;
  9405. margin: 0 20px 0 0;
  9406. resize: none;
  9407. }
  9408. .select_answer_title {
  9409. text-align: left;
  9410. width: 85%;
  9411. margin-bottom: 10px;
  9412. font-size: 18px;
  9413. color: #8e8e8e;
  9414. }
  9415. .mask {
  9416. background-color: rgb(0 0 0 / 30%);
  9417. /* position: fixed; */
  9418. position: absolute;
  9419. top: 0;
  9420. left: 0;
  9421. width: 100%;
  9422. height: 100%;
  9423. z-index: 90;
  9424. display: flex;
  9425. align-items: center;
  9426. justify-content: center;
  9427. }
  9428. .progressBox {
  9429. width: 300px;
  9430. height: 150px;
  9431. background: #fff;
  9432. border-radius: 10px;
  9433. box-shadow: 0 0 6px 1px #bfbfbf;
  9434. display: flex;
  9435. align-items: center;
  9436. justify-content: center;
  9437. flex-direction: column;
  9438. position: relative;
  9439. color: #6c6c6c;
  9440. }
  9441. .progressBox>>>.el-progress-bar__outer {
  9442. background-color: #d1dfff !important;
  9443. }
  9444. .progressBox .lbox {
  9445. height: 50px;
  9446. font-size: 19px;
  9447. display: flex;
  9448. align-items: center;
  9449. color: #747474;
  9450. }
  9451. .progressBox .lbox img {
  9452. width: 40px;
  9453. margin-right: 20px;
  9454. }
  9455. .closeCss {
  9456. position: absolute;
  9457. top: 8px;
  9458. right: 8px;
  9459. cursor: pointer;
  9460. width: 20px;
  9461. height: 20px;
  9462. }
  9463. .closeCss>img {
  9464. width: 100%;
  9465. height: 100%;
  9466. }
  9467. .updateTips::after {
  9468. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  9469. font-size: 14px;
  9470. margin-left: 20px;
  9471. font-weight: 400;
  9472. color: #ff3a3a;
  9473. }
  9474. .updateMask {
  9475. width: 100%;
  9476. z-index: 3;
  9477. top: 0;
  9478. position: absolute;
  9479. /* background-color: rgba(0,0,0,.3); */
  9480. }
  9481. .t_j_box {
  9482. display: flex;
  9483. }
  9484. .t_j_box span:nth-child(1) {
  9485. width: 15%;
  9486. overflow: hidden;
  9487. margin-right: 10px;
  9488. text-overflow: ellipsis;
  9489. white-space: nowrap;
  9490. }
  9491. .t_j_box span:nth-child(2) {
  9492. width: 30%;
  9493. overflow: hidden;
  9494. text-overflow: ellipsis;
  9495. margin-right: 10px;
  9496. }
  9497. .t_j_box span:nth-child(3) {
  9498. max-width: calc(55% - 20px);
  9499. overflow: hidden;
  9500. text-overflow: ellipsis;
  9501. }
  9502. .sentenBox {
  9503. background: #fff;
  9504. height: 600px;
  9505. overflow: auto;
  9506. background-image: url("../../../assets/icon/conSentences/csBg.png");
  9507. background-position: 102%;
  9508. background-repeat: no-repeat;
  9509. background-size: 60%;
  9510. }
  9511. .addSen {
  9512. background: #409efe;
  9513. width: 90px;
  9514. color: #fff;
  9515. height: 35px;
  9516. text-align: center;
  9517. line-height: 35px;
  9518. border-radius: 5px;
  9519. float: right;
  9520. margin: 10px 20px 0 0;
  9521. cursor: pointer;
  9522. }
  9523. .sentenTop {
  9524. display: flex;
  9525. flex-direction: row;
  9526. flex-wrap: nowrap;
  9527. align-items: center;
  9528. }
  9529. .sentenTop>div:nth-child(2) {
  9530. width: 300px;
  9531. margin: 0 15px;
  9532. }
  9533. .sentenTop>div:nth-child(3) {
  9534. background: #409efe;
  9535. color: #fff;
  9536. width: 65px;
  9537. height: 35px;
  9538. text-align: center;
  9539. line-height: 35px;
  9540. border-radius: 5px;
  9541. cursor: pointer;
  9542. }
  9543. .cardList {
  9544. padding: 30px 0 20px 0;
  9545. display: flex;
  9546. flex-direction: row;
  9547. flex-wrap: wrap;
  9548. align-items: center;
  9549. box-sizing: border-box;
  9550. border-bottom: 1px solid #f4f4f4;
  9551. width: 98%;
  9552. margin: 0 auto;
  9553. }
  9554. .cardBox {
  9555. display: flex;
  9556. flex-direction: row;
  9557. flex-wrap: wrap;
  9558. align-items: center;
  9559. align-content: center;
  9560. }
  9561. .isCard,
  9562. .isCard1 {
  9563. width: 140px;
  9564. height: 65px;
  9565. text-align: center;
  9566. line-height: 65px;
  9567. font-size: 20px;
  9568. cursor: pointer;
  9569. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  9570. background-size: cover;
  9571. position: relative;
  9572. z-index: 99;
  9573. }
  9574. .isCard1 {
  9575. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  9576. }
  9577. .isCard:hover .deleteWord {
  9578. display: block;
  9579. }
  9580. .isCard>div:nth-child(1),
  9581. .isCard1>div:nth-child(1) {
  9582. white-space: nowrap;
  9583. overflow: hidden;
  9584. text-overflow: ellipsis;
  9585. width: 80%;
  9586. margin: 0 auto;
  9587. }
  9588. .card {
  9589. width: 140px;
  9590. height: 65px;
  9591. }
  9592. .card>img {
  9593. width: 100%;
  9594. height: 100%;
  9595. }
  9596. .rightCardBox {
  9597. margin: 10px 0 0 10px;
  9598. }
  9599. .rightCardBox>div:nth-child(1) {
  9600. margin-bottom: 10px;
  9601. }
  9602. .cardCss {
  9603. display: flex;
  9604. flex-direction: column;
  9605. flex-wrap: nowrap;
  9606. align-items: center;
  9607. border-bottom: 3px solid #b4c3d3;
  9608. padding: 0 0 5px 0;
  9609. margin-right: 10px;
  9610. }
  9611. .cardCss>div:nth-child(2) {
  9612. background: #5b7b9d;
  9613. color: #fff;
  9614. width: 20px;
  9615. height: 20px;
  9616. border-radius: 50%;
  9617. text-align: center;
  9618. line-height: 20px;
  9619. }
  9620. .sentenTopBox {
  9621. display: flex;
  9622. flex-direction: row;
  9623. flex-wrap: nowrap;
  9624. align-items: center;
  9625. justify-content: space-between;
  9626. padding: 55px 0 0 20px;
  9627. box-sizing: border-box;
  9628. width: 85%;
  9629. }
  9630. .stepsBottom {
  9631. width: 85%;
  9632. margin-bottom: 20px;
  9633. box-shadow: 0 0 10px 10px #f7f7f7;
  9634. background: #f7f7f7;
  9635. border-radius: 10px;
  9636. overflow: hidden;
  9637. }
  9638. .course_left {
  9639. width: 300px;
  9640. height: auto;
  9641. position: relative;
  9642. }
  9643. .stepsBottom2 {
  9644. width: 300px;
  9645. margin: 20px 0;
  9646. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  9647. /* background: #f7f7f7; */
  9648. border-radius: 10px;
  9649. overflow: hidden;
  9650. height: fit-content;
  9651. position: relative;
  9652. /* transition: all .5s; */
  9653. }
  9654. .navTop {
  9655. background: #53749b;
  9656. color: #fff;
  9657. height: 40px;
  9658. line-height: 40px;
  9659. padding-left: 15px;
  9660. font-size: 18px;
  9661. }
  9662. .navBottom {
  9663. background: #6b91b7;
  9664. height: 300px;
  9665. overflow: auto;
  9666. }
  9667. .navTask {
  9668. display: flex;
  9669. flex-direction: row;
  9670. flex-wrap: nowrap;
  9671. align-items: center;
  9672. padding: 5px 5px 5px 0;
  9673. cursor: pointer;
  9674. background: #ffffff;
  9675. width: 95%;
  9676. margin: 10px auto;
  9677. box-sizing: border-box;
  9678. border-radius: 5px;
  9679. }
  9680. .isNavTask {
  9681. /* background: #7e9ebd; */
  9682. }
  9683. .navTask>div:nth-child(1) {
  9684. background: #468fe4;
  9685. color: #fff;
  9686. width: 65px;
  9687. height: 25px;
  9688. line-height: 25px;
  9689. text-align: center;
  9690. border-radius: 5px;
  9691. margin: 0 10px 0 5px;
  9692. font-size: 14px;
  9693. }
  9694. .navTask>div:nth-child(2) {
  9695. /* color: #fff; */
  9696. /* max-width: 130px; */
  9697. width: 130px;
  9698. white-space: nowrap;
  9699. overflow: hidden;
  9700. text-overflow: ellipsis;
  9701. font-size: 15px;
  9702. }
  9703. .groupBox {}
  9704. .groupContent+.groupContent {
  9705. margin-top: 30px;
  9706. }
  9707. .groupTitle {
  9708. font-size: 24px;
  9709. color: rgb(80, 80, 80);
  9710. margin-bottom: 20px;
  9711. }
  9712. .groupName {
  9713. display: flex;
  9714. align-items: center;
  9715. }
  9716. .groupn {
  9717. font-size: 15px;
  9718. margin-right: 10px;
  9719. }
  9720. .groupName+.groupName {
  9721. margin-top: 15px;
  9722. }
  9723. .groupBtn {
  9724. margin-left: 10px;
  9725. }
  9726. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  9727. text-align: left;
  9728. }
  9729. .radioBox>div {
  9730. margin: 10px 0 0 10px;
  9731. }
  9732. .radioBox>>>.el-radio__input,
  9733. .radioBox>>>.el-checkbox__inner {
  9734. margin-left: 10px;
  9735. }
  9736. .radioBox>>>.el-radio__label,
  9737. .radioBox>>>.el-checkbox__label {
  9738. display: flex;
  9739. align-items: center;
  9740. }
  9741. .inImg {
  9742. width: 50px;
  9743. }
  9744. .inImg>img {
  9745. width: 100%;
  9746. height: 100%;
  9747. object-fit: cover;
  9748. }
  9749. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  9750. height: auto;
  9751. }
  9752. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  9753. width: 200px;
  9754. height: 100px;
  9755. object-fit: contain;
  9756. background: unset;
  9757. }
  9758. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  9759. display: none;
  9760. }
  9761. .tcMember+.tcMember::before {
  9762. content: "、";
  9763. }
  9764. .xzUpImg {
  9765. width: 25px;
  9766. height: 25px;
  9767. cursor: pointer;
  9768. }
  9769. .xzUpImg>img {
  9770. width: 100%;
  9771. height: 100%;
  9772. }
  9773. .closeCss {
  9774. position: absolute;
  9775. top: 8px;
  9776. right: 8px;
  9777. cursor: pointer;
  9778. width: 20px;
  9779. height: 20px;
  9780. }
  9781. .closeCss>img {
  9782. width: 100%;
  9783. height: 100%;
  9784. }
  9785. .moveBtn {
  9786. display: flex;
  9787. flex-direction: column;
  9788. align-items: flex-end;
  9789. width: 40px;
  9790. }
  9791. .timuUpImg {
  9792. display: flex;
  9793. flex-direction: row;
  9794. align-items: center;
  9795. }
  9796. .timuUpImg>div:nth-child(1) {
  9797. margin-right: 10px;
  9798. }
  9799. .timuImgBox {
  9800. margin: 10px 0;
  9801. display: flex;
  9802. flex-direction: column;
  9803. flex-wrap: wrap;
  9804. align-items: flex-start;
  9805. }
  9806. .timuImg {
  9807. width: 100px;
  9808. margin: 5px 0;
  9809. cursor: pointer;
  9810. position: relative;
  9811. }
  9812. .timuImg:hover .deleteWord {
  9813. display: block;
  9814. }
  9815. .deleteWord {
  9816. width: 25px;
  9817. height: 25px;
  9818. position: absolute;
  9819. right: -5px;
  9820. top: -5px;
  9821. cursor: pointer;
  9822. display: none;
  9823. }
  9824. .timuImg>img,
  9825. .deleteWord>img {
  9826. width: 100%;
  9827. height: 100%;
  9828. object-fit: cover;
  9829. }
  9830. .e_add_delete {
  9831. cursor: pointer;
  9832. margin-left: 10px;
  9833. }
  9834. .pType_box {
  9835. margin-top: 30px;
  9836. align-items: flex-end;
  9837. }
  9838. .noneBox {
  9839. height: 100%;
  9840. width: 100%;
  9841. display: flex;
  9842. align-items: center;
  9843. justify-content: center;
  9844. margin-top: 150px;
  9845. }
  9846. .noneBox>img {
  9847. width: 300px;
  9848. }
  9849. </style>