addCourse.vue 410 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612
  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. <el-breadcrumb separator-class="el-icon-arrow-right">
  10. <el-breadcrumb-item :to="{
  11. path:
  12. '/course?userid=' +
  13. userid +
  14. '&oid=' +
  15. oid +
  16. '&org=' +
  17. org +
  18. '&role=' +
  19. role,
  20. }">课程管理</el-breadcrumb-item>
  21. <el-breadcrumb-item>
  22. <span style="color: rgb(15, 126, 255)">添加课程</span>
  23. </el-breadcrumb-item>
  24. </el-breadcrumb>
  25. </div>
  26. </div>
  27. <div class="rightBox" style="padding: 30px 10px;" v-if="this.steps == 1" @mousewheel="scrollChange">
  28. <div class="updateMask" :style="{
  29. height: rightBoxHeight ? rightBoxHeight + 'px' : '100%',
  30. }" v-if="cid && userid != courseUserid && role != '1'"></div>
  31. <div class="whiteBg">
  32. <div class="basic_box">
  33. <div class="course_input_box">
  34. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon.png" /></div>
  35. <input type="text" placeholder="请输入课程名称" class="binfo_input" v-model="courseName"
  36. style="border: 1px solid #CAD1DC;background: #fcfcfc;" />
  37. <el-switch v-model="isTeacherSee" active-text="是否公开此课程"></el-switch>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="whiteBg">
  42. <div class="basic_box">
  43. <div class="big_box">
  44. <div class="left_first">
  45. <div class="pType_box all_choose" v-if="oid == '69893dca-1d47-11ed-8c78-005056b86db5'">
  46. <span>类型</span>
  47. <!-- 学科+ 主题+ 未来+ -->
  48. <el-radio-group @change="CourseType2Change" v-model="pTypeCheckName"
  49. style="display: flex; align-items: center">
  50. <div class="all_choose" style="width: 100px" v-for="(item, index) in CourseType2" :key="index">
  51. <el-radio :label="item.name">{{
  52. item.name
  53. }}</el-radio>
  54. </div>
  55. </el-radio-group>
  56. </div>
  57. <div class="both">
  58. <div class="choose">
  59. <div class="all_choose" v-for="(item, index) in CourseType[0]" :key="index">
  60. <span v-if="CourseTypeJson[item.id].length > 0 &&
  61. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  62. ? pTypeCheck.indexOf(item.id) != -1
  63. : true)
  64. ">{{ item.name }}:</span>
  65. <el-checkbox-group v-model="courseTypeId" v-if="CourseTypeJson[item.id].length > 0 &&
  66. (oid == '69893dca-1d47-11ed-8c78-005056b86db5'
  67. ? pTypeCheck.indexOf(item.id) != -1
  68. : true)
  69. ">
  70. <el-checkbox v-for="item1 in CourseTypeJson[item.id]" :key="item1.id" :label="item1.id">{{
  71. item1.name }}</el-checkbox>
  72. </el-checkbox-group>
  73. <!-- <div
  74. v-else
  75. style="font-size: 14px; margin-left: -8px"
  76. >
  77. 暂无
  78. </div> -->
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="right_first">
  84. <div>
  85. <div class="uploadFm" @click="choosePicVisible = true" v-if="cover.length == 0">
  86. <img src="../../../assets/icon/addPoster.png" alt="" />
  87. <div>点击添加封面</div>
  88. </div>
  89. <el-upload :class="{ disUoloadSty: noneBtnImg }" class="upCss" action="#" list-type="picture"
  90. v-loading="uploadLoading1" :http-request="beforeUpload1" ref="upload1"
  91. :on-preview="handlePictureCardPreview" :on-remove="handle_remove1" :show-file-list="true"
  92. :file-list="cover" accept="image/*" :limit="1" :on-exceed="onExceed" v-else>
  93. <i class="el-icon-plus"></i>
  94. </el-upload>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="whiteBg" style="border-radius: 0">
  101. <div class="wb_j_box">
  102. <div class="wb_j_box_content">
  103. <button class="c_pub_button_add pub_btn_add_img" @click="
  104. (dialogVisibleClass = true),
  105. (classSearch = ''),
  106. getClass()
  107. ">添加班级</button>
  108. <div v-if="checkboxList2.length" class="wb_j_box_p_box">
  109. <span :class="{ tcMember: getClassC(tc) }" v-for="(tc, tcIndex) in checkboxList2" :key="tcIndex">{{
  110. getClassC(tc) }}</span>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <div class="whiteBg" style="border-radius: 0; margin-top: 15px" v-if="false">
  116. <div class="right_title">课程简要描述</div>
  117. <div style="width: 95%; padding: 15px 0px 15px 20px">
  118. <div style="width: 55%">
  119. <textarea rows="8" class="binfo_input" cols v-model="courseText" :placeholder="'1、课程内容说明' +
  120. '\n' +
  121. '2、课程学习知识目标' +
  122. '\n' +
  123. '3、课程学习技能目标'
  124. "></textarea>
  125. </div>
  126. </div>
  127. </div>
  128. <div class="whiteBg" style="border-radius: 0; margin-top: 15px">
  129. <div class="right_title">
  130. <div class="bb_courseIcon"><img src="../../../assets/icon/new/course_icon2.png" />
  131. </div>
  132. <span style="margin:0 10px">上传课程内容</span>
  133. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteTask" style="margin-left: 145px">智能粘贴</button>
  134. </div>
  135. <div style="padding: 0 0 0 20px; display: flex">
  136. <div class="course_left">
  137. <div class="stepsBottom2">
  138. <div class="navBottom">
  139. <div class="navTask" :class="{
  140. isNavTask:
  141. isClickColor > 0 && isClickColor == tIndex + 1,
  142. }" v-for="(t, tIndex) in unitJson[unitIndex].chapterInfo[0]
  143. .taskJson" :key="tIndex" @click="goToTask(tIndex)">
  144. <div class="nt_taskBox">
  145. <div class="nt_taskTitle">任务{{ tIndex + 1 }}</div>
  146. <div class="nt_taskName">
  147. <el-tooltip effect="light" :content="t.task" placement="top">
  148. <span>{{ t.task }}</span>
  149. </el-tooltip>
  150. </div>
  151. </div>
  152. <div class="moveBtn" v-if="unitJson[unitIndex].chapterInfo[0].taskJson.length >
  153. 1
  154. ">
  155. <div class="chapter_upload_up" @click.stop="taskMove(1, tIndex)"></div>
  156. <div class="chapter_upload_down" @click.stop="taskMove(2, tIndex)"></div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. <div class="basic_box2">
  163. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  164. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  165. <div class="taskBorder">
  166. <div class="basic_box" style="
  167. margin: 0;
  168. min-height: 0;
  169. padding: 10px 0 !important;
  170. ">
  171. <div style="
  172. display: flex;
  173. margin: 0 0 20px 0;
  174. flex-direction: row;
  175. justify-content: flex-start;
  176. align-items: center;
  177. ">
  178. <div class="lineTitle">学习内容</div>
  179. </div>
  180. <div>
  181. <div class="add_chapters_box add_c_none" v-if="item.taskJson[0].chapterData &&
  182. item.taskJson[0].chapterData.length == 0
  183. "><img src="../../../assets/icon/new/c_none.png" alt /></div>
  184. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  185. <div class="chapter_upload" v-for="(item1, index1) in item.taskJson[0]
  186. .chapterData" :key="item1.id" @click="
  187. getChapterData(
  188. $event,
  189. unitIndex,
  190. index,
  191. index1,
  192. item1.type
  193. )
  194. ">
  195. <div class="chapter_upload_t" style="width: 100%"></div>
  196. <div class="chapter_upload_o" style="
  197. position: relative;
  198. display: flex;
  199. align-items: center;
  200. ">
  201. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  202. <div v-if="item1.type == 2" class="chapter_upload_l_i2"></div>
  203. <div v-if="item1.type == 3" class="chapter_upload_l_i3" style="margin-left: 1px"></div>
  204. <div v-if="item1.type == 6" class="chapter_upload_l_i6" style="margin-left: 1px"></div>
  205. <!-- <div v-if="item1.type == 7" class="chapter_upload_l_i8" style="margin-left: 1px"></div> -->
  206. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  207. <div v-if="item1.type == 12" class="chapter_upload_l_i12" style="margin-left: 1px">
  208. </div>
  209. <div v-if="item1.type == 13" class="chapter_upload_l_i13" style="margin-left: 1px">
  210. </div>
  211. </div>
  212. <div class="chapter_upload_n">
  213. <input v-if="item1.type == 2 ||
  214. item1.type == 3 ||
  215. item1.type == 12 ||
  216. item1.type == 13 ||
  217. item1.type == 7
  218. " v-model="item1.name" :placeholder="item1.name" @change="
  219. updataVideoT(
  220. $event,
  221. unitIndex,
  222. 0,
  223. index1
  224. )
  225. " style="
  226. border: none;
  227. outline: none;
  228. width: 80%;
  229. minwidth: 215px;
  230. z-index: 99;
  231. font-size: 14px;
  232. white-space: nowrap;
  233. overflow: hidden;
  234. text-overflow: ellipsis;
  235. " />
  236. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  237. border: none;
  238. outline: none;
  239. width: 80%;
  240. white-space: nowrap;
  241. overflow: hidden;
  242. text-overflow: ellipsis;
  243. " readonly="true" @click="selectAttText(0, index1)" />
  244. <input :placeholder="item1.title ? item1.title : '链接'
  245. " v-if="item1.type == 8" style="
  246. border: none;
  247. outline: none;
  248. width: 80%;
  249. white-space: nowrap;
  250. overflow: hidden;
  251. text-overflow: ellipsis;
  252. " readonly="true" @click="selectLine(0, index1)" />
  253. </div>
  254. <div class="chapter_upload_ic">
  255. <div class="chapter_upload_noSee" v-if="item1.type == 12">
  256. </div>
  257. <div class="chapter_upload_ud" style="z-index: 99">
  258. <div class="chapter_upload_up" @click.stop="
  259. upCd(
  260. $event,
  261. unitIndex,
  262. index,
  263. 0,
  264. index1
  265. )
  266. "></div>
  267. <div class="chapter_upload_down" @click.stop="
  268. downCd(
  269. $event,
  270. unitIndex,
  271. index,
  272. 0,
  273. index1
  274. )
  275. "></div>
  276. </div>
  277. <div class="chapter_upload_ic_r" @click.stop="
  278. deleteChapterData(
  279. $event,
  280. unitIndex,
  281. index,
  282. index1,
  283. 0
  284. )
  285. ">
  286. <div></div>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. <div class="add_info_box">
  294. <button class="c_pub_button_add pub_btn_add_img" @click="addImg($event)">
  295. 添加文件
  296. <input type="file" accept="*" style="display: none" v-if="inputShow"
  297. @change="beforeUpload2($event, unitIndex, 13, 0)" />
  298. </button>
  299. <!-- <button class="info_btn" @click="addImg($event)">
  300. 添加视频
  301. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  302. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, 0)
  303. " />
  304. </button>
  305. <button class="info_btn" @click="addImg($event)">
  306. 添加文档
  307. <input type="file"
  308. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  309. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, 0)
  310. " />
  311. </button> -->
  312. <button class="c_pub_button_add pub_btn_add_img" @click="addAttText(0)">
  313. 添加图文
  314. </button>
  315. <button class="c_pub_button_add pub_btn_add_img" @click="openLine(0)">
  316. 添加链接
  317. </button>
  318. <button class="c_pub_button_add pub_btn_add_img" @click="pasteLine(0)">
  319. 嵌入代码
  320. </button>
  321. <!-- <button class="c_pub_button_add pub_btn_add_img" @click="openSource(0)">
  322. 添加资源
  323. </button> -->
  324. <!-- <button class="info_btn" @click="addImg($event)">
  325. 其他附件
  326. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  327. " />
  328. </button> -->
  329. </div>
  330. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  331. .proVisible
  332. " class="mask">
  333. <div class="progressBox">
  334. <!-- <div id="closePro" class="closeCss">
  335. <img src="../../../../assets/icon/close.png" alt />
  336. </div> -->
  337. <div class="lbox">
  338. <img src="../../../assets/loading.gif" />上传中,请稍后
  339. </div>
  340. <div style="margin-bottom: 10px">
  341. <span>{{
  342. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  343. .isFinishSize
  344. }}M</span>
  345. /
  346. <span>{{
  347. unitJson[unitIndex].chapterInfo[0].taskJson[0]
  348. .isAllSize
  349. }}M</span>
  350. </div>
  351. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[0]
  352. .progress
  353. ? unitJson[unitIndex].chapterInfo[0]
  354. .taskJson[0].progress
  355. : 0
  356. " style="width: 80%"></el-progress>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <div class="taskBorder" :style="{
  362. minHeight: unitJson[unitIndex].easy && 'unset',
  363. }" v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  364. <div v-if="unitJson[unitIndex].easy != 1">
  365. <div :style="{
  366. marginBottom:
  367. unitJson[unitIndex].easy == 3 ||
  368. (unitJson[unitIndex].easy == 5 &&
  369. itemTask.taskType == 1)
  370. ? '75px'
  371. : '0',
  372. }">
  373. <div class="chapter_contentbox" style="
  374. flex-direction: row;
  375. justify-content: flex-start;
  376. align-items: center;
  377. ">
  378. <div :id="'task' + itemTaskIndex" class="cc_title">
  379. 任务{{ itemTaskIndex + 1 }}
  380. </div>
  381. <div class="cc_input">
  382. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px"
  383. v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  384. itemTaskIndex
  385. ].task
  386. " />
  387. </div>
  388. <div class="remove" v-if="item.taskJson.length > 1" @click="deleteTask(itemTaskIndex)"></div>
  389. </div>
  390. </div>
  391. </div>
  392. <div style="margin: 25px 0">
  393. <!-- <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  394. itemTaskIndex
  395. ].taskDetail
  396. " @change="change"></editor-bar> -->
  397. <textarea rows="2" class="binfo_input" placeholder="请输入任务描述" cols v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  398. itemTaskIndex
  399. ].taskDetail
  400. "></textarea>
  401. </div>
  402. <div class="toolChoose" style="margin: 20px 0">
  403. <div class="tools">
  404. <div class="leftTools" style="
  405. width: 100%;
  406. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  407. <div>
  408. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input" style="
  409. margin: 0 0 20px 0;
  410. " v-model="itemTool.toolDetail"></textarea>
  411. </div>
  412. <div style="
  413. display: flex;
  414. flex-direction: row;
  415. align-items: baseline;
  416. flex-wrap: nowrap;
  417. justify-content: flex-start;
  418. position: relative;
  419. ">
  420. <div style="margin-right: 20px; font-weight: bold">
  421. 步骤 {{ toolIndex + 1 }} :
  422. </div>
  423. <div class="chooseWho">
  424. <!-- <div :class="itemTool.toolType == 0 ? 'isChooseActive' : ''
  425. " @click="(itemTool.toolType = 0), $forceUpdate()">
  426. 互动类
  427. </div> -->
  428. <div :class="itemTool.toolType == 1
  429. ? 'isChooseActive'
  430. : ''
  431. " @click="
  432. (itemTool.toolType = 1), $forceUpdate()
  433. ">
  434. 思维类
  435. </div>
  436. <div :class="itemTool.toolType == 6
  437. ? 'isChooseActive'
  438. : ''
  439. " @click="
  440. (itemTool.toolType = 6), $forceUpdate()
  441. ">
  442. 协作类
  443. </div>
  444. <div :class="itemTool.toolType == 2
  445. ? 'isChooseActive'
  446. : ''
  447. " @click="
  448. (itemTool.toolType = 2), $forceUpdate()
  449. ">
  450. 测评类
  451. </div>
  452. <div :class="itemTool.toolType == 7
  453. ? 'isChooseActive'
  454. : ''
  455. " @click="
  456. (itemTool.toolType = 7), $forceUpdate()
  457. ">
  458. 评价类
  459. </div>
  460. <div :class="itemTool.toolType == 3
  461. ? 'isChooseActive'
  462. : ''
  463. " @click="
  464. (itemTool.toolType = 3), $forceUpdate()
  465. ">
  466. 学科类
  467. </div>
  468. <!-- <div :class="itemTool.toolType == 5 ? 'isChooseActive' : ''
  469. " @click="(itemTool.toolType = 5), $forceUpdate()">
  470. 学科类
  471. </div>
  472. <div :class="itemTool.toolType == 4 ? 'isChooseActive' : ''
  473. " @click="(itemTool.toolType = 4), $forceUpdate()">
  474. 其他
  475. </div> -->
  476. </div>
  477. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  478. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 0"></div>
  479. </div>
  480. <div style="min-height: 163px">
  481. <div class="toolSort" v-if="itemTool.toolType == 0">
  482. <!-- <div class="tool">
  483. <div
  484. class="whiteBIcon"
  485. @click="addTools(8, itemTaskIndex, toolIndex)"
  486. >
  487. <img src="../../../assets/icon/secondToolList/library.png" alt />
  488. <div style="margin: 5px 0">素材库</div>
  489. </div>
  490. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  491. <img
  492. src="../../../assets/icon/checkNo.png"
  493. alt
  494. v-if="itemTool.tool.indexOf(8) == -1"
  495. />
  496. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  497. alt /><span>已选择</span></div>
  498. </div>
  499. </div>-->
  500. <!-- <div class="tool">
  501. <div
  502. class="whiteBIcon"
  503. @click="addTools(17, itemTaskIndex, toolIndex)"
  504. >
  505. <img
  506. src="../../../assets/icon/secondToolList/library.png"
  507. alt
  508. />
  509. <div style="margin: 5px 0">学习资料</div>
  510. </div>
  511. <div
  512. class="check"
  513. @click="addTools(17, itemTaskIndex, toolIndex)"
  514. >
  515. <img
  516. src="../../../assets/icon/checkNo.png"
  517. alt
  518. v-if="itemTool.tool.indexOf(17) == -1"
  519. />
  520. <img
  521. src="../../../assets/icon/checkedIs.png"
  522. alt
  523. v-else
  524. />
  525. </div>10
  526. </div> -->
  527. <div class="tool">
  528. <div class="whiteBIcon" @click="
  529. openTools(itemTaskIndex, 10, toolIndex)
  530. ">
  531. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  532. <div style="margin: 5px 0">倒计时</div>
  533. </div>
  534. <div class="check" @click="
  535. addTools(10, itemTaskIndex, toolIndex)
  536. ">
  537. <img src="../../../assets/icon/checkNo.png" alt
  538. v-if="itemTool.tool.indexOf(10) == -1" />
  539. <div class="checkDiv" v-else>
  540. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  541. </div>
  542. </div>
  543. </div>
  544. <!-- <div class="tool">
  545. <div
  546. class="whiteBIcon"
  547. @click="
  548. openTools(itemTaskIndex, 49, toolIndex)
  549. "
  550. >
  551. <img
  552. src="../../../assets/icon/fourthToolList/group.png"
  553. alt
  554. />
  555. <div style="margin: 5px 0">学生分组</div>
  556. </div>
  557. <div
  558. class="check"
  559. @click="
  560. addTools(49, itemTaskIndex, toolIndex)
  561. "
  562. >
  563. <img
  564. src="../../../assets/icon/checkNo.png"
  565. alt
  566. v-if="itemTool.tool.indexOf(49) == -1"
  567. />
  568. <div class="checkDiv" v-else>
  569. <img
  570. src="../../../assets/icon/checkedIs.png"
  571. alt
  572. /><span>已选择</span>
  573. </div>
  574. </div>
  575. </div> -->
  576. <div class="tool">
  577. <div class="whiteBIcon" @click="
  578. openTools(itemTaskIndex, 62, toolIndex)
  579. ">
  580. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  581. <div style="margin: 5px 0">交互视频</div>
  582. </div>
  583. <div class="check" @click="
  584. addTools(62, itemTaskIndex, toolIndex)
  585. ">
  586. <img src="../../../assets/icon/checkNo.png" alt
  587. v-if="itemTool.tool.indexOf(62) == -1" />
  588. <div class="checkDiv" v-else>
  589. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  590. </div>
  591. </div>
  592. </div>
  593. </div>
  594. <div class="toolSort" v-if="itemTool.toolType == 1">
  595. <div class="tool">
  596. <div class="whiteBIcon" @click="
  597. addTools(7, itemTaskIndex, toolIndex)
  598. ">
  599. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  600. <div style="margin: 5px 0">思维网格</div>
  601. </div>
  602. <div class="check" @click="
  603. addTools(7, itemTaskIndex, toolIndex)
  604. ">
  605. <img src="../../../assets/icon/checkNo.png" alt
  606. v-if="itemTool.tool.indexOf(7) == -1" />
  607. <div class="checkDiv" v-else>
  608. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  609. </div>
  610. </div>
  611. </div>
  612. <div class="tool">
  613. <div class="whiteBIcon" @click="
  614. openTools(itemTaskIndex, 1, toolIndex)
  615. ">
  616. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  617. <div style="margin: 5px 0">电子白板</div>
  618. </div>
  619. <div class="check" @click="
  620. addTools(1, itemTaskIndex, toolIndex)
  621. ">
  622. <img src="../../../assets/icon/checkNo.png" alt
  623. v-if="itemTool.tool.indexOf(1) == -1" />
  624. <div class="checkDiv" v-else>
  625. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  626. </div>
  627. </div>
  628. </div>
  629. <!-- <div class="tool">
  630. <div
  631. class="whiteBIcon"
  632. @click="addTools(2, itemTaskIndex, toolIndex)"
  633. >
  634. <img
  635. src="../../../assets/icon/secondToolList/note.png"
  636. alt
  637. />
  638. <div style="margin: 5px 0">便签</div>
  639. </div>
  640. <div
  641. class="check"
  642. @click="addTools(2, itemTaskIndex, toolIndex)"
  643. >
  644. <img
  645. src="../../../assets/icon/checkNo.png"
  646. alt
  647. v-if="itemTool.tool.indexOf(2) == -1"
  648. />
  649. <div class="checkDiv" v-else>
  650. <img
  651. src="../../../assets/icon/checkedIs.png"
  652. alt
  653. /><span>已选择</span>
  654. </div>
  655. </div>
  656. </div> -->
  657. <!-- <div class="tool">
  658. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  659. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  660. <div style="margin: 5px 0">协同文档</div>
  661. </div>
  662. <div
  663. class="check"
  664. @click="addTools(6, itemTaskIndex, toolIndex)"
  665. >
  666. <img
  667. src="../../../assets/icon/checkNo.png"
  668. alt
  669. v-if="itemTool.tool.indexOf(6) == -1"
  670. />
  671. <div class="checkDiv" v-else>
  672. <img
  673. src="../../../assets/icon/checkedIs.png"
  674. alt
  675. /><span>已选择</span>
  676. </div>
  677. </div>
  678. </div> -->
  679. <div class="tool">
  680. <div class="whiteBIcon" @click="
  681. openTools(itemTaskIndex, 52, toolIndex)
  682. ">
  683. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  684. <div style="margin: 5px 0">文档</div>
  685. </div>
  686. <div class="check" @click="
  687. addTools(52, itemTaskIndex, toolIndex)
  688. ">
  689. <img src="../../../assets/icon/checkNo.png" alt
  690. v-if="itemTool.tool.indexOf(52) == -1" />
  691. <div class="checkDiv" v-else>
  692. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  693. </div>
  694. </div>
  695. </div>
  696. <div class="tool">
  697. <div class="whiteBIcon" @click="
  698. openTools(itemTaskIndex, 3, toolIndex)
  699. ">
  700. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  701. <div style="margin: 5px 0">思维导图</div>
  702. </div>
  703. <div class="check" @click="
  704. addTools(3, itemTaskIndex, toolIndex)
  705. ">
  706. <img src="../../../assets/icon/checkNo.png" alt
  707. v-if="itemTool.tool.indexOf(3) == -1" />
  708. <div class="checkDiv" v-else>
  709. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  710. </div>
  711. </div>
  712. </div>
  713. <div class="tool">
  714. <div class="whiteBIcon" @click="
  715. openTools(itemTaskIndex, 48, toolIndex)
  716. ">
  717. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  718. <div style="margin: 5px 0">表格</div>
  719. </div>
  720. <div class="check" @click="
  721. addTools(48, itemTaskIndex, toolIndex)
  722. ">
  723. <img src="../../../assets/icon/checkNo.png" alt
  724. v-if="itemTool.tool.indexOf(48) == -1" />
  725. <div class="checkDiv" v-else>
  726. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  727. </div>
  728. </div>
  729. </div>
  730. </div>
  731. <div class="toolSort" v-if="itemTool.toolType == 6">
  732. <div class="tool">
  733. <div class="whiteBIcon" @click="
  734. openTools(itemTaskIndex, 49, toolIndex)
  735. ">
  736. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  737. <div style="margin: 5px 0">学生分组</div>
  738. </div>
  739. <div class="check" @click="
  740. addTools(49, itemTaskIndex, toolIndex)
  741. ">
  742. <img src="../../../assets/icon/checkNo.png" alt
  743. v-if="itemTool.tool.indexOf(49) == -1" />
  744. <div class="checkDiv" v-else>
  745. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  746. </div>
  747. </div>
  748. </div>
  749. </div>
  750. <div class="toolSort" v-if="itemTool.toolType == 2">
  751. <!-- <div class="tool">
  752. <div
  753. class="whiteBIcon"
  754. @click="addTools(5, itemTaskIndex, toolIndex)"
  755. >
  756. <img
  757. src="../../../assets/icon/thirdToolList/score.png"
  758. alt
  759. />
  760. <div style="margin: 5px 0">量规评分</div>
  761. </div>
  762. <div
  763. class="check"
  764. @click="addTools(5, itemTaskIndex, toolIndex)"
  765. >
  766. <img
  767. src="../../../assets/icon/checkNo.png"
  768. alt
  769. v-if="itemTool.tool.indexOf(5) == -1"
  770. />
  771. <img
  772. src="../../../assets/icon/checkedIs.png"
  773. alt
  774. v-else
  775. />
  776. </div>
  777. </div>-->
  778. <div class="tool">
  779. <div class="whiteBIcon" @click="
  780. openTools(itemTaskIndex, 4, toolIndex)
  781. ">
  782. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  783. <div style="margin: 5px 0">问卷调查</div>
  784. </div>
  785. <div class="check" @click="
  786. addTools(4, itemTaskIndex, toolIndex)
  787. ">
  788. <img src="../../../assets/icon/checkNo.png" alt
  789. v-if="itemTool.tool.indexOf(4) == -1" />
  790. <div class="checkDiv" v-else>
  791. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  792. </div>
  793. </div>
  794. </div>
  795. <div class="tool">
  796. <div class="whiteBIcon" @click="
  797. openTools(itemTaskIndex, 45, toolIndex)
  798. ">
  799. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  800. <div style="margin: 5px 0">选择题</div>
  801. </div>
  802. <div class="check" @click="
  803. addTools(45, itemTaskIndex, toolIndex)
  804. ">
  805. <img src="../../../assets/icon/checkNo.png" alt
  806. v-if="itemTool.tool.indexOf(45) == -1" />
  807. <div class="checkDiv" v-else>
  808. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  809. </div>
  810. </div>
  811. </div>
  812. <div class="tool">
  813. <div class="whiteBIcon" @click="
  814. openTools(itemTaskIndex, 15, toolIndex)
  815. ">
  816. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  817. <div style="margin: 5px 0">问答工具</div>
  818. </div>
  819. <div class="check" @click="
  820. addTools(15, itemTaskIndex, toolIndex)
  821. ">
  822. <img src="../../../assets/icon/checkNo.png" alt
  823. v-if="itemTool.tool.indexOf(15) == -1" />
  824. <div class="checkDiv" v-else>
  825. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  826. </div>
  827. </div>
  828. </div>
  829. <div class="tool">
  830. <div class="whiteBIcon" @click="
  831. addTools(16, itemTaskIndex, toolIndex)
  832. ">
  833. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  834. <div style="margin: 5px 0">作业提交</div>
  835. </div>
  836. <div class="check" @click="
  837. addTools(16, itemTaskIndex, toolIndex)
  838. ">
  839. <img src="../../../assets/icon/checkNo.png" alt
  840. v-if="itemTool.tool.indexOf(16) == -1" />
  841. <div class="checkDiv" v-else>
  842. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  843. </div>
  844. </div>
  845. </div>
  846. <div class="tool">
  847. <div class="whiteBIcon" @click="
  848. addTools(50, itemTaskIndex, toolIndex)
  849. ">
  850. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  851. <div style="margin: 5px 0">批量上传</div>
  852. </div>
  853. <div class="check" @click="
  854. addTools(50, itemTaskIndex, toolIndex)
  855. ">
  856. <img src="../../../assets/icon/checkNo.png" alt
  857. v-if="itemTool.tool.indexOf(50) == -1" />
  858. <div class="checkDiv" v-else>
  859. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  860. </div>
  861. </div>
  862. </div>
  863. <!-- <div class="tool">
  864. <div
  865. class="whiteBIcon"
  866. @click="
  867. openTools(itemTaskIndex, 40, toolIndex)
  868. "
  869. >
  870. <img
  871. src="../../../assets/icon/thirdToolList/eval.png"
  872. alt
  873. />
  874. <div style="margin: 5px 0">个人评价</div>
  875. </div>
  876. <div
  877. class="check"
  878. @click="
  879. addTools(40, itemTaskIndex, toolIndex)
  880. "
  881. >
  882. <img
  883. src="../../../assets/icon/checkNo.png"
  884. alt
  885. v-if="itemTool.tool.indexOf(40) == -1"
  886. />
  887. <div class="checkDiv" v-else>
  888. <img
  889. src="../../../assets/icon/checkedIs.png"
  890. alt
  891. /><span>已选择</span>
  892. </div>
  893. </div>
  894. </div> -->
  895. <div class="tool">
  896. <div class="whiteBIcon" @click="
  897. openTools(itemTaskIndex, 41, toolIndex)
  898. ">
  899. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  900. <div style="margin: 5px 0">选择填空</div>
  901. </div>
  902. <div class="check" @click="
  903. addTools(41, itemTaskIndex, toolIndex)
  904. ">
  905. <img src="../../../assets/icon/checkNo.png" alt
  906. v-if="itemTool.tool.indexOf(41) == -1" />
  907. <div class="checkDiv" v-else>
  908. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  909. </div>
  910. </div>
  911. </div>
  912. <div class="tool">
  913. <div class="whiteBIcon" @click="
  914. openTools(itemTaskIndex, 47, toolIndex)
  915. ">
  916. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  917. <div style="margin: 5px 0">连词成句</div>
  918. </div>
  919. <div class="check" @click="
  920. addTools(47, itemTaskIndex, toolIndex)
  921. ">
  922. <img src="../../../assets/icon/checkNo.png" alt
  923. v-if="itemTool.tool.indexOf(47) == -1" />
  924. <div class="checkDiv" v-else>
  925. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  926. </div>
  927. </div>
  928. </div>
  929. <!-- <div class="tool">
  930. <div
  931. class="whiteBIcon"
  932. @click="openTools(itemTaskIndex, 42, toolIndex)"
  933. >
  934. <img
  935. src="../../../assets/icon/thirdToolList/mp3.png"
  936. alt
  937. />
  938. <div style="margin: 5px 0">上传音频</div>
  939. </div>
  940. <div
  941. class="check"
  942. @click="addTools(42, itemTaskIndex, toolIndex)"
  943. >
  944. <img
  945. src="../../../assets/icon/checkNo.png"
  946. alt
  947. v-if="itemTool.tool.indexOf(42) == -1"
  948. />
  949. <img
  950. src="../../../assets/icon/checkedIs.png"
  951. alt
  952. v-else
  953. />
  954. </div>
  955. </div> -->
  956. </div>
  957. <div class="toolSort" v-if="itemTool.toolType == 3">
  958. <div class="tool">
  959. <div class="whiteBIcon" @click="
  960. addTools(18, itemTaskIndex, toolIndex)
  961. ">
  962. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  963. <div style="margin: 5px 0">训练平台</div>
  964. </div>
  965. <div class="check" @click="
  966. addTools(18, itemTaskIndex, toolIndex)
  967. ">
  968. <img src="../../../assets/icon/checkNo.png" alt
  969. v-if="itemTool.tool.indexOf(18) == -1" />
  970. <div class="checkDiv" v-else>
  971. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  972. </div>
  973. </div>
  974. </div>
  975. <div class="tool">
  976. <div class="whiteBIcon" @click="
  977. addTools(21, itemTaskIndex, toolIndex)
  978. ">
  979. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  980. <div style="margin: 5px 0">编程平台</div>
  981. </div>
  982. <div class="check" @click="
  983. addTools(21, itemTaskIndex, toolIndex)
  984. ">
  985. <img src="../../../assets/icon/checkNo.png" alt
  986. v-if="itemTool.tool.indexOf(21) == -1" />
  987. <div class="checkDiv" v-else>
  988. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  989. </div>
  990. </div>
  991. </div>
  992. <div class="tool">
  993. <div class="whiteBIcon" @click="
  994. addTools(22, itemTaskIndex, toolIndex)
  995. ">
  996. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  997. <div style="margin: 5px 0">AI体验</div>
  998. </div>
  999. <div class="check" @click="
  1000. addTools(22, itemTaskIndex, toolIndex)
  1001. ">
  1002. <img src="../../../assets/icon/checkNo.png" alt
  1003. v-if="itemTool.tool.indexOf(22) == -1" />
  1004. <div class="checkDiv" v-else>
  1005. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1006. </div>
  1007. </div>
  1008. </div>
  1009. <div class="tool">
  1010. <div class="whiteBIcon" @click="
  1011. addTools(23, itemTaskIndex, toolIndex)
  1012. ">
  1013. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  1014. <div style="margin: 5px 0">Python</div>
  1015. </div>
  1016. <div class="check" @click="
  1017. addTools(23, itemTaskIndex, toolIndex)
  1018. ">
  1019. <img src="../../../assets/icon/checkNo.png" alt
  1020. v-if="itemTool.tool.indexOf(23) == -1" />
  1021. <div class="checkDiv" v-else>
  1022. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1023. </div>
  1024. </div>
  1025. </div>
  1026. <div class="tool">
  1027. <div class="whiteBIcon" @click="
  1028. addTools(24, itemTaskIndex, toolIndex)
  1029. ">
  1030. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  1031. <div style="margin: 5px 0">AI平台</div>
  1032. </div>
  1033. <div class="check" @click="
  1034. addTools(24, itemTaskIndex, toolIndex)
  1035. ">
  1036. <img src="../../../assets/icon/checkNo.png" alt
  1037. v-if="itemTool.tool.indexOf(24) == -1" />
  1038. <div class="checkDiv" v-else>
  1039. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1040. </div>
  1041. </div>
  1042. </div>
  1043. <!-- <div class="tool">
  1044. <div class="whiteBIcon" @click="
  1045. addTools(32, itemTaskIndex, toolIndex)
  1046. ">
  1047. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  1048. <div style="margin: 5px 0">源码编辑</div>
  1049. </div>
  1050. <div class="check" @click="
  1051. addTools(32, itemTaskIndex, toolIndex)
  1052. ">
  1053. <img src="../../../assets/icon/checkNo.png" alt
  1054. v-if="itemTool.tool.indexOf(32) == -1" />
  1055. <div class="checkDiv" v-else>
  1056. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1057. </div>
  1058. </div>
  1059. </div> -->
  1060. <div class="tool">
  1061. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  1062. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  1063. <div style="margin: 5px 0">CocoPi</div>
  1064. </div>
  1065. <div class="check" @click="
  1066. addTools(57, itemTaskIndex, toolIndex)
  1067. ">
  1068. <img src="../../../assets/icon/checkNo.png" alt
  1069. v-if="itemTool.tool.indexOf(57) == -1" />
  1070. <div class="checkDiv" v-else>
  1071. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1072. </div>
  1073. </div>
  1074. </div>
  1075. <div class="tool">
  1076. <div class="whiteBIcon" @click="
  1077. addTools(63, itemTaskIndex, toolIndex)
  1078. ">
  1079. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  1080. <div style="margin: 5px 0">海龟编程</div>
  1081. </div>
  1082. <div class="check" @click="
  1083. addTools(63, itemTaskIndex, toolIndex)
  1084. ">
  1085. <img src="../../../assets/icon/checkNo.png" alt
  1086. v-if="itemTool.tool.indexOf(63) == -1" />
  1087. <div class="checkDiv" v-else>
  1088. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1089. </div>
  1090. </div>
  1091. </div>
  1092. </div>
  1093. <div class="toolSort" v-if="itemTool.toolType == 5">
  1094. <div class="tool">
  1095. <div class="whiteBIcon" @click="
  1096. addTools(28, itemTaskIndex, toolIndex)
  1097. ">
  1098. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  1099. <div style="margin: 5px 0">翻译</div>
  1100. </div>
  1101. <div class="check" @click="
  1102. addTools(28, itemTaskIndex, toolIndex)
  1103. ">
  1104. <img src="../../../assets/icon/checkNo.png" alt
  1105. v-if="itemTool.tool.indexOf(28) == -1" />
  1106. <div class="checkDiv" v-else>
  1107. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1108. </div>
  1109. </div>
  1110. </div>
  1111. <div class="tool">
  1112. <div class="whiteBIcon" @click="
  1113. addTools(37, itemTaskIndex, toolIndex)
  1114. ">
  1115. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  1116. <div style="margin: 5px 0">魔盒识字</div>
  1117. </div>
  1118. <div class="check" @click="
  1119. addTools(37, itemTaskIndex, toolIndex)
  1120. ">
  1121. <img src="../../../assets/icon/checkNo.png" alt
  1122. v-if="itemTool.tool.indexOf(37) == -1" />
  1123. <div class="checkDiv" v-else>
  1124. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1125. </div>
  1126. </div>
  1127. </div>
  1128. <div class="tool">
  1129. <div class="whiteBIcon" @click="
  1130. addTools(38, itemTaskIndex, toolIndex)
  1131. ">
  1132. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  1133. <div style="margin: 5px 0">24点</div>
  1134. </div>
  1135. <div class="check" @click="
  1136. addTools(38, itemTaskIndex, toolIndex)
  1137. ">
  1138. <img src="../../../assets/icon/checkNo.png" alt
  1139. v-if="itemTool.tool.indexOf(38) == -1" />
  1140. <div class="checkDiv" v-else>
  1141. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1142. </div>
  1143. </div>
  1144. </div>
  1145. <div class="tool">
  1146. <div class="whiteBIcon" @click="
  1147. addTools(31, itemTaskIndex, toolIndex)
  1148. ">
  1149. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  1150. <div style="margin: 5px 0">数学画板</div>
  1151. </div>
  1152. <div class="check" @click="
  1153. addTools(31, itemTaskIndex, toolIndex)
  1154. ">
  1155. <img src="../../../assets/icon/checkNo.png" alt
  1156. v-if="itemTool.tool.indexOf(31) == -1" />
  1157. <div class="checkDiv" v-else>
  1158. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1159. </div>
  1160. </div>
  1161. </div>
  1162. <div class="tool">
  1163. <div class="whiteBIcon" @click="
  1164. addTools(39, itemTaskIndex, toolIndex)
  1165. ">
  1166. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  1167. <div style="margin: 5px 0">GeoGebra</div>
  1168. </div>
  1169. <div class="check" @click="
  1170. addTools(39, itemTaskIndex, toolIndex)
  1171. ">
  1172. <img src="../../../assets/icon/checkNo.png" alt
  1173. v-if="itemTool.tool.indexOf(39) == -1" />
  1174. <div class="checkDiv" v-else>
  1175. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1176. </div>
  1177. </div>
  1178. </div>
  1179. <div class="tool">
  1180. <div class="whiteBIcon" @click="
  1181. addTools(58, itemTaskIndex, toolIndex)
  1182. ">
  1183. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  1184. <div style="margin: 5px 0">模拟驾驶</div>
  1185. </div>
  1186. <div class="check" @click="
  1187. addTools(58, itemTaskIndex, toolIndex)
  1188. ">
  1189. <img src="../../../assets/icon/checkNo.png" alt
  1190. v-if="itemTool.tool.indexOf(58) == -1" />
  1191. <div class="checkDiv" v-else>
  1192. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1193. </div>
  1194. </div>
  1195. </div>
  1196. <div class="tool">
  1197. <div class="whiteBIcon" @click="
  1198. addTools(59, itemTaskIndex, toolIndex)
  1199. ">
  1200. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  1201. <div style="margin: 5px 0">路径搜索</div>
  1202. </div>
  1203. <div class="check" @click="
  1204. addTools(59, itemTaskIndex, toolIndex)
  1205. ">
  1206. <img src="../../../assets/icon/checkNo.png" alt
  1207. v-if="itemTool.tool.indexOf(59) == -1" />
  1208. <div class="checkDiv" v-else>
  1209. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1210. </div>
  1211. </div>
  1212. </div>
  1213. <div class="tool">
  1214. <div class="whiteBIcon" @click="
  1215. addTools(60, itemTaskIndex, toolIndex)
  1216. ">
  1217. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  1218. <div style="margin: 5px 0">深度学习</div>
  1219. </div>
  1220. <div class="check" @click="
  1221. addTools(60, itemTaskIndex, toolIndex)
  1222. ">
  1223. <img src="../../../assets/icon/checkNo.png" alt
  1224. v-if="itemTool.tool.indexOf(60) == -1" />
  1225. <div class="checkDiv" v-else>
  1226. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1227. </div>
  1228. </div>
  1229. </div>
  1230. <div class="tool">
  1231. <div class="whiteBIcon" @click="
  1232. addTools(61, itemTaskIndex, toolIndex)
  1233. ">
  1234. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  1235. <div style="margin: 5px 0">全历史</div>
  1236. </div>
  1237. <div class="check" @click="
  1238. addTools(61, itemTaskIndex, toolIndex)
  1239. ">
  1240. <img src="../../../assets/icon/checkNo.png" alt
  1241. v-if="itemTool.tool.indexOf(61) == -1" />
  1242. <div class="checkDiv" v-else>
  1243. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1244. </div>
  1245. </div>
  1246. </div>
  1247. </div>
  1248. <div class="toolSort" v-if="itemTool.toolType == 7">
  1249. <div class="tool">
  1250. <div class="whiteBIcon" @click="
  1251. openTools(itemTaskIndex, 40, toolIndex)
  1252. ">
  1253. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  1254. <div style="margin: 5px 0">个人评价</div>
  1255. </div>
  1256. <div class="check" @click="
  1257. addTools(40, itemTaskIndex, toolIndex)
  1258. ">
  1259. <img src="../../../assets/icon/checkNo.png" alt
  1260. v-if="itemTool.tool.indexOf(40) == -1" />
  1261. <div class="checkDiv" v-else>
  1262. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. </div>
  1267. <div class="toolSort" v-if="itemTool.toolType == 4">
  1268. <div class="tool">
  1269. <div class="whiteBIcon" @click="
  1270. addTools(26, itemTaskIndex, toolIndex)
  1271. ">
  1272. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  1273. <div style="margin: 5px 0">课程设计</div>
  1274. </div>
  1275. <div class="check" @click="
  1276. addTools(26, itemTaskIndex, toolIndex)
  1277. ">
  1278. <img src="../../../assets/icon/checkNo.png" alt
  1279. v-if="itemTool.tool.indexOf(26) == -1" />
  1280. <div class="checkDiv" v-else>
  1281. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1282. </div>
  1283. </div>
  1284. </div>
  1285. <div class="tool">
  1286. <div class="whiteBIcon" @click="
  1287. addTools(25, itemTaskIndex, toolIndex)
  1288. ">
  1289. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  1290. <div style="margin: 5px 0">目标管理</div>
  1291. </div>
  1292. <div class="check" @click="
  1293. addTools(25, itemTaskIndex, toolIndex)
  1294. ">
  1295. <img src="../../../assets/icon/checkNo.png" alt
  1296. v-if="itemTool.tool.indexOf(25) == -1" />
  1297. <div class="checkDiv" v-else>
  1298. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1299. </div>
  1300. </div>
  1301. </div>
  1302. <!-- <div class="tool">
  1303. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  1304. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  1305. <div style="margin: 5px 0">汉字宫</div>
  1306. </div>
  1307. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  1308. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  1309. <div class="checkDiv" v-else>
  1310. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  1311. </div>
  1312. </div>
  1313. </div> -->
  1314. </div>
  1315. </div>
  1316. </div>
  1317. <div class="addToolFun2" @click="addToolFun(itemTaskIndex)">
  1318. <div class="addToolImg">
  1319. <img src="../../../assets/icon/add.png" alt />
  1320. </div>
  1321. <div>添加工具</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  1327. <div>
  1328. <img src="../../../assets/icon/new/addStage.png" alt />
  1329. <span>添加任务</span>
  1330. </div>
  1331. </div>
  1332. </div>
  1333. </div>
  1334. </div>
  1335. </div>
  1336. </div>
  1337. <div class="rightBox" v-if="this.steps == 2">
  1338. <div class="basic_box" style="padding: 20px 30px 0px !important; box-sizing: border-box">
  1339. <div class="right_title" style="border: none; margin: 0; padding: 0">
  1340. 请选择合适的课程模板
  1341. </div>
  1342. <div class="wordbox">
  1343. <div class="wordTeacher" v-for="(aa, indexF) in templateArray" :key="indexF" @click="checkTemplate(aa)">
  1344. <div class="wordPic">
  1345. <img src="../../../assets/icon/wordMub.png" alt />
  1346. </div>
  1347. <div style="
  1348. margin-top: 10px;
  1349. line-height: 19px;
  1350. overflow: hidden;
  1351. text-overflow: ellipsis;
  1352. white-space: nowrap;
  1353. padding: 0 20px;
  1354. ">
  1355. {{ aa.title }}
  1356. </div>
  1357. </div>
  1358. <div class="wordTeacher" @click="checkTemplate2()">
  1359. <div class="wordPic">
  1360. <img src="../../../assets/icon/wordMub.png" alt />
  1361. </div>
  1362. <div style="
  1363. margin-top: 10px;
  1364. line-height: 19px;
  1365. overflow: hidden;
  1366. text-overflow: ellipsis;
  1367. white-space: nowrap;
  1368. padding: 0 20px;
  1369. ">
  1370. 任务模式
  1371. </div>
  1372. </div>
  1373. <div class="wordTeacher" @click="checkTemplate3()">
  1374. <div class="wordPic">
  1375. <img src="../../../assets/icon/wordMub.png" alt />
  1376. </div>
  1377. <div style="
  1378. margin-top: 10px;
  1379. line-height: 19px;
  1380. overflow: hidden;
  1381. text-overflow: ellipsis;
  1382. white-space: nowrap;
  1383. padding: 0 20px;
  1384. ">
  1385. 简易模式
  1386. </div>
  1387. </div>
  1388. <div class="wordTeacher" @click="pasteStage()">
  1389. <div class="wordPic">
  1390. <img src="../../../assets/icon/wordMub.png" alt />
  1391. </div>
  1392. <div style="
  1393. margin-top: 10px;
  1394. line-height: 19px;
  1395. overflow: hidden;
  1396. text-overflow: ellipsis;
  1397. white-space: nowrap;
  1398. padding: 0 20px;
  1399. ">
  1400. 智能粘贴模式
  1401. </div>
  1402. </div>
  1403. <!-- <div class="wordTeacher" @click="checkTemplate4()">
  1404. <div class="wordPic">
  1405. <img src="../../../assets/icon/wordMub.png" alt />
  1406. </div>
  1407. <div style="
  1408. margin-top: 10px;
  1409. line-height: 19px;
  1410. overflow: hidden;
  1411. text-overflow: ellipsis;
  1412. white-space: nowrap;
  1413. padding: 0 20px;
  1414. ">
  1415. 未来小学课程设计
  1416. </div>
  1417. </div> -->
  1418. <!-- <div class="wordTeacher" @click="checkTemplate1()">
  1419. <div class="wordPic">
  1420. <img src="../../../assets/icon/wordMub.png" alt />
  1421. </div>
  1422. <div style="
  1423. margin-top: 10px;
  1424. line-height: 19px;
  1425. overflow: hidden;
  1426. text-overflow: ellipsis;
  1427. white-space: nowrap;
  1428. padding: 0 20px;
  1429. ">
  1430. 我的课程
  1431. </div>
  1432. </div> -->
  1433. </div>
  1434. </div>
  1435. </div>
  1436. <div class="rightBox" v-if="this.steps == 3" ref="rightboxR">
  1437. <div class="basic_box">
  1438. <div style="
  1439. display: flex;
  1440. flex-direction: row;
  1441. align-items: center;
  1442. position: sticky;
  1443. top: 0;
  1444. background: #fff;
  1445. z-index: 99;
  1446. width: 100%;
  1447. padding: 0 20px 0 20px;
  1448. box-sizing: border-box;
  1449. ">
  1450. <div class="cru_selectBox">
  1451. <div v-for="(item, index) in unitJson" :key="index" class="cru_select"
  1452. :class="unitIndex == index ? 'cru_selected' : ''" @click="unitSet(index)">
  1453. <!-- item.dyName ? item.dyName : -->
  1454. {{ "第" + (index + 1) + "阶段" }}
  1455. </div>
  1456. <img src="../../../assets/line.png" class="cru_line" :style="{
  1457. left: offsetLetfPx + 'px',
  1458. }" />
  1459. </div>
  1460. <div class="addStageImg" @click="addunit()" v-if="!(unitJson[unitJson.length - 1].easy == 4) &&
  1461. !(unitJson[unitJson.length - 1].easy == 6)
  1462. ">
  1463. <img src="../../../assets/icon/add.png" alt />
  1464. </div>
  1465. </div>
  1466. <div style="margin: 0 0 40px 0; padding: 0 20px 0 20px"
  1467. v-for="(item, index) in unitJson[unitIndex].chapterInfo" :key="index">
  1468. <div>
  1469. <div class="chapter_contentbox">
  1470. <div>第{{ unitIndex + 1 }}阶段</div>
  1471. <div>
  1472. <input type="text" placeholder="阶段标题" class="binfo_input" v-model="unitJson[unitIndex].dyName" />
  1473. </div>
  1474. <div v-if="unitJson.length > 1 &&
  1475. !(unitJson[unitJson.length - 1].easy == 4) &&
  1476. !(unitJson[unitJson.length - 1].easy == 6)
  1477. " @click="deleteUnit(unitIndex)"></div>
  1478. </div>
  1479. </div>
  1480. <div v-if="!unitJson[unitIndex].easy" style="
  1481. margin: 50px 0px 10px;
  1482. font-size: 1.5em;
  1483. font-weight: 700;
  1484. color: #0f7eff;
  1485. ">
  1486. 添加任务
  1487. </div>
  1488. <div class="taskBorder" :style="{ minHeight: unitJson[unitIndex].easy && 'unset' }"
  1489. v-for="(itemTask, itemTaskIndex) in item.taskJson" :key="itemTaskIndex">
  1490. <div v-if="unitJson[unitIndex].easy != 1">
  1491. <div :style="{
  1492. marginBottom:
  1493. unitJson[unitIndex].easy == 3 ||
  1494. (unitJson[unitIndex].easy == 5 &&
  1495. itemTask.taskType == 1)
  1496. ? '75px'
  1497. : '0',
  1498. }">
  1499. <div style="font-size: 22px; color: #8e8e8e" :id="'task' + itemTaskIndex">
  1500. 任务{{ itemTaskIndex + 1 }}
  1501. </div>
  1502. <div class="chapter_contentbox" style="
  1503. flex-direction: row;
  1504. justify-content: flex-start;
  1505. align-items: center;
  1506. ">
  1507. <div style="
  1508. border-left: 6px solid #5699e8;
  1509. height: 20px;
  1510. padding-left: 10px;
  1511. line-height: 22px;
  1512. ">
  1513. 任务名称
  1514. </div>
  1515. <div>
  1516. <input type="text" placeholder="输入任务名称" class="binfo_input" style="border-radius: 4px" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1517. itemTaskIndex
  1518. ].task
  1519. " />
  1520. </div>
  1521. <div class="remove" v-if="item.taskJson.length > 1 &&
  1522. (!unitJson[unitIndex].easy ||
  1523. unitJson[unitIndex].easy == 6)
  1524. " @click="deleteTask(itemTaskIndex)" style="position: absolute; right: 55px"></div>
  1525. </div>
  1526. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1" style="
  1527. display: flex;
  1528. margin: 0 0 20px 0;
  1529. flex-direction: row;
  1530. justify-content: flex-start;
  1531. align-items: center;
  1532. width: 70.5% !important;
  1533. padding-top: 30px;
  1534. ">
  1535. <div class="lineTitle">任务描述</div>
  1536. </div>
  1537. <div v-if="easyArray.indexOf(unitJson[unitIndex].easy) == -1">
  1538. <editor-bar style="width: 90% !important; margin: 0" placeholder="请输入任务描述" v-model="unitJson[unitIndex].chapterInfo[0].taskJson[
  1539. itemTaskIndex
  1540. ].taskDetail
  1541. " @change="change"></editor-bar>
  1542. <!-- <textarea
  1543. rows="6"
  1544. class="binfo_input"
  1545. placeholder="请输入任务描述"
  1546. cols
  1547. style="width: 70.5% !important; height: 120px"
  1548. v-model="
  1549. unitJson[unitIndex].chapterInfo[0].taskJson[
  1550. itemTaskIndex
  1551. ].taskDetail
  1552. "
  1553. ></textarea>-->
  1554. </div>
  1555. </div>
  1556. </div>
  1557. <div v-if="!unitJson[unitIndex].easy ||
  1558. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  1559. " class="basic_box" style="
  1560. padding: 0 !important;
  1561. ">
  1562. <div style="
  1563. display: flex;
  1564. margin: 0 0 20px 0;
  1565. flex-direction: row;
  1566. justify-content: flex-start;
  1567. align-items: center;
  1568. ">
  1569. <div class="lineTitle">学习内容</div>
  1570. </div>
  1571. <div>
  1572. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1573. itemTask.chapterData.length == 0
  1574. " style="height: 185px"></div>
  1575. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1576. <div class="chapter_upload" v-for="(item1, index1) in itemTask.chapterData" :key="item1.id"
  1577. @click="
  1578. getChapterData(
  1579. $event,
  1580. unitIndex,
  1581. index,
  1582. index1,
  1583. item1.type
  1584. )
  1585. ">
  1586. <div class="chapter_upload_t" style="width: 100%"></div>
  1587. <div class="chapter_upload_o" style="
  1588. position: relative;
  1589. display: flex;
  1590. align-items: center;
  1591. ">
  1592. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1593. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1594. <div v-if="item1.type == 3 ||
  1595. item1.type == 12 ||
  1596. item1.type == 13 ||
  1597. item1.type == 6 ||
  1598. item1.type == 7
  1599. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1600. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1601. </div>
  1602. <div class="chapter_upload_ic" style="
  1603. cursor: pointer;
  1604. position: absolute;
  1605. width: 45px;
  1606. right: 0;
  1607. top: 0;
  1608. ">
  1609. <div class="chapter_upload_ic_l"></div>
  1610. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1611. deleteChapterData(
  1612. $event,
  1613. unitIndex,
  1614. index,
  1615. index1,
  1616. itemTaskIndex
  1617. )
  1618. ">
  1619. <div></div>
  1620. </div>
  1621. </div>
  1622. <div class="chapter_upload_n">
  1623. <input v-if="item1.type == 2 ||
  1624. item1.type == 3 ||
  1625. item1.type == 12 ||
  1626. item1.type == 13 ||
  1627. item1.type == 7
  1628. " :placeholder="item1.name" @change="
  1629. updataVideoT(
  1630. $event,
  1631. unitIndex,
  1632. chapterIndex,
  1633. index1
  1634. )
  1635. " style="
  1636. border: none;
  1637. outline: none;
  1638. width: 80%;
  1639. minwidth: 215px;
  1640. z-index: 99;
  1641. font-size: 14px;
  1642. white-space: nowrap;
  1643. overflow: hidden;
  1644. text-overflow: ellipsis;
  1645. " />
  1646. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1647. border: none;
  1648. outline: none;
  1649. width: 80%;
  1650. white-space: nowrap;
  1651. overflow: hidden;
  1652. text-overflow: ellipsis;
  1653. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1654. <input :placeholder="item1.title ? item1.title : '链接'
  1655. " v-if="item1.type == 8" style="
  1656. border: none;
  1657. outline: none;
  1658. width: 80%;
  1659. white-space: nowrap;
  1660. overflow: hidden;
  1661. text-overflow: ellipsis;
  1662. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1663. <div class="chapter_upload_ud" style="z-index: 99">
  1664. <div class="chapter_upload_up" @click="
  1665. upCd(
  1666. $event,
  1667. unitIndex,
  1668. index,
  1669. itemTaskIndex,
  1670. index1
  1671. )
  1672. "></div>
  1673. <div class="chapter_upload_down" @click="
  1674. downCd(
  1675. $event,
  1676. unitIndex,
  1677. index,
  1678. itemTaskIndex,
  1679. index1
  1680. )
  1681. "></div>
  1682. </div>
  1683. </div>
  1684. </div>
  1685. </div>
  1686. </div>
  1687. </div>
  1688. <div class="add_info_box">
  1689. <button class="info_btn" @click="addImg($event)">
  1690. 添加文件
  1691. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="
  1692. beforeUpload2($event, unitIndex, 13, itemTaskIndex)
  1693. " />
  1694. </button>
  1695. <!-- <button class="info_btn" @click="addImg($event)">
  1696. 添加视频
  1697. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1698. v-if="inputShow" @change="beforeUpload2($event, unitIndex, 2, itemTaskIndex)
  1699. " />
  1700. </button>
  1701. <button class="info_btn" @click="addImg($event)">
  1702. 添加文档
  1703. <input type="file"
  1704. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1705. style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 3, itemTaskIndex)
  1706. " />
  1707. </button> -->
  1708. <button class="info_btn" @click="addAttText(itemTaskIndex)">
  1709. 添加图文
  1710. </button>
  1711. <button class="info_btn" @click="openLine(itemTaskIndex)">
  1712. 添加链接
  1713. </button>
  1714. <button class="info_btn" @click="openSource(itemTaskIndex)">
  1715. 添加资源
  1716. </button>
  1717. <button class="info_btn" @click="pasteLine(itemTaskIndex)">
  1718. 嵌入代码
  1719. </button>
  1720. <!-- <button class="info_btn" @click="addImg($event)">
  1721. 其他附件
  1722. <input type="file" accept="*" style="display: none" v-if="inputShow" @change="beforeUpload2($event, unitIndex, 12, itemTaskIndex)
  1723. " />
  1724. </button> -->
  1725. </div>
  1726. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1727. itemTaskIndex
  1728. ].proVisible
  1729. " class="mask">
  1730. <div class="progressBox">
  1731. <!-- <div id="closePro" class="closeCss">
  1732. <img src="../../../../assets/icon/close.png" alt />
  1733. </div> -->
  1734. <div class="lbox">
  1735. <img src="../../../assets/loading.gif" />上传中,请稍后
  1736. </div>
  1737. <div style="margin-bottom: 10px">
  1738. <span>{{
  1739. unitJson[unitIndex].chapterInfo[0].taskJson[
  1740. itemTaskIndex
  1741. ].isFinishSize
  1742. }}M</span>
  1743. /
  1744. <span>{{
  1745. unitJson[unitIndex].chapterInfo[0].taskJson[
  1746. itemTaskIndex
  1747. ].isAllSize
  1748. }}M</span>
  1749. </div>
  1750. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1751. itemTaskIndex
  1752. ].progress
  1753. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1754. itemTaskIndex
  1755. ].progress
  1756. : 0
  1757. " style="width: 80%"></el-progress>
  1758. </div>
  1759. </div>
  1760. </div>
  1761. <div v-if="unitJson[unitIndex].easy == 1 ||
  1762. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  1763. " class="basic_box" style="
  1764. margin: 0 auto;
  1765. min-height: 0;
  1766. width: 95% !important;
  1767. padding: 20px 10px 10px;
  1768. ">
  1769. <div>
  1770. <div class="add_chapters_box" v-if="itemTask.chapterData &&
  1771. itemTask.chapterData.length == 0
  1772. " style="height: 185px"></div>
  1773. <div v-else class="add_chapters_box" style="display: flex; flex-direction: column">
  1774. <div v-for="(item1, index1) in itemTask.chapterData" :key="item1.id">
  1775. <div class="chapter_upload" @click="
  1776. getChapterData(
  1777. $event,
  1778. unitIndex,
  1779. index,
  1780. index1,
  1781. item1.type
  1782. )
  1783. ">
  1784. <div class="chapter_upload_t" style="width: 100%"></div>
  1785. <div class="chapter_upload_o" style="
  1786. position: relative;
  1787. display: flex;
  1788. align-items: center;
  1789. ">
  1790. <div class="chapter_upload_l" style="padding: 1px 0 0 10px">
  1791. <div v-if="item1.type == 2" class="chapter_upload_l_i1"></div>
  1792. <div v-if="item1.type == 3 ||
  1793. item1.type == 6 ||
  1794. item1.type == 7
  1795. " class="chapter_upload_l_i5" style="margin-left: 1px"></div>
  1796. <div v-if="item1.type == 8" class="chapter_upload_l_i8" style="margin-left: 1px"></div>
  1797. </div>
  1798. <div class="chapter_upload_ic" style="
  1799. cursor: pointer;
  1800. position: absolute;
  1801. width: 45px;
  1802. right: 0;
  1803. top: 0;
  1804. ">
  1805. <div class="chapter_upload_ic_l"></div>
  1806. <div class="chapter_upload_ic_r" style="position: absolute" @click.stop="
  1807. deleteChapterData(
  1808. $event,
  1809. unitIndex,
  1810. index,
  1811. index1,
  1812. itemTaskIndex
  1813. )
  1814. ">
  1815. <div></div>
  1816. </div>
  1817. </div>
  1818. <div class="chapter_upload_n">
  1819. <span style="
  1820. font-size: 14px;
  1821. color: rgb(109, 109, 109);
  1822. height: 14px;
  1823. line-height: 12px;
  1824. " v-if="item1.type == 2 ||
  1825. item1.type == 3 ||
  1826. item1.type == 7
  1827. ">{{ item1.text }}-</span>
  1828. <input v-if="item1.type == 2 ||
  1829. item1.type == 3 ||
  1830. item1.type == 7
  1831. " :placeholder="item1.name" @change="
  1832. updataVideoT(
  1833. $event,
  1834. unitIndex,
  1835. chapterIndex,
  1836. index1
  1837. )
  1838. " style="
  1839. border: none;
  1840. outline: none;
  1841. width: 80%;
  1842. minwidth: 215px;
  1843. z-index: 99;
  1844. font-size: 14px;
  1845. white-space: nowrap;
  1846. overflow: hidden;
  1847. text-overflow: ellipsis;
  1848. " />
  1849. <input :placeholder="item1.name" v-if="item1.type == 6" style="
  1850. border: none;
  1851. outline: none;
  1852. width: 80%;
  1853. white-space: nowrap;
  1854. overflow: hidden;
  1855. text-overflow: ellipsis;
  1856. " readonly="true" @click="selectAttText(itemTaskIndex, index1)" />
  1857. <input :placeholder="item1.title ? item1.title : '链接'
  1858. " v-if="item1.type == 8" style="
  1859. border: none;
  1860. outline: none;
  1861. width: 80%;
  1862. white-space: nowrap;
  1863. overflow: hidden;
  1864. text-overflow: ellipsis;
  1865. " readonly="true" @click="selectLine(itemTaskIndex, index1)" />
  1866. <div class="chapter_upload_ud" style="z-index: 99">
  1867. <div class="chapter_upload_up" @click="
  1868. upCd(
  1869. $event,
  1870. unitIndex,
  1871. index,
  1872. itemTaskIndex,
  1873. index1
  1874. )
  1875. "></div>
  1876. <div class="chapter_upload_down" @click="
  1877. downCd(
  1878. $event,
  1879. unitIndex,
  1880. index,
  1881. itemTaskIndex,
  1882. index1
  1883. )
  1884. "></div>
  1885. </div>
  1886. </div>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. </div>
  1891. </div>
  1892. <div class="add_info_box" style="margin: 10px 0 0">
  1893. <button class="info_btn" @click="addImg($event)">
  1894. <span style="color: red">*</span>
  1895. 教学设计
  1896. <input type="file"
  1897. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1898. style="display: none" v-if="inputShow" @change="
  1899. beforeUpload3(
  1900. $event,
  1901. unitIndex,
  1902. 3,
  1903. itemTaskIndex,
  1904. '教学设计'
  1905. )
  1906. " />
  1907. </button>
  1908. <button class="info_btn" @click="addImg($event)">
  1909. <span style="color: red">*</span>
  1910. 教学课件
  1911. <input type="file"
  1912. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1913. style="display: none" v-if="inputShow" @change="
  1914. beforeUpload3(
  1915. $event,
  1916. unitIndex,
  1917. 3,
  1918. itemTaskIndex,
  1919. '教学课件'
  1920. )
  1921. " />
  1922. </button>
  1923. <button class="info_btn" @click="addImg($event)">
  1924. 教学视频
  1925. <input type="file" accept="video/mp4, video/quicktime, video/x-msvideo" style="display: none"
  1926. v-if="inputShow" @change="
  1927. beforeUpload3(
  1928. $event,
  1929. unitIndex,
  1930. 2,
  1931. itemTaskIndex,
  1932. '教学视频'
  1933. )
  1934. " />
  1935. </button>
  1936. <button class="info_btn" @click="addImg($event)">
  1937. 教学音频
  1938. <input type="file" accept="audio/*" style="display: none" v-if="inputShow" @change="
  1939. beforeUpload3(
  1940. $event,
  1941. unitIndex,
  1942. 2,
  1943. itemTaskIndex,
  1944. '教学音频'
  1945. )
  1946. " />
  1947. </button>
  1948. <button class="info_btn" @click="addImg($event)">
  1949. 学习单
  1950. <input type="file"
  1951. accept="application/pdf, application/.ppt, .ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  1952. style="display: none" v-if="inputShow" @change="
  1953. beforeUpload3(
  1954. $event,
  1955. unitIndex,
  1956. 3,
  1957. itemTaskIndex,
  1958. '学习单'
  1959. )
  1960. " />
  1961. </button>
  1962. </div>
  1963. <div v-if="unitJson[unitIndex].chapterInfo[0].taskJson[
  1964. itemTaskIndex
  1965. ].proVisible
  1966. " class="mask">
  1967. <div class="progressBox">
  1968. <!-- <div id="closePro" class="closeCss">
  1969. <img src="../../../../assets/icon/close.png" alt />
  1970. </div> -->
  1971. <div class="lbox">
  1972. <img src="../../../assets/loading.gif" />上传中,请稍后
  1973. </div>
  1974. <div style="margin-bottom: 10px">
  1975. <span>{{
  1976. unitJson[unitIndex].chapterInfo[0].taskJson[
  1977. itemTaskIndex
  1978. ].isFinishSize
  1979. }}M</span>
  1980. /
  1981. <span>{{
  1982. unitJson[unitIndex].chapterInfo[0].taskJson[
  1983. itemTaskIndex
  1984. ].isAllSize
  1985. }}M</span>
  1986. </div>
  1987. <el-progress :text-inside="true" :stroke-width="20" :percentage="unitJson[unitIndex].chapterInfo[0].taskJson[
  1988. itemTaskIndex
  1989. ].progress
  1990. ? unitJson[unitIndex].chapterInfo[0].taskJson[
  1991. itemTaskIndex
  1992. ].progress
  1993. : 0
  1994. " style="width: 80%"></el-progress>
  1995. </div>
  1996. </div>
  1997. </div>
  1998. <div v-if="unitJson[unitIndex].easy != 3 &&
  1999. !(unitJson[unitIndex].easy == 5 && itemTask.taskType == 1)
  2000. " style="
  2001. flex-direction: row;
  2002. justify-content: flex-start;
  2003. align-items: center;
  2004. padding: 0 0 0 30px;
  2005. paddint-top: 10px !important;
  2006. ">
  2007. <div style="
  2008. display: flex;
  2009. flex-direction: row;
  2010. align-items: center;
  2011. margin-bottom: 20px;
  2012. ">
  2013. <div class="lineTitle">
  2014. {{
  2015. !unitJson[unitIndex].easy ||
  2016. unitJson[unitIndex].easy == 6 ||
  2017. easyArray.indexOf(unitJson[unitIndex].easy) != -1
  2018. ? "练习内容"
  2019. : "评价内容"
  2020. }}
  2021. </div>
  2022. </div>
  2023. </div>
  2024. <div v-if="unitJson[unitIndex].easy == 6 || !unitJson[unitIndex].easy
  2025. " class="toolChoose" style="padding: 0 0 0 30px">
  2026. <div class="tools">
  2027. <div class="leftTools" style="
  2028. width: 95%;
  2029. padding: 0 0 15px 0;
  2030. margin: 15px 0;
  2031. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2032. <div>
  2033. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2034. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2035. </div>
  2036. <div style="
  2037. display: flex;
  2038. flex-direction: row;
  2039. align-items: baseline;
  2040. flex-wrap: nowrap;
  2041. justify-content: flex-start;
  2042. position: relative;
  2043. ">
  2044. <div style="margin-right: 20px; font-weight: bold">
  2045. 步骤 {{ toolIndex + 1 }} :
  2046. </div>
  2047. <div class="chooseWho">
  2048. <!-- <div
  2049. :class="
  2050. itemTool.toolType == 0 ? 'isChooseActive' : ''
  2051. "
  2052. @click="(itemTool.toolType = 0), $forceUpdate()"
  2053. >
  2054. 互动类
  2055. </div> -->
  2056. <div :class="itemTool.toolType == 1 ? 'isChooseActive' : ''
  2057. " @click="(itemTool.toolType = 1), $forceUpdate()">
  2058. 思维类
  2059. </div>
  2060. <div :class="itemTool.toolType == 6 ? 'isChooseActive' : ''
  2061. " @click="(itemTool.toolType = 6), $forceUpdate()">
  2062. 协作类
  2063. </div>
  2064. <div :class="itemTool.toolType == 2 ? 'isChooseActive' : ''
  2065. " @click="(itemTool.toolType = 2), $forceUpdate()">
  2066. 测评类
  2067. </div>
  2068. <div :class="itemTool.toolType == 7 ? 'isChooseActive' : ''
  2069. " @click="(itemTool.toolType = 7), $forceUpdate()">
  2070. 评价类
  2071. </div>
  2072. <div :class="itemTool.toolType == 3 ? 'isChooseActive' : ''
  2073. " @click="(itemTool.toolType = 3), $forceUpdate()">
  2074. 学科类
  2075. </div>
  2076. <!-- <div
  2077. :class="
  2078. itemTool.toolType == 5 ? 'isChooseActive' : ''
  2079. "
  2080. @click="(itemTool.toolType = 5), $forceUpdate()"
  2081. >
  2082. 学科类
  2083. </div>
  2084. <div
  2085. :class="
  2086. itemTool.toolType == 4 ? 'isChooseActive' : ''
  2087. "
  2088. @click="(itemTool.toolType = 4), $forceUpdate()"
  2089. >
  2090. 其他
  2091. </div> -->
  2092. </div>
  2093. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2094. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2095. </div>
  2096. <div style="min-height: 163px">
  2097. <div class="toolSort" v-if="itemTool.toolType == 0">
  2098. <!-- <div class="tool">
  2099. <div
  2100. class="whiteBIcon"
  2101. @click="addTools(8, itemTaskIndex, toolIndex)"
  2102. >
  2103. <img src="../../../assets/icon/secondToolList/library.png" alt />
  2104. <div style="margin: 5px 0">素材库</div>
  2105. </div>
  2106. <div class="check" @click="addTools(8, itemTaskIndex, toolIndex)">
  2107. <img
  2108. src="../../../assets/icon/checkNo.png"
  2109. alt
  2110. v-if="itemTool.tool.indexOf(8) == -1"
  2111. />
  2112. <div class="checkDiv" v-else><img src="../../../assets/icon/checkedIs.png"
  2113. alt /><span>已选择</span></div>
  2114. </div>
  2115. </div>-->
  2116. <!-- <div class="tool">
  2117. <div
  2118. class="whiteBIcon"
  2119. @click="addTools(17, itemTaskIndex, toolIndex)"
  2120. >
  2121. <img
  2122. src="../../../assets/icon/secondToolList/library.png"
  2123. alt
  2124. />
  2125. <div style="margin: 5px 0">学习资料</div>
  2126. </div>
  2127. <div
  2128. class="check"
  2129. @click="addTools(17, itemTaskIndex, toolIndex)"
  2130. >
  2131. <img
  2132. src="../../../assets/icon/checkNo.png"
  2133. alt
  2134. v-if="itemTool.tool.indexOf(17) == -1"
  2135. />
  2136. <img
  2137. src="../../../assets/icon/checkedIs.png"
  2138. alt
  2139. v-else
  2140. />
  2141. </div>10
  2142. </div> -->
  2143. <div class="tool">
  2144. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 10, toolIndex)">
  2145. <img src="../../../assets/icon/thirdToolList/time.png" alt />
  2146. <div style="margin: 5px 0">倒计时</div>
  2147. </div>
  2148. <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
  2149. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(10) == -1" />
  2150. <div class="checkDiv" v-else>
  2151. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. <!-- <div class="tool">
  2156. <div
  2157. class="whiteBIcon"
  2158. @click="openTools(itemTaskIndex, 49, toolIndex)"
  2159. >
  2160. <img
  2161. src="../../../assets/icon/fourthToolList/group.png"
  2162. alt
  2163. />
  2164. <div style="margin: 5px 0">学生分组</div>
  2165. </div>
  2166. <div
  2167. class="check"
  2168. @click="addTools(49, itemTaskIndex, toolIndex)"
  2169. >
  2170. <img
  2171. src="../../../assets/icon/checkNo.png"
  2172. alt
  2173. v-if="itemTool.tool.indexOf(49) == -1"
  2174. />
  2175. <div class="checkDiv" v-else>
  2176. <img
  2177. src="../../../assets/icon/checkedIs.png"
  2178. alt
  2179. /><span>已选择</span>
  2180. </div>
  2181. </div>
  2182. </div> -->
  2183. <div class="tool">
  2184. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 62, toolIndex)">
  2185. <img src="../../../assets/icon/fourthToolList/interVideo.png" alt />
  2186. <div style="margin: 5px 0">交互视频</div>
  2187. </div>
  2188. <div class="check" @click="addTools(62, itemTaskIndex, toolIndex)">
  2189. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(62) == -1" />
  2190. <div class="checkDiv" v-else>
  2191. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2192. </div>
  2193. </div>
  2194. </div>
  2195. </div>
  2196. <div class="toolSort" v-if="itemTool.toolType == 1">
  2197. <div class="tool">
  2198. <div class="whiteBIcon" @click="addTools(7, itemTaskIndex, toolIndex)">
  2199. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  2200. <div style="margin: 5px 0">思维网格</div>
  2201. </div>
  2202. <div class="check" @click="addTools(7, itemTaskIndex, toolIndex)">
  2203. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(7) == -1" />
  2204. <div class="checkDiv" v-else>
  2205. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2206. </div>
  2207. </div>
  2208. </div>
  2209. <div class="tool">
  2210. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2211. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2212. <div style="margin: 5px 0">电子白板</div>
  2213. </div>
  2214. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2215. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2216. <div class="checkDiv" v-else>
  2217. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2218. </div>
  2219. </div>
  2220. </div>
  2221. <!-- <div class="tool">
  2222. <div
  2223. class="whiteBIcon"
  2224. @click="addTools(2, itemTaskIndex, toolIndex)"
  2225. >
  2226. <img
  2227. src="../../../assets/icon/secondToolList/note.png"
  2228. alt
  2229. />
  2230. <div style="margin: 5px 0">便签</div>
  2231. </div>
  2232. <div
  2233. class="check"
  2234. @click="addTools(2, itemTaskIndex, toolIndex)"
  2235. >
  2236. <img
  2237. src="../../../assets/icon/checkNo.png"
  2238. alt
  2239. v-if="itemTool.tool.indexOf(2) == -1"
  2240. />
  2241. <div class="checkDiv" v-else>
  2242. <img
  2243. src="../../../assets/icon/checkedIs.png"
  2244. alt
  2245. /><span>已选择</span>
  2246. </div>
  2247. </div>
  2248. </div> -->
  2249. <!-- <div class="tool">
  2250. <div class="whiteBIcon" @click="addTools(6, itemTaskIndex, toolIndex)">
  2251. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  2252. <div style="margin: 5px 0">协同文档</div>
  2253. </div>
  2254. <div
  2255. class="check"
  2256. @click="addTools(6, itemTaskIndex, toolIndex)"
  2257. >
  2258. <img
  2259. src="../../../assets/icon/checkNo.png"
  2260. alt
  2261. v-if="itemTool.tool.indexOf(6) == -1"
  2262. />
  2263. <div class="checkDiv" v-else>
  2264. <img
  2265. src="../../../assets/icon/checkedIs.png"
  2266. alt
  2267. /><span>已选择</span>
  2268. </div>
  2269. </div>
  2270. </div> -->
  2271. <div class="tool">
  2272. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2273. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2274. <div style="margin: 5px 0">文档</div>
  2275. </div>
  2276. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2277. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2278. <div class="checkDiv" v-else>
  2279. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2280. </div>
  2281. </div>
  2282. </div>
  2283. <div class="tool">
  2284. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2285. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2286. <div style="margin: 5px 0">思维导图</div>
  2287. </div>
  2288. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2289. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2290. <div class="checkDiv" v-else>
  2291. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2292. </div>
  2293. </div>
  2294. </div>
  2295. <div class="tool">
  2296. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2297. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2298. <div style="margin: 5px 0">表格</div>
  2299. </div>
  2300. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2301. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2302. <div class="checkDiv" v-else>
  2303. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2304. </div>
  2305. </div>
  2306. </div>
  2307. </div>
  2308. <div class="toolSort" v-if="itemTool.toolType == 6">
  2309. <div class="tool">
  2310. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 49, toolIndex)">
  2311. <img src="../../../assets/icon/fourthToolList/group.png" alt />
  2312. <div style="margin: 5px 0">学生分组</div>
  2313. </div>
  2314. <div class="check" @click="addTools(49, itemTaskIndex, toolIndex)">
  2315. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(49) == -1" />
  2316. <div class="checkDiv" v-else>
  2317. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2318. </div>
  2319. </div>
  2320. </div>
  2321. </div>
  2322. <div class="toolSort" v-if="itemTool.toolType == 2">
  2323. <!-- <div class="tool">
  2324. <div
  2325. class="whiteBIcon"
  2326. @click="addTools(5, itemTaskIndex, toolIndex)"
  2327. >
  2328. <img
  2329. src="../../../assets/icon/thirdToolList/score.png"
  2330. alt
  2331. />
  2332. <div style="margin: 5px 0">量规评分</div>
  2333. </div>
  2334. <div
  2335. class="check"
  2336. @click="addTools(5, itemTaskIndex, toolIndex)"
  2337. >
  2338. <img
  2339. src="../../../assets/icon/checkNo.png"
  2340. alt
  2341. v-if="itemTool.tool.indexOf(5) == -1"
  2342. />
  2343. <img
  2344. src="../../../assets/icon/checkedIs.png"
  2345. alt
  2346. v-else
  2347. />
  2348. </div>
  2349. </div>-->
  2350. <div class="tool">
  2351. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2352. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2353. <div style="margin: 5px 0">问卷调查</div>
  2354. </div>
  2355. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2356. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2357. <div class="checkDiv" v-else>
  2358. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2359. </div>
  2360. </div>
  2361. </div>
  2362. <div class="tool">
  2363. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2364. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2365. <div style="margin: 5px 0">选择题</div>
  2366. </div>
  2367. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2368. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2369. <div class="checkDiv" v-else>
  2370. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2371. </div>
  2372. </div>
  2373. </div>
  2374. <div class="tool">
  2375. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2376. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2377. <div style="margin: 5px 0">问答工具</div>
  2378. </div>
  2379. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2380. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2381. <div class="checkDiv" v-else>
  2382. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2383. </div>
  2384. </div>
  2385. </div>
  2386. <div class="tool">
  2387. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2388. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2389. <div style="margin: 5px 0">作业提交</div>
  2390. </div>
  2391. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2392. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2393. <div class="checkDiv" v-else>
  2394. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. <div class="tool">
  2399. <div class="whiteBIcon" @click="addTools(50, itemTaskIndex, toolIndex)">
  2400. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2401. <div style="margin: 5px 0">批量上传</div>
  2402. </div>
  2403. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2404. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2405. <div class="checkDiv" v-else>
  2406. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2407. </div>
  2408. </div>
  2409. </div>
  2410. <!-- <div class="tool">
  2411. <div
  2412. class="whiteBIcon"
  2413. @click="openTools(itemTaskIndex, 40, toolIndex)"
  2414. >
  2415. <img
  2416. src="../../../assets/icon/thirdToolList/eval.png"
  2417. alt
  2418. />
  2419. <div style="margin: 5px 0">个人评价</div>
  2420. </div>
  2421. <div
  2422. class="check"
  2423. @click="addTools(40, itemTaskIndex, toolIndex)"
  2424. >
  2425. <img
  2426. src="../../../assets/icon/checkNo.png"
  2427. alt
  2428. v-if="itemTool.tool.indexOf(40) == -1"
  2429. />
  2430. <div class="checkDiv" v-else>
  2431. <img
  2432. src="../../../assets/icon/checkedIs.png"
  2433. alt
  2434. /><span>已选择</span>
  2435. </div>
  2436. </div>
  2437. </div> -->
  2438. <div class="tool">
  2439. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2440. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2441. <div style="margin: 5px 0">选择填空</div>
  2442. </div>
  2443. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2444. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2445. <div class="checkDiv" v-else>
  2446. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2447. </div>
  2448. </div>
  2449. </div>
  2450. <div class="tool">
  2451. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2452. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2453. <div style="margin: 5px 0">连词成句</div>
  2454. </div>
  2455. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2456. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2457. <div class="checkDiv" v-else>
  2458. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2459. </div>
  2460. </div>
  2461. </div>
  2462. <!-- <div class="tool">
  2463. <div
  2464. class="whiteBIcon"
  2465. @click="openTools(itemTaskIndex, 42, toolIndex)"
  2466. >
  2467. <img
  2468. src="../../../assets/icon/thirdToolList/mp3.png"
  2469. alt
  2470. />
  2471. <div style="margin: 5px 0">上传音频</div>
  2472. </div>
  2473. <div
  2474. class="check"
  2475. @click="addTools(42, itemTaskIndex, toolIndex)"
  2476. >
  2477. <img
  2478. src="../../../assets/icon/checkNo.png"
  2479. alt
  2480. v-if="itemTool.tool.indexOf(42) == -1"
  2481. />
  2482. <img
  2483. src="../../../assets/icon/checkedIs.png"
  2484. alt
  2485. v-else
  2486. />
  2487. </div>
  2488. </div> -->
  2489. </div>
  2490. <div class="toolSort" v-if="itemTool.toolType == 3">
  2491. <div class="tool">
  2492. <div class="whiteBIcon" @click="addTools(18, itemTaskIndex, toolIndex)">
  2493. <img src="../../../assets/icon/thirdToolList/trainPlatform.png" alt />
  2494. <div style="margin: 5px 0">训练平台</div>
  2495. </div>
  2496. <div class="check" @click="addTools(18, itemTaskIndex, toolIndex)">
  2497. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(18) == -1" />
  2498. <div class="checkDiv" v-else>
  2499. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2500. </div>
  2501. </div>
  2502. </div>
  2503. <div class="tool">
  2504. <div class="whiteBIcon" @click="addTools(21, itemTaskIndex, toolIndex)">
  2505. <img src="../../../assets/icon/fourthToolList/program.png" alt />
  2506. <div style="margin: 5px 0">编程平台</div>
  2507. </div>
  2508. <div class="check" @click="addTools(21, itemTaskIndex, toolIndex)">
  2509. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(21) == -1" />
  2510. <div class="checkDiv" v-else>
  2511. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2512. </div>
  2513. </div>
  2514. </div>
  2515. <div class="tool">
  2516. <div class="whiteBIcon" @click="addTools(22, itemTaskIndex, toolIndex)">
  2517. <img src="../../../assets/icon/fourthToolList/AIprogram2.png" alt />
  2518. <div style="margin: 5px 0">AI体验</div>
  2519. </div>
  2520. <div class="check" @click="addTools(22, itemTaskIndex, toolIndex)">
  2521. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(22) == -1" />
  2522. <div class="checkDiv" v-else>
  2523. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2524. </div>
  2525. </div>
  2526. </div>
  2527. <div class="tool">
  2528. <div class="whiteBIcon" @click="addTools(23, itemTaskIndex, toolIndex)">
  2529. <img src="../../../assets/icon/fourthToolList/Pythonprogram.png" alt />
  2530. <div style="margin: 5px 0">Python</div>
  2531. </div>
  2532. <div class="check" @click="addTools(23, itemTaskIndex, toolIndex)">
  2533. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(23) == -1" />
  2534. <div class="checkDiv" v-else>
  2535. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2536. </div>
  2537. </div>
  2538. </div>
  2539. <div class="tool">
  2540. <div class="whiteBIcon" @click="addTools(24, itemTaskIndex, toolIndex)">
  2541. <img src="../../../assets/icon/fourthToolList/AIprogram.png" alt />
  2542. <div style="margin: 5px 0">AI平台</div>
  2543. </div>
  2544. <div class="check" @click="addTools(24, itemTaskIndex, toolIndex)">
  2545. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(24) == -1" />
  2546. <div class="checkDiv" v-else>
  2547. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2548. </div>
  2549. </div>
  2550. </div>
  2551. <!-- <div class="tool">
  2552. <div class="whiteBIcon" @click="addTools(32, itemTaskIndex, toolIndex)">
  2553. <img src="../../../assets/icon/thirdToolList/code.png" alt />
  2554. <div style="margin: 5px 0">源码编辑</div>
  2555. </div>
  2556. <div class="check" @click="addTools(32, itemTaskIndex, toolIndex)">
  2557. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(32) == -1" />
  2558. <div class="checkDiv" v-else>
  2559. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2560. </div>
  2561. </div>
  2562. </div> -->
  2563. <div class="tool">
  2564. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 57, toolIndex)">
  2565. <img src="../../../assets/icon/fourthToolList/cocopi.png" alt />
  2566. <div style="margin: 5px 0">CocoPi</div>
  2567. </div>
  2568. <div class="check" @click="addTools(57, itemTaskIndex, toolIndex)">
  2569. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(57) == -1" />
  2570. <div class="checkDiv" v-else>
  2571. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2572. </div>
  2573. </div>
  2574. </div>
  2575. <div class="tool">
  2576. <div class="whiteBIcon" @click="addTools(63, itemTaskIndex, toolIndex)">
  2577. <img src="../../../assets/icon/fourthToolList/Wood.png" alt />
  2578. <div style="margin: 5px 0">海龟编程</div>
  2579. </div>
  2580. <div class="check" @click="addTools(63, itemTaskIndex, toolIndex)">
  2581. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(63) == -1" />
  2582. <div class="checkDiv" v-else>
  2583. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2584. </div>
  2585. </div>
  2586. </div>
  2587. </div>
  2588. <div class="toolSort" v-if="itemTool.toolType == 7">
  2589. <div class="tool">
  2590. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 40, toolIndex)">
  2591. <img src="../../../assets/icon/thirdToolList/eval.png" alt />
  2592. <div style="margin: 5px 0">个人评价</div>
  2593. </div>
  2594. <div class="check" @click="addTools(40, itemTaskIndex, toolIndex)">
  2595. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(40) == -1" />
  2596. <div class="checkDiv" v-else>
  2597. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2598. </div>
  2599. </div>
  2600. </div>
  2601. </div>
  2602. <div class="toolSort" v-if="itemTool.toolType == 5">
  2603. <div class="tool">
  2604. <div class="whiteBIcon" @click="addTools(28, itemTaskIndex, toolIndex)">
  2605. <img src="../../../assets/icon/secondToolList/translation.png" alt />
  2606. <div style="margin: 5px 0">翻译</div>
  2607. </div>
  2608. <div class="check" @click="addTools(28, itemTaskIndex, toolIndex)">
  2609. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(28) == -1" />
  2610. <div class="checkDiv" v-else>
  2611. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. <div class="tool">
  2616. <div class="whiteBIcon" @click="addTools(37, itemTaskIndex, toolIndex)">
  2617. <img src="../../../assets/icon/secondToolList/mohe.png" alt />
  2618. <div style="margin: 5px 0">魔盒识字</div>
  2619. </div>
  2620. <div class="check" @click="addTools(37, itemTaskIndex, toolIndex)">
  2621. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(37) == -1" />
  2622. <div class="checkDiv" v-else>
  2623. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2624. </div>
  2625. </div>
  2626. </div>
  2627. <div class="tool">
  2628. <div class="whiteBIcon" @click="addTools(38, itemTaskIndex, toolIndex)">
  2629. <img src="../../../assets/icon/secondToolList/24game.png" alt />
  2630. <div style="margin: 5px 0">24点</div>
  2631. </div>
  2632. <div class="check" @click="addTools(38, itemTaskIndex, toolIndex)">
  2633. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(38) == -1" />
  2634. <div class="checkDiv" v-else>
  2635. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2636. </div>
  2637. </div>
  2638. </div>
  2639. <div class="tool">
  2640. <div class="whiteBIcon" @click="addTools(31, itemTaskIndex, toolIndex)">
  2641. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  2642. <div style="margin: 5px 0">数学画板</div>
  2643. </div>
  2644. <div class="check" @click="addTools(31, itemTaskIndex, toolIndex)">
  2645. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(31) == -1" />
  2646. <div class="checkDiv" v-else>
  2647. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div class="tool">
  2652. <div class="whiteBIcon" @click="addTools(39, itemTaskIndex, toolIndex)">
  2653. <img src="../../../assets/icon/secondToolList/GeoGebra.png" alt />
  2654. <div style="margin: 5px 0">GeoGebra</div>
  2655. </div>
  2656. <div class="check" @click="addTools(39, itemTaskIndex, toolIndex)">
  2657. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(39) == -1" />
  2658. <div class="checkDiv" v-else>
  2659. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2660. </div>
  2661. </div>
  2662. </div>
  2663. <div class="tool">
  2664. <div class="whiteBIcon" @click="addTools(58, itemTaskIndex, toolIndex)">
  2665. <img src="../../../assets/icon/fourthToolList/car.png" alt />
  2666. <div style="margin: 5px 0">模拟驾驶</div>
  2667. </div>
  2668. <div class="check" @click="addTools(58, itemTaskIndex, toolIndex)">
  2669. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(58) == -1" />
  2670. <div class="checkDiv" v-else>
  2671. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2672. </div>
  2673. </div>
  2674. </div>
  2675. <div class="tool">
  2676. <div class="whiteBIcon" @click="addTools(59, itemTaskIndex, toolIndex)">
  2677. <img src="../../../assets/icon/fourthToolList/lineSearch.png" alt />
  2678. <div style="margin: 5px 0">路径搜索</div>
  2679. </div>
  2680. <div class="check" @click="addTools(59, itemTaskIndex, toolIndex)">
  2681. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(59) == -1" />
  2682. <div class="checkDiv" v-else>
  2683. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2684. </div>
  2685. </div>
  2686. </div>
  2687. <div class="tool">
  2688. <div class="whiteBIcon" @click="addTools(60, itemTaskIndex, toolIndex)">
  2689. <img src="../../../assets/icon/fourthToolList/deepLearning.png" alt />
  2690. <div style="margin: 5px 0">深度学习</div>
  2691. </div>
  2692. <div class="check" @click="addTools(60, itemTaskIndex, toolIndex)">
  2693. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(60) == -1" />
  2694. <div class="checkDiv" v-else>
  2695. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. <div class="tool">
  2700. <div class="whiteBIcon" @click="addTools(61, itemTaskIndex, toolIndex)">
  2701. <img src="../../../assets/icon/fourthToolList/allHistory.png" alt />
  2702. <div style="margin: 5px 0">全历史</div>
  2703. </div>
  2704. <div class="check" @click="addTools(61, itemTaskIndex, toolIndex)">
  2705. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(61) == -1" />
  2706. <div class="checkDiv" v-else>
  2707. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2708. </div>
  2709. </div>
  2710. </div>
  2711. </div>
  2712. <div class="toolSort" v-if="itemTool.toolType == 4">
  2713. <div class="tool">
  2714. <div class="whiteBIcon" @click="addTools(26, itemTaskIndex, toolIndex)">
  2715. <img src="../../../assets/icon/thirdToolList/courseDesign.png" alt />
  2716. <div style="margin: 5px 0">课程设计</div>
  2717. </div>
  2718. <div class="check" @click="addTools(26, itemTaskIndex, toolIndex)">
  2719. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(26) == -1" />
  2720. <div class="checkDiv" v-else>
  2721. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2722. </div>
  2723. </div>
  2724. </div>
  2725. <div class="tool">
  2726. <div class="whiteBIcon" @click="addTools(25, itemTaskIndex, toolIndex)">
  2727. <img src="../../../assets/icon/thirdToolList/evalua.png" alt />
  2728. <div style="margin: 5px 0">目标管理</div>
  2729. </div>
  2730. <div class="check" @click="addTools(25, itemTaskIndex, toolIndex)">
  2731. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(25) == -1" />
  2732. <div class="checkDiv" v-else>
  2733. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <!-- <div class="tool">
  2738. <div class="whiteBIcon" @click="addTools(44, itemTaskIndex, toolIndex)">
  2739. <img src="../../../assets/icon/thirdToolList/hanClass.png" alt />
  2740. <div style="margin: 5px 0">汉字宫</div>
  2741. </div>
  2742. <div class="check" @click="addTools(44, itemTaskIndex, toolIndex)">
  2743. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(44) == -1" />
  2744. <div class="checkDiv" v-else>
  2745. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2746. </div>
  2747. </div>
  2748. </div> -->
  2749. </div>
  2750. </div>
  2751. </div>
  2752. <div class="addToolFun" @click="addToolFun(itemTaskIndex)">
  2753. <div class="addToolImg">
  2754. <img src="../../../assets/icon/add.png" alt />
  2755. </div>
  2756. <div>添加工具</div>
  2757. </div>
  2758. </div>
  2759. </div>
  2760. <div v-else-if="unitJson[unitIndex].easy == 2 ||
  2761. unitJson[unitIndex].easy == 4
  2762. " class="toolChoose" style="padding: 0 0 0 30px">
  2763. <div class="tools">
  2764. <div class="leftTools" style="width: 95%" v-for="(itemTool, toolIndex) in itemTask.toolChoose"
  2765. :key="toolIndex">
  2766. <div>
  2767. <textarea rows="3" type="text" placeholder="添加工具描述" class="binfo_input"
  2768. style="margin: 0 0 20px 0; width: 71.5% !important" v-model="itemTool.toolDetail"></textarea>
  2769. </div>
  2770. <div style="
  2771. display: flex;
  2772. flex-direction: row;
  2773. align-items: baseline;
  2774. flex-wrap: nowrap;
  2775. justify-content: flex-start;
  2776. position: relative;
  2777. ">
  2778. <div style="margin-right: 20px; font-weight: bold">
  2779. 步骤 {{ toolIndex + 1 }} :
  2780. </div>
  2781. <div class="remove" @click="deleteTool(itemTaskIndex, toolIndex)"
  2782. v-if="itemTask.toolChoose.length > 1" style="position: absolute; right: 55px"></div>
  2783. </div>
  2784. <div style="min-height: 163px">
  2785. <div class="toolSort">
  2786. <div class="tool">
  2787. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 1, toolIndex)">
  2788. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  2789. <div style="margin: 5px 0">电子白板</div>
  2790. </div>
  2791. <div class="check" @click="addTools(1, itemTaskIndex, toolIndex)">
  2792. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(1) == -1" />
  2793. <div class="checkDiv" v-else>
  2794. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2795. </div>
  2796. </div>
  2797. </div>
  2798. <div class="tool">
  2799. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 52, toolIndex)">
  2800. <img src="../../../assets/icon/fourthToolList/text.png" alt />
  2801. <div style="margin: 5px 0">文档</div>
  2802. </div>
  2803. <div class="check" @click="addTools(52, itemTaskIndex, toolIndex)">
  2804. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(52) == -1" />
  2805. <div class="checkDiv" v-else>
  2806. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2807. </div>
  2808. </div>
  2809. </div>
  2810. <div class="tool">
  2811. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 3, toolIndex)">
  2812. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  2813. <div style="margin: 5px 0">思维导图</div>
  2814. </div>
  2815. <div class="check" @click="addTools(3, itemTaskIndex, toolIndex)">
  2816. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(3) == -1" />
  2817. <div class="checkDiv" v-else>
  2818. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2819. </div>
  2820. </div>
  2821. </div>
  2822. <div class="tool">
  2823. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 4, toolIndex)">
  2824. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  2825. <div style="margin: 5px 0">问卷调查</div>
  2826. </div>
  2827. <div class="check" @click="addTools(4, itemTaskIndex, toolIndex)">
  2828. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(4) == -1" />
  2829. <div class="checkDiv" v-else>
  2830. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2831. </div>
  2832. </div>
  2833. </div>
  2834. <div class="tool">
  2835. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 45, toolIndex)">
  2836. <img src="../../../assets/icon/thirdToolList/choose.png" alt />
  2837. <div style="margin: 5px 0">选择题</div>
  2838. </div>
  2839. <div class="check" @click="addTools(45, itemTaskIndex, toolIndex)">
  2840. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(45) == -1" />
  2841. <div class="checkDiv" v-else>
  2842. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2843. </div>
  2844. </div>
  2845. </div>
  2846. <div class="tool">
  2847. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 15, toolIndex)">
  2848. <img src="../../../assets/icon/thirdToolList/answer.png" alt />
  2849. <div style="margin: 5px 0">问答工具</div>
  2850. </div>
  2851. <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
  2852. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(15) == -1" />
  2853. <div class="checkDiv" v-else>
  2854. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2855. </div>
  2856. </div>
  2857. </div>
  2858. <div class="tool">
  2859. <div class="whiteBIcon" @click="addTools(16, itemTaskIndex, toolIndex)">
  2860. <img src="../../../assets/icon/thirdToolList/work.png" alt />
  2861. <div style="margin: 5px 0">作业提交</div>
  2862. </div>
  2863. <div class="check" @click="addTools(16, itemTaskIndex, toolIndex)">
  2864. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(16) == -1" />
  2865. <div class="checkDiv" v-else>
  2866. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2867. </div>
  2868. </div>
  2869. </div>
  2870. <div class="tool">
  2871. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2872. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2873. <div style="margin: 5px 0">批量上传</div>
  2874. </div>
  2875. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2876. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2877. <div class="checkDiv" v-else>
  2878. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2879. </div>
  2880. </div>
  2881. </div>
  2882. <div class="tool">
  2883. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 41, toolIndex)">
  2884. <img src="../../../assets/icon/thirdToolList/select.png" alt />
  2885. <div style="margin: 5px 0">选择填空</div>
  2886. </div>
  2887. <div class="check" @click="addTools(41, itemTaskIndex, toolIndex)">
  2888. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(41) == -1" />
  2889. <div class="checkDiv" v-else>
  2890. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. <div class="tool">
  2895. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 47, toolIndex)">
  2896. <img src="../../../assets/icon/fourthToolList/conSentences.png" alt />
  2897. <div style="margin: 5px 0">连词成句</div>
  2898. </div>
  2899. <div class="check" @click="addTools(47, itemTaskIndex, toolIndex)">
  2900. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(47) == -1" />
  2901. <div class="checkDiv" v-else>
  2902. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2903. </div>
  2904. </div>
  2905. </div>
  2906. <div class="tool">
  2907. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 48, toolIndex)">
  2908. <img src="../../../assets/icon/fourthToolList/table.png" alt />
  2909. <div style="margin: 5px 0">表格</div>
  2910. </div>
  2911. <div class="check" @click="addTools(48, itemTaskIndex, toolIndex)">
  2912. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(48) == -1" />
  2913. <div class="checkDiv" v-else>
  2914. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2915. </div>
  2916. </div>
  2917. </div>
  2918. </div>
  2919. </div>
  2920. </div>
  2921. <div class="addToolFun" style="margin-bottom: 20px" @click="addToolFun(itemTaskIndex)">
  2922. <div class="addToolImg">
  2923. <img src="../../../assets/icon/add.png" alt />
  2924. </div>
  2925. <div>添加工具</div>
  2926. </div>
  2927. </div>
  2928. </div>
  2929. <div v-else-if="unitJson[unitIndex].easy == 1 ||
  2930. (unitJson[unitIndex].easy == 5 && itemTask.taskType == 2)
  2931. " class="toolChoose" style="padding: 0 0 0 30px">
  2932. <div class="tools">
  2933. <div class="leftTools" style="
  2934. width: 95%;
  2935. padding: 0 0 15px 0;
  2936. margin-bottom: 15px;
  2937. " v-for="(itemTool, toolIndex) in itemTask.toolChoose" :key="toolIndex">
  2938. <div style="min-height: 163px">
  2939. <div class="toolSort">
  2940. <div class="tool">
  2941. <div class="whiteBIcon" @click="openTools(itemTaskIndex, 50, toolIndex)">
  2942. <img src="../../../assets/icon/thirdToolList/plwork.png" alt />
  2943. <div style="margin: 5px 0">批量上传</div>
  2944. </div>
  2945. <div class="check" @click="addTools(50, itemTaskIndex, toolIndex)">
  2946. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTool.tool.indexOf(50) == -1" />
  2947. <div class="checkDiv" v-else>
  2948. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  2949. </div>
  2950. </div>
  2951. </div>
  2952. </div>
  2953. </div>
  2954. </div>
  2955. </div>
  2956. </div>
  2957. <div class="elist_css" v-if="!(unitJson[unitJson.length - 1].easy == 4)">
  2958. <div class="elist_title">
  2959. <div style="
  2960. display: flex;
  2961. flex-direction: row;
  2962. align-items: center;
  2963. margin-bottom: 20px;
  2964. ">
  2965. <div class="lineTitle">评价设置</div>
  2966. </div>
  2967. </div>
  2968. <div class="mbCss">
  2969. <div class="pjCss">
  2970. <div v-if="itemTask.eList && itemTask.eList.length" class="elist_input">
  2971. <div v-for="(eItem, eIndex) in itemTask.eList" :key="eIndex" class="elist_input_box">
  2972. <span>评价名称:</span>
  2973. <input type="input" v-model="itemTask.eList[eIndex].value" placeholder="填写评价名称" />
  2974. <span>评星等级:</span>
  2975. <el-rate v-model="itemTask.eList[eIndex].score" @change="setEListStar()" disabled></el-rate>
  2976. <div class="remove" @click="
  2977. deletEList(unitIndex, itemTaskIndex, eIndex)
  2978. "></div>
  2979. <div class="elist_inptu_text">
  2980. <span>评价描述:</span>
  2981. <input type="input" v-model="itemTask.eList[eIndex].detail" placeholder="填写评价描述" />
  2982. </div>
  2983. <div class="elist_inptu_text" v-if="evalua">
  2984. <span>目标:</span>
  2985. <!-- <input type="input" v-model="itemTask.eList[eIndex].target" placeholder="填写评价描述" /> -->
  2986. <!-- <el-select v-model="itemTask.eList[eIndex].target" placeholder="请选择目标"
  2987. @change="forceUpdate()">
  2988. <el-option v-for="(e, eIndex) in targetArray" :key="eIndex" :label="e.name"
  2989. :value="e.name">
  2990. </el-option>
  2991. </el-select> -->
  2992. <el-cascader :options="targetArray" v-model="itemTask.eList[eIndex].target"
  2993. :props="{ checkStrictly: true }" :show-all-levels="false" clearable></el-cascader>
  2994. </div>
  2995. </div>
  2996. </div>
  2997. <div class="addToolFun" @click="addEList(unitIndex, itemTaskIndex)" style="margin: 35px 35px 0 0">
  2998. <div class="addToolImg">
  2999. <img src="../../../assets/icon/add.png" alt />
  3000. </div>
  3001. <div>添加</div>
  3002. </div>
  3003. </div>
  3004. <div v-if="evalua" style="
  3005. border: 1px solid #e5e5e5;
  3006. width: 55%;
  3007. margin-top: 20px;
  3008. box-shadow: 3px 1px 15px 3px #e0e0e0;
  3009. " class="evaCss">
  3010. <div class="e_add_top">
  3011. <div class="e_add_title">
  3012. <span>当前使用目标管理</span>
  3013. <span>{{ eTitle }}</span>
  3014. <img src="../../../assets/line.png" class="cru_line" style="
  3015. width: 125px;
  3016. height: 20px;
  3017. bottom: -10px;
  3018. left: 155px;
  3019. " />
  3020. </div>
  3021. </div>
  3022. <div class="e_add_content" style="width: 100%">
  3023. <div class="e_add_list_pbox" style="width: 100%">
  3024. <div class="e_add_list_pbox_title">
  3025. <span class="type_title">切换模式</span>
  3026. <div class="type_content">
  3027. <span :class="{ active: typeMode == 1 }" @click="OtherMb(1)">目标树</span>
  3028. <span :class="{ active: typeMode == 2 }" @click="OtherMb(2)">目标罗盘</span>
  3029. <span :class="{ active: typeMode == 3 }" @click="OtherMb(3)">目标看板</span>
  3030. </div>
  3031. </div>
  3032. <div class="e_add_list_pbox_content">
  3033. <Mind :showBar="false" :mindData="data" style="width: 100%" :jsmindId="unitIndex + '-' + itemTaskIndex + 'mind'
  3034. " v-if="typeMode == 1"></Mind>
  3035. <Sunburst :Josn="eJson" :num="eJSONNum" style="width: 100%" v-if="typeMode == 2">
  3036. </Sunburst>
  3037. <SeeBoard :Josn="eJson" :num="eJSONNum" :ename="eTitle" style="width: 100%"
  3038. v-if="typeMode == 3"></SeeBoard>
  3039. </div>
  3040. </div>
  3041. </div>
  3042. </div>
  3043. </div>
  3044. </div>
  3045. <div class="funBlock" style="padding: 0">
  3046. <div class="fold" @click="fold(itemTaskIndex, $event, 1)">
  3047. <div>折叠</div>
  3048. <div class="arrow">
  3049. <img src="../../../assets/icon/fold.png" alt />
  3050. </div>
  3051. </div>
  3052. <div class="fold" @click="fold(itemTaskIndex, $event, 0)">
  3053. <div>展开</div>
  3054. <div class="arrow">
  3055. <img src="../../../assets/icon/expand.png" alt />
  3056. </div>
  3057. </div>
  3058. </div>
  3059. </div>
  3060. <div class="addTaskBorder" @click="addTaskBorder" v-if="!unitJson[unitIndex].easy">
  3061. <div>
  3062. <img src="../../../assets/icon/new/addStage.png" alt />
  3063. <span>添加任务</span>
  3064. </div>
  3065. </div>
  3066. </div>
  3067. </div>
  3068. </div>
  3069. <div class="rightBox" v-if="this.steps == 4">
  3070. <div class="basic_box_success">
  3071. <div class="right_img">
  3072. <img src="../../../assets/icon/right.png" alt />
  3073. </div>
  3074. <div style="font-weight: bold">成功</div>
  3075. <!-- <div>您的课程编号</div>
  3076. <div class="number">{{ number }}</div>-->
  3077. <!-- <div class="success_button">
  3078. <div class="look_course" @click="isNoFinsh">
  3079. 邀请老师协同编辑
  3080. </div>
  3081. <div class="attend_others" @click="goCourse">预览课程</div>
  3082. </div> -->
  3083. </div>
  3084. </div>
  3085. <div class="info_btnBox">
  3086. <button class="c_pub_button_return pub_btn_return_img" @click="
  3087. goTo(
  3088. '/course?userid=' +
  3089. userid +
  3090. '&oid=' +
  3091. oid +
  3092. '&org=' +
  3093. org +
  3094. '&role=' +
  3095. role
  3096. )
  3097. ">
  3098. 返回课程
  3099. </button>
  3100. <button class="c_pub_button_confirm pub_btn_finish_img" @click="nextSteps" v-if="this.steps == 1">
  3101. 确认上传
  3102. </button>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. <el-dialog title="提示" :visible.sync="dialogVisible" :append-to-body="true" width="25%" :before-close="handleClose"
  3108. class="dialog_diy2 customWidth">
  3109. <div>请复制该链接邀请协同编辑</div>
  3110. <div>http://www.boomyon.com/index-zhang.com</div>
  3111. <span slot="footer" class="dialog-footer">
  3112. <el-button type="primary">复制链接分享</el-button>
  3113. <el-button @click="dialogVisible = false">取消</el-button>
  3114. </span>
  3115. </el-dialog>
  3116. <el-dialog :title="updateBoolean2 ? '查看文档' : '添加文档'" :visible.sync="dialogVisible1" :append-to-body="true" width="25%"
  3117. :before-close="handleClose" class="dialog_diy2 customWidth">
  3118. <el-form>
  3119. <el-form-item label="文档标题">
  3120. <el-input v-model="tTitle" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3121. </el-form-item>
  3122. <div>文档简介</div>
  3123. <editor-bar v-model="tdetail" @change="change"></editor-bar>
  3124. </el-form>
  3125. <span slot="footer" class="dialog-footer">
  3126. <el-button @click="dialogVisible1 = false">取 消</el-button>
  3127. <el-button type="primary" @click="addWord" v-if="!updateBoolean2">添加</el-button>
  3128. <el-button type="primary" @click="upWord" v-else>修 改</el-button>
  3129. </span>
  3130. </el-dialog>
  3131. <el-dialog title="添加文档" :visible.sync="dialogVisible2" :append-to-body="true" width="500px"
  3132. :before-close="handleClose" class="dialog_diy">
  3133. <el-form>
  3134. <el-form-item label="文档标题">
  3135. <el-input v-model="templateC.title" auto-complete="off" placeholder="请输入文档标题名..."></el-input>
  3136. </el-form-item>
  3137. <div>文档内容</div>
  3138. <editor-bar v-model="cTemplate" @change="change"></editor-bar>
  3139. </el-form>
  3140. <span slot="footer" class="dialog-footer">
  3141. <el-button @click="clearChoose">取 消</el-button>
  3142. <el-button type="primary" @click="wordNext()">确定</el-button>
  3143. </span>
  3144. </el-dialog>
  3145. <el-dialog title="添加富文本" :visible.sync="dialogVisible6" :append-to-body="true" width="500px"
  3146. :before-close="handleClose" class="dialog_diy">
  3147. <el-form>
  3148. <el-form-item label="文本标题">
  3149. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3150. </el-form-item>
  3151. <div>富文本内容</div>
  3152. <editor-bar v-model="AttText.text" @change="change" v-if="dialogVisible6"></editor-bar>
  3153. </el-form>
  3154. <span slot="footer" class="dialog-footer">
  3155. <el-button @click="clearAttText">取 消</el-button>
  3156. <el-button type="primary" @click="isAddOrUpdateAttText">确定</el-button>
  3157. </span>
  3158. </el-dialog>
  3159. <el-dialog title="添加链接" :visible.sync="dialogVisible7" :append-to-body="true" width="500px"
  3160. :before-close="handleClose" class="dialog_diy lineCss">
  3161. <el-form>
  3162. <el-form-item label="标题" :label-width="formLabelWidth">
  3163. <span>
  3164. <el-input placeholder="请输入链接标题" clearable v-model="lineTitle" class="add_input"></el-input>
  3165. </span>
  3166. </el-form-item>
  3167. <el-form-item label="链接" :label-width="formLabelWidth">
  3168. <span>
  3169. <el-input placeholder="请输入链接" clearable v-model="line" class="add_input"></el-input>
  3170. </span>
  3171. </el-form-item>
  3172. </el-form>
  3173. <span slot="footer" class="dialog-footer">
  3174. <el-button @click="clearLine">取 消</el-button>
  3175. <el-button type="primary" @click="isAddOrUpdateLine">确定</el-button>
  3176. </span>
  3177. </el-dialog>
  3178. <el-dialog title="添加资源" :visible.sync="dialogVisibleSource" :append-to-body="true" width="100%"
  3179. :before-close="handleClose" class="dialog_diy source_diy">
  3180. <div>
  3181. <sourceDialog :sourceData="sourceData"></sourceDialog>
  3182. </div>
  3183. <span slot="footer" class="dialog-footer">
  3184. <el-button @click="dialogVisibleSource = false">取 消</el-button>
  3185. <el-button type="primary" @click="addSource">确定</el-button>
  3186. </span>
  3187. </el-dialog>
  3188. <el-dialog title="添加课程成员" :visible.sync="dialogVisible3" :append-to-body="true" width="25%" height="80%"
  3189. :before-close="handleClose" class="addNewPP customWidth">
  3190. <div class="people">
  3191. <div class="people_top">
  3192. <div class="people_nav">选择成员</div>
  3193. <div class="people_top_right">
  3194. <div class="people_search">
  3195. <el-input style="height: 100%" placeholder="搜索成员名称" v-model="searchPeople"></el-input>
  3196. <div class="search_img" @click="searchStudent">
  3197. <img src="../../../assets/icon/search.png" alt />
  3198. </div>
  3199. </div>
  3200. </div>
  3201. </div>
  3202. <el-checkbox-group v-model="checkboxList" class="people_name">
  3203. <el-checkbox v-for="item in studentJuri" :key="item.userid" :label="item.userid">{{ item.name ? item.name :
  3204. "暂无学生可选" }}</el-checkbox>
  3205. </el-checkbox-group>
  3206. </div>
  3207. <span slot="footer" class="dialog-footer">
  3208. <el-button @click="dialogVisible3 = false">取 消</el-button>
  3209. <el-button type="primary" @click="isAddPP">确定</el-button>
  3210. </span>
  3211. </el-dialog>
  3212. <el-dialog title="添加班级" :visible.sync="dialogVisibleClass" :append-to-body="true" width="400px" height="80%"
  3213. :before-close="handleClose" class="addNewPP">
  3214. <div class="people" style="height: 300px">
  3215. <div class="people_top">
  3216. <div class="people_top_right">
  3217. <div class="people_search">
  3218. <el-input placeholder="搜索班级名称" v-model="classSearch" @input="getClass()"></el-input>
  3219. <!-- @click="getClass()"
  3220. @keyup.enter.native="getClass()"
  3221. -->
  3222. <div class="search_img">
  3223. <img src="../../../assets/icon/search.png" alt />
  3224. </div>
  3225. </div>
  3226. </div>
  3227. <div class="people_nav">选择班级</div>
  3228. </div>
  3229. <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
  3230. <div v-for="item in grade2" :key="item.id" class="p_box">
  3231. <el-checkbox :label="item.id">
  3232. {{ item.name }}
  3233. </el-checkbox>
  3234. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
  3235. 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
  3236. <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
  3237. @click="OpenInviteD(item.id)">随机码设置</div>
  3238. <img src="../../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
  3239. </div>
  3240. </el-checkbox-group>
  3241. </div>
  3242. <span slot="footer" class="dialog-footer">
  3243. <el-button @click="dialogVisibleClass = false">取 消</el-button>
  3244. <el-button type="primary" @click="isAddClass">确定</el-button>
  3245. </span>
  3246. </el-dialog>
  3247. <el-dialog title="添加协同成员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="25%" height="80%"
  3248. :before-close="handleClose" class="addNewPP customWidth">
  3249. <div class="people">
  3250. <div class="people_top">
  3251. <div class="people_top_right">
  3252. <div class="people_search">
  3253. <el-input placeholder="搜索成员名称" v-model="searchTN" @keyup.enter.native="getTeacher"></el-input>
  3254. <div class="search_img" @click="getTeacher">
  3255. <img src="../../../assets/icon/search.png" alt />
  3256. </div>
  3257. </div>
  3258. </div>
  3259. <div class="people_nav">选择成员</div>
  3260. </div>
  3261. <el-checkbox-group v-model="checkboxList3" class="people_name" v-if="teacherJuri.length">
  3262. <el-checkbox v-for="item in teacherJuri" :key="item.userid" :label="item.userid">
  3263. <div class="t_j_box">
  3264. <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
  3265. <span>{{ item.name ? item.name : "暂无姓名" }}</span>
  3266. </el-tooltip>
  3267. <el-tooltip placement="top" :content="item.username">
  3268. <span>{{ item.username }}</span>
  3269. </el-tooltip>
  3270. <el-tooltip placement="top" :content="item.school">
  3271. <span>{{ item.school }}</span>
  3272. </el-tooltip>
  3273. </div>
  3274. </el-checkbox>
  3275. </el-checkbox-group>
  3276. <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
  3277. </div>
  3278. <span slot="footer" class="dialog-footer">
  3279. <el-button @click="dialogVisibleMember = false">取 消</el-button>
  3280. <el-button type="primary" @click="isAddPPTeacher">确定</el-button>
  3281. </span>
  3282. </el-dialog>
  3283. <el-dialog title="创建问卷" :visible.sync="dialogVisible5" :append-to-body="true" width="800px"
  3284. :before-close="handleClose" class="dialog_diy">
  3285. <div>
  3286. <div class="a_add_title" style="
  3287. display: flex;
  3288. flex-direction: row;
  3289. align-items: center;
  3290. justify-content: center;
  3291. ">
  3292. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3293. <el-input v-model="askJson.askTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3294. </div>
  3295. <div class="a_addBox">
  3296. <div style="font-size: 16px; color: #c7c7c7">请输入题目内容</div>
  3297. <div class="a_add_box" v-for="(item1, index1) in askJson.askCount" :key="index1">
  3298. <div class="a_add_checkType">
  3299. <span :class="{
  3300. active:
  3301. askJson.askJson[index1].type == '1' ||
  3302. !askJson.askJson[index1].type,
  3303. }" @click="checkAskType('1', askJson.askJson[index1])">单选题</span>
  3304. <span :class="{ active: askJson.askJson[index1].type == '2' }"
  3305. @click="checkAskType('2', askJson.askJson[index1])">多选题</span>
  3306. </div>
  3307. <div class="a_add_head">
  3308. <div>
  3309. {{ index1 + 1 + "、" }}
  3310. <el-input class="a_add_head_input" v-model="askJson.askJson[index1].askstitle" placeholder="请输入题目...">
  3311. </el-input>
  3312. </div>
  3313. <div class="a_add_head_div">
  3314. <el-button type="primary" size="small" @click="addAskList()">添加</el-button>
  3315. <el-button type="primary" size="small" @click="deleteAskList(index1)" v-if="askJson.askCount != 1">删除
  3316. </el-button>
  3317. </div>
  3318. </div>
  3319. <div class="a_add_body">
  3320. <div class="a_add_input">
  3321. <el-input v-for="(item2, checkIndex) in askJson.askJson[index1].askItem" :key="checkIndex"
  3322. v-model="askJson.askJson[index1].checkList[checkIndex]" placeholder="请输入选项..."
  3323. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3324. </div>
  3325. <div class="a_add_body_div">
  3326. <el-button style="margin: 10px 0px 0 0" type="primary" size="small"
  3327. @click="addcheckList(askJson.askJson[index1])">添加</el-button>
  3328. <el-button type="primary" size="small" style="margin: 10px 0 0 10px"
  3329. @click="deletecheckList(askJson.askJson[index1])" v-if="askJson.askJson[index1].askItem != 1">删除
  3330. </el-button>
  3331. </div>
  3332. </div>
  3333. </div>
  3334. </div>
  3335. </div>
  3336. <span slot="footer" class="dialog-footer">
  3337. <el-button @click="dialogVisible5 = false">取 消</el-button>
  3338. <el-button type="primary" @click="addAsk">确 定</el-button>
  3339. </span>
  3340. </el-dialog>
  3341. <el-dialog title="创建选择题" :visible.sync="dialogVisibleChoice" :append-to-body="true" width="800px"
  3342. :before-close="handleClose" class="dialog_diy">
  3343. <div>
  3344. <!-- <div class="a_add_title" style="
  3345. display: flex;
  3346. flex-direction: row;
  3347. align-items: center;
  3348. justify-content: center;
  3349. ">
  3350. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  3351. <el-input v-model="testJson.testTitle" placeholder="请输入标题" style="width: 400px"></el-input>
  3352. </div> -->
  3353. <div class="a_addBox">
  3354. <div style="font-size: 16px; color: #c7c7c7;display: flex;align-items: center;">
  3355. 请输入题目内容
  3356. <button class="c_pub_button_add pub_btn_paste_img" @click="pasteOption" style="margin-left: 10px">智能粘贴</button>
  3357. </div>
  3358. <div class="a_add_box" v-for="(item1, index1) in testJson.testCount" :key="index1">
  3359. <div class="a_add_checkType">
  3360. <span :class="{ active: testJson.testJson[index1].type == '1' }"
  3361. @click="checkTestType('1', testJson.testJson[index1])">单选题</span>
  3362. <span :class="{ active: testJson.testJson[index1].type == '2' }"
  3363. @click="checkTestType('2', testJson.testJson[index1])">多选题</span>
  3364. </div>
  3365. <div class="a_add_head">
  3366. <div class="timuUpImg">
  3367. <div>
  3368. {{ index1 + 1 + "、" }}
  3369. <el-input class="a_add_head_input" v-model="testJson.testJson[index1].teststitle"
  3370. placeholder="请输入题目...">
  3371. </el-input>
  3372. </div>
  3373. <div class="xzUpImg" @click.stop="addImg($event)">
  3374. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3375. <input type="file" accept="image/*" style="display: none" @change="beforeUploadTiMu($event, index1)" />
  3376. </div>
  3377. </div>
  3378. <div class="a_add_head_div">
  3379. <el-button type="primary" size="small" @click="addTestList()">添加</el-button>
  3380. <el-button type="primary" size="small" @click="deleteTestList(index1)" v-if="testJson.testCount != 1">删除
  3381. </el-button>
  3382. </div>
  3383. </div>
  3384. <div class="timuImgBox" v-if="testJson.testJson[index1].timuList &&
  3385. testJson.testJson[index1].timuList.length
  3386. ">
  3387. <div v-for="(timg, tIndex) in testJson.testJson[index1].timuList" :key="tIndex" class="timuImg"
  3388. @click.stop="previewImg(timg.src)">
  3389. <img :src="timg.src" alt="" />
  3390. <div class="deleteWord" @click.stop="deleteM(index1, tIndex)">
  3391. <img src="../../../assets/icon/delete.png" alt="" />
  3392. </div>
  3393. </div>
  3394. </div>
  3395. <div class="a_add_body">
  3396. <div class="a_add_input a_add_input_choice">
  3397. <el-radio-group v-model="testJson.testJson[index1].answer" v-if="testJson.testJson[index1].type == 1">
  3398. <div class="radioBox">
  3399. <el-radio v-for="(item2, checkIndex) in testJson.testJson[index1]
  3400. .testItem" :key="checkIndex" :label="checkIndex">
  3401. <div style="margin-right: 10px">
  3402. 选项{{ checkIndex + 1 }}
  3403. </div>
  3404. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex] &&
  3405. testJson.testJson[index1].checkList[checkIndex]
  3406. .imgType &&
  3407. testJson.testJson[index1].checkList[checkIndex]
  3408. .imgType == 1
  3409. ">
  3410. <div class="inImg" @click.stop="
  3411. previewImg(
  3412. testJson.testJson[index1].checkList[checkIndex]
  3413. .src
  3414. )
  3415. ">
  3416. <el-image :src="testJson.testJson[index1].checkList[checkIndex]
  3417. .src
  3418. " lazy />
  3419. <!-- <img :src="
  3420. testJson.testJson[index1].checkList[checkIndex]
  3421. .src
  3422. " alt="" /> -->
  3423. </div>
  3424. </div>
  3425. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex]
  3426. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  3427. <div class="xzUpImg" @click.stop="addImg($event)">
  3428. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3429. <input type="file" accept="image/*" style="display: none"
  3430. @change="beforeUploadTi($event, index1, checkIndex)" />
  3431. </div>
  3432. </el-radio>
  3433. </div>
  3434. </el-radio-group>
  3435. <el-checkbox-group v-model="testJson.testJson[index1].answer"
  3436. v-if="testJson.testJson[index1].type == '2'">
  3437. <div class="radioBox">
  3438. <el-checkbox v-for="(item2, checkIndex1) in testJson.testJson[index1]
  3439. .testItem" :key="checkIndex1" :label="checkIndex1">
  3440. <div style="margin-right: 10px">
  3441. 选项{{ checkIndex1 + 1 }}
  3442. </div>
  3443. <div style="margin-right: 10px; width: 300px" v-if="testJson.testJson[index1].checkList[checkIndex1] &&
  3444. testJson.testJson[index1].checkList[checkIndex1]
  3445. .imgType &&
  3446. testJson.testJson[index1].checkList[checkIndex1]
  3447. .imgType == 1
  3448. ">
  3449. <div class="inImg" @click.stop="
  3450. previewImg(
  3451. testJson.testJson[index1].checkList[checkIndex1]
  3452. .src
  3453. )
  3454. ">
  3455. <el-image :src="testJson.testJson[index1].checkList[checkIndex1]
  3456. .src
  3457. " lazy />
  3458. <!-- <img :src="
  3459. testJson.testJson[index1].checkList[checkIndex1]
  3460. .src
  3461. " alt="" /> -->
  3462. </div>
  3463. </div>
  3464. <el-input v-else v-model="testJson.testJson[index1].checkList[checkIndex1]
  3465. " placeholder="请输入选项..." style="width: 300px; margin-right: 10px"></el-input>
  3466. <div class="xzUpImg" @click.stop="addImg($event)">
  3467. <img src="../../../assets/icon/xzUpImg.png" alt="" />
  3468. <input type="file" accept="image/*" style="display: none"
  3469. @change="beforeUploadTi($event, index1, checkIndex1)" />
  3470. </div>
  3471. </el-checkbox>
  3472. </div>
  3473. </el-checkbox-group>
  3474. </div>
  3475. <div class="a_add_body_div" style="margin-bottom: 3px">
  3476. <el-button type="primary" size="small" @click="addTcheckList(testJson.testJson[index1])">添加</el-button>
  3477. <el-button type="primary" size="small" @click="deleteTcheckList(testJson.testJson[index1])"
  3478. v-if="testJson.testJson[index1].testItem != 1">删除
  3479. </el-button>
  3480. </div>
  3481. </div>
  3482. </div>
  3483. </div>
  3484. </div>
  3485. <span slot="footer" class="dialog-footer">
  3486. <el-button @click="dialogVisibleChoice = false">取 消</el-button>
  3487. <el-button type="primary" @click="addTest">确 定</el-button>
  3488. </span>
  3489. </el-dialog>
  3490. <el-dialog title="添加工具" :visible.sync="dialogVisible4" :append-to-body="true" width="600px"
  3491. :before-close="handleClose" class="dialog_diy addToolsDia">
  3492. <div class="toolChoose" style="padding: 0 0 0 30px">
  3493. <div class="tools">
  3494. <div class="leftTools" style="
  3495. width: 95%;
  3496. padding: 0 0 15px 0;
  3497. margin: 15px 0;
  3498. " v-for="(itemTools, itemToolsIndex) in chapTools" :key="itemToolsIndex">
  3499. <div style="
  3500. display: flex;
  3501. flex-direction: row;
  3502. align-items: baseline;
  3503. flex-wrap: nowrap;
  3504. justify-content: flex-start;
  3505. position: relative;
  3506. ">
  3507. <div class="chooseWho">
  3508. <div :class="chapToolsType == 0 ? 'isChooseActive' : ''" @click="chapToolsType = 0">
  3509. 互动类
  3510. </div>
  3511. <div :class="chapToolsType == 1 ? 'isChooseActive' : ''" @click="chapToolsType = 1">
  3512. 思维类
  3513. </div>
  3514. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3515. 评价类
  3516. </div>
  3517. <div :class="chapToolsType == 2 ? 'isChooseActive' : ''" @click="chapToolsType = 2">
  3518. 其他
  3519. </div>
  3520. </div>
  3521. </div>
  3522. <div style="min-height: 163px">
  3523. <div class="toolSort" v-if="chapToolsType == 0">
  3524. <div class="tool">
  3525. <div class="whiteBIcon" @click="chapAddTools(8)">
  3526. <img src="../../../assets/icon/secondToolList/library.png" alt />
  3527. <div style="margin: 5px 0">素材库</div>
  3528. </div>
  3529. <div class="check" @click="chapAddTools(8)">
  3530. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(8) == -1" />
  3531. <div class="checkDiv" v-else>
  3532. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3533. </div>
  3534. </div>
  3535. </div>
  3536. </div>
  3537. <div class="toolSort" v-if="chapToolsType == 1">
  3538. <div class="tool">
  3539. <div class="whiteBIcon" @click="chapAddTools(7)">
  3540. <img src="../../../assets/icon/secondToolList/mindNetwork.png" alt />
  3541. <div style="margin: 5px 0">思维网格</div>
  3542. </div>
  3543. <div class="check" @click="chapAddTools(7)">
  3544. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(7) == -1" />
  3545. <div class="checkDiv" v-else>
  3546. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. <div class="tool">
  3551. <div class="whiteBIcon" @click="chapAddTools(1)">
  3552. <img src="../../../assets/icon/secondToolList/whiteBoard.png" alt />
  3553. <div style="margin: 5px 0">电子白板</div>
  3554. </div>
  3555. <div class="check" @click="chapAddTools(1)">
  3556. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(1) == -1" />
  3557. <div class="checkDiv" v-else>
  3558. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3559. </div>
  3560. </div>
  3561. </div>
  3562. <div class="tool">
  3563. <div class="whiteBIcon" @click="chapAddTools(2)">
  3564. <img src="../../../assets/icon/secondToolList/note.png" alt />
  3565. <div style="margin: 5px 0">便签</div>
  3566. </div>
  3567. <div class="check" @click="chapAddTools(2)">
  3568. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(2) == -1" />
  3569. <div class="checkDiv" v-else>
  3570. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3571. </div>
  3572. </div>
  3573. </div>
  3574. <div class="tool">
  3575. <div class="whiteBIcon" @click="chapAddTools(6)">
  3576. <img src="../../../assets/icon/secondToolList/doc.png" alt />
  3577. <div style="margin: 5px 0">协同文档</div>
  3578. </div>
  3579. <div class="check" @click="chapAddTools(6)">
  3580. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(6) == -1" />
  3581. <div class="checkDiv" v-else>
  3582. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3583. </div>
  3584. </div>
  3585. </div>
  3586. <div class="tool">
  3587. <div class="whiteBIcon" @click="chapAddTools(3)">
  3588. <img src="../../../assets/icon/secondToolList/mindMapping.png" alt />
  3589. <div style="margin: 5px 0">思维导图</div>
  3590. </div>
  3591. <div class="check" @click="chapAddTools(3)">
  3592. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(3) == -1" />
  3593. <div class="checkDiv" v-else>
  3594. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3595. </div>
  3596. </div>
  3597. </div>
  3598. <div class="tool">
  3599. <div class="whiteBIcon" @click="chapAddTools(31)">
  3600. <img src="../../../assets/icon/secondToolList/networkPanel.png" alt />
  3601. <div style="margin: 5px 0">数学画板</div>
  3602. </div>
  3603. <div class="check" @click="chapAddTools(31)">
  3604. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(31) == -1" />
  3605. <div class="checkDiv" v-else>
  3606. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3607. </div>
  3608. </div>
  3609. </div>
  3610. </div>
  3611. <div class="toolSort" v-if="chapToolsType == 2">
  3612. <div class="tool">
  3613. <div class="whiteBIcon" @click="chapAddTools(5)">
  3614. <img src="../../../assets/icon/thirdToolList/score.png" alt />
  3615. <div style="margin: 5px 0">量规评分</div>
  3616. </div>
  3617. <div class="check" @click="chapAddTools(5)">
  3618. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(5) == -1" />
  3619. <div class="checkDiv" v-else>
  3620. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3621. </div>
  3622. </div>
  3623. </div>
  3624. <div class="tool">
  3625. <div class="whiteBIcon" @click="openTools(chapCount, 4, null)">
  3626. <img src="../../../assets/icon/thirdToolList/ask.png" alt />
  3627. <div style="margin: 5px 0">问卷调查</div>
  3628. </div>
  3629. <div class="check" @click="chapAddTools(4)">
  3630. <img src="../../../assets/icon/checkNo.png" alt v-if="itemTools.tools.indexOf(4) == -1" />
  3631. <div class="checkDiv" v-else>
  3632. <img src="../../../assets/icon/checkedIs.png" alt /><span>已选择</span>
  3633. </div>
  3634. </div>
  3635. </div>
  3636. </div>
  3637. </div>
  3638. <div>
  3639. <input type="text" placeholder="添加工具描述" class="binfo_input" style="margin: 20px 0; width: 71.5% !important"
  3640. v-model="itemTools.toolDetail" />
  3641. </div>
  3642. </div>
  3643. </div>
  3644. </div>
  3645. <span slot="footer" class="dialog-footer">
  3646. <el-button @click="dialogVisible4 = false">取 消</el-button>
  3647. <el-button type="primary" @click="addChaptersDataTools">确定</el-button>
  3648. </span>
  3649. </el-dialog>
  3650. <el-dialog title="添加问答" :visible.sync="dialogVisible8" :append-to-body="true" width="500px"
  3651. :before-close="handleClose" class="dialog_diy">
  3652. <div>
  3653. <div class="a_add_title" style="
  3654. display: flex;
  3655. flex-direction: column;
  3656. align-items: flex-start;
  3657. justify-content: center;
  3658. ">
  3659. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3660. <el-input v-model="answerQ" placeholder="请输入您要问的问题"></el-input>
  3661. </div>
  3662. </div>
  3663. <span slot="footer" class="dialog-footer">
  3664. <el-button @click="dialogVisible8 = false">取 消</el-button>
  3665. <el-button type="primary" @click="addAnswer">确 定</el-button>
  3666. </span>
  3667. </el-dialog>
  3668. <el-dialog title="添加问题" :visible.sync="dialogVisibleMp3" :append-to-body="true" width="500px"
  3669. :before-close="handleClose" class="dialog_diy">
  3670. <div>
  3671. <div class="a_add_title" style="
  3672. display: flex;
  3673. flex-direction: column;
  3674. align-items: flex-start;
  3675. justify-content: center;
  3676. ">
  3677. <div style="margin-bottom: 20px; font-size: 20px">问题:</div>
  3678. <el-input v-model="answerQ" placeholder="请输入您想要回答的问题"></el-input>
  3679. </div>
  3680. </div>
  3681. <span slot="footer" class="dialog-footer">
  3682. <el-button @click="dialogVisibleMp3 = false">取 消</el-button>
  3683. <el-button type="primary" @click="addMp3Answer">确 定</el-button>
  3684. </span>
  3685. </el-dialog>
  3686. <el-dialog title="上传图片" :visible.sync="choosePicVisible" :append-to-body="true" width="500px"
  3687. :before-close="handleClose" class="dialog_diy">
  3688. <div>
  3689. <div class="fileCss" style="padding-top: 20px">
  3690. <div>
  3691. <button class="info_btn" @click="addImg($event)">
  3692. 选择本地文件
  3693. <input type="file" accept="image/*" style="display: none" @change="beforeUpload1" />
  3694. </button>
  3695. </div>
  3696. <div>
  3697. <el-button @click="getAllBanner" v-if="isSysPic == false && cover.length == 0">选择系统文件</el-button>
  3698. <div class="isSysPic" v-if="isSysPic == true && cover.length > 0">
  3699. <img :src="cover[0].url" alt="" />
  3700. <div class="deletePic" @click="deleteSysPic">
  3701. <img src="../../../assets/icon/delete.png" alt="" />
  3702. </div>
  3703. </div>
  3704. </div>
  3705. </div>
  3706. <div class="fileCss">
  3707. <div>选择本地文件</div>
  3708. <div>选择系统文件</div>
  3709. </div>
  3710. </div>
  3711. <span slot="footer" class="dialog-footer">
  3712. <el-button @click="choosePicVisible = false">取 消</el-button>
  3713. <el-button type="primary" @click="choosePicVisible = false">确 定</el-button>
  3714. </span>
  3715. </el-dialog>
  3716. <el-dialog title="选择系统文件" :visible.sync="sysPicVisible" :append-to-body="true" width="710px"
  3717. :before-close="handleClose" class="dialog_diy">
  3718. <div class="cru_selectBox" style="margin: 0">
  3719. <div @click="getChoosePic(1)" class="cru_select" :class="chooseType == 1 ? 'cru_selected' : ''">
  3720. 绘画
  3721. </div>
  3722. <div @click="getChoosePic(2)" class="cru_select" :class="chooseType == 2 ? 'cru_selected' : ''">
  3723. 科技
  3724. </div>
  3725. <div @click="getChoosePic(3)" class="cru_select" :class="chooseType == 3 ? 'cru_selected' : ''">
  3726. 人文
  3727. </div>
  3728. <div @click="getChoosePic(4)" class="cru_select" :class="chooseType == 4 ? 'cru_selected' : ''">
  3729. 艺术
  3730. </div>
  3731. </div>
  3732. <div class="sysPicBox">
  3733. <div v-for="(sys, sysIndex) in sysPic" :key="sysIndex" class="sysPic">
  3734. <img :src="sys.poster" alt="" @click="chooseSysPic(sys.poster)" />
  3735. </div>
  3736. </div>
  3737. <span slot="footer" class="dialog-footer">
  3738. <el-button @click="sysPicVisible = false">取 消</el-button>
  3739. <el-button type="primary">确 定</el-button>
  3740. </span>
  3741. </el-dialog>
  3742. <el-dialog title="选择填空" :visible.sync="dialogVisibleSelect" :append-to-body="true" width="800px"
  3743. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3744. <div v-if="selectJson">
  3745. <div class="select_box1" v-if="selectSteps == 1">
  3746. <div class="select_box1_img">
  3747. <div class="select_box1_title">
  3748. <span>上传题目图片</span><span>提示:请将题目以图片的方式上传</span>
  3749. </div>
  3750. <div class="select_box1_add_img">
  3751. <div class="uploadFm" @click="addImg($event)" v-if="!selectJson.url">
  3752. <input type="file" accept="image/*" style="display: none" @change="beforeUploadSelect" />
  3753. <img src="../../../assets/icon/addPoster.png" alt="" />
  3754. </div>
  3755. <div class="isSysPic" v-else>
  3756. <img :src="selectJson.url" alt="" />
  3757. <div class="deletePic" @click="deleteSelectPic">
  3758. <img src="../../../assets/icon/delete.png" alt="" />
  3759. </div>
  3760. </div>
  3761. </div>
  3762. </div>
  3763. <div class="select_box1_select">
  3764. <div class="select_box1_title">
  3765. <span>添加选项</span><span>提示:请输入题目选项</span>
  3766. </div>
  3767. <div class="select_box1_select_box">
  3768. <el-input v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex"
  3769. v-model="selectJson.select[checkIndex]" placeholder="请输入选项..."
  3770. style="width: 150px; margin: 10px 10px 0 0"></el-input>
  3771. <div class="select_box1_select_box_add">
  3772. <el-button style="margin: 10px 0px 0 0" type="primary" size="small" @click="addSelectList(selectJson)">
  3773. 添加</el-button>
  3774. <el-button type="primary" size="small" style="margin: 10px 0 0 0" @click="deleteSelectList(selectJson)"
  3775. v-if="selectJson.select && selectJson.select.length > 0">删除</el-button>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. </div>
  3780. <div v-if="selectSteps == 2">
  3781. <div class="select_box2">
  3782. <div class="select_box2_title">设置答案</div>
  3783. <div class="select_box2_box">
  3784. <div class="select_box2_img">
  3785. <img :src="selectJson.url" alt="" />
  3786. </div>
  3787. <div class="select_box2_answer">
  3788. <div class="select_answer_title">根据题目选择对应答案</div>
  3789. <div class="select_box2_answer_box" v-for="(item2, checkIndex) in selectJson.select" :key="checkIndex">
  3790. <span>{{ checkIndex + 1 }}、</span>
  3791. <el-select v-model="selectJson.answer[checkIndex]" placeholder="请选择正确答案">
  3792. <el-option v-for="(e, eIndex) in selectJson.select" :key="eIndex" :label="e" :value="eIndex">
  3793. </el-option>
  3794. </el-select>
  3795. </div>
  3796. </div>
  3797. </div>
  3798. </div>
  3799. </div>
  3800. </div>
  3801. <span slot="footer" class="dialog-footer">
  3802. <el-button type="primary" @click="nextSelectSteps()" v-if="selectSteps == 1">下一步</el-button>
  3803. <el-button @click="selectSteps--" v-if="selectSteps == 2">上一步</el-button>
  3804. <el-button type="primary" @click="addSelectAnswer" v-if="selectSteps == 2">确 定</el-button>
  3805. </span>
  3806. </el-dialog>
  3807. <el-dialog title="添加评价" :visible.sync="dialogVisibleRate" :append-to-body="true" width="650px"
  3808. :before-close="handleClose" class="dialog_diy">
  3809. <div style="background: #fff; padding: 15px; box-sizing: border-box">
  3810. <div style="font-size: 18px; color: #a9a9a9">请输入个人评价指标:</div>
  3811. <div class="pjCss" style="width: 100%">
  3812. <div v-if="rateJson.length" class="elist_input" style="height: 360px; overflow: auto">
  3813. <div v-for="(eItem, eIndex) in rateJson" :key="eIndex" class="elist_input_box">
  3814. <span style="min-width: 100px; text-align: right">个人评价指标:</span>
  3815. <input type="input" v-model="eItem.value" placeholder="填写评价名称" />
  3816. <div class="remove" @click="deletRateList(eIndex)"></div>
  3817. <div style="width: 100%; display: flex">
  3818. <span style="min-width: 100px; text-align: right">评星等级:</span>
  3819. <el-rate v-model="eItem.score" disabled></el-rate>
  3820. </div>
  3821. <div class="elist_inptu_text" style="align-items: flex-start">
  3822. <span style="min-width: 100px; text-align: right">描述:</span>
  3823. <textarea class="rate_textarea" :rows="3" v-model="eItem.detail" placeholder="填写评价描述"></textarea>
  3824. </div>
  3825. </div>
  3826. </div>
  3827. <div class="addToolFun" @click="addRateList()">
  3828. <div class="addToolImg">
  3829. <img src="../../../assets/icon/add.png" alt />
  3830. </div>
  3831. <div>添加</div>
  3832. </div>
  3833. </div>
  3834. </div>
  3835. <span slot="footer" class="dialog-footer">
  3836. <el-button @click="dialogVisibleRate = false">取 消</el-button>
  3837. <el-button type="primary" @click="addRateAnswer">确 定</el-button>
  3838. </span>
  3839. </el-dialog>
  3840. <el-dialog title="连词成句设置" :visible.sync="dialogVisibleSentence" :append-to-body="true" width="1000px"
  3841. :before-close="handleClose" class="dialog_diy dialog_diy3">
  3842. <div>
  3843. <div class="sentenBox">
  3844. <div class="addSen" @click="addSt">添加题目</div>
  3845. <div v-for="(st, stIndex) in sentenceList" :key="stIndex" style="padding-bottom: 20px">
  3846. <div class="sentenTopBox">
  3847. <div class="sentenTop">
  3848. <div>题目设置</div>
  3849. <div>
  3850. <el-input placeholder="请输入卡片内容" v-model="st.sentenceTitle"></el-input>
  3851. </div>
  3852. <div @click="addSen(stIndex)">添加</div>
  3853. </div>
  3854. <div class="remove1" v-if="sentenceList.length > 1" @click="deleteSentence(stIndex)"></div>
  3855. </div>
  3856. <div class="cardList">
  3857. <div v-if="st.addSentence.length > 0" class="cardBox">
  3858. <div class="isCard" v-for="(s, sIndex) in st.addSentence" :key="sIndex"
  3859. @click="setRightAnswer(s, stIndex, sIndex)">
  3860. <el-tooltip class="item" effect="light" :content="s" placement="top">
  3861. <div>{{ s }}</div>
  3862. </el-tooltip>
  3863. <div class="deleteWord" @click.stop="deleteS(s, stIndex, sIndex)">
  3864. <img src="../../../assets/icon/delete.png" alt="" />
  3865. </div>
  3866. </div>
  3867. </div>
  3868. <div class="card">
  3869. <img src="../../../assets/icon/conSentences/noTitle.png" alt="" />
  3870. </div>
  3871. </div>
  3872. <div class="rightCardBox">
  3873. <div>正确顺序</div>
  3874. <div class="rightCardList">
  3875. <div v-if="st.rightAnswer.length > 0" class="cardBox">
  3876. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex" class="cardCss">
  3877. <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
  3878. <el-tooltip class="item" effect="light" :content="r" placement="top">
  3879. <div>{{ r }}</div>
  3880. </el-tooltip>
  3881. </div>
  3882. <div>{{ rIndex + 1 }}</div>
  3883. </div>
  3884. </div>
  3885. <div class="card" v-if="st.rightAnswer.length == 0">
  3886. <img src="../../../assets/icon/conSentences/noAnswer.png" alt="" />
  3887. </div>
  3888. </div>
  3889. </div>
  3890. </div>
  3891. </div>
  3892. </div>
  3893. <span slot="footer" class="dialog-footer">
  3894. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  3895. <el-button type="primary" @click="addSentenceTool">确 定</el-button>
  3896. </span>
  3897. </el-dialog>
  3898. <el-dialog title="添加表格" :visible.sync="dialogVisibleTable" :append-to-body="true" width="95%"
  3899. :before-close="handleClose" class="dialog_diy">
  3900. <el-form>
  3901. <!-- <el-form-item label="文本标题">
  3902. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3903. </el-form-item> -->
  3904. <div>表格内容</div>
  3905. <Table v-model="tableJson.text" @change="change"></Table>
  3906. </el-form>
  3907. <span slot="footer" class="dialog-footer">
  3908. <!-- <el-button @click="dialogVisibleTable = false">取 消</el-button>
  3909. <el-button type="primary" @click="addTableJson">确定</el-button> -->
  3910. <el-button type="primary" @click="addTableJson">上传模板</el-button>
  3911. </span>
  3912. </el-dialog>
  3913. <el-dialog title="添加文档" :visible.sync="dialogVisibleWord" :append-to-body="true" width="800px"
  3914. :before-close="handleClose" class="dialog_diy">
  3915. <el-form>
  3916. <!-- <el-form-item label="文本标题">
  3917. <el-input v-model="AttText.title" auto-complete="off" @input="change2" placeholder="请输入文本标题..."></el-input>
  3918. </el-form-item> -->
  3919. <div>文档内容</div>
  3920. <editor-bar v-model="wordJson.text"></editor-bar>
  3921. </el-form>
  3922. <span slot="footer" class="dialog-footer">
  3923. <!-- <el-button @click="dialogVisibleWord = false">取 消</el-button> -->
  3924. <el-button type="primary" @click="addWordJson">上传模板</el-button>
  3925. </span>
  3926. </el-dialog>
  3927. <el-dialog title="添加班级" :visible.sync="dialogVisibleMoreUpload" :append-to-body="true" width="30%"
  3928. :before-close="handleClose" class="dialog_diy">
  3929. <div style="
  3930. width: 100%;
  3931. display: flex;
  3932. flex-direction: row;
  3933. flex-wrap: nowrap;
  3934. align-items: center;
  3935. justify-content: center;
  3936. ">
  3937. <div>班级:</div>
  3938. <el-select multiple v-model="uploadJson" placeholder="请选择">
  3939. <el-option v-for="item in classJuri" :key="item.id" :label="item.name" :value="item.id">
  3940. </el-option>
  3941. </el-select>
  3942. </div>
  3943. <span slot="footer" class="dialog-footer">
  3944. <el-button @click="dialogVisibleMoreUpload = false">取 消</el-button>
  3945. <el-button type="primary" @click="addMoreUpload">确定</el-button>
  3946. </span>
  3947. </el-dialog>
  3948. <el-dialog title="设置随机码" :visible.sync="dialogVisibleInvite" :append-to-body="true" width="360px"
  3949. :before-close="handleClose" class="dialog_diy">
  3950. <div style="
  3951. width: 100%;
  3952. display: flex;
  3953. flex-direction: row;
  3954. flex-wrap: nowrap;
  3955. align-items: center;
  3956. justify-content: center;
  3957. ">
  3958. <div>随机码:</div>
  3959. <el-input v-model="icode" style="width: 240px" placeholder="请输入随机码"></el-input>
  3960. </div>
  3961. <span slot="footer" class="dialog-footer">
  3962. <el-button @click="dialogVisibleInvite = false">取 消</el-button>
  3963. <el-button type="primary" @click="addInvite">确定</el-button>
  3964. </span>
  3965. </el-dialog>
  3966. <el-dialog title="添加预设时间" :visible.sync="dialogVisiblePreTime" :append-to-body="true" width="30%"
  3967. :before-close="handleClose" class="dialog_diy">
  3968. <div>
  3969. <Time :preTime="preTime" @updateTimeNum="updateTime" v-if="dialogVisiblePreTime"></Time>
  3970. </div>
  3971. <span slot="footer" class="dialog-footer">
  3972. <el-button @click="dialogVisiblePreTime = false">取 消</el-button>
  3973. <el-button type="primary" @click="addPreTime">确定</el-button>
  3974. </span>
  3975. </el-dialog>
  3976. <el-dialog title="导入目标" :visible.sync="dialogVisiblemb" :append-to-body="true" width="70%" :before-close="handleClose"
  3977. class="dialog_diy">
  3978. <div>
  3979. <div style="
  3980. width: 100%;
  3981. display: flex;
  3982. flex-direction: row;
  3983. flex-wrap: nowrap;
  3984. align-content: center;
  3985. align-items: center;
  3986. justify-content: space-between;
  3987. ">
  3988. <div style="
  3989. display: flex;
  3990. flex-flow: row nowrap;
  3991. align-items: flex-start;
  3992. width: 100%;
  3993. flex-direction: column;
  3994. flex-wrap: nowrap;
  3995. position: relative;
  3996. ">
  3997. <div class="e_box">
  3998. <div class="e_card" v-for="(item, index) in evaJuri" :key="index">
  3999. <div class="e_card_picture">
  4000. <img src="../../../assets/e_picture.png" />
  4001. </div>
  4002. <div class="e_card_name">
  4003. <span>{{ item.title }}</span>
  4004. </div>
  4005. <div class="e_card_btn">
  4006. <span @click="checkEva(item.id, 2)">导入</span>
  4007. </div>
  4008. </div>
  4009. <div class="addEva" @click="openT">
  4010. <img src="../../../assets/icon/addEva.png" alt="" />
  4011. </div>
  4012. <div v-if="evaJuri.length === 0" style="margin: 0 auto; color: #6e6e6e">
  4013. 暂无数据
  4014. </div>
  4015. </div>
  4016. </div>
  4017. </div>
  4018. </div>
  4019. <span slot="footer" class="dialog-footer">
  4020. <el-button @click="dialogVisiblemb = false">取 消</el-button>
  4021. </span>
  4022. </el-dialog>
  4023. <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup" :append-to-body="true" width="650px"
  4024. :before-close="handleClose" class="dialog_diy">
  4025. <div class="groupBox">
  4026. <div v-if="groupJson.group" class="groupContent">
  4027. <div class="groupTitle">请设置小组数量</div>
  4028. <div v-for="(item, index) in groupJson.group" :key="index" class="groupName">
  4029. <span class="groupn">组{{ index + 1 }}名称:</span>
  4030. <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
  4031. <div class="groupBtn">
  4032. <el-button type="primary" size="small" @click="addGroup(index)">
  4033. 添加</el-button>
  4034. <el-button type="primary" size="small" @click="deleteGroup(index)"
  4035. v-if="groupJson.group && groupJson.group.length > 1">删除</el-button>
  4036. </div>
  4037. </div>
  4038. </div>
  4039. <div class="groupContent">
  4040. <div class="groupTitle">请设置每组人数数量</div>
  4041. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  4042. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  4043. <el-input-number v-model="groupJson.number" :controls="false" :min="2" :max="10"
  4044. placeholder="2-10人以内"></el-input-number>
  4045. </div>
  4046. </div>
  4047. <span slot="footer" class="dialog-footer">
  4048. <el-button @click="dialogVisibleGroup = false">取 消</el-button>
  4049. <el-button type="primary" @click="addGroupJson">确定</el-button>
  4050. </span>
  4051. </el-dialog>
  4052. <interVideo :dialogVisibleVideo.sync="dialogVisibleVideo" :videoJson="videoJson" @add="addVideoJson"></interVideo>
  4053. </div>
  4054. </template>
  4055. <script>
  4056. import "../../../common/aws-sdk-2.235.1.min.js";
  4057. import $ from "jquery";
  4058. import EditorBar from "../../../components/tools/wangEnduit";
  4059. import Table from "../../../components/tools/table";
  4060. import Mind from "../../tools/jsmind2";
  4061. import Time from "../../tools/time.vue";
  4062. import Sunburst from "../../tools/sunburst";
  4063. import SeeBoard from "../../tools/seeBoard";
  4064. import weilaiData from "../components/weilai.js";
  4065. import sourceDialog from "../teacherSource/dialog.vue";
  4066. import interVideo from "../interVideo/index.vue";
  4067. export default {
  4068. components: {
  4069. EditorBar,
  4070. Mind,
  4071. Time,
  4072. Sunburst,
  4073. SeeBoard,
  4074. Table,
  4075. sourceDialog,
  4076. interVideo,
  4077. },
  4078. data() {
  4079. return {
  4080. checkAll: false,
  4081. chooseType: 1,
  4082. checkedCities: [],
  4083. isIndeterminate: true,
  4084. isSysPic: false,
  4085. steps: 1,
  4086. nbOrder: 0,
  4087. courseId: "",
  4088. chapToolsType: 0,
  4089. chapTools: [
  4090. {
  4091. tools: [],
  4092. toolDetail: "",
  4093. },
  4094. ],
  4095. line: "",
  4096. lineTitle: "",
  4097. sysPic: [],
  4098. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  4099. isPushTitleList: [],
  4100. lineCount: 0,
  4101. lineType: 0,
  4102. chapCount: 0,
  4103. courseName: "",
  4104. isTeacherSee: true,
  4105. courseText: "",
  4106. preTime: 0,
  4107. formLabelWidth: "100px",
  4108. choosePicVisible: false,
  4109. sysPicVisible: false,
  4110. uploadLoading1: false,
  4111. noneBtnImg: false,
  4112. updateBoolean2: false,
  4113. unitIndex: 0,
  4114. taskCount: 0,
  4115. dialogVisible: false,
  4116. dialogVisible1: false,
  4117. dialogVisible2: false,
  4118. dialogVisible3: false,
  4119. dialogVisible4: false,
  4120. dialogVisible5: false,
  4121. dialogVisible6: false,
  4122. dialogVisible7: false,
  4123. dialogVisible8: false,
  4124. dialogVisible9: false,
  4125. dialogVisibleClass: false,
  4126. dialogVisibleMember: false,
  4127. dialogVisibleMp3: false,
  4128. dialogVisibleSelect: false,
  4129. dialogVisibleSentence: false,
  4130. dialogVisibleRate: false,
  4131. dialogVisibleChoice: false,
  4132. dialogVisiblemb: false,
  4133. dialogVisibleInvite: false,
  4134. dialogVisibleSource: false,
  4135. dialogVisibleVideo: false,
  4136. isClickColor: 0,
  4137. publicTool: 0,
  4138. searchPeople: "",
  4139. searchTN: "",
  4140. userid: this.$route.query.userid,
  4141. oid: this.$route.query.oid,
  4142. org: this.$route.query.org,
  4143. role: this.$route.query.role,
  4144. cid: this.$route.query.cid != undefined ? this.$route.query.cid : "",
  4145. dialogVisibleTable: false,
  4146. dialogVisibleWord: false,
  4147. tableJson: { text: "" },
  4148. wordJson: { text: "" },
  4149. dialogVisibleMoreUpload: false,
  4150. dialogVisiblePreTime: false,
  4151. uploadJson: [],
  4152. classJuri: [],
  4153. cover: [], //课程封面
  4154. myWord: [],
  4155. evaJuri: [],
  4156. evalua: "",
  4157. targetArray: [],
  4158. eTitle: "",
  4159. eJson: {},
  4160. fid: "", //一级
  4161. sid: "", //二级
  4162. tid: "", //二级
  4163. typeMode: 1,
  4164. eJSONNum: 0,
  4165. data: {
  4166. meta: {
  4167. name: "example",
  4168. author: "dd@163.com",
  4169. version: "0.2",
  4170. },
  4171. format: "node_array",
  4172. data: [{ id: "root", isroot: true, topic: "" }],
  4173. },
  4174. askJson: {
  4175. askCount: 1,
  4176. askTitle: "",
  4177. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4178. },
  4179. testJson: {},
  4180. selectJson: {},
  4181. rateJson: [],
  4182. unitJson2: [],
  4183. unitJson: [
  4184. {
  4185. dyName: "", //单元标题
  4186. chapterInfo: [
  4187. {
  4188. isread: false,
  4189. chapterid: this.guid(),
  4190. title: "",
  4191. courseName: "",
  4192. taskJson: [
  4193. {
  4194. task: "",
  4195. taskDetail: "",
  4196. chapterData: [],
  4197. toolChoose: [
  4198. {
  4199. tool: [],
  4200. toolDetail: "",
  4201. toolType: 1,
  4202. askCount: 1,
  4203. askTitle: "",
  4204. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4205. },
  4206. ],
  4207. toolText: "",
  4208. isShowTools: false,
  4209. askCount: 1,
  4210. isFold: 0,
  4211. askTitle: "",
  4212. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  4213. checkJson: [{ checkCount: [], checkPerent: [] }],
  4214. homeworkList: [],
  4215. },
  4216. ],
  4217. itemCount: 1,
  4218. fileList1: [],
  4219. video: [],
  4220. testData: [],
  4221. pData: [],
  4222. templateArray: [],
  4223. },
  4224. ],
  4225. },
  4226. ],
  4227. studentJuri: [],
  4228. teacherJuri: [],
  4229. checkboxList: [],
  4230. checkboxList2: [],
  4231. checkboxList3: [],
  4232. classSearch: "",
  4233. number: "",
  4234. tTitle: "",
  4235. tdetail: "",
  4236. templateC: {},
  4237. AttText: {},
  4238. AttTextType: 0,
  4239. AttTextIndex: 0,
  4240. cTemplate: "",
  4241. CourseType: [],
  4242. CourseType2: [],
  4243. CourseTypeJson: {},
  4244. courseTypeId: [],
  4245. courseTypeSon: [],
  4246. clearArray: [],
  4247. pTypeCheck: [],
  4248. pTypeCheckName: [],
  4249. loading: false,
  4250. toolType: 1,
  4251. inputShow: true,
  4252. inputShow2: true,
  4253. toolIndex: 0,
  4254. cidType: 0,
  4255. answerQ: "",
  4256. grade: [],
  4257. grade2: [],
  4258. courseUserid: "",
  4259. timer: null,
  4260. timer2: null,
  4261. checkId: "",
  4262. isDelete: 1,
  4263. addindex: 0,
  4264. selectSteps: 1,
  4265. groupJson: {},
  4266. dialogVisibleGroup: false,
  4267. rightBoxHeight: 0,
  4268. ManAarray: [],
  4269. checkBoolean: false,
  4270. inviteCode: [],
  4271. inviteId: "",
  4272. icode: "",
  4273. easyArray: [2, 4],
  4274. sourceData: {},
  4275. videoJson: {},
  4276. };
  4277. },
  4278. computed: {
  4279. // rightBoxHeight: function () {
  4280. // return $(".rightBox")[0] ? $(".rightBox")[0].scrollHeight : 1000
  4281. // },
  4282. offsetLetfPx: function () {
  4283. //addnum可以直接在模板语法里面用,相当于data内的值
  4284. return (
  4285. $(".cru_select")[this.unitIndex] &&
  4286. $(".cru_select")[this.unitIndex].offsetLeft
  4287. );
  4288. },
  4289. getMan2() {
  4290. return function (people) {
  4291. let _people = people;
  4292. let _people2 = "";
  4293. if (this.ManAarray.length) {
  4294. for (var i = 0; i < this.ManAarray.length; i++) {
  4295. if (this.ManAarray[i].userid == people) {
  4296. _people2 = this.ManAarray[i].name;
  4297. break;
  4298. }
  4299. }
  4300. }
  4301. if (people == this.courseUserid) {
  4302. return "";
  4303. }
  4304. return this.ManAarray.length ? _people2 : "";
  4305. };
  4306. },
  4307. isInvite() {
  4308. return function (cid) {
  4309. let array = [];
  4310. for (var i = 0; i < this.inviteCode.length; i++) {
  4311. array.push(this.inviteCode[i].cid);
  4312. }
  4313. return array.indexOf(cid) != -1;
  4314. };
  4315. },
  4316. getInviteCodeC() {
  4317. return function (cid) {
  4318. let array = [];
  4319. for (var i = 0; i < this.inviteCode.length; i++) {
  4320. array.push(this.inviteCode[i].cid);
  4321. }
  4322. return this.inviteCode[array.indexOf(cid)].ic;
  4323. };
  4324. },
  4325. getClassC() {
  4326. return function (c) {
  4327. let _c2 = "";
  4328. if (this.grade.length) {
  4329. for (var i = 0; i < this.grade.length; i++) {
  4330. if (this.grade[i].id == c) {
  4331. _c2 = this.grade[i].name;
  4332. break;
  4333. }
  4334. }
  4335. }
  4336. return this.grade.length ? _c2 : "";
  4337. };
  4338. },
  4339. },
  4340. watch: {
  4341. unitIndex(newValue, oldValue) {
  4342. if (this.isDelete == 2) {
  4343. this.isDelete = 1;
  4344. return;
  4345. }
  4346. if (this.cid != "") {
  4347. let _unitIndex = oldValue;
  4348. if (
  4349. JSON.stringify(this.unitJson2[_unitIndex]) ==
  4350. JSON.stringify(this.unitJson[_unitIndex])
  4351. ) {
  4352. this.$refs.rightboxR.scrollTop = 0;
  4353. return;
  4354. }
  4355. let cPan = 1;
  4356. for (
  4357. var j = 0;
  4358. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  4359. j++
  4360. ) {
  4361. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4362. j
  4363. ].proVisible = false;
  4364. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  4365. j
  4366. ].proVisible2 = false;
  4367. if (
  4368. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4369. .length > 1
  4370. ) {
  4371. for (
  4372. var z = 0;
  4373. z <
  4374. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].toolChoose
  4375. .length;
  4376. z++
  4377. ) {
  4378. if (
  4379. !this.unitJson[_unitIndex].chapterInfo[0].taskJson[j]
  4380. .toolChoose[z].tool.length
  4381. ) {
  4382. this.$message.error("请把工具添加完整");
  4383. cPan = 2;
  4384. break;
  4385. }
  4386. }
  4387. }
  4388. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  4389. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  4390. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  4391. (ele) => {
  4392. return ele.value != "";
  4393. }
  4394. );
  4395. }
  4396. }
  4397. if (cPan == 2) {
  4398. this.unitIndex = oldValue;
  4399. return;
  4400. }
  4401. for (var i = 0; i < this.unitJson.length; i++) {
  4402. if (this.addindex != i) {
  4403. delete this.unitJson[i].isUpdate;
  4404. }
  4405. }
  4406. this.$refs.rightboxR.scrollTop = 0;
  4407. this.addindex = -1;
  4408. let params = [
  4409. {
  4410. cid: this.cid,
  4411. chapters: JSON.stringify(this.unitJson),
  4412. uid: this.userid,
  4413. unitIndex: _unitIndex,
  4414. },
  4415. ];
  4416. this.ajax
  4417. .post(this.$store.state.api + "updateWorkNew4", params)
  4418. .then((res) => {
  4419. // this.$message({
  4420. // message: "修改成功",
  4421. // type: "success",
  4422. // });
  4423. // this.courseId = this.cid;
  4424. })
  4425. .catch((err) => {
  4426. this.$message.error("网络不佳");
  4427. console.error(err);
  4428. });
  4429. }
  4430. },
  4431. steps(newValue) {
  4432. if (newValue == 4) {
  4433. this.goTo(
  4434. "/course?userid=" +
  4435. this.userid +
  4436. "&oid=" +
  4437. this.oid +
  4438. "&org=" +
  4439. this.org +
  4440. "&role=" +
  4441. this.role
  4442. );
  4443. }
  4444. },
  4445. },
  4446. methods: {
  4447. setMan() {
  4448. // let teacherJuri = this.teacherJuri2;
  4449. this.ManAarray = [];
  4450. let _user = JSON.parse(JSON.stringify(this.checkboxList3));
  4451. if (_user.indexOf(this.courseUserid || this.userid) == -1) {
  4452. _user.push(this.courseUserid || this.userid);
  4453. }
  4454. let params = {
  4455. uid: _user.join(","),
  4456. };
  4457. this.ajax
  4458. .get(this.$store.state.api + "getAllUserById", params)
  4459. .then((res) => {
  4460. let teacherJuri = res.data[0];
  4461. this.ManAarray = teacherJuri;
  4462. })
  4463. .catch((err) => {
  4464. console.error(err);
  4465. });
  4466. },
  4467. previewImg(url) {
  4468. this.$hevueImgPreview(url);
  4469. },
  4470. scrollChange() {
  4471. this.rightBoxHeight = $(".rightBox")[0].scrollHeight;
  4472. // document.querySelector('.course_left').scrollHeight
  4473. // document.querySelector('.stepsBottom2').scrollHeight
  4474. let stepsBottom2 = $(".stepsBottom2")[0].clientHeight;
  4475. // let client = $(".course_left")[0].clientHeight - stepsBottom2
  4476. let client = $(".course_left")[0].clientHeight - stepsBottom2;
  4477. let top = $(".rightBox")[0].scrollTop - 300 - stepsBottom2;
  4478. // if (top < client) {
  4479. // $('.stepsBottom2')[0].style.position = 'absolute'
  4480. // $('.stepsBottom2')[0].style.top = 0 + 'px'
  4481. // // $('.stepsBottom2')[0].style.top = client + 'px'
  4482. // } else
  4483. if (top > 0) {
  4484. let top = $(".rightBox")[0].offsetTop;
  4485. $(".stepsBottom2")[0].style.position = "fixed";
  4486. $(".stepsBottom2")[0].style.top = top + "px";
  4487. // $('.stepsBottom2')[0].style.top = top + 'px'
  4488. } else {
  4489. $(".stepsBottom2")[0].style.position = "absolute";
  4490. $(".stepsBottom2")[0].style.top = "0px";
  4491. }
  4492. },
  4493. handleCheckAllChange(val) {
  4494. this.checkedCities = val ? cityOptions : [];
  4495. this.isIndeterminate = false;
  4496. },
  4497. handleCheckedCitiesChange(value) {
  4498. let checkedCount = value.length;
  4499. this.checkAll = checkedCount === this.cities.length;
  4500. this.isIndeterminate =
  4501. checkedCount > 0 && checkedCount < this.cities.length;
  4502. },
  4503. addHw(e) {
  4504. var el = e.currentTarget;
  4505. el.getElementsByTagName("input")[0].click();
  4506. },
  4507. change(val) {
  4508. console.log(val);
  4509. },
  4510. change2(val) {
  4511. console.log(val);
  4512. this.$forceUpdate();
  4513. },
  4514. handleClose(done) {
  4515. done();
  4516. },
  4517. imgChange2(i, j) {
  4518. var _tmp = this.testJson.testJson[i].checkList[j];
  4519. this.noneBtnImg = _tmp.length >= 1;
  4520. },
  4521. imgChange3(i) {
  4522. var _tmp = this.testJson.testJson[i];
  4523. this.noneBtnImg = _tmp.length >= 1;
  4524. },
  4525. imgChange1(file, fileList, type, itemTaskIndex) {
  4526. if (type == 1) {
  4527. var _tmp = this.cover;
  4528. } else if (
  4529. type == 2 ||
  4530. type == 3 ||
  4531. type == 6 ||
  4532. type == 7 ||
  4533. type == 8
  4534. ) {
  4535. var _tmp =
  4536. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4537. .chapterData;
  4538. } else if (type == 4) {
  4539. var _tmp = this.unitJson[this.unitIndex].chapterInfo[0].fileList1;
  4540. } else {
  4541. var _tmp =
  4542. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  4543. .homeworkList;
  4544. }
  4545. this.noneBtnImg = _tmp.length >= 1;
  4546. },
  4547. goTo(path) {
  4548. this.$router.push(path);
  4549. },
  4550. guid() {
  4551. var _num,
  4552. i,
  4553. _guid = "";
  4554. for (i = 0; i < 32; i++) {
  4555. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  4556. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  4557. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  4558. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  4559. _guid += "-";
  4560. }
  4561. }
  4562. return _guid;
  4563. },
  4564. lastSteps() {
  4565. this.goTo(
  4566. "/course?userid=" +
  4567. this.userid +
  4568. "&oid=" +
  4569. this.oid +
  4570. "&org=" +
  4571. this.org +
  4572. "&role=" +
  4573. this.role
  4574. );
  4575. },
  4576. nextSteps() {
  4577. if (this.cid == "" || this.cid == undefined) {
  4578. if (this.courseName == "") {
  4579. this.$message.error("请将信息填写完整");
  4580. return;
  4581. } else {
  4582. this.addWork();
  4583. }
  4584. } else {
  4585. if (this.courseName == "") {
  4586. this.$message.error("请将信息填写完整");
  4587. return;
  4588. } else {
  4589. if (this.userid != this.courseUserid && this.role != "1") {
  4590. this.updateWork2();
  4591. } else {
  4592. this.updateWork();
  4593. }
  4594. }
  4595. }
  4596. this.$refs.stepBox.scrollTop = 0;
  4597. },
  4598. unitSet(i) {
  4599. this.unitIndex = i;
  4600. // this.$refs.rightboxR.scrollTop = 0;
  4601. },
  4602. time() {
  4603. if (!this.now) {
  4604. this.now = new Date().getTime();
  4605. return true;
  4606. } else {
  4607. let time = new Date().getTime();
  4608. if (time - this.now > 3000) {
  4609. this.now = time;
  4610. return true;
  4611. } else {
  4612. return false;
  4613. }
  4614. }
  4615. },
  4616. deleteUnit(i) {
  4617. var _this = this;
  4618. if (_this.time()) {
  4619. _this
  4620. .$confirm("确定删除此单元吗?", "提示", {
  4621. confirmButtonText: "确定",
  4622. cancelButtonText: "取消",
  4623. type: "warning",
  4624. })
  4625. .then(() => {
  4626. _this.isDelete = 2;
  4627. // _this.unitIndex = _this.unitIndex - 1;
  4628. _this.deleteWork(_this.unitJson[i].chapterInfo[0].chapterid);
  4629. // _this.$message.success("删除成功");
  4630. })
  4631. .catch(() => {
  4632. return;
  4633. });
  4634. }
  4635. },
  4636. deleteWork(chapid) {
  4637. let params = [
  4638. {
  4639. cid: this.cid,
  4640. chapters: JSON.stringify(this.unitJson),
  4641. uid: this.userid,
  4642. chapid: chapid,
  4643. },
  4644. ];
  4645. this.ajax
  4646. .post(this.$store.state.api + "deleteWork", params)
  4647. .then((res) => {
  4648. this.$message({
  4649. message: "删除成功",
  4650. type: "success",
  4651. });
  4652. this.unitJson.splice(this.unitIndex, 1);
  4653. this.unitIndex = this.unitIndex - 1;
  4654. })
  4655. .catch((err) => {
  4656. this.$message.error("网络不佳");
  4657. console.error(err);
  4658. });
  4659. },
  4660. deleteTool(itemTaskIndex, i) {
  4661. var _this = this;
  4662. if (_this.time()) {
  4663. _this
  4664. .$confirm("确定删除此工具吗?", "提示", {
  4665. confirmButtonText: "确定",
  4666. cancelButtonText: "取消",
  4667. type: "warning",
  4668. })
  4669. .then(() => {
  4670. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4671. itemTaskIndex
  4672. ].toolChoose.splice(i, 1);
  4673. _this.$message.success("删除成功");
  4674. })
  4675. .catch(() => {
  4676. return;
  4677. });
  4678. }
  4679. },
  4680. deleteSentence(i) {
  4681. var _this = this;
  4682. if (_this.time()) {
  4683. _this
  4684. .$confirm("确定删除此题目吗?", "提示", {
  4685. confirmButtonText: "确定",
  4686. cancelButtonText: "取消",
  4687. type: "warning",
  4688. })
  4689. .then(() => {
  4690. _this.sentenceList.splice(i, 1);
  4691. _this.$message.success("删除成功");
  4692. })
  4693. .catch(() => {
  4694. return;
  4695. });
  4696. }
  4697. },
  4698. deleteS(s, i, j) {
  4699. this.sentenceList[i].addSentence.splice(j, 1);
  4700. if (this.sentenceList[i].rightAnswer.indexOf(s) != -1) {
  4701. var a = this.sentenceList[i].rightAnswer.indexOf(s);
  4702. this.sentenceList[i].rightAnswer.splice(a, 1);
  4703. }
  4704. },
  4705. openT() {
  4706. window.parent.postMessage({ tools: "25" }, "*");
  4707. },
  4708. deleteTask(i) {
  4709. var _this = this;
  4710. //((_this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.length - 1) == i) ? "确定删除此任务吗?" : "切换任务顺序将删除所有工具的提交成果,是否继续此操作?"
  4711. _this
  4712. .$confirm("确定删除此任务吗?", "提示", {
  4713. confirmButtonText: "确定",
  4714. cancelButtonText: "取消",
  4715. type: "warning",
  4716. })
  4717. .then(() => {
  4718. if (i == 0) {
  4719. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  4720. i + 1
  4721. ].chapterData = JSON.parse(
  4722. JSON.stringify(
  4723. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[i]
  4724. .chapterData
  4725. )
  4726. );
  4727. }
  4728. _this.$forceUpdate();
  4729. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson.splice(i, 1);
  4730. _this.$message.success("删除成功");
  4731. // this.$nextTick(() => {
  4732. // $('.stepsBottom2')[0].style.transition = 'unset'
  4733. // setTimeout(() => {
  4734. // let stepsBottom2 = $(".stepsBottom2")[0].clientHeight
  4735. // let client = $(".basic_box2")[0].clientHeight - stepsBottom2 - 100
  4736. // let top = $('.stepsBottom2')[0].offsetTop - 20
  4737. // if (top > client) {
  4738. // $('.stepsBottom2')[0].style.top = client + 'px'
  4739. // }
  4740. // $('.stepsBottom2')[0].style.transition = 'all .5s'
  4741. // this.$forceUpdate()
  4742. // }, 500)
  4743. // })
  4744. })
  4745. .catch(() => {
  4746. return;
  4747. });
  4748. },
  4749. handlePictureCardPreview(file) {
  4750. this.dialogImageUrl = file.url;
  4751. },
  4752. clean(i, c) {
  4753. this.unitJson[this.unitIndex].chapterInfo[i].fileList1.splice(c, 1);
  4754. },
  4755. handle_remove1(file, fileList, type) {
  4756. var _tmp = this.cover;
  4757. // for (var i = 0, len = _tmp.length; i < len; i++) {
  4758. // if (_tmp[i].uid == file.uid) {
  4759. // _tmp.splice(i, 1);
  4760. // break;
  4761. // }
  4762. // this.cover = _tmp;
  4763. // }
  4764. this.cover = [];
  4765. this.noneBtnImg = this.cover.length >= 1;
  4766. this.isSysPic = false;
  4767. this.$forceUpdate();
  4768. },
  4769. addImg(e) {
  4770. var el = e.currentTarget;
  4771. el.getElementsByTagName("input")[0].click();
  4772. e.target.value = "";
  4773. },
  4774. addChaptersTools(i) {
  4775. this.chapTools = [
  4776. {
  4777. tools: [],
  4778. toolDetail: "",
  4779. },
  4780. ];
  4781. this.chapCount = i;
  4782. this.dialogVisible4 = true;
  4783. },
  4784. isNoFinsh() {
  4785. this.$message.warning("功能正在开发中");
  4786. },
  4787. addAttText(i) {
  4788. this.AttText = {
  4789. title: "",
  4790. text: "",
  4791. };
  4792. this.taskCount = i;
  4793. this.AttTextType = 0;
  4794. this.$forceUpdate();
  4795. this.dialogVisible6 = true;
  4796. },
  4797. openLine(i) {
  4798. this.line = "";
  4799. this.lineCount = i;
  4800. this.lineType = 0;
  4801. this.$forceUpdate();
  4802. this.dialogVisible7 = true;
  4803. },
  4804. pasteLine(i) {
  4805. navigator.clipboard
  4806. .readText()
  4807. .then((v) => {
  4808. console.log("获取剪贴板成功:", v);
  4809. const html = v;
  4810. const regex = /src="(.*?)"/g;
  4811. const match = regex.exec(html);
  4812. if (match && match[1]) {
  4813. console.log(match[1]);
  4814. this.$message.success("粘贴成功");
  4815. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4816. i
  4817. ].chapterData.push({
  4818. name: "链接",
  4819. title: "嵌入代码",
  4820. url: match[1],
  4821. type: 8,
  4822. });
  4823. } else {
  4824. // console.log("未找到包含 src 属性的 iframe");
  4825. this.$message.error("没有找到粘贴的链接");
  4826. }
  4827. })
  4828. .catch((v) => {
  4829. console.log("获取剪贴板失败: ", v);
  4830. });
  4831. },
  4832. openSource(i) {
  4833. this.lineCount = i;
  4834. this.sourceData = {};
  4835. this.dialogVisibleSource = true;
  4836. },
  4837. addSource() {
  4838. if (!Object.keys(this.sourceData).length) {
  4839. this.$message.error("请选择要上传的资源");
  4840. return;
  4841. }
  4842. let keys = Object.keys(this.sourceData);
  4843. for (var i = 0; i < keys.length; i++) {
  4844. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  4845. this.lineCount
  4846. ].chapterData.push({
  4847. name: "链接",
  4848. title: this.sourceData[keys[i]].name,
  4849. url: this.sourceData[keys[i]].url,
  4850. type: 8,
  4851. });
  4852. }
  4853. this.$forceUpdate();
  4854. this.dialogVisibleSource = false;
  4855. },
  4856. deleteM(i, j) {
  4857. this.testJson.testJson[i].timuList.splice(j, 1);
  4858. },
  4859. beforeUploadTiMu(event, i) {
  4860. const loading = this.openLoading();
  4861. var file = event.target.files[0];
  4862. var credentials = {
  4863. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4864. secretAccessKey: "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",
  4865. }; //秘钥形式的登录上传
  4866. window.AWS.config.update(credentials);
  4867. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4868. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4869. var _this = this;
  4870. if (file) {
  4871. var params = {
  4872. Key:
  4873. file.name.split(".")[0] +
  4874. new Date().getTime() +
  4875. "." +
  4876. file.name.split(".")[file.name.split(".").length - 1],
  4877. ContentType: file.type,
  4878. Body: file,
  4879. "Access-Control-Allow-Credentials": "*",
  4880. ACL: "public-read",
  4881. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4882. var options = {
  4883. partSize: 2048 * 1024 * 1024,
  4884. queueSize: 2,
  4885. leavePartsOnError: true,
  4886. };
  4887. bucket
  4888. .upload(params, options)
  4889. .on("httpUploadProgress", function (evt) {
  4890. //这里可以写进度条
  4891. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4892. })
  4893. .send(function (err, data) {
  4894. loading.close();
  4895. if (err) {
  4896. _this.$message.error("上传失败");
  4897. } else {
  4898. if (_this.testJson.testJson[i].timuList) {
  4899. _this.testJson.testJson[i].timuList.push({
  4900. src: data.Location,
  4901. });
  4902. } else {
  4903. _this.testJson.testJson[i].timuList = [];
  4904. _this.testJson.testJson[i].timuList.push({
  4905. src: data.Location,
  4906. });
  4907. }
  4908. _this.imgChange3(i);
  4909. _this.$forceUpdate();
  4910. }
  4911. });
  4912. }
  4913. },
  4914. beforeUploadTi(event, i, j) {
  4915. const loading = this.openLoading();
  4916. var file = event.target.files[0];
  4917. var credentials = {
  4918. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4919. secretAccessKey: "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",
  4920. }; //秘钥形式的登录上传
  4921. window.AWS.config.update(credentials);
  4922. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4923. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4924. var _this = this;
  4925. if (file) {
  4926. var params = {
  4927. Key:
  4928. file.name.split(".")[0] +
  4929. new Date().getTime() +
  4930. "." +
  4931. file.name.split(".")[file.name.split(".").length - 1],
  4932. ContentType: file.type,
  4933. Body: file,
  4934. "Access-Control-Allow-Credentials": "*",
  4935. ACL: "public-read",
  4936. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4937. var options = {
  4938. partSize: 2048 * 1024 * 1024,
  4939. queueSize: 2,
  4940. leavePartsOnError: true,
  4941. };
  4942. bucket
  4943. .upload(params, options)
  4944. .on("httpUploadProgress", function (evt) {
  4945. //这里可以写进度条
  4946. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4947. })
  4948. .send(function (err, data) {
  4949. loading.close();
  4950. if (err) {
  4951. _this.$message.error("上传失败");
  4952. } else {
  4953. _this.testJson.testJson[i].checkList[j] = {};
  4954. _this.testJson.testJson[i].checkList[j].src = data.Location;
  4955. _this.testJson.testJson[i].checkList[j].imgType = 1;
  4956. _this.imgChange2(i, j);
  4957. _this.$forceUpdate();
  4958. }
  4959. });
  4960. }
  4961. },
  4962. beforeUpload1(event, type) {
  4963. // const loading = this.openLoading();
  4964. var file = event.target.files[0];
  4965. var credentials = {
  4966. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  4967. secretAccessKey: "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",
  4968. }; //秘钥形式的登录上传
  4969. window.AWS.config.update(credentials);
  4970. window.AWS.config.region = "cn-northwest-1"; //设置区域
  4971. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  4972. var _this = this;
  4973. if (file) {
  4974. var params = {
  4975. Key:
  4976. file.name.split(".")[0] +
  4977. new Date().getTime() +
  4978. "." +
  4979. file.name.split(".")[file.name.split(".").length - 1],
  4980. ContentType: file.type,
  4981. Body: file,
  4982. "Access-Control-Allow-Credentials": "*",
  4983. ACL: "public-read",
  4984. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  4985. var options = {
  4986. partSize: 2048 * 1024 * 1024,
  4987. queueSize: 2,
  4988. leavePartsOnError: true,
  4989. };
  4990. bucket
  4991. .upload(params, options)
  4992. .on("httpUploadProgress", function (evt) {
  4993. //这里可以写进度条
  4994. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  4995. })
  4996. .send(function (err, data) {
  4997. // loading.close();
  4998. if (err) {
  4999. // var a = _this.$refs.upload1.uploadFiles;
  5000. // a.splice(a.length - 1, a.length);
  5001. _this.$message.error("上传失败");
  5002. } else {
  5003. _this.cover.push({
  5004. name: file.name,
  5005. url: data.Location,
  5006. uid: file.uid,
  5007. });
  5008. _this.imgChange1(null, null, 1, null);
  5009. _this.choosePicVisible = false;
  5010. console.log(data.Location);
  5011. }
  5012. });
  5013. }
  5014. },
  5015. beforeUploadSelect(event, type) {
  5016. // const loading = this.openLoading();
  5017. var file = event.target.files[0];
  5018. var credentials = {
  5019. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5020. secretAccessKey: "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",
  5021. }; //秘钥形式的登录上传
  5022. window.AWS.config.update(credentials);
  5023. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5024. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5025. var _this = this;
  5026. if (file) {
  5027. var params = {
  5028. Key:
  5029. file.name.split(".")[0] +
  5030. new Date().getTime() +
  5031. "." +
  5032. file.name.split(".")[file.name.split(".").length - 1],
  5033. ContentType: file.type,
  5034. Body: file,
  5035. "Access-Control-Allow-Credentials": "*",
  5036. ACL: "public-read",
  5037. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5038. var options = {
  5039. partSize: 2048 * 1024 * 1024,
  5040. queueSize: 2,
  5041. leavePartsOnError: true,
  5042. };
  5043. bucket
  5044. .upload(params, options)
  5045. .on("httpUploadProgress", function (evt) {
  5046. //这里可以写进度条
  5047. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5048. })
  5049. .send(function (err, data) {
  5050. // loading.close();
  5051. if (err) {
  5052. _this.$message.error("上传失败");
  5053. } else {
  5054. _this.selectJson.url = data.Location;
  5055. console.log(data.Location);
  5056. }
  5057. });
  5058. }
  5059. },
  5060. chooseSysPic(p) {
  5061. this.cover.push({
  5062. name: "系统图片.png",
  5063. url: p,
  5064. });
  5065. this.imgChange1(null, null, 1, null);
  5066. this.isSysPic = true;
  5067. this.sysPicVisible = false;
  5068. },
  5069. beforeUpload(data) {
  5070. this.$refs.upload1.uploadFiles;
  5071. this.uploadLoading1 = true;
  5072. var file = data.file;
  5073. var credentials = {
  5074. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5075. secretAccessKey: "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",
  5076. }; //秘钥形式的登录上传
  5077. window.AWS.config.update(credentials);
  5078. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5079. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5080. var _this = this;
  5081. if (file) {
  5082. var params = {
  5083. Key:
  5084. file.name.split(".")[0] +
  5085. new Date().getTime() +
  5086. "." +
  5087. file.name.split(".")[file.name.split(".").length - 1],
  5088. ContentType: file.type,
  5089. Body: file,
  5090. "Access-Control-Allow-Credentials": "*",
  5091. ACL: "public-read",
  5092. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5093. var options = {
  5094. partSize: 2048 * 1024 * 1024,
  5095. queueSize: 2,
  5096. leavePartsOnError: true,
  5097. };
  5098. bucket
  5099. .upload(params, options)
  5100. .on("httpUploadProgress", function (evt) {
  5101. //这里可以写进度条
  5102. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5103. })
  5104. .send(function (err, data) {
  5105. _this.uploadLoading1 = false;
  5106. if (err) {
  5107. // var a = _this.$refs.upload1.uploadFiles;
  5108. // a.splice(a.length - 1, a.length);
  5109. _this.$message.error("上传失败");
  5110. } else {
  5111. //上传成功处理
  5112. _this.unitJson[_this.unitIndex].chapterInfo[0].fileList1.push({
  5113. name: file.name,
  5114. url: data.Location,
  5115. uid: file.uid,
  5116. });
  5117. _this.imgChange();
  5118. console.log(data.Location);
  5119. }
  5120. });
  5121. }
  5122. },
  5123. onExceed() {
  5124. this.$message.error("课程封面仅支持上传一张,请删除后再进行上传");
  5125. },
  5126. beforeUpload2(event, unitIndex, type, itemTaskIndex) {
  5127. // const loading = this.openLoading();
  5128. var file = event.target.files[0];
  5129. var credentials = {
  5130. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5131. secretAccessKey: "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",
  5132. }; //秘钥形式的登录上传
  5133. window.AWS.config.update(credentials);
  5134. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5135. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5136. var _this = this;
  5137. if (type == 3) {
  5138. var b = [
  5139. "DOC",
  5140. "DOCX",
  5141. "DOCM",
  5142. "DOTM",
  5143. "DOTX",
  5144. "PPTX",
  5145. "PPSX",
  5146. "PPT",
  5147. "PPS",
  5148. "PPTM",
  5149. "POTM",
  5150. "PPAM",
  5151. "POTX",
  5152. "PPSM",
  5153. "XLSX",
  5154. "XLS",
  5155. ];
  5156. if (
  5157. b.indexOf(
  5158. file.name
  5159. .split(".")
  5160. [file.name.split(".").length - 1].toLocaleUpperCase()
  5161. ) != -1
  5162. ) {
  5163. if (file.size / 1024 / 1024 > 80) {
  5164. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5165. this.inputShow = true;
  5166. // var a = _this.$refs.upload1.uploadFiles;
  5167. // a.splice(a.length - 1, a.length);
  5168. // loading.close();
  5169. return;
  5170. }
  5171. } else if (
  5172. file.name
  5173. .split(".")
  5174. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5175. ) {
  5176. if (file.size / 1024 / 1024 > 80) {
  5177. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5178. this.inputShow = true;
  5179. // var a = _this.$refs.upload1.uploadFiles;
  5180. // a.splice(a.length - 1, a.length);
  5181. // loading.close();
  5182. return;
  5183. }
  5184. }
  5185. }
  5186. this.inputShow = false;
  5187. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5188. itemTaskIndex
  5189. ].progress = 0;
  5190. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5191. itemTaskIndex
  5192. ].proVisible = true;
  5193. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5194. itemTaskIndex
  5195. ].isFinishSize = 0;
  5196. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5197. itemTaskIndex
  5198. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5199. _this.$forceUpdate();
  5200. if (file) {
  5201. var params = {
  5202. Key:
  5203. file.name.split(".")[0] +
  5204. new Date().getTime() +
  5205. "." +
  5206. file.name.split(".")[file.name.split(".").length - 1],
  5207. ContentType: file.type,
  5208. Body: file,
  5209. "Access-Control-Allow-Credentials": "*",
  5210. ACL: "public-read",
  5211. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5212. var options = {
  5213. partSize: 2048 * 1024 * 1024,
  5214. queueSize: 2,
  5215. leavePartsOnError: true,
  5216. };
  5217. bucket
  5218. .upload(params, options)
  5219. .on("httpUploadProgress", function (evt) {
  5220. //这里可以写进度条
  5221. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5222. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5223. itemTaskIndex
  5224. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5225. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5226. itemTaskIndex
  5227. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5228. _this.$forceUpdate();
  5229. })
  5230. .send(function (err, data) {
  5231. // loading.close();
  5232. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5233. itemTaskIndex
  5234. ].progress = 100;
  5235. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5236. itemTaskIndex
  5237. ].isFinishSize =
  5238. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5239. itemTaskIndex
  5240. ].isAllSize;
  5241. _this.$forceUpdate();
  5242. setTimeout(() => {
  5243. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5244. itemTaskIndex
  5245. ].proVisible = false;
  5246. _this.$forceUpdate();
  5247. }, 1000);
  5248. _this.inputShow = true;
  5249. if (err) {
  5250. // var a = _this.$refs.upload1.uploadFiles;
  5251. // a.splice(a.length - 1, a.length);
  5252. _this.$message.error("上传失败");
  5253. } else {
  5254. if (type == 13) {
  5255. let _type = 2;
  5256. var imgA = [
  5257. "png",
  5258. "jpg",
  5259. "jpeg",
  5260. "bmp",
  5261. "gif",
  5262. "webp",
  5263. "psd",
  5264. "svg",
  5265. "tiff",
  5266. ];
  5267. var fileA = [
  5268. "PDF",
  5269. "DOC",
  5270. "DOCX",
  5271. "DOCM",
  5272. "DOTM",
  5273. "DOTX",
  5274. "PPTX",
  5275. "PPSX",
  5276. "PPT",
  5277. "PPS",
  5278. "PPTM",
  5279. "POTM",
  5280. "PPAM",
  5281. "POTX",
  5282. "PPSM",
  5283. "XLSX",
  5284. "XLS",
  5285. ];
  5286. var videoA = [
  5287. "AVI",
  5288. "NAVI",
  5289. "MPEG",
  5290. "ASF",
  5291. "MOV",
  5292. "WMV",
  5293. "3GP",
  5294. "RM",
  5295. "RMVB",
  5296. "FLV",
  5297. "F4V",
  5298. "H.264",
  5299. "H.265",
  5300. "REAL VIDEO",
  5301. "MKV",
  5302. "WebM",
  5303. "HDDVD",
  5304. "MP4",
  5305. "MPG",
  5306. "M4V",
  5307. "MGV",
  5308. "OGV",
  5309. "QTM",
  5310. "STR",
  5311. "AMC",
  5312. "DVX",
  5313. "EVO",
  5314. "DAT",
  5315. "OGG",
  5316. "OGM",
  5317. ];
  5318. if (
  5319. fileA.indexOf(
  5320. data.Location.split(".")[
  5321. data.Location.split(".").length - 1
  5322. ].toLocaleUpperCase()
  5323. ) != -1
  5324. ) {
  5325. _type = 3;
  5326. } else if (
  5327. videoA.indexOf(
  5328. data.Location.split(".")[
  5329. data.Location.split(".").length - 1
  5330. ].toLocaleUpperCase()
  5331. ) != -1
  5332. ) {
  5333. _type = 2;
  5334. } else if (
  5335. imgA.indexOf(
  5336. data.Location.split(".")[
  5337. data.Location.split(".").length - 1
  5338. ].toLocaleLowerCase()
  5339. ) != -1
  5340. ) {
  5341. _type = 13;
  5342. } else {
  5343. _type = 12;
  5344. }
  5345. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5346. itemTaskIndex
  5347. ].chapterData.push({
  5348. name: file.name,
  5349. url: data.Location,
  5350. uid: file.uid,
  5351. type: _type,
  5352. });
  5353. _this.imgChange1(null, null, _type, itemTaskIndex);
  5354. } else if (type == 2 || type == 3 || type == 12) {
  5355. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5356. itemTaskIndex
  5357. ].chapterData.push({
  5358. name: file.name,
  5359. url: data.Location,
  5360. uid: file.uid,
  5361. type: type,
  5362. });
  5363. _this.imgChange1(null, null, type, itemTaskIndex);
  5364. } else if (type == 4) {
  5365. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5366. itemTaskIndex
  5367. ].fileList1.push({
  5368. name: file.name,
  5369. url: data.Location,
  5370. uid: file.uid,
  5371. });
  5372. _this.imgChange1(null, null, type, itemTaskIndex);
  5373. } else if (type == 5) {
  5374. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5375. itemTaskIndex
  5376. ].homeworkList.push({
  5377. name: file.name,
  5378. url: data.Location,
  5379. uid: file.uid,
  5380. });
  5381. _this.imgChange1(null, null, type, itemTaskIndex);
  5382. }
  5383. console.log(data.Location);
  5384. }
  5385. });
  5386. }
  5387. },
  5388. beforeUpload3(event, unitIndex, type, itemTaskIndex, string) {
  5389. // const loading = this.openLoading();
  5390. var file = event.target.files[0];
  5391. var credentials = {
  5392. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  5393. secretAccessKey: "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",
  5394. }; //秘钥形式的登录上传
  5395. window.AWS.config.update(credentials);
  5396. window.AWS.config.region = "cn-northwest-1"; //设置区域
  5397. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  5398. var _this = this;
  5399. if (type == 3) {
  5400. var b = [
  5401. "DOC",
  5402. "DOCX",
  5403. "DOCM",
  5404. "DOTM",
  5405. "DOTX",
  5406. "PPTX",
  5407. "PPSX",
  5408. "PPT",
  5409. "PPS",
  5410. "PPTM",
  5411. "POTM",
  5412. "PPAM",
  5413. "POTX",
  5414. "PPSM",
  5415. ];
  5416. if (
  5417. b.indexOf(
  5418. file.name
  5419. .split(".")
  5420. [file.name.split(".").length - 1].toLocaleUpperCase()
  5421. ) != -1
  5422. ) {
  5423. if (file.size / 1024 / 1024 > 80) {
  5424. this.$message.error("上传文件大于80兆,请重新选择文件!");
  5425. this.inputShow = true;
  5426. // var a = _this.$refs.upload1.uploadFiles;
  5427. // a.splice(a.length - 1, a.length);
  5428. // loading.close();
  5429. return;
  5430. }
  5431. } else if (
  5432. file.name
  5433. .split(".")
  5434. [file.name.split(".").length - 1].toLocaleUpperCase() != "PDF"
  5435. ) {
  5436. if (file.size / 1024 / 1024 > 80) {
  5437. this.$message.error("添加成上传文件大于80兆,请重新选择文件!");
  5438. this.inputShow = true;
  5439. // var a = _this.$refs.upload1.uploadFiles;
  5440. // a.splice(a.length - 1, a.length);
  5441. // loading.close();
  5442. return;
  5443. }
  5444. }
  5445. }
  5446. this.inputShow = false;
  5447. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5448. itemTaskIndex
  5449. ].progress = 0;
  5450. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5451. itemTaskIndex
  5452. ].proVisible = true;
  5453. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5454. itemTaskIndex
  5455. ].isFinishSize = 0;
  5456. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5457. itemTaskIndex
  5458. ].isAllSize = (file.size / 1024 / 1024).toFixed(2);
  5459. _this.$forceUpdate();
  5460. if (file) {
  5461. var params = {
  5462. Key:
  5463. file.name.split(".")[0] +
  5464. new Date().getTime() +
  5465. "." +
  5466. file.name.split(".")[file.name.split(".").length - 1],
  5467. ContentType: file.type,
  5468. Body: file,
  5469. "Access-Control-Allow-Credentials": "*",
  5470. ACL: "public-read",
  5471. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  5472. var options = {
  5473. partSize: 2048 * 1024 * 1024,
  5474. queueSize: 2,
  5475. leavePartsOnError: true,
  5476. };
  5477. bucket
  5478. .upload(params, options)
  5479. .on("httpUploadProgress", function (evt) {
  5480. //这里可以写进度条
  5481. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  5482. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5483. itemTaskIndex
  5484. ].progress = parseInt((evt.loaded / evt.total) * 100);
  5485. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5486. itemTaskIndex
  5487. ].isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  5488. _this.$forceUpdate();
  5489. })
  5490. .send(function (err, data) {
  5491. // loading.close();
  5492. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5493. itemTaskIndex
  5494. ].progress = 100;
  5495. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5496. itemTaskIndex
  5497. ].isFinishSize =
  5498. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5499. itemTaskIndex
  5500. ].isAllSize;
  5501. _this.$forceUpdate();
  5502. setTimeout(() => {
  5503. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5504. itemTaskIndex
  5505. ].proVisible = false;
  5506. _this.$forceUpdate();
  5507. }, 1000);
  5508. _this.inputShow = true;
  5509. if (err) {
  5510. // var a = _this.$refs.upload1.uploadFiles;
  5511. // a.splice(a.length - 1, a.length);
  5512. _this.$message.error("上传失败");
  5513. } else {
  5514. if (type == 2 || type == 3) {
  5515. _this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5516. itemTaskIndex
  5517. ].chapterData.push({
  5518. name: file.name,
  5519. // name: string+''+(_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5520. // itemTaskIndex
  5521. // ].chapterData.length+1),
  5522. url: data.Location,
  5523. uid: file.uid,
  5524. type: type,
  5525. text: string,
  5526. // text: string + '' + (_this.unitJson[unitIndex].chapterInfo[0].taskJson[
  5527. // itemTaskIndex
  5528. // ].chapterData.length + 1),
  5529. });
  5530. _this.imgChange1(null, null, type, itemTaskIndex);
  5531. } else if (type == 4) {
  5532. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5533. itemTaskIndex
  5534. ].fileList1.push({
  5535. name: file.name,
  5536. url: data.Location,
  5537. uid: file.uid,
  5538. });
  5539. _this.imgChange1(null, null, type, itemTaskIndex);
  5540. } else if (type == 5) {
  5541. _this.unitJson[_this.unitIndex].chapterInfo[0].taskJson[
  5542. itemTaskIndex
  5543. ].homeworkList.push({
  5544. name: file.name,
  5545. url: data.Location,
  5546. uid: file.uid,
  5547. });
  5548. _this.imgChange1(null, null, type, itemTaskIndex);
  5549. }
  5550. console.log(data.Location);
  5551. }
  5552. });
  5553. }
  5554. },
  5555. addunit() {
  5556. this.unitJson.push({
  5557. dyName: "", //单元标题
  5558. isUpdate: 1,
  5559. easy: this.unitJson[this.unitJson.length - 1].easy ? 1 : 0,
  5560. chapterInfo: [
  5561. {
  5562. isread: false,
  5563. chapterid: this.guid(),
  5564. title: "",
  5565. courseName: "",
  5566. taskJson: [
  5567. {
  5568. task: "",
  5569. taskDetail: "",
  5570. chapterData: [],
  5571. toolText: "",
  5572. toolChoose: [
  5573. {
  5574. tool: [],
  5575. toolDetail: "",
  5576. toolType: 1,
  5577. askCount: 1,
  5578. askTitle: "",
  5579. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5580. },
  5581. ],
  5582. isShowTools: false,
  5583. askCount: 1,
  5584. isFold: 0,
  5585. askTitle: "",
  5586. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5587. checkJson: [{ checkCount: [], checkPerent: [] }],
  5588. homeworkList: [],
  5589. },
  5590. ],
  5591. itemCount: 1,
  5592. fileList1: [],
  5593. video: [],
  5594. testData: [],
  5595. pData: [],
  5596. templateArray: [],
  5597. },
  5598. ],
  5599. });
  5600. this.addindex = this.unitJson.length - 1;
  5601. setTimeout(() => {
  5602. this.unitIndex = this.unitJson.length - 1;
  5603. this.unitSet(this.unitIndex);
  5604. }, 0);
  5605. },
  5606. addToolFun(itemTaskIndex) {
  5607. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  5608. itemTaskIndex
  5609. ].toolChoose.push({
  5610. tool: [],
  5611. toolDetail: "",
  5612. toolType: 1,
  5613. askCount: 1,
  5614. askTitle: "",
  5615. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5616. });
  5617. },
  5618. addTaskBorder() {
  5619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.push({
  5620. task: "",
  5621. taskDetail: "",
  5622. chapterData: [],
  5623. toolChoose: [
  5624. {
  5625. tool: [],
  5626. toolDetail: "",
  5627. toolType: 1,
  5628. askCount: 1,
  5629. askTitle: "",
  5630. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5631. },
  5632. ],
  5633. toolText: "",
  5634. isShowTools: false,
  5635. askCount: 1,
  5636. isFold: 0,
  5637. askTitle: "",
  5638. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  5639. checkJson: [{ checkCount: [], checkPerent: [] }],
  5640. homeworkList: [],
  5641. });
  5642. },
  5643. add(e, i) {
  5644. var el = e.currentTarget;
  5645. el.getElementsByTagName("input")[0].click();
  5646. },
  5647. fold(i, e, type) {
  5648. var a = e.currentTarget.parentElement.parentElement;
  5649. var b = e.currentTarget.parentElement;
  5650. if (type == 1) {
  5651. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 1;
  5652. a.className += " smallTaskBorder";
  5653. b.className += " funBlockTop";
  5654. } else {
  5655. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[i].isFold = 0;
  5656. a.className = "taskBorder";
  5657. b.className = "funBlock";
  5658. }
  5659. console.log(e);
  5660. },
  5661. deleteHomeworkBox(unitIndex, index, i) {
  5662. this.unitJson[unitIndex].chapterInfo[index].taskJson[
  5663. this.taskCount
  5664. ].homeworkList.splice(i, 1);
  5665. },
  5666. getStudent() {
  5667. let params = {
  5668. oid: this.oid,
  5669. cu: "",
  5670. cn: this.searchPeople,
  5671. };
  5672. this.ajax
  5673. .get(this.$store.state.api + "selectStudentAdd", params)
  5674. .then((res) => {
  5675. this.studentJuri = res.data[0];
  5676. })
  5677. .catch((err) => {
  5678. this.isLoading = false;
  5679. console.error(err);
  5680. });
  5681. },
  5682. getTeacher() {
  5683. let params = {
  5684. oid:
  5685. this.org && this.org != "undefined" && this.org != "null"
  5686. ? this.org
  5687. : this.oid,
  5688. cu: "",
  5689. cn: this.searchTN,
  5690. };
  5691. this.ajax
  5692. .get(
  5693. this.$store.state.api +
  5694. (this.org && this.org != "undefined" && this.org != "null"
  5695. ? "selectTeacherAddOrg"
  5696. : "selectTeacherAdd"),
  5697. params
  5698. )
  5699. .then((res) => {
  5700. let teacherJuri = res.data[0];
  5701. for (var i = 0; i < teacherJuri.length; i++) {
  5702. if (teacherJuri[i].userid == this.userid) {
  5703. teacherJuri.splice(i, 1);
  5704. break;
  5705. }
  5706. }
  5707. this.teacherJuri = teacherJuri;
  5708. })
  5709. .catch((err) => {
  5710. console.error(err);
  5711. });
  5712. },
  5713. searchStudent() {
  5714. this.getStudent();
  5715. },
  5716. //获取班级列表
  5717. getClass() {
  5718. let params = {
  5719. oid: this.oid,
  5720. cn: this.classSearch,
  5721. };
  5722. this.ajax
  5723. .get(this.$store.state.api + "selectClassBySchoolSearch", params)
  5724. .then((res) => {
  5725. if (!this.grade.length) {
  5726. this.grade = res.data[0];
  5727. }
  5728. this.grade2 = res.data[0];
  5729. this.classJuri = res.data[0];
  5730. })
  5731. .catch((err) => {
  5732. this.isLoading = false;
  5733. console.error(err);
  5734. });
  5735. },
  5736. CourseType2Change(val) {
  5737. this.pTypeCheck = [];
  5738. for (var i = 0; i < this.CourseType2.length; i++) {
  5739. let typeA = this.CourseType2[i];
  5740. if (val.indexOf(typeA.name) != -1) {
  5741. this.pTypeCheck.push(...typeA.id);
  5742. }
  5743. }
  5744. },
  5745. getChapterData(e, i, j, ic, type) {
  5746. e.stopPropagation();
  5747. this.updataC = true;
  5748. this.icc = ic;
  5749. if ((type == 2 || type == 3) && e.target.tagName !== "INPUT") {
  5750. console.log("还不能下载图片喔");
  5751. }
  5752. },
  5753. deleteChapterData(e, i, j, ic, taskI) {
  5754. e.stopPropagation();
  5755. this.unitJson[i].chapterInfo[j].taskJson[taskI].chapterData.splice(ic, 1);
  5756. },
  5757. updataVideoT(e, i, j, ic) {
  5758. e.stopPropagation();
  5759. this.unitJson[i].chapterInfo[0].taskJson[0].chapterData[
  5760. ic
  5761. ].name = JSON.parse(JSON.stringify(e.target.value));
  5762. this.$forceUpdate();
  5763. },
  5764. upCd(e, i, j, taskCount, ic) {
  5765. e.stopPropagation();
  5766. if (ic == 0) {
  5767. return;
  5768. }
  5769. var a =
  5770. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1]));
  5771. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic - 1] =
  5772. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5773. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5774. this.$forceUpdate();
  5775. },
  5776. downCd(e, i, j, taskCount, ic) {
  5777. e.stopPropagation();
  5778. if (
  5779. ic ==
  5780. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData.length -
  5781. 1
  5782. ) {
  5783. return;
  5784. }
  5785. var a =
  5786. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1]));
  5787. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic + 1] =
  5788. JSON.parse(JSON.stringify(this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic]));
  5789. this.unitJson[i].chapterInfo[0].taskJson[taskCount].chapterData[ic] = a;
  5790. this.$forceUpdate();
  5791. },
  5792. addWork() {
  5793. let cPan = 1;
  5794. for (var i = 0; i < this.unitJson.length; i++) {
  5795. for (
  5796. var j = 0;
  5797. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5798. j++
  5799. ) {
  5800. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5801. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5802. if (
  5803. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5804. ) {
  5805. for (
  5806. var z = 0;
  5807. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5808. z++
  5809. ) {
  5810. if (
  5811. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5812. .length
  5813. ) {
  5814. this.$message.error("请把工具添加完整");
  5815. cPan = 2;
  5816. break;
  5817. }
  5818. }
  5819. }
  5820. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5821. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5822. i
  5823. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5824. return ele.value != "";
  5825. });
  5826. }
  5827. }
  5828. }
  5829. this.inputShow = true;
  5830. if (cPan == 2) {
  5831. return;
  5832. }
  5833. for (var i = 0; i < this.unitJson.length; i++) {
  5834. delete this.unitJson[i].isUpdate;
  5835. }
  5836. let params = [
  5837. {
  5838. uid: this.userid,
  5839. title: this.courseName.replace(/%/g, "%25"),
  5840. brief: this.courseText.replace(/%/g, "%25"),
  5841. cover:
  5842. this.cover.length > 0
  5843. ? JSON.stringify(this.cover)
  5844. : JSON.stringify([
  5845. {
  5846. name: "noBanner.jpg",
  5847. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5848. uid: 1656409780264,
  5849. status: "success",
  5850. },
  5851. ]),
  5852. evaId: this.evalua,
  5853. astudent:
  5854. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5855. see: this.isTeacherSee == true ? 1 : 0,
  5856. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  5857. template: this.cTemplate != "undefined" ? this.cTemplate : "",
  5858. courseType: JSON.stringify(this.courseTypeId),
  5859. ateacher:
  5860. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  5861. inviteCode: JSON.stringify(this.inviteCode),
  5862. },
  5863. ];
  5864. this.ajax
  5865. .post(this.$store.state.api + "addWorkNew2T", params)
  5866. .then((res) => {
  5867. console.log(this.steps);
  5868. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  5869. this.$message({
  5870. message: "新增成功",
  5871. type: "success",
  5872. });
  5873. // }
  5874. this.number = res.data.ordernumber;
  5875. this.courseId = res.data.courseId;
  5876. this.cid = res.data.courseId;
  5877. this.courseUserid = this.userid;
  5878. this.islogin = true;
  5879. this.steps = 4;
  5880. })
  5881. .catch((err) => {
  5882. this.$message.error("网络不佳");
  5883. console.error(err);
  5884. });
  5885. },
  5886. goCourse() {
  5887. window.parent.postMessage({ cid: this.courseId, type: "1" }, "*");
  5888. },
  5889. updateWork2() {
  5890. let _unitIndex = this.unitIndex;
  5891. let cPan = 1;
  5892. for (
  5893. var j = 0;
  5894. j < this.unitJson[_unitIndex].chapterInfo[0].taskJson.length;
  5895. j++
  5896. ) {
  5897. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].proVisible = false;
  5898. this.unitJson[_unitIndex].chapterInfo[0].taskJson[
  5899. j
  5900. ].proVisible2 = false;
  5901. if (this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList) {
  5902. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList =
  5903. this.unitJson[_unitIndex].chapterInfo[0].taskJson[j].eList.filter(
  5904. (ele) => {
  5905. return ele.value != "";
  5906. }
  5907. );
  5908. }
  5909. }
  5910. this.inputShow = true;
  5911. if (cPan == 2) {
  5912. return;
  5913. }
  5914. let params = [
  5915. {
  5916. cid: this.cid,
  5917. chapters: JSON.stringify(this.unitJson),
  5918. uid: this.userid,
  5919. unitIndex: _unitIndex,
  5920. },
  5921. ];
  5922. this.ajax
  5923. .post(this.$store.state.api + "updateWorkNew4", params)
  5924. .then((res) => {
  5925. this.$message({
  5926. message: "修改成功",
  5927. type: "success",
  5928. });
  5929. this.courseId = this.cid;
  5930. })
  5931. .catch((err) => {
  5932. this.$message.error("网络不佳");
  5933. console.error(err);
  5934. });
  5935. },
  5936. updateWork() {
  5937. let cPan = 1;
  5938. for (var i = 0; i < this.unitJson.length; i++) {
  5939. for (
  5940. var j = 0;
  5941. j < this.unitJson[i].chapterInfo[0].taskJson.length;
  5942. j++
  5943. ) {
  5944. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible = false;
  5945. this.unitJson[i].chapterInfo[0].taskJson[j].proVisible2 = false;
  5946. if (
  5947. this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length > 1
  5948. ) {
  5949. for (
  5950. var z = 0;
  5951. z < this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose.length;
  5952. z++
  5953. ) {
  5954. if (
  5955. !this.unitJson[i].chapterInfo[0].taskJson[j].toolChoose[z].tool
  5956. .length
  5957. ) {
  5958. this.$message.error("请把工具添加完整");
  5959. cPan = 2;
  5960. break;
  5961. }
  5962. }
  5963. }
  5964. if (this.unitJson[i].chapterInfo[0].taskJson[j].eList) {
  5965. this.unitJson[i].chapterInfo[0].taskJson[j].eList = this.unitJson[
  5966. i
  5967. ].chapterInfo[0].taskJson[j].eList.filter((ele) => {
  5968. return ele.value != "";
  5969. });
  5970. }
  5971. }
  5972. }
  5973. this.inputShow = true;
  5974. if (cPan == 2) {
  5975. return;
  5976. }
  5977. for (var i = 0; i < this.unitJson.length; i++) {
  5978. delete this.unitJson[i].isUpdate;
  5979. }
  5980. let params = [
  5981. {
  5982. cid: this.cid,
  5983. title: this.courseName.replace(/%/g, "%25"),
  5984. brief: this.courseText.replace(/%/g, "%25"),
  5985. cover:
  5986. this.cover.length > 0
  5987. ? JSON.stringify(this.cover)
  5988. : JSON.stringify([
  5989. {
  5990. name: "noBanner.jpg",
  5991. url: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/wu1676621845022.png",
  5992. uid: 1656409780264,
  5993. status: "success",
  5994. },
  5995. ]),
  5996. evaId: this.evalua,
  5997. astudent:
  5998. this.checkboxList2.length > 0 ? this.checkboxList2.join(",") : "",
  5999. see: this.isTeacherSee == true ? 1 : 0,
  6000. chapters: JSON.stringify(this.unitJson).replaceAll(/%/g, "%25"),
  6001. template: this.myWord != "undefined" ? this.myWord : [],
  6002. uid: this.userid,
  6003. courseType: JSON.stringify(this.courseTypeId),
  6004. ateacher:
  6005. this.checkboxList3.length > 0 ? this.checkboxList3.join(",") : "",
  6006. inviteCode: JSON.stringify(this.inviteCode),
  6007. },
  6008. ];
  6009. this.ajax
  6010. .post(this.$store.state.api + "updateWorkNew2", params)
  6011. .then((res) => {
  6012. // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
  6013. if (this.cidType == 1) {
  6014. this.$message({
  6015. message: "修改成功",
  6016. type: "success",
  6017. });
  6018. } else {
  6019. this.$message({
  6020. message: "新增成功",
  6021. type: "success",
  6022. });
  6023. }
  6024. // }
  6025. this.number = this.nbOrder;
  6026. this.courseId = this.cid;
  6027. this.steps = 4;
  6028. })
  6029. .catch((err) => {
  6030. this.$message.error("网络不佳");
  6031. console.error(err);
  6032. });
  6033. },
  6034. guid() {
  6035. var _num,
  6036. i,
  6037. _guid = "";
  6038. for (i = 0; i < 32; i++) {
  6039. _guid += Math.floor(Math.random() * 16).toString(16); //随机0 - 16 的数字 转变为16进制的字符串
  6040. _num = Math.floor((i - 7) / 4); //计算 (i-7)除4
  6041. if (_num > -1 && _num < 4 && i == 7 + 4 * _num) {
  6042. //会使guid中间加 "-" 形式为xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  6043. _guid += "-";
  6044. }
  6045. }
  6046. return _guid;
  6047. },
  6048. insertWord() {
  6049. this.dialogVisible1 = true;
  6050. this.updateBoolean2 = false;
  6051. this.tTitle = "";
  6052. this.tdetail = "";
  6053. },
  6054. addWord() {
  6055. this.unitJson[this.unitIndex].chapterInfo[0].fileList1.push({
  6056. name: this.tTitle,
  6057. content: this.tdetail,
  6058. uid: this.guid(),
  6059. });
  6060. this.dialogVisible1 = false;
  6061. },
  6062. upWord() { },
  6063. selectWord(uid, i, c) {
  6064. this.dialogVisible1 = true;
  6065. this.updateBoolean2 = true;
  6066. if (
  6067. uid == this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].uid
  6068. ) {
  6069. this.tTitle =
  6070. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].name;
  6071. this.tdetail =
  6072. this.unitJson[this.unitIndex].chapterInfo[i].fileList1[c].content;
  6073. }
  6074. },
  6075. isAddPP() {
  6076. if (this.checkboxList.length > 0) {
  6077. this.$message({
  6078. message: "添加成功",
  6079. type: "success",
  6080. });
  6081. this.dialogVisible3 = false;
  6082. } else {
  6083. this.$message({
  6084. message: "请添加课程成员",
  6085. type: "error",
  6086. });
  6087. }
  6088. },
  6089. isAddClass() {
  6090. this.dialogVisibleClass = false;
  6091. },
  6092. isAddPPTeacher() {
  6093. this.dialogVisibleMember = false;
  6094. this.setMan();
  6095. },
  6096. getTemplate() {
  6097. this.ajax
  6098. .get(this.$store.state.api + "getCourseTemplateT", "")
  6099. .then((res) => {
  6100. this.templateArray = res.data[0];
  6101. this.getTemplateOid();
  6102. this.$forceUpdate();
  6103. })
  6104. .catch((err) => { });
  6105. },
  6106. getTemplateOid() {
  6107. let params = {
  6108. oid: this.oid,
  6109. };
  6110. this.ajax
  6111. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6112. .then((res) => {
  6113. if (res.data[0].length) {
  6114. this.templateArray = [...res.data[0], ...this.templateArray];
  6115. }
  6116. this.getTemplateOrg();
  6117. this.$forceUpdate();
  6118. })
  6119. .catch((err) => { });
  6120. },
  6121. getTemplateOrg() {
  6122. let params = {
  6123. oid: this.org,
  6124. };
  6125. this.ajax
  6126. .get(this.$store.state.api + "getCourseTemplateTByOid", params)
  6127. .then((res) => {
  6128. if (res.data[0].length) {
  6129. this.templateArray = [...res.data[0], ...this.templateArray];
  6130. }
  6131. this.$forceUpdate();
  6132. })
  6133. .catch((err) => { });
  6134. },
  6135. clearChoose() {
  6136. this.clearArray.splice(this.templateC.id, 1);
  6137. this.dialogVisible2 = false;
  6138. },
  6139. clearAttText() {
  6140. this.AttText = {
  6141. title: "",
  6142. text: "",
  6143. };
  6144. this.dialogVisible6 = false;
  6145. },
  6146. clearLine() {
  6147. this.line = "";
  6148. this.dialogVisible7 = false;
  6149. },
  6150. checkTemplate(res) {
  6151. let _this = this;
  6152. _this
  6153. .$confirm("确定选择此模板吗?", "提示", {
  6154. confirmButtonText: "确定",
  6155. cancelButtonText: "取消",
  6156. type: "warning",
  6157. })
  6158. .then(() => {
  6159. _this.unitJson = JSON.parse(res.chapters);
  6160. _this.steps++;
  6161. setTimeout(() => {
  6162. this.checkEva(this.checkId);
  6163. }, 1000);
  6164. })
  6165. .catch(() => {
  6166. return;
  6167. });
  6168. },
  6169. checkTemplate1(w) {
  6170. this.steps++;
  6171. },
  6172. checkTemplate2() {
  6173. let _this = this;
  6174. _this
  6175. .$confirm("确定选择空模板吗?", "提示", {
  6176. confirmButtonText: "确定",
  6177. cancelButtonText: "取消",
  6178. type: "warning",
  6179. })
  6180. .then(() => {
  6181. _this.unitIndex = 0;
  6182. _this.unitJson = [
  6183. {
  6184. dyName: "", //单元标题
  6185. chapterInfo: [
  6186. {
  6187. isread: false,
  6188. chapterid: this.guid(),
  6189. title: "",
  6190. courseName: "",
  6191. taskJson: [
  6192. {
  6193. task: "",
  6194. taskDetail: "",
  6195. chapterData: [],
  6196. toolText: "",
  6197. toolChoose: [
  6198. {
  6199. tool: [],
  6200. toolDetail: "",
  6201. toolType: 1,
  6202. askCount: 1,
  6203. askTitle: "",
  6204. askJson: [
  6205. { askstitle: "", askItem: 1, checkList: [] },
  6206. ],
  6207. },
  6208. ],
  6209. isShowTools: false,
  6210. askCount: 1,
  6211. isFold: 0,
  6212. askTitle: "",
  6213. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6214. checkJson: [{ checkCount: [], checkPerent: [] }],
  6215. homeworkList: [],
  6216. },
  6217. ],
  6218. itemCount: 1,
  6219. fileList1: [],
  6220. video: [],
  6221. testData: [],
  6222. pData: [],
  6223. templateArray: [],
  6224. },
  6225. ],
  6226. },
  6227. ];
  6228. this.steps++;
  6229. this.updateWork();
  6230. })
  6231. .catch(() => {
  6232. return;
  6233. });
  6234. },
  6235. checkTemplate3() {
  6236. let _this = this;
  6237. _this
  6238. .$confirm("确定选择简易模式吗?", "提示", {
  6239. confirmButtonText: "确定",
  6240. cancelButtonText: "取消",
  6241. type: "warning",
  6242. })
  6243. .then(() => {
  6244. _this.unitIndex = 0;
  6245. _this.unitJson = [
  6246. {
  6247. dyName: "", //单元标题
  6248. easy: 1,
  6249. chapterInfo: [
  6250. {
  6251. isread: false,
  6252. chapterid: this.guid(),
  6253. title: "",
  6254. courseName: "",
  6255. taskJson: [
  6256. {
  6257. task: "",
  6258. taskDetail: "",
  6259. chapterData: [],
  6260. toolText: "",
  6261. toolChoose: [
  6262. {
  6263. tool: [],
  6264. toolDetail: "",
  6265. toolType: 1,
  6266. askCount: 1,
  6267. askTitle: "",
  6268. askJson: [
  6269. { askstitle: "", askItem: 1, checkList: [] },
  6270. ],
  6271. },
  6272. ],
  6273. isShowTools: false,
  6274. askCount: 1,
  6275. isFold: 0,
  6276. askTitle: "",
  6277. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  6278. checkJson: [{ checkCount: [], checkPerent: [] }],
  6279. homeworkList: [],
  6280. },
  6281. ],
  6282. itemCount: 1,
  6283. fileList1: [],
  6284. video: [],
  6285. testData: [],
  6286. pData: [],
  6287. templateArray: [],
  6288. },
  6289. ],
  6290. },
  6291. ];
  6292. this.steps++;
  6293. this.updateWork();
  6294. })
  6295. .catch(() => {
  6296. return;
  6297. });
  6298. },
  6299. checkTemplate4() {
  6300. let _this = this;
  6301. _this
  6302. .$confirm("确定选择未来小学课程设计吗?", "提示", {
  6303. confirmButtonText: "确定",
  6304. cancelButtonText: "取消",
  6305. type: "warning",
  6306. })
  6307. .then(() => {
  6308. _this.unitIndex = 0;
  6309. _this.unitJson = JSON.parse(JSON.stringify(weilaiData));
  6310. this.steps++;
  6311. this.updateWork();
  6312. })
  6313. .catch(() => {
  6314. return;
  6315. });
  6316. },
  6317. wordNext() {
  6318. this.dialogVisible2 = false;
  6319. },
  6320. isAddOrUpdateAttText() {
  6321. if (this.AttTextType == 0) {
  6322. this.addAttTextMessage();
  6323. } else {
  6324. this.updateAttText();
  6325. }
  6326. },
  6327. isAddOrUpdateLine() {
  6328. if (!this.lineTitle) {
  6329. this.$message.error("请填写链接标题");
  6330. return;
  6331. }
  6332. if (this.lineType == 0) {
  6333. this.addLine();
  6334. } else {
  6335. this.updateLine();
  6336. }
  6337. },
  6338. addAttTextMessage() {
  6339. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6340. this.taskCount
  6341. ].chapterData.push({
  6342. name: this.AttText.title,
  6343. url: this.AttText.text,
  6344. type: 6,
  6345. });
  6346. this.imgChange1(null, null, 6, this.taskCount);
  6347. this.dialogVisible6 = false;
  6348. },
  6349. selectAttText(itemTaskIndex, i) {
  6350. this.AttText.title =
  6351. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6352. itemTaskIndex
  6353. ].chapterData[i].name;
  6354. this.AttText.text =
  6355. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6356. itemTaskIndex
  6357. ].chapterData[i].url;
  6358. this.taskCount = itemTaskIndex;
  6359. this.AttTextIndex = i;
  6360. this.AttTextType = 1;
  6361. this.dialogVisible6 = true;
  6362. },
  6363. updateAttText() {
  6364. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6365. this.taskCount
  6366. ].chapterData[this.AttTextIndex].name = this.AttText.title;
  6367. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6368. this.taskCount
  6369. ].chapterData[this.AttTextIndex].url = this.AttText.text;
  6370. this.dialogVisible6 = false;
  6371. },
  6372. addLine() {
  6373. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6374. this.lineCount
  6375. ].chapterData.push({
  6376. name: "链接",
  6377. title: this.lineTitle,
  6378. url: this.line,
  6379. type: 8,
  6380. });
  6381. this.imgChange1(null, null, 8, this.lineCount);
  6382. this.dialogVisible7 = false;
  6383. },
  6384. selectLine(itemTaskIndex, i) {
  6385. this.line =
  6386. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6387. itemTaskIndex
  6388. ].chapterData[i].url;
  6389. this.lineTitle = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6390. itemTaskIndex
  6391. ].chapterData[i].title
  6392. ? this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6393. .chapterData[i].title
  6394. : "";
  6395. this.taskCount = itemTaskIndex;
  6396. this.lineCount = i;
  6397. this.lineType = 1;
  6398. this.dialogVisible7 = true;
  6399. },
  6400. updateLine() {
  6401. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6402. this.taskCount
  6403. ].chapterData[this.lineCount].url = this.line;
  6404. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6405. this.taskCount
  6406. ].chapterData[this.lineCount].title = this.lineTitle;
  6407. this.dialogVisible7 = false;
  6408. },
  6409. addPP() {
  6410. this.dialogVisible3 = true;
  6411. },
  6412. goTo(path) {
  6413. this.$router.push(path);
  6414. },
  6415. openTools(itemTaskIndex, i, toolIndex) {
  6416. this.toolIndex = toolIndex;
  6417. this.taskCount = itemTaskIndex;
  6418. if (i == 4) {
  6419. if (toolIndex == null) {
  6420. var a =
  6421. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6422. .chapterData;
  6423. for (var i = 0; i < a.length; i++) {
  6424. if (a[i].url == 4 && a[i].askJson.askTitle != "") {
  6425. this.askJson =
  6426. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6427. itemTaskIndex
  6428. ].chapterData[i].askJson;
  6429. }
  6430. }
  6431. } else {
  6432. this.askJson = JSON.parse(
  6433. JSON.stringify(
  6434. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6435. itemTaskIndex
  6436. ].toolChoose[toolIndex]
  6437. )
  6438. );
  6439. }
  6440. this.dialogVisible5 = true;
  6441. } else if (i == 45) {
  6442. if (
  6443. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6444. .toolChoose[toolIndex].testJson
  6445. ) {
  6446. this.testJson = JSON.parse(
  6447. JSON.stringify(
  6448. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6449. itemTaskIndex
  6450. ].toolChoose[toolIndex].testJson
  6451. )
  6452. );
  6453. } else {
  6454. var testJson = {
  6455. testCount: 1,
  6456. testTitle: "",
  6457. testJson: [
  6458. {
  6459. teststitle: "",
  6460. testItem: 1,
  6461. checkList: [],
  6462. timuList: [],
  6463. answer: [],
  6464. type: "1",
  6465. },
  6466. ],
  6467. };
  6468. this.testJson = testJson;
  6469. }
  6470. this.dialogVisibleChoice = true;
  6471. } else if (i == 47) {
  6472. if (
  6473. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6474. .toolChoose[toolIndex].sentenceList
  6475. ) {
  6476. this.sentenceList = JSON.parse(
  6477. JSON.stringify(
  6478. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6479. itemTaskIndex
  6480. ].toolChoose[toolIndex].sentenceList
  6481. )
  6482. );
  6483. } else {
  6484. var sentenceList = [
  6485. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  6486. ];
  6487. this.sentenceList = sentenceList;
  6488. }
  6489. this.dialogVisibleSentence = true;
  6490. } else if (i == 48) {
  6491. if (
  6492. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6493. .toolChoose[toolIndex].tableJson
  6494. ) {
  6495. this.tableJson = JSON.parse(
  6496. JSON.stringify(
  6497. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6498. itemTaskIndex
  6499. ].toolChoose[toolIndex].tableJson
  6500. )
  6501. );
  6502. } else {
  6503. var tableJson = { text: "" };
  6504. this.tableJson = tableJson;
  6505. }
  6506. this.dialogVisibleTable = true;
  6507. } else if (i == 52) {
  6508. if (
  6509. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6510. .toolChoose[toolIndex].wordJson
  6511. ) {
  6512. this.wordJson = JSON.parse(
  6513. JSON.stringify(
  6514. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6515. itemTaskIndex
  6516. ].toolChoose[toolIndex].wordJson
  6517. )
  6518. );
  6519. } else {
  6520. var wordJson = { text: "" };
  6521. this.wordJson = wordJson;
  6522. }
  6523. this.dialogVisibleWord = true;
  6524. // else if (i == 50) {
  6525. // if (
  6526. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6527. // .toolChoose[toolIndex].uploadJson
  6528. // ) {
  6529. // this.uploadJson = JSON.parse(
  6530. // JSON.stringify(
  6531. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6532. // itemTaskIndex
  6533. // ].toolChoose[toolIndex].uploadJson
  6534. // )
  6535. // );
  6536. // } else {
  6537. // var uploadJson = [];
  6538. // this.uploadJson = uploadJson;
  6539. // }
  6540. // this.dialogVisibleMoreUpload = true;
  6541. // }
  6542. } else if (i == 10) {
  6543. if (
  6544. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6545. .toolChoose[toolIndex].preTime
  6546. ) {
  6547. this.preTime = JSON.parse(
  6548. JSON.stringify(
  6549. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6550. itemTaskIndex
  6551. ].toolChoose[toolIndex].preTime
  6552. )
  6553. );
  6554. } else {
  6555. var preTime = 0;
  6556. this.preTime = preTime;
  6557. }
  6558. this.dialogVisiblePreTime = true;
  6559. } else if (i == 49) {
  6560. if (
  6561. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6562. .toolChoose[toolIndex].groupJson
  6563. ) {
  6564. this.groupJson = JSON.parse(
  6565. JSON.stringify(
  6566. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6567. itemTaskIndex
  6568. ].toolChoose[toolIndex].groupJson
  6569. )
  6570. );
  6571. } else {
  6572. var groupJson = {
  6573. group: [{ name: "第1组" }],
  6574. number: undefined,
  6575. islock: 1,
  6576. };
  6577. this.groupJson = groupJson;
  6578. }
  6579. this.dialogVisibleGroup = true;
  6580. } else if (i == 62) {
  6581. if (
  6582. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6583. .toolChoose[toolIndex].videoJson
  6584. ) {
  6585. this.videoJson = JSON.parse(
  6586. JSON.stringify(
  6587. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6588. itemTaskIndex
  6589. ].toolChoose[toolIndex].videoJson
  6590. )
  6591. );
  6592. } else {
  6593. var videoJson = {
  6594. video: "",
  6595. setting: [],
  6596. };
  6597. this.videoJson = videoJson;
  6598. }
  6599. this.dialogVisibleVideo = true;
  6600. } else if (i == 15) {
  6601. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6602. itemTaskIndex
  6603. ].toolChoose[toolIndex].answerQ
  6604. ? JSON.parse(
  6605. JSON.stringify(
  6606. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6607. itemTaskIndex
  6608. ].toolChoose[toolIndex].answerQ
  6609. )
  6610. )
  6611. : "";
  6612. this.dialogVisible8 = true;
  6613. } else if (i == 40) {
  6614. this.rateJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6615. itemTaskIndex
  6616. ].toolChoose[toolIndex].rateJson
  6617. ? JSON.parse(
  6618. JSON.stringify(
  6619. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6620. itemTaskIndex
  6621. ].toolChoose[toolIndex].rateJson
  6622. )
  6623. )
  6624. : [{ detail: "", score: 5, value: "" }]; //{detail:"",score:5,value:""}
  6625. this.selectSteps = 1;
  6626. this.dialogVisibleRate = true;
  6627. } else if (i == 42) {
  6628. this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6629. itemTaskIndex
  6630. ].toolChoose[toolIndex].answerQ
  6631. ? JSON.parse(
  6632. JSON.stringify(
  6633. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6634. itemTaskIndex
  6635. ].toolChoose[toolIndex].answerQ
  6636. )
  6637. )
  6638. : "";
  6639. this.dialogVisibleMp3 = true;
  6640. } else if (i == 41) {
  6641. this.selectJson = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6642. itemTaskIndex
  6643. ].toolChoose[toolIndex].selectJson
  6644. ? JSON.parse(
  6645. JSON.stringify(
  6646. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6647. itemTaskIndex
  6648. ].toolChoose[toolIndex].selectJson
  6649. )
  6650. )
  6651. : { url: "", select: [], answer: [] };
  6652. this.selectSteps = 1;
  6653. this.dialogVisibleSelect = true;
  6654. } else if (i == 3) {
  6655. if (!this.cid) {
  6656. this.$message.error(
  6657. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  6658. );
  6659. return;
  6660. }
  6661. window.parent.postMessage(
  6662. {
  6663. tools: "3y",
  6664. cid: this.cid,
  6665. stage: this.unitIndex,
  6666. task: itemTaskIndex,
  6667. tool: toolIndex,
  6668. },
  6669. "*"
  6670. );
  6671. } else if (i == 1) {
  6672. if (!this.cid) {
  6673. this.$message.error(
  6674. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  6675. );
  6676. return;
  6677. }
  6678. window.parent.postMessage(
  6679. {
  6680. tools: "1y",
  6681. cid: this.cid,
  6682. stage: this.unitIndex,
  6683. task: itemTaskIndex,
  6684. tool: toolIndex,
  6685. },
  6686. "*"
  6687. );
  6688. } else if (i == 57) {
  6689. if (!this.cid) {
  6690. this.$message.error(
  6691. "极简模式添加时不能添加模板,请添加课程后再修改添加模板"
  6692. );
  6693. return;
  6694. }
  6695. window.parent.postMessage(
  6696. {
  6697. tools: "57y",
  6698. cid: this.cid,
  6699. stage: this.unitIndex,
  6700. task: itemTaskIndex,
  6701. tool: toolIndex,
  6702. },
  6703. "*"
  6704. );
  6705. }
  6706. },
  6707. chapAddTools(i) {
  6708. if (this.chapTools[0].tools.length == 0) {
  6709. this.chapTools[0].tools.push(i);
  6710. } else {
  6711. if (this.chapTools[0].tools.indexOf(i) != -1) {
  6712. this.chapTools[0].tools.splice(this.chapTools[0].tools.indexOf(i), 1);
  6713. } else {
  6714. this.chapTools[0].tools.push(i);
  6715. }
  6716. }
  6717. this.$forceUpdate();
  6718. },
  6719. addChaptersDataTools() {
  6720. if (this.chapTools[0].tools.indexOf(4) != -1) {
  6721. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6722. this.chapCount
  6723. ].chapterData.push({
  6724. name: this.chapTools[0].toolDetail,
  6725. url: this.chapTools[0].tools,
  6726. type: 7,
  6727. askJson: this.askJson,
  6728. });
  6729. } else {
  6730. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6731. this.chapCount
  6732. ].chapterData.push({
  6733. name: this.chapTools[0].toolDetail,
  6734. url: this.chapTools[0].tools,
  6735. type: 7,
  6736. });
  6737. }
  6738. this.imgChange1(null, null, 7, this.chapCount);
  6739. this.dialogVisible4 = false;
  6740. },
  6741. addTools(i, itemTaskIndex, toolIndex) {
  6742. // if (
  6743. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6744. // .toolChoose[toolIndex].tool.length == 0
  6745. // ) {
  6746. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6747. // itemTaskIndex
  6748. // ].toolChoose[toolIndex].tool.push(i);
  6749. // } else {
  6750. // if (
  6751. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6752. // itemTaskIndex
  6753. // ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6754. // ) {
  6755. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6756. // itemTaskIndex
  6757. // ].toolChoose[toolIndex].tool.splice(
  6758. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6759. // itemTaskIndex
  6760. // ].toolChoose[toolIndex].tool.indexOf(i),
  6761. // 1
  6762. // );
  6763. // } else {
  6764. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6765. // itemTaskIndex
  6766. // ].toolChoose[toolIndex].tool.push(i);
  6767. // }
  6768. // console.log(
  6769. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6770. // .toolChoose[toolIndex].tool
  6771. // );
  6772. // }
  6773. if (i == 4) {
  6774. if (
  6775. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6776. .toolChoose[toolIndex].askJson.askTitle == "" ||
  6777. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6778. .toolChoose[toolIndex].askJson[0].askstitle == "" ||
  6779. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6780. .toolChoose[toolIndex].askJson[0].checkList < 2
  6781. ) {
  6782. this.openTools(itemTaskIndex, 4, toolIndex);
  6783. // this.$message({
  6784. // message: "请填写完整问卷内容",
  6785. // type: "error",
  6786. // });
  6787. return;
  6788. }
  6789. }
  6790. if (i == 45) {
  6791. if (
  6792. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6793. .toolChoose[toolIndex].testJson ||
  6794. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6795. .toolChoose[toolIndex].testJson.testJson[0].teststitle == "" ||
  6796. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6797. .toolChoose[toolIndex].testJson.testJson[0].checkList < 2
  6798. ) {
  6799. this.openTools(itemTaskIndex, 45, toolIndex);
  6800. // this.$message({
  6801. // message: "请填写完整问卷内容",
  6802. // type: "error",
  6803. // });
  6804. return;
  6805. }
  6806. }
  6807. if (i == 47) {
  6808. if (
  6809. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6810. .toolChoose[toolIndex].sentenceList ||
  6811. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6812. .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
  6813. ) {
  6814. this.openTools(itemTaskIndex, 47, toolIndex);
  6815. return;
  6816. }
  6817. }
  6818. // if (i == 48) {
  6819. // if (
  6820. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6821. // .toolChoose[toolIndex].tableJson
  6822. // ) {
  6823. // this.openTools(itemTaskIndex, 48, toolIndex);
  6824. // return;
  6825. // }
  6826. // }
  6827. // if (i == 50) {
  6828. // if (
  6829. // !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6830. // .toolChoose[toolIndex].uploadJson
  6831. // ) {
  6832. // this.openTools(itemTaskIndex, 50, toolIndex);
  6833. // return;
  6834. // }
  6835. // }
  6836. if (i == 49) {
  6837. if (
  6838. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6839. .toolChoose[toolIndex].groupJson
  6840. ) {
  6841. this.openTools(itemTaskIndex, 49, toolIndex);
  6842. return;
  6843. }
  6844. }
  6845. if (i == 62) {
  6846. if (
  6847. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6848. .toolChoose[toolIndex].videoJson
  6849. ) {
  6850. this.openTools(itemTaskIndex, 62, toolIndex);
  6851. return;
  6852. }
  6853. }
  6854. if (i == 15) {
  6855. if (
  6856. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6857. .toolChoose[toolIndex].answerQ ||
  6858. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6859. .toolChoose[toolIndex].answerQ == ""
  6860. ) {
  6861. this.openTools(itemTaskIndex, 15, toolIndex);
  6862. // this.$message({
  6863. // message: "请填写问答内容",
  6864. // type: "error",
  6865. // });
  6866. return;
  6867. }
  6868. }
  6869. if (i == 40) {
  6870. if (
  6871. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6872. .toolChoose[toolIndex].rateJson ||
  6873. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6874. .toolChoose[toolIndex].rateJson.length
  6875. ) {
  6876. this.openTools(itemTaskIndex, 40, toolIndex);
  6877. return;
  6878. }
  6879. }
  6880. if (i == 41) {
  6881. if (
  6882. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6883. .toolChoose[toolIndex].selectJson ||
  6884. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6885. .toolChoose[toolIndex].selectJson.url == "" ||
  6886. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6887. .toolChoose[toolIndex].selectJson.select.length ||
  6888. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6889. .toolChoose[toolIndex].selectJson.answer.length
  6890. ) {
  6891. this.openTools(itemTaskIndex, 41, toolIndex);
  6892. return;
  6893. }
  6894. }
  6895. if (i == 42) {
  6896. if (
  6897. !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6898. .toolChoose[toolIndex].answerQ ||
  6899. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6900. .toolChoose[toolIndex].answerQ == ""
  6901. ) {
  6902. this.openTools(itemTaskIndex, 42, toolIndex);
  6903. return;
  6904. }
  6905. }
  6906. if (
  6907. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
  6908. .toolChoose[toolIndex].tool.length > 0
  6909. ) {
  6910. if (
  6911. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6912. itemTaskIndex
  6913. ].toolChoose[toolIndex].tool.indexOf(i) != -1
  6914. ) {
  6915. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6916. itemTaskIndex
  6917. ].toolChoose[toolIndex].tool.splice(
  6918. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6919. itemTaskIndex
  6920. ].toolChoose[toolIndex].tool.indexOf(i),
  6921. 1
  6922. );
  6923. } else {
  6924. // this.$message({
  6925. // message: "每个工具只能添加一个",
  6926. // type: "error",
  6927. // });
  6928. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6929. itemTaskIndex
  6930. ].toolChoose[toolIndex].tool = [];
  6931. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6932. itemTaskIndex
  6933. ].toolChoose[toolIndex].tool.push(i);
  6934. }
  6935. } else {
  6936. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  6937. itemTaskIndex
  6938. ].toolChoose[toolIndex].tool.push(i);
  6939. }
  6940. this.$forceUpdate();
  6941. },
  6942. addAskList() {
  6943. this.askJson.askJson.push({
  6944. askstitle: "",
  6945. askItem: 1,
  6946. checkList: [],
  6947. });
  6948. this.askJson.askCount++;
  6949. },
  6950. addTestList() {
  6951. this.testJson.testJson.push({
  6952. teststitle: "",
  6953. testItem: 1,
  6954. checkList: [],
  6955. timuList: [],
  6956. answer: [],
  6957. type: "1",
  6958. });
  6959. this.testJson.testCount++;
  6960. },
  6961. deleteAskList(index) {
  6962. this.askJson.askJson.splice(index, 1);
  6963. this.askJson.askCount--;
  6964. },
  6965. deleteTestList(index) {
  6966. this.testJson.testJson.splice(index, 1);
  6967. this.testJson.testCount--;
  6968. },
  6969. addcheckList(json) {
  6970. json.checkList.length++;
  6971. json.askItem++;
  6972. },
  6973. deletecheckList(json) {
  6974. json.checkList.length--;
  6975. json.askItem--;
  6976. },
  6977. addTcheckList(json) {
  6978. json.checkList.length++;
  6979. json.testItem++;
  6980. },
  6981. deleteTcheckList(json) {
  6982. json.checkList.length--;
  6983. json.testItem--;
  6984. },
  6985. checkTestType(type, json) {
  6986. json.type = type;
  6987. json.answer = [];
  6988. },
  6989. checkAskType(type, json) {
  6990. json.type = type;
  6991. json.checkList = [];
  6992. },
  6993. addSelectList(json) {
  6994. json.select.push("");
  6995. json.answer.push("");
  6996. },
  6997. deleteSelectList(json) {
  6998. // json.select.length--;
  6999. // json.answer.length--;
  7000. json.select.splice(json.select.length - 1, 1);
  7001. json.answer.splice(json.answer.length - 1, 1);
  7002. },
  7003. addAsk() {
  7004. if (this.askJson.askTitle === "") {
  7005. this.$message.error("标题不能为空!");
  7006. return;
  7007. }
  7008. var aj = this.askJson.askJson;
  7009. var b = 1;
  7010. for (var i = 0; i < aj.length; i++) {
  7011. if (aj[i].askstitle === "") {
  7012. var a = 1;
  7013. for (let index = 0; index < aj[i].askItem; index++) {
  7014. const element = aj[i].checkList[index]
  7015. ? aj[i].checkList[index]
  7016. : "";
  7017. if (element != "") {
  7018. b++;
  7019. this.$message.error("填写了选项,题目不能为空!");
  7020. return;
  7021. } else {
  7022. a++;
  7023. }
  7024. }
  7025. if (b == 1) {
  7026. this.$message.error("至少填写一个问题");
  7027. return;
  7028. }
  7029. } else if (aj[i].askstitle != "") {
  7030. for (let index = 0; index < aj[i].askItem; index++) {
  7031. const element = aj[i].checkList[index]
  7032. ? aj[i].checkList[index]
  7033. : "";
  7034. var index = 0;
  7035. for (var z = 0; z < aj[i].checkList.length; z++) {
  7036. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7037. if (checkC != "") {
  7038. index++;
  7039. } else {
  7040. this.$message.error("选项不能为空!");
  7041. return;
  7042. }
  7043. }
  7044. b++;
  7045. if (index < 2) {
  7046. this.$message.error("填写了的题目,选项至少要有两项!");
  7047. return;
  7048. }
  7049. }
  7050. }
  7051. }
  7052. this.askJson.askJson = this.askJson.askJson.filter((el) => {
  7053. var elc = el.checkList.filter((element) => {
  7054. return element != "";
  7055. });
  7056. return el.askstitle != "" && elc.length != 0;
  7057. });
  7058. if (!this.dialogVisible4) {
  7059. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7060. this.taskCount
  7061. ].toolChoose[this.toolIndex] = this.askJson;
  7062. }
  7063. this.dialogVisible5 = false;
  7064. if (
  7065. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7066. .toolChoose[this.toolIndex].tool != 4
  7067. ) {
  7068. this.addTools(4, this.taskCount, this.toolIndex);
  7069. }
  7070. },
  7071. addTest() {
  7072. // if (this.testJson.testTitle === "") {
  7073. // this.$message.error("标题不能为空!");
  7074. // return;
  7075. // }
  7076. var aj = this.testJson.testJson;
  7077. var b = 1;
  7078. for (var i = 0; i < aj.length; i++) {
  7079. if (aj[i].teststitle === "" && aj[i].timuList.length == 0) {
  7080. var a = 1;
  7081. for (let index = 0; index < aj[i].testItem; index++) {
  7082. const element = aj[i].checkList[index]
  7083. ? aj[i].checkList[index]
  7084. : "";
  7085. if (element != "") {
  7086. b++;
  7087. this.$message.error("填写了选项,题目不能为空!");
  7088. return;
  7089. } else {
  7090. a++;
  7091. }
  7092. }
  7093. if (b == 1) {
  7094. this.$message.error("至少填写一个问题");
  7095. return;
  7096. }
  7097. } else if (aj[i].teststitle != "" || aj[i].timuList.length > 0) {
  7098. for (let index = 0; index < aj[i].testItem; index++) {
  7099. const element = aj[i].checkList[index]
  7100. ? aj[i].checkList[index]
  7101. : "";
  7102. var index = 0;
  7103. for (var z = 0; z < aj[i].checkList.length; z++) {
  7104. var checkC = aj[i].checkList[z] ? aj[i].checkList[z] : "";
  7105. if (checkC != "") {
  7106. index++;
  7107. } else {
  7108. this.$message.error("选项不能为空!");
  7109. return;
  7110. }
  7111. }
  7112. b++;
  7113. if (index < 2) {
  7114. this.$message.error("填写了的题目,选项至少要有两项!");
  7115. return;
  7116. }
  7117. if (
  7118. (aj[i].type == "2" && !aj[i].answer.length) ||
  7119. (aj[i].type == "1" && aj[i].answer !== 0 && !aj[i].answer)
  7120. ) {
  7121. this.$message.error("有题目未选择答案请选择答案");
  7122. return;
  7123. }
  7124. }
  7125. }
  7126. }
  7127. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7128. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7129. var elc = el.checkList.filter((element) => {
  7130. return element != "";
  7131. });
  7132. return (
  7133. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7134. );
  7135. });
  7136. isTestJson.testCount = isTestJson.testJson.length;
  7137. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7138. this.taskCount
  7139. ].toolChoose[this.toolIndex].testJson = isTestJson;
  7140. this.dialogVisibleChoice = false;
  7141. if (
  7142. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7143. .toolChoose[this.toolIndex].tool != 45
  7144. ) {
  7145. this.addTools(45, this.taskCount, this.toolIndex);
  7146. }
  7147. },
  7148. addVideoJson(videoJson) {
  7149. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7150. this.taskCount
  7151. ].toolChoose[this.toolIndex].videoJson = videoJson;
  7152. this.dialogVisibleVideo = false;
  7153. if (
  7154. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7155. .toolChoose[this.toolIndex].tool != 62
  7156. ) {
  7157. this.addTools(62, this.taskCount, this.toolIndex);
  7158. }
  7159. },
  7160. //自动获取剪贴板
  7161. pasteOption() {
  7162. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7163. if (!iframe) {
  7164. this.$message.error("请使用AI共创生成题目");
  7165. return;
  7166. }
  7167. let copyData = iframe.contentWindow.copyData;
  7168. if (!copyData || !copyData.selectData.length) {
  7169. this.$message.error("请使用AI共创生成题目");
  7170. return;
  7171. }
  7172. let selectData = copyData.selectData;
  7173. for (var i = 0; i < selectData.length; i++) {
  7174. let answer = 0;
  7175. switch (selectData[i].answer[0]) {
  7176. case "A":
  7177. answer = 0;
  7178. break;
  7179. case "B":
  7180. answer = 1;
  7181. break;
  7182. case "C":
  7183. answer = 2;
  7184. break;
  7185. case "D":
  7186. answer = 3;
  7187. break;
  7188. case "E":
  7189. answer = 4;
  7190. break;
  7191. default:
  7192. break;
  7193. }
  7194. this.testJson.testJson.push({
  7195. teststitle: selectData[i].subject,
  7196. testItem: selectData[i].options.length,
  7197. checkList: selectData[i].options,
  7198. timuList: [],
  7199. answer: answer,
  7200. type: "1",
  7201. });
  7202. this.testJson.testCount++;
  7203. }
  7204. var isTestJson = JSON.parse(JSON.stringify(this.testJson));
  7205. isTestJson.testJson = this.testJson.testJson.filter((el) => {
  7206. var elc = el.checkList.filter((element) => {
  7207. return element != "";
  7208. });
  7209. return (
  7210. (el.teststitle != "" || el.timuList.length > 0) && elc.length != 0
  7211. );
  7212. });
  7213. isTestJson.testCount = isTestJson.testJson.length;
  7214. this.testJson = isTestJson;
  7215. this.$forceUpdate();
  7216. },
  7217. pasteTask() {
  7218. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7219. if (!iframe) {
  7220. this.$message.error("请使用AI共创生成");
  7221. return;
  7222. }
  7223. let copyData = iframe.contentWindow.copyData;
  7224. if (!copyData || !copyData.tasksData || !copyData.tasksData.length) {
  7225. this.$message.error("请使用AI共创生成");
  7226. return;
  7227. }
  7228. let stageTasksData = copyData.tasksData;
  7229. let taskA = [];
  7230. let tasks = stageTasksData;
  7231. for (var j = 0; j < tasks.length; j++) {
  7232. taskA.push({
  7233. task: tasks[j].taskName,
  7234. taskDetail: tasks[j].taskDecs,
  7235. chapterData: [],
  7236. toolText: "",
  7237. toolChoose: [
  7238. {
  7239. tool: [],
  7240. toolDetail: "",
  7241. toolType: 1,
  7242. askCount: 1,
  7243. askTitle: "",
  7244. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7245. },
  7246. ],
  7247. isShowTools: false,
  7248. askCount: 1,
  7249. isFold: 0,
  7250. askTitle: "",
  7251. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7252. checkJson: [{ checkCount: [], checkPerent: [] }],
  7253. homeworkList: [],
  7254. });
  7255. }
  7256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson = taskA;
  7257. this.$forceUpdate();
  7258. },
  7259. pasteStage() {
  7260. let iframe = top.document.querySelectorAll("#AIChat iframe")[0];
  7261. if (!iframe) {
  7262. this.$message.error("请使用AI共创生成");
  7263. return;
  7264. }
  7265. let copyData = iframe.contentWindow.copyData;
  7266. if (!copyData || !copyData.stageData || !copyData.stageData.length) {
  7267. this.$message.error("请使用AI共创生成");
  7268. return;
  7269. }
  7270. let stageData = copyData.stageData;
  7271. let stage = [];
  7272. for (var i = 0; i < stageData.length; i++) {
  7273. stage.push({
  7274. dyName: stageData[i], //单元标题
  7275. chapterInfo: [
  7276. {
  7277. isread: false,
  7278. chapterid: this.guid(),
  7279. title: "",
  7280. courseName: "",
  7281. taskJson: [
  7282. {
  7283. task: "",
  7284. taskDetail: "",
  7285. chapterData: [],
  7286. toolText: "",
  7287. toolChoose: [
  7288. {
  7289. tool: [],
  7290. toolDetail: "",
  7291. toolType: 1,
  7292. askCount: 1,
  7293. askTitle: "",
  7294. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7295. },
  7296. ],
  7297. isShowTools: false,
  7298. askCount: 1,
  7299. isFold: 0,
  7300. askTitle: "",
  7301. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  7302. checkJson: [{ checkCount: [], checkPerent: [] }],
  7303. homeworkList: [],
  7304. },
  7305. ],
  7306. itemCount: 1,
  7307. fileList1: [],
  7308. video: [],
  7309. testData: [],
  7310. pData: [],
  7311. templateArray: [],
  7312. },
  7313. ],
  7314. });
  7315. }
  7316. let _this = this;
  7317. _this
  7318. .$confirm("确定选择智能粘贴模式吗?", "提示", {
  7319. confirmButtonText: "确定",
  7320. cancelButtonText: "取消",
  7321. type: "warning",
  7322. })
  7323. .then(() => {
  7324. _this.unitIndex = 0;
  7325. _this.unitJson = stage;
  7326. _this.steps++;
  7327. _this.updateWork();
  7328. })
  7329. .catch(() => {
  7330. return;
  7331. });
  7332. },
  7333. addAnswer() {
  7334. if (this.answerQ == "") {
  7335. this.$message.error("请输入您想要问的问题");
  7336. return;
  7337. }
  7338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7339. this.taskCount
  7340. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7341. this.dialogVisible8 = false;
  7342. if (
  7343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7344. .toolChoose[this.toolIndex].tool != 15
  7345. ) {
  7346. this.addTools(15, this.taskCount, this.toolIndex);
  7347. }
  7348. },
  7349. addMp3Answer() {
  7350. if (this.answerQ == "") {
  7351. this.$message.error("请输入您想要回答的问题");
  7352. return;
  7353. }
  7354. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7355. this.taskCount
  7356. ].toolChoose[this.toolIndex].answerQ = this.answerQ;
  7357. this.dialogVisibleMp3 = false;
  7358. },
  7359. addRateAnswer() {
  7360. var a = 1;
  7361. for (var i = 0; i < this.rateJson.length; i++) {
  7362. if (this.rateJson[i].value == "") {
  7363. a = 2;
  7364. break;
  7365. }
  7366. }
  7367. if (a == 2) {
  7368. this.$message.error("请把评价信息填写完整");
  7369. return;
  7370. }
  7371. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7372. this.taskCount
  7373. ].toolChoose[this.toolIndex].rateJson = this.rateJson;
  7374. this.dialogVisibleRate = false;
  7375. if (
  7376. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7377. .toolChoose[this.toolIndex].tool != 40
  7378. ) {
  7379. this.addTools(40, this.taskCount, this.toolIndex);
  7380. }
  7381. },
  7382. addSelectAnswer() {
  7383. if (this.selectJson.url == "") {
  7384. this.$message.error("请上传题目");
  7385. return;
  7386. }
  7387. if (!this.selectJson.select.length) {
  7388. this.$message.error("请添加选项");
  7389. return;
  7390. }
  7391. if (!this.selectJson.answer.length) {
  7392. this.$message.error("请设置答案");
  7393. return;
  7394. }
  7395. var a = 1;
  7396. for (var i = 0; i < this.selectJson.answer.length; i++) {
  7397. if (!this.selectJson.answer[i] && this.selectJson.answer[i] !== 0) {
  7398. a = 2;
  7399. }
  7400. }
  7401. if (a == 2) {
  7402. this.$message.error("请设置答案");
  7403. return;
  7404. }
  7405. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  7406. this.taskCount
  7407. ].toolChoose[this.toolIndex].selectJson = this.selectJson;
  7408. this.dialogVisibleSelect = false;
  7409. if (
  7410. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  7411. .toolChoose[this.toolIndex].tool != 41
  7412. ) {
  7413. this.addTools(41, this.taskCount, this.toolIndex);
  7414. }
  7415. },
  7416. nextSelectSteps() {
  7417. if (this.selectJson.url == "") {
  7418. this.$message.error("请上传题目");
  7419. return;
  7420. }
  7421. if (!this.selectJson.select.length) {
  7422. this.$message.error("请添加选项");
  7423. return;
  7424. }
  7425. var a = 1;
  7426. for (var i = 0; i < this.selectJson.select.length; i++) {
  7427. if (!this.selectJson.select[i]) {
  7428. a = 2;
  7429. }
  7430. }
  7431. if (a == 2) {
  7432. this.$message.error("添加的选项不能为空");
  7433. return;
  7434. }
  7435. this.selectSteps++;
  7436. },
  7437. selectCourseDetail() {
  7438. if (this.cid == "" || this.cid == undefined) {
  7439. console.log("这是新增课程");
  7440. this.selectAllType();
  7441. } else {
  7442. this.cidType = 1;
  7443. let params = {
  7444. cid: this.cid,
  7445. };
  7446. this.ajax
  7447. .get(this.$store.state.api + "select_course_detail", params)
  7448. .then((res) => {
  7449. this.loading = true;
  7450. this.unitJson = JSON.parse(res.data[0][0].chapters);
  7451. for (var j = 0; j < this.unitJson.length; j++) {
  7452. for (
  7453. var k = 0;
  7454. k < this.unitJson[j].chapterInfo[0].taskJson.length;
  7455. k++
  7456. ) {
  7457. this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose = this
  7458. .unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7459. ? this.unitJson[j].chapterInfo[0].taskJson[k].toolChoose
  7460. : [];
  7461. let _chapterData = [];
  7462. for (
  7463. var c = 0;
  7464. c <
  7465. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData
  7466. .length;
  7467. c++
  7468. ) {
  7469. if (
  7470. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7471. ) {
  7472. _chapterData.push(
  7473. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData[c]
  7474. );
  7475. }
  7476. }
  7477. this.unitJson[j].chapterInfo[0].taskJson[k].chapterData =
  7478. _chapterData;
  7479. }
  7480. }
  7481. this.$forceUpdate();
  7482. this.courseName = res.data[0][0].title;
  7483. this.courseText = res.data[0][0].brief;
  7484. this.evalua = res.data[0][0].evaId;
  7485. this.cover = JSON.parse(res.data[0][0].cover);
  7486. this.noneBtnImg = this.cover.length >= 1;
  7487. // this.checkboxList =
  7488. // res.data[0][0].course_student.length > 0
  7489. // ? JSON.parse(res.data[0][0].course_student)
  7490. // : [];
  7491. this.checkboxList2 = res.data[0][0].juri
  7492. ? res.data[0][0].juri.split(",")
  7493. : [];
  7494. this.inviteCode = [];
  7495. for (var i = 0; i < res.data[2].length; i++) {
  7496. this.inviteCode.push({
  7497. cid: res.data[2][i].classid,
  7498. ic: res.data[2][i].code,
  7499. });
  7500. }
  7501. this.checkboxList3 = res.data[0][0].course_teacher
  7502. ? res.data[0][0].course_teacher.split(",")
  7503. : [];
  7504. // this.isTeacherSee =
  7505. // res.data[0][0].is_teacher_look == 0 ? true : false;
  7506. this.isTeacherSee = res.data[0][0].open == 1 ? true : false;
  7507. this.myWord = res.data[0][0].template;
  7508. this.templateC.id = "123";
  7509. this.courseUserid = res.data[0][0].userid;
  7510. // if(this.courseUserid == this.userid){
  7511. // this.InviteChange(this.checkboxList2)
  7512. // }
  7513. this.nbOrder = res.data[0][0].ordernumber;
  7514. this.courseTypeId = [];
  7515. for (var i = 0; i < res.data[1].length; i++) {
  7516. this.courseTypeId.push(res.data[1][i].typeid);
  7517. }
  7518. console.log(this.courseTypeId);
  7519. // if (this.timer) clearInterval(this.timer);
  7520. if (this.timer) clearTimeout(this.timer);
  7521. this.timer = null;
  7522. // this.timer = setInterval(() => {
  7523. // this.seleteCourseUpdate();
  7524. this.setMan();
  7525. this.selectAllType();
  7526. // }, 5000);
  7527. this.$forceUpdate();
  7528. setTimeout(() => {
  7529. this.checkEva(this.evalua);
  7530. }, 0);
  7531. })
  7532. .catch((err) => {
  7533. console.error(err);
  7534. });
  7535. }
  7536. },
  7537. seleteCourseUpdate() {
  7538. let params = {
  7539. cid: this.cid,
  7540. };
  7541. this.ajax
  7542. .get(this.$store.state.api + "select_course_detail", params)
  7543. .then((res) => {
  7544. // console.log(this.unitJson);
  7545. let unitJson = JSON.parse(res.data[0][0].chapters);
  7546. this.unitJson2 = JSON.parse(res.data[0][0].chapters);
  7547. let _unitJson2 = JSON.parse(JSON.stringify(this.unitJson));
  7548. let _unitJson = [];
  7549. let _chapAarry = [];
  7550. let _unitIndex = JSON.parse(JSON.stringify(this.unitIndex));
  7551. let _unitIndex2 = JSON.parse(JSON.stringify(this.unitIndex));
  7552. let index = 1;
  7553. let chapindex;
  7554. if (_unitJson2.length > unitJson.length) {
  7555. for (let c = 0; c < _unitJson2.length; c++) {
  7556. _chapAarry.push(_unitJson2[c].chapterInfo[0].chapterid);
  7557. }
  7558. for (let j = 0; j < unitJson.length; j++) {
  7559. let count = 0;
  7560. for (let k = 0; k < _unitJson2.length; k++) {
  7561. if (
  7562. unitJson[j].chapterInfo[0].chapterid ==
  7563. _unitJson2[k].chapterInfo[0].chapterid
  7564. ) {
  7565. count++;
  7566. _chapAarry.splice(
  7567. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7568. 1
  7569. );
  7570. _unitJson.push(unitJson[j]);
  7571. break;
  7572. }
  7573. }
  7574. // if(count === 0){
  7575. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7576. // }
  7577. }
  7578. for (let k = 0; k < _unitJson2.length; k++) {
  7579. if (_unitJson2[k].isUpdate == 1) {
  7580. _chapAarry.splice(
  7581. _chapAarry.indexOf(_unitJson2[k].chapterInfo[0].chapterid),
  7582. 1
  7583. );
  7584. _unitJson.push(_unitJson2[k]);
  7585. }
  7586. }
  7587. console.log(_chapAarry);
  7588. for (let d = 0; d < _unitJson2.length; d++) {
  7589. if (
  7590. _chapAarry.indexOf(_unitJson2[d].chapterInfo[0].chapterid) != -1
  7591. ) {
  7592. if (_unitIndex == d) {
  7593. index = 2;
  7594. }
  7595. chapindex = d;
  7596. // this.$message.error("您所修改的阶段已经被其他老师删除了");
  7597. }
  7598. }
  7599. } else {
  7600. _unitJson = JSON.parse(JSON.stringify(_unitJson2));
  7601. }
  7602. for (let i = 0; i < unitJson.length; i++) {
  7603. if (
  7604. (i < _unitJson.length - 1 || i == _unitJson.length - 1) &&
  7605. _unitJson[i].chapterInfo[0].chapterid !=
  7606. unitJson[i].chapterInfo[0].chapterid
  7607. ) {
  7608. if (i == _unitJson.length - 1) {
  7609. // this.unitIndex++
  7610. _unitIndex2++;
  7611. }
  7612. _unitJson.splice(i, 0, unitJson[i]);
  7613. } else if (i > _unitJson.length - 1) {
  7614. _unitJson.push(unitJson[i]);
  7615. } else if (
  7616. _unitJson[i].chapterInfo[0].chapterid ==
  7617. unitJson[i].chapterInfo[0].chapterid
  7618. ) {
  7619. _unitJson[i] = unitJson[i];
  7620. }
  7621. // if (i == _unitIndex) {
  7622. // continue;
  7623. // } else
  7624. }
  7625. if (_chapAarry.length && index != 2) {
  7626. if (chapindex < _unitIndex) {
  7627. this.isDelete = 2;
  7628. // this.unitIndex--;
  7629. _unitIndex2--;
  7630. } else if (
  7631. _unitJson2[_unitIndex].chapterInfo[0].chapterid !=
  7632. _unitJson[_unitIndex].chapterInfo[0].chapterid
  7633. ) {
  7634. this.isDelete = 2;
  7635. for (let n = 0; n < _unitJson.length; n++) {
  7636. if (
  7637. _unitJson2[_unitIndex].chapterInfo[0].chapterid ==
  7638. _unitJson[n].chapterInfo[0].chapterid
  7639. ) {
  7640. // this.unitIndex = n;
  7641. _unitIndex2 = n;
  7642. _unitJson[n] = _unitJson2[_unitIndex];
  7643. break;
  7644. }
  7645. }
  7646. }
  7647. } else if (index != 2) {
  7648. // _unitJson[this.unitIndex] = _unitJson2[_unitIndex];
  7649. _unitJson2[_unitIndex];
  7650. for (
  7651. var ci = 0;
  7652. ci < _unitJson2[_unitIndex].chapterInfo[0].taskJson.length;
  7653. ci++
  7654. ) {
  7655. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose =
  7656. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].toolChoose
  7657. ? _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7658. .toolChoose
  7659. : [];
  7660. let _chapterData = [];
  7661. for (
  7662. var c = 0;
  7663. c <
  7664. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData
  7665. .length;
  7666. c++
  7667. ) {
  7668. if (
  7669. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7670. .chapterData[c]
  7671. ) {
  7672. _chapterData.push(
  7673. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci]
  7674. .chapterData[c]
  7675. );
  7676. }
  7677. }
  7678. _unitJson2[_unitIndex].chapterInfo[0].taskJson[ci].chapterData =
  7679. _chapterData;
  7680. }
  7681. _unitJson[_unitIndex2] = _unitJson2[_unitIndex];
  7682. }
  7683. if (index == 1) {
  7684. this.unitJson = _unitJson;
  7685. this.$forceUpdate();
  7686. setTimeout(() => {
  7687. if (this.unitIndex != _unitIndex2) {
  7688. this.isDelete = 2;
  7689. this.unitIndex = _unitIndex2;
  7690. }
  7691. }, 0);
  7692. this.timer = setTimeout(() => {
  7693. this.seleteCourseUpdate();
  7694. }, 1000);
  7695. } else if (index == 2) {
  7696. let _this = this;
  7697. _this
  7698. .$confirm(
  7699. "您所修改的阶段已经被其他老师删除了,需要恢复嘛?",
  7700. "提示",
  7701. {
  7702. confirmButtonText: "需要",
  7703. cancelButtonText: "取消",
  7704. type: "warning",
  7705. }
  7706. )
  7707. .then(() => {
  7708. if (_this.time()) {
  7709. _this.restoreWork(
  7710. _chapAarry[0],
  7711. _unitJson,
  7712. chapindex,
  7713. _unitJson2,
  7714. _unitIndex2
  7715. );
  7716. }
  7717. })
  7718. .catch(() => {
  7719. _this.unitJson = _unitJson;
  7720. _this.$forceUpdate();
  7721. setTimeout(() => {
  7722. if (this.unitIndex != _unitIndex2) {
  7723. this.isDelete = 2;
  7724. this.unitIndex = _unitIndex2;
  7725. }
  7726. }, 0);
  7727. _this.timer = setTimeout(() => {
  7728. _this.seleteCourseUpdate();
  7729. }, 1000);
  7730. });
  7731. }
  7732. })
  7733. .catch((err) => {
  7734. console.error(err);
  7735. });
  7736. },
  7737. restoreWork(chapid, unitJson, chapindex, unitJson2, unitIndex2) {
  7738. let params = [
  7739. {
  7740. cid: this.cid,
  7741. chapters: JSON.stringify(this.unitJson),
  7742. uid: this.userid,
  7743. chapid: chapid,
  7744. },
  7745. ];
  7746. this.ajax
  7747. .post(this.$store.state.api + "restoreWork", params)
  7748. .then((res) => {
  7749. this.$message({
  7750. message: "恢复成功",
  7751. type: "success",
  7752. });
  7753. unitJson.splice(chapindex, 0, unitJson2[chapindex]);
  7754. this.unitJson = unitJson;
  7755. this.$forceUpdate();
  7756. setTimeout(() => {
  7757. if (this.unitIndex != unitIndex2) {
  7758. this.isDelete = 2;
  7759. this.unitIndex = unitIndex2;
  7760. }
  7761. }, 0);
  7762. this.timer = setTimeout(() => {
  7763. this.seleteCourseUpdate();
  7764. }, 1000);
  7765. })
  7766. .catch((err) => {
  7767. this.$message.error("网络不佳");
  7768. console.error(err);
  7769. });
  7770. },
  7771. getTypeName() {
  7772. console.log(this.courseTypeId);
  7773. this.$forceUpdate();
  7774. },
  7775. selectAllType() {
  7776. let params = {
  7777. org: this.org && this.org != "" ? this.org : "",
  7778. oid: this.oid && this.oid != "" ? this.oid : "",
  7779. };
  7780. this.ajax
  7781. .get(this.$store.state.api + "selectAllType", params)
  7782. .then((res) => {
  7783. if(this.oid == "69893dca-1d47-11ed-8c78-005056b86db5"){
  7784. res.data[0] = [...res.data[0],...res.data[4]]
  7785. }
  7786. this.CourseType = res.data;
  7787. this.CourseType2 = [
  7788. { name: "智见课程", id: [] },
  7789. { name: "智行课程", id: [] },
  7790. { name: "智创课程", id: [] },
  7791. ];
  7792. for (var cti = 0; cti < res.data[0].length; cti++) {
  7793. if (
  7794. res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" ||
  7795. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5"
  7796. ) {
  7797. this.CourseType2[0].id.push(res.data[0][cti].id);
  7798. }else if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5" ||
  7799. res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  7800. this.CourseType2[1].id.push(res.data[0][cti].id);
  7801. } else if (res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5") {
  7802. this.CourseType2[2].id.push(res.data[0][cti].id);
  7803. }
  7804. if(res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34628934-d02f-11ec-8c78-005056b86ac5"){
  7805. res.data[0][cti].name = "年级";
  7806. }else if(res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86db5" || res.data[0][cti].id == "34629907-d02f-11ec-8c78-005056b86ac5"){
  7807. res.data[0][cti].name = "学科";
  7808. }else if(res.data[0][cti].id == "34629bcc-d02f-11ec-8c78-005056b86db5"){
  7809. res.data[0][cti].name = "主题";
  7810. }
  7811. }
  7812. let _courseTypeId = [];
  7813. for (var i = 0; i < res.data[0].length; i++) {
  7814. if (!this.cid) {
  7815. this.courseTypeId[res.data[0][i].id] = [];
  7816. }
  7817. // if (!this.CourseTypeJson[res.data[0][i].id]) {
  7818. // }
  7819. this.CourseTypeJson[res.data[0][i].id] = [];
  7820. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7821. if (res.data[0][i].name == "栏目") {
  7822. this.CourseType[0][i].name = "主题";
  7823. }
  7824. }
  7825. if (res.data[2].length == 0 && res.data[3].length == 0) {
  7826. for (var j = 0; j < res.data[1].length; j++) {
  7827. if (
  7828. this.courseTypeId.indexOf(res.data[1][j].id) != -1 &&
  7829. _courseTypeId.indexOf(res.data[1][j].id) == -1
  7830. ) {
  7831. _courseTypeId.push(res.data[1][j].id);
  7832. }
  7833. if (res.data[0][i].id == res.data[1][j].pid) {
  7834. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7835. }
  7836. }
  7837. } else {
  7838. if (res.data[2].length > 0) {
  7839. for (var j = 0; j < res.data[2].length; j++) {
  7840. if (
  7841. this.courseTypeId.indexOf(res.data[2][j].id) != -1 &&
  7842. _courseTypeId.indexOf(res.data[2][j].id) == -1
  7843. ) {
  7844. _courseTypeId.push(res.data[2][j].id);
  7845. }
  7846. if (res.data[0][i].id == res.data[2][j].pid) {
  7847. this.CourseTypeJson[res.data[0][i].id].push(res.data[2][j]); // 去除公共分类
  7848. }
  7849. }
  7850. }
  7851. if (res.data[3].length > 0) {
  7852. for (var j = 0; j < res.data[3].length; j++) {
  7853. if (
  7854. this.courseTypeId.indexOf(res.data[3][j].id) != -1 &&
  7855. _courseTypeId.indexOf(res.data[3][j].id) == -1
  7856. ) {
  7857. _courseTypeId.push(res.data[3][j].id);
  7858. }
  7859. if (res.data[0][i].id == res.data[3][j].pid) {
  7860. this.CourseTypeJson[res.data[0][i].id].push(res.data[3][j]); // 去除公共分类
  7861. }
  7862. }
  7863. }
  7864. }
  7865. }
  7866. this.courseTypeId = _courseTypeId;
  7867. })
  7868. .catch((err) => {
  7869. console.error(err);
  7870. });
  7871. },
  7872. selectType() {
  7873. this.ajax
  7874. .get(this.$store.state.api + "selectType")
  7875. .then((res) => {
  7876. this.CourseType = res.data;
  7877. for (var i = 0; i < res.data[0].length; i++) {
  7878. if (!this.cid) {
  7879. this.courseTypeId[res.data[0][i].id] = "";
  7880. }
  7881. if (this.oid == "69893dca-1d47-11ed-8c78-005056b86db5") {
  7882. if (res.data[0][i].name == "栏目") {
  7883. this.CourseType[0][i].name = "主题";
  7884. }
  7885. }
  7886. for (var j = 0; j < res.data[1].length; j++) {
  7887. if (res.data[0][i].id == res.data[1][j].pid) {
  7888. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7889. this.CourseTypeJson[res.data[0][i].id] = [];
  7890. }
  7891. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
  7892. }
  7893. }
  7894. }
  7895. this.selectTypeByOid();
  7896. this.selectTypeByOrg();
  7897. })
  7898. .catch((err) => {
  7899. console.error(err);
  7900. });
  7901. },
  7902. selectTypeByOid() {
  7903. let params = {
  7904. oid: this.oid,
  7905. };
  7906. this.ajax
  7907. .get(this.$store.state.api + "selectTypeByOid", params)
  7908. .then((res) => {
  7909. for (var i = 0; i < res.data[0].length; i++) {
  7910. for (var j = 0; j < res.data[1].length; j++) {
  7911. if (res.data[0][i].id == res.data[1][j].pid) {
  7912. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7913. this.CourseTypeJson[res.data[0][i].id] = [];
  7914. }
  7915. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7916. }
  7917. }
  7918. }
  7919. })
  7920. .catch((err) => {
  7921. console.error(err);
  7922. });
  7923. },
  7924. selectTypeByOrg() {
  7925. let params = {
  7926. oid: this.org,
  7927. };
  7928. this.ajax
  7929. .get(this.$store.state.api + "selectTypeByOrg", params)
  7930. .then((res) => {
  7931. for (var i = 0; i < res.data[0].length; i++) {
  7932. for (var j = 0; j < res.data[1].length; j++) {
  7933. if (res.data[0][i].id == res.data[1][j].pid) {
  7934. if (!this.CourseTypeJson[res.data[0][i].id]) {
  7935. this.CourseTypeJson[res.data[0][i].id] = [];
  7936. }
  7937. this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]);
  7938. }
  7939. }
  7940. }
  7941. this.$forceUpdate();
  7942. })
  7943. .catch((err) => {
  7944. console.error(err);
  7945. });
  7946. },
  7947. OtherMb(type) {
  7948. this.typeMode = type;
  7949. setTimeout(() => {
  7950. this.checkEva(this.checkId);
  7951. }, 0);
  7952. },
  7953. openMember() {
  7954. this.searchTN = "";
  7955. this.getTeacher();
  7956. this.dialogVisibleMember = true;
  7957. },
  7958. checkEva(id, type) {
  7959. this.dialogVisiblemb = false;
  7960. this.selectEva();
  7961. if (this.evalua != id && type == 2) {
  7962. this.$message.success("导入成功");
  7963. }
  7964. this.evalua = id;
  7965. this.checkId = id;
  7966. if (this.evalua != "") {
  7967. for (var i = 0; i < this.evaJuri.length; i++) {
  7968. if (this.evalua == this.evaJuri[i].id) {
  7969. this.eTitle = this.evaJuri[i].title;
  7970. this.eJson = JSON.parse(this.evaJuri[i].content);
  7971. }
  7972. }
  7973. this.data.data = [];
  7974. this.$forceUpdate();
  7975. setTimeout(() => {
  7976. this.setMindData();
  7977. }, 500);
  7978. }
  7979. },
  7980. deleteEva() {
  7981. let _this = this;
  7982. if (_this.evalua == "") {
  7983. this.$message.warning("内容已经清空了,请勿重复清空");
  7984. return;
  7985. }
  7986. _this
  7987. .$confirm("确定删除此目标吗?", "提示", {
  7988. confirmButtonText: "确定",
  7989. cancelButtonText: "取消",
  7990. type: "warning",
  7991. })
  7992. .then(() => {
  7993. _this.evalua = "";
  7994. _this.checkId = "";
  7995. _this.eTitle = "";
  7996. let _unitJson = _this.unitJson;
  7997. for (var i = 0; i < _unitJson.length; i++) {
  7998. let _task = _unitJson[i].chapterInfo[0].taskJson;
  7999. for (var j = 0; j < _task.length; j++) {
  8000. let _eList = _task[j].eList;
  8001. for (var k = 0; k < _eList.length; k++) {
  8002. delete _eList[k].target;
  8003. }
  8004. }
  8005. }
  8006. _this.$forceUpdate();
  8007. if (_this.cid) {
  8008. _this.updateWork();
  8009. }
  8010. })
  8011. .catch(() => {
  8012. return;
  8013. });
  8014. },
  8015. selectEva() {
  8016. let params = {
  8017. oid: this.oid,
  8018. };
  8019. this.ajax
  8020. .get(this.$store.state.api + "selectAllEvaluation", params)
  8021. .then((res) => {
  8022. this.evaJuri = res.data[0];
  8023. })
  8024. .catch((err) => {
  8025. console.error(err);
  8026. });
  8027. },
  8028. setMindData() {
  8029. let targetArray = [];
  8030. this.data.data = [];
  8031. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  8032. let _eJson = Object.keys(this.eJson);
  8033. let _e = this.eJson;
  8034. for (let i = 0; i < _eJson.length; i++) {
  8035. let element = _e[_eJson[i]];
  8036. this.data.data.push({
  8037. id: element.id,
  8038. parentid: "root",
  8039. topic: element.name,
  8040. });
  8041. // targetArray.push({
  8042. // id: element.id,
  8043. // parentid: "root",
  8044. // name: element.name,
  8045. // });
  8046. targetArray.push({
  8047. value: element.name,
  8048. label: element.name,
  8049. children: [],
  8050. });
  8051. let _eJsonc = Object.keys(element.child);
  8052. let _e2 = element.child;
  8053. for (let j = 0; j < _eJsonc.length; j++) {
  8054. let _ec = _e2[_eJsonc[j]];
  8055. this.data.data.push({
  8056. id: _ec.id,
  8057. parentid: element.id,
  8058. topic: _ec.name,
  8059. });
  8060. // targetArray.push({
  8061. // id: _ec.id,
  8062. // parentid: element.id,
  8063. // name: _ec.name,
  8064. // });
  8065. targetArray[i].children.push({
  8066. value: _ec.name,
  8067. label: _ec.name,
  8068. children: [],
  8069. });
  8070. let _eJsonz = Object.keys(_ec.child);
  8071. let _e3 = _ec.child;
  8072. for (let z = 0; z < _eJsonz.length; z++) {
  8073. let _ez = _e3[_eJsonz[z]];
  8074. this.data.data.push({
  8075. id: _ez.id,
  8076. parentid: _ec.id,
  8077. topic: _ez.name,
  8078. });
  8079. // targetArray.push({
  8080. // id: _ez.id,
  8081. // parentid: _ec.id,
  8082. // name: _ez.name,
  8083. // });
  8084. targetArray[i].children[j].children.push({
  8085. value: _ez.name,
  8086. label: _ez.name,
  8087. });
  8088. }
  8089. }
  8090. }
  8091. this.targetArray = targetArray;
  8092. this.$forceUpdate();
  8093. },
  8094. /*添加评价 */
  8095. addEList(index, tIndex) {
  8096. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList
  8097. ? this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.push({
  8098. value: "",
  8099. detail: "",
  8100. score: 5,
  8101. })
  8102. : (this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList = [
  8103. { value: "", detail: "", score: 5 },
  8104. ]);
  8105. this.$forceUpdate();
  8106. },
  8107. forceUpdate() {
  8108. this.$forceUpdate();
  8109. },
  8110. deletEList(index, tIndex, eIndex) {
  8111. this.unitJson[index].chapterInfo[0].taskJson[tIndex].eList.splice(
  8112. eIndex,
  8113. 1
  8114. );
  8115. this.$forceUpdate();
  8116. },
  8117. getChoosePic(t) {
  8118. this.chooseType = t;
  8119. this.getAllBanner();
  8120. },
  8121. getAllBanner() {
  8122. this.sysPicVisible = true;
  8123. let params = {
  8124. t: this.chooseType,
  8125. };
  8126. this.ajax
  8127. .get(this.$store.state.api + "selectAllBanner", params)
  8128. .then((res) => {
  8129. this.sysPic = res.data[0];
  8130. })
  8131. .catch((err) => {
  8132. console.error(err);
  8133. });
  8134. },
  8135. // getClass() {
  8136. // let params = {
  8137. // oid: this.oid,
  8138. // };
  8139. // this.ajax
  8140. // .get(this.$store.state.api + "selectClassBySchool", params)
  8141. // .then((res) => {
  8142. // this.classJuri = res.data[0];
  8143. // })
  8144. // .catch((err) => {
  8145. // console.error(err);
  8146. // });
  8147. // },
  8148. deleteSysPic() {
  8149. this.cover = [];
  8150. this.isSysPic = false;
  8151. },
  8152. deleteSelectPic() {
  8153. this.selectJson.url = "";
  8154. },
  8155. setEListStar() {
  8156. this.$forceUpdate();
  8157. },
  8158. deletRateList(i) {
  8159. this.rateJson.splice(i, 1);
  8160. },
  8161. addRateList() {
  8162. this.rateJson.push({ detail: "", score: 5, value: "" });
  8163. },
  8164. addSt() {
  8165. this.sentenceList.push({
  8166. sentenceTitle: "",
  8167. addSentence: [],
  8168. rightAnswer: [],
  8169. });
  8170. },
  8171. addSen(i) {
  8172. this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
  8173. // this.isPushTitleList.push(this.sentenceTitle);
  8174. this.sentenceList[i].sentenceTitle = "";
  8175. },
  8176. setRightAnswer(s, i, j) {
  8177. if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
  8178. this.sentenceList[i].rightAnswer.push(s);
  8179. }
  8180. },
  8181. returnCard(r, i, j) {
  8182. this.sentenceList[i].rightAnswer.splice(j, 1);
  8183. },
  8184. addSentenceTool() {
  8185. for (var i = 0; i < this.sentenceList.length; i++) {
  8186. if (this.sentenceList[i].rightAnswer.length == 0) {
  8187. this.$message.error("请将信息填写完整!");
  8188. return;
  8189. }
  8190. if (
  8191. this.sentenceList[i].addSentence.length !=
  8192. this.sentenceList[i].rightAnswer.length
  8193. ) {
  8194. this.$message.error("请将信息填写完整!");
  8195. return;
  8196. }
  8197. }
  8198. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8199. this.taskCount
  8200. ].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
  8201. this.sentenceList = [
  8202. { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  8203. ];
  8204. this.dialogVisibleSentence = false;
  8205. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8206. // itemTaskIndex
  8207. // ].toolChoose[toolIndex].tool = [];
  8208. // this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8209. // itemTaskIndex
  8210. // ].toolChoose[toolIndex].tool.push(i);
  8211. if (
  8212. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8213. .toolChoose[this.toolIndex].tool != 47
  8214. ) {
  8215. this.addTools(47, this.taskCount, this.toolIndex);
  8216. }
  8217. },
  8218. addTableJson() {
  8219. // if (this.tableJson.text == "" || this.tableJson.text == "<p></p>") {
  8220. // this.$message.error("请将信息填写完整!");
  8221. // return;
  8222. // }
  8223. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8224. this.taskCount
  8225. ].toolChoose[this.toolIndex].tableJson = this.tableJson;
  8226. // this.tableJson = [{ text: "" }];
  8227. // this.dialogVisibleTable = false;
  8228. this.$message.success("上传成功");
  8229. if (
  8230. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8231. .toolChoose[this.toolIndex].tool != 48
  8232. ) {
  8233. this.addTools(48, this.taskCount, this.toolIndex);
  8234. }
  8235. },
  8236. addWordJson() {
  8237. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8238. this.taskCount
  8239. ].toolChoose[this.toolIndex].wordJson = this.wordJson;
  8240. // this.wordJson = [{ text: "" }];
  8241. // this.dialogVisibleWord = false;
  8242. this.$message.success("上传成功");
  8243. if (
  8244. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8245. .toolChoose[this.toolIndex].tool != 52
  8246. ) {
  8247. this.addTools(52, this.taskCount, this.toolIndex);
  8248. }
  8249. },
  8250. addMoreUpload() {
  8251. if (this.uploadJson.length == 0) {
  8252. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8253. this.taskCount
  8254. ].toolChoose[this.toolIndex].uploadJson = [];
  8255. } else {
  8256. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8257. this.taskCount
  8258. ].toolChoose[this.toolIndex].uploadJson = this.uploadJson;
  8259. }
  8260. this.uploadJson = [];
  8261. this.dialogVisibleMoreUpload = false;
  8262. if (
  8263. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8264. .toolChoose[this.toolIndex].tool != 50
  8265. ) {
  8266. this.addTools(50, this.taskCount, this.toolIndex);
  8267. }
  8268. },
  8269. addPreTime() {
  8270. if (this.preTime == 0) {
  8271. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8272. this.taskCount
  8273. ].toolChoose[this.toolIndex].preTime = 0;
  8274. } else {
  8275. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8276. this.taskCount
  8277. ].toolChoose[this.toolIndex].preTime = this.preTime;
  8278. }
  8279. this.preTime = 0;
  8280. this.dialogVisiblePreTime = false;
  8281. if (
  8282. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8283. .toolChoose[this.toolIndex].tool != 10
  8284. ) {
  8285. this.addTools(10, this.taskCount, this.toolIndex);
  8286. }
  8287. },
  8288. goToTask(i) {
  8289. $(".rightBox")[0].scrollTop =
  8290. $(".taskBorder")[i+1].offsetTop +
  8291. $(".taskBorder")[i+1].parentElement.parentElement.offsetTop;
  8292. this.isClickColor = i + 1;
  8293. },
  8294. taskMove(type, index) {
  8295. // this
  8296. // .$confirm("切换任务顺序将删除所有工具的提交成果,是否继续此操作?", "提示", {
  8297. // confirmButtonText: "确定",
  8298. // cancelButtonText: "取消",
  8299. // type: "warning",
  8300. // })
  8301. // .then(() => {
  8302. if (type == 1) {
  8303. if (index > 0) {
  8304. let a = JSON.parse(
  8305. JSON.stringify(
  8306. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1]
  8307. )
  8308. );
  8309. let b = JSON.parse(
  8310. JSON.stringify(
  8311. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8312. )
  8313. );
  8314. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index - 1] =
  8315. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8316. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8317. if (index - 1 == 0) {
  8318. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8319. index - 1
  8320. ].chapterData = a.chapterData;
  8321. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8322. index
  8323. ].chapterData = b.chapterData;
  8324. }
  8325. }
  8326. } else {
  8327. if (
  8328. index <
  8329. this.unitJson[this.unitIndex].chapterInfo[0].taskJson.length - 1
  8330. ) {
  8331. let a = JSON.parse(
  8332. JSON.stringify(
  8333. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1]
  8334. )
  8335. );
  8336. let b = JSON.parse(
  8337. JSON.stringify(
  8338. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index]
  8339. )
  8340. );
  8341. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index + 1] =
  8342. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index];
  8343. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[index] = a;
  8344. if (index == 0) {
  8345. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8346. index + 1
  8347. ].chapterData = a.chapterData;
  8348. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8349. index
  8350. ].chapterData = b.chapterData;
  8351. }
  8352. }
  8353. }
  8354. this.$forceUpdate();
  8355. // })
  8356. // .catch(() => {
  8357. // return;
  8358. // })
  8359. },
  8360. addGroup(i) {
  8361. // this.groupJson.group.splice(i + 1, 0, { name: "第"+(i+1)+"组" });
  8362. this.groupJson.group.push({
  8363. name: "第" + (this.groupJson.group.length + 1) + "组",
  8364. });
  8365. },
  8366. deleteGroup(i) {
  8367. this.groupJson.group.splice(i, 1);
  8368. },
  8369. addGroupJson() {
  8370. for (var i = 0; i < this.groupJson.group.length; i++) {
  8371. if (!this.groupJson.group[i].name) {
  8372. this.$message.error("请将信息填写完整!");
  8373. return;
  8374. }
  8375. }
  8376. if (!this.groupJson.number) {
  8377. this.$message.error("请将信息填写完整!");
  8378. return;
  8379. }
  8380. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
  8381. this.taskCount
  8382. ].toolChoose[this.toolIndex].groupJson = JSON.parse(
  8383. JSON.stringify(this.groupJson)
  8384. );
  8385. this.dialogVisibleGroup = false;
  8386. this.groupJson = {};
  8387. if (
  8388. this.unitJson[this.unitIndex].chapterInfo[0].taskJson[this.taskCount]
  8389. .toolChoose[this.toolIndex].tool != 49
  8390. ) {
  8391. this.addTools(49, this.taskCount, this.toolIndex);
  8392. }
  8393. },
  8394. updateTime(preTime) {
  8395. this.preTime = preTime;
  8396. },
  8397. InviteChange(val) {
  8398. console.log(val);
  8399. return;
  8400. let array = JSON.parse(JSON.stringify(val));
  8401. this.inviteCode = this.inviteCode.filter((el) => {
  8402. if (val.indexOf(el.cid) != -1) {
  8403. array.splice(array.indexOf(el.cid), 1);
  8404. return el;
  8405. }
  8406. });
  8407. for (var i = 0; i < array.length; i++) {
  8408. this.getInviteCode(array[i]);
  8409. }
  8410. },
  8411. async getInviteCode(cid) {
  8412. let code = this.randomNumber();
  8413. let params = {
  8414. code: code,
  8415. oid: this.oid,
  8416. };
  8417. let type = 1;
  8418. for (var i = 0; i < this.inviteCode.length; i++) {
  8419. if (this.inviteCode[i].cid != cid && code == this.inviteCode[i].ic) {
  8420. type = 2;
  8421. }
  8422. }
  8423. if (type == 2) {
  8424. this.getInviteCode(cid);
  8425. return;
  8426. }
  8427. const res = await this.ajax.get(
  8428. this.$store.state.api + "selectInviteCode2",
  8429. params
  8430. );
  8431. if (
  8432. res.data.length &&
  8433. res.data[0].length &&
  8434. res.data[0][0].courseId != this.cid
  8435. ) {
  8436. this.getInviteCode(cid);
  8437. return;
  8438. }
  8439. let array = [];
  8440. for (var i = 0; i < this.inviteCode.length; i++) {
  8441. array.push(this.inviteCode[i].cid);
  8442. }
  8443. if (array.indexOf(cid) != -1) {
  8444. this.inviteCode[array.indexOf(cid)].ic = code;
  8445. } else {
  8446. this.inviteCode.push({ cid: cid, ic: code });
  8447. }
  8448. },
  8449. OpenInviteD(cid) {
  8450. let array = [];
  8451. this.icode = "";
  8452. for (var i = 0; i < this.inviteCode.length; i++) {
  8453. array.push(this.inviteCode[i].cid);
  8454. }
  8455. if (array.indexOf(cid) != -1) {
  8456. this.icode = this.inviteCode[array.indexOf(cid)].ic;
  8457. }
  8458. this.inviteId = cid;
  8459. this.dialogVisibleInvite = true;
  8460. },
  8461. addInvite() {
  8462. let reg = /^[A-Za-z0-9]{4,}$/;
  8463. if (!reg.test(this.icode)) {
  8464. this.$message.error("请输入至少四位数字或英文组合的随机码");
  8465. return;
  8466. }
  8467. let type = 1;
  8468. for (var i = 0; i < this.inviteCode.length; i++) {
  8469. if (
  8470. this.inviteCode[i].cid != this.inviteId &&
  8471. this.icode == this.inviteCode[i].ic
  8472. ) {
  8473. type = 2;
  8474. }
  8475. }
  8476. if (type == 2) {
  8477. this.$message.error("已有此随机码,不能重复");
  8478. return;
  8479. }
  8480. let params = {
  8481. code: this.icode,
  8482. oid: this.oid,
  8483. };
  8484. this.ajax
  8485. .get(this.$store.state.api + "selectInviteCode", params)
  8486. .then((res) => {
  8487. if (
  8488. res.data.length &&
  8489. res.data[0].length &&
  8490. res.data[0][0].courseId != this.cid
  8491. ) {
  8492. this.$message.error("已有此随机码,不能重复");
  8493. return;
  8494. }
  8495. let array = [];
  8496. for (var i = 0; i < this.inviteCode.length; i++) {
  8497. array.push(this.inviteCode[i].cid);
  8498. }
  8499. if (array.indexOf(this.inviteId) != -1) {
  8500. this.inviteCode[array.indexOf(this.inviteId)].ic = this.icode;
  8501. } else {
  8502. this.inviteCode.push({ cid: this.inviteId, ic: this.icode });
  8503. }
  8504. this.icode = "";
  8505. this.dialogVisibleInvite = false;
  8506. })
  8507. .catch((err) => {
  8508. console.error(err);
  8509. });
  8510. },
  8511. randomNumber() {
  8512. // 随机生成两位数
  8513. // let num = Math.floor(Math.random() * 900) + 100;
  8514. // 生成 0 到 99 之间的随机整数
  8515. const randomNumber = Math.floor(Math.random() * 100);
  8516. // 如果随机数小于 10,补上前导零
  8517. const num =
  8518. randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
  8519. // 随机生成两个大写字母
  8520. let letters = "";
  8521. let chars2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  8522. for (let i = 0; i < 3; i++) {
  8523. letters += chars2.charAt(Math.floor(Math.random() * chars2.length));
  8524. }
  8525. // 随机生成两位数字和字母的组合
  8526. let mix = "";
  8527. let chars =
  8528. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  8529. for (let i = 0; i < 3; i++) {
  8530. let char = chars.charAt(Math.floor(Math.random() * chars.length));
  8531. mix += char;
  8532. }
  8533. // 随机选择一种类型
  8534. let type = Math.floor(Math.random() * 3);
  8535. return num;
  8536. // 根据类型输出结果
  8537. switch (type) {
  8538. case 0:
  8539. console.log(num); // 输出两位数
  8540. return num;
  8541. case 1:
  8542. console.log(letters); // 输出两个大写字母
  8543. return letters;
  8544. case 2:
  8545. console.log(mix); // 输出两位数字和字母的组合
  8546. return mix;
  8547. }
  8548. },
  8549. },
  8550. beforeDestroy() {
  8551. clearTimeout(this.timer);
  8552. this.timer = null;
  8553. clearInterval(this.timer2);
  8554. this.timer2 = null;
  8555. },
  8556. beforeRouteLeave(to, from, next) {
  8557. clearTimeout(this.timer);
  8558. this.timer = null;
  8559. clearInterval(this.timer2);
  8560. this.timer2 = null;
  8561. next();
  8562. },
  8563. created() {
  8564. this.getStudent();
  8565. this.getTeacher();
  8566. this.getClass();
  8567. this.getTemplate();
  8568. // this.selectType();
  8569. this.selectEva();
  8570. this.loading = false;
  8571. this.timer2 = setInterval(() => {
  8572. this.selectEva();
  8573. }, 5000);
  8574. setTimeout(() => {
  8575. this.selectCourseDetail();
  8576. }, 500);
  8577. },
  8578. mounted() {
  8579. this.$nextTick(() => {
  8580. //监听这个dom的scroll事件
  8581. $(".rightBox")[0].addEventListener("scroll", this.scrollChange);
  8582. });
  8583. },
  8584. };
  8585. </script>
  8586. <style scoped>
  8587. @media screen and (max-width: 1280px) {
  8588. .mbCss {
  8589. flex-direction: column !important;
  8590. }
  8591. .pjCss {
  8592. width: 100% !important;
  8593. }
  8594. .evaCss {
  8595. width: 100% !important;
  8596. }
  8597. }
  8598. .dialog_diy>>>.el-dialog__header {
  8599. background: #3c3c3c !important;
  8600. padding: 15px 20px;
  8601. }
  8602. .dialog_diy>>>.el-dialog__title {
  8603. color: #fff;
  8604. }
  8605. .dialog_diy>>>.el-dialog__headerbtn {
  8606. top: 19px;
  8607. }
  8608. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close {
  8609. color: #fff;
  8610. }
  8611. .dialog_diy>>>.el-dialog__headerbtn .el-dialog__close:hover {
  8612. color: #fff;
  8613. }
  8614. .dialog_diy>>>.el-dialog__body,
  8615. .dialog_diy>>>.el-dialog__footer {
  8616. background: #fafafa;
  8617. }
  8618. .dialog_diy3>>>.el-dialog__body,
  8619. .dialog_diy3>>>.el-dialog__footer {
  8620. background: #eee !important;
  8621. }
  8622. .dialog_diy3>>>.el-dialog__body {
  8623. padding: 20px 20px;
  8624. }
  8625. .source_diy>>>.el-dialog {
  8626. height: 100% !important;
  8627. margin: 0 auto !important;
  8628. }
  8629. .source_diy>>>.el-dialog__body {
  8630. height: calc(100% - 185px);
  8631. overflow: auto;
  8632. background: #e6eaf0;
  8633. }
  8634. .source_diy>>>.el-dialog__footer {
  8635. background: #e6eaf0 !important;
  8636. }
  8637. .left {
  8638. border-right: 1px solid rgb(60, 94, 143);
  8639. display: flex;
  8640. flex-direction: column;
  8641. align-items: center;
  8642. min-height: 600px;
  8643. width: 385px;
  8644. height: 80%;
  8645. }
  8646. .tips {
  8647. color: rgb(128, 128, 128);
  8648. font-size: 12px;
  8649. width: 270px;
  8650. margin: 40px;
  8651. }
  8652. .pb_content {
  8653. height: 100% !important;
  8654. /* margin: 0 20px 0 20px; */
  8655. }
  8656. .pb_content_body {
  8657. width: 100% !important;
  8658. height: 100%;
  8659. }
  8660. .info_solid {
  8661. width: 270px;
  8662. height: 30px;
  8663. border-left: 1px solid #bdbdbd;
  8664. margin: 10px 0px 10px 30px;
  8665. }
  8666. .info_steps {
  8667. width: 270px;
  8668. font-size: 0.875rem;
  8669. display: flex;
  8670. align-items: center;
  8671. }
  8672. .info_steps span:nth-child(1) {
  8673. width: 30px;
  8674. height: 30px;
  8675. background: rgba(0, 0, 0, 0.38);
  8676. display: block;
  8677. color: #fff;
  8678. border-radius: 40px;
  8679. text-align: center;
  8680. line-height: 30px;
  8681. }
  8682. .steps_active {
  8683. background: #3d67bc !important;
  8684. }
  8685. .info_steps span:nth-child(2) {
  8686. margin-left: 5px;
  8687. }
  8688. .right {
  8689. height: 100%;
  8690. width: calc(100% - 40px);
  8691. display: flex;
  8692. overflow: hidden;
  8693. margin: 0 auto;
  8694. }
  8695. .basic_box {
  8696. margin: 0 auto;
  8697. position: relative;
  8698. padding: 0 20px 0 20px;
  8699. }
  8700. .basic_box2 {
  8701. position: relative;
  8702. width: calc(100% - 300px);
  8703. }
  8704. .basic_box_success {
  8705. width: 100%;
  8706. height: 100%;
  8707. padding: 50px 0;
  8708. position: relative;
  8709. text-align: center;
  8710. /* border-bottom: 1px solid #bfbfbf; */
  8711. box-sizing: border-box;
  8712. display: flex;
  8713. align-items: center;
  8714. flex-direction: column;
  8715. justify-content: center;
  8716. }
  8717. .info_title {
  8718. font-size: 1.5em;
  8719. margin-right: 25px;
  8720. /* margin: 20px 30px 20px 30px; */
  8721. }
  8722. .bInfo_title {
  8723. text-align: left;
  8724. margin: 10px 0;
  8725. }
  8726. .small_title {
  8727. font-size: 14px;
  8728. line-height: 40px;
  8729. }
  8730. .chapter_beizhu {
  8731. font-size: 12px;
  8732. font-weight: bold;
  8733. float: right;
  8734. color: rgb(128, 128, 128);
  8735. margin-top: 5px;
  8736. }
  8737. .chapter_uploadBox1 {
  8738. text-align: left;
  8739. background-color: rgb(242, 242, 242);
  8740. width: 100%;
  8741. height: 67px;
  8742. padding: 0px 15px;
  8743. border-radius: 8px;
  8744. overflow: hidden;
  8745. font-size: 16px;
  8746. box-sizing: border-box;
  8747. position: relative;
  8748. }
  8749. .chapter_add {
  8750. width: 100%;
  8751. height: 32px;
  8752. margin-top: 15px;
  8753. cursor: pointer;
  8754. }
  8755. .chapter_add_l {
  8756. margin-left: 5px;
  8757. width: 30px;
  8758. height: 30px;
  8759. float: left;
  8760. border: 1px solid #aaa;
  8761. color: #aaa;
  8762. border-radius: 50%;
  8763. font-size: 25px;
  8764. text-align: center;
  8765. }
  8766. .chapter_add_r {
  8767. font-size: 18px;
  8768. height: 40px;
  8769. line-height: 30px;
  8770. text-indent: 10px;
  8771. color: #aaa;
  8772. }
  8773. .chapter_add_r span {
  8774. font-size: 12px;
  8775. color: rgb(204, 204, 204);
  8776. }
  8777. .chapter_add_input {
  8778. display: none;
  8779. }
  8780. .line {
  8781. width: 85%;
  8782. margin: 0 auto;
  8783. border-top: 1px solid #e5e5e5;
  8784. margin-top: 20px;
  8785. }
  8786. .info_btnBox {
  8787. width: calc(100%);
  8788. display: flex;
  8789. justify-content: center;
  8790. height: 70px;
  8791. align-items: center;
  8792. background: #fff;
  8793. margin: 0 auto;
  8794. border-top: 2px solid rgb(228, 232, 237);
  8795. box-sizing: border-box;
  8796. border-radius: 0px 0 5px 5px;
  8797. }
  8798. .info_btn+.info_btn {
  8799. margin-left: 15px;
  8800. }
  8801. .info_btn,
  8802. .teacherWord {
  8803. color: #fff;
  8804. background-color: #0f7eff;
  8805. padding: 8px 24px;
  8806. font-size: 0.9375rem;
  8807. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%),
  8808. 0px 3px 1px -2px rgb(0 0 0 / 12%);
  8809. min-width: 64px;
  8810. font-weight: 500;
  8811. border-radius: 4px;
  8812. box-sizing: border-box;
  8813. border: none;
  8814. cursor: pointer;
  8815. }
  8816. .teacherWord {
  8817. width: 105px !important;
  8818. text-align: center !important;
  8819. line-height: 36px !important;
  8820. padding: 0 !important;
  8821. font-size: 14px !important;
  8822. margin: 10px 0 !important;
  8823. }
  8824. .wordTeacher {
  8825. display: flex;
  8826. flex-direction: column;
  8827. width: 20%;
  8828. text-align: center;
  8829. font-size: 14px;
  8830. margin: 30px 30px 0 10px;
  8831. background: #fff;
  8832. position: relative;
  8833. border-radius: 5px;
  8834. padding: 25px 0px;
  8835. }
  8836. .wordPic {
  8837. margin: 0 auto;
  8838. width: 60px;
  8839. height: 60px;
  8840. cursor: pointer;
  8841. }
  8842. .deleteWord {
  8843. width: 22px;
  8844. height: 22px;
  8845. position: absolute;
  8846. right: 5px;
  8847. top: -15px;
  8848. cursor: pointer;
  8849. display: none;
  8850. z-index: 999;
  8851. }
  8852. .wordPic>img,
  8853. .deleteWord>img,
  8854. .addToolImg>img {
  8855. width: 100%;
  8856. height: 100%;
  8857. }
  8858. .info_btn:hover {
  8859. background-color: #4f7cd5 !important;
  8860. }
  8861. .cru_selectBox {
  8862. display: flex;
  8863. margin: 24px 0 10px;
  8864. flex-wrap: nowrap;
  8865. white-space: nowrap;
  8866. overflow: auto;
  8867. position: relative;
  8868. height: 47px;
  8869. }
  8870. .cru_selectBox::-webkit-scrollbar {
  8871. /*滚动条整体样式*/
  8872. width: 6px;
  8873. /*高宽分别对应横竖滚动条的尺寸*/
  8874. height: 6px;
  8875. }
  8876. /*定义滚动条轨道 内阴影+圆角*/
  8877. .cru_selectBox::-webkit-scrollbar-track {
  8878. border-radius: 10px;
  8879. background-color: #eee;
  8880. }
  8881. /*定义滑块 内阴影+圆角*/
  8882. .cru_selectBox::-webkit-scrollbar-thumb {
  8883. border-radius: 10px;
  8884. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  8885. background-color: rgba(0, 0, 0, 0.1);
  8886. }
  8887. .cru_line {
  8888. position: absolute;
  8889. bottom: 0px;
  8890. transition: all 0.5s;
  8891. left: 0px;
  8892. width: 125px;
  8893. margin-left: -25px;
  8894. }
  8895. .cru_select {
  8896. font-size: 21px;
  8897. margin-right: 37px;
  8898. margin-left: 5px;
  8899. cursor: pointer;
  8900. color: #a6a6a6;
  8901. }
  8902. .cru_selected {
  8903. color: #0b7fc2 !important;
  8904. }
  8905. .chapter_contentbox {
  8906. display: flex;
  8907. align-items: center;
  8908. margin-top: 15px;
  8909. }
  8910. .chapter_contentbox .cc_title {
  8911. margin: 0px;
  8912. color: black;
  8913. display: block;
  8914. white-space: nowrap;
  8915. overflow: hidden;
  8916. text-overflow: ellipsis;
  8917. margin-right: 20px;
  8918. font-size: 18px;
  8919. height: 20px;
  8920. line-height: 22px;
  8921. min-width: fit-content;
  8922. display: flex;
  8923. }
  8924. .chapter_contentbox .cc_title::before {
  8925. content: '';
  8926. height: 100%;
  8927. width: 3px;
  8928. background: #3681FC;
  8929. border-radius: 3px;
  8930. opacity: 1;
  8931. display: block;
  8932. margin-right: 10px;
  8933. }
  8934. .chapter_contentbox .cc_input {
  8935. width: 100%;
  8936. }
  8937. .remove {
  8938. background-image: url("../../../assets/icon/new/delete_u.png");
  8939. cursor: pointer;
  8940. opacity: 0.5;
  8941. width: 30px;
  8942. min-width: 30px;
  8943. height: 30px;
  8944. background-size: 100% 100%;
  8945. background-repeat: no-repeat;
  8946. margin-left: 10px;
  8947. }
  8948. .remove1 {
  8949. background-image: url("../../../assets/remove1.png");
  8950. background-repeat: no-repeat;
  8951. background-position: 5px 10px;
  8952. width: 40px;
  8953. height: 50px;
  8954. cursor: pointer;
  8955. }
  8956. .binfo_input {
  8957. width: 100%;
  8958. margin: 0;
  8959. padding: 12px 14px;
  8960. display: block;
  8961. min-width: 0;
  8962. outline: none;
  8963. box-sizing: border-box;
  8964. background: none;
  8965. border: none;
  8966. border-radius: 4px;
  8967. background: #fff;
  8968. font-size: 16px;
  8969. resize: none;
  8970. font-family: 'Microsoft YaHei';
  8971. min-height: 48px;
  8972. border: 1px solid #3682fc00;
  8973. }
  8974. .binfo_textarea {
  8975. border: 1px solid #CAD1DC;
  8976. font-size: 16px;
  8977. resize: none;
  8978. background: #fcfcfc;
  8979. font-family: 'Microsoft YaHei';
  8980. }
  8981. .binfo_input:focus-visible {
  8982. border: 1px solid #3681FC !important;
  8983. }
  8984. .time {
  8985. display: flex;
  8986. margin: 35px 0 80px 0;
  8987. }
  8988. .chapter_btnbox {
  8989. width: 160px;
  8990. border-radius: 5px;
  8991. border: 2px dashed gray;
  8992. display: flex;
  8993. padding: 8px 50px;
  8994. align-items: center;
  8995. justify-content: center;
  8996. margin: 30px auto 0;
  8997. cursor: pointer;
  8998. }
  8999. .icon_add {
  9000. position: relative;
  9001. width: 24px;
  9002. padding-top: 20px;
  9003. border-radius: 100%;
  9004. border-width: 2px;
  9005. border-style: solid;
  9006. border-color: gray;
  9007. }
  9008. .icon_add i:nth-child(1) {
  9009. position: absolute;
  9010. left: 50%;
  9011. top: 50%;
  9012. height: 60%;
  9013. transform: translate(-50%, -50%);
  9014. border-width: 1px;
  9015. border-style: solid;
  9016. border-color: inherit;
  9017. }
  9018. .icon_add i:nth-child(2) {
  9019. position: absolute;
  9020. top: 50%;
  9021. left: 50%;
  9022. width: 60%;
  9023. transform: translate(-50%, -50%);
  9024. border-width: 1px;
  9025. border-style: solid;
  9026. border-color: inherit;
  9027. }
  9028. .chapter_btn_w {
  9029. font-size: 0.9375rem;
  9030. font-weight: bold;
  9031. color: gray;
  9032. margin-left: 20px;
  9033. }
  9034. .disUoloadSty>>>.el-icon-plus {
  9035. display: none !important;
  9036. /* 上传按钮隐藏 */
  9037. }
  9038. .imgLeft {
  9039. margin: 15px 0;
  9040. }
  9041. .add_info_box {
  9042. margin: 20px 0 0;
  9043. display: flex;
  9044. flex-wrap: wrap;
  9045. }
  9046. .add_info_box button {
  9047. /* margin: 0 10px 10px 0; */
  9048. }
  9049. .add_info_box2 {
  9050. display: flex;
  9051. align-items: center;
  9052. flex-wrap: wrap;
  9053. }
  9054. .add_info_box2::after {
  9055. content: "提示:支持上传10M以内的PPT和Word文件、5M以内的Excel文件, PDF文件不限制大小。";
  9056. color: red;
  9057. font-size: 14px;
  9058. margin-bottom: 10px;
  9059. }
  9060. .add_chapters_box {
  9061. text-align: left;
  9062. background-color: #fff;
  9063. width: 100%;
  9064. border-radius: 4px;
  9065. font-size: 16px;
  9066. box-sizing: border-box;
  9067. position: relative;
  9068. padding: 20px 15px;
  9069. height: 200px;
  9070. overflow-y: auto;
  9071. overflow-x: hidden;
  9072. }
  9073. .add_chapters_box.add_c_none{
  9074. display: flex;
  9075. justify-content: center;
  9076. align-items: center;
  9077. }
  9078. .add_c_none > img{
  9079. width: 135px;
  9080. }
  9081. .homework_box {
  9082. display: flex;
  9083. align-items: flex-start;
  9084. flex-wrap: wrap;
  9085. margin: 15px 0 0 0;
  9086. flex-direction: column;
  9087. align-content: flex-start;
  9088. }
  9089. .course_homework {
  9090. display: flex;
  9091. justify-content: center;
  9092. flex-direction: row;
  9093. align-items: center;
  9094. margin: 0 10px 0 0;
  9095. }
  9096. .course_homework>>>.el-input__inner {
  9097. width: 140px;
  9098. margin-left: 15px;
  9099. }
  9100. .chapter_upload_move {
  9101. position: relative;
  9102. background-color: #fff;
  9103. position: absolute;
  9104. width: 100%;
  9105. top: 0px;
  9106. left: 0px;
  9107. border: 1px solid #eee;
  9108. border-radius: 5px;
  9109. transition: width 2s;
  9110. -moz-transition: width 2s;
  9111. -webkit-transition: width 2s;
  9112. -o-transition: width 2s;
  9113. }
  9114. .chapter_upload_l_i {
  9115. background-image: url("../../../assets/icon.png");
  9116. background-position: 3px -165px;
  9117. width: 30px;
  9118. height: 30px;
  9119. margin: 10px auto 0 auto;
  9120. }
  9121. .course_input_box {
  9122. display: flex;
  9123. margin-right: 20px;
  9124. width: 800px;
  9125. align-items: center;
  9126. }
  9127. .course_input_box>.binfo_input {
  9128. width: calc(100% - 48px - 200px - 20px);
  9129. margin: 0 10px;
  9130. }
  9131. .bb_courseIcon {
  9132. width: 48px;
  9133. height: 48px;
  9134. background: #3681FC;
  9135. border-radius: 6px;
  9136. display: flex;
  9137. align-items: center;
  9138. justify-content: center;
  9139. }
  9140. .bb_courseIcon>img {
  9141. width: 25px;
  9142. height: auto
  9143. }
  9144. .big_box {
  9145. margin-top: 20px;
  9146. display: flex;
  9147. border-bottom: 1px solid #E0E2ED;
  9148. }
  9149. .left_first {
  9150. display: flex;
  9151. flex-direction: column;
  9152. flex-wrap: nowrap;
  9153. width: calc(100% - 400px);
  9154. padding: 0 100px 0 0;
  9155. box-sizing: border-box;
  9156. }
  9157. .right_first {
  9158. width: 400px;
  9159. display: flex;
  9160. align-items: center;
  9161. justify-content: center;
  9162. border-left: 1px solid #E0E2ED;
  9163. box-sizing: border-box;
  9164. padding-bottom:20px;
  9165. }
  9166. .right_title {
  9167. /* height: 30px; */
  9168. padding: 0 20px;
  9169. font-size: 18px;
  9170. font-weight: bold;
  9171. /* color: #0f7eff; */
  9172. margin: 20px auto 0;
  9173. display: flex;
  9174. /* justify-content: space-between; */
  9175. align-items: center;
  9176. }
  9177. .people {
  9178. border: 1px solid rgb(229 229 229);
  9179. height: 495px;
  9180. border-radius: 5px;
  9181. width: 100%;
  9182. overflow: auto;
  9183. }
  9184. .people_top {
  9185. display: flex;
  9186. width: 100%;
  9187. /* justify-content: space-between; */
  9188. /* align-items: center; */
  9189. flex-direction: column;
  9190. padding: 10px 25px 0;
  9191. box-sizing: border-box;
  9192. }
  9193. .people_nav,
  9194. .people_top_right {
  9195. /* padding: 20px 0 0 20px; */
  9196. }
  9197. .people_top_right {
  9198. height: 40px;
  9199. margin-bottom: 10px;
  9200. }
  9201. .people_search {
  9202. display: flex;
  9203. position: relative;
  9204. }
  9205. .people_search>>>.el-input__inner {
  9206. /* height: 25px; */
  9207. width: 95%;
  9208. }
  9209. .search_img {
  9210. width: 20px;
  9211. height: 20px;
  9212. position: absolute;
  9213. right: 30px;
  9214. top: 50%;
  9215. transform: translateY(-50%);
  9216. }
  9217. .search_img>img {
  9218. width: 100%;
  9219. height: 100%;
  9220. }
  9221. .people_name {
  9222. display: flex;
  9223. justify-content: flex-start;
  9224. padding: 20px 0 0 25px;
  9225. flex-direction: column;
  9226. flex-wrap: wrap;
  9227. }
  9228. .p_box {
  9229. position: relative;
  9230. }
  9231. .people_name>>>.el-checkbox {
  9232. width: 100%;
  9233. display: flex;
  9234. align-items: center;
  9235. margin-bottom: 10px;
  9236. }
  9237. .people_name>>>.el-checkbox__label {
  9238. text-overflow: ellipsis;
  9239. overflow: hidden;
  9240. width: calc(100%);
  9241. }
  9242. .people_name2>>>.el-checkbox__label {
  9243. width: calc(100% - 130px);
  9244. }
  9245. .inviteCode {
  9246. position: absolute;
  9247. right: 30px;
  9248. color: #237ade;
  9249. top: 0;
  9250. cursor: pointer;
  9251. font-size: 13px;
  9252. }
  9253. .noneInvite {
  9254. color: #a8a8a8;
  9255. }
  9256. .inviteImg {
  9257. position: absolute;
  9258. right: 5px;
  9259. top: 0;
  9260. width: 20px;
  9261. }
  9262. .right_img {
  9263. width: 150px;
  9264. height: 150px;
  9265. margin: 20px auto;
  9266. }
  9267. .right_img>img {
  9268. width: 100%;
  9269. height: 100%;
  9270. }
  9271. .number {
  9272. margin-top: 20px;
  9273. color: #4aa6ff;
  9274. text-decoration: underline;
  9275. }
  9276. .success_button {
  9277. display: flex;
  9278. text-align: center;
  9279. margin: 5% 0 auto;
  9280. flex-direction: row;
  9281. justify-content: center;
  9282. }
  9283. .look_course {
  9284. margin-right: 40px;
  9285. background: #3d67bc;
  9286. width: 200px;
  9287. height: 35px;
  9288. line-height: 35px;
  9289. color: #fff;
  9290. text-align: center;
  9291. font-size: 14px;
  9292. border-radius: 5px;
  9293. cursor: pointer;
  9294. }
  9295. .attend_others {
  9296. width: 250px;
  9297. background: #4fb13c;
  9298. height: 35px;
  9299. line-height: 35px;
  9300. color: #fff;
  9301. text-align: center;
  9302. font-size: 14px;
  9303. border-radius: 5px;
  9304. cursor: pointer;
  9305. }
  9306. .dialog_diy2>>>.el-dialog__body {
  9307. text-align: center;
  9308. }
  9309. .write_togother {
  9310. position: absolute;
  9311. right: 45px;
  9312. display: flex;
  9313. top: 5%;
  9314. }
  9315. .write_people {
  9316. font-size: 14px;
  9317. line-height: 50px;
  9318. padding-right: 10px;
  9319. }
  9320. .end_write {
  9321. background: #3d67bc;
  9322. color: #fff;
  9323. width: 100px;
  9324. height: 35px;
  9325. line-height: 35px;
  9326. text-align: center;
  9327. font-size: 14px;
  9328. border-radius: 5px;
  9329. cursor: pointer;
  9330. }
  9331. .chapter_upload+.chapter_upload {
  9332. margin-top: 15px;
  9333. }
  9334. .chapter_upload {
  9335. height: 35px;
  9336. position: relative;
  9337. display: flex;
  9338. align-items: center;
  9339. width: 100%;
  9340. min-height: 35px;
  9341. box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.16);
  9342. border-radius: 4px;
  9343. overflow: hidden;
  9344. }
  9345. .chapter_upload_t {
  9346. background-color: #fff;
  9347. position: absolute;
  9348. height: 100%;
  9349. top: 0px;
  9350. left: 0px;
  9351. box-sizing: border-box;
  9352. }
  9353. .chapter_upload_o {
  9354. width: 100%;
  9355. height: 100%;
  9356. position: relative;
  9357. z-index: 1;
  9358. }
  9359. .chapter_upload_ic {
  9360. margin: 0 15px 0px auto;
  9361. display: flex;
  9362. align-items: center;
  9363. }
  9364. .chapter_upload_ic_l {
  9365. width: 50px;
  9366. height: 50px;
  9367. float: left;
  9368. }
  9369. .chapter_upload_ic_l div {
  9370. width: 30px;
  9371. height: 35px;
  9372. background: url("../../../assets/icon/icon.png");
  9373. }
  9374. .chapter_upload_ic_r {
  9375. height: 100%;
  9376. display: flex;
  9377. align-items: center;
  9378. cursor: pointer;
  9379. }
  9380. .chapter_upload_ic_r div {
  9381. width: 18px;
  9382. height: 18px;
  9383. background-image: url("../../../assets/icon/new/delete_u.png");
  9384. background-size: 100% 100%;
  9385. }
  9386. .chapter_upload_n {
  9387. display: flex;
  9388. text-indent: 10px;
  9389. text-decoration: none;
  9390. text-overflow: ellipsis;
  9391. white-space: nowrap;
  9392. overflow: hidden;
  9393. width: 55%;
  9394. margin-left: 10px;
  9395. cursor: pointer;
  9396. margin-top: 2px;
  9397. align-items: center;
  9398. }
  9399. .chapter_upload_l_i2,
  9400. .chapter_upload_l_i3,
  9401. .chapter_upload_l_i8,
  9402. .chapter_upload_l_i6,
  9403. .chapter_upload_l_i12,
  9404. .chapter_upload_l_i13 {
  9405. width: 15px;
  9406. height: 15px;
  9407. background-size: 100% 100%;
  9408. }
  9409. .chapter_upload_l_i2 {
  9410. background-image: url("../../../assets/icon/new/u_word.png");
  9411. }
  9412. .chapter_upload_l_i3 {
  9413. background-image: url("../../../assets/icon/new/u_video.png");
  9414. }
  9415. .chapter_upload_l_i8 {
  9416. background-image: url("../../../assets/icon/new/u_url.png");
  9417. }
  9418. .chapter_upload_l_i6 {
  9419. background-image: url("../../../assets/icon/new/u_url.png");
  9420. }
  9421. .chapter_upload_l_i12 {
  9422. background-image: url("../../../assets/icon/new/u_word.png");
  9423. }
  9424. .chapter_upload_l_i13 {
  9425. background-image: url("../../../assets/icon/new/u_img.png");
  9426. }
  9427. .chapter_upload_noSee {
  9428. background-image: url("../../../assets/icon/new/u_noUpload.png");
  9429. width: 18px;
  9430. height: 18px;
  9431. background-size: 100% 100%;
  9432. display: block;
  9433. margin-right: 20px;
  9434. }
  9435. .chapter_upload_ud {
  9436. display: flex;
  9437. flex-direction: row;
  9438. justify-content: center;
  9439. margin: 0 20px 0 0;
  9440. }
  9441. .chapter_upload_ud>.chapter_upload_up {
  9442. margin-bottom: 0;
  9443. margin-right: 5px;
  9444. }
  9445. .chapter_upload_down,
  9446. .chapter_upload_up {
  9447. width: 20px;
  9448. height: 20px;
  9449. background: #F0F4FA;
  9450. cursor: pointer;
  9451. margin: 0 auto;
  9452. border-radius: 5px;
  9453. display: flex;
  9454. justify-content: center;
  9455. align-items: center;
  9456. }
  9457. .chapter_upload_up::after,
  9458. .chapter_upload_down::after {
  9459. content: '';
  9460. background-image: url('../../../assets/icon/new/downBtn.png');
  9461. width: 13px;
  9462. height: 13px;
  9463. background-size: 100% 100%;
  9464. display: block;
  9465. }
  9466. .chapter_upload_up::after {
  9467. background-image: url('../../../assets/icon/new/upBtn.png') !important;
  9468. }
  9469. .chapter_upload_up {
  9470. margin-bottom: 5px;
  9471. }
  9472. .addWordStyle {
  9473. display: flex;
  9474. flex-direction: row;
  9475. justify-content: flex-start;
  9476. overflow-x: auto;
  9477. white-space: nowrap;
  9478. flex-wrap: wrap;
  9479. }
  9480. /* table 样式 */
  9481. .cont>>>table {
  9482. border-top: 1px solid #ccc;
  9483. border-left: 1px solid #ccc;
  9484. }
  9485. .cont>>>table td,
  9486. .cont>>>table th {
  9487. border-bottom: 1px solid #ccc;
  9488. border-right: 1px solid #ccc;
  9489. /* padding: 20px 5px; */
  9490. padding: 5px 10px;
  9491. max-width: 0px;
  9492. height: 30px;
  9493. vertical-align: baseline;
  9494. }
  9495. .cont>>>table th {
  9496. border-bottom: 2px solid #ccc;
  9497. text-align: center;
  9498. }
  9499. /* blockquote 样式 */
  9500. .cont>>>blockquote {
  9501. display: block;
  9502. border-left: 8px solid #d0e5f2;
  9503. padding: 5px 10px;
  9504. margin: 10px 0;
  9505. line-height: 1.4;
  9506. font-size: 100%;
  9507. background-color: #f1f1f1;
  9508. }
  9509. /* code 样式 */
  9510. .cont>>>code {
  9511. display: inline-block;
  9512. *display: inline;
  9513. *zoom: 1;
  9514. background-color: #f1f1f1;
  9515. border-radius: 3px;
  9516. padding: 3px 5px;
  9517. margin: 0 3px;
  9518. }
  9519. .cont>>>pre code {
  9520. display: block;
  9521. }
  9522. /* ul ol 样式 */
  9523. .cont>>>ul,
  9524. ol {
  9525. margin: 10px 0 10px 20px;
  9526. }
  9527. .wordbox {
  9528. display: flex;
  9529. flex-wrap: wrap;
  9530. cursor: pointer;
  9531. width: 100%;
  9532. }
  9533. .checkword {
  9534. width: 22px;
  9535. height: 22px;
  9536. margin: 10px auto 0;
  9537. cursor: pointer;
  9538. }
  9539. .checkword img {
  9540. width: 100%;
  9541. }
  9542. .stepBg {
  9543. display: flex;
  9544. flex-direction: column;
  9545. justify-content: space-between;
  9546. align-items: center;
  9547. background: #fff;
  9548. width: 300px;
  9549. margin: 0 25px 0 0;
  9550. }
  9551. .stepTop {
  9552. min-width: 300px;
  9553. width: 300px;
  9554. /* border-radius: 10px; */
  9555. display: flex;
  9556. flex-direction: column;
  9557. justify-content: flex-start;
  9558. align-items: center;
  9559. flex-wrap: nowrap;
  9560. background: #fff;
  9561. /* top: 18%; */
  9562. }
  9563. .stepTop>div {
  9564. height: 80px;
  9565. width: 85%;
  9566. cursor: pointer;
  9567. margin: 10px 0;
  9568. border-radius: 10px;
  9569. }
  9570. .first,
  9571. .second,
  9572. .third,
  9573. .four {
  9574. background: #4a83d0;
  9575. height: 90px;
  9576. color: #fff;
  9577. display: flex;
  9578. flex-direction: row;
  9579. align-items: center;
  9580. justify-content: center;
  9581. }
  9582. .first>div:nth-child(1),
  9583. .second>div:nth-child(1),
  9584. .third>div:nth-child(1),
  9585. .four>div:nth-child(1) {
  9586. margin: 5px 10px 0 0;
  9587. width: 2rem;
  9588. }
  9589. .firstNo,
  9590. .secondNo,
  9591. .thirdNo,
  9592. .fourNo {
  9593. background: #e7e7e7;
  9594. color: #adadad;
  9595. display: flex;
  9596. flex-direction: row;
  9597. align-items: center;
  9598. justify-content: center;
  9599. }
  9600. .firstNo>div:nth-child(1),
  9601. .secondNo>div:nth-child(1),
  9602. .thirdNo>div:nth-child(1),
  9603. .fourNo>div:nth-child(1) {
  9604. margin: 5px 10px 0 0;
  9605. width: 2rem;
  9606. }
  9607. .uploadWidth>>>.el-upload {
  9608. width: 60px;
  9609. height: 60px;
  9610. position: relative;
  9611. }
  9612. .addPeople {
  9613. background: #fa6060;
  9614. width: 150px;
  9615. height: 40px;
  9616. color: #fff;
  9617. border-radius: 5px;
  9618. text-align: center;
  9619. line-height: 40px;
  9620. font-size: 14px;
  9621. cursor: pointer;
  9622. }
  9623. .kcImg {
  9624. width: 60px;
  9625. margin-left: 10px;
  9626. }
  9627. .zyImg {
  9628. width: 55px;
  9629. margin: 0 10px;
  9630. }
  9631. .deleteZy {
  9632. width: 20px;
  9633. position: absolute;
  9634. top: 5px;
  9635. right: 5px;
  9636. cursor: pointer;
  9637. }
  9638. .kcImg>img,
  9639. .zyImg>img,
  9640. .deleteZy>img {
  9641. width: 100%;
  9642. height: 100%;
  9643. }
  9644. .zyBox {
  9645. display: flex;
  9646. flex-direction: row;
  9647. align-items: center;
  9648. background: #67d37d;
  9649. color: #fff;
  9650. width: 210px;
  9651. margin: 20px 20px 0 0;
  9652. border-radius: 10px;
  9653. height: 70px;
  9654. position: relative;
  9655. }
  9656. .upCss {
  9657. display: flex;
  9658. flex-direction: row;
  9659. justify-content: flex-start;
  9660. }
  9661. .upCss>>>.el-icon-plus {
  9662. position: none !important;
  9663. width: 200px;
  9664. height: 100px;
  9665. display: flex;
  9666. flex-wrap: nowrap;
  9667. flex-direction: column;
  9668. align-items: center;
  9669. justify-content: center;
  9670. border: 1px dashed #ccc;
  9671. min-width: 78px;
  9672. min-height: 100px;
  9673. z-index: 999;
  9674. }
  9675. .upCss>>>.el-upload-list__item-name {
  9676. width: 100px;
  9677. white-space: nowrap;
  9678. overflow: hidden;
  9679. text-overflow: ellipsis;
  9680. }
  9681. .addStageImg {
  9682. min-width: 25px;
  9683. min-height: 25px;
  9684. width: 25px;
  9685. height: 25px;
  9686. cursor: pointer;
  9687. }
  9688. .addHW {
  9689. width: 28px;
  9690. height: 28px;
  9691. cursor: pointer;
  9692. }
  9693. .addStageImg>img,
  9694. .addHW>img {
  9695. width: 100%;
  9696. height: 100%;
  9697. }
  9698. .addNewPP>>>.el-dialog__body {
  9699. padding: 5px 20px;
  9700. }
  9701. .isHeight {
  9702. height: 680px;
  9703. }
  9704. .toolChoose {
  9705. display: flex;
  9706. /* width: 100%; */
  9707. flex-direction: row;
  9708. flex-wrap: wrap;
  9709. }
  9710. .tool {
  9711. display: flex;
  9712. flex-direction: column;
  9713. flex-wrap: nowrap;
  9714. width: fit-content;
  9715. margin: 10px 0 10px 0;
  9716. align-items: center;
  9717. }
  9718. .tool+.tool {
  9719. margin-right: 45px;
  9720. }
  9721. .whiteBIcon {
  9722. width: 80px;
  9723. cursor: pointer;
  9724. display: flex;
  9725. flex-direction: column;
  9726. flex-wrap: nowrap;
  9727. align-items: center;
  9728. font-size: 14px;
  9729. }
  9730. .whiteBIcon>img,
  9731. .toolIcon>img,
  9732. .arrow>img {
  9733. width: 100%;
  9734. height: 100%;
  9735. }
  9736. .check img {
  9737. width: 20px;
  9738. height: 20px;
  9739. }
  9740. .whiteBIcon>img {
  9741. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  9742. border-radius: 15px;
  9743. }
  9744. .check {
  9745. /* width: 20px;
  9746. height: 20px; */
  9747. cursor: pointer;
  9748. margin: 10px 0;
  9749. }
  9750. .checkDiv {
  9751. display: flex;
  9752. align-items: center;
  9753. }
  9754. .checkDiv span {
  9755. margin-left: 5px;
  9756. color: #858585;
  9757. }
  9758. .customWidth>>>.el-dialog {
  9759. min-width: 500px !important;
  9760. }
  9761. .a_addBox {
  9762. margin: 10px 0;
  9763. background: #fff;
  9764. padding: 15px;
  9765. max-height: 600px;
  9766. overflow: auto;
  9767. }
  9768. .a_add_box {
  9769. border-bottom: 2px solid #eee;
  9770. padding-bottom: 25px;
  9771. }
  9772. .a_add_head {
  9773. display: flex;
  9774. align-items: center;
  9775. justify-content: space-between;
  9776. margin: 10px 0 0 0;
  9777. font-size: 18px;
  9778. }
  9779. .a_add_checkType {
  9780. margin-top: 10px;
  9781. display: flex;
  9782. font-size: 16px;
  9783. align-items: center;
  9784. }
  9785. .a_add_checkType span {
  9786. box-sizing: border-box;
  9787. padding: 0 0 5px 0;
  9788. cursor: pointer;
  9789. }
  9790. .a_add_checkType span+span {
  9791. margin-left: 10px;
  9792. }
  9793. .a_add_checkType .active {
  9794. border-bottom: 2px solid #409eff;
  9795. color: #409eff;
  9796. }
  9797. .a_add_head .a_add_head_input {
  9798. width: 300px;
  9799. }
  9800. .a_add_head .a_add_head_div {
  9801. display: flex;
  9802. align-items: center;
  9803. justify-content: space-between;
  9804. }
  9805. .a_add_body {
  9806. display: flex;
  9807. /* align-items: center; */
  9808. align-items: flex-end;
  9809. }
  9810. .a_add_input {
  9811. display: flex;
  9812. align-items: center;
  9813. flex-wrap: wrap;
  9814. }
  9815. .a_add_input_choice {
  9816. flex-direction: column;
  9817. margin-right: 10px;
  9818. }
  9819. .a_add_input_choice>>>.el-radio {
  9820. display: flex;
  9821. align-items: center;
  9822. flex-direction: row-reverse;
  9823. margin: 30px 0 0 0;
  9824. }
  9825. .a_add_input_choice>>>.el-checkbox {
  9826. display: flex;
  9827. align-items: center;
  9828. flex-direction: row-reverse;
  9829. margin: 30px 0 0 0;
  9830. }
  9831. .width100 {
  9832. width: 100%;
  9833. }
  9834. .a_add_input .a_add_persent {
  9835. width: 100%;
  9836. }
  9837. .a_add_persent_div {
  9838. width: 100%;
  9839. display: flex;
  9840. align-items: center;
  9841. }
  9842. .a_add_persent_div span {
  9843. margin: 5px 0;
  9844. }
  9845. .a_add_persent_div span:nth-child(1) {
  9846. width: 30%;
  9847. }
  9848. .a_add_persent_div span:nth-child(2) {
  9849. width: 7%;
  9850. }
  9851. .a_add_persent_div span:nth-child(3) {
  9852. width: 40%;
  9853. }
  9854. .a_add_body_div {
  9855. display: flex;
  9856. align-items: center;
  9857. justify-content: center;
  9858. /* flex-direction: column; */
  9859. }
  9860. .all_choose {
  9861. display: flex;
  9862. flex-direction: row;
  9863. align-items: flex-start;
  9864. width: 100%;
  9865. }
  9866. .all_choose>span {
  9867. min-width: fit-content;
  9868. display: block;
  9869. white-space: nowrap;
  9870. overflow: hidden;
  9871. text-overflow: ellipsis;
  9872. margin-right: 20px;
  9873. font-weight: bold;
  9874. font-size: 14px;
  9875. }
  9876. .all_choose>>>.el-checkbox-group {
  9877. display: flex;
  9878. flex-direction: row;
  9879. width: 100%;
  9880. flex-wrap: wrap;
  9881. align-content: center;
  9882. justify-content: flex-start;
  9883. align-items: center;
  9884. margin-top: 3px;
  9885. }
  9886. .all_choose>.el-checkbox-group>>>.el-checkbox {
  9887. margin-bottom: 10px;
  9888. display: flex;
  9889. flex-direction: row;
  9890. align-items: center;
  9891. }
  9892. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label {
  9893. min-width: 80px;
  9894. overflow: hidden;
  9895. width: 80px;
  9896. text-overflow: ellipsis;
  9897. white-space: nowrap;
  9898. }
  9899. .all_choose>.el-checkbox-group>.el-checkbox>>>.el-checkbox__label:hover {
  9900. width: auto;
  9901. }
  9902. .choose>div:nth-child(3)>span {
  9903. /* letter-spacing: 0 !important; */
  9904. }
  9905. .choose {
  9906. display: flex;
  9907. flex-direction: column;
  9908. flex-wrap: nowrap;
  9909. height: 100%;
  9910. justify-content: space-evenly;
  9911. align-items: flex-start;
  9912. }
  9913. .both {
  9914. display: flex;
  9915. flex-direction: row;
  9916. flex-wrap: wrap;
  9917. width: 100%;
  9918. align-items: center;
  9919. justify-content: flex-start;
  9920. margin: 15px 0;
  9921. }
  9922. .notice>>>.el-dialog {
  9923. width: 500px !important;
  9924. text-align: center;
  9925. }
  9926. .notice>>>.el-button {
  9927. margin-top: 20px;
  9928. }
  9929. .whiteBg {
  9930. background: #fff;
  9931. border-radius: 10px;
  9932. }
  9933. .wb_j_box {
  9934. display: flex;
  9935. width: 100%;
  9936. padding: 20px 20px 0;
  9937. box-sizing: border-box;
  9938. }
  9939. .wb_j_box_content {
  9940. width: calc(100% - 55% - 100px);
  9941. display: flex;
  9942. align-items: center;
  9943. }
  9944. .wb_j_box_p_box {
  9945. max-width: calc(100% - 200px);
  9946. word-break: break-all;
  9947. overflow: hidden;
  9948. margin: 0 0 0 10px;
  9949. font-size: 14px;
  9950. color: #6e6e6e;
  9951. }
  9952. .chooseWho {
  9953. display: flex;
  9954. width: 380px;
  9955. flex-direction: row;
  9956. flex-wrap: nowrap;
  9957. justify-content: space-between;
  9958. padding-bottom: 10px;
  9959. }
  9960. .chooseWho>div {
  9961. cursor: pointer;
  9962. padding-bottom: 10px;
  9963. font-weight: bold;
  9964. }
  9965. .isChooseActive {
  9966. color: #3e88f4;
  9967. border-bottom: 2px solid #2f80f3;
  9968. }
  9969. .toolSort {
  9970. display: flex;
  9971. flex-direction: row;
  9972. flex-wrap: wrap;
  9973. justify-content: flex-start;
  9974. align-items: flex-start;
  9975. }
  9976. .toolSort>div {
  9977. margin-right: 45px;
  9978. }
  9979. .tools {
  9980. width: 100%;
  9981. display: flex;
  9982. flex-direction: column;
  9983. flex-wrap: nowrap;
  9984. align-items: flex-start;
  9985. }
  9986. .leftTools,
  9987. .rightTools {
  9988. width: 50%;
  9989. }
  9990. .leftTools+.leftTools{
  9991. border-top: 1px solid #dbdbdb;
  9992. padding-top: 30px;
  9993. }
  9994. .rightTools {
  9995. display: flex;
  9996. flex-direction: row;
  9997. flex-wrap: nowrap;
  9998. justify-content: space-around;
  9999. }
  10000. .firstToolList {
  10001. display: flex;
  10002. flex-direction: column;
  10003. flex-wrap: nowrap;
  10004. align-items: center;
  10005. }
  10006. .iconList {
  10007. display: flex;
  10008. flex-direction: row;
  10009. flex-wrap: wrap;
  10010. justify-content: flex-start;
  10011. align-items: center;
  10012. margin: 20px 0 5px 0;
  10013. width: 240px;
  10014. min-width: 240px;
  10015. }
  10016. .iconTool {
  10017. display: flex;
  10018. flex-direction: column;
  10019. flex-wrap: nowrap;
  10020. align-items: center;
  10021. justify-content: flex-start;
  10022. margin: 15px 10px;
  10023. }
  10024. .toolIcon {
  10025. width: 50px;
  10026. }
  10027. .taskBorder {
  10028. /*border: 1px solid #e1e1e1; */
  10029. border-radius: 8px;
  10030. margin-top: 20px;
  10031. /* min-height: 1160px; */
  10032. position: relative;
  10033. background: #F0F4FA;
  10034. padding: 20px;
  10035. box-sizing: border-box;
  10036. }
  10037. .smallTaskBorder {
  10038. height: 170px;
  10039. min-height: 170px !important;
  10040. overflow: hidden;
  10041. }
  10042. .taskBorder>div {
  10043. /* padding: 30px 0 10px 30px; */
  10044. }
  10045. .addTaskBorder {
  10046. border: 2px solid #5E9AFC;
  10047. border-radius: 8px;
  10048. margin-top: 25px;
  10049. cursor: pointer;
  10050. height: 50px;
  10051. line-height: 50px;
  10052. }
  10053. .addTaskBorder>div {
  10054. margin: 0 auto;
  10055. display: flex;
  10056. align-items: center;
  10057. justify-content: center;
  10058. }
  10059. .addTaskBorder>div>img {
  10060. width: 20px;
  10061. }
  10062. .addTaskBorder>div>span {
  10063. font-size: 16px;
  10064. margin-left: 10px;
  10065. color: #5E9AFC;
  10066. }
  10067. .funBlock {
  10068. display: flex;
  10069. padding: 15px 0;
  10070. flex-direction: row;
  10071. justify-content: flex-end;
  10072. align-items: center;
  10073. position: absolute;
  10074. right: 15px;
  10075. bottom: 35px;
  10076. }
  10077. .fold {
  10078. display: flex;
  10079. margin: 0 10px;
  10080. flex-direction: row;
  10081. align-items: center;
  10082. cursor: pointer;
  10083. }
  10084. .arrow {
  10085. width: 15px;
  10086. height: 15px;
  10087. margin-left: 10px;
  10088. }
  10089. .addToolFun {
  10090. display: flex;
  10091. width: 150px;
  10092. flex-direction: row;
  10093. align-items: center;
  10094. justify-content: center;
  10095. border: 1px dashed;
  10096. border-radius: 5px;
  10097. height: 50px;
  10098. margin: 20px auto 35px;
  10099. cursor: pointer;
  10100. }
  10101. .addToolFun2 {
  10102. display: flex;
  10103. width: 100%;
  10104. border: 2px dashed #CAD1DC;
  10105. flex-direction: row;
  10106. align-items: center;
  10107. justify-content: center;
  10108. border-radius: 5px;
  10109. height: 50px;
  10110. margin: 35px auto 0;
  10111. cursor: pointer;
  10112. }
  10113. .addToolImg {
  10114. width: 20px;
  10115. height: 20px;
  10116. margin-right: 10px;
  10117. }
  10118. .addToolsDia>>>.el-dialog__body {
  10119. padding: 20px;
  10120. }
  10121. .addToolsDia>>>.el-dialog__body>.toolChoose {
  10122. padding: 0;
  10123. }
  10124. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools {
  10125. padding: 0;
  10126. border-bottom: none;
  10127. margin-bottom: 0;
  10128. }
  10129. .addToolsDia>>>.el-dialog__body>.toolChoose>.leftTools>.chooseWho {
  10130. width: 100%;
  10131. }
  10132. .lineCss>>>.el-form-item__label {
  10133. width: auto !important;
  10134. }
  10135. .lineCss>>>.el-form-item__content {
  10136. margin-left: 50px !important;
  10137. }
  10138. .newSteps {
  10139. display: flex;
  10140. width: 100% !important;
  10141. height: 80px;
  10142. cursor: pointer;
  10143. margin: 10px 0;
  10144. border-radius: 10px;
  10145. flex-direction: row;
  10146. align-content: center;
  10147. justify-content: center;
  10148. align-items: center;
  10149. margin: 0 !important;
  10150. }
  10151. /* 评价样式 */
  10152. .elist_css {
  10153. padding-bottom: 60px !important;
  10154. }
  10155. .elist_title {
  10156. margin-bottom: 10px;
  10157. }
  10158. .elist_input {}
  10159. .elist_input_box {
  10160. display: flex;
  10161. align-items: center;
  10162. flex-wrap: wrap;
  10163. }
  10164. .elist_input_box+.elist_input_box {
  10165. margin-top: 30px;
  10166. }
  10167. .elist_input .elist_input_box input {
  10168. font: inherit;
  10169. color: currentColor;
  10170. /* width: 200px; */
  10171. max-width: 200px;
  10172. padding: 8px 14px;
  10173. display: block;
  10174. min-width: 0;
  10175. outline: none;
  10176. border: 1px solid rgba(0, 0, 0, 0.23);
  10177. border-radius: 4px;
  10178. box-sizing: border-box;
  10179. background: #fff;
  10180. margin: 0 5px 0 0;
  10181. }
  10182. .elist_input .elist_input_box span {
  10183. height: 36px;
  10184. line-height: 36px;
  10185. color: rgb(82, 82, 82);
  10186. min-width: 80px;
  10187. }
  10188. .elist_input .elist_input_box .remove {
  10189. height: 20px;
  10190. width: 20px;
  10191. min-width:20px;
  10192. background-size: 100% 100%;
  10193. background-position: unset;
  10194. margin-left: 5px;
  10195. }
  10196. .elist_input_box>>>.el-rate {
  10197. display: flex;
  10198. height: 36px;
  10199. align-items: center;
  10200. }
  10201. .elist_input_box .elist_inptu_text {
  10202. width: 100%;
  10203. display: flex;
  10204. align-items: center;
  10205. margin-top: 10px;
  10206. }
  10207. .elist_input_box .elist_inptu_text input {
  10208. /* width: 500px; */
  10209. width: 100%;
  10210. max-width: unset;
  10211. }
  10212. .elist_input_box>>>.el-rate__icon {
  10213. font-size: 24px;
  10214. }
  10215. .elist_btn {
  10216. margin-top: 10px;
  10217. }
  10218. .lineTitle {
  10219. /* margin-top: 15px; */
  10220. width: 110px;
  10221. font-size:18px;
  10222. }
  10223. .courseTop {
  10224. display: flex;
  10225. flex-direction: row;
  10226. justify-content: flex-start;
  10227. align-items: center;
  10228. width: calc(100%);
  10229. padding: 10px 0;
  10230. margin: 0 auto;
  10231. }
  10232. .stepsNav {
  10233. display: flex;
  10234. flex-direction: row;
  10235. justify-content: flex-start;
  10236. align-items: center;
  10237. }
  10238. .stepsWord {
  10239. font-size: 18px;
  10240. color: #fff;
  10241. font-weight: bold;
  10242. margin-left: auto;
  10243. background: rgb(15, 126, 255);
  10244. border-radius: 5px;
  10245. padding: 3px 25px;
  10246. box-sizing: border-box;
  10247. }
  10248. .rightBox {
  10249. width: calc(100%);
  10250. background: rgb(255, 255, 255);
  10251. /* border-radius: 10px; */
  10252. overflow: auto;
  10253. height: calc(100% - 120px);
  10254. margin: 0 auto;
  10255. position: relative;
  10256. box-sizing: border-box;
  10257. border-radius: 5px 0px;
  10258. }
  10259. .e_add_top {
  10260. display: flex;
  10261. justify-content: space-between;
  10262. padding: 20px 20px 0 20px;
  10263. border-radius: 3px;
  10264. background: #fff;
  10265. }
  10266. .e_add_title2 {
  10267. display: flex;
  10268. align-items: center;
  10269. }
  10270. .e_add_title2 span {
  10271. width: 40px;
  10272. }
  10273. .e_add_title {
  10274. display: flex;
  10275. align-items: center;
  10276. color: #b8b8b8;
  10277. font-size: 18px;
  10278. position: relative;
  10279. height: 40px;
  10280. }
  10281. .e_add_title span {
  10282. margin-right: 10px;
  10283. }
  10284. .e_add_title .el_input {
  10285. width: 300px;
  10286. }
  10287. .e_add_title>>>.el-input__inner {
  10288. width: 400px;
  10289. }
  10290. .e_add_btn {}
  10291. .e_add_content {
  10292. display: flex;
  10293. width: 100%;
  10294. }
  10295. .e_add_list {
  10296. background: #fff;
  10297. height: 500px;
  10298. width: 210px;
  10299. position: relative;
  10300. margin: 15px 5px 0 0;
  10301. flex-shrink: 0;
  10302. display: flex;
  10303. flex-direction: column;
  10304. }
  10305. .e_add_list_title {
  10306. font-size: 20px;
  10307. width: 100%;
  10308. box-sizing: border-box;
  10309. padding: 15px 40px;
  10310. text-align: center;
  10311. border-bottom: 1px solid #eaeaea;
  10312. position: relative;
  10313. display: flex;
  10314. align-items: center;
  10315. justify-content: center;
  10316. height: 57px;
  10317. background: #f6f6f6;
  10318. }
  10319. .e_add_list_title span {
  10320. overflow: hidden;
  10321. white-space: nowrap;
  10322. text-overflow: ellipsis;
  10323. }
  10324. .e_add_list_title img {
  10325. position: absolute;
  10326. right: 15px;
  10327. width: 25px;
  10328. cursor: pointer;
  10329. top: 50%;
  10330. transform: translateY(-50%);
  10331. }
  10332. .e_add_list_body {
  10333. height: calc(100% - 187px);
  10334. overflow: auto;
  10335. }
  10336. .e_add_list_child {
  10337. width: 100%;
  10338. display: flex;
  10339. align-items: center;
  10340. justify-content: center;
  10341. position: relative;
  10342. box-sizing: border-box;
  10343. padding: 15px 40px;
  10344. text-align: center;
  10345. }
  10346. .e_add_list_child span {
  10347. overflow: hidden;
  10348. white-space: nowrap;
  10349. text-overflow: ellipsis;
  10350. cursor: pointer;
  10351. }
  10352. .e_add_list_child img {
  10353. position: absolute;
  10354. right: 10px;
  10355. width: 21px;
  10356. cursor: pointer;
  10357. top: 50%;
  10358. transform: translateY(-50%);
  10359. }
  10360. .e_add_list_child+.e_add_list_child {
  10361. border-top: 1px solid #eaeaea;
  10362. }
  10363. .e_add_list_child .active {
  10364. color: #409eff;
  10365. }
  10366. .e_add_list_btn {
  10367. position: absolute;
  10368. bottom: 0;
  10369. height: 50px;
  10370. background: rgb(120, 120, 254);
  10371. width: 100%;
  10372. color: #fff;
  10373. font-size: 16px;
  10374. text-align: center;
  10375. line-height: 50px;
  10376. cursor: pointer;
  10377. }
  10378. .e_add_list_detail {
  10379. position: absolute;
  10380. bottom: 0;
  10381. height: 130px;
  10382. background: rgb(120, 120, 254);
  10383. width: 100%;
  10384. color: #fff;
  10385. font-size: 16px;
  10386. display: flex;
  10387. align-items: center;
  10388. justify-content: center;
  10389. }
  10390. .e_add_list_detail textarea {
  10391. height: 90%;
  10392. width: 95%;
  10393. border: none;
  10394. resize: none;
  10395. outline: none;
  10396. padding: 5px;
  10397. box-sizing: border-box;
  10398. }
  10399. .e_add_list_pbox {
  10400. width: 100%;
  10401. }
  10402. .e_add_list_pbox_title {
  10403. height: 50px;
  10404. background: #fff;
  10405. display: flex;
  10406. align-items: center;
  10407. width: 100%;
  10408. box-sizing: border-box;
  10409. padding: 0 20px;
  10410. flex-direction: row;
  10411. flex-wrap: wrap;
  10412. }
  10413. .type_title {
  10414. font-size: 18px;
  10415. font-weight: 700;
  10416. }
  10417. .type_content {
  10418. font-size: 16px;
  10419. margin-left: 30px;
  10420. }
  10421. .type_content span+span {
  10422. margin-left: 20px;
  10423. }
  10424. .type_content span {
  10425. cursor: pointer;
  10426. padding-bottom: 5px;
  10427. box-sizing: border-box;
  10428. }
  10429. .type_content .active {
  10430. color: #409eff;
  10431. border-bottom: 2px solid #409eff;
  10432. }
  10433. .e_add_list_pbox_content {
  10434. height: calc(100% - 50px);
  10435. display: flex;
  10436. align-items: center;
  10437. width: 100%;
  10438. background: #fff;
  10439. }
  10440. .mbCss {
  10441. width: 100%;
  10442. display: flex;
  10443. flex-direction: row;
  10444. flex-wrap: nowrap;
  10445. align-content: center;
  10446. align-items: flex-start;
  10447. justify-content: flex-start;
  10448. }
  10449. .pjCss {
  10450. /* width: 42%; */
  10451. width: calc(100% - 55%);
  10452. display: flex;
  10453. flex-direction: column;
  10454. flex-wrap: nowrap;
  10455. align-items: flex-start;
  10456. margin-top: 1.5%;
  10457. }
  10458. .e_box {
  10459. display: flex;
  10460. flex-wrap: wrap;
  10461. max-height: 500px;
  10462. align-items: flex-start;
  10463. overflow: auto;
  10464. }
  10465. .e_card {
  10466. border: 1px solid #ccc;
  10467. background: #fff;
  10468. margin-right: 20px;
  10469. width: 270px;
  10470. display: flex;
  10471. flex-direction: column;
  10472. align-items: center;
  10473. border-radius: 5px;
  10474. margin-top: 10px;
  10475. text-align: center;
  10476. }
  10477. .e_card_picture {
  10478. margin: 10px 0;
  10479. }
  10480. .e_card_picture>img {
  10481. width: 50px;
  10482. }
  10483. .e_card_name {
  10484. width: 100%;
  10485. padding: 0 10px;
  10486. box-sizing: border-box;
  10487. margin-bottom: 10px;
  10488. overflow: hidden;
  10489. text-overflow: ellipsis;
  10490. white-space: nowrap;
  10491. }
  10492. .e_card_time {
  10493. width: 100%;
  10494. padding: 0 10px;
  10495. box-sizing: border-box;
  10496. font-size: 15px;
  10497. color: #c3c3c3;
  10498. margin-bottom: 10px;
  10499. }
  10500. .e_card_btn {
  10501. height: 40px;
  10502. display: flex;
  10503. align-items: center;
  10504. width: 100%;
  10505. background: rgb(244, 244, 244);
  10506. }
  10507. .e_card_btn:hover {
  10508. background: rgb(221 221 221);
  10509. }
  10510. .e_card_btn span {
  10511. flex: 1 1 auto;
  10512. text-align: center;
  10513. cursor: pointer;
  10514. }
  10515. .addEva {
  10516. border: 1px solid #ccc;
  10517. background: #fff;
  10518. margin-right: 20px;
  10519. width: 270px;
  10520. height: 149px;
  10521. display: flex;
  10522. flex-direction: column;
  10523. align-items: center;
  10524. border-radius: 5px;
  10525. margin-top: 10px;
  10526. text-align: center;
  10527. cursor: pointer;
  10528. justify-content: center;
  10529. }
  10530. .addEva>img {
  10531. width: 50px;
  10532. object-fit: cover;
  10533. }
  10534. .uploadFm {
  10535. border: 1px dashed #ccc;
  10536. width: 202px;
  10537. height: 102px;
  10538. position: relative;
  10539. cursor: pointer;
  10540. display: flex;
  10541. flex-direction: column;
  10542. justify-content: center;
  10543. align-items: center;
  10544. font-size: 14px;
  10545. color: #6e6e6e;
  10546. }
  10547. .uploadFm>img {
  10548. width: 50px;
  10549. }
  10550. .fileCss {
  10551. width: 100%;
  10552. display: flex;
  10553. flex-direction: row;
  10554. flex-wrap: nowrap;
  10555. justify-content: space-around;
  10556. align-items: center;
  10557. padding-top: 15px;
  10558. }
  10559. .sysPicBox {
  10560. display: flex;
  10561. flex-direction: row;
  10562. flex-wrap: wrap;
  10563. align-content: flex-start;
  10564. height: 435px;
  10565. overflow: auto;
  10566. }
  10567. .sysPic {
  10568. width: 200px;
  10569. height: 115px;
  10570. margin: 0 20px 20px 0;
  10571. cursor: pointer;
  10572. }
  10573. .sysPic>img,
  10574. .isSysPic>img,
  10575. .deletePic>img {
  10576. width: 100%;
  10577. height: 100%;
  10578. object-fit: cover;
  10579. }
  10580. .isSysPic {
  10581. width: 200px;
  10582. height: 115px;
  10583. position: relative;
  10584. }
  10585. .deletePic {
  10586. width: 20px;
  10587. height: 20px;
  10588. position: absolute;
  10589. top: 0;
  10590. right: 0;
  10591. cursor: pointer;
  10592. }
  10593. .select_box1 {}
  10594. .select_box1_img {
  10595. background: #fff;
  10596. border-radius: 5px;
  10597. padding: 15px;
  10598. box-sizing: border-box;
  10599. margin-bottom: 20px;
  10600. }
  10601. .select_box1_title {
  10602. padding: 0 0 15px 0;
  10603. border-bottom: 1px solid #eee;
  10604. margin-bottom: 15px;
  10605. }
  10606. .select_box1_title span:nth-child(1) {
  10607. font-size: 16px;
  10608. margin-right: 20px;
  10609. color: #000;
  10610. }
  10611. .select_box1_title span:nth-child(2) {
  10612. font-size: 14px;
  10613. color: rgb(112, 112, 112);
  10614. }
  10615. .select_box1_add_img {}
  10616. .select_box1_select {
  10617. background: #fff;
  10618. border-radius: 5px;
  10619. padding: 15px;
  10620. box-sizing: border-box;
  10621. }
  10622. .select_box2 {}
  10623. .select_box2_title {
  10624. background: #fff;
  10625. border-radius: 5px;
  10626. padding: 5px 10px;
  10627. box-sizing: border-box;
  10628. margin-bottom: 10px;
  10629. }
  10630. .select_box2_box {
  10631. display: flex;
  10632. height: 500px;
  10633. }
  10634. .select_box2_img {
  10635. width: calc(100% - 310px);
  10636. height: 100%;
  10637. overflow: auto;
  10638. background: #fff;
  10639. border-radius: 5px;
  10640. }
  10641. .select_box2_img img {
  10642. width: 100%;
  10643. }
  10644. .select_box2_answer {
  10645. background: #fff;
  10646. margin-left: 10px;
  10647. border-radius: 5px;
  10648. width: 300px;
  10649. overflow: auto;
  10650. height: 100%;
  10651. display: flex;
  10652. flex-direction: column;
  10653. align-items: center;
  10654. padding-top: 10px;
  10655. box-sizing: border-box;
  10656. }
  10657. .select_box2_answer_box {
  10658. margin: 0 0 10px 0;
  10659. width: 85%;
  10660. }
  10661. .rate_textarea {
  10662. font: inherit;
  10663. color: currentColor;
  10664. width: 100%;
  10665. padding: 8px 14px;
  10666. display: block;
  10667. min-width: 0;
  10668. outline: none;
  10669. border: 1px solid rgba(0, 0, 0, 0.23);
  10670. border-radius: 4px;
  10671. box-sizing: border-box;
  10672. background: #fff;
  10673. margin: 0 20px 0 0;
  10674. resize: none;
  10675. }
  10676. .select_answer_title {
  10677. text-align: left;
  10678. width: 85%;
  10679. margin-bottom: 10px;
  10680. font-size: 18px;
  10681. color: #8e8e8e;
  10682. }
  10683. .mask {
  10684. background-color: rgb(0 0 0 / 30%);
  10685. /* position: fixed; */
  10686. position: absolute;
  10687. top: 0;
  10688. left: 0;
  10689. width: 100%;
  10690. height: 100%;
  10691. z-index: 90;
  10692. display: flex;
  10693. align-items: center;
  10694. justify-content: center;
  10695. }
  10696. .progressBox {
  10697. width: 300px;
  10698. height: 150px;
  10699. background: #fff;
  10700. border-radius: 10px;
  10701. box-shadow: 0 0 6px 1px #bfbfbf;
  10702. display: flex;
  10703. align-items: center;
  10704. justify-content: center;
  10705. flex-direction: column;
  10706. position: relative;
  10707. color: #6c6c6c;
  10708. }
  10709. .progressBox>>>.el-progress-bar__outer {
  10710. background-color: #d1dfff !important;
  10711. }
  10712. .progressBox .lbox {
  10713. height: 50px;
  10714. font-size: 19px;
  10715. display: flex;
  10716. align-items: center;
  10717. color: #747474;
  10718. }
  10719. .progressBox .lbox img {
  10720. width: 40px;
  10721. margin-right: 20px;
  10722. }
  10723. .closeCss {
  10724. position: absolute;
  10725. top: 8px;
  10726. right: 8px;
  10727. cursor: pointer;
  10728. width: 20px;
  10729. height: 20px;
  10730. }
  10731. .closeCss>img {
  10732. width: 100%;
  10733. height: 100%;
  10734. }
  10735. .updateTips::after {
  10736. content: "协同编辑课程暂不支持修改基本信息,只支持修改阶段内容。";
  10737. font-size: 14px;
  10738. margin-left: 20px;
  10739. font-weight: 400;
  10740. color: #ff3a3a;
  10741. }
  10742. .updateMask {
  10743. width: 100%;
  10744. z-index: 3;
  10745. top: 0;
  10746. position: absolute;
  10747. /* background-color: rgba(0,0,0,.3); */
  10748. }
  10749. .t_j_box {
  10750. display: flex;
  10751. }
  10752. .t_j_box span:nth-child(1) {
  10753. width: 15%;
  10754. overflow: hidden;
  10755. margin-right: 10px;
  10756. text-overflow: ellipsis;
  10757. white-space: nowrap;
  10758. }
  10759. .t_j_box span:nth-child(2) {
  10760. width: 30%;
  10761. overflow: hidden;
  10762. text-overflow: ellipsis;
  10763. margin-right: 10px;
  10764. }
  10765. .t_j_box span:nth-child(3) {
  10766. max-width: calc(55% - 20px);
  10767. overflow: hidden;
  10768. text-overflow: ellipsis;
  10769. }
  10770. .sentenBox {
  10771. background: #fff;
  10772. height: 600px;
  10773. overflow: auto;
  10774. background-image: url("../../../assets/icon/conSentences/csBg.png");
  10775. background-position: 102%;
  10776. background-repeat: no-repeat;
  10777. background-size: 60%;
  10778. }
  10779. .addSen {
  10780. background: #409efe;
  10781. width: 90px;
  10782. color: #fff;
  10783. height: 35px;
  10784. text-align: center;
  10785. line-height: 35px;
  10786. border-radius: 5px;
  10787. float: right;
  10788. margin: 10px 20px 0 0;
  10789. cursor: pointer;
  10790. }
  10791. .sentenTop {
  10792. display: flex;
  10793. flex-direction: row;
  10794. flex-wrap: nowrap;
  10795. align-items: center;
  10796. }
  10797. .sentenTop>div:nth-child(2) {
  10798. width: 300px;
  10799. margin: 0 15px;
  10800. }
  10801. .sentenTop>div:nth-child(3) {
  10802. background: #409efe;
  10803. color: #fff;
  10804. width: 65px;
  10805. height: 35px;
  10806. text-align: center;
  10807. line-height: 35px;
  10808. border-radius: 5px;
  10809. cursor: pointer;
  10810. }
  10811. .cardList {
  10812. padding: 30px 0 20px 0;
  10813. display: flex;
  10814. flex-direction: row;
  10815. flex-wrap: wrap;
  10816. align-items: center;
  10817. box-sizing: border-box;
  10818. border-bottom: 1px solid #f4f4f4;
  10819. width: 98%;
  10820. margin: 0 auto;
  10821. }
  10822. .cardBox {
  10823. display: flex;
  10824. flex-direction: row;
  10825. flex-wrap: wrap;
  10826. align-items: center;
  10827. align-content: center;
  10828. }
  10829. .isCard,
  10830. .isCard1 {
  10831. width: 140px;
  10832. height: 65px;
  10833. text-align: center;
  10834. line-height: 65px;
  10835. font-size: 20px;
  10836. cursor: pointer;
  10837. background-image: url("../../../assets/icon/conSentences/titleBorder.png");
  10838. background-size: cover;
  10839. position: relative;
  10840. z-index: 99;
  10841. }
  10842. .isCard1 {
  10843. background-image: url("../../../assets/icon/conSentences/answerBorder.png");
  10844. }
  10845. .isCard:hover .deleteWord {
  10846. display: block;
  10847. }
  10848. .isCard>div:nth-child(1),
  10849. .isCard1>div:nth-child(1) {
  10850. white-space: nowrap;
  10851. overflow: hidden;
  10852. text-overflow: ellipsis;
  10853. width: 80%;
  10854. margin: 0 auto;
  10855. }
  10856. .card {
  10857. width: 140px;
  10858. height: 65px;
  10859. }
  10860. .card>img {
  10861. width: 100%;
  10862. height: 100%;
  10863. }
  10864. .rightCardBox {
  10865. margin: 10px 0 0 10px;
  10866. }
  10867. .rightCardBox>div:nth-child(1) {
  10868. margin-bottom: 10px;
  10869. }
  10870. .cardCss {
  10871. display: flex;
  10872. flex-direction: column;
  10873. flex-wrap: nowrap;
  10874. align-items: center;
  10875. border-bottom: 3px solid #b4c3d3;
  10876. padding: 0 0 5px 0;
  10877. margin-right: 10px;
  10878. }
  10879. .cardCss>div:nth-child(2) {
  10880. background: #5b7b9d;
  10881. color: #fff;
  10882. width: 20px;
  10883. height: 20px;
  10884. border-radius: 50%;
  10885. text-align: center;
  10886. line-height: 20px;
  10887. }
  10888. .sentenTopBox {
  10889. display: flex;
  10890. flex-direction: row;
  10891. flex-wrap: nowrap;
  10892. align-items: center;
  10893. justify-content: space-between;
  10894. padding: 55px 0 0 20px;
  10895. box-sizing: border-box;
  10896. width: 85%;
  10897. }
  10898. .stepsBottom {
  10899. width: 85%;
  10900. margin-bottom: 20px;
  10901. box-shadow: 0 0 10px 10px #f7f7f7;
  10902. background: #f7f7f7;
  10903. border-radius: 10px;
  10904. overflow: hidden;
  10905. }
  10906. .course_left {
  10907. width: 300px;
  10908. height: auto;
  10909. position: relative;
  10910. }
  10911. .stepsBottom2 {
  10912. width: 300px;
  10913. margin: 20px 0;
  10914. /* box-shadow: 0 0 10px 10px #f7f7f7; */
  10915. /* background: #f7f7f7; */
  10916. border-radius: 8px;
  10917. overflow: hidden;
  10918. height: fit-content;
  10919. position: relative;
  10920. /* transition: all .5s; */
  10921. }
  10922. .navTop {
  10923. background: #53749b;
  10924. color: #fff;
  10925. height: 40px;
  10926. line-height: 40px;
  10927. padding-left: 15px;
  10928. font-size: 18px;
  10929. }
  10930. .navBottom {
  10931. background: #F0F4FA;
  10932. height: 300px;
  10933. overflow: auto;
  10934. }
  10935. .navTask {
  10936. display: flex;
  10937. flex-direction: row;
  10938. flex-wrap: nowrap;
  10939. align-items: center;
  10940. padding: 10px 10px 10px 0;
  10941. cursor: pointer;
  10942. background: #ffffff;
  10943. width: 95%;
  10944. margin: 10px auto;
  10945. box-sizing: border-box;
  10946. border-radius: 5px;
  10947. }
  10948. .isNavTask {
  10949. background: #3681FC;
  10950. }
  10951. .isNavTask .nt_taskName {
  10952. color: #fff !important;
  10953. }
  10954. .isNavTask .nt_taskTitle {
  10955. color: #AECCFE !important;
  10956. }
  10957. .navTask .nt_taskBox {
  10958. width: calc(100% - 40px);
  10959. padding: 0 10px 0 20px;
  10960. box-sizing: border-box;
  10961. }
  10962. .navTask .nt_taskTitle {
  10963. color: #717C8D;
  10964. line-height: 25px;
  10965. font-size: 14px;
  10966. }
  10967. .navTask .nt_taskName {
  10968. /* color: #fff; */
  10969. /* max-width: 130px; */
  10970. width: 100%;
  10971. white-space: nowrap;
  10972. overflow: hidden;
  10973. text-overflow: ellipsis;
  10974. font-size: 15px;
  10975. color: #0E1E33;
  10976. }
  10977. .groupBox {}
  10978. .groupContent+.groupContent {
  10979. margin-top: 30px;
  10980. }
  10981. .groupTitle {
  10982. font-size: 24px;
  10983. color: rgb(80, 80, 80);
  10984. margin-bottom: 20px;
  10985. }
  10986. .groupName {
  10987. display: flex;
  10988. align-items: center;
  10989. }
  10990. .groupn {
  10991. font-size: 15px;
  10992. margin-right: 10px;
  10993. }
  10994. .groupName+.groupName {
  10995. margin-top: 15px;
  10996. }
  10997. .groupBtn {
  10998. margin-left: 10px;
  10999. }
  11000. .groupContent>>>.el-input-number.is-without-controls .el-input__inner {
  11001. text-align: left;
  11002. }
  11003. .radioBox>div {
  11004. margin: 10px 0 0 10px;
  11005. }
  11006. .radioBox>>>.el-radio__input,
  11007. .radioBox>>>.el-checkbox__inner {
  11008. margin-left: 10px;
  11009. }
  11010. .radioBox>>>.el-radio__label,
  11011. .radioBox>>>.el-checkbox__label {
  11012. display: flex;
  11013. align-items: center;
  11014. }
  11015. .inImg {
  11016. width: 50px;
  11017. }
  11018. .inImg>img {
  11019. width: 100%;
  11020. height: 100%;
  11021. object-fit: cover;
  11022. }
  11023. .upCss>>>.el-upload-list--picture .el-upload-list__item {
  11024. height: auto;
  11025. }
  11026. .upCss>>>.el-upload-list--picture .el-upload-list__item-thumbnail {
  11027. width: 200px;
  11028. height: 100px;
  11029. object-fit: contain;
  11030. background: unset;
  11031. }
  11032. .upCss>>>.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
  11033. display: none;
  11034. }
  11035. .tcMember+.tcMember::before {
  11036. content: "、";
  11037. }
  11038. .xzUpImg {
  11039. width: 25px;
  11040. height: 25px;
  11041. cursor: pointer;
  11042. }
  11043. .xzUpImg>img {
  11044. width: 100%;
  11045. height: 100%;
  11046. }
  11047. .closeCss {
  11048. position: absolute;
  11049. top: 8px;
  11050. right: 8px;
  11051. cursor: pointer;
  11052. width: 20px;
  11053. height: 20px;
  11054. }
  11055. .closeCss>img {
  11056. width: 100%;
  11057. height: 100%;
  11058. }
  11059. .moveBtn {
  11060. display: flex;
  11061. flex-direction: column;
  11062. align-items: flex-end;
  11063. width: 40px;
  11064. }
  11065. .timuUpImg {
  11066. display: flex;
  11067. flex-direction: row;
  11068. align-items: center;
  11069. }
  11070. .timuUpImg>div:nth-child(1) {
  11071. margin-right: 10px;
  11072. }
  11073. .timuImgBox {
  11074. margin: 10px 0;
  11075. display: flex;
  11076. flex-direction: column;
  11077. flex-wrap: wrap;
  11078. align-items: flex-start;
  11079. }
  11080. .timuImg {
  11081. width: 100px;
  11082. margin: 5px 0;
  11083. cursor: pointer;
  11084. position: relative;
  11085. }
  11086. .timuImg:hover .deleteWord {
  11087. display: block;
  11088. }
  11089. .deleteWord {
  11090. width: 25px;
  11091. height: 25px;
  11092. position: absolute;
  11093. right: -5px;
  11094. top: -5px;
  11095. cursor: pointer;
  11096. display: none;
  11097. }
  11098. .timuImg>img,
  11099. .deleteWord>img {
  11100. width: 100%;
  11101. height: 100%;
  11102. object-fit: cover;
  11103. }
  11104. .e_add_delete {
  11105. cursor: pointer;
  11106. margin-left: 10px;
  11107. }
  11108. .pType_box {
  11109. margin-top: 30px;
  11110. align-items: flex-end;
  11111. }
  11112. .noneBox {
  11113. height: 100%;
  11114. width: 100%;
  11115. display: flex;
  11116. align-items: center;
  11117. justify-content: center;
  11118. margin-top: 150px;
  11119. }
  11120. .noneBox>img {
  11121. width: 300px;
  11122. }
  11123. </style>